diff --git a/package-lock.json b/package-lock.json index 196cd7d..2571558 100644 --- a/package-lock.json +++ b/package-lock.json @@ -46,6 +46,7 @@ "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.28.5.tgz", "integrity": "sha512-e7jT4DxYvIDLk1ZHmU/m/mB19rex9sv0c2ftBtjSBv+kVM/902eh0fINUzD7UwLLNR+jU585GxUJ8/EBfAM5fw==", "license": "MIT", + "peer": true, "dependencies": { "@babel/code-frame": "^7.27.1", "@babel/generator": "^7.28.5", @@ -112,15 +113,6 @@ "node": ">=6.9.0" } }, - "node_modules/@babel/helper-compilation-targets/node_modules/lru-cache": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", - "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", - "license": "ISC", - "dependencies": { - "yallist": "^3.0.2" - } - }, "node_modules/@babel/helper-compilation-targets/node_modules/semver": { "version": "6.3.1", "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", @@ -309,9 +301,9 @@ } }, "node_modules/@esbuild/aix-ppc64": { - "version": "0.25.11", - "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.25.11.tgz", - "integrity": "sha512-Xt1dOL13m8u0WE8iplx9Ibbm+hFAO0GsU2P34UNoDGvZYkY8ifSiy6Zuc1lYxfG7svWE2fzqCUmFp5HCn51gJg==", + "version": "0.27.0", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.27.0.tgz", + "integrity": "sha512-KuZrd2hRjz01y5JK9mEBSD3Vj3mbCvemhT466rSuJYeE/hjuBrHfjjcjMdTm/sz7au+++sdbJZJmuBwQLuw68A==", "cpu": [ "ppc64" ], @@ -325,9 +317,9 @@ } }, "node_modules/@esbuild/android-arm": { - "version": "0.25.11", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.25.11.tgz", - "integrity": "sha512-uoa7dU+Dt3HYsethkJ1k6Z9YdcHjTrSb5NUy66ZfZaSV8hEYGD5ZHbEMXnqLFlbBflLsl89Zke7CAdDJ4JI+Gg==", + "version": "0.27.0", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.27.0.tgz", + "integrity": "sha512-j67aezrPNYWJEOHUNLPj9maeJte7uSMM6gMoxfPC9hOg8N02JuQi/T7ewumf4tNvJadFkvLZMlAq73b9uwdMyQ==", "cpu": [ "arm" ], @@ -341,9 +333,9 @@ } }, "node_modules/@esbuild/android-arm64": { - "version": "0.25.11", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.25.11.tgz", - "integrity": "sha512-9slpyFBc4FPPz48+f6jyiXOx/Y4v34TUeDDXJpZqAWQn/08lKGeD8aDp9TMn9jDz2CiEuHwfhRmGBvpnd/PWIQ==", + "version": "0.27.0", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.27.0.tgz", + "integrity": "sha512-CC3vt4+1xZrs97/PKDkl0yN7w8edvU2vZvAFGD16n9F0Cvniy5qvzRXjfO1l94efczkkQE6g1x0i73Qf5uthOQ==", "cpu": [ "arm64" ], @@ -357,9 +349,9 @@ } }, "node_modules/@esbuild/android-x64": { - "version": "0.25.11", - "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.25.11.tgz", - "integrity": "sha512-Sgiab4xBjPU1QoPEIqS3Xx+R2lezu0LKIEcYe6pftr56PqPygbB7+szVnzoShbx64MUupqoE0KyRlN7gezbl8g==", + "version": "0.27.0", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.27.0.tgz", + "integrity": "sha512-wurMkF1nmQajBO1+0CJmcN17U4BP6GqNSROP8t0X/Jiw2ltYGLHpEksp9MpoBqkrFR3kv2/te6Sha26k3+yZ9Q==", "cpu": [ "x64" ], @@ -373,9 +365,9 @@ } }, "node_modules/@esbuild/darwin-arm64": { - "version": "0.25.11", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.25.11.tgz", - "integrity": "sha512-VekY0PBCukppoQrycFxUqkCojnTQhdec0vevUL/EDOCnXd9LKWqD/bHwMPzigIJXPhC59Vd1WFIL57SKs2mg4w==", + "version": "0.27.0", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.27.0.tgz", + "integrity": "sha512-uJOQKYCcHhg07DL7i8MzjvS2LaP7W7Pn/7uA0B5S1EnqAirJtbyw4yC5jQ5qcFjHK9l6o/MX9QisBg12kNkdHg==", "cpu": [ "arm64" ], @@ -389,9 +381,9 @@ } }, "node_modules/@esbuild/darwin-x64": { - "version": "0.25.11", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.25.11.tgz", - "integrity": "sha512-+hfp3yfBalNEpTGp9loYgbknjR695HkqtY3d3/JjSRUyPg/xd6q+mQqIb5qdywnDxRZykIHs3axEqU6l1+oWEQ==", + "version": "0.27.0", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.27.0.tgz", + "integrity": "sha512-8mG6arH3yB/4ZXiEnXof5MK72dE6zM9cDvUcPtxhUZsDjESl9JipZYW60C3JGreKCEP+p8P/72r69m4AZGJd5g==", "cpu": [ "x64" ], @@ -405,9 +397,9 @@ } }, "node_modules/@esbuild/freebsd-arm64": { - "version": "0.25.11", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.25.11.tgz", - "integrity": "sha512-CmKjrnayyTJF2eVuO//uSjl/K3KsMIeYeyN7FyDBjsR3lnSJHaXlVoAK8DZa7lXWChbuOk7NjAc7ygAwrnPBhA==", + "version": "0.27.0", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.27.0.tgz", + "integrity": "sha512-9FHtyO988CwNMMOE3YIeci+UV+x5Zy8fI2qHNpsEtSF83YPBmE8UWmfYAQg6Ux7Gsmd4FejZqnEUZCMGaNQHQw==", "cpu": [ "arm64" ], @@ -421,9 +413,9 @@ } }, "node_modules/@esbuild/freebsd-x64": { - "version": "0.25.11", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.25.11.tgz", - "integrity": "sha512-Dyq+5oscTJvMaYPvW3x3FLpi2+gSZTCE/1ffdwuM6G1ARang/mb3jvjxs0mw6n3Lsw84ocfo9CrNMqc5lTfGOw==", + "version": "0.27.0", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.27.0.tgz", + "integrity": "sha512-zCMeMXI4HS/tXvJz8vWGexpZj2YVtRAihHLk1imZj4efx1BQzN76YFeKqlDr3bUWI26wHwLWPd3rwh6pe4EV7g==", "cpu": [ "x64" ], @@ -437,9 +429,9 @@ } }, "node_modules/@esbuild/linux-arm": { - "version": "0.25.11", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.25.11.tgz", - "integrity": "sha512-TBMv6B4kCfrGJ8cUPo7vd6NECZH/8hPpBHHlYI3qzoYFvWu2AdTvZNuU/7hsbKWqu/COU7NIK12dHAAqBLLXgw==", + "version": "0.27.0", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.27.0.tgz", + "integrity": "sha512-t76XLQDpxgmq2cNXKTVEB7O7YMb42atj2Re2Haf45HkaUpjM2J0UuJZDuaGbPbamzZ7bawyGFUkodL+zcE+jvQ==", "cpu": [ "arm" ], @@ -453,9 +445,9 @@ } }, "node_modules/@esbuild/linux-arm64": { - "version": "0.25.11", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.25.11.tgz", - "integrity": "sha512-Qr8AzcplUhGvdyUF08A1kHU3Vr2O88xxP0Tm8GcdVOUm25XYcMPp2YqSVHbLuXzYQMf9Bh/iKx7YPqECs6ffLA==", + "version": "0.27.0", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.27.0.tgz", + "integrity": "sha512-AS18v0V+vZiLJyi/4LphvBE+OIX682Pu7ZYNsdUHyUKSoRwdnOsMf6FDekwoAFKej14WAkOef3zAORJgAtXnlQ==", "cpu": [ "arm64" ], @@ -469,9 +461,9 @@ } }, "node_modules/@esbuild/linux-ia32": { - "version": "0.25.11", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.25.11.tgz", - "integrity": "sha512-TmnJg8BMGPehs5JKrCLqyWTVAvielc615jbkOirATQvWWB1NMXY77oLMzsUjRLa0+ngecEmDGqt5jiDC6bfvOw==", + "version": "0.27.0", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.27.0.tgz", + "integrity": "sha512-Mz1jxqm/kfgKkc/KLHC5qIujMvnnarD9ra1cEcrs7qshTUSksPihGrWHVG5+osAIQ68577Zpww7SGapmzSt4Nw==", "cpu": [ "ia32" ], @@ -485,9 +477,9 @@ } }, "node_modules/@esbuild/linux-loong64": { - "version": "0.25.11", - "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.25.11.tgz", - "integrity": "sha512-DIGXL2+gvDaXlaq8xruNXUJdT5tF+SBbJQKbWy/0J7OhU8gOHOzKmGIlfTTl6nHaCOoipxQbuJi7O++ldrxgMw==", + "version": "0.27.0", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.27.0.tgz", + "integrity": "sha512-QbEREjdJeIreIAbdG2hLU1yXm1uu+LTdzoq1KCo4G4pFOLlvIspBm36QrQOar9LFduavoWX2msNFAAAY9j4BDg==", "cpu": [ "loong64" ], @@ -501,9 +493,9 @@ } }, "node_modules/@esbuild/linux-mips64el": { - "version": "0.25.11", - "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.25.11.tgz", - "integrity": "sha512-Osx1nALUJu4pU43o9OyjSCXokFkFbyzjXb6VhGIJZQ5JZi8ylCQ9/LFagolPsHtgw6himDSyb5ETSfmp4rpiKQ==", + "version": "0.27.0", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.27.0.tgz", + "integrity": "sha512-sJz3zRNe4tO2wxvDpH/HYJilb6+2YJxo/ZNbVdtFiKDufzWq4JmKAiHy9iGoLjAV7r/W32VgaHGkk35cUXlNOg==", "cpu": [ "mips64el" ], @@ -517,9 +509,9 @@ } }, "node_modules/@esbuild/linux-ppc64": { - "version": "0.25.11", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.25.11.tgz", - "integrity": "sha512-nbLFgsQQEsBa8XSgSTSlrnBSrpoWh7ioFDUmwo158gIm5NNP+17IYmNWzaIzWmgCxq56vfr34xGkOcZ7jX6CPw==", + "version": "0.27.0", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.27.0.tgz", + "integrity": "sha512-z9N10FBD0DCS2dmSABDBb5TLAyF1/ydVb+N4pi88T45efQ/w4ohr/F/QYCkxDPnkhkp6AIpIcQKQ8F0ANoA2JA==", "cpu": [ "ppc64" ], @@ -533,9 +525,9 @@ } }, "node_modules/@esbuild/linux-riscv64": { - "version": "0.25.11", - "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.25.11.tgz", - "integrity": "sha512-HfyAmqZi9uBAbgKYP1yGuI7tSREXwIb438q0nqvlpxAOs3XnZ8RsisRfmVsgV486NdjD7Mw2UrFSw51lzUk1ww==", + "version": "0.27.0", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.27.0.tgz", + "integrity": "sha512-pQdyAIZ0BWIC5GyvVFn5awDiO14TkT/19FTmFcPdDec94KJ1uZcmFs21Fo8auMXzD4Tt+diXu1LW1gHus9fhFQ==", "cpu": [ "riscv64" ], @@ -549,9 +541,9 @@ } }, "node_modules/@esbuild/linux-s390x": { - "version": "0.25.11", - "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.25.11.tgz", - "integrity": "sha512-HjLqVgSSYnVXRisyfmzsH6mXqyvj0SA7pG5g+9W7ESgwA70AXYNpfKBqh1KbTxmQVaYxpzA/SvlB9oclGPbApw==", + "version": "0.27.0", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.27.0.tgz", + "integrity": "sha512-hPlRWR4eIDDEci953RI1BLZitgi5uqcsjKMxwYfmi4LcwyWo2IcRP+lThVnKjNtk90pLS8nKdroXYOqW+QQH+w==", "cpu": [ "s390x" ], @@ -565,9 +557,9 @@ } }, "node_modules/@esbuild/linux-x64": { - "version": "0.25.11", - "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.11.tgz", - "integrity": "sha512-HSFAT4+WYjIhrHxKBwGmOOSpphjYkcswF449j6EjsjbinTZbp8PJtjsVK1XFJStdzXdy/jaddAep2FGY+wyFAQ==", + "version": "0.27.0", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.27.0.tgz", + "integrity": "sha512-1hBWx4OUJE2cab++aVZ7pObD6s+DK4mPGpemtnAORBvb5l/g5xFGk0vc0PjSkrDs0XaXj9yyob3d14XqvnQ4gw==", "cpu": [ "x64" ], @@ -581,9 +573,9 @@ } }, "node_modules/@esbuild/netbsd-arm64": { - "version": "0.25.11", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.25.11.tgz", - "integrity": "sha512-hr9Oxj1Fa4r04dNpWr3P8QKVVsjQhqrMSUzZzf+LZcYjZNqhA3IAfPQdEh1FLVUJSiu6sgAwp3OmwBfbFgG2Xg==", + "version": "0.27.0", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.27.0.tgz", + "integrity": "sha512-6m0sfQfxfQfy1qRuecMkJlf1cIzTOgyaeXaiVaaki8/v+WB+U4hc6ik15ZW6TAllRlg/WuQXxWj1jx6C+dfy3w==", "cpu": [ "arm64" ], @@ -597,9 +589,9 @@ } }, "node_modules/@esbuild/netbsd-x64": { - "version": "0.25.11", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.25.11.tgz", - "integrity": "sha512-u7tKA+qbzBydyj0vgpu+5h5AeudxOAGncb8N6C9Kh1N4n7wU1Xw1JDApsRjpShRpXRQlJLb9wY28ELpwdPcZ7A==", + "version": "0.27.0", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.27.0.tgz", + "integrity": "sha512-xbbOdfn06FtcJ9d0ShxxvSn2iUsGd/lgPIO2V3VZIPDbEaIj1/3nBBe1AwuEZKXVXkMmpr6LUAgMkLD/4D2PPA==", "cpu": [ "x64" ], @@ -613,9 +605,9 @@ } }, "node_modules/@esbuild/openbsd-arm64": { - "version": "0.25.11", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.25.11.tgz", - "integrity": "sha512-Qq6YHhayieor3DxFOoYM1q0q1uMFYb7cSpLD2qzDSvK1NAvqFi8Xgivv0cFC6J+hWVw2teCYltyy9/m/14ryHg==", + "version": "0.27.0", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.27.0.tgz", + "integrity": "sha512-fWgqR8uNbCQ/GGv0yhzttj6sU/9Z5/Sv/VGU3F5OuXK6J6SlriONKrQ7tNlwBrJZXRYk5jUhuWvF7GYzGguBZQ==", "cpu": [ "arm64" ], @@ -629,9 +621,9 @@ } }, "node_modules/@esbuild/openbsd-x64": { - "version": "0.25.11", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.25.11.tgz", - "integrity": "sha512-CN+7c++kkbrckTOz5hrehxWN7uIhFFlmS/hqziSFVWpAzpWrQoAG4chH+nN3Be+Kzv/uuo7zhX716x3Sn2Jduw==", + "version": "0.27.0", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.27.0.tgz", + "integrity": "sha512-aCwlRdSNMNxkGGqQajMUza6uXzR/U0dIl1QmLjPtRbLOx3Gy3otfFu/VjATy4yQzo9yFDGTxYDo1FfAD9oRD2A==", "cpu": [ "x64" ], @@ -645,9 +637,9 @@ } }, "node_modules/@esbuild/openharmony-arm64": { - "version": "0.25.11", - "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.25.11.tgz", - "integrity": "sha512-rOREuNIQgaiR+9QuNkbkxubbp8MSO9rONmwP5nKncnWJ9v5jQ4JxFnLu4zDSRPf3x4u+2VN4pM4RdyIzDty/wQ==", + "version": "0.27.0", + "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.27.0.tgz", + "integrity": "sha512-nyvsBccxNAsNYz2jVFYwEGuRRomqZ149A39SHWk4hV0jWxKM0hjBPm3AmdxcbHiFLbBSwG6SbpIcUbXjgyECfA==", "cpu": [ "arm64" ], @@ -661,9 +653,9 @@ } }, "node_modules/@esbuild/sunos-x64": { - "version": "0.25.11", - "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.25.11.tgz", - "integrity": "sha512-nq2xdYaWxyg9DcIyXkZhcYulC6pQ2FuCgem3LI92IwMgIZ69KHeY8T4Y88pcwoLIjbed8n36CyKoYRDygNSGhA==", + "version": "0.27.0", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.27.0.tgz", + "integrity": "sha512-Q1KY1iJafM+UX6CFEL+F4HRTgygmEW568YMqDA5UV97AuZSm21b7SXIrRJDwXWPzr8MGr75fUZPV67FdtMHlHA==", "cpu": [ "x64" ], @@ -677,9 +669,9 @@ } }, "node_modules/@esbuild/win32-arm64": { - "version": "0.25.11", - "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.25.11.tgz", - "integrity": "sha512-3XxECOWJq1qMZ3MN8srCJ/QfoLpL+VaxD/WfNRm1O3B4+AZ/BnLVgFbUV3eiRYDMXetciH16dwPbbHqwe1uU0Q==", + "version": "0.27.0", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.27.0.tgz", + "integrity": "sha512-W1eyGNi6d+8kOmZIwi/EDjrL9nxQIQ0MiGqe/AWc6+IaHloxHSGoeRgDRKHFISThLmsewZ5nHFvGFWdBYlgKPg==", "cpu": [ "arm64" ], @@ -693,9 +685,9 @@ } }, "node_modules/@esbuild/win32-ia32": { - "version": "0.25.11", - "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.25.11.tgz", - "integrity": "sha512-3ukss6gb9XZ8TlRyJlgLn17ecsK4NSQTmdIXRASVsiS2sQ6zPPZklNJT5GR5tE/MUarymmy8kCEf5xPCNCqVOA==", + "version": "0.27.0", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.27.0.tgz", + "integrity": "sha512-30z1aKL9h22kQhilnYkORFYt+3wp7yZsHWus+wSKAJR8JtdfI76LJ4SBdMsCopTR3z/ORqVu5L1vtnHZWVj4cQ==", "cpu": [ "ia32" ], @@ -709,9 +701,9 @@ } }, "node_modules/@esbuild/win32-x64": { - "version": "0.25.11", - "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.25.11.tgz", - "integrity": "sha512-D7Hpz6A2L4hzsRpPaCYkQnGOotdUpDzSGRIv9I+1ITdHROSFUWW95ZPZWQmGka1Fg7W3zFJowyn9WGwMJ0+KPA==", + "version": "0.27.0", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.27.0.tgz", + "integrity": "sha512-aIitBcjQeyOhMTImhLZmtxfdOcuNRpwlPNmlFKPcHQYPhEssw75Cl1TSXJXpMkzaua9FUetx/4OQKq7eJul5Cg==", "cpu": [ "x64" ], @@ -725,9 +717,9 @@ } }, "node_modules/@hpcc-js/wasm-graphviz": { - "version": "1.15.0", - "resolved": "https://registry.npmjs.org/@hpcc-js/wasm-graphviz/-/wasm-graphviz-1.15.0.tgz", - "integrity": "sha512-z1DSfM9MKccsMl9HcpRBZSqV6rcNtD++LzwARowG8dd5aKk0WgdOlMLh8X0dDhMgWA5FfpU7kPKgh1hTuP4dUg==", + "version": "1.16.0", + "resolved": "https://registry.npmjs.org/@hpcc-js/wasm-graphviz/-/wasm-graphviz-1.16.0.tgz", + "integrity": "sha512-N7IcFIF6Va9Ko3DT5+N3crI5AHE71BH/H+frxfqgo7fn2LxzGaWDHPSRUsLfCCt3cpAFqsdkyoIc//FA+HxKzw==", "license": "Apache-2.0" }, "node_modules/@html-validate/stylish": { @@ -784,6 +776,49 @@ "node": ">=12" } }, + "node_modules/@isaacs/cliui/node_modules/emoji-regex": { + "version": "9.2.2", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", + "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", + "dev": true, + "license": "MIT" + }, + "node_modules/@isaacs/cliui/node_modules/string-width": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", + "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", + "dev": true, + "license": "MIT", + "dependencies": { + "eastasianwidth": "^0.2.0", + "emoji-regex": "^9.2.2", + "strip-ansi": "^7.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/@isaacs/cliui/node_modules/wrap-ansi": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz", + "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^6.1.0", + "string-width": "^5.0.1", + "strip-ansi": "^7.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, "node_modules/@jridgewell/gen-mapping": { "version": "0.3.13", "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz", @@ -830,24 +865,24 @@ } }, "node_modules/@likec4/core": { - "version": "1.44.0", - "resolved": "https://registry.npmjs.org/@likec4/core/-/core-1.44.0.tgz", - "integrity": "sha512-gt50ZPPYBS0iyhEzrjHagI6rH4l52hL3Z68XAGqsm4oeoKvzg/6xPHfZ1463JHAPBFBi79j4aEF9gg8+8JgHJQ==", + "version": "1.46.0", + "resolved": "https://registry.npmjs.org/@likec4/core/-/core-1.46.0.tgz", + "integrity": "sha512-6NZDaPVPTTglW3bI1Bz+5Y53SWPzGQPmMcnXQcF6vd5tMqP5POVFtv0u2y4djxodP8iUIyUuN6FQQTZi9+fwAA==", "license": "MIT", "dependencies": { "type-fest": "^4.41.0" } }, "node_modules/@rolldown/pluginutils": { - "version": "1.0.0-beta.43", - "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.0-beta.43.tgz", - "integrity": "sha512-5Uxg7fQUCmfhax7FJke2+8B6cqgeUJUD9o2uXIKXhD+mG0mL6NObmVoi9wXEU1tY89mZKgAYA6fTbftx3q2ZPQ==", + "version": "1.0.0-beta.53", + "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.0-beta.53.tgz", + "integrity": "sha512-vENRlFU4YbrwVqNDZ7fLvy+JR1CRkyr01jhSiDpE1u6py3OMzQfztQU2jxykW3ALNxO4kSlqIDeYyD0Y9RcQeQ==", "license": "MIT" }, "node_modules/@rollup/rollup-android-arm-eabi": { - "version": "4.53.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.53.2.tgz", - "integrity": "sha512-yDPzwsgiFO26RJA4nZo8I+xqzh7sJTZIWQOxn+/XOdPE31lAvLIYCKqjV+lNH/vxE2L2iH3plKxDCRK6i+CwhA==", + "version": "4.53.5", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.53.5.tgz", + "integrity": "sha512-iDGS/h7D8t7tvZ1t6+WPK04KD0MwzLZrG0se1hzBjSi5fyxlsiggoJHwh18PCFNn7tG43OWb6pdZ6Y+rMlmyNQ==", "cpu": [ "arm" ], @@ -858,9 +893,9 @@ ] }, "node_modules/@rollup/rollup-android-arm64": { - "version": "4.53.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.53.2.tgz", - "integrity": "sha512-k8FontTxIE7b0/OGKeSN5B6j25EuppBcWM33Z19JoVT7UTXFSo3D9CdU39wGTeb29NO3XxpMNauh09B+Ibw+9g==", + "version": "4.53.5", + "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.53.5.tgz", + "integrity": "sha512-wrSAViWvZHBMMlWk6EJhvg8/rjxzyEhEdgfMMjREHEq11EtJ6IP6yfcCH57YAEca2Oe3FNCE9DSTgU70EIGmVw==", "cpu": [ "arm64" ], @@ -871,9 +906,9 @@ ] }, "node_modules/@rollup/rollup-darwin-arm64": { - "version": "4.53.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.53.2.tgz", - "integrity": "sha512-A6s4gJpomNBtJ2yioj8bflM2oogDwzUiMl2yNJ2v9E7++sHrSrsQ29fOfn5DM/iCzpWcebNYEdXpaK4tr2RhfQ==", + "version": "4.53.5", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.53.5.tgz", + "integrity": "sha512-S87zZPBmRO6u1YXQLwpveZm4JfPpAa6oHBX7/ghSiGH3rz/KDgAu1rKdGutV+WUI6tKDMbaBJomhnT30Y2t4VQ==", "cpu": [ "arm64" ], @@ -884,9 +919,9 @@ ] }, "node_modules/@rollup/rollup-darwin-x64": { - "version": "4.53.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.53.2.tgz", - "integrity": "sha512-e6XqVmXlHrBlG56obu9gDRPW3O3hLxpwHpLsBJvuI8qqnsrtSZ9ERoWUXtPOkY8c78WghyPHZdmPhHLWNdAGEw==", + "version": "4.53.5", + "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.53.5.tgz", + "integrity": "sha512-YTbnsAaHo6VrAczISxgpTva8EkfQus0VPEVJCEaboHtZRIb6h6j0BNxRBOwnDciFTZLDPW5r+ZBmhL/+YpTZgA==", "cpu": [ "x64" ], @@ -897,9 +932,9 @@ ] }, "node_modules/@rollup/rollup-freebsd-arm64": { - "version": "4.53.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.53.2.tgz", - "integrity": "sha512-v0E9lJW8VsrwPux5Qe5CwmH/CF/2mQs6xU1MF3nmUxmZUCHazCjLgYvToOk+YuuUqLQBio1qkkREhxhc656ViA==", + "version": "4.53.5", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.53.5.tgz", + "integrity": "sha512-1T8eY2J8rKJWzaznV7zedfdhD1BqVs1iqILhmHDq/bqCUZsrMt+j8VCTHhP0vdfbHK3e1IQ7VYx3jlKqwlf+vw==", "cpu": [ "arm64" ], @@ -910,9 +945,9 @@ ] }, "node_modules/@rollup/rollup-freebsd-x64": { - "version": "4.53.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.53.2.tgz", - "integrity": "sha512-ClAmAPx3ZCHtp6ysl4XEhWU69GUB1D+s7G9YjHGhIGCSrsg00nEGRRZHmINYxkdoJehde8VIsDC5t9C0gb6yqA==", + "version": "4.53.5", + "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.53.5.tgz", + "integrity": "sha512-sHTiuXyBJApxRn+VFMaw1U+Qsz4kcNlxQ742snICYPrY+DDL8/ZbaC4DVIB7vgZmp3jiDaKA0WpBdP0aqPJoBQ==", "cpu": [ "x64" ], @@ -923,9 +958,9 @@ ] }, "node_modules/@rollup/rollup-linux-arm-gnueabihf": { - "version": "4.53.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.53.2.tgz", - "integrity": "sha512-EPlb95nUsz6Dd9Qy13fI5kUPXNSljaG9FiJ4YUGU1O/Q77i5DYFW5KR8g1OzTcdZUqQQ1KdDqsTohdFVwCwjqg==", + "version": "4.53.5", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.53.5.tgz", + "integrity": "sha512-dV3T9MyAf0w8zPVLVBptVlzaXxka6xg1f16VAQmjg+4KMSTWDvhimI/Y6mp8oHwNrmnmVl9XxJ/w/mO4uIQONA==", "cpu": [ "arm" ], @@ -936,9 +971,9 @@ ] }, "node_modules/@rollup/rollup-linux-arm-musleabihf": { - "version": "4.53.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.53.2.tgz", - "integrity": "sha512-BOmnVW+khAUX+YZvNfa0tGTEMVVEerOxN0pDk2E6N6DsEIa2Ctj48FOMfNDdrwinocKaC7YXUZ1pHlKpnkja/Q==", + "version": "4.53.5", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.53.5.tgz", + "integrity": "sha512-wIGYC1x/hyjP+KAu9+ewDI+fi5XSNiUi9Bvg6KGAh2TsNMA3tSEs+Sh6jJ/r4BV/bx/CyWu2ue9kDnIdRyafcQ==", "cpu": [ "arm" ], @@ -949,9 +984,9 @@ ] }, "node_modules/@rollup/rollup-linux-arm64-gnu": { - "version": "4.53.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.53.2.tgz", - "integrity": "sha512-Xt2byDZ+6OVNuREgBXr4+CZDJtrVso5woFtpKdGPhpTPHcNG7D8YXeQzpNbFRxzTVqJf7kvPMCub/pcGUWgBjA==", + "version": "4.53.5", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.53.5.tgz", + "integrity": "sha512-Y+qVA0D9d0y2FRNiG9oM3Hut/DgODZbU9I8pLLPwAsU0tUKZ49cyV1tzmB/qRbSzGvY8lpgGkJuMyuhH7Ma+Vg==", "cpu": [ "arm64" ], @@ -962,9 +997,9 @@ ] }, "node_modules/@rollup/rollup-linux-arm64-musl": { - "version": "4.53.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.53.2.tgz", - "integrity": "sha512-+LdZSldy/I9N8+klim/Y1HsKbJ3BbInHav5qE9Iy77dtHC/pibw1SR/fXlWyAk0ThnpRKoODwnAuSjqxFRDHUQ==", + "version": "4.53.5", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.53.5.tgz", + "integrity": "sha512-juaC4bEgJsyFVfqhtGLz8mbopaWD+WeSOYr5E16y+1of6KQjc0BpwZLuxkClqY1i8sco+MdyoXPNiCkQou09+g==", "cpu": [ "arm64" ], @@ -975,9 +1010,9 @@ ] }, "node_modules/@rollup/rollup-linux-loong64-gnu": { - "version": "4.53.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.53.2.tgz", - "integrity": "sha512-8ms8sjmyc1jWJS6WdNSA23rEfdjWB30LH8Wqj0Cqvv7qSHnvw6kgMMXRdop6hkmGPlyYBdRPkjJnj3KCUHV/uQ==", + "version": "4.53.5", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.53.5.tgz", + "integrity": "sha512-rIEC0hZ17A42iXtHX+EPJVL/CakHo+tT7W0pbzdAGuWOt2jxDFh7A/lRhsNHBcqL4T36+UiAgwO8pbmn3dE8wA==", "cpu": [ "loong64" ], @@ -988,9 +1023,9 @@ ] }, "node_modules/@rollup/rollup-linux-ppc64-gnu": { - "version": "4.53.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.53.2.tgz", - "integrity": "sha512-3HRQLUQbpBDMmzoxPJYd3W6vrVHOo2cVW8RUo87Xz0JPJcBLBr5kZ1pGcQAhdZgX9VV7NbGNipah1omKKe23/g==", + "version": "4.53.5", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.53.5.tgz", + "integrity": "sha512-T7l409NhUE552RcAOcmJHj3xyZ2h7vMWzcwQI0hvn5tqHh3oSoclf9WgTl+0QqffWFG8MEVZZP1/OBglKZx52Q==", "cpu": [ "ppc64" ], @@ -1001,9 +1036,9 @@ ] }, "node_modules/@rollup/rollup-linux-riscv64-gnu": { - "version": "4.53.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.53.2.tgz", - "integrity": "sha512-fMjKi+ojnmIvhk34gZP94vjogXNNUKMEYs+EDaB/5TG/wUkoeua7p7VCHnE6T2Tx+iaghAqQX8teQzcvrYpaQA==", + "version": "4.53.5", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.53.5.tgz", + "integrity": "sha512-7OK5/GhxbnrMcxIFoYfhV/TkknarkYC1hqUw1wU2xUN3TVRLNT5FmBv4KkheSG2xZ6IEbRAhTooTV2+R5Tk0lQ==", "cpu": [ "riscv64" ], @@ -1014,9 +1049,9 @@ ] }, "node_modules/@rollup/rollup-linux-riscv64-musl": { - "version": "4.53.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.53.2.tgz", - "integrity": "sha512-XuGFGU+VwUUV5kLvoAdi0Wz5Xbh2SrjIxCtZj6Wq8MDp4bflb/+ThZsVxokM7n0pcbkEr2h5/pzqzDYI7cCgLQ==", + "version": "4.53.5", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.53.5.tgz", + "integrity": "sha512-GwuDBE/PsXaTa76lO5eLJTyr2k8QkPipAyOrs4V/KJufHCZBJ495VCGJol35grx9xryk4V+2zd3Ri+3v7NPh+w==", "cpu": [ "riscv64" ], @@ -1027,9 +1062,9 @@ ] }, "node_modules/@rollup/rollup-linux-s390x-gnu": { - "version": "4.53.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.53.2.tgz", - "integrity": "sha512-w6yjZF0P+NGzWR3AXWX9zc0DNEGdtvykB03uhonSHMRa+oWA6novflo2WaJr6JZakG2ucsyb+rvhrKac6NIy+w==", + "version": "4.53.5", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.53.5.tgz", + "integrity": "sha512-IAE1Ziyr1qNfnmiQLHBURAD+eh/zH1pIeJjeShleII7Vj8kyEm2PF77o+lf3WTHDpNJcu4IXJxNO0Zluro8bOw==", "cpu": [ "s390x" ], @@ -1040,9 +1075,9 @@ ] }, "node_modules/@rollup/rollup-linux-x64-gnu": { - "version": "4.53.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.53.2.tgz", - "integrity": "sha512-yo8d6tdfdeBArzC7T/PnHd7OypfI9cbuZzPnzLJIyKYFhAQ8SvlkKtKBMbXDxe1h03Rcr7u++nFS7tqXz87Gtw==", + "version": "4.53.5", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.53.5.tgz", + "integrity": "sha512-Pg6E+oP7GvZ4XwgRJBuSXZjcqpIW3yCBhK4BcsANvb47qMvAbCjR6E+1a/U2WXz1JJxp9/4Dno3/iSJLcm5auw==", "cpu": [ "x64" ], @@ -1053,9 +1088,9 @@ ] }, "node_modules/@rollup/rollup-linux-x64-musl": { - "version": "4.53.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.53.2.tgz", - "integrity": "sha512-ah59c1YkCxKExPP8O9PwOvs+XRLKwh/mV+3YdKqQ5AMQ0r4M4ZDuOrpWkUaqO7fzAHdINzV9tEVu8vNw48z0lA==", + "version": "4.53.5", + "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.53.5.tgz", + "integrity": "sha512-txGtluxDKTxaMDzUduGP0wdfng24y1rygUMnmlUJ88fzCCULCLn7oE5kb2+tRB+MWq1QDZT6ObT5RrR8HFRKqg==", "cpu": [ "x64" ], @@ -1066,9 +1101,9 @@ ] }, "node_modules/@rollup/rollup-openharmony-arm64": { - "version": "4.53.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.53.2.tgz", - "integrity": "sha512-4VEd19Wmhr+Zy7hbUsFZ6YXEiP48hE//KPLCSVNY5RMGX2/7HZ+QkN55a3atM1C/BZCGIgqN+xrVgtdak2S9+A==", + "version": "4.53.5", + "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.53.5.tgz", + "integrity": "sha512-3DFiLPnTxiOQV993fMc+KO8zXHTcIjgaInrqlG8zDp1TlhYl6WgrOHuJkJQ6M8zHEcntSJsUp1XFZSY8C1DYbg==", "cpu": [ "arm64" ], @@ -1079,9 +1114,9 @@ ] }, "node_modules/@rollup/rollup-win32-arm64-msvc": { - "version": "4.53.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.53.2.tgz", - "integrity": "sha512-IlbHFYc/pQCgew/d5fslcy1KEaYVCJ44G8pajugd8VoOEI8ODhtb/j8XMhLpwHCMB3yk2J07ctup10gpw2nyMA==", + "version": "4.53.5", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.53.5.tgz", + "integrity": "sha512-nggc/wPpNTgjGg75hu+Q/3i32R00Lq1B6N1DO7MCU340MRKL3WZJMjA9U4K4gzy3dkZPXm9E1Nc81FItBVGRlA==", "cpu": [ "arm64" ], @@ -1092,9 +1127,9 @@ ] }, "node_modules/@rollup/rollup-win32-ia32-msvc": { - "version": "4.53.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.53.2.tgz", - "integrity": "sha512-lNlPEGgdUfSzdCWU176ku/dQRnA7W+Gp8d+cWv73jYrb8uT7HTVVxq62DUYxjbaByuf1Yk0RIIAbDzp+CnOTFg==", + "version": "4.53.5", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.53.5.tgz", + "integrity": "sha512-U/54pTbdQpPLBdEzCT6NBCFAfSZMvmjr0twhnD9f4EIvlm9wy3jjQ38yQj1AGznrNO65EWQMgm/QUjuIVrYF9w==", "cpu": [ "ia32" ], @@ -1105,9 +1140,9 @@ ] }, "node_modules/@rollup/rollup-win32-x64-gnu": { - "version": "4.53.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.53.2.tgz", - "integrity": "sha512-S6YojNVrHybQis2lYov1sd+uj7K0Q05NxHcGktuMMdIQ2VixGwAfbJ23NnlvvVV1bdpR2m5MsNBViHJKcA4ADw==", + "version": "4.53.5", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.53.5.tgz", + "integrity": "sha512-2NqKgZSuLH9SXBBV2dWNRCZmocgSOx8OJSdpRaEcRlIfX8YrKxUT6z0F1NpvDVhOsl190UFTRh2F2WDWWCYp3A==", "cpu": [ "x64" ], @@ -1118,9 +1153,9 @@ ] }, "node_modules/@rollup/rollup-win32-x64-msvc": { - "version": "4.53.2", - "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.53.2.tgz", - "integrity": "sha512-k+/Rkcyx//P6fetPoLMb8pBeqJBNGx81uuf7iljX9++yNBVRDQgD04L+SVXmXmh5ZP4/WOp4mWF0kmi06PW2tA==", + "version": "4.53.5", + "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.53.5.tgz", + "integrity": "sha512-JRpZUhCfhZ4keB5v0fe02gQJy05GqboPOaxvjugW04RLSYYoB/9t2lx2u/tMs/Na/1NXfY8QYjgRljRpN+MjTQ==", "cpu": [ "x64" ], @@ -1131,9 +1166,9 @@ ] }, "node_modules/@sidvind/better-ajv-errors": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@sidvind/better-ajv-errors/-/better-ajv-errors-4.0.0.tgz", - "integrity": "sha512-rLZQkN6IfNwG6iqZZwqFMcs7DvQX3ZrLVhsHmSO1LUA4EZAz+VZLpTBCIOFsC5Qu3xuwzVfRMZ+1rtk/mCRRZw==", + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/@sidvind/better-ajv-errors/-/better-ajv-errors-4.0.1.tgz", + "integrity": "sha512-6arF1ssKxItxgitPYXafUoLmsVBA6K7m9+ZGj6hLDoBl7nWpJ33EInwQUdHTle2METeWGxgQiqSex20KZRykew==", "dev": true, "license": "Apache-2.0", "dependencies": { @@ -1274,15 +1309,15 @@ "license": "MIT" }, "node_modules/@vitejs/plugin-react": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-5.1.0.tgz", - "integrity": "sha512-4LuWrg7EKWgQaMJfnN+wcmbAW+VSsCmqGohftWjuct47bv8uE4n/nPpq4XjJPsxgq00GGG5J8dvBczp8uxScew==", + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-5.1.2.tgz", + "integrity": "sha512-EcA07pHJouywpzsoTUqNh5NwGayl2PPVEJKUSinGGSxFGYn+shYbqMGBg6FXDqgXum9Ou/ecb+411ssw8HImJQ==", "license": "MIT", "dependencies": { - "@babel/core": "^7.28.4", + "@babel/core": "^7.28.5", "@babel/plugin-transform-react-jsx-self": "^7.27.1", "@babel/plugin-transform-react-jsx-source": "^7.27.1", - "@rolldown/pluginutils": "1.0.0-beta.43", + "@rolldown/pluginutils": "1.0.0-beta.53", "@types/babel__core": "^7.20.5", "react-refresh": "^0.18.0" }, @@ -1294,12 +1329,12 @@ } }, "node_modules/@xyflow/react": { - "version": "12.9.0", - "resolved": "https://registry.npmjs.org/@xyflow/react/-/react-12.9.0.tgz", - "integrity": "sha512-bt37E8Wf2HQ7hHQaMSnOw4UEWQqWlNwzfgF9tjix5Fu9Pn/ph3wbexSS/wbWnTkv0vhgMVyphQLfFWIuCe59hQ==", + "version": "12.10.0", + "resolved": "https://registry.npmjs.org/@xyflow/react/-/react-12.10.0.tgz", + "integrity": "sha512-eOtz3whDMWrB4KWVatIBrKuxECHqip6PfA8fTpaS2RUGVpiEAe+nqDKsLqkViVWxDGreq0lWX71Xth/SPAzXiw==", "license": "MIT", "dependencies": { - "@xyflow/system": "0.0.71", + "@xyflow/system": "0.0.74", "classcat": "^5.0.3", "zustand": "^4.4.0" }, @@ -1309,9 +1344,9 @@ } }, "node_modules/@xyflow/system": { - "version": "0.0.71", - "resolved": "https://registry.npmjs.org/@xyflow/system/-/system-0.0.71.tgz", - "integrity": "sha512-O2xIK84Uv1hH8qzeY94SKsj0R1n2jXHLsX6RZnM4x1Uc4oWiVbXDFucnkbFwhnQm3IIdAxkbgd2rEDp5oTRhhQ==", + "version": "0.0.74", + "resolved": "https://registry.npmjs.org/@xyflow/system/-/system-0.0.74.tgz", + "integrity": "sha512-7v7B/PkiVrkdZzSbL+inGAo6tkR/WQHHG0/jhSvLQToCsfa8YubOGmBYd1s08tpKpihdHDZFwzQZeR69QSBb4Q==", "license": "MIT", "dependencies": { "@types/d3-drag": "^3.0.7", @@ -1331,6 +1366,7 @@ "integrity": "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==", "dev": true, "license": "MIT", + "peer": true, "dependencies": { "fast-deep-equal": "^3.1.3", "fast-uri": "^3.0.1", @@ -1430,6 +1466,19 @@ "node": ">= 8" } }, + "node_modules/anymatch/node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, "node_modules/argparse": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", @@ -1438,9 +1487,9 @@ "license": "Python-2.0" }, "node_modules/autoprefixer": { - "version": "10.4.22", - "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.22.tgz", - "integrity": "sha512-ARe0v/t9gO28Bznv6GgqARmVqcWOV3mfgUPn9becPHMiD3o9BwlRgaeccZnwTpZ7Zwqrm+c1sUSsMxIzQzc8Xg==", + "version": "10.4.23", + "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.23.tgz", + "integrity": "sha512-YYTXSFulfwytnjAPlw8QHncHJmlvFKtczb8InXaAx9Q0LbfDnfEYDE55omerIJKihhmU61Ft+cAOSzQVaBUmeA==", "dev": true, "funding": [ { @@ -1458,10 +1507,9 @@ ], "license": "MIT", "dependencies": { - "browserslist": "^4.27.0", - "caniuse-lite": "^1.0.30001754", + "browserslist": "^4.28.1", + "caniuse-lite": "^1.0.30001760", "fraction.js": "^5.3.4", - "normalize-range": "^0.1.2", "picocolors": "^1.1.1", "postcss-value-parser": "^4.2.0" }, @@ -1476,9 +1524,9 @@ } }, "node_modules/baseline-browser-mapping": { - "version": "2.8.26", - "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.8.26.tgz", - "integrity": "sha512-73lC1ugzwoaWCLJ1LvOgrR5xsMLTqSKIEoMHVtL9E/HNk0PXtTM76ZIm84856/SF7Nv8mPZxKoBsgpm0tR1u1Q==", + "version": "2.9.7", + "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.9.7.tgz", + "integrity": "sha512-k9xFKplee6KIio3IDbwj+uaCLpqzOwakOgmqzPezM0sFJlFKcg30vk2wOiAJtkTSfx0SSQDSe8q+mWA/fSH5Zg==", "license": "Apache-2.0", "bin": { "baseline-browser-mapping": "dist/cli.js" @@ -1519,46 +1567,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/boxen/node_modules/emoji-regex": { - "version": "10.6.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-10.6.0.tgz", - "integrity": "sha512-toUI84YS5YmxW219erniWD0CIVOo46xGKColeNQRgOzDorgBi1v4D71/OFzgD9GO2UGKIv1C3Sp8DAn0+j5w7A==", - "license": "MIT" - }, - "node_modules/boxen/node_modules/string-width": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-7.2.0.tgz", - "integrity": "sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ==", - "license": "MIT", - "dependencies": { - "emoji-regex": "^10.3.0", - "get-east-asian-width": "^1.0.0", - "strip-ansi": "^7.1.0" - }, - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/boxen/node_modules/wrap-ansi": { - "version": "9.0.2", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-9.0.2.tgz", - "integrity": "sha512-42AtmgqjV+X1VpdOfyTGOYRi0/zsoLqtXQckTmqTeybT+BDIbM/Guxo7x3pE2vtpr1ok6xRqM9OpBe+Jyoqyww==", - "license": "MIT", - "dependencies": { - "ansi-styles": "^6.2.1", - "string-width": "^7.0.0", - "strip-ansi": "^7.1.0" - }, - "engines": { - "node": ">=18" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" - } - }, "node_modules/braces": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", @@ -1573,9 +1581,9 @@ } }, "node_modules/browserslist": { - "version": "4.28.0", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.28.0.tgz", - "integrity": "sha512-tbydkR/CxfMwelN0vwdP/pLkDwyAASZ+VfWm4EOwlB6SWhx1sYnWLqo8N5j0rAzPfzfRaxt0mM/4wPU/Su84RQ==", + "version": "4.28.1", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.28.1.tgz", + "integrity": "sha512-ZC5Bd0LgJXgwGqUknZY/vkUQ04r8NXnJZ3yYi4vDmSiZmC/pdSN0NbNRPxZpbtO4uAfDUAFffO8IZoM3Gj8IkA==", "funding": [ { "type": "opencollective", @@ -1591,12 +1599,13 @@ } ], "license": "MIT", + "peer": true, "dependencies": { - "baseline-browser-mapping": "^2.8.25", - "caniuse-lite": "^1.0.30001754", - "electron-to-chromium": "^1.5.249", + "baseline-browser-mapping": "^2.9.0", + "caniuse-lite": "^1.0.30001759", + "electron-to-chromium": "^1.5.263", "node-releases": "^2.0.27", - "update-browserslist-db": "^1.1.4" + "update-browserslist-db": "^1.2.0" }, "bin": { "browserslist": "cli.js" @@ -1633,9 +1642,9 @@ } }, "node_modules/caniuse-lite": { - "version": "1.0.30001754", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001754.tgz", - "integrity": "sha512-x6OeBXueoAceOmotzx3PO4Zpt4rzpeIFsSr6AAePTZxSkXiYDUmpypEl7e2+8NCd9bD7bXjqyef8CJYPC1jfxg==", + "version": "1.0.30001760", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001760.tgz", + "integrity": "sha512-7AAMPcueWELt1p3mi13HR/LHH0TJLT11cnwDJEs3xA4+CK/PLKeO9Kl1oru24htkyUKtkGCvAx4ohB0Ttry8Dw==", "funding": [ { "type": "opencollective", @@ -1933,6 +1942,7 @@ "resolved": "https://registry.npmjs.org/d3-selection/-/d3-selection-3.0.0.tgz", "integrity": "sha512-fmTRWbNMmsmWq6xJV8D19U/gw/bwrHfNXxrIN+HfZgnzqTHp9jOmKMhsTUjXOJnZOdZY9Q28y4yebKzqDKlxlQ==", "license": "ISC", + "peer": true, "engines": { "node": ">=12" } @@ -2064,16 +2074,15 @@ "license": "MIT" }, "node_modules/electron-to-chromium": { - "version": "1.5.250", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.250.tgz", - "integrity": "sha512-/5UMj9IiGDMOFBnN4i7/Ry5onJrAGSbOGo3s9FEKmwobGq6xw832ccET0CE3CkkMBZ8GJSlUIesZofpyurqDXw==", + "version": "1.5.267", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.267.tgz", + "integrity": "sha512-0Drusm6MVRXSOJpGbaSVgcQsuB4hEkMpHXaVstcPmhu5LIedxs1xNK/nIxmQIU/RPC0+1/o0AVZfBTkTNJOdUw==", "license": "ISC" }, "node_modules/emoji-regex": { - "version": "9.2.2", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz", - "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", - "dev": true, + "version": "10.6.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-10.6.0.tgz", + "integrity": "sha512-toUI84YS5YmxW219erniWD0CIVOo46xGKColeNQRgOzDorgBi1v4D71/OFzgD9GO2UGKIv1C3Sp8DAn0+j5w7A==", "license": "MIT" }, "node_modules/entities": { @@ -2090,11 +2099,12 @@ } }, "node_modules/esbuild": { - "version": "0.25.11", - "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.25.11.tgz", - "integrity": "sha512-KohQwyzrKTQmhXDW1PjCv3Tyspn9n5GcY2RTDqeORIdIJY8yKIF7sTSopFmn/wpMPW4rdPXI0UE5LJLuq3bx0Q==", + "version": "0.27.0", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.27.0.tgz", + "integrity": "sha512-jd0f4NHbD6cALCyGElNpGAOtWxSq46l9X/sWB0Nzd5er4Kz2YTm+Vl0qKFT9KUJvD8+fiO8AvoHhFvEatfVixA==", "hasInstallScript": true, "license": "MIT", + "peer": true, "bin": { "esbuild": "bin/esbuild" }, @@ -2102,32 +2112,32 @@ "node": ">=18" }, "optionalDependencies": { - "@esbuild/aix-ppc64": "0.25.11", - "@esbuild/android-arm": "0.25.11", - "@esbuild/android-arm64": "0.25.11", - "@esbuild/android-x64": "0.25.11", - "@esbuild/darwin-arm64": "0.25.11", - "@esbuild/darwin-x64": "0.25.11", - "@esbuild/freebsd-arm64": "0.25.11", - "@esbuild/freebsd-x64": "0.25.11", - "@esbuild/linux-arm": "0.25.11", - "@esbuild/linux-arm64": "0.25.11", - "@esbuild/linux-ia32": "0.25.11", - "@esbuild/linux-loong64": "0.25.11", - "@esbuild/linux-mips64el": "0.25.11", - "@esbuild/linux-ppc64": "0.25.11", - "@esbuild/linux-riscv64": "0.25.11", - "@esbuild/linux-s390x": "0.25.11", - "@esbuild/linux-x64": "0.25.11", - "@esbuild/netbsd-arm64": "0.25.11", - "@esbuild/netbsd-x64": "0.25.11", - "@esbuild/openbsd-arm64": "0.25.11", - "@esbuild/openbsd-x64": "0.25.11", - "@esbuild/openharmony-arm64": "0.25.11", - "@esbuild/sunos-x64": "0.25.11", - "@esbuild/win32-arm64": "0.25.11", - "@esbuild/win32-ia32": "0.25.11", - "@esbuild/win32-x64": "0.25.11" + "@esbuild/aix-ppc64": "0.27.0", + "@esbuild/android-arm": "0.27.0", + "@esbuild/android-arm64": "0.27.0", + "@esbuild/android-x64": "0.27.0", + "@esbuild/darwin-arm64": "0.27.0", + "@esbuild/darwin-x64": "0.27.0", + "@esbuild/freebsd-arm64": "0.27.0", + "@esbuild/freebsd-x64": "0.27.0", + "@esbuild/linux-arm": "0.27.0", + "@esbuild/linux-arm64": "0.27.0", + "@esbuild/linux-ia32": "0.27.0", + "@esbuild/linux-loong64": "0.27.0", + "@esbuild/linux-mips64el": "0.27.0", + "@esbuild/linux-ppc64": "0.27.0", + "@esbuild/linux-riscv64": "0.27.0", + "@esbuild/linux-s390x": "0.27.0", + "@esbuild/linux-x64": "0.27.0", + "@esbuild/netbsd-arm64": "0.27.0", + "@esbuild/netbsd-x64": "0.27.0", + "@esbuild/openbsd-arm64": "0.27.0", + "@esbuild/openbsd-x64": "0.27.0", + "@esbuild/openharmony-arm64": "0.27.0", + "@esbuild/sunos-x64": "0.27.0", + "@esbuild/win32-arm64": "0.27.0", + "@esbuild/win32-ia32": "0.27.0", + "@esbuild/win32-x64": "0.27.0" } }, "node_modules/escalade": { @@ -2163,6 +2173,20 @@ ], "license": "BSD-3-Clause" }, + "node_modules/fdir": { + "version": "6.4.0", + "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.4.0.tgz", + "integrity": "sha512-3oB133prH1o4j/L5lLW7uOCF1PlD+/It2L0eL/iAqWMB91RBbqTewABqxhj0ibBd90EEmWZq7ntIWzVaWcXTGQ==", + "license": "MIT", + "peerDependencies": { + "picomatch": "^3 || ^4" + }, + "peerDependenciesMeta": { + "picomatch": { + "optional": true + } + } + }, "node_modules/fill-range": { "version": "7.1.1", "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", @@ -2223,9 +2247,9 @@ } }, "node_modules/fsevents": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", - "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", + "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", "hasInstallScript": true, "license": "MIT", "optional": true, @@ -2267,22 +2291,16 @@ } }, "node_modules/glob": { - "version": "11.0.3", - "resolved": "https://registry.npmjs.org/glob/-/glob-11.0.3.tgz", - "integrity": "sha512-2Nim7dha1KVkaiF4q6Dj+ngPPMdfvLJEOpZk/jKiUAkqKebpGAWQXAq9z1xu9HKu5lWfqw/FASuccEjyznjPaA==", + "version": "13.0.0", + "resolved": "https://registry.npmjs.org/glob/-/glob-13.0.0.tgz", + "integrity": "sha512-tvZgpqk6fz4BaNZ66ZsRaZnbHvP/jG3uKJvAZOwEVUL4RTA5nJeeLYfyN9/VA8NX/V3IBG+hkeuGpKjvELkVhA==", "dev": true, - "license": "ISC", + "license": "BlueOak-1.0.0", "dependencies": { - "foreground-child": "^3.3.1", - "jackspeak": "^4.1.1", - "minimatch": "^10.0.3", + "minimatch": "^10.1.1", "minipass": "^7.1.2", - "package-json-from-dist": "^1.0.0", "path-scurry": "^2.0.0" }, - "bin": { - "glob": "dist/esm/bin.mjs" - }, "engines": { "node": "20 || >=22" }, @@ -2311,9 +2329,9 @@ "license": "ISC" }, "node_modules/html-validate": { - "version": "10.3.1", - "resolved": "https://registry.npmjs.org/html-validate/-/html-validate-10.3.1.tgz", - "integrity": "sha512-BgiuKxwvL6uuxQYCLQAU6hyldyyGsqs3ij86DJGCuZ72CLyEHyZVa0aiL/d6L+D4+U7cLe3pgIaEFFP0PLGhRw==", + "version": "10.5.0", + "resolved": "https://registry.npmjs.org/html-validate/-/html-validate-10.5.0.tgz", + "integrity": "sha512-7uzzfy1fAaZevqKlE1ISaLR5h0IedkJOin/vh+nq3X1fXNdd1/ZKF0BcJSqBHUFJfVMgh7g3zXIOMjQ0rzVW0g==", "dev": true, "funding": [ { @@ -2324,9 +2342,9 @@ "license": "MIT", "dependencies": { "@html-validate/stylish": "^4.1.0", - "@sidvind/better-ajv-errors": "4.0.0", + "@sidvind/better-ajv-errors": "4.0.1", "ajv": "^8.0.0", - "glob": "^11.0.0", + "glob": "^13.0.0", "kleur": "^4.1.0", "minimist": "^1.2.0", "prompts": "^2.0.0", @@ -2342,7 +2360,7 @@ "jest": "^28.1.3 || ^29.0.3 || ^30.0.0", "jest-diff": "^28.1.3 || ^29.0.3 || ^30.0.0", "jest-snapshot": "^28.1.3 || ^29.0.3 || ^30.0.0", - "vitest": "^1.0.0 || ^2.0.0 || ^3.0.0 || ^4.0.0" + "vitest": "^1.0.0 || ^2.0.0 || ^3.0.0 || ^4.0.1" }, "peerDependenciesMeta": { "jest": { @@ -2512,9 +2530,9 @@ "license": "MIT" }, "node_modules/js-yaml": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", - "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.1.tgz", + "integrity": "sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA==", "dev": true, "license": "MIT", "dependencies": { @@ -2586,9 +2604,9 @@ } }, "node_modules/katex": { - "version": "0.16.25", - "resolved": "https://registry.npmjs.org/katex/-/katex-0.16.25.tgz", - "integrity": "sha512-woHRUZ/iF23GBP1dkDQMh1QBad9dmr8/PAwNA54VrSOVYgI12MAcE14TqnDdQOdzyEonGzMepYnqBMYdsoAr8Q==", + "version": "0.16.27", + "resolved": "https://registry.npmjs.org/katex/-/katex-0.16.27.tgz", + "integrity": "sha512-aeQoDkuRWSqQN6nSvVCEFvfXdqo1OQiCmmW1kc9xSdjutPv7BGO7pqY9sQRJpMOGrEdfDgF2TfRXe5eUAD2Waw==", "dev": true, "funding": [ "https://opencollective.com/katex", @@ -2623,25 +2641,25 @@ } }, "node_modules/likec4": { - "version": "1.44.0", - "resolved": "https://registry.npmjs.org/likec4/-/likec4-1.44.0.tgz", - "integrity": "sha512-lc9g0dZrg6DMNBDxZc73tCX3mi6KQVaIo4X56EJrqsaEElPmffjidzJzdbG3hPENnc9Zo+kYlIRvUysPA3qBYA==", + "version": "1.46.0", + "resolved": "https://registry.npmjs.org/likec4/-/likec4-1.46.0.tgz", + "integrity": "sha512-HJ6VMDNSrpLJE16fLNxr1cK9geaRC2PdKTI8Aa+Xn3vfdTFSCNsMJhrqt24LeRCshCjWLuqAECNmz2V/74JKlg==", "license": "MIT", "dependencies": { - "@hpcc-js/wasm-graphviz": "1.15.0", - "@likec4/core": "1.44.0", - "@vitejs/plugin-react": "^5.1.0", - "@xyflow/react": "12.9.0", - "@xyflow/system": "0.0.71", + "@hpcc-js/wasm-graphviz": "1.16.0", + "@likec4/core": "1.46.0", + "@vitejs/plugin-react": "^5.1.1", + "@xyflow/react": "12.10.0", + "@xyflow/system": "0.0.74", "boxen": "^8.0.1", "bundle-require": "^5.1.0", - "esbuild": "0.25.11", + "esbuild": "0.27.0", "fdir": "6.4.0", "playwright": "1.56.1", - "rollup": "^4.53.2", - "std-env": "^3.9.0", + "rollup": "^4.53.3", + "std-env": "^3.10.0", "type-fest": "^4.41.0", - "vite": "^7.2.2", + "vite": "^7.2.6", "yargs": "17.7.2" }, "bin": { @@ -2655,34 +2673,6 @@ "react-dom": "^18.x || ^19.x" } }, - "node_modules/likec4/node_modules/fdir": { - "version": "6.4.0", - "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.4.0.tgz", - "integrity": "sha512-3oB133prH1o4j/L5lLW7uOCF1PlD+/It2L0eL/iAqWMB91RBbqTewABqxhj0ibBd90EEmWZq7ntIWzVaWcXTGQ==", - "license": "MIT", - "peerDependencies": { - "picomatch": "^3 || ^4" - }, - "peerDependenciesMeta": { - "picomatch": { - "optional": true - } - } - }, - "node_modules/likec4/node_modules/picomatch": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.3.tgz", - "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", - "license": "MIT", - "optional": true, - "peer": true, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/jonschlinkert" - } - }, "node_modules/lilconfig": { "version": "3.1.3", "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-3.1.3.tgz", @@ -2716,13 +2706,12 @@ } }, "node_modules/lru-cache": { - "version": "11.2.2", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.2.2.tgz", - "integrity": "sha512-F9ODfyqML2coTIsQpSkRHnLSZMtkU8Q+mSfcaIyKwy58u+8k5nvAYeiNhsyMARvzNcXJ9QfWVrcPsC9e9rAxtg==", - "dev": true, + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", "license": "ISC", - "engines": { - "node": "20 || >=22" + "dependencies": { + "yallist": "^3.0.2" } }, "node_modules/markdown-it": { @@ -2792,6 +2781,30 @@ "node": ">=20" } }, + "node_modules/markdownlint-cli/node_modules/glob": { + "version": "11.0.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-11.0.3.tgz", + "integrity": "sha512-2Nim7dha1KVkaiF4q6Dj+ngPPMdfvLJEOpZk/jKiUAkqKebpGAWQXAq9z1xu9HKu5lWfqw/FASuccEjyznjPaA==", + "dev": true, + "license": "ISC", + "dependencies": { + "foreground-child": "^3.3.1", + "jackspeak": "^4.1.1", + "minimatch": "^10.0.3", + "minipass": "^7.1.2", + "package-json-from-dist": "^1.0.0", + "path-scurry": "^2.0.0" + }, + "bin": { + "glob": "dist/esm/bin.mjs" + }, + "engines": { + "node": "20 || >=22" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, "node_modules/markdownlint-cli/node_modules/minimatch": { "version": "10.0.3", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.0.3.tgz", @@ -3427,16 +3440,6 @@ "node": ">=0.10.0" } }, - "node_modules/normalize-range": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/normalize-range/-/normalize-range-0.1.2.tgz", - "integrity": "sha512-bdok/XvKII3nUpklnV6P2hxtMNrCboOjAcyBuQnWEhO665FwrSNRxU+AqpsyvO6LgGYPspN+lu5CLtw4jPRKNA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/package-json-from-dist": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.1.tgz", @@ -3491,6 +3494,16 @@ "url": "https://github.com/sponsors/isaacs" } }, + "node_modules/path-scurry/node_modules/lru-cache": { + "version": "11.2.4", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.2.4.tgz", + "integrity": "sha512-B5Y16Jr9LB9dHVkh6ZevG+vAbOsNOYCX+sXvFWFu7B3Iz5mijW3zdbMyhsh8ANd2mSWBYdJgnqi+mL7/LrOPYg==", + "dev": true, + "license": "BlueOak-1.0.0", + "engines": { + "node": "20 || >=22" + } + }, "node_modules/picocolors": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", @@ -3498,13 +3511,13 @@ "license": "ISC" }, "node_modules/picomatch": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", - "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", - "dev": true, + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.3.tgz", + "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", "license": "MIT", + "peer": true, "engines": { - "node": ">=8.6" + "node": ">=12" }, "funding": { "url": "https://github.com/sponsors/jonschlinkert" @@ -3550,20 +3563,6 @@ "node": ">=18" } }, - "node_modules/playwright/node_modules/fsevents": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", - "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", - "hasInstallScript": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": "^8.16.0 || ^10.6.0 || >=11.0.0" - } - }, "node_modules/postcss": { "version": "8.5.6", "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.6.tgz", @@ -3583,6 +3582,7 @@ } ], "license": "MIT", + "peer": true, "dependencies": { "nanoid": "^3.3.11", "picocolors": "^1.1.1", @@ -3740,9 +3740,9 @@ } }, "node_modules/react": { - "version": "19.2.0", - "resolved": "https://registry.npmjs.org/react/-/react-19.2.0.tgz", - "integrity": "sha512-tmbWg6W31tQLeB5cdIBOicJDJRR2KzXsV7uSK9iNfLWQ5bIZfxuPEHp7M8wiHyHnn0DD1i7w3Zmin0FtkrwoCQ==", + "version": "19.2.3", + "resolved": "https://registry.npmjs.org/react/-/react-19.2.3.tgz", + "integrity": "sha512-Ku/hhYbVjOQnXDZFv2+RibmLFGwFdeeKHFcOTlrt7xplBnya5OGn/hIRDsqDiSUcfORsDC7MPxwork8jBwsIWA==", "license": "MIT", "peer": true, "engines": { @@ -3750,16 +3750,16 @@ } }, "node_modules/react-dom": { - "version": "19.2.0", - "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.2.0.tgz", - "integrity": "sha512-UlbRu4cAiGaIewkPyiRGJk0imDN2T3JjieT6spoL2UeSf5od4n5LB/mQ4ejmxhCFT1tYe8IvaFulzynWovsEFQ==", + "version": "19.2.3", + "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.2.3.tgz", + "integrity": "sha512-yELu4WmLPw5Mr/lmeEpox5rw3RETacE++JgHqQzd2dg+YbJuat3jH4ingc+WPZhxaoFzdv9y33G+F7Nl5O0GBg==", "license": "MIT", "peer": true, "dependencies": { "scheduler": "^0.27.0" }, "peerDependencies": { - "react": "^19.2.0" + "react": "^19.2.3" } }, "node_modules/react-refresh": { @@ -3794,6 +3794,19 @@ "node": ">=8.10.0" } }, + "node_modules/readdirp/node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, "node_modules/require-directory": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", @@ -3814,9 +3827,9 @@ } }, "node_modules/rollup": { - "version": "4.53.2", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.53.2.tgz", - "integrity": "sha512-MHngMYwGJVi6Fmnk6ISmnk7JAHRNF0UkuucA0CUW3N3a4KnONPEZz+vUanQP/ZC/iY1Qkf3bwPWzyY84wEks1g==", + "version": "4.53.5", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.53.5.tgz", + "integrity": "sha512-iTNAbFSlRpcHeeWu73ywU/8KuU/LZmNCSxp6fjQkJBD3ivUb8tpDrXhIxEzA05HlYMEwmtaUnb3RP+YNv162OQ==", "license": "MIT", "dependencies": { "@types/estree": "1.0.8" @@ -3829,28 +3842,28 @@ "npm": ">=8.0.0" }, "optionalDependencies": { - "@rollup/rollup-android-arm-eabi": "4.53.2", - "@rollup/rollup-android-arm64": "4.53.2", - "@rollup/rollup-darwin-arm64": "4.53.2", - "@rollup/rollup-darwin-x64": "4.53.2", - "@rollup/rollup-freebsd-arm64": "4.53.2", - "@rollup/rollup-freebsd-x64": "4.53.2", - "@rollup/rollup-linux-arm-gnueabihf": "4.53.2", - "@rollup/rollup-linux-arm-musleabihf": "4.53.2", - "@rollup/rollup-linux-arm64-gnu": "4.53.2", - "@rollup/rollup-linux-arm64-musl": "4.53.2", - "@rollup/rollup-linux-loong64-gnu": "4.53.2", - "@rollup/rollup-linux-ppc64-gnu": "4.53.2", - "@rollup/rollup-linux-riscv64-gnu": "4.53.2", - "@rollup/rollup-linux-riscv64-musl": "4.53.2", - "@rollup/rollup-linux-s390x-gnu": "4.53.2", - "@rollup/rollup-linux-x64-gnu": "4.53.2", - "@rollup/rollup-linux-x64-musl": "4.53.2", - "@rollup/rollup-openharmony-arm64": "4.53.2", - "@rollup/rollup-win32-arm64-msvc": "4.53.2", - "@rollup/rollup-win32-ia32-msvc": "4.53.2", - "@rollup/rollup-win32-x64-gnu": "4.53.2", - "@rollup/rollup-win32-x64-msvc": "4.53.2", + "@rollup/rollup-android-arm-eabi": "4.53.5", + "@rollup/rollup-android-arm64": "4.53.5", + "@rollup/rollup-darwin-arm64": "4.53.5", + "@rollup/rollup-darwin-x64": "4.53.5", + "@rollup/rollup-freebsd-arm64": "4.53.5", + "@rollup/rollup-freebsd-x64": "4.53.5", + "@rollup/rollup-linux-arm-gnueabihf": "4.53.5", + "@rollup/rollup-linux-arm-musleabihf": "4.53.5", + "@rollup/rollup-linux-arm64-gnu": "4.53.5", + "@rollup/rollup-linux-arm64-musl": "4.53.5", + "@rollup/rollup-linux-loong64-gnu": "4.53.5", + "@rollup/rollup-linux-ppc64-gnu": "4.53.5", + "@rollup/rollup-linux-riscv64-gnu": "4.53.5", + "@rollup/rollup-linux-riscv64-musl": "4.53.5", + "@rollup/rollup-linux-s390x-gnu": "4.53.5", + "@rollup/rollup-linux-x64-gnu": "4.53.5", + "@rollup/rollup-linux-x64-musl": "4.53.5", + "@rollup/rollup-openharmony-arm64": "4.53.5", + "@rollup/rollup-win32-arm64-msvc": "4.53.5", + "@rollup/rollup-win32-ia32-msvc": "4.53.5", + "@rollup/rollup-win32-x64-gnu": "4.53.5", + "@rollup/rollup-win32-x64-msvc": "4.53.5", "fsevents": "~2.3.2" } }, @@ -3874,8 +3887,7 @@ "version": "0.27.0", "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.27.0.tgz", "integrity": "sha512-eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q==", - "license": "MIT", - "peer": true + "license": "MIT" }, "node_modules/semver": { "version": "7.7.3", @@ -3975,18 +3987,17 @@ "license": "MIT" }, "node_modules/string-width": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz", - "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==", - "dev": true, + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-7.2.0.tgz", + "integrity": "sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ==", "license": "MIT", "dependencies": { - "eastasianwidth": "^0.2.0", - "emoji-regex": "^9.2.2", - "strip-ansi": "^7.0.1" + "emoji-regex": "^10.3.0", + "get-east-asian-width": "^1.0.0", + "strip-ansi": "^7.1.0" }, "engines": { - "node": ">=12" + "node": ">=18" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" @@ -4130,18 +4141,6 @@ } } }, - "node_modules/tinyglobby/node_modules/picomatch": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.3.tgz", - "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", - "license": "MIT", - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/jonschlinkert" - } - }, "node_modules/to-regex-range": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", @@ -4185,9 +4184,9 @@ } }, "node_modules/update-browserslist-db": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.1.4.tgz", - "integrity": "sha512-q0SPT4xyU84saUX+tomz1WLkxUbuaJnR1xWt17M7fJtEJigJeWUNGUqrauFXsHnqev9y9JTRGwk13tFBuKby4A==", + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.2.2.tgz", + "integrity": "sha512-E85pfNzMQ9jpKkA7+TJAi4TJN+tBCuWh5rUcS/sv6cFi+1q9LYDwDI5dpUL0u/73EElyQ8d3TEaeW4sPedBqYA==", "funding": [ { "type": "opencollective", @@ -4224,12 +4223,13 @@ } }, "node_modules/vite": { - "version": "7.2.2", - "resolved": "https://registry.npmjs.org/vite/-/vite-7.2.2.tgz", - "integrity": "sha512-BxAKBWmIbrDgrokdGZH1IgkIk/5mMHDreLDmCJ0qpyJaAteP8NvMhkwr/ZCQNqNH97bw/dANTE9PDzqwJghfMQ==", + "version": "7.3.0", + "resolved": "https://registry.npmjs.org/vite/-/vite-7.3.0.tgz", + "integrity": "sha512-dZwN5L1VlUBewiP6H9s2+B3e3Jg96D0vzN+Ry73sOefebhYr9f94wwkMNN/9ouoU8pV1BqA1d1zGk8928cx0rg==", "license": "MIT", + "peer": true, "dependencies": { - "esbuild": "^0.25.0", + "esbuild": "^0.27.0", "fdir": "^6.5.0", "picomatch": "^4.0.3", "postcss": "^8.5.6", @@ -4314,16 +4314,18 @@ } } }, - "node_modules/vite/node_modules/picomatch": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.3.tgz", - "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", + "node_modules/vite/node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "hasInstallScript": true, "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/jonschlinkert" + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" } }, "node_modules/which": { @@ -4357,43 +4359,19 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/widest-line/node_modules/emoji-regex": { - "version": "10.6.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-10.6.0.tgz", - "integrity": "sha512-toUI84YS5YmxW219erniWD0CIVOo46xGKColeNQRgOzDorgBi1v4D71/OFzgD9GO2UGKIv1C3Sp8DAn0+j5w7A==", - "license": "MIT" - }, - "node_modules/widest-line/node_modules/string-width": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-7.2.0.tgz", - "integrity": "sha512-tsaTIkKW9b4N+AEj+SVA+WhJzV7/zMhcSu78mLKWSk7cXMOSHsBKFWUs0fWwq8QyK3MgJBQRX6Gbi4kYbdvGkQ==", + "node_modules/wrap-ansi": { + "version": "9.0.2", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-9.0.2.tgz", + "integrity": "sha512-42AtmgqjV+X1VpdOfyTGOYRi0/zsoLqtXQckTmqTeybT+BDIbM/Guxo7x3pE2vtpr1ok6xRqM9OpBe+Jyoqyww==", "license": "MIT", "dependencies": { - "emoji-regex": "^10.3.0", - "get-east-asian-width": "^1.0.0", + "ansi-styles": "^6.2.1", + "string-width": "^7.0.0", "strip-ansi": "^7.1.0" }, "engines": { "node": ">=18" }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/wrap-ansi": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz", - "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "ansi-styles": "^6.1.0", - "string-width": "^5.0.1", - "strip-ansi": "^7.0.1" - }, - "engines": { - "node": ">=12" - }, "funding": { "url": "https://github.com/chalk/wrap-ansi?sponsor=1" } @@ -4494,16 +4472,20 @@ "license": "ISC" }, "node_modules/yaml": { - "version": "2.8.1", - "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.8.1.tgz", - "integrity": "sha512-lcYcMxX2PO9XMGvAJkJ3OsNMw+/7FKes7/hgerGUYWIoWu5j/+YQqcZr5JnPZWzOsEBgMbSbiSTn/dv/69Mkpw==", + "version": "2.8.2", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.8.2.tgz", + "integrity": "sha512-mplynKqc1C2hTVYxd0PU2xQAc22TI1vShAYGksCCfxbn/dFwnHTNi1bvYsBTkhdUNtGIf5xNOg938rrSSYvS9A==", "devOptional": true, "license": "ISC", + "peer": true, "bin": { "yaml": "bin.mjs" }, "engines": { "node": ">= 14.6" + }, + "funding": { + "url": "https://github.com/sponsors/eemeli" } }, "node_modules/yargs": { diff --git a/resources/doc-likec4/package-lock.json b/resources/doc-likec4/package-lock.json new file mode 100644 index 0000000..fd4ba24 --- /dev/null +++ b/resources/doc-likec4/package-lock.json @@ -0,0 +1,6 @@ +{ + "name": "doc-likec4", + "lockfileVersion": 3, + "requires": true, + "packages": {} +} diff --git a/resources/edp-likec4/package-lock.json b/resources/edp-likec4/package-lock.json new file mode 100644 index 0000000..602e4bf --- /dev/null +++ b/resources/edp-likec4/package-lock.json @@ -0,0 +1,6 @@ +{ + "name": "edp-likec4", + "lockfileVersion": 3, + "requires": true, + "packages": {} +} diff --git a/static/js/likec4-webcomponent.js b/static/js/likec4-webcomponent.js index e42f74a..11c2030 100644 --- a/static/js/likec4-webcomponent.js +++ b/static/js/likec4-webcomponent.js @@ -1,4 +1,4 @@ -var LikeC4Views=(function(d6){"use strict";/* prettier-ignore-start */ +var LikeC4Views=(function(h6){"use strict";/* prettier-ignore-start */ /* eslint-disable */ /****************************************************************************** @@ -7,8 +7,7 @@ var LikeC4Views=(function(d6){"use strict";/* prettier-ignore-start */ ******************************************************************************/ -function S1e(e,r){for(var n=0;no[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function Vz(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var u6={exports:{}},p1={};var qz;function C1e(){if(qz)return p1;qz=1;var e=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function n(o,a,i){var s=null;if(i!==void 0&&(s=""+i),a.key!==void 0&&(s=""+a.key),"key"in a){i={};for(var l in a)l!=="key"&&(i[l]=a[l])}else i=a;return a=i.ref,{$$typeof:e,type:o,key:s,ref:a!==void 0?a:null,props:i}}return p1.Fragment=r,p1.jsx=n,p1.jsxs=n,p1}var Uz;function T1e(){return Uz||(Uz=1,u6.exports=C1e()),u6.exports}var y=T1e(),p6={exports:{}},Ot={};var Wz;function A1e(){if(Wz)return Ot;Wz=1;var e=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),u=Symbol.for("react.lazy"),h=Symbol.for("react.activity"),f=Symbol.iterator;function g(G){return G===null||typeof G!="object"?null:(G=f&&G[f]||G["@@iterator"],typeof G=="function"?G:null)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,w={};function k(G,K,j){this.props=G,this.context=K,this.refs=w,this.updater=j||b}k.prototype.isReactComponent={},k.prototype.setState=function(G,K){if(typeof G!="object"&&typeof G!="function"&&G!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,G,K,"setState")},k.prototype.forceUpdate=function(G){this.updater.enqueueForceUpdate(this,G,"forceUpdate")};function C(){}C.prototype=k.prototype;function _(G,K,j){this.props=G,this.context=K,this.refs=w,this.updater=j||b}var T=_.prototype=new C;T.constructor=_,x(T,k.prototype),T.isPureReactComponent=!0;var A=Array.isArray;function R(){}var D={H:null,A:null,T:null,S:null},N=Object.prototype.hasOwnProperty;function P(G,K,j){var Y=j.ref;return{$$typeof:e,type:G,key:K,ref:Y!==void 0?Y:null,props:j}}function O(G,K){return P(G.type,K,G.props)}function F(G){return typeof G=="object"&&G!==null&&G.$$typeof===e}function L(G){var K={"=":"=0",":":"=2"};return"$"+G.replace(/[=:]/g,function(j){return K[j]})}var U=/\/+/g;function M(G,K){return typeof G=="object"&&G!==null&&G.key!=null?L(""+G.key):K.toString(36)}function V(G){switch(G.status){case"fulfilled":return G.value;case"rejected":throw G.reason;default:switch(typeof G.status=="string"?G.then(R,R):(G.status="pending",G.then(function(K){G.status==="pending"&&(G.status="fulfilled",G.value=K)},function(K){G.status==="pending"&&(G.status="rejected",G.reason=K)})),G.status){case"fulfilled":return G.value;case"rejected":throw G.reason}}throw G}function I(G,K,j,Y,Q){var J=typeof G;(J==="undefined"||J==="boolean")&&(G=null);var ie=!1;if(G===null)ie=!0;else switch(J){case"bigint":case"string":case"number":ie=!0;break;case"object":switch(G.$$typeof){case e:case r:ie=!0;break;case u:return ie=G._init,I(ie(G._payload),K,j,Y,Q)}}if(ie)return Q=Q(G),ie=Y===""?"."+M(G,0):Y,A(Q)?(j="",ie!=null&&(j=ie.replace(U,"$&/")+"/"),I(Q,K,j,"",function(ge){return ge})):Q!=null&&(F(Q)&&(Q=O(Q,j+(Q.key==null||G&&G.key===Q.key?"":(""+Q.key).replace(U,"$&/")+"/")+ie)),K.push(Q)),1;ie=0;var ne=Y===""?".":Y+":";if(A(G))for(var re=0;re"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(r){console.error(r)}}return e(),f6.exports=R1e(),f6.exports}var Ki=Kz();const Zz=Vz(Ki);function N1e(e,r,n){let o=a=>e(a,...r);return n===void 0?o:Object.assign(o,{lazy:n,lazyArgs:r})}function Do(e,r,n){let o=e.length-r.length;if(o===0)return e(...r);if(o===1)return N1e(e,r,n);throw Error("Wrong number of arguments")}function Kl(...e){return Do(D1e,e)}const D1e=(e,r)=>e.length>=r;function bt(e,r){if(typeof e>"u"||e==null){const n=typeof r=="function"?r():r;throw new Error(n??`Expected defined value, but received ${e}`)}return e}function at(e,r){if(!e)throw new Error(r??"Invariant failed")}function Zi(e){throw new Error(`NonExhaustive value: ${e}`)}function yr(e,r,n){const o=typeof r=="symbol"?r:Symbol.for(r);return e.hasOwnProperty(o)||Object.defineProperty(e,o,{enumerable:!1,writable:!1,value:n()}),e[o]}function $1e(...e){return Do(P1e,e)}function P1e(e,r){let n={};for(let[o,a]of e.entries())n[a]=r(a,o,e);return n}function Vv(...e){return Do(h1,e)}function h1(e,r){if(e===r||Object.is(e,r))return!0;if(typeof e!="object"||typeof r!="object"||e===null||r===null||Object.getPrototypeOf(e)!==Object.getPrototypeOf(r))return!1;if(Array.isArray(e))return M1e(e,r);if(e instanceof Map)return z1e(e,r);if(e instanceof Set)return I1e(e,r);if(e instanceof Date)return e.getTime()===r.getTime();if(e instanceof RegExp)return e.toString()===r.toString();if(Object.keys(e).length!==Object.keys(r).length)return!1;for(let[n,o]of Object.entries(e))if(!(n in r)||!h1(o,r[n]))return!1;return!0}function M1e(e,r){if(e.length!==r.length)return!1;for(let[n,o]of e.entries())if(!h1(o,r[n]))return!1;return!0}function z1e(e,r){if(e.size!==r.size)return!1;for(let[n,o]of e.entries())if(!r.has(n)||!h1(o,r.get(n)))return!1;return!0}function I1e(e,r){if(e.size!==r.size)return!1;let n=[...r];for(let o of e){let a=!1;for(let[i,s]of n.entries())if(h1(o,s)){a=!0,n.splice(i,1);break}if(!a)return!1}return!0}const{min:O1e,max:j1e}=Math,Ou=(e,r=0,n=1)=>O1e(j1e(r,e),n),m6=e=>{e._clipped=!1,e._unclipped=e.slice(0);for(let r=0;r<=3;r++)r<3?((e[r]<0||e[r]>255)&&(e._clipped=!0),e[r]=Ou(e[r],0,255)):r===3&&(e[r]=Ou(e[r],0,1));return e},Qz={};for(let e of["Boolean","Number","String","Function","Array","Date","RegExp","Undefined","Null"])Qz[`[object ${e}]`]=e.toLowerCase();function Xt(e){return Qz[Object.prototype.toString.call(e)]||"object"}const Ft=(e,r=null)=>e.length>=3?Array.prototype.slice.call(e):Xt(e[0])=="object"&&r?r.split("").filter(n=>e[0][n]!==void 0).map(n=>e[0][n]):e[0].slice(0),Kh=e=>{if(e.length<2)return null;const r=e.length-1;return Xt(e[r])=="string"?e[r].toLowerCase():null},{PI:qv,min:Jz,max:eI}=Math,si=e=>Math.round(e*100)/100,g6=e=>Math.round(e*100)/100,Zl=qv*2,y6=qv/3,L1e=qv/180,B1e=180/qv;function tI(e){return[...e.slice(0,3).reverse(),...e.slice(3)]}const jt={format:{},autodetect:[]};let Ve=class{constructor(...r){const n=this;if(Xt(r[0])==="object"&&r[0].constructor&&r[0].constructor===this.constructor)return r[0];let o=Kh(r),a=!1;if(!o){a=!0,jt.sorted||(jt.autodetect=jt.autodetect.sort((i,s)=>s.p-i.p),jt.sorted=!0);for(let i of jt.autodetect)if(o=i.test(...r),o)break}if(jt.format[o]){const i=jt.format[o].apply(null,a?r:r.slice(0,-1));n._rgb=m6(i)}else throw new Error("unknown format: "+r);n._rgb.length===3&&n._rgb.push(1)}toString(){return Xt(this.hex)=="function"?this.hex():`[${this._rgb.join(",")}]`}};const F1e="3.1.2",Lt=(...e)=>new Ve(...e);Lt.version=F1e;const Zh={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",laserlemon:"#ffff54",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrod:"#fafad2",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",maroon2:"#7f0000",maroon3:"#b03060",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",purple2:"#7f007f",purple3:"#a020f0",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},H1e=/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,V1e=/^#?([A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/,rI=e=>{if(e.match(H1e)){(e.length===4||e.length===7)&&(e=e.substr(1)),e.length===3&&(e=e.split(""),e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]);const r=parseInt(e,16),n=r>>16,o=r>>8&255,a=r&255;return[n,o,a,1]}if(e.match(V1e)){(e.length===5||e.length===9)&&(e=e.substr(1)),e.length===4&&(e=e.split(""),e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]);const r=parseInt(e,16),n=r>>24&255,o=r>>16&255,a=r>>8&255,i=Math.round((r&255)/255*100)/100;return[n,o,a,i]}throw new Error(`unknown hex color: ${e}`)},{round:Uv}=Math,nI=(...e)=>{let[r,n,o,a]=Ft(e,"rgba"),i=Kh(e)||"auto";a===void 0&&(a=1),i==="auto"&&(i=a<1?"rgba":"rgb"),r=Uv(r),n=Uv(n),o=Uv(o);let l="000000"+(r<<16|n<<8|o).toString(16);l=l.substr(l.length-6);let c="0"+Uv(a*255).toString(16);switch(c=c.substr(c.length-2),i.toLowerCase()){case"rgba":return`#${l}${c}`;case"argb":return`#${c}${l}`;default:return`#${l}`}};Ve.prototype.name=function(){const e=nI(this._rgb,"rgb");for(let r of Object.keys(Zh))if(Zh[r]===e)return r.toLowerCase();return e},jt.format.named=e=>{if(e=e.toLowerCase(),Zh[e])return rI(Zh[e]);throw new Error("unknown color name: "+e)},jt.autodetect.push({p:5,test:(e,...r)=>{if(!r.length&&Xt(e)==="string"&&Zh[e.toLowerCase()])return"named"}}),Ve.prototype.alpha=function(e,r=!1){return e!==void 0&&Xt(e)==="number"?r?(this._rgb[3]=e,this):new Ve([this._rgb[0],this._rgb[1],this._rgb[2],e],"rgb"):this._rgb[3]},Ve.prototype.clipped=function(){return this._rgb._clipped||!1};const rl={Kn:18,labWhitePoint:"d65",Xn:.95047,Yn:1,Zn:1.08883,kE:216/24389,kKE:8,kK:24389/27,RefWhiteRGB:{X:.95047,Y:1,Z:1.08883},MtxRGB2XYZ:{m00:.4124564390896922,m01:.21267285140562253,m02:.0193338955823293,m10:.357576077643909,m11:.715152155287818,m12:.11919202588130297,m20:.18043748326639894,m21:.07217499330655958,m22:.9503040785363679},MtxXYZ2RGB:{m00:3.2404541621141045,m01:-.9692660305051868,m02:.055643430959114726,m10:-1.5371385127977166,m11:1.8760108454466942,m12:-.2040259135167538,m20:-.498531409556016,m21:.041556017530349834,m22:1.0572251882231791},As:.9414285350000001,Bs:1.040417467,Cs:1.089532651,MtxAdaptMa:{m00:.8951,m01:-.7502,m02:.0389,m10:.2664,m11:1.7135,m12:-.0685,m20:-.1614,m21:.0367,m22:1.0296},MtxAdaptMaI:{m00:.9869929054667123,m01:.43230526972339456,m02:-.008528664575177328,m10:-.14705425642099013,m11:.5183602715367776,m12:.04004282165408487,m20:.15996265166373125,m21:.0492912282128556,m22:.9684866957875502}},q1e=new Map([["a",[1.0985,.35585]],["b",[1.0985,.35585]],["c",[.98074,1.18232]],["d50",[.96422,.82521]],["d55",[.95682,.92149]],["d65",[.95047,1.08883]],["e",[1,1,1]],["f2",[.99186,.67393]],["f7",[.95041,1.08747]],["f11",[1.00962,.6435]],["icc",[.96422,.82521]]]);function Ql(e){const r=q1e.get(String(e).toLowerCase());if(!r)throw new Error("unknown Lab illuminant "+e);rl.labWhitePoint=e,rl.Xn=r[0],rl.Zn=r[1]}function f1(){return rl.labWhitePoint}const b6=(...e)=>{e=Ft(e,"lab");const[r,n,o]=e,[a,i,s]=U1e(r,n,o),[l,c,d]=oI(a,i,s);return[l,c,d,e.length>3?e[3]:1]},U1e=(e,r,n)=>{const{kE:o,kK:a,kKE:i,Xn:s,Yn:l,Zn:c}=rl,d=(e+16)/116,u=.002*r+d,h=d-.005*n,f=u*u*u,g=h*h*h,b=f>o?f:(116*u-16)/a,x=e>i?Math.pow((e+16)/116,3):e/a,w=g>o?g:(116*h-16)/a,k=b*s,C=x*l,_=w*c;return[k,C,_]},v6=e=>{const r=Math.sign(e);return e=Math.abs(e),(e<=.0031308?e*12.92:1.055*Math.pow(e,1/2.4)-.055)*r},oI=(e,r,n)=>{const{MtxAdaptMa:o,MtxAdaptMaI:a,MtxXYZ2RGB:i,RefWhiteRGB:s,Xn:l,Yn:c,Zn:d}=rl,u=l*o.m00+c*o.m10+d*o.m20,h=l*o.m01+c*o.m11+d*o.m21,f=l*o.m02+c*o.m12+d*o.m22,g=s.X*o.m00+s.Y*o.m10+s.Z*o.m20,b=s.X*o.m01+s.Y*o.m11+s.Z*o.m21,x=s.X*o.m02+s.Y*o.m12+s.Z*o.m22,w=(e*o.m00+r*o.m10+n*o.m20)*(g/u),k=(e*o.m01+r*o.m11+n*o.m21)*(b/h),C=(e*o.m02+r*o.m12+n*o.m22)*(x/f),_=w*a.m00+k*a.m10+C*a.m20,T=w*a.m01+k*a.m11+C*a.m21,A=w*a.m02+k*a.m12+C*a.m22,R=v6(_*i.m00+T*i.m10+A*i.m20),D=v6(_*i.m01+T*i.m11+A*i.m21),N=v6(_*i.m02+T*i.m12+A*i.m22);return[R*255,D*255,N*255]},x6=(...e)=>{const[r,n,o,...a]=Ft(e,"rgb"),[i,s,l]=aI(r,n,o),[c,d,u]=W1e(i,s,l);return[c,d,u,...a.length>0&&a[0]<1?[a[0]]:[]]};function W1e(e,r,n){const{Xn:o,Yn:a,Zn:i,kE:s,kK:l}=rl,c=e/o,d=r/a,u=n/i,h=c>s?Math.pow(c,1/3):(l*c+16)/116,f=d>s?Math.pow(d,1/3):(l*d+16)/116,g=u>s?Math.pow(u,1/3):(l*u+16)/116;return[116*f-16,500*(h-f),200*(f-g)]}function w6(e){const r=Math.sign(e);return e=Math.abs(e),(e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4))*r}const aI=(e,r,n)=>{e=w6(e/255),r=w6(r/255),n=w6(n/255);const{MtxRGB2XYZ:o,MtxAdaptMa:a,MtxAdaptMaI:i,Xn:s,Yn:l,Zn:c,As:d,Bs:u,Cs:h}=rl;let f=e*o.m00+r*o.m10+n*o.m20,g=e*o.m01+r*o.m11+n*o.m21,b=e*o.m02+r*o.m12+n*o.m22;const x=s*a.m00+l*a.m10+c*a.m20,w=s*a.m01+l*a.m11+c*a.m21,k=s*a.m02+l*a.m12+c*a.m22;let C=f*a.m00+g*a.m10+b*a.m20,_=f*a.m01+g*a.m11+b*a.m21,T=f*a.m02+g*a.m12+b*a.m22;return C*=x/d,_*=w/u,T*=k/h,f=C*i.m00+_*i.m10+T*i.m20,g=C*i.m01+_*i.m11+T*i.m21,b=C*i.m02+_*i.m12+T*i.m22,[f,g,b]};Ve.prototype.lab=function(){return x6(this._rgb)},Object.assign(Lt,{lab:(...e)=>new Ve(...e,"lab"),getLabWhitePoint:f1,setLabWhitePoint:Ql}),jt.format.lab=b6,jt.autodetect.push({p:2,test:(...e)=>{if(e=Ft(e,"lab"),Xt(e)==="array"&&e.length===3)return"lab"}}),Ve.prototype.darken=function(e=1){const r=this,n=r.lab();return n[0]-=rl.Kn*e,new Ve(n,"lab").alpha(r.alpha(),!0)},Ve.prototype.brighten=function(e=1){return this.darken(-e)},Ve.prototype.darker=Ve.prototype.darken,Ve.prototype.brighter=Ve.prototype.brighten,Ve.prototype.get=function(e){const[r,n]=e.split("."),o=this[r]();if(n){const a=r.indexOf(n)-(r.substr(0,2)==="ok"?2:0);if(a>-1)return o[a];throw new Error(`unknown channel ${n} in mode ${r}`)}else return o};const{pow:Y1e}=Math,G1e=1e-7,X1e=20;Ve.prototype.luminance=function(e,r="rgb"){if(e!==void 0&&Xt(e)==="number"){if(e===0)return new Ve([0,0,0,this._rgb[3]],"rgb");if(e===1)return new Ve([255,255,255,this._rgb[3]],"rgb");let n=this.luminance(),o=X1e;const a=(s,l)=>{const c=s.interpolate(l,.5,r),d=c.luminance();return Math.abs(e-d)e?a(s,c):a(c,l)},i=(n>e?a(new Ve([0,0,0]),this):a(this,new Ve([255,255,255]))).rgb();return new Ve([...i,this._rgb[3]])}return K1e(...this._rgb.slice(0,3))};const K1e=(e,r,n)=>(e=k6(e),r=k6(r),n=k6(n),.2126*e+.7152*r+.0722*n),k6=e=>(e/=255,e<=.03928?e/12.92:Y1e((e+.055)/1.055,2.4)),$o={},Qh=(e,r,n=.5,...o)=>{let a=o[0]||"lrgb";if(!$o[a]&&!o.length&&(a=Object.keys($o)[0]),!$o[a])throw new Error(`interpolation mode ${a} is not defined`);return Xt(e)!=="object"&&(e=new Ve(e)),Xt(r)!=="object"&&(r=new Ve(r)),$o[a](e,r,n).alpha(e.alpha()+n*(r.alpha()-e.alpha()))};Ve.prototype.mix=Ve.prototype.interpolate=function(e,r=.5,...n){return Qh(this,e,r,...n)},Ve.prototype.premultiply=function(e=!1){const r=this._rgb,n=r[3];return e?(this._rgb=[r[0]*n,r[1]*n,r[2]*n,n],this):new Ve([r[0]*n,r[1]*n,r[2]*n,n],"rgb")};const{sin:Z1e,cos:Q1e}=Math,iI=(...e)=>{let[r,n,o]=Ft(e,"lch");return isNaN(o)&&(o=0),o=o*L1e,[r,Q1e(o)*n,Z1e(o)*n]},_6=(...e)=>{e=Ft(e,"lch");const[r,n,o]=e,[a,i,s]=iI(r,n,o),[l,c,d]=b6(a,i,s);return[l,c,d,e.length>3?e[3]:1]},J1e=(...e)=>{const r=tI(Ft(e,"hcl"));return _6(...r)},{sqrt:e0e,atan2:t0e,round:r0e}=Math,sI=(...e)=>{const[r,n,o]=Ft(e,"lab"),a=e0e(n*n+o*o);let i=(t0e(o,n)*B1e+360)%360;return r0e(a*1e4)===0&&(i=Number.NaN),[r,a,i]},E6=(...e)=>{const[r,n,o,...a]=Ft(e,"rgb"),[i,s,l]=x6(r,n,o),[c,d,u]=sI(i,s,l);return[c,d,u,...a.length>0&&a[0]<1?[a[0]]:[]]};Ve.prototype.lch=function(){return E6(this._rgb)},Ve.prototype.hcl=function(){return tI(E6(this._rgb))},Object.assign(Lt,{lch:(...e)=>new Ve(...e,"lch"),hcl:(...e)=>new Ve(...e,"hcl")}),jt.format.lch=_6,jt.format.hcl=J1e,["lch","hcl"].forEach(e=>jt.autodetect.push({p:2,test:(...r)=>{if(r=Ft(r,e),Xt(r)==="array"&&r.length===3)return e}})),Ve.prototype.saturate=function(e=1){const r=this,n=r.lch();return n[1]+=rl.Kn*e,n[1]<0&&(n[1]=0),new Ve(n,"lch").alpha(r.alpha(),!0)},Ve.prototype.desaturate=function(e=1){return this.saturate(-e)},Ve.prototype.set=function(e,r,n=!1){const[o,a]=e.split("."),i=this[o]();if(a){const s=o.indexOf(a)-(o.substr(0,2)==="ok"?2:0);if(s>-1){if(Xt(r)=="string")switch(r.charAt(0)){case"+":i[s]+=+r;break;case"-":i[s]+=+r;break;case"*":i[s]*=+r.substr(1);break;case"/":i[s]/=+r.substr(1);break;default:i[s]=+r}else if(Xt(r)==="number")i[s]=r;else throw new Error("unsupported value for Color.set");const l=new Ve(i,o);return n?(this._rgb=l._rgb,this):l}throw new Error(`unknown channel ${a} in mode ${o}`)}else return i},Ve.prototype.tint=function(e=.5,...r){return Qh(this,"white",e,...r)},Ve.prototype.shade=function(e=.5,...r){return Qh(this,"black",e,...r)};const n0e=(e,r,n)=>{const o=e._rgb,a=r._rgb;return new Ve(o[0]+n*(a[0]-o[0]),o[1]+n*(a[1]-o[1]),o[2]+n*(a[2]-o[2]),"rgb")};$o.rgb=n0e;const{sqrt:S6,pow:Jh}=Math,o0e=(e,r,n)=>{const[o,a,i]=e._rgb,[s,l,c]=r._rgb;return new Ve(S6(Jh(o,2)*(1-n)+Jh(s,2)*n),S6(Jh(a,2)*(1-n)+Jh(l,2)*n),S6(Jh(i,2)*(1-n)+Jh(c,2)*n),"rgb")};$o.lrgb=o0e;const a0e=(e,r,n)=>{const o=e.lab(),a=r.lab();return new Ve(o[0]+n*(a[0]-o[0]),o[1]+n*(a[1]-o[1]),o[2]+n*(a[2]-o[2]),"lab")};$o.lab=a0e;const ef=(e,r,n,o)=>{let a,i;o==="hsl"?(a=e.hsl(),i=r.hsl()):o==="hsv"?(a=e.hsv(),i=r.hsv()):o==="hcg"?(a=e.hcg(),i=r.hcg()):o==="hsi"?(a=e.hsi(),i=r.hsi()):o==="lch"||o==="hcl"?(o="hcl",a=e.hcl(),i=r.hcl()):o==="oklch"&&(a=e.oklch().reverse(),i=r.oklch().reverse());let s,l,c,d,u,h;(o.substr(0,1)==="h"||o==="oklch")&&([s,c,u]=a,[l,d,h]=i);let f,g,b,x;return!isNaN(s)&&!isNaN(l)?(l>s&&l-s>180?x=l-(s+360):l180?x=l+360-s:x=l-s,g=s+n*x):isNaN(s)?isNaN(l)?g=Number.NaN:(g=l,(u==1||u==0)&&o!="hsv"&&(f=d)):(g=s,(h==1||h==0)&&o!="hsv"&&(f=c)),f===void 0&&(f=c+n*(d-c)),b=u+n*(h-u),o==="oklch"?new Ve([b,f,g],o):new Ve([g,f,b],o)},lI=(e,r,n)=>ef(e,r,n,"lch");$o.lch=lI,$o.hcl=lI;const i0e=e=>{if(Xt(e)=="number"&&e>=0&&e<=16777215){const r=e>>16,n=e>>8&255,o=e&255;return[r,n,o,1]}throw new Error("unknown num color: "+e)},s0e=(...e)=>{const[r,n,o]=Ft(e,"rgb");return(r<<16)+(n<<8)+o};Ve.prototype.num=function(){return s0e(this._rgb)},Object.assign(Lt,{num:(...e)=>new Ve(...e,"num")}),jt.format.num=i0e,jt.autodetect.push({p:5,test:(...e)=>{if(e.length===1&&Xt(e[0])==="number"&&e[0]>=0&&e[0]<=16777215)return"num"}});const l0e=(e,r,n)=>{const o=e.num(),a=r.num();return new Ve(o+n*(a-o),"num")};$o.num=l0e;const{floor:c0e}=Math,d0e=(...e)=>{e=Ft(e,"hcg");let[r,n,o]=e,a,i,s;o=o*255;const l=n*255;if(n===0)a=i=s=o;else{r===360&&(r=0),r>360&&(r-=360),r<0&&(r+=360),r/=60;const c=c0e(r),d=r-c,u=o*(1-n),h=u+l*(1-d),f=u+l*d,g=u+l;switch(c){case 0:[a,i,s]=[g,f,u];break;case 1:[a,i,s]=[h,g,u];break;case 2:[a,i,s]=[u,g,f];break;case 3:[a,i,s]=[u,h,g];break;case 4:[a,i,s]=[f,u,g];break;case 5:[a,i,s]=[g,u,h];break}}return[a,i,s,e.length>3?e[3]:1]},u0e=(...e)=>{const[r,n,o]=Ft(e,"rgb"),a=Jz(r,n,o),i=eI(r,n,o),s=i-a,l=s*100/255,c=a/(255-s)*100;let d;return s===0?d=Number.NaN:(r===i&&(d=(n-o)/s),n===i&&(d=2+(o-r)/s),o===i&&(d=4+(r-n)/s),d*=60,d<0&&(d+=360)),[d,l,c]};Ve.prototype.hcg=function(){return u0e(this._rgb)};const p0e=(...e)=>new Ve(...e,"hcg");Lt.hcg=p0e,jt.format.hcg=d0e,jt.autodetect.push({p:1,test:(...e)=>{if(e=Ft(e,"hcg"),Xt(e)==="array"&&e.length===3)return"hcg"}});const h0e=(e,r,n)=>ef(e,r,n,"hcg");$o.hcg=h0e;const{cos:tf}=Math,f0e=(...e)=>{e=Ft(e,"hsi");let[r,n,o]=e,a,i,s;return isNaN(r)&&(r=0),isNaN(n)&&(n=0),r>360&&(r-=360),r<0&&(r+=360),r/=360,r<1/3?(s=(1-n)/3,a=(1+n*tf(Zl*r)/tf(y6-Zl*r))/3,i=1-(s+a)):r<2/3?(r-=1/3,a=(1-n)/3,i=(1+n*tf(Zl*r)/tf(y6-Zl*r))/3,s=1-(a+i)):(r-=2/3,i=(1-n)/3,s=(1+n*tf(Zl*r)/tf(y6-Zl*r))/3,a=1-(i+s)),a=Ou(o*a*3),i=Ou(o*i*3),s=Ou(o*s*3),[a*255,i*255,s*255,e.length>3?e[3]:1]},{min:m0e,sqrt:g0e,acos:y0e}=Math,b0e=(...e)=>{let[r,n,o]=Ft(e,"rgb");r/=255,n/=255,o/=255;let a;const i=m0e(r,n,o),s=(r+n+o)/3,l=s>0?1-i/s:0;return l===0?a=NaN:(a=(r-n+(r-o))/2,a/=g0e((r-n)*(r-n)+(r-o)*(n-o)),a=y0e(a),o>n&&(a=Zl-a),a/=Zl),[a*360,l,s]};Ve.prototype.hsi=function(){return b0e(this._rgb)};const v0e=(...e)=>new Ve(...e,"hsi");Lt.hsi=v0e,jt.format.hsi=f0e,jt.autodetect.push({p:2,test:(...e)=>{if(e=Ft(e,"hsi"),Xt(e)==="array"&&e.length===3)return"hsi"}});const x0e=(e,r,n)=>ef(e,r,n,"hsi");$o.hsi=x0e;const C6=(...e)=>{e=Ft(e,"hsl");const[r,n,o]=e;let a,i,s;if(n===0)a=i=s=o*255;else{const l=[0,0,0],c=[0,0,0],d=o<.5?o*(1+n):o+n-o*n,u=2*o-d,h=r/360;l[0]=h+1/3,l[1]=h,l[2]=h-1/3;for(let f=0;f<3;f++)l[f]<0&&(l[f]+=1),l[f]>1&&(l[f]-=1),6*l[f]<1?c[f]=u+(d-u)*6*l[f]:2*l[f]<1?c[f]=d:3*l[f]<2?c[f]=u+(d-u)*(2/3-l[f])*6:c[f]=u;[a,i,s]=[c[0]*255,c[1]*255,c[2]*255]}return e.length>3?[a,i,s,e[3]]:[a,i,s,1]},cI=(...e)=>{e=Ft(e,"rgba");let[r,n,o]=e;r/=255,n/=255,o/=255;const a=Jz(r,n,o),i=eI(r,n,o),s=(i+a)/2;let l,c;return i===a?(l=0,c=Number.NaN):l=s<.5?(i-a)/(i+a):(i-a)/(2-i-a),r==i?c=(n-o)/(i-a):n==i?c=2+(o-r)/(i-a):o==i&&(c=4+(r-n)/(i-a)),c*=60,c<0&&(c+=360),e.length>3&&e[3]!==void 0?[c,l,s,e[3]]:[c,l,s]};Ve.prototype.hsl=function(){return cI(this._rgb)};const w0e=(...e)=>new Ve(...e,"hsl");Lt.hsl=w0e,jt.format.hsl=C6,jt.autodetect.push({p:2,test:(...e)=>{if(e=Ft(e,"hsl"),Xt(e)==="array"&&e.length===3)return"hsl"}});const k0e=(e,r,n)=>ef(e,r,n,"hsl");$o.hsl=k0e;const{floor:_0e}=Math,E0e=(...e)=>{e=Ft(e,"hsv");let[r,n,o]=e,a,i,s;if(o*=255,n===0)a=i=s=o;else{r===360&&(r=0),r>360&&(r-=360),r<0&&(r+=360),r/=60;const l=_0e(r),c=r-l,d=o*(1-n),u=o*(1-n*c),h=o*(1-n*(1-c));switch(l){case 0:[a,i,s]=[o,h,d];break;case 1:[a,i,s]=[u,o,d];break;case 2:[a,i,s]=[d,o,h];break;case 3:[a,i,s]=[d,u,o];break;case 4:[a,i,s]=[h,d,o];break;case 5:[a,i,s]=[o,d,u];break}}return[a,i,s,e.length>3?e[3]:1]},{min:S0e,max:C0e}=Math,T0e=(...e)=>{e=Ft(e,"rgb");let[r,n,o]=e;const a=S0e(r,n,o),i=C0e(r,n,o),s=i-a;let l,c,d;return d=i/255,i===0?(l=Number.NaN,c=0):(c=s/i,r===i&&(l=(n-o)/s),n===i&&(l=2+(o-r)/s),o===i&&(l=4+(r-n)/s),l*=60,l<0&&(l+=360)),[l,c,d]};Ve.prototype.hsv=function(){return T0e(this._rgb)};const A0e=(...e)=>new Ve(...e,"hsv");Lt.hsv=A0e,jt.format.hsv=E0e,jt.autodetect.push({p:2,test:(...e)=>{if(e=Ft(e,"hsv"),Xt(e)==="array"&&e.length===3)return"hsv"}});const R0e=(e,r,n)=>ef(e,r,n,"hsv");$o.hsv=R0e;function Wv(e,r){let n=e.length;Array.isArray(e[0])||(e=[e]),Array.isArray(r[0])||(r=r.map(s=>[s]));let o=r[0].length,a=r[0].map((s,l)=>r.map(c=>c[l])),i=e.map(s=>a.map(l=>Array.isArray(s)?s.reduce((c,d,u)=>c+d*(l[u]||0),0):l.reduce((c,d)=>c+d*s,0)));return n===1&&(i=i[0]),o===1?i.map(s=>s[0]):i}const T6=(...e)=>{e=Ft(e,"lab");const[r,n,o,...a]=e,[i,s,l]=N0e([r,n,o]),[c,d,u]=oI(i,s,l);return[c,d,u,...a.length>0&&a[0]<1?[a[0]]:[]]};function N0e(e){var r=[[1.2268798758459243,-.5578149944602171,.2813910456659647],[-.0405757452148008,1.112286803280317,-.0717110580655164],[-.0763729366746601,-.4214933324022432,1.5869240198367816]],n=[[1,.3963377773761749,.2158037573099136],[1,-.1055613458156586,-.0638541728258133],[1,-.0894841775298119,-1.2914855480194092]],o=Wv(n,e);return Wv(r,o.map(a=>a**3))}const A6=(...e)=>{const[r,n,o,...a]=Ft(e,"rgb"),i=aI(r,n,o);return[...D0e(i),...a.length>0&&a[0]<1?[a[0]]:[]]};function D0e(e){const r=[[.819022437996703,.3619062600528904,-.1288737815209879],[.0329836539323885,.9292868615863434,.0361446663506424],[.0481771893596242,.2642395317527308,.6335478284694309]],n=[[.210454268309314,.7936177747023054,-.0040720430116193],[1.9779985324311684,-2.42859224204858,.450593709617411],[.0259040424655478,.7827717124575296,-.8086757549230774]],o=Wv(r,e);return Wv(n,o.map(a=>Math.cbrt(a)))}Ve.prototype.oklab=function(){return A6(this._rgb)},Object.assign(Lt,{oklab:(...e)=>new Ve(...e,"oklab")}),jt.format.oklab=T6,jt.autodetect.push({p:2,test:(...e)=>{if(e=Ft(e,"oklab"),Xt(e)==="array"&&e.length===3)return"oklab"}});const $0e=(e,r,n)=>{const o=e.oklab(),a=r.oklab();return new Ve(o[0]+n*(a[0]-o[0]),o[1]+n*(a[1]-o[1]),o[2]+n*(a[2]-o[2]),"oklab")};$o.oklab=$0e;const P0e=(e,r,n)=>ef(e,r,n,"oklch");$o.oklch=P0e;const{pow:R6,sqrt:N6,PI:D6,cos:dI,sin:uI,atan2:M0e}=Math,z0e=(e,r="lrgb",n=null)=>{const o=e.length;n||(n=Array.from(new Array(o)).map(()=>1));const a=o/n.reduce(function(h,f){return h+f});if(n.forEach((h,f)=>{n[f]*=a}),e=e.map(h=>new Ve(h)),r==="lrgb")return I0e(e,n);const i=e.shift(),s=i.get(r),l=[];let c=0,d=0;for(let h=0;h{const g=h.get(r);u+=h.alpha()*n[f+1];for(let b=0;b=360;)f-=360;s[h]=f}else s[h]=s[h]/l[h];return u/=o,new Ve(s,r).alpha(u>.99999?1:u,!0)},I0e=(e,r)=>{const n=e.length,o=[0,0,0,0];for(let a=0;a.9999999&&(o[3]=1),new Ve(m6(o))},{pow:O0e}=Math;function Yv(e){let r="rgb",n=Lt("#ccc"),o=0,a=[0,1],i=[],s=[0,0],l=!1,c=[],d=!1,u=0,h=1,f=!1,g={},b=!0,x=1;const w=function(D){if(D=D||["#fff","#000"],D&&Xt(D)==="string"&&Lt.brewer&&Lt.brewer[D.toLowerCase()]&&(D=Lt.brewer[D.toLowerCase()]),Xt(D)==="array"){D.length===1&&(D=[D[0],D[0]]),D=D.slice(0);for(let N=0;N=l[P];)P++;return P-1}return 0};let C=D=>D,_=D=>D;const T=function(D,N){let P,O;if(N==null&&(N=!1),isNaN(D)||D===null)return n;N?O=D:l&&l.length>2?O=k(D)/(l.length-2):h!==u?O=(D-u)/(h-u):O=1,O=_(O),N||(O=C(O)),x!==1&&(O=O0e(O,x)),O=s[0]+O*(1-s[0]-s[1]),O=Ou(O,0,1);const F=Math.floor(O*1e4);if(b&&g[F])P=g[F];else{if(Xt(c)==="array")for(let L=0;L=U&&L===i.length-1){P=c[L];break}if(O>U&&Og={};w(e);const R=function(D){const N=Lt(T(D));return d&&N[d]?N[d]():N};return R.classes=function(D){if(D!=null){if(Xt(D)==="array")l=D,a=[D[0],D[D.length-1]];else{const N=Lt.analyze(a);D===0?l=[N.min,N.max]:l=Lt.limits(N,"e",D)}return R}return l},R.domain=function(D){if(!arguments.length)return a;u=D[0],h=D[D.length-1],i=[];const N=c.length;if(D.length===N&&u!==h)for(let P of Array.from(D))i.push((P-u)/(h-u));else{for(let P=0;P2){const P=D.map((F,L)=>L/(D.length-1)),O=D.map(F=>(F-u)/(h-u));O.every((F,L)=>P[L]===F)||(_=F=>{if(F<=0||F>=1)return F;let L=0;for(;F>=O[L+1];)L++;const U=(F-O[L])/(O[L+1]-O[L]);return P[L]+U*(P[L+1]-P[L])})}}return a=[u,h],R},R.mode=function(D){return arguments.length?(r=D,A(),R):r},R.range=function(D,N){return w(D),R},R.out=function(D){return d=D,R},R.spread=function(D){return arguments.length?(o=D,R):o},R.correctLightness=function(D){return D==null&&(D=!0),f=D,A(),f?C=function(N){const P=T(0,!0).lab()[0],O=T(1,!0).lab()[0],F=P>O;let L=T(N,!0).lab()[0];const U=P+(O-P)*N;let M=L-U,V=0,I=1,H=20;for(;Math.abs(M)>.01&&H-- >0;)(function(){return F&&(M*=-1),M<0?(V=N,N+=(I-N)*.5):(I=N,N+=(V-N)*.5),L=T(N,!0).lab()[0],M=L-U})();return N}:C=N=>N,R},R.padding=function(D){return D!=null?(Xt(D)==="number"&&(D=[D,D]),s=D,R):s},R.colors=function(D,N){arguments.length<2&&(N="hex");let P=[];if(arguments.length===0)P=c.slice(0);else if(D===1)P=[R(.5)];else if(D>1){const O=a[0],F=a[1]-O;P=j0e(0,D).map(L=>R(O+L/(D-1)*F))}else{e=[];let O=[];if(l&&l.length>2)for(let F=1,L=l.length,U=1<=L;U?FL;U?F++:F--)O.push((l[F-1]+l[F])*.5);else O=a;P=O.map(F=>R(F))}return Lt[N]&&(P=P.map(O=>O[N]())),P},R.cache=function(D){return D!=null?(b=D,R):b},R.gamma=function(D){return D!=null?(x=D,R):x},R.nodata=function(D){return D!=null?(n=Lt(D),R):n},R}function j0e(e,r,n){let o=[],a=ei;a?s++:s--)o.push(s);return o}const L0e=function(e){let r=[1,1];for(let n=1;nnew Ve(i)),e.length===2)[n,o]=e.map(i=>i.lab()),r=function(i){const s=[0,1,2].map(l=>n[l]+i*(o[l]-n[l]));return new Ve(s,"lab")};else if(e.length===3)[n,o,a]=e.map(i=>i.lab()),r=function(i){const s=[0,1,2].map(l=>(1-i)*(1-i)*n[l]+2*(1-i)*i*o[l]+i*i*a[l]);return new Ve(s,"lab")};else if(e.length===4){let i;[n,o,a,i]=e.map(s=>s.lab()),r=function(s){const l=[0,1,2].map(c=>(1-s)*(1-s)*(1-s)*n[c]+3*(1-s)*(1-s)*s*o[c]+3*(1-s)*s*s*a[c]+s*s*s*i[c]);return new Ve(l,"lab")}}else if(e.length>=5){let i,s,l;i=e.map(c=>c.lab()),l=e.length-1,s=L0e(l),r=function(c){const d=1-c,u=[0,1,2].map(h=>i.reduce((f,g,b)=>f+s[b]*d**(l-b)*c**b*g[h],0));return new Ve(u,"lab")}}else throw new RangeError("No point in running bezier with only one color.");return r},F0e=e=>{const r=B0e(e);return r.scale=()=>Yv(r),r},{round:pI}=Math;Ve.prototype.rgb=function(e=!0){return e===!1?this._rgb.slice(0,3):this._rgb.slice(0,3).map(pI)},Ve.prototype.rgba=function(e=!0){return this._rgb.slice(0,4).map((r,n)=>n<3?e===!1?r:pI(r):r)},Object.assign(Lt,{rgb:(...e)=>new Ve(...e,"rgb")}),jt.format.rgb=(...e)=>{const r=Ft(e,"rgba");return r[3]===void 0&&(r[3]=1),r},jt.autodetect.push({p:3,test:(...e)=>{if(e=Ft(e,"rgba"),Xt(e)==="array"&&(e.length===3||e.length===4&&Xt(e[3])=="number"&&e[3]>=0&&e[3]<=1))return"rgb"}});const Qi=(e,r,n)=>{if(!Qi[n])throw new Error("unknown blend mode "+n);return Qi[n](e,r)},sd=e=>(r,n)=>{const o=Lt(n).rgb(),a=Lt(r).rgb();return Lt.rgb(e(o,a))},ld=e=>(r,n)=>{const o=[];return o[0]=e(r[0],n[0]),o[1]=e(r[1],n[1]),o[2]=e(r[2],n[2]),o},H0e=e=>e,V0e=(e,r)=>e*r/255,q0e=(e,r)=>e>r?r:e,U0e=(e,r)=>e>r?e:r,W0e=(e,r)=>255*(1-(1-e/255)*(1-r/255)),Y0e=(e,r)=>r<128?2*e*r/255:255*(1-2*(1-e/255)*(1-r/255)),G0e=(e,r)=>255*(1-(1-r/255)/(e/255)),X0e=(e,r)=>e===255?255:(e=255*(r/255)/(1-e/255),e>255?255:e);Qi.normal=sd(ld(H0e)),Qi.multiply=sd(ld(V0e)),Qi.screen=sd(ld(W0e)),Qi.overlay=sd(ld(Y0e)),Qi.darken=sd(ld(q0e)),Qi.lighten=sd(ld(U0e)),Qi.dodge=sd(ld(X0e)),Qi.burn=sd(ld(G0e));const{pow:K0e,sin:Z0e,cos:Q0e}=Math;function J0e(e=300,r=-1.5,n=1,o=1,a=[0,1]){let i=0,s;Xt(a)==="array"?s=a[1]-a[0]:(s=0,a=[a,a]);const l=function(c){const d=Zl*((e+120)/360+r*c),u=K0e(a[0]+s*c,o),f=(i!==0?n[0]+c*i:n)*u*(1-u)/2,g=Q0e(d),b=Z0e(d),x=u+f*(-.14861*g+1.78277*b),w=u+f*(-.29227*g-.90649*b),k=u+f*(1.97294*g);return Lt(m6([x*255,w*255,k*255,1]))};return l.start=function(c){return c==null?e:(e=c,l)},l.rotations=function(c){return c==null?r:(r=c,l)},l.gamma=function(c){return c==null?o:(o=c,l)},l.hue=function(c){return c==null?n:(n=c,Xt(n)==="array"?(i=n[1]-n[0],i===0&&(n=n[1])):i=0,l)},l.lightness=function(c){return c==null?a:(Xt(c)==="array"?(a=c,s=c[1]-c[0]):(a=[c,c],s=0),l)},l.scale=()=>Lt.scale(l),l.hue(n),l}const eye="0123456789abcdef",{floor:tye,random:rye}=Math,nye=()=>{let e="#";for(let r=0;r<6;r++)e+=eye.charAt(tye(rye()*16));return new Ve(e,"hex")},{log:hI,pow:oye,floor:aye,abs:iye}=Math;function fI(e,r=null){const n={min:Number.MAX_VALUE,max:Number.MAX_VALUE*-1,sum:0,values:[],count:0};return Xt(e)==="object"&&(e=Object.values(e)),e.forEach(o=>{r&&Xt(o)==="object"&&(o=o[r]),o!=null&&!isNaN(o)&&(n.values.push(o),n.sum+=o,on.max&&(n.max=o),n.count+=1)}),n.domain=[n.min,n.max],n.limits=(o,a)=>mI(n,o,a),n}function mI(e,r="equal",n=7){Xt(e)=="array"&&(e=fI(e));const{min:o,max:a}=e,i=e.values.sort((l,c)=>l-c);if(n===1)return[o,a];const s=[];if(r.substr(0,1)==="c"&&(s.push(o),s.push(a)),r.substr(0,1)==="e"){s.push(o);for(let l=1;l 0");const l=Math.LOG10E*hI(o),c=Math.LOG10E*hI(a);s.push(o);for(let d=1;d200&&(h=!1)}const b={};for(let w=0;ww-k),s.push(x[0]);for(let w=1;w{e=new Ve(e),r=new Ve(r);const n=e.luminance(),o=r.luminance();return n>o?(n+.05)/(o+.05):(o+.05)/(n+.05)};const gI=.027,lye=5e-4,cye=.1,yI=1.14,Gv=.022,bI=1.414,dye=(e,r)=>{e=new Ve(e),r=new Ve(r),e.alpha()<1&&(e=Qh(r,e,e.alpha(),"rgb"));const n=vI(...e.rgb()),o=vI(...r.rgb()),a=n>=Gv?n:n+Math.pow(Gv-n,bI),i=o>=Gv?o:o+Math.pow(Gv-o,bI),s=Math.pow(i,.56)-Math.pow(a,.57),l=Math.pow(i,.65)-Math.pow(a,.62),c=Math.abs(i-a)0?c-gI:c+gI)*100};function vI(e,r,n){return .2126729*Math.pow(e/255,2.4)+.7151522*Math.pow(r/255,2.4)+.072175*Math.pow(n/255,2.4)}const{sqrt:Jl,pow:Nn,min:uye,max:pye,atan2:xI,abs:wI,cos:Xv,sin:kI,exp:hye,PI:_I}=Math;function fye(e,r,n=1,o=1,a=1){var i=function(j){return 360*j/(2*_I)},s=function(j){return 2*_I*j/360};e=new Ve(e),r=new Ve(r);const[l,c,d]=Array.from(e.lab()),[u,h,f]=Array.from(r.lab()),g=(l+u)/2,b=Jl(Nn(c,2)+Nn(d,2)),x=Jl(Nn(h,2)+Nn(f,2)),w=(b+x)/2,k=.5*(1-Jl(Nn(w,7)/(Nn(w,7)+Nn(25,7)))),C=c*(1+k),_=h*(1+k),T=Jl(Nn(C,2)+Nn(d,2)),A=Jl(Nn(_,2)+Nn(f,2)),R=(T+A)/2,D=i(xI(d,C)),N=i(xI(f,_)),P=D>=0?D:D+360,O=N>=0?N:N+360,F=wI(P-O)>180?(P+O+360)/2:(P+O)/2,L=1-.17*Xv(s(F-30))+.24*Xv(s(2*F))+.32*Xv(s(3*F+6))-.2*Xv(s(4*F-63));let U=O-P;U=wI(U)<=180?U:O<=P?U+360:U-360,U=2*Jl(T*A)*kI(s(U)/2);const M=u-l,V=A-T,I=1+.015*Nn(g-50,2)/Jl(20+Nn(g-50,2)),H=1+.045*R,q=1+.015*R*L,Z=30*hye(-Nn((F-275)/25,2)),G=-(2*Jl(Nn(R,7)/(Nn(R,7)+Nn(25,7))))*kI(2*s(Z)),K=Jl(Nn(M/(n*I),2)+Nn(V/(o*H),2)+Nn(U/(a*q),2)+G*(V/(o*H))*(U/(a*q)));return pye(0,uye(100,K))}function mye(e,r,n="lab"){e=new Ve(e),r=new Ve(r);const o=e.get(n),a=r.get(n);let i=0;for(let s in o){const l=(o[s]||0)-(a[s]||0);i+=l*l}return Math.sqrt(i)}const gye=(...e)=>{try{return new Ve(...e),!0}catch{return!1}},yye={cool(){return Yv([Lt.hsl(180,1,.9),Lt.hsl(250,.7,.4)])},hot(){return Yv(["#000","#f00","#ff0","#fff"]).mode("rgb")}},$6={OrRd:["#fff7ec","#fee8c8","#fdd49e","#fdbb84","#fc8d59","#ef6548","#d7301f","#b30000","#7f0000"],PuBu:["#fff7fb","#ece7f2","#d0d1e6","#a6bddb","#74a9cf","#3690c0","#0570b0","#045a8d","#023858"],BuPu:["#f7fcfd","#e0ecf4","#bfd3e6","#9ebcda","#8c96c6","#8c6bb1","#88419d","#810f7c","#4d004b"],Oranges:["#fff5eb","#fee6ce","#fdd0a2","#fdae6b","#fd8d3c","#f16913","#d94801","#a63603","#7f2704"],BuGn:["#f7fcfd","#e5f5f9","#ccece6","#99d8c9","#66c2a4","#41ae76","#238b45","#006d2c","#00441b"],YlOrBr:["#ffffe5","#fff7bc","#fee391","#fec44f","#fe9929","#ec7014","#cc4c02","#993404","#662506"],YlGn:["#ffffe5","#f7fcb9","#d9f0a3","#addd8e","#78c679","#41ab5d","#238443","#006837","#004529"],Reds:["#fff5f0","#fee0d2","#fcbba1","#fc9272","#fb6a4a","#ef3b2c","#cb181d","#a50f15","#67000d"],RdPu:["#fff7f3","#fde0dd","#fcc5c0","#fa9fb5","#f768a1","#dd3497","#ae017e","#7a0177","#49006a"],Greens:["#f7fcf5","#e5f5e0","#c7e9c0","#a1d99b","#74c476","#41ab5d","#238b45","#006d2c","#00441b"],YlGnBu:["#ffffd9","#edf8b1","#c7e9b4","#7fcdbb","#41b6c4","#1d91c0","#225ea8","#253494","#081d58"],Purples:["#fcfbfd","#efedf5","#dadaeb","#bcbddc","#9e9ac8","#807dba","#6a51a3","#54278f","#3f007d"],GnBu:["#f7fcf0","#e0f3db","#ccebc5","#a8ddb5","#7bccc4","#4eb3d3","#2b8cbe","#0868ac","#084081"],Greys:["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525","#000000"],YlOrRd:["#ffffcc","#ffeda0","#fed976","#feb24c","#fd8d3c","#fc4e2a","#e31a1c","#bd0026","#800026"],PuRd:["#f7f4f9","#e7e1ef","#d4b9da","#c994c7","#df65b0","#e7298a","#ce1256","#980043","#67001f"],Blues:["#f7fbff","#deebf7","#c6dbef","#9ecae1","#6baed6","#4292c6","#2171b5","#08519c","#08306b"],PuBuGn:["#fff7fb","#ece2f0","#d0d1e6","#a6bddb","#67a9cf","#3690c0","#02818a","#016c59","#014636"],Viridis:["#440154","#482777","#3f4a8a","#31678e","#26838f","#1f9d8a","#6cce5a","#b6de2b","#fee825"],Spectral:["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"],RdYlGn:["#a50026","#d73027","#f46d43","#fdae61","#fee08b","#ffffbf","#d9ef8b","#a6d96a","#66bd63","#1a9850","#006837"],RdBu:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#f7f7f7","#d1e5f0","#92c5de","#4393c3","#2166ac","#053061"],PiYG:["#8e0152","#c51b7d","#de77ae","#f1b6da","#fde0ef","#f7f7f7","#e6f5d0","#b8e186","#7fbc41","#4d9221","#276419"],PRGn:["#40004b","#762a83","#9970ab","#c2a5cf","#e7d4e8","#f7f7f7","#d9f0d3","#a6dba0","#5aae61","#1b7837","#00441b"],RdYlBu:["#a50026","#d73027","#f46d43","#fdae61","#fee090","#ffffbf","#e0f3f8","#abd9e9","#74add1","#4575b4","#313695"],BrBG:["#543005","#8c510a","#bf812d","#dfc27d","#f6e8c3","#f5f5f5","#c7eae5","#80cdc1","#35978f","#01665e","#003c30"],RdGy:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#ffffff","#e0e0e0","#bababa","#878787","#4d4d4d","#1a1a1a"],PuOr:["#7f3b08","#b35806","#e08214","#fdb863","#fee0b6","#f7f7f7","#d8daeb","#b2abd2","#8073ac","#542788","#2d004b"],Set2:["#66c2a5","#fc8d62","#8da0cb","#e78ac3","#a6d854","#ffd92f","#e5c494","#b3b3b3"],Accent:["#7fc97f","#beaed4","#fdc086","#ffff99","#386cb0","#f0027f","#bf5b17","#666666"],Set1:["#e41a1c","#377eb8","#4daf4a","#984ea3","#ff7f00","#ffff33","#a65628","#f781bf","#999999"],Set3:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69","#fccde5","#d9d9d9","#bc80bd","#ccebc5","#ffed6f"],Dark2:["#1b9e77","#d95f02","#7570b3","#e7298a","#66a61e","#e6ab02","#a6761d","#666666"],Paired:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f","#ff7f00","#cab2d6","#6a3d9a","#ffff99","#b15928"],Pastel2:["#b3e2cd","#fdcdac","#cbd5e8","#f4cae4","#e6f5c9","#fff2ae","#f1e2cc","#cccccc"],Pastel1:["#fbb4ae","#b3cde3","#ccebc5","#decbe4","#fed9a6","#ffffcc","#e5d8bd","#fddaec","#f2f2f2"]},EI=Object.keys($6),SI=new Map(EI.map(e=>[e.toLowerCase(),e])),bye=typeof Proxy=="function"?new Proxy($6,{get(e,r){const n=r.toLowerCase();if(SI.has(n))return e[SI.get(n)]},getOwnPropertyNames(){return Object.getOwnPropertyNames(EI)}}):$6,vye=(...e)=>{e=Ft(e,"cmyk");const[r,n,o,a]=e,i=e.length>4?e[4]:1;return a===1?[0,0,0,i]:[r>=1?0:255*(1-r)*(1-a),n>=1?0:255*(1-n)*(1-a),o>=1?0:255*(1-o)*(1-a),i]},{max:CI}=Math,xye=(...e)=>{let[r,n,o]=Ft(e,"rgb");r=r/255,n=n/255,o=o/255;const a=1-CI(r,CI(n,o)),i=a<1?1/(1-a):0,s=(1-r-a)*i,l=(1-n-a)*i,c=(1-o-a)*i;return[s,l,c,a]};Ve.prototype.cmyk=function(){return xye(this._rgb)},Object.assign(Lt,{cmyk:(...e)=>new Ve(...e,"cmyk")}),jt.format.cmyk=vye,jt.autodetect.push({p:2,test:(...e)=>{if(e=Ft(e,"cmyk"),Xt(e)==="array"&&e.length===4)return"cmyk"}});const wye=(...e)=>{const r=Ft(e,"hsla");let n=Kh(e)||"lsa";return r[0]=si(r[0]||0)+"deg",r[1]=si(r[1]*100)+"%",r[2]=si(r[2]*100)+"%",n==="hsla"||r.length>3&&r[3]<1?(r[3]="/ "+(r.length>3?r[3]:1),n="hsla"):r.length=3,`${n.substr(0,3)}(${r.join(" ")})`},kye=(...e)=>{const r=Ft(e,"lab");let n=Kh(e)||"lab";return r[0]=si(r[0])+"%",r[1]=si(r[1]),r[2]=si(r[2]),n==="laba"||r.length>3&&r[3]<1?r[3]="/ "+(r.length>3?r[3]:1):r.length=3,`lab(${r.join(" ")})`},_ye=(...e)=>{const r=Ft(e,"lch");let n=Kh(e)||"lab";return r[0]=si(r[0])+"%",r[1]=si(r[1]),r[2]=isNaN(r[2])?"none":si(r[2])+"deg",n==="lcha"||r.length>3&&r[3]<1?r[3]="/ "+(r.length>3?r[3]:1):r.length=3,`lch(${r.join(" ")})`},Eye=(...e)=>{const r=Ft(e,"lab");return r[0]=si(r[0]*100)+"%",r[1]=g6(r[1]),r[2]=g6(r[2]),r.length>3&&r[3]<1?r[3]="/ "+(r.length>3?r[3]:1):r.length=3,`oklab(${r.join(" ")})`},TI=(...e)=>{const[r,n,o,...a]=Ft(e,"rgb"),[i,s,l]=A6(r,n,o),[c,d,u]=sI(i,s,l);return[c,d,u,...a.length>0&&a[0]<1?[a[0]]:[]]},Sye=(...e)=>{const r=Ft(e,"lch");return r[0]=si(r[0]*100)+"%",r[1]=g6(r[1]),r[2]=isNaN(r[2])?"none":si(r[2])+"deg",r.length>3&&r[3]<1?r[3]="/ "+(r.length>3?r[3]:1):r.length=3,`oklch(${r.join(" ")})`},{round:P6}=Math,Cye=(...e)=>{const r=Ft(e,"rgba");let n=Kh(e)||"rgb";if(n.substr(0,3)==="hsl")return wye(cI(r),n);if(n.substr(0,3)==="lab"){const o=f1();Ql("d50");const a=kye(x6(r),n);return Ql(o),a}if(n.substr(0,3)==="lch"){const o=f1();Ql("d50");const a=_ye(E6(r),n);return Ql(o),a}return n.substr(0,5)==="oklab"?Eye(A6(r)):n.substr(0,5)==="oklch"?Sye(TI(r)):(r[0]=P6(r[0]),r[1]=P6(r[1]),r[2]=P6(r[2]),(n==="rgba"||r.length>3&&r[3]<1)&&(r[3]="/ "+(r.length>3?r[3]:1),n="rgba"),`${n.substr(0,3)}(${r.slice(0,n==="rgb"?3:4).join(" ")})`)},AI=(...e)=>{e=Ft(e,"lch");const[r,n,o,...a]=e,[i,s,l]=iI(r,n,o),[c,d,u]=T6(i,s,l);return[c,d,u,...a.length>0&&a[0]<1?[a[0]]:[]]},ec=/((?:-?\d+)|(?:-?\d+(?:\.\d+)?)%|none)/.source,Ji=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)%?)|none)/.source,Kv=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)%)|none)/.source,li=/\s*/.source,rf=/\s+/.source,M6=/\s*,\s*/.source,Zv=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)(?:deg)?)|none)/.source,nf=/\s*(?:\/\s*((?:[01]|[01]?\.\d+)|\d+(?:\.\d+)?%))?/.source,RI=new RegExp("^rgba?\\("+li+[ec,ec,ec].join(rf)+nf+"\\)$"),NI=new RegExp("^rgb\\("+li+[ec,ec,ec].join(M6)+li+"\\)$"),DI=new RegExp("^rgba\\("+li+[ec,ec,ec,Ji].join(M6)+li+"\\)$"),$I=new RegExp("^hsla?\\("+li+[Zv,Kv,Kv].join(rf)+nf+"\\)$"),PI=new RegExp("^hsl?\\("+li+[Zv,Kv,Kv].join(M6)+li+"\\)$"),MI=/^hsla\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,zI=new RegExp("^lab\\("+li+[Ji,Ji,Ji].join(rf)+nf+"\\)$"),II=new RegExp("^lch\\("+li+[Ji,Ji,Zv].join(rf)+nf+"\\)$"),OI=new RegExp("^oklab\\("+li+[Ji,Ji,Ji].join(rf)+nf+"\\)$"),jI=new RegExp("^oklch\\("+li+[Ji,Ji,Zv].join(rf)+nf+"\\)$"),{round:LI}=Math,of=e=>e.map((r,n)=>n<=2?Ou(LI(r),0,255):r),Dn=(e,r=0,n=100,o=!1)=>(typeof e=="string"&&e.endsWith("%")&&(e=parseFloat(e.substring(0,e.length-1))/100,o?e=r+(e+1)*.5*(n-r):e=r+e*(n-r)),+e),Yo=(e,r)=>e==="none"?r:e,z6=e=>{if(e=e.toLowerCase().trim(),e==="transparent")return[0,0,0,0];let r;if(jt.format.named)try{return jt.format.named(e)}catch{}if((r=e.match(RI))||(r=e.match(NI))){let n=r.slice(1,4);for(let a=0;a<3;a++)n[a]=+Dn(Yo(n[a],0),0,255);n=of(n);const o=r[4]!==void 0?+Dn(r[4],0,1):1;return n[3]=o,n}if(r=e.match(DI)){const n=r.slice(1,5);for(let o=0;o<4;o++)n[o]=+Dn(n[o],0,255);return n}if((r=e.match($I))||(r=e.match(PI))){const n=r.slice(1,4);n[0]=+Yo(n[0].replace("deg",""),0),n[1]=+Dn(Yo(n[1],0),0,100)*.01,n[2]=+Dn(Yo(n[2],0),0,100)*.01;const o=of(C6(n)),a=r[4]!==void 0?+Dn(r[4],0,1):1;return o[3]=a,o}if(r=e.match(MI)){const n=r.slice(1,4);n[1]*=.01,n[2]*=.01;const o=C6(n);for(let a=0;a<3;a++)o[a]=LI(o[a]);return o[3]=+r[4],o}if(r=e.match(zI)){const n=r.slice(1,4);n[0]=Dn(Yo(n[0],0),0,100),n[1]=Dn(Yo(n[1],0),-125,125,!0),n[2]=Dn(Yo(n[2],0),-125,125,!0);const o=f1();Ql("d50");const a=of(b6(n));Ql(o);const i=r[4]!==void 0?+Dn(r[4],0,1):1;return a[3]=i,a}if(r=e.match(II)){const n=r.slice(1,4);n[0]=Dn(n[0],0,100),n[1]=Dn(Yo(n[1],0),0,150,!1),n[2]=+Yo(n[2].replace("deg",""),0);const o=f1();Ql("d50");const a=of(_6(n));Ql(o);const i=r[4]!==void 0?+Dn(r[4],0,1):1;return a[3]=i,a}if(r=e.match(OI)){const n=r.slice(1,4);n[0]=Dn(Yo(n[0],0),0,1),n[1]=Dn(Yo(n[1],0),-.4,.4,!0),n[2]=Dn(Yo(n[2],0),-.4,.4,!0);const o=of(T6(n)),a=r[4]!==void 0?+Dn(r[4],0,1):1;return o[3]=a,o}if(r=e.match(jI)){const n=r.slice(1,4);n[0]=Dn(Yo(n[0],0),0,1),n[1]=Dn(Yo(n[1],0),0,.4,!1),n[2]=+Yo(n[2].replace("deg",""),0);const o=of(AI(n)),a=r[4]!==void 0?+Dn(r[4],0,1):1;return o[3]=a,o}};z6.test=e=>RI.test(e)||$I.test(e)||zI.test(e)||II.test(e)||OI.test(e)||jI.test(e)||NI.test(e)||DI.test(e)||PI.test(e)||MI.test(e)||e==="transparent",Ve.prototype.css=function(e){return Cye(this._rgb,e)};const Tye=(...e)=>new Ve(...e,"css");Lt.css=Tye,jt.format.css=z6,jt.autodetect.push({p:5,test:(e,...r)=>{if(!r.length&&Xt(e)==="string"&&z6.test(e))return"css"}}),jt.format.gl=(...e)=>{const r=Ft(e,"rgba");return r[0]*=255,r[1]*=255,r[2]*=255,r};const Aye=(...e)=>new Ve(...e,"gl");Lt.gl=Aye,Ve.prototype.gl=function(){const e=this._rgb;return[e[0]/255,e[1]/255,e[2]/255,e[3]]},Ve.prototype.hex=function(e){return nI(this._rgb,e)};const Rye=(...e)=>new Ve(...e,"hex");Lt.hex=Rye,jt.format.hex=rI,jt.autodetect.push({p:4,test:(e,...r)=>{if(!r.length&&Xt(e)==="string"&&[3,4,5,6,7,8,9].indexOf(e.length)>=0)return"hex"}});const{log:Qv}=Math,BI=e=>{const r=e/100;let n,o,a;return r<66?(n=255,o=r<6?0:-155.25485562709179-.44596950469579133*(o=r-2)+104.49216199393888*Qv(o),a=r<20?0:-254.76935184120902+.8274096064007395*(a=r-10)+115.67994401066147*Qv(a)):(n=351.97690566805693+.114206453784165*(n=r-55)-40.25366309332127*Qv(n),o=325.4494125711974+.07943456536662342*(o=r-50)-28.0852963507957*Qv(o),a=255),[n,o,a,1]},{round:Nye}=Math,Dye=(...e)=>{const r=Ft(e,"rgb"),n=r[0],o=r[2];let a=1e3,i=4e4;const s=.4;let l;for(;i-a>s;){l=(i+a)*.5;const c=BI(l);c[2]/c[0]>=o/n?i=l:a=l}return Nye(l)};Ve.prototype.temp=Ve.prototype.kelvin=Ve.prototype.temperature=function(){return Dye(this._rgb)};const I6=(...e)=>new Ve(...e,"temp");Object.assign(Lt,{temp:I6,kelvin:I6,temperature:I6}),jt.format.temp=jt.format.kelvin=jt.format.temperature=BI,Ve.prototype.oklch=function(){return TI(this._rgb)},Object.assign(Lt,{oklch:(...e)=>new Ve(...e,"oklch")}),jt.format.oklch=AI,jt.autodetect.push({p:2,test:(...e)=>{if(e=Ft(e,"oklch"),Xt(e)==="array"&&e.length===3)return"oklch"}}),Object.assign(Lt,{analyze:fI,average:z0e,bezier:F0e,blend:Qi,brewer:bye,Color:Ve,colors:Zh,contrast:sye,contrastAPCA:dye,cubehelix:J0e,deltaE:fye,distance:mye,input:jt,interpolate:Qh,limits:mI,mix:Qh,random:nye,scale:Yv,scales:yye,valid:gye});const O6=[.96,.907,.805,.697,.605,.547,.518,.445,.395,.34],FI=[.32,.16,.08,.04,0,0,.04,.08,.16,.32];function $ye(e){const r=e.get("hsl.l");return O6.reduce((n,o)=>Math.abs(o-r)i===n),a=O6.map(i=>r.set("hsl.l",i)).map(i=>Lt(i)).map((i,s)=>{const l=FI[s]-FI[o];return l>=0?i.saturate(l):i.desaturate(l*-1)});return a[o]=Lt(e),{baseColorIndex:o,colors:a}}function Mye(e){return Pye(e).colors.map(r=>r.hex())}const HI={fill:"#3b82f6",stroke:"#2563eb",hiContrast:"#eff6ff",loContrast:"#bfdbfe"},VI={fill:"#0284c7",stroke:"#0369a1",hiContrast:"#f0f9ff",loContrast:"#B6ECF7"},qI={fill:"#64748b",stroke:"#475569",hiContrast:"#f8fafc",loContrast:"#cbd5e1"},zye={primary:HI,blue:HI,secondary:VI,sky:VI,muted:qI,slate:qI,gray:{fill:"#737373",stroke:"#525252",hiContrast:"#fafafa",loContrast:"#d4d4d4"},red:{fill:"#AC4D39",stroke:"#853A2D",hiContrast:"#FBD3CB",loContrast:"#f5b2a3"},green:{fill:"#428a4f",stroke:"#2d5d39",hiContrast:"#f8fafc",loContrast:"#c2f0c2"},amber:{fill:"#A35829",stroke:"#7E451D",hiContrast:"#FFE0C2",loContrast:"#f9b27c"},indigo:{fill:"#6366f1",stroke:"#4f46e5",hiContrast:"#eef2ff",loContrast:"#c7d2fe"}},Iye={line:"#6E6E6E",labelBg:"#18191b",label:"#C6C6C6"},UI={line:"#64748b",labelBg:"#0f172a",label:"#cbd5e1"},WI={line:"#3b82f6",labelBg:"#172554",label:"#60a5fa"},YI={line:"#0ea5e9",labelBg:"#082f49",label:"#38bdf8"},Oye={amber:{line:"#b45309",labelBg:"#78350f",label:"#FFE0C2"},blue:WI,gray:Iye,green:{line:"#15803d",labelBg:"#052e16",label:"#22c55e"},indigo:{line:"#6366f1",labelBg:"#1e1b4b",label:"#818cf8"},muted:UI,primary:WI,red:{line:"#AC4D39",labelBg:"#b91c1c",label:"#f5b2a3"},secondary:YI,sky:YI,slate:UI},GI=60,XI=2,KI=1;function jye(e){at(Lt.valid(e),`Invalid color: ${e}`);const r=Mye(e),n=r[6],o=Lye(n);return{elements:{fill:n,stroke:r[7],hiContrast:o[0],loContrast:o[1]},relationships:{line:r[4],label:r[3],labelBg:r[9]}}}function Lye(e){const r=Lt(e);let n=r.brighten(XI),o=r.darken(XI),a,i,s,l;do a=n,i=o,n=n.brighten(KI),o=o.darken(KI),s=Lt.contrastAPCA(r,n),l=Lt.contrastAPCA(r,o);while(Math.abs(s)Math.abs(l)?[n.brighten(.4).hex(),n.hex()]:[o.darken(.4).hex(),o.hex()]}const Bye={color:"primary",size:"md",opacity:15,shape:"rectangle",group:{opacity:15,border:"dashed"},relationship:{color:"gray",line:"dashed",arrow:"normal"}},Fye=["rectangle","person","browser","mobile","cylinder","storage","queue"],Hye={colors:$1e(["amber","blue","gray","slate","green","indigo","muted","primary","red","secondary","sky"],e=>({elements:zye[e],relationships:Oye[e]})),sizes:{xs:{width:180,height:100},sm:{width:240,height:135},md:{width:320,height:180},lg:{width:420,height:234},xl:{width:520,height:290}},spacing:{xs:8,sm:10,md:16,lg:24,xl:32},textSizes:{xs:13.33,sm:16,md:19.2,lg:23.04,xl:27.65}};function j6(e){if(e===null||typeof e!="object")return!1;const r=Object.getPrototypeOf(e);return r!==null&&r!==Object.prototype&&Object.getPrototypeOf(r)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function L6(e,r,n=".",o){if(!j6(r))return L6(e,{},n);const a=Object.assign({},r);for(const i in e){if(i==="__proto__"||i==="constructor")continue;const s=e[i];s!=null&&(Array.isArray(s)&&Array.isArray(a[i])?a[i]=[...s,...a[i]]:j6(s)&&j6(a[i])?a[i]=L6(s,a[i],(n?`${n}.`:"")+i.toString()):a[i]=s)}return a}function Vye(e){return(...r)=>r.reduce((n,o)=>L6(n,o,""),{})}const qye=Vye();function Jv({size:e,padding:r,textSize:n,...o},a=B6.defaults.size){return e??=a,n??=e,r??=e,{...o,size:e,padding:r,textSize:n}}const B6={theme:Hye,defaults:Bye};let ZI=class Hz{constructor(r){this.config=r,this.theme=r.theme,this.defaults=r.defaults}theme;defaults;static DEFAULT=new Hz(B6);static from(...r){return Kl(r,1)?new Hz(qye(...r,B6)):this.DEFAULT}get elementColors(){return this.theme.colors[this.defaults.color].elements}get relationshipColors(){return this.theme.colors[this.defaults.relationship.color].relationships}get groupColors(){const r=this.defaults.group?.color;return r?yr(this,"defaultGroup",()=>({...this.elementColors,...this.theme.colors[r].elements})):this.elementColors}isDefaultColor(r){return r===this.defaults.color}colors(r){if(r??=this.defaults.color,this.isThemeColor(r))return this.theme.colors[r];throw new Error(`Unknown color: ${r}`)}fontSize(r){return r??=this.defaults.text??this.defaults.size,this.theme.textSizes[r]}padding(r){return r??=this.defaults.padding??this.defaults.size,this.theme.spacing[r]}isThemeColor(r){return r in this.theme.colors}nodeSizes(r){const n=Jv(r,this.defaults.size);return{sizes:n,values:{sizes:this.theme.sizes[n.size],padding:this.padding(n.padding),textSize:this.fontSize(n.textSize)}}}computeFrom(r){return this.isThemeColor(r)?this.theme.colors[r]:yr(this,`compute-${r}`,()=>{if(!Lt.valid(r))throw new Error(`Invalid color value: "${r}"`);return jye(r)})}equals(r){return r===this?!0:Vv(this.config,r.config)}};function m1(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function cd(e){return typeof e=="string"}var F6={exports:{}},QI;function Uye(){if(QI)return F6.exports;QI=1;var e=function(r,n){var o,a,i=1,s=0,l=0,c=String.alphabet;function d(u,h,f){if(f){for(o=h;f=d(u,o),f<76&&f>65;)++o;return+u.slice(h-1,o)}return f=c&&c.indexOf(u.charAt(h)),f>-1?f+76:(f=u.charCodeAt(h)||0,f<45||f>127?f:f<46?65:f<48?f-1:f<58?f+18:f<65?f-11:f<91?f+11:f<97?f-37:f<123?f+5:f-63)}if((r+="")!=(n+="")){for(;i;)if(a=d(r,s++),i=d(n,l++),a<76&&i<76&&a>66&&i>66&&(a=d(r,s,s),i=d(n,l,s=o),l=o),a!=i)return a{if(n===o)return 0;if(!n)return-1;if(!o)return 1;const a=n.split(e),i=o.split(e),s=Math.min(a.length,i.length);for(let c=0;c0?e.slice(0,r):null}function g1(e){const r=e.lastIndexOf(".");return r>0?e.slice(r+1):e}const y1=e=>H6(e)?e:e.id;function to(e,r){const n=y1(e);return r?y1(r).startsWith(n+"."):o=>{const a=y1(o);return n.startsWith(a+".")}}function tO(e,r){if(!r)return a=>tO(e,a);const n=y1(e),o=y1(r);return n===o||o.startsWith(n+".")||n.startsWith(o+".")}function rO(e,r){return n=>to(e,n)}function r3(e){return(H6(e)?e:e.id).split(".").length}function b1(e,r){const n=e.split(".");if(n.length<2)return null;const o=r.split(".");if(o.length<2)return null;let a=[];for(let i=0;ia===0?(n.push(o),n):(n.unshift(`${n[0]}.${o}`),n),[])}function Yye(e,r){let n=r;for(const o of e)to(o,n)&&(n=o);return n!==r?n:null}function dd(e){const r=[],n=[...e];let o;for(;o=n.shift();){let a;for(;a=Yye(n,o);)r.push(n.splice(n.indexOf(a),1)[0]);r.push(o)}return r}function nO(e,r){if(!e||H6(e)){const o=e??"asc";return a=>nO(a,o)}const n=r==="desc"?-1:1;return e.map(o=>({item:o,fqn:o.id.split(".")})).sort((o,a)=>{if(o.fqn.length!==a.fqn.length)return(o.fqn.length-a.fqn.length)*n;for(let i=0;io)}var n3={},oO;function Gye(){return oO||(oO=1,n3.ARRAY_BUFFER_SUPPORT=typeof ArrayBuffer<"u",n3.SYMBOL_SUPPORT=typeof Symbol<"u"),n3}var V6,aO;function iO(){if(aO)return V6;aO=1;function e(r){if(typeof r!="function")throw new Error("obliterator/iterator: expecting a function!");this.next=r}return typeof Symbol<"u"&&(e.prototype[Symbol.iterator]=function(){return this}),e.of=function(){var r=arguments,n=r.length,o=0;return new e(function(){return o>=n?{done:!0}:{done:!1,value:r[o++]}})},e.empty=function(){var r=new e(function(){return{done:!0}});return r},e.fromSequence=function(r){var n=0,o=r.length;return new e(function(){return n>=o?{done:!0}:{done:!1,value:r[n++]}})},e.is=function(r){return r instanceof e?!0:typeof r=="object"&&r!==null&&typeof r.next=="function"},V6=e,V6}var q6,sO;function o3(){if(sO)return q6;sO=1;var e=Gye(),r=e.ARRAY_BUFFER_SUPPORT,n=e.SYMBOL_SUPPORT;return q6=function(a,i){var s,l,c,d,u;if(!a)throw new Error("obliterator/forEach: invalid iterable.");if(typeof i!="function")throw new Error("obliterator/forEach: expecting a callback.");if(Array.isArray(a)||r&&ArrayBuffer.isView(a)||typeof a=="string"||a.toString()==="[object Arguments]"){for(c=0,d=a.length;c{const n=(a,i)=>(e.set(i,a),a),o=a=>{if(e.has(a))return e.get(a);const[i,s]=r[a];switch(i){case a3:case lO:return n(s,a);case v1:{const l=n([],a);for(const c of s)l.push(o(c));return l}case i3:{const l=n({},a);for(const[c,d]of s)l[o(c)]=o(d);return l}case U6:return n(new Date(s),a);case W6:{const{source:l,flags:c}=s;return n(new RegExp(l,c),a)}case Y6:{const l=n(new Map,a);for(const[c,d]of s)l.set(o(c),o(d));return l}case G6:{const l=n(new Set,a);for(const c of s)l.add(o(c));return l}case cO:{const{name:l,message:c}=s;return n(new uO[l](c),a)}case dO:return n(BigInt(s),a);case"BigInt":return n(Object(BigInt(s)),a);case"ArrayBuffer":return n(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:l}=new Uint8Array(s);return n(new DataView(l),s)}}return n(new uO[i](s),a)};return o},pO=e=>Xye(new Map,e)(0),af="",{toString:Kye}={},{keys:Zye}=Object,x1=e=>{const r=typeof e;if(r!=="object"||!e)return[a3,r];const n=Kye.call(e).slice(8,-1);switch(n){case"Array":return[v1,af];case"Object":return[i3,af];case"Date":return[U6,af];case"RegExp":return[W6,af];case"Map":return[Y6,af];case"Set":return[G6,af];case"DataView":return[v1,n]}return n.includes("Array")?[v1,n]:n.includes("Error")?[cO,n]:[i3,n]},s3=([e,r])=>e===a3&&(r==="function"||r==="symbol"),Qye=(e,r,n,o)=>{const a=(s,l)=>{const c=o.push(s)-1;return n.set(l,c),c},i=s=>{if(n.has(s))return n.get(s);let[l,c]=x1(s);switch(l){case a3:{let u=s;switch(c){case"bigint":l=dO,u=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+c);u=null;break;case"undefined":return a([lO],s)}return a([l,u],s)}case v1:{if(c){let f=s;return c==="DataView"?f=new Uint8Array(s.buffer):c==="ArrayBuffer"&&(f=new Uint8Array(s)),a([c,[...f]],s)}const u=[],h=a([l,u],s);for(const f of s)u.push(i(f));return h}case i3:{if(c)switch(c){case"BigInt":return a([c,s.toString()],s);case"Boolean":case"Number":case"String":return a([c,s.valueOf()],s)}if(r&&"toJSON"in s)return i(s.toJSON());const u=[],h=a([l,u],s);for(const f of Zye(s))(e||!s3(x1(s[f])))&&u.push([i(f),i(s[f])]);return h}case U6:return a([l,s.toISOString()],s);case W6:{const{source:u,flags:h}=s;return a([l,{source:u,flags:h}],s)}case Y6:{const u=[],h=a([l,u],s);for(const[f,g]of s)(e||!(s3(x1(f))||s3(x1(g))))&&u.push([i(f),i(g)]);return h}case G6:{const u=[],h=a([l,u],s);for(const f of s)(e||!s3(x1(f)))&&u.push(i(f));return h}}const{message:d}=s;return a([l,{name:c,message:d}],s)};return i},hO=(e,{json:r,lossy:n}={})=>{const o=[];return Qye(!(r||n),!!r,new Map,o)(e),o},Lu=typeof structuredClone=="function"?(e,r)=>r&&("json"in r||"lossy"in r)?pO(hO(e,r)):structuredClone(e):(e,r)=>pO(hO(e,r));function tkt(){}let w1=class{constructor(r,n,o){this.normal=n,this.property=r,o&&(this.space=o)}};w1.prototype.normal={},w1.prototype.property={},w1.prototype.space=void 0;function fO(e,r){const n={},o={};for(const a of e)Object.assign(n,a.property),Object.assign(o,a.normal);return new w1(n,o,r)}function k1(e){return e.toLowerCase()}let oa=class{constructor(r,n){this.attribute=n,this.property=r}};oa.prototype.attribute="",oa.prototype.booleanish=!1,oa.prototype.boolean=!1,oa.prototype.commaOrSpaceSeparated=!1,oa.prototype.commaSeparated=!1,oa.prototype.defined=!1,oa.prototype.mustUseProperty=!1,oa.prototype.number=!1,oa.prototype.overloadedBoolean=!1,oa.prototype.property="",oa.prototype.spaceSeparated=!1,oa.prototype.space=void 0;let Jye=0;const Ht=Bu(),$n=Bu(),mO=Bu(),Ue=Bu(),jr=Bu(),sf=Bu(),Ra=Bu();function Bu(){return 2**++Jye}const X6={__proto__:null,boolean:Ht,booleanish:$n,commaOrSpaceSeparated:Ra,commaSeparated:sf,number:Ue,overloadedBoolean:mO,spaceSeparated:jr},K6=Object.keys(X6);let Z6=class extends oa{constructor(r,n,o,a){let i=-1;if(super(r,n),gO(this,"space",a),typeof o=="number")for(;++i4&&n.slice(0,4)==="data"&&nbe.test(r)){if(r.charAt(4)==="-"){const i=r.slice(5).replace(_O,abe);o="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=r.slice(4);if(!_O.test(i)){let s=i.replace(rbe,obe);s.charAt(0)!=="-"&&(s="-"+s),r="data"+s}}a=Z6}return new a(o,r)}function obe(e){return"-"+e.toLowerCase()}function abe(e){return e.charAt(1).toUpperCase()}const l3=fO([yO,ebe,xO,wO,kO],"html"),_1=fO([yO,tbe,xO,wO,kO],"svg");function EO(e){const r=[],n=String(e||"");let o=n.indexOf(","),a=0,i=!1;for(;!i;){o===-1&&(o=n.length,i=!0);const s=n.slice(a,o).trim();(s||!i)&&r.push(s),a=o+1,o=n.indexOf(",",a)}return r}function SO(e,r){const n=r||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const CO=/[#.]/g;function ibe(e,r){const n=e||"",o={};let a=0,i,s;for(;a-1&&i<=r.length){let s=0;for(;;){let l=n[s];if(l===void 0){const c=DO(r,n[s-1]);l=c===-1?r.length+1:c+1,n[s]=l}if(l>i)return{line:s+1,column:i-(s>0?n[s-1]:0)+1,offset:i};s++}}}function a(i){if(i&&typeof i.line=="number"&&typeof i.column=="number"&&!Number.isNaN(i.line)&&!Number.isNaN(i.column)){for(;n.length1?n[i.line-2]:0)+i.column-1;if(s4&&n.slice(0,4)==="data"&&_be.test(r)){if(r.charAt(4)==="-"){const i=r.slice(5).replace(qO,Tbe);o="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=r.slice(4);if(!qO.test(i)){let s=i.replace(Ebe,Cbe);s.charAt(0)!=="-"&&(s="-"+s),r="data"+s}}a=o8}return new a(o,r)}function Cbe(e){return"-"+e.toLowerCase()}function Tbe(e){return e.charAt(1).toUpperCase()}const Abe=zO([LO,jO,HO,VO,wbe],"html"),UO=zO([LO,jO,HO,VO,kbe],"svg"),WO={}.hasOwnProperty;function a8(e,r){const n=r||{};function o(a,...i){let s=o.invalid;const l=o.handlers;if(a&&WO.call(a,e)){const c=String(a[e]);s=WO.call(l,c)?l[c]:o.unknown}if(s)return s.call(this,a,...i)}return o.handlers=n.handlers||{},o.invalid=n.invalid,o.unknown=n.unknown,o}const Rbe={},Nbe={}.hasOwnProperty,YO=a8("type",{handlers:{root:$be,element:Obe,text:zbe,comment:Ibe,doctype:Mbe}});function Dbe(e,r){const o=(r||Rbe).space;return YO(e,o==="svg"?UO:Abe)}function $be(e,r){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=i8(e.children,n,r),pf(e,n),n}function Pbe(e,r){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=i8(e.children,n,r),pf(e,n),n}function Mbe(e){const r={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return pf(e,r),r}function zbe(e){const r={nodeName:"#text",value:e.value,parentNode:null};return pf(e,r),r}function Ibe(e){const r={nodeName:"#comment",data:e.value,parentNode:null};return pf(e,r),r}function Obe(e,r){const n=r;let o=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(o=UO);const a=[];let i;if(e.properties){for(i in e.properties)if(i!=="children"&&Nbe.call(e.properties,i)){const c=jbe(o,i,e.properties[i]);c&&a.push(c)}}const s=o.space,l={nodeName:e.tagName,tagName:e.tagName,attrs:a,namespaceURI:Fu[s],childNodes:[],parentNode:null};return l.childNodes=i8(e.children,l,o),pf(e,l),e.tagName==="template"&&e.content&&(l.content=Pbe(e.content,o)),l}function jbe(e,r,n){const o=Sbe(e,r);if(n===!1||n===null||n===void 0||typeof n=="number"&&Number.isNaN(n)||!n&&o.boolean)return;Array.isArray(n)&&(n=o.commaSeparated?SO(n):AO(n));const a={name:o.attribute,value:n===!0?"":String(n)};if(o.space&&o.space!=="html"&&o.space!=="svg"){const i=a.name.indexOf(":");i<0?a.prefix="":(a.name=a.name.slice(i+1),a.prefix=o.attribute.slice(0,i)),a.namespace=Fu[o.space]}return a}function i8(e,r,n){let o=-1;const a=[];if(e)for(;++o=55296&&e<=57343}function Bbe(e){return e>=56320&&e<=57343}function Fbe(e,r){return(e-55296)*1024+9216+r}function KO(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function ZO(e){return e>=64976&&e<=65007||Lbe.has(e)}var Ae;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(Ae||(Ae={}));const Hbe=65536;class Vbe{constructor(r){this.handler=r,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=Hbe,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(r,n){const{line:o,col:a,offset:i}=this,s=a+n,l=i+n;return{code:r,startLine:o,endLine:o,startCol:s,endCol:s,startOffset:l,endOffset:l}}_err(r){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(r,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(r){if(this.pos!==this.html.length-1){const n=this.html.charCodeAt(this.pos+1);if(Bbe(n))return this.pos++,this._addGap(),Fbe(r,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,se.EOF;return this._err(Ae.surrogateInInputStream),r}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(r,n){this.html.length>0?this.html+=r:this.html=r,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(r){this.html=this.html.substring(0,this.pos+1)+r+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(r,n){if(this.pos+r.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(r,this.pos);for(let o=0;o=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,se.EOF;const o=this.html.charCodeAt(n);return o===se.CARRIAGE_RETURN?se.LINE_FEED:o}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,se.EOF;let r=this.html.charCodeAt(this.pos);return r===se.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,se.LINE_FEED):r===se.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,XO(r)&&(r=this._processSurrogate(r)),this.handler.onParseError===null||r>31&&r<127||r===se.LINE_FEED||r===se.CARRIAGE_RETURN||r>159&&r<64976||this._checkForProblematicCharacters(r),r)}_checkForProblematicCharacters(r){KO(r)?this._err(Ae.controlCharacterInInputStream):ZO(r)&&this._err(Ae.noncharacterInInputStream)}retreat(r){for(this.pos-=r;this.pos=0;n--)if(e.attrs[n].name===r)return e.attrs[n].value;return null}const JO=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),qbe=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var s8;const Ube=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),Wbe=(s8=String.fromCodePoint)!==null&&s8!==void 0?s8:function(e){let r="";return e>65535&&(e-=65536,r+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),r+=String.fromCharCode(e),r};function Ybe(e){var r;return e>=55296&&e<=57343||e>1114111?65533:(r=Ube.get(e))!==null&&r!==void 0?r:e}var ro;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(ro||(ro={}));const Gbe=32;var ud;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(ud||(ud={}));function l8(e){return e>=ro.ZERO&&e<=ro.NINE}function Xbe(e){return e>=ro.UPPER_A&&e<=ro.UPPER_F||e>=ro.LOWER_A&&e<=ro.LOWER_F}function Kbe(e){return e>=ro.UPPER_A&&e<=ro.UPPER_Z||e>=ro.LOWER_A&&e<=ro.LOWER_Z||l8(e)}function Zbe(e){return e===ro.EQUALS||Kbe(e)}var no;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(no||(no={}));var tc;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(tc||(tc={}));class ej{constructor(r,n,o){this.decodeTree=r,this.emitCodePoint=n,this.errors=o,this.state=no.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=tc.Strict}startEntity(r){this.decodeMode=r,this.state=no.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(r,n){switch(this.state){case no.EntityStart:return r.charCodeAt(n)===ro.NUM?(this.state=no.NumericStart,this.consumed+=1,this.stateNumericStart(r,n+1)):(this.state=no.NamedEntity,this.stateNamedEntity(r,n));case no.NumericStart:return this.stateNumericStart(r,n);case no.NumericDecimal:return this.stateNumericDecimal(r,n);case no.NumericHex:return this.stateNumericHex(r,n);case no.NamedEntity:return this.stateNamedEntity(r,n)}}stateNumericStart(r,n){return n>=r.length?-1:(r.charCodeAt(n)|Gbe)===ro.LOWER_X?(this.state=no.NumericHex,this.consumed+=1,this.stateNumericHex(r,n+1)):(this.state=no.NumericDecimal,this.stateNumericDecimal(r,n))}addToNumericResult(r,n,o,a){if(n!==o){const i=o-n;this.result=this.result*Math.pow(a,i)+parseInt(r.substr(n,i),a),this.consumed+=i}}stateNumericHex(r,n){const o=n;for(;n>14;for(;n>14,i!==0){if(s===ro.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==tc.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var r;const{result:n,decodeTree:o}=this,a=(o[n]&ud.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,a,this.consumed),(r=this.errors)===null||r===void 0||r.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(r,n,o){const{decodeTree:a}=this;return this.emitCodePoint(n===1?a[r]&~ud.VALUE_LENGTH:a[r+1],o),n===3&&this.emitCodePoint(a[r+2],o),o}end(){var r;switch(this.state){case no.NamedEntity:return this.result!==0&&(this.decodeMode!==tc.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case no.NumericDecimal:return this.emitNumericEntity(0,2);case no.NumericHex:return this.emitNumericEntity(0,3);case no.NumericStart:return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case no.EntityStart:return 0}}}function tj(e){let r="";const n=new ej(e,o=>r+=Wbe(o));return function(a,i){let s=0,l=0;for(;(l=a.indexOf("&",l))>=0;){r+=a.slice(s,l),n.startEntity(i);const d=n.write(a,l+1);if(d<0){s=l+n.end();break}s=l+d,l=d===0?s+1:s}const c=r+a.slice(s);return r="",c}}function Qbe(e,r,n,o){const a=(r&ud.BRANCH_LENGTH)>>7,i=r&ud.JUMP_TABLE;if(a===0)return i!==0&&o===i?n:-1;if(i){const c=o-i;return c<0||c>=a?-1:e[n+c]-1}let s=n,l=s+a-1;for(;s<=l;){const c=s+l>>>1,d=e[c];if(do)l=c-1;else return e[c+a]}return-1}tj(JO),tj(qbe);var je;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(je||(je={}));var Vu;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(Vu||(Vu={}));var di;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(di||(di={}));var ve;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(ve||(ve={}));var B;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(B||(B={}));const Jbe=new Map([[ve.A,B.A],[ve.ADDRESS,B.ADDRESS],[ve.ANNOTATION_XML,B.ANNOTATION_XML],[ve.APPLET,B.APPLET],[ve.AREA,B.AREA],[ve.ARTICLE,B.ARTICLE],[ve.ASIDE,B.ASIDE],[ve.B,B.B],[ve.BASE,B.BASE],[ve.BASEFONT,B.BASEFONT],[ve.BGSOUND,B.BGSOUND],[ve.BIG,B.BIG],[ve.BLOCKQUOTE,B.BLOCKQUOTE],[ve.BODY,B.BODY],[ve.BR,B.BR],[ve.BUTTON,B.BUTTON],[ve.CAPTION,B.CAPTION],[ve.CENTER,B.CENTER],[ve.CODE,B.CODE],[ve.COL,B.COL],[ve.COLGROUP,B.COLGROUP],[ve.DD,B.DD],[ve.DESC,B.DESC],[ve.DETAILS,B.DETAILS],[ve.DIALOG,B.DIALOG],[ve.DIR,B.DIR],[ve.DIV,B.DIV],[ve.DL,B.DL],[ve.DT,B.DT],[ve.EM,B.EM],[ve.EMBED,B.EMBED],[ve.FIELDSET,B.FIELDSET],[ve.FIGCAPTION,B.FIGCAPTION],[ve.FIGURE,B.FIGURE],[ve.FONT,B.FONT],[ve.FOOTER,B.FOOTER],[ve.FOREIGN_OBJECT,B.FOREIGN_OBJECT],[ve.FORM,B.FORM],[ve.FRAME,B.FRAME],[ve.FRAMESET,B.FRAMESET],[ve.H1,B.H1],[ve.H2,B.H2],[ve.H3,B.H3],[ve.H4,B.H4],[ve.H5,B.H5],[ve.H6,B.H6],[ve.HEAD,B.HEAD],[ve.HEADER,B.HEADER],[ve.HGROUP,B.HGROUP],[ve.HR,B.HR],[ve.HTML,B.HTML],[ve.I,B.I],[ve.IMG,B.IMG],[ve.IMAGE,B.IMAGE],[ve.INPUT,B.INPUT],[ve.IFRAME,B.IFRAME],[ve.KEYGEN,B.KEYGEN],[ve.LABEL,B.LABEL],[ve.LI,B.LI],[ve.LINK,B.LINK],[ve.LISTING,B.LISTING],[ve.MAIN,B.MAIN],[ve.MALIGNMARK,B.MALIGNMARK],[ve.MARQUEE,B.MARQUEE],[ve.MATH,B.MATH],[ve.MENU,B.MENU],[ve.META,B.META],[ve.MGLYPH,B.MGLYPH],[ve.MI,B.MI],[ve.MO,B.MO],[ve.MN,B.MN],[ve.MS,B.MS],[ve.MTEXT,B.MTEXT],[ve.NAV,B.NAV],[ve.NOBR,B.NOBR],[ve.NOFRAMES,B.NOFRAMES],[ve.NOEMBED,B.NOEMBED],[ve.NOSCRIPT,B.NOSCRIPT],[ve.OBJECT,B.OBJECT],[ve.OL,B.OL],[ve.OPTGROUP,B.OPTGROUP],[ve.OPTION,B.OPTION],[ve.P,B.P],[ve.PARAM,B.PARAM],[ve.PLAINTEXT,B.PLAINTEXT],[ve.PRE,B.PRE],[ve.RB,B.RB],[ve.RP,B.RP],[ve.RT,B.RT],[ve.RTC,B.RTC],[ve.RUBY,B.RUBY],[ve.S,B.S],[ve.SCRIPT,B.SCRIPT],[ve.SEARCH,B.SEARCH],[ve.SECTION,B.SECTION],[ve.SELECT,B.SELECT],[ve.SOURCE,B.SOURCE],[ve.SMALL,B.SMALL],[ve.SPAN,B.SPAN],[ve.STRIKE,B.STRIKE],[ve.STRONG,B.STRONG],[ve.STYLE,B.STYLE],[ve.SUB,B.SUB],[ve.SUMMARY,B.SUMMARY],[ve.SUP,B.SUP],[ve.TABLE,B.TABLE],[ve.TBODY,B.TBODY],[ve.TEMPLATE,B.TEMPLATE],[ve.TEXTAREA,B.TEXTAREA],[ve.TFOOT,B.TFOOT],[ve.TD,B.TD],[ve.TH,B.TH],[ve.THEAD,B.THEAD],[ve.TITLE,B.TITLE],[ve.TR,B.TR],[ve.TRACK,B.TRACK],[ve.TT,B.TT],[ve.U,B.U],[ve.UL,B.UL],[ve.SVG,B.SVG],[ve.VAR,B.VAR],[ve.WBR,B.WBR],[ve.XMP,B.XMP]]);function hf(e){var r;return(r=Jbe.get(e))!==null&&r!==void 0?r:B.UNKNOWN}const Fe=B,eve={[je.HTML]:new Set([Fe.ADDRESS,Fe.APPLET,Fe.AREA,Fe.ARTICLE,Fe.ASIDE,Fe.BASE,Fe.BASEFONT,Fe.BGSOUND,Fe.BLOCKQUOTE,Fe.BODY,Fe.BR,Fe.BUTTON,Fe.CAPTION,Fe.CENTER,Fe.COL,Fe.COLGROUP,Fe.DD,Fe.DETAILS,Fe.DIR,Fe.DIV,Fe.DL,Fe.DT,Fe.EMBED,Fe.FIELDSET,Fe.FIGCAPTION,Fe.FIGURE,Fe.FOOTER,Fe.FORM,Fe.FRAME,Fe.FRAMESET,Fe.H1,Fe.H2,Fe.H3,Fe.H4,Fe.H5,Fe.H6,Fe.HEAD,Fe.HEADER,Fe.HGROUP,Fe.HR,Fe.HTML,Fe.IFRAME,Fe.IMG,Fe.INPUT,Fe.LI,Fe.LINK,Fe.LISTING,Fe.MAIN,Fe.MARQUEE,Fe.MENU,Fe.META,Fe.NAV,Fe.NOEMBED,Fe.NOFRAMES,Fe.NOSCRIPT,Fe.OBJECT,Fe.OL,Fe.P,Fe.PARAM,Fe.PLAINTEXT,Fe.PRE,Fe.SCRIPT,Fe.SECTION,Fe.SELECT,Fe.SOURCE,Fe.STYLE,Fe.SUMMARY,Fe.TABLE,Fe.TBODY,Fe.TD,Fe.TEMPLATE,Fe.TEXTAREA,Fe.TFOOT,Fe.TH,Fe.THEAD,Fe.TITLE,Fe.TR,Fe.TRACK,Fe.UL,Fe.WBR,Fe.XMP]),[je.MATHML]:new Set([Fe.MI,Fe.MO,Fe.MN,Fe.MS,Fe.MTEXT,Fe.ANNOTATION_XML]),[je.SVG]:new Set([Fe.TITLE,Fe.FOREIGN_OBJECT,Fe.DESC]),[je.XLINK]:new Set,[je.XML]:new Set,[je.XMLNS]:new Set},c8=new Set([Fe.H1,Fe.H2,Fe.H3,Fe.H4,Fe.H5,Fe.H6]);ve.STYLE,ve.SCRIPT,ve.XMP,ve.IFRAME,ve.NOEMBED,ve.NOFRAMES,ve.PLAINTEXT;var ce;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(ce||(ce={}));const kn={DATA:ce.DATA,RCDATA:ce.RCDATA,RAWTEXT:ce.RAWTEXT,SCRIPT_DATA:ce.SCRIPT_DATA,PLAINTEXT:ce.PLAINTEXT,CDATA_SECTION:ce.CDATA_SECTION};function tve(e){return e>=se.DIGIT_0&&e<=se.DIGIT_9}function S1(e){return e>=se.LATIN_CAPITAL_A&&e<=se.LATIN_CAPITAL_Z}function rve(e){return e>=se.LATIN_SMALL_A&&e<=se.LATIN_SMALL_Z}function pd(e){return rve(e)||S1(e)}function rj(e){return pd(e)||tve(e)}function d3(e){return e+32}function nj(e){return e===se.SPACE||e===se.LINE_FEED||e===se.TABULATION||e===se.FORM_FEED}function oj(e){return nj(e)||e===se.SOLIDUS||e===se.GREATER_THAN_SIGN}function nve(e){return e===se.NULL?Ae.nullCharacterReference:e>1114111?Ae.characterReferenceOutsideUnicodeRange:XO(e)?Ae.surrogateCharacterReference:ZO(e)?Ae.noncharacterCharacterReference:KO(e)||e===se.CARRIAGE_RETURN?Ae.controlCharacterReference:null}class ove{constructor(r,n){this.options=r,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=ce.DATA,this.returnState=ce.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new Vbe(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new ej(JO,(o,a)=>{this.preprocessor.pos=this.entityStartPos+a-1,this._flushCodePointConsumedAsCharacterReference(o)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(Ae.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:o=>{this._err(Ae.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+o)},validateNumericCharacterReference:o=>{const a=nve(o);a&&this._err(a,1)}}:void 0)}_err(r,n=0){var o,a;(a=(o=this.handler).onParseError)===null||a===void 0||a.call(o,this.preprocessor.getError(r,n))}getCurrentLocation(r){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-r,startOffset:this.preprocessor.offset-r,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const r=this._consume();this._ensureHibernation()||this._callState(r)}this.inLoop=!1}}pause(){this.paused=!0}resume(r){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||r?.())}write(r,n,o){this.active=!0,this.preprocessor.write(r,n),this._runParsingLoop(),this.paused||o?.()}insertHtmlAtCurrentPos(r){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(r),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(r){this.consumedAfterSnapshot+=r;for(let n=0;n0&&this._err(Ae.endTagWithAttributes),r.selfClosing&&this._err(Ae.endTagWithTrailingSolidus),this.handler.onEndTag(r)),this.preprocessor.dropParsedChunk()}emitCurrentComment(r){this.prepareToken(r),this.handler.onComment(r),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(r){this.prepareToken(r),this.handler.onDoctype(r),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(r){if(this.currentCharacterToken){switch(r&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=r.startLine,this.currentCharacterToken.location.endCol=r.startCol,this.currentCharacterToken.location.endOffset=r.startOffset),this.currentCharacterToken.type){case Kt.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case Kt.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case Kt.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const r=this.getCurrentLocation(0);r&&(r.endLine=r.startLine,r.endCol=r.startCol,r.endOffset=r.startOffset),this._emitCurrentCharacterToken(r),this.handler.onEof({type:Kt.EOF,location:r}),this.active=!1}_appendCharToCurrentCharacterToken(r,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type===r){this.currentCharacterToken.chars+=n;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(r,n)}_emitCodePoint(r){const n=nj(r)?Kt.WHITESPACE_CHARACTER:r===se.NULL?Kt.NULL_CHARACTER:Kt.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(r))}_emitChars(r){this._appendCharToCurrentCharacterToken(Kt.CHARACTER,r)}_startCharacterReference(){this.returnState=this.state,this.state=ce.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?tc.Attribute:tc.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===ce.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===ce.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===ce.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(r){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(r):this._emitCodePoint(r)}_callState(r){switch(this.state){case ce.DATA:{this._stateData(r);break}case ce.RCDATA:{this._stateRcdata(r);break}case ce.RAWTEXT:{this._stateRawtext(r);break}case ce.SCRIPT_DATA:{this._stateScriptData(r);break}case ce.PLAINTEXT:{this._statePlaintext(r);break}case ce.TAG_OPEN:{this._stateTagOpen(r);break}case ce.END_TAG_OPEN:{this._stateEndTagOpen(r);break}case ce.TAG_NAME:{this._stateTagName(r);break}case ce.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(r);break}case ce.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(r);break}case ce.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(r);break}case ce.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(r);break}case ce.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(r);break}case ce.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(r);break}case ce.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(r);break}case ce.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(r);break}case ce.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(r);break}case ce.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(r);break}case ce.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(r);break}case ce.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(r);break}case ce.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(r);break}case ce.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(r);break}case ce.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(r);break}case ce.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(r);break}case ce.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(r);break}case ce.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(r);break}case ce.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(r);break}case ce.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(r);break}case ce.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(r);break}case ce.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(r);break}case ce.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(r);break}case ce.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(r);break}case ce.ATTRIBUTE_NAME:{this._stateAttributeName(r);break}case ce.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(r);break}case ce.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(r);break}case ce.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(r);break}case ce.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(r);break}case ce.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(r);break}case ce.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(r);break}case ce.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(r);break}case ce.BOGUS_COMMENT:{this._stateBogusComment(r);break}case ce.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(r);break}case ce.COMMENT_START:{this._stateCommentStart(r);break}case ce.COMMENT_START_DASH:{this._stateCommentStartDash(r);break}case ce.COMMENT:{this._stateComment(r);break}case ce.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(r);break}case ce.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(r);break}case ce.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(r);break}case ce.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(r);break}case ce.COMMENT_END_DASH:{this._stateCommentEndDash(r);break}case ce.COMMENT_END:{this._stateCommentEnd(r);break}case ce.COMMENT_END_BANG:{this._stateCommentEndBang(r);break}case ce.DOCTYPE:{this._stateDoctype(r);break}case ce.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(r);break}case ce.DOCTYPE_NAME:{this._stateDoctypeName(r);break}case ce.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(r);break}case ce.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(r);break}case ce.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(r);break}case ce.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(r);break}case ce.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(r);break}case ce.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(r);break}case ce.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(r);break}case ce.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(r);break}case ce.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(r);break}case ce.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(r);break}case ce.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(r);break}case ce.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(r);break}case ce.BOGUS_DOCTYPE:{this._stateBogusDoctype(r);break}case ce.CDATA_SECTION:{this._stateCdataSection(r);break}case ce.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(r);break}case ce.CDATA_SECTION_END:{this._stateCdataSectionEnd(r);break}case ce.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case ce.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(r);break}default:throw new Error("Unknown state")}}_stateData(r){switch(r){case se.LESS_THAN_SIGN:{this.state=ce.TAG_OPEN;break}case se.AMPERSAND:{this._startCharacterReference();break}case se.NULL:{this._err(Ae.unexpectedNullCharacter),this._emitCodePoint(r);break}case se.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(r)}}_stateRcdata(r){switch(r){case se.AMPERSAND:{this._startCharacterReference();break}case se.LESS_THAN_SIGN:{this.state=ce.RCDATA_LESS_THAN_SIGN;break}case se.NULL:{this._err(Ae.unexpectedNullCharacter),this._emitChars(Xr);break}case se.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(r)}}_stateRawtext(r){switch(r){case se.LESS_THAN_SIGN:{this.state=ce.RAWTEXT_LESS_THAN_SIGN;break}case se.NULL:{this._err(Ae.unexpectedNullCharacter),this._emitChars(Xr);break}case se.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(r)}}_stateScriptData(r){switch(r){case se.LESS_THAN_SIGN:{this.state=ce.SCRIPT_DATA_LESS_THAN_SIGN;break}case se.NULL:{this._err(Ae.unexpectedNullCharacter),this._emitChars(Xr);break}case se.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(r)}}_statePlaintext(r){switch(r){case se.NULL:{this._err(Ae.unexpectedNullCharacter),this._emitChars(Xr);break}case se.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(r)}}_stateTagOpen(r){if(pd(r))this._createStartTagToken(),this.state=ce.TAG_NAME,this._stateTagName(r);else switch(r){case se.EXCLAMATION_MARK:{this.state=ce.MARKUP_DECLARATION_OPEN;break}case se.SOLIDUS:{this.state=ce.END_TAG_OPEN;break}case se.QUESTION_MARK:{this._err(Ae.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=ce.BOGUS_COMMENT,this._stateBogusComment(r);break}case se.EOF:{this._err(Ae.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(Ae.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=ce.DATA,this._stateData(r)}}_stateEndTagOpen(r){if(pd(r))this._createEndTagToken(),this.state=ce.TAG_NAME,this._stateTagName(r);else switch(r){case se.GREATER_THAN_SIGN:{this._err(Ae.missingEndTagName),this.state=ce.DATA;break}case se.EOF:{this._err(Ae.eofBeforeTagName),this._emitChars("");break}case se.NULL:{this._err(Ae.unexpectedNullCharacter),this.state=ce.SCRIPT_DATA_ESCAPED,this._emitChars(Xr);break}case se.EOF:{this._err(Ae.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=ce.SCRIPT_DATA_ESCAPED,this._emitCodePoint(r)}}_stateScriptDataEscapedLessThanSign(r){r===se.SOLIDUS?this.state=ce.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:pd(r)?(this._emitChars("<"),this.state=ce.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(r)):(this._emitChars("<"),this.state=ce.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(r))}_stateScriptDataEscapedEndTagOpen(r){pd(r)?(this.state=ce.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(r)):(this._emitChars("");break}case se.NULL:{this._err(Ae.unexpectedNullCharacter),this.state=ce.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Xr);break}case se.EOF:{this._err(Ae.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=ce.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(r)}}_stateScriptDataDoubleEscapedLessThanSign(r){r===se.SOLIDUS?(this.state=ce.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=ce.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(r))}_stateScriptDataDoubleEscapeEnd(r){if(this.preprocessor.startsWith(aa.SCRIPT,!1)&&oj(this.preprocessor.peek(aa.SCRIPT.length))){this._emitCodePoint(r);for(let n=0;n0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(r,!0)}replace(r,n){const o=this._indexOf(r);this.items[o]=n,o===this.stackTop&&(this.current=n)}insertAfter(r,n,o){const a=this._indexOf(r)+1;this.items.splice(a,0,n),this.tagIDs.splice(a,0,o),this.stackTop++,a===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,a===this.stackTop)}popUntilTagNamePopped(r){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(r,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==je.HTML);this.shortenToLength(n<0?0:n)}shortenToLength(r){for(;this.stackTop>=r;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop=0;o--)if(r.has(this.tagIDs[o])&&this.treeAdapter.getNamespaceURI(this.items[o])===n)return o;return-1}clearBackTo(r,n){const o=this._indexOfTagNames(r,n);this.shortenToLength(o+1)}clearBackToTableContext(){this.clearBackTo(cve,je.HTML)}clearBackToTableBodyContext(){this.clearBackTo(lve,je.HTML)}clearBackToTableRowContext(){this.clearBackTo(sve,je.HTML)}remove(r){const n=this._indexOf(r);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(r,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===B.BODY?this.items[1]:null}contains(r){return this._indexOf(r)>-1}getCommonAncestor(r){const n=this._indexOf(r)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===B.HTML}hasInDynamicScope(r,n){for(let o=this.stackTop;o>=0;o--){const a=this.tagIDs[o];switch(this.treeAdapter.getNamespaceURI(this.items[o])){case je.HTML:{if(a===r)return!0;if(n.has(a))return!1;break}case je.SVG:{if(lj.has(a))return!1;break}case je.MATHML:{if(sj.has(a))return!1;break}}}return!0}hasInScope(r){return this.hasInDynamicScope(r,u3)}hasInListItemScope(r){return this.hasInDynamicScope(r,ave)}hasInButtonScope(r){return this.hasInDynamicScope(r,ive)}hasNumberedHeaderInScope(){for(let r=this.stackTop;r>=0;r--){const n=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case je.HTML:{if(c8.has(n))return!0;if(u3.has(n))return!1;break}case je.SVG:{if(lj.has(n))return!1;break}case je.MATHML:{if(sj.has(n))return!1;break}}}return!0}hasInTableScope(r){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===je.HTML)switch(this.tagIDs[n]){case r:return!0;case B.TABLE:case B.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let r=this.stackTop;r>=0;r--)if(this.treeAdapter.getNamespaceURI(this.items[r])===je.HTML)switch(this.tagIDs[r]){case B.TBODY:case B.THEAD:case B.TFOOT:return!0;case B.TABLE:case B.HTML:return!1}return!0}hasInSelectScope(r){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===je.HTML)switch(this.tagIDs[n]){case r:return!0;case B.OPTION:case B.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;aj.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;ij.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(r){for(;this.currentTagId!==r&&ij.has(this.currentTagId);)this.pop()}}const d8=3;var nl;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(nl||(nl={}));const cj={type:nl.Marker};class pve{constructor(r){this.treeAdapter=r,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(r,n){const o=[],a=n.length,i=this.treeAdapter.getTagName(r),s=this.treeAdapter.getNamespaceURI(r);for(let l=0;l[s.name,s.value]));let i=0;for(let s=0;sa.get(c.name)===c.value)&&(i+=1,i>=d8&&this.entries.splice(l.idx,1))}}insertMarker(){this.entries.unshift(cj)}pushElement(r,n){this._ensureNoahArkCondition(r),this.entries.unshift({type:nl.Element,element:r,token:n})}insertElementAfterBookmark(r,n){const o=this.entries.indexOf(this.bookmark);this.entries.splice(o,0,{type:nl.Element,element:r,token:n})}removeEntry(r){const n=this.entries.indexOf(r);n>=0&&this.entries.splice(n,1)}clearToLastMarker(){const r=this.entries.indexOf(cj);r>=0?this.entries.splice(0,r+1):this.entries.length=0}getElementEntryInScopeWithTagName(r){const n=this.entries.find(o=>o.type===nl.Marker||this.treeAdapter.getTagName(o.element)===r);return n&&n.type===nl.Element?n:null}getElementEntry(r){return this.entries.find(n=>n.type===nl.Element&&n.element===r)}}const hd={createDocument(){return{nodeName:"#document",mode:di.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,r,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:r,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,r){e.childNodes.push(r),r.parentNode=e},insertBefore(e,r,n){const o=e.childNodes.indexOf(n);e.childNodes.splice(o,0,r),r.parentNode=e},setTemplateContent(e,r){e.content=r},getTemplateContent(e){return e.content},setDocumentType(e,r,n,o){const a=e.childNodes.find(i=>i.nodeName==="#documentType");if(a)a.name=r,a.publicId=n,a.systemId=o;else{const i={nodeName:"#documentType",name:r,publicId:n,systemId:o,parentNode:null};hd.appendChild(e,i)}},setDocumentMode(e,r){e.mode=r},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const r=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(r,1),e.parentNode=null}},insertText(e,r){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(hd.isTextNode(n)){n.value+=r;return}}hd.appendChild(e,hd.createTextNode(r))},insertTextBefore(e,r,n){const o=e.childNodes[e.childNodes.indexOf(n)-1];o&&hd.isTextNode(o)?o.value+=r:hd.insertBefore(e,hd.createTextNode(r),n)},adoptAttributes(e,r){const n=new Set(e.attrs.map(o=>o.name));for(let o=0;oe.startsWith(n))}function bve(e){return e.name===dj&&e.publicId===null&&(e.systemId===null||e.systemId===hve)}function vve(e){if(e.name!==dj)return di.QUIRKS;const{systemId:r}=e;if(r&&r.toLowerCase()===fve)return di.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),gve.has(n))return di.QUIRKS;let o=r===null?mve:uj;if(hj(n,o))return di.QUIRKS;if(o=r===null?pj:yve,hj(n,o))return di.LIMITED_QUIRKS}return di.NO_QUIRKS}const fj={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},xve="definitionurl",wve="definitionURL",kve=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),_ve=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:je.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:je.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:je.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:je.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:je.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:je.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:je.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:je.XML}],["xml:space",{prefix:"xml",name:"space",namespace:je.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:je.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:je.XMLNS}]]),Eve=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),Sve=new Set([B.B,B.BIG,B.BLOCKQUOTE,B.BODY,B.BR,B.CENTER,B.CODE,B.DD,B.DIV,B.DL,B.DT,B.EM,B.EMBED,B.H1,B.H2,B.H3,B.H4,B.H5,B.H6,B.HEAD,B.HR,B.I,B.IMG,B.LI,B.LISTING,B.MENU,B.META,B.NOBR,B.OL,B.P,B.PRE,B.RUBY,B.S,B.SMALL,B.SPAN,B.STRONG,B.STRIKE,B.SUB,B.SUP,B.TABLE,B.TT,B.U,B.UL,B.VAR]);function Cve(e){const r=e.tagID;return r===B.FONT&&e.attrs.some(({name:o})=>o===Vu.COLOR||o===Vu.SIZE||o===Vu.FACE)||Sve.has(r)}function mj(e){for(let r=0;r0&&this._setContextModes(r,n)}onItemPop(r,n){var o,a;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(r,this.currentToken),(a=(o=this.treeAdapter).onItemPop)===null||a===void 0||a.call(o,r,this.openElements.current),n){let i,s;this.openElements.stackTop===0&&this.fragmentContext?(i=this.fragmentContext,s=this.fragmentContextID):{current:i,currentTagId:s}=this.openElements,this._setContextModes(i,s)}}_setContextModes(r,n){const o=r===this.document||this.treeAdapter.getNamespaceURI(r)===je.HTML;this.currentNotInHTML=!o,this.tokenizer.inForeignNode=!o&&!this._isIntegrationPoint(n,r)}_switchToTextParsing(r,n){this._insertElement(r,je.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=ue.TEXT}switchToPlaintextParsing(){this.insertionMode=ue.TEXT,this.originalInsertionMode=ue.IN_BODY,this.tokenizer.state=kn.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let r=this.fragmentContext;for(;r;){if(this.treeAdapter.getTagName(r)===ve.FORM){this.formElement=r;break}r=this.treeAdapter.getParentNode(r)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==je.HTML))switch(this.fragmentContextID){case B.TITLE:case B.TEXTAREA:{this.tokenizer.state=kn.RCDATA;break}case B.STYLE:case B.XMP:case B.IFRAME:case B.NOEMBED:case B.NOFRAMES:case B.NOSCRIPT:{this.tokenizer.state=kn.RAWTEXT;break}case B.SCRIPT:{this.tokenizer.state=kn.SCRIPT_DATA;break}case B.PLAINTEXT:{this.tokenizer.state=kn.PLAINTEXT;break}}}_setDocumentType(r){const n=r.name||"",o=r.publicId||"",a=r.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,o,a),r.location){const s=this.treeAdapter.getChildNodes(this.document).find(l=>this.treeAdapter.isDocumentTypeNode(l));s&&this.treeAdapter.setNodeSourceCodeLocation(s,r.location)}}_attachElementToTree(r,n){if(this.options.sourceCodeLocationInfo){const o=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(r,o)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(r);else{const o=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(o,r)}}_appendElement(r,n){const o=this.treeAdapter.createElement(r.tagName,n,r.attrs);this._attachElementToTree(o,r.location)}_insertElement(r,n){const o=this.treeAdapter.createElement(r.tagName,n,r.attrs);this._attachElementToTree(o,r.location),this.openElements.push(o,r.tagID)}_insertFakeElement(r,n){const o=this.treeAdapter.createElement(r,je.HTML,[]);this._attachElementToTree(o,null),this.openElements.push(o,n)}_insertTemplate(r){const n=this.treeAdapter.createElement(r.tagName,je.HTML,r.attrs),o=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,o),this._attachElementToTree(n,r.location),this.openElements.push(n,r.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(o,null)}_insertFakeRootElement(){const r=this.treeAdapter.createElement(ve.HTML,je.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null),this.treeAdapter.appendChild(this.openElements.current,r),this.openElements.push(r,B.HTML)}_appendCommentNode(r,n){const o=this.treeAdapter.createCommentNode(r.data);this.treeAdapter.appendChild(n,o),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(o,r.location)}_insertCharacters(r){let n,o;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:o}=this._findFosterParentingLocation(),o?this.treeAdapter.insertTextBefore(n,r.chars,o):this.treeAdapter.insertText(n,r.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,r.chars)),!r.location)return;const a=this.treeAdapter.getChildNodes(n),i=o?a.lastIndexOf(o):a.length,s=a[i-1];if(this.treeAdapter.getNodeSourceCodeLocation(s)){const{endLine:c,endCol:d,endOffset:u}=r.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:c,endCol:d,endOffset:u})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(s,r.location)}_adoptNodes(r,n){for(let o=this.treeAdapter.getFirstChild(r);o;o=this.treeAdapter.getFirstChild(r))this.treeAdapter.detachNode(o),this.treeAdapter.appendChild(n,o)}_setEndLocation(r,n){if(this.treeAdapter.getNodeSourceCodeLocation(r)&&n.location){const o=n.location,a=this.treeAdapter.getTagName(r),i=n.type===Kt.END_TAG&&a===n.tagName?{endTag:{...o},endLine:o.endLine,endCol:o.endCol,endOffset:o.endOffset}:{endLine:o.startLine,endCol:o.startCol,endOffset:o.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(r,i)}}shouldProcessStartTagTokenInForeignContent(r){if(!this.currentNotInHTML)return!1;let n,o;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,o=this.fragmentContextID):{current:n,currentTagId:o}=this.openElements,r.tagID===B.SVG&&this.treeAdapter.getTagName(n)===ve.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===je.MATHML?!1:this.tokenizer.inForeignNode||(r.tagID===B.MGLYPH||r.tagID===B.MALIGNMARK)&&!this._isIntegrationPoint(o,n,je.HTML)}_processToken(r){switch(r.type){case Kt.CHARACTER:{this.onCharacter(r);break}case Kt.NULL_CHARACTER:{this.onNullCharacter(r);break}case Kt.COMMENT:{this.onComment(r);break}case Kt.DOCTYPE:{this.onDoctype(r);break}case Kt.START_TAG:{this._processStartTag(r);break}case Kt.END_TAG:{this.onEndTag(r);break}case Kt.EOF:{this.onEof(r);break}case Kt.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(r);break}}}_isIntegrationPoint(r,n,o){const a=this.treeAdapter.getNamespaceURI(n),i=this.treeAdapter.getAttrList(n);return Nve(r,a,i,o)}_reconstructActiveFormattingElements(){const r=this.activeFormattingElements.entries.length;if(r){const n=this.activeFormattingElements.entries.findIndex(a=>a.type===nl.Marker||this.openElements.contains(a.element)),o=n<0?r-1:n-1;for(let a=o;a>=0;a--){const i=this.activeFormattingElements.entries[a];this._insertElement(i.token,this.treeAdapter.getNamespaceURI(i.element)),i.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=ue.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(B.P),this.openElements.popUntilTagNamePopped(B.P)}_resetInsertionMode(){for(let r=this.openElements.stackTop;r>=0;r--)switch(r===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[r]){case B.TR:{this.insertionMode=ue.IN_ROW;return}case B.TBODY:case B.THEAD:case B.TFOOT:{this.insertionMode=ue.IN_TABLE_BODY;return}case B.CAPTION:{this.insertionMode=ue.IN_CAPTION;return}case B.COLGROUP:{this.insertionMode=ue.IN_COLUMN_GROUP;return}case B.TABLE:{this.insertionMode=ue.IN_TABLE;return}case B.BODY:{this.insertionMode=ue.IN_BODY;return}case B.FRAMESET:{this.insertionMode=ue.IN_FRAMESET;return}case B.SELECT:{this._resetInsertionModeForSelect(r);return}case B.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case B.HTML:{this.insertionMode=this.headElement?ue.AFTER_HEAD:ue.BEFORE_HEAD;return}case B.TD:case B.TH:{if(r>0){this.insertionMode=ue.IN_CELL;return}break}case B.HEAD:{if(r>0){this.insertionMode=ue.IN_HEAD;return}break}}this.insertionMode=ue.IN_BODY}_resetInsertionModeForSelect(r){if(r>0)for(let n=r-1;n>0;n--){const o=this.openElements.tagIDs[n];if(o===B.TEMPLATE)break;if(o===B.TABLE){this.insertionMode=ue.IN_SELECT_IN_TABLE;return}}this.insertionMode=ue.IN_SELECT}_isElementCausesFosterParenting(r){return yj.has(r)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let r=this.openElements.stackTop;r>=0;r--){const n=this.openElements.items[r];switch(this.openElements.tagIDs[r]){case B.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===je.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case B.TABLE:{const o=this.treeAdapter.getParentNode(n);return o?{parent:o,beforeElement:n}:{parent:this.openElements.items[r-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(r){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,r,n.beforeElement):this.treeAdapter.appendChild(n.parent,r)}_isSpecialElement(r,n){const o=this.treeAdapter.getNamespaceURI(r);return eve[o].has(n)}onCharacter(r){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){dxe(this,r);return}switch(this.insertionMode){case ue.INITIAL:{C1(this,r);break}case ue.BEFORE_HTML:{T1(this,r);break}case ue.BEFORE_HEAD:{A1(this,r);break}case ue.IN_HEAD:{R1(this,r);break}case ue.IN_HEAD_NO_SCRIPT:{N1(this,r);break}case ue.AFTER_HEAD:{D1(this,r);break}case ue.IN_BODY:case ue.IN_CAPTION:case ue.IN_CELL:case ue.IN_TEMPLATE:{wj(this,r);break}case ue.TEXT:case ue.IN_SELECT:case ue.IN_SELECT_IN_TABLE:{this._insertCharacters(r);break}case ue.IN_TABLE:case ue.IN_TABLE_BODY:case ue.IN_ROW:{m8(this,r);break}case ue.IN_TABLE_TEXT:{Rj(this,r);break}case ue.IN_COLUMN_GROUP:{f3(this,r);break}case ue.AFTER_BODY:{y3(this,r);break}case ue.AFTER_AFTER_BODY:{b3(this,r);break}}}onNullCharacter(r){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){cxe(this,r);return}switch(this.insertionMode){case ue.INITIAL:{C1(this,r);break}case ue.BEFORE_HTML:{T1(this,r);break}case ue.BEFORE_HEAD:{A1(this,r);break}case ue.IN_HEAD:{R1(this,r);break}case ue.IN_HEAD_NO_SCRIPT:{N1(this,r);break}case ue.AFTER_HEAD:{D1(this,r);break}case ue.TEXT:{this._insertCharacters(r);break}case ue.IN_TABLE:case ue.IN_TABLE_BODY:case ue.IN_ROW:{m8(this,r);break}case ue.IN_COLUMN_GROUP:{f3(this,r);break}case ue.AFTER_BODY:{y3(this,r);break}case ue.AFTER_AFTER_BODY:{b3(this,r);break}}}onComment(r){if(this.skipNextNewLine=!1,this.currentNotInHTML){h8(this,r);return}switch(this.insertionMode){case ue.INITIAL:case ue.BEFORE_HTML:case ue.BEFORE_HEAD:case ue.IN_HEAD:case ue.IN_HEAD_NO_SCRIPT:case ue.AFTER_HEAD:case ue.IN_BODY:case ue.IN_TABLE:case ue.IN_CAPTION:case ue.IN_COLUMN_GROUP:case ue.IN_TABLE_BODY:case ue.IN_ROW:case ue.IN_CELL:case ue.IN_SELECT:case ue.IN_SELECT_IN_TABLE:case ue.IN_TEMPLATE:case ue.IN_FRAMESET:case ue.AFTER_FRAMESET:{h8(this,r);break}case ue.IN_TABLE_TEXT:{M1(this,r);break}case ue.AFTER_BODY:{Fve(this,r);break}case ue.AFTER_AFTER_BODY:case ue.AFTER_AFTER_FRAMESET:{Hve(this,r);break}}}onDoctype(r){switch(this.skipNextNewLine=!1,this.insertionMode){case ue.INITIAL:{Vve(this,r);break}case ue.BEFORE_HEAD:case ue.IN_HEAD:case ue.IN_HEAD_NO_SCRIPT:case ue.AFTER_HEAD:{this._err(r,Ae.misplacedDoctype);break}case ue.IN_TABLE_TEXT:{M1(this,r);break}}}onStartTag(r){this.skipNextNewLine=!1,this.currentToken=r,this._processStartTag(r),r.selfClosing&&!r.ackSelfClosing&&this._err(r,Ae.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(r){this.shouldProcessStartTagTokenInForeignContent(r)?uxe(this,r):this._startTagOutsideForeignContent(r)}_startTagOutsideForeignContent(r){switch(this.insertionMode){case ue.INITIAL:{C1(this,r);break}case ue.BEFORE_HTML:{qve(this,r);break}case ue.BEFORE_HEAD:{Wve(this,r);break}case ue.IN_HEAD:{es(this,r);break}case ue.IN_HEAD_NO_SCRIPT:{Xve(this,r);break}case ue.AFTER_HEAD:{Zve(this,r);break}case ue.IN_BODY:{Po(this,r);break}case ue.IN_TABLE:{ff(this,r);break}case ue.IN_TABLE_TEXT:{M1(this,r);break}case ue.IN_CAPTION:{Y3e(this,r);break}case ue.IN_COLUMN_GROUP:{g8(this,r);break}case ue.IN_TABLE_BODY:{m3(this,r);break}case ue.IN_ROW:{g3(this,r);break}case ue.IN_CELL:{K3e(this,r);break}case ue.IN_SELECT:{$j(this,r);break}case ue.IN_SELECT_IN_TABLE:{Q3e(this,r);break}case ue.IN_TEMPLATE:{exe(this,r);break}case ue.AFTER_BODY:{rxe(this,r);break}case ue.IN_FRAMESET:{nxe(this,r);break}case ue.AFTER_FRAMESET:{axe(this,r);break}case ue.AFTER_AFTER_BODY:{sxe(this,r);break}case ue.AFTER_AFTER_FRAMESET:{lxe(this,r);break}}}onEndTag(r){this.skipNextNewLine=!1,this.currentToken=r,this.currentNotInHTML?pxe(this,r):this._endTagOutsideForeignContent(r)}_endTagOutsideForeignContent(r){switch(this.insertionMode){case ue.INITIAL:{C1(this,r);break}case ue.BEFORE_HTML:{Uve(this,r);break}case ue.BEFORE_HEAD:{Yve(this,r);break}case ue.IN_HEAD:{Gve(this,r);break}case ue.IN_HEAD_NO_SCRIPT:{Kve(this,r);break}case ue.AFTER_HEAD:{Qve(this,r);break}case ue.IN_BODY:{h3(this,r);break}case ue.TEXT:{O3e(this,r);break}case ue.IN_TABLE:{$1(this,r);break}case ue.IN_TABLE_TEXT:{M1(this,r);break}case ue.IN_CAPTION:{G3e(this,r);break}case ue.IN_COLUMN_GROUP:{X3e(this,r);break}case ue.IN_TABLE_BODY:{y8(this,r);break}case ue.IN_ROW:{Dj(this,r);break}case ue.IN_CELL:{Z3e(this,r);break}case ue.IN_SELECT:{Pj(this,r);break}case ue.IN_SELECT_IN_TABLE:{J3e(this,r);break}case ue.IN_TEMPLATE:{txe(this,r);break}case ue.AFTER_BODY:{zj(this,r);break}case ue.IN_FRAMESET:{oxe(this,r);break}case ue.AFTER_FRAMESET:{ixe(this,r);break}case ue.AFTER_AFTER_BODY:{b3(this,r);break}}}onEof(r){switch(this.insertionMode){case ue.INITIAL:{C1(this,r);break}case ue.BEFORE_HTML:{T1(this,r);break}case ue.BEFORE_HEAD:{A1(this,r);break}case ue.IN_HEAD:{R1(this,r);break}case ue.IN_HEAD_NO_SCRIPT:{N1(this,r);break}case ue.AFTER_HEAD:{D1(this,r);break}case ue.IN_BODY:case ue.IN_TABLE:case ue.IN_CAPTION:case ue.IN_COLUMN_GROUP:case ue.IN_TABLE_BODY:case ue.IN_ROW:case ue.IN_CELL:case ue.IN_SELECT:case ue.IN_SELECT_IN_TABLE:{Tj(this,r);break}case ue.TEXT:{j3e(this,r);break}case ue.IN_TABLE_TEXT:{M1(this,r);break}case ue.IN_TEMPLATE:{Mj(this,r);break}case ue.AFTER_BODY:case ue.IN_FRAMESET:case ue.AFTER_FRAMESET:case ue.AFTER_AFTER_BODY:case ue.AFTER_AFTER_FRAMESET:{f8(this,r);break}}}onWhitespaceCharacter(r){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,r.chars.charCodeAt(0)===se.LINE_FEED)){if(r.chars.length===1)return;r.chars=r.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(r);return}switch(this.insertionMode){case ue.IN_HEAD:case ue.IN_HEAD_NO_SCRIPT:case ue.AFTER_HEAD:case ue.TEXT:case ue.IN_COLUMN_GROUP:case ue.IN_SELECT:case ue.IN_SELECT_IN_TABLE:case ue.IN_FRAMESET:case ue.AFTER_FRAMESET:{this._insertCharacters(r);break}case ue.IN_BODY:case ue.IN_CAPTION:case ue.IN_CELL:case ue.IN_TEMPLATE:case ue.AFTER_BODY:case ue.AFTER_AFTER_BODY:case ue.AFTER_AFTER_FRAMESET:{xj(this,r);break}case ue.IN_TABLE:case ue.IN_TABLE_BODY:case ue.IN_ROW:{m8(this,r);break}case ue.IN_TABLE_TEXT:{Aj(this,r);break}}}}function zve(e,r){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(r.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(r.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):Cj(e,r),n}function Ive(e,r){let n=null,o=e.openElements.stackTop;for(;o>=0;o--){const a=e.openElements.items[o];if(a===r.element)break;e._isSpecialElement(a,e.openElements.tagIDs[o])&&(n=a)}return n||(e.openElements.shortenToLength(o<0?0:o),e.activeFormattingElements.removeEntry(r)),n}function Ove(e,r,n){let o=r,a=e.openElements.getCommonAncestor(r);for(let i=0,s=a;s!==n;i++,s=a){a=e.openElements.getCommonAncestor(s);const l=e.activeFormattingElements.getElementEntry(s),c=l&&i>=Pve;!l||c?(c&&e.activeFormattingElements.removeEntry(l),e.openElements.remove(s)):(s=jve(e,l),o===r&&(e.activeFormattingElements.bookmark=l),e.treeAdapter.detachNode(o),e.treeAdapter.appendChild(s,o),o=s)}return o}function jve(e,r){const n=e.treeAdapter.getNamespaceURI(r.element),o=e.treeAdapter.createElement(r.token.tagName,n,r.token.attrs);return e.openElements.replace(r.element,o),r.element=o,o}function Lve(e,r,n){const o=e.treeAdapter.getTagName(r),a=hf(o);if(e._isElementCausesFosterParenting(a))e._fosterParentElement(n);else{const i=e.treeAdapter.getNamespaceURI(r);a===B.TEMPLATE&&i===je.HTML&&(r=e.treeAdapter.getTemplateContent(r)),e.treeAdapter.appendChild(r,n)}}function Bve(e,r,n){const o=e.treeAdapter.getNamespaceURI(n.element),{token:a}=n,i=e.treeAdapter.createElement(a.tagName,o,a.attrs);e._adoptNodes(r,i),e.treeAdapter.appendChild(r,i),e.activeFormattingElements.insertElementAfterBookmark(i,a),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(r,i,a.tagID)}function p8(e,r){for(let n=0;n<$ve;n++){const o=zve(e,r);if(!o)break;const a=Ive(e,o);if(!a)break;e.activeFormattingElements.bookmark=o;const i=Ove(e,a,o.element),s=e.openElements.getCommonAncestor(o.element);e.treeAdapter.detachNode(i),s&&Lve(e,s,i),Bve(e,a,o)}}function h8(e,r){e._appendCommentNode(r,e.openElements.currentTmplContentOrNode)}function Fve(e,r){e._appendCommentNode(r,e.openElements.items[0])}function Hve(e,r){e._appendCommentNode(r,e.document)}function f8(e,r){if(e.stopped=!0,r.location){const n=e.fragmentContext?0:2;for(let o=e.openElements.stackTop;o>=n;o--)e._setEndLocation(e.openElements.items[o],r);if(!e.fragmentContext&&e.openElements.stackTop>=0){const o=e.openElements.items[0],a=e.treeAdapter.getNodeSourceCodeLocation(o);if(a&&!a.endTag&&(e._setEndLocation(o,r),e.openElements.stackTop>=1)){const i=e.openElements.items[1],s=e.treeAdapter.getNodeSourceCodeLocation(i);s&&!s.endTag&&e._setEndLocation(i,r)}}}}function Vve(e,r){e._setDocumentType(r);const n=r.forceQuirks?di.QUIRKS:vve(r);bve(r)||e._err(r,Ae.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=ue.BEFORE_HTML}function C1(e,r){e._err(r,Ae.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,di.QUIRKS),e.insertionMode=ue.BEFORE_HTML,e._processToken(r)}function qve(e,r){r.tagID===B.HTML?(e._insertElement(r,je.HTML),e.insertionMode=ue.BEFORE_HEAD):T1(e,r)}function Uve(e,r){const n=r.tagID;(n===B.HTML||n===B.HEAD||n===B.BODY||n===B.BR)&&T1(e,r)}function T1(e,r){e._insertFakeRootElement(),e.insertionMode=ue.BEFORE_HEAD,e._processToken(r)}function Wve(e,r){switch(r.tagID){case B.HTML:{Po(e,r);break}case B.HEAD:{e._insertElement(r,je.HTML),e.headElement=e.openElements.current,e.insertionMode=ue.IN_HEAD;break}default:A1(e,r)}}function Yve(e,r){const n=r.tagID;n===B.HEAD||n===B.BODY||n===B.HTML||n===B.BR?A1(e,r):e._err(r,Ae.endTagWithoutMatchingOpenElement)}function A1(e,r){e._insertFakeElement(ve.HEAD,B.HEAD),e.headElement=e.openElements.current,e.insertionMode=ue.IN_HEAD,e._processToken(r)}function es(e,r){switch(r.tagID){case B.HTML:{Po(e,r);break}case B.BASE:case B.BASEFONT:case B.BGSOUND:case B.LINK:case B.META:{e._appendElement(r,je.HTML),r.ackSelfClosing=!0;break}case B.TITLE:{e._switchToTextParsing(r,kn.RCDATA);break}case B.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(r,kn.RAWTEXT):(e._insertElement(r,je.HTML),e.insertionMode=ue.IN_HEAD_NO_SCRIPT);break}case B.NOFRAMES:case B.STYLE:{e._switchToTextParsing(r,kn.RAWTEXT);break}case B.SCRIPT:{e._switchToTextParsing(r,kn.SCRIPT_DATA);break}case B.TEMPLATE:{e._insertTemplate(r),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=ue.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(ue.IN_TEMPLATE);break}case B.HEAD:{e._err(r,Ae.misplacedStartTagForHeadElement);break}default:R1(e,r)}}function Gve(e,r){switch(r.tagID){case B.HEAD:{e.openElements.pop(),e.insertionMode=ue.AFTER_HEAD;break}case B.BODY:case B.BR:case B.HTML:{R1(e,r);break}case B.TEMPLATE:{qu(e,r);break}default:e._err(r,Ae.endTagWithoutMatchingOpenElement)}}function qu(e,r){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==B.TEMPLATE&&e._err(r,Ae.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(B.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(r,Ae.endTagWithoutMatchingOpenElement)}function R1(e,r){e.openElements.pop(),e.insertionMode=ue.AFTER_HEAD,e._processToken(r)}function Xve(e,r){switch(r.tagID){case B.HTML:{Po(e,r);break}case B.BASEFONT:case B.BGSOUND:case B.HEAD:case B.LINK:case B.META:case B.NOFRAMES:case B.STYLE:{es(e,r);break}case B.NOSCRIPT:{e._err(r,Ae.nestedNoscriptInHead);break}default:N1(e,r)}}function Kve(e,r){switch(r.tagID){case B.NOSCRIPT:{e.openElements.pop(),e.insertionMode=ue.IN_HEAD;break}case B.BR:{N1(e,r);break}default:e._err(r,Ae.endTagWithoutMatchingOpenElement)}}function N1(e,r){const n=r.type===Kt.EOF?Ae.openElementsLeftAfterEof:Ae.disallowedContentInNoscriptInHead;e._err(r,n),e.openElements.pop(),e.insertionMode=ue.IN_HEAD,e._processToken(r)}function Zve(e,r){switch(r.tagID){case B.HTML:{Po(e,r);break}case B.BODY:{e._insertElement(r,je.HTML),e.framesetOk=!1,e.insertionMode=ue.IN_BODY;break}case B.FRAMESET:{e._insertElement(r,je.HTML),e.insertionMode=ue.IN_FRAMESET;break}case B.BASE:case B.BASEFONT:case B.BGSOUND:case B.LINK:case B.META:case B.NOFRAMES:case B.SCRIPT:case B.STYLE:case B.TEMPLATE:case B.TITLE:{e._err(r,Ae.abandonedHeadElementChild),e.openElements.push(e.headElement,B.HEAD),es(e,r),e.openElements.remove(e.headElement);break}case B.HEAD:{e._err(r,Ae.misplacedStartTagForHeadElement);break}default:D1(e,r)}}function Qve(e,r){switch(r.tagID){case B.BODY:case B.HTML:case B.BR:{D1(e,r);break}case B.TEMPLATE:{qu(e,r);break}default:e._err(r,Ae.endTagWithoutMatchingOpenElement)}}function D1(e,r){e._insertFakeElement(ve.BODY,B.BODY),e.insertionMode=ue.IN_BODY,p3(e,r)}function p3(e,r){switch(r.type){case Kt.CHARACTER:{wj(e,r);break}case Kt.WHITESPACE_CHARACTER:{xj(e,r);break}case Kt.COMMENT:{h8(e,r);break}case Kt.START_TAG:{Po(e,r);break}case Kt.END_TAG:{h3(e,r);break}case Kt.EOF:{Tj(e,r);break}}}function xj(e,r){e._reconstructActiveFormattingElements(),e._insertCharacters(r)}function wj(e,r){e._reconstructActiveFormattingElements(),e._insertCharacters(r),e.framesetOk=!1}function Jve(e,r){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],r.attrs)}function e3e(e,r){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,r.attrs))}function t3e(e,r){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(r,je.HTML),e.insertionMode=ue.IN_FRAMESET)}function r3e(e,r){e.openElements.hasInButtonScope(B.P)&&e._closePElement(),e._insertElement(r,je.HTML)}function n3e(e,r){e.openElements.hasInButtonScope(B.P)&&e._closePElement(),c8.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(r,je.HTML)}function o3e(e,r){e.openElements.hasInButtonScope(B.P)&&e._closePElement(),e._insertElement(r,je.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function a3e(e,r){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(B.P)&&e._closePElement(),e._insertElement(r,je.HTML),n||(e.formElement=e.openElements.current))}function i3e(e,r){e.framesetOk=!1;const n=r.tagID;for(let o=e.openElements.stackTop;o>=0;o--){const a=e.openElements.tagIDs[o];if(n===B.LI&&a===B.LI||(n===B.DD||n===B.DT)&&(a===B.DD||a===B.DT)){e.openElements.generateImpliedEndTagsWithExclusion(a),e.openElements.popUntilTagNamePopped(a);break}if(a!==B.ADDRESS&&a!==B.DIV&&a!==B.P&&e._isSpecialElement(e.openElements.items[o],a))break}e.openElements.hasInButtonScope(B.P)&&e._closePElement(),e._insertElement(r,je.HTML)}function s3e(e,r){e.openElements.hasInButtonScope(B.P)&&e._closePElement(),e._insertElement(r,je.HTML),e.tokenizer.state=kn.PLAINTEXT}function l3e(e,r){e.openElements.hasInScope(B.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(B.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(r,je.HTML),e.framesetOk=!1}function c3e(e,r){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(ve.A);n&&(p8(e,r),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(r,je.HTML),e.activeFormattingElements.pushElement(e.openElements.current,r)}function d3e(e,r){e._reconstructActiveFormattingElements(),e._insertElement(r,je.HTML),e.activeFormattingElements.pushElement(e.openElements.current,r)}function u3e(e,r){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(B.NOBR)&&(p8(e,r),e._reconstructActiveFormattingElements()),e._insertElement(r,je.HTML),e.activeFormattingElements.pushElement(e.openElements.current,r)}function p3e(e,r){e._reconstructActiveFormattingElements(),e._insertElement(r,je.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function h3e(e,r){e.treeAdapter.getDocumentMode(e.document)!==di.QUIRKS&&e.openElements.hasInButtonScope(B.P)&&e._closePElement(),e._insertElement(r,je.HTML),e.framesetOk=!1,e.insertionMode=ue.IN_TABLE}function kj(e,r){e._reconstructActiveFormattingElements(),e._appendElement(r,je.HTML),e.framesetOk=!1,r.ackSelfClosing=!0}function _j(e){const r=QO(e,Vu.TYPE);return r!=null&&r.toLowerCase()===Dve}function f3e(e,r){e._reconstructActiveFormattingElements(),e._appendElement(r,je.HTML),_j(r)||(e.framesetOk=!1),r.ackSelfClosing=!0}function m3e(e,r){e._appendElement(r,je.HTML),r.ackSelfClosing=!0}function g3e(e,r){e.openElements.hasInButtonScope(B.P)&&e._closePElement(),e._appendElement(r,je.HTML),e.framesetOk=!1,r.ackSelfClosing=!0}function y3e(e,r){r.tagName=ve.IMG,r.tagID=B.IMG,kj(e,r)}function b3e(e,r){e._insertElement(r,je.HTML),e.skipNextNewLine=!0,e.tokenizer.state=kn.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=ue.TEXT}function v3e(e,r){e.openElements.hasInButtonScope(B.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(r,kn.RAWTEXT)}function x3e(e,r){e.framesetOk=!1,e._switchToTextParsing(r,kn.RAWTEXT)}function Ej(e,r){e._switchToTextParsing(r,kn.RAWTEXT)}function w3e(e,r){e._reconstructActiveFormattingElements(),e._insertElement(r,je.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===ue.IN_TABLE||e.insertionMode===ue.IN_CAPTION||e.insertionMode===ue.IN_TABLE_BODY||e.insertionMode===ue.IN_ROW||e.insertionMode===ue.IN_CELL?ue.IN_SELECT_IN_TABLE:ue.IN_SELECT}function k3e(e,r){e.openElements.currentTagId===B.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(r,je.HTML)}function _3e(e,r){e.openElements.hasInScope(B.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(r,je.HTML)}function E3e(e,r){e.openElements.hasInScope(B.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(B.RTC),e._insertElement(r,je.HTML)}function S3e(e,r){e._reconstructActiveFormattingElements(),mj(r),u8(r),r.selfClosing?e._appendElement(r,je.MATHML):e._insertElement(r,je.MATHML),r.ackSelfClosing=!0}function C3e(e,r){e._reconstructActiveFormattingElements(),gj(r),u8(r),r.selfClosing?e._appendElement(r,je.SVG):e._insertElement(r,je.SVG),r.ackSelfClosing=!0}function Sj(e,r){e._reconstructActiveFormattingElements(),e._insertElement(r,je.HTML)}function Po(e,r){switch(r.tagID){case B.I:case B.S:case B.B:case B.U:case B.EM:case B.TT:case B.BIG:case B.CODE:case B.FONT:case B.SMALL:case B.STRIKE:case B.STRONG:{d3e(e,r);break}case B.A:{c3e(e,r);break}case B.H1:case B.H2:case B.H3:case B.H4:case B.H5:case B.H6:{n3e(e,r);break}case B.P:case B.DL:case B.OL:case B.UL:case B.DIV:case B.DIR:case B.NAV:case B.MAIN:case B.MENU:case B.ASIDE:case B.CENTER:case B.FIGURE:case B.FOOTER:case B.HEADER:case B.HGROUP:case B.DIALOG:case B.DETAILS:case B.ADDRESS:case B.ARTICLE:case B.SEARCH:case B.SECTION:case B.SUMMARY:case B.FIELDSET:case B.BLOCKQUOTE:case B.FIGCAPTION:{r3e(e,r);break}case B.LI:case B.DD:case B.DT:{i3e(e,r);break}case B.BR:case B.IMG:case B.WBR:case B.AREA:case B.EMBED:case B.KEYGEN:{kj(e,r);break}case B.HR:{g3e(e,r);break}case B.RB:case B.RTC:{_3e(e,r);break}case B.RT:case B.RP:{E3e(e,r);break}case B.PRE:case B.LISTING:{o3e(e,r);break}case B.XMP:{v3e(e,r);break}case B.SVG:{C3e(e,r);break}case B.HTML:{Jve(e,r);break}case B.BASE:case B.LINK:case B.META:case B.STYLE:case B.TITLE:case B.SCRIPT:case B.BGSOUND:case B.BASEFONT:case B.TEMPLATE:{es(e,r);break}case B.BODY:{e3e(e,r);break}case B.FORM:{a3e(e,r);break}case B.NOBR:{u3e(e,r);break}case B.MATH:{S3e(e,r);break}case B.TABLE:{h3e(e,r);break}case B.INPUT:{f3e(e,r);break}case B.PARAM:case B.TRACK:case B.SOURCE:{m3e(e,r);break}case B.IMAGE:{y3e(e,r);break}case B.BUTTON:{l3e(e,r);break}case B.APPLET:case B.OBJECT:case B.MARQUEE:{p3e(e,r);break}case B.IFRAME:{x3e(e,r);break}case B.SELECT:{w3e(e,r);break}case B.OPTION:case B.OPTGROUP:{k3e(e,r);break}case B.NOEMBED:case B.NOFRAMES:{Ej(e,r);break}case B.FRAMESET:{t3e(e,r);break}case B.TEXTAREA:{b3e(e,r);break}case B.NOSCRIPT:{e.options.scriptingEnabled?Ej(e,r):Sj(e,r);break}case B.PLAINTEXT:{s3e(e,r);break}case B.COL:case B.TH:case B.TD:case B.TR:case B.HEAD:case B.FRAME:case B.TBODY:case B.TFOOT:case B.THEAD:case B.CAPTION:case B.COLGROUP:break;default:Sj(e,r)}}function T3e(e,r){if(e.openElements.hasInScope(B.BODY)&&(e.insertionMode=ue.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,r)}}function A3e(e,r){e.openElements.hasInScope(B.BODY)&&(e.insertionMode=ue.AFTER_BODY,zj(e,r))}function R3e(e,r){const n=r.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function N3e(e){const r=e.openElements.tmplCount>0,{formElement:n}=e;r||(e.formElement=null),(n||r)&&e.openElements.hasInScope(B.FORM)&&(e.openElements.generateImpliedEndTags(),r?e.openElements.popUntilTagNamePopped(B.FORM):n&&e.openElements.remove(n))}function D3e(e){e.openElements.hasInButtonScope(B.P)||e._insertFakeElement(ve.P,B.P),e._closePElement()}function $3e(e){e.openElements.hasInListItemScope(B.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(B.LI),e.openElements.popUntilTagNamePopped(B.LI))}function P3e(e,r){const n=r.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function M3e(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function z3e(e,r){const n=r.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function I3e(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(ve.BR,B.BR),e.openElements.pop(),e.framesetOk=!1}function Cj(e,r){const n=r.tagName,o=r.tagID;for(let a=e.openElements.stackTop;a>0;a--){const i=e.openElements.items[a],s=e.openElements.tagIDs[a];if(o===s&&(o!==B.UNKNOWN||e.treeAdapter.getTagName(i)===n)){e.openElements.generateImpliedEndTagsWithExclusion(o),e.openElements.stackTop>=a&&e.openElements.shortenToLength(a);break}if(e._isSpecialElement(i,s))break}}function h3(e,r){switch(r.tagID){case B.A:case B.B:case B.I:case B.S:case B.U:case B.EM:case B.TT:case B.BIG:case B.CODE:case B.FONT:case B.NOBR:case B.SMALL:case B.STRIKE:case B.STRONG:{p8(e,r);break}case B.P:{D3e(e);break}case B.DL:case B.UL:case B.OL:case B.DIR:case B.DIV:case B.NAV:case B.PRE:case B.MAIN:case B.MENU:case B.ASIDE:case B.BUTTON:case B.CENTER:case B.FIGURE:case B.FOOTER:case B.HEADER:case B.HGROUP:case B.DIALOG:case B.ADDRESS:case B.ARTICLE:case B.DETAILS:case B.SEARCH:case B.SECTION:case B.SUMMARY:case B.LISTING:case B.FIELDSET:case B.BLOCKQUOTE:case B.FIGCAPTION:{R3e(e,r);break}case B.LI:{$3e(e);break}case B.DD:case B.DT:{P3e(e,r);break}case B.H1:case B.H2:case B.H3:case B.H4:case B.H5:case B.H6:{M3e(e);break}case B.BR:{I3e(e);break}case B.BODY:{T3e(e,r);break}case B.HTML:{A3e(e,r);break}case B.FORM:{N3e(e);break}case B.APPLET:case B.OBJECT:case B.MARQUEE:{z3e(e,r);break}case B.TEMPLATE:{qu(e,r);break}default:Cj(e,r)}}function Tj(e,r){e.tmplInsertionModeStack.length>0?Mj(e,r):f8(e,r)}function O3e(e,r){var n;r.tagID===B.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function j3e(e,r){e._err(r,Ae.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(r)}function m8(e,r){if(yj.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=ue.IN_TABLE_TEXT,r.type){case Kt.CHARACTER:{Rj(e,r);break}case Kt.WHITESPACE_CHARACTER:{Aj(e,r);break}}else P1(e,r)}function L3e(e,r){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(r,je.HTML),e.insertionMode=ue.IN_CAPTION}function B3e(e,r){e.openElements.clearBackToTableContext(),e._insertElement(r,je.HTML),e.insertionMode=ue.IN_COLUMN_GROUP}function F3e(e,r){e.openElements.clearBackToTableContext(),e._insertFakeElement(ve.COLGROUP,B.COLGROUP),e.insertionMode=ue.IN_COLUMN_GROUP,g8(e,r)}function H3e(e,r){e.openElements.clearBackToTableContext(),e._insertElement(r,je.HTML),e.insertionMode=ue.IN_TABLE_BODY}function V3e(e,r){e.openElements.clearBackToTableContext(),e._insertFakeElement(ve.TBODY,B.TBODY),e.insertionMode=ue.IN_TABLE_BODY,m3(e,r)}function q3e(e,r){e.openElements.hasInTableScope(B.TABLE)&&(e.openElements.popUntilTagNamePopped(B.TABLE),e._resetInsertionMode(),e._processStartTag(r))}function U3e(e,r){_j(r)?e._appendElement(r,je.HTML):P1(e,r),r.ackSelfClosing=!0}function W3e(e,r){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(r,je.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function ff(e,r){switch(r.tagID){case B.TD:case B.TH:case B.TR:{V3e(e,r);break}case B.STYLE:case B.SCRIPT:case B.TEMPLATE:{es(e,r);break}case B.COL:{F3e(e,r);break}case B.FORM:{W3e(e,r);break}case B.TABLE:{q3e(e,r);break}case B.TBODY:case B.TFOOT:case B.THEAD:{H3e(e,r);break}case B.INPUT:{U3e(e,r);break}case B.CAPTION:{L3e(e,r);break}case B.COLGROUP:{B3e(e,r);break}default:P1(e,r)}}function $1(e,r){switch(r.tagID){case B.TABLE:{e.openElements.hasInTableScope(B.TABLE)&&(e.openElements.popUntilTagNamePopped(B.TABLE),e._resetInsertionMode());break}case B.TEMPLATE:{qu(e,r);break}case B.BODY:case B.CAPTION:case B.COL:case B.COLGROUP:case B.HTML:case B.TBODY:case B.TD:case B.TFOOT:case B.TH:case B.THEAD:case B.TR:break;default:P1(e,r)}}function P1(e,r){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,p3(e,r),e.fosterParentingEnabled=n}function Aj(e,r){e.pendingCharacterTokens.push(r)}function Rj(e,r){e.pendingCharacterTokens.push(r),e.hasNonWhitespacePendingCharacterToken=!0}function M1(e,r){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n0&&e.openElements.currentTagId===B.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===B.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===B.OPTGROUP&&e.openElements.pop();break}case B.OPTION:{e.openElements.currentTagId===B.OPTION&&e.openElements.pop();break}case B.SELECT:{e.openElements.hasInSelectScope(B.SELECT)&&(e.openElements.popUntilTagNamePopped(B.SELECT),e._resetInsertionMode());break}case B.TEMPLATE:{qu(e,r);break}}}function Q3e(e,r){const n=r.tagID;n===B.CAPTION||n===B.TABLE||n===B.TBODY||n===B.TFOOT||n===B.THEAD||n===B.TR||n===B.TD||n===B.TH?(e.openElements.popUntilTagNamePopped(B.SELECT),e._resetInsertionMode(),e._processStartTag(r)):$j(e,r)}function J3e(e,r){const n=r.tagID;n===B.CAPTION||n===B.TABLE||n===B.TBODY||n===B.TFOOT||n===B.THEAD||n===B.TR||n===B.TD||n===B.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(B.SELECT),e._resetInsertionMode(),e.onEndTag(r)):Pj(e,r)}function exe(e,r){switch(r.tagID){case B.BASE:case B.BASEFONT:case B.BGSOUND:case B.LINK:case B.META:case B.NOFRAMES:case B.SCRIPT:case B.STYLE:case B.TEMPLATE:case B.TITLE:{es(e,r);break}case B.CAPTION:case B.COLGROUP:case B.TBODY:case B.TFOOT:case B.THEAD:{e.tmplInsertionModeStack[0]=ue.IN_TABLE,e.insertionMode=ue.IN_TABLE,ff(e,r);break}case B.COL:{e.tmplInsertionModeStack[0]=ue.IN_COLUMN_GROUP,e.insertionMode=ue.IN_COLUMN_GROUP,g8(e,r);break}case B.TR:{e.tmplInsertionModeStack[0]=ue.IN_TABLE_BODY,e.insertionMode=ue.IN_TABLE_BODY,m3(e,r);break}case B.TD:case B.TH:{e.tmplInsertionModeStack[0]=ue.IN_ROW,e.insertionMode=ue.IN_ROW,g3(e,r);break}default:e.tmplInsertionModeStack[0]=ue.IN_BODY,e.insertionMode=ue.IN_BODY,Po(e,r)}}function txe(e,r){r.tagID===B.TEMPLATE&&qu(e,r)}function Mj(e,r){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(B.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(r)):f8(e,r)}function rxe(e,r){r.tagID===B.HTML?Po(e,r):y3(e,r)}function zj(e,r){var n;if(r.tagID===B.HTML){if(e.fragmentContext||(e.insertionMode=ue.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===B.HTML){e._setEndLocation(e.openElements.items[0],r);const o=e.openElements.items[1];o&&!(!((n=e.treeAdapter.getNodeSourceCodeLocation(o))===null||n===void 0)&&n.endTag)&&e._setEndLocation(o,r)}}else y3(e,r)}function y3(e,r){e.insertionMode=ue.IN_BODY,p3(e,r)}function nxe(e,r){switch(r.tagID){case B.HTML:{Po(e,r);break}case B.FRAMESET:{e._insertElement(r,je.HTML);break}case B.FRAME:{e._appendElement(r,je.HTML),r.ackSelfClosing=!0;break}case B.NOFRAMES:{es(e,r);break}}}function oxe(e,r){r.tagID===B.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==B.FRAMESET&&(e.insertionMode=ue.AFTER_FRAMESET))}function axe(e,r){switch(r.tagID){case B.HTML:{Po(e,r);break}case B.NOFRAMES:{es(e,r);break}}}function ixe(e,r){r.tagID===B.HTML&&(e.insertionMode=ue.AFTER_AFTER_FRAMESET)}function sxe(e,r){r.tagID===B.HTML?Po(e,r):b3(e,r)}function b3(e,r){e.insertionMode=ue.IN_BODY,p3(e,r)}function lxe(e,r){switch(r.tagID){case B.HTML:{Po(e,r);break}case B.NOFRAMES:{es(e,r);break}}}function cxe(e,r){r.chars=Xr,e._insertCharacters(r)}function dxe(e,r){e._insertCharacters(r),e.framesetOk=!1}function Ij(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==je.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function uxe(e,r){if(Cve(r))Ij(e),e._startTagOutsideForeignContent(r);else{const n=e._getAdjustedCurrentElement(),o=e.treeAdapter.getNamespaceURI(n);o===je.MATHML?mj(r):o===je.SVG&&(Tve(r),gj(r)),u8(r),r.selfClosing?e._appendElement(r,o):e._insertElement(r,o),r.ackSelfClosing=!0}}function pxe(e,r){if(r.tagID===B.P||r.tagID===B.BR){Ij(e),e._endTagOutsideForeignContent(r);return}for(let n=e.openElements.stackTop;n>0;n--){const o=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(o)===je.HTML){e._endTagOutsideForeignContent(r);break}const a=e.treeAdapter.getTagName(o);if(a.toLowerCase()===r.tagName){r.tagName=a,e.openElements.shortenToLength(n);break}}}ve.AREA,ve.BASE,ve.BASEFONT,ve.BGSOUND,ve.BR,ve.COL,ve.EMBED,ve.FRAME,ve.HR,ve.IMG,ve.INPUT,ve.KEYGEN,ve.LINK,ve.META,ve.PARAM,ve.SOURCE,ve.TRACK,ve.WBR;const v3=Oj("end"),rc=Oj("start");function Oj(e){return r;function r(n){const o=n&&n.position&&n.position[e]||{};if(typeof o.line=="number"&&o.line>0&&typeof o.column=="number"&&o.column>0)return{line:o.line,column:o.column,offset:typeof o.offset=="number"&&o.offset>-1?o.offset:void 0}}}function jj(e){const r=rc(e),n=v3(e);if(r&&n)return{start:r,end:n}}const x3=(function(e){if(e==null)return gxe;if(typeof e=="function")return w3(e);if(typeof e=="object")return Array.isArray(e)?hxe(e):fxe(e);if(typeof e=="string")return mxe(e);throw new Error("Expected function, string, or object as test")});function hxe(e){const r=[];let n=-1;for(;++n":""))+")"})}return f;function f(){let g=Lj,b,x,w;if((!r||i(c,d,u[u.length-1]||void 0))&&(g=xxe(n(c,u)),g[0]===b8))return g;if("children"in c&&c.children){const k=c;if(k.children&&g[0]!==vxe)for(x=(o?k.children.length:-1)+s,w=u.concat(k);x>-1&&x])/gi,kxe=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),Fj={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function Hj(e,r){const n=$xe(e),o=a8("type",{handlers:{root:_xe,element:Exe,text:Sxe,comment:qj,doctype:Cxe,raw:Axe},unknown:Rxe}),a={parser:n?new vj(Fj):vj.getFragmentParser(void 0,Fj),handle(l){o(l,a)},stitches:!1,options:r||{}};o(e,a),mf(a,rc());const i=n?a.parser.document:a.parser.getFragment(),s=gbe(i,{file:a.options.file});return a.stitches&&v8(s,"comment",function(l,c,d){const u=l;if(u.value.stitch&&d&&c!==void 0){const h=d.children;return h[c]=u.value.stitch,c}}),s.type==="root"&&s.children.length===1&&s.children[0].type===e.type?s.children[0]:s}function Vj(e,r){let n=-1;if(e)for(;++n4&&(r.parser.tokenizer.state=0);const n={type:Kt.CHARACTER,chars:e.value,location:z1(e)};mf(r,rc(e)),r.parser.currentToken=n,r.parser._processToken(r.parser.currentToken)}function Cxe(e,r){const n={type:Kt.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:z1(e)};mf(r,rc(e)),r.parser.currentToken=n,r.parser._processToken(r.parser.currentToken)}function Txe(e,r){r.stitches=!0;const n=Pxe(e);if("children"in e&&"children"in n){const o=Hj({type:"root",children:e.children},r.options);n.children=o.children}qj({type:"comment",value:{stitch:n}},r)}function qj(e,r){const n=e.value,o={type:Kt.COMMENT,data:n,location:z1(e)};mf(r,rc(e)),r.parser.currentToken=o,r.parser._processToken(r.parser.currentToken)}function Axe(e,r){if(r.parser.tokenizer.preprocessor.html="",r.parser.tokenizer.preprocessor.pos=-1,r.parser.tokenizer.preprocessor.lastGapPos=-2,r.parser.tokenizer.preprocessor.gapStack=[],r.parser.tokenizer.preprocessor.skipNextNewLine=!1,r.parser.tokenizer.preprocessor.lastChunkWritten=!1,r.parser.tokenizer.preprocessor.endOfChunkHit=!1,r.parser.tokenizer.preprocessor.isEol=!1,Uj(r,rc(e)),r.parser.tokenizer.write(r.options.tagfilter?e.value.replace(wxe,"<$1$2"):e.value,!1),r.parser.tokenizer._runParsingLoop(),r.parser.tokenizer.state===72||r.parser.tokenizer.state===78){r.parser.tokenizer.preprocessor.lastChunkWritten=!0;const n=r.parser.tokenizer._consume();r.parser.tokenizer._callState(n)}}function Rxe(e,r){const n=e;if(r.options.passThrough&&r.options.passThrough.includes(n.type))Txe(n,r);else{let o="";throw kxe.has(n.type)&&(o=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+o)}}function mf(e,r){Uj(e,r);const n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=kn.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function Uj(e,r){if(r&&r.offset!==void 0){const n={startLine:r.line,startCol:r.column,startOffset:r.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-r.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=r.offset,e.parser.tokenizer.preprocessor.line=r.line,e.parser.tokenizer.currentLocation=n}}function Nxe(e,r){const n=e.tagName.toLowerCase();if(r.parser.tokenizer.state===kn.PLAINTEXT)return;mf(r,rc(e));const o=r.parser.openElements.current;let a="namespaceURI"in o?o.namespaceURI:Fu.html;a===Fu.html&&n==="svg"&&(a=Fu.svg);const i=Dbe({...e,children:[]},{space:a===Fu.svg?"svg":"html"}),s={type:Kt.START_TAG,tagName:n,tagID:hf(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in i?i.attrs:[],location:z1(e)};r.parser.currentToken=s,r.parser._processToken(r.parser.currentToken),r.parser.tokenizer.lastStartTagName=n}function Dxe(e,r){const n=e.tagName.toLowerCase();if(!r.parser.tokenizer.inForeignNode&&GO.includes(n)||r.parser.tokenizer.state===kn.PLAINTEXT)return;mf(r,v3(e));const o={type:Kt.END_TAG,tagName:n,tagID:hf(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:z1(e)};r.parser.currentToken=o,r.parser._processToken(r.parser.currentToken),n===r.parser.tokenizer.lastStartTagName&&(r.parser.tokenizer.state===kn.RCDATA||r.parser.tokenizer.state===kn.RAWTEXT||r.parser.tokenizer.state===kn.SCRIPT_DATA)&&(r.parser.tokenizer.state=kn.DATA)}function $xe(e){const r=e.type==="root"?e.children[0]:e;return!!(r&&(r.type==="doctype"||r.type==="element"&&r.tagName.toLowerCase()==="html"))}function z1(e){const r=rc(e)||{line:void 0,column:void 0,offset:void 0},n=v3(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:r.line,startCol:r.column,startOffset:r.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function Pxe(e){return"children"in e?Lu({...e,children:[]}):Lu(e)}function Mxe(e){return function(r,n){return Hj(r,{...e,file:n})}}const Uu=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],Wj={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...Uu,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...Uu],h2:[["className","sr-only"]],img:[...Uu,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...Uu,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...Uu],table:[...Uu],ul:[...Uu,["className","contains-task-list"]],"*":["abbr","accept","acceptCharset","accessKey","action","align","alt","axis","border","cellPadding","cellSpacing","char","charOff","charSet","checked","clear","colSpan","color","cols","compact","coords","dateTime","dir","encType","frame","hSpace","headers","height","hrefLang","htmlFor","id","isMap","itemProp","label","lang","maxLength","media","method","multiple","name","noHref","noShade","noWrap","open","prompt","readOnly","rev","rowSpan","rows","rules","scope","selected","shape","size","span","start","summary","tabIndex","title","useMap","vAlign","value","width"]},clobber:["ariaDescribedBy","ariaLabelledBy","id","name"],clobberPrefix:"user-content-",protocols:{cite:["http","https"],href:["http","https","irc","ircs","mailto","xmpp"],longDesc:["http","https"],src:["http","https"]},required:{input:{disabled:!0,type:"checkbox"}},strip:["script"],tagNames:["a","b","blockquote","br","code","dd","del","details","div","dl","dt","em","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","li","ol","p","picture","pre","q","rp","rt","ruby","s","samp","section","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","tr","tt","ul","var"]},fd={}.hasOwnProperty;function zxe(e,r){let n={type:"root",children:[]};const o={schema:r?{...Wj,...r}:Wj,stack:[]},a=Yj(o,e);return a&&(Array.isArray(a)?a.length===1?n=a[0]:n.children=a:n=a),n}function Yj(e,r){if(r&&typeof r=="object"){const n=r;switch(typeof n.type=="string"?n.type:""){case"comment":return Ixe(e,n);case"doctype":return Oxe(e,n);case"element":return jxe(e,n);case"root":return Lxe(e,n);case"text":return Bxe(e,n)}}}function Ixe(e,r){if(e.schema.allowComments){const n=typeof r.value=="string"?r.value:"",o=n.indexOf("-->"),i={type:"comment",value:o<0?n:n.slice(0,o)};return I1(i,r),i}}function Oxe(e,r){if(e.schema.allowDoctypes){const n={type:"doctype"};return I1(n,r),n}}function jxe(e,r){const n=typeof r.tagName=="string"?r.tagName:"";e.stack.push(n);const o=Gj(e,r.children),a=Fxe(e,r.properties);e.stack.pop();let i=!1;if(n&&n!=="*"&&(!e.schema.tagNames||e.schema.tagNames.includes(n))&&(i=!0,e.schema.ancestors&&fd.call(e.schema.ancestors,n))){const l=e.schema.ancestors[n];let c=-1;for(i=!1;++c1){let a=!1,i=0;for(;++i-1&&i>c||s>-1&&i>s||l>-1&&i>l)return!0;let d=-1;for(;++d4&&r.slice(0,4).toLowerCase()==="data")return n}function qxe(e){return function(r){return zxe(r,e)}}const Uxe=/["&'<>`]/g,Wxe=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Yxe=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,Gxe=/[|\\{}()[\]^$+*?.]/g,Qj=new WeakMap;function Xxe(e,r){if(e=e.replace(r.subset?Kxe(r.subset):Uxe,o),r.subset||r.escapeOnly)return e;return e.replace(Wxe,n).replace(Yxe,o);function n(a,i,s){return r.format((a.charCodeAt(0)-55296)*1024+a.charCodeAt(1)-56320+65536,s.charCodeAt(i+2),r)}function o(a,i,s){return r.format(a.charCodeAt(0),s.charCodeAt(i+1),r)}}function Kxe(e){let r=Qj.get(e);return r||(r=Zxe(e),Qj.set(e,r)),r}function Zxe(e){const r=[];let n=-1;for(;++n",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},n2e=["cent","copy","divide","gt","lt","not","para","times"],Jj={}.hasOwnProperty,w8={};let k3;for(k3 in x8)Jj.call(x8,k3)&&(w8[x8[k3]]=k3);const o2e=/[^\dA-Za-z]/;function a2e(e,r,n,o){const a=String.fromCharCode(e);if(Jj.call(w8,a)){const i=w8[a],s="&"+i;return n&&r2e.includes(i)&&!n2e.includes(i)&&(!o||r&&r!==61&&o2e.test(String.fromCharCode(r)))?s:s+";"}return""}function i2e(e,r,n){let o=Jxe(e,r,n.omitOptionalSemicolons),a;if((n.useNamedReferences||n.useShortestReferences)&&(a=a2e(e,r,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!a)&&n.useShortestReferences){const i=t2e(e,r,n.omitOptionalSemicolons);i.length|^->||--!>|"],c2e=["<",">"];function d2e(e,r,n,o){return o.settings.bogusComments?"":"";function a(i){return gf(i,Object.assign({},o.settings.characterReferences,{subset:c2e}))}}function u2e(e,r,n,o){return""}function _3(e,r){const n=String(e);if(typeof r!="string")throw new TypeError("Expected character");let o=0,a=n.indexOf(r);for(;a!==-1;)o++,a=n.indexOf(r,a+r.length);return o}const p2e=/[ \t\n\f\r]/g;function k8(e){return typeof e=="object"?e.type==="text"?eL(e.value):!1:eL(e)}function eL(e){return e.replace(p2e,"")===""}const Gn=rL(1),tL=rL(-1),h2e=[];function rL(e){return r;function r(n,o,a){const i=n?n.children:h2e;let s=(o||0)+e,l=i[s];if(!a)for(;l&&k8(l);)s+=e,l=i[s];return l}}const f2e={}.hasOwnProperty;function nL(e){return r;function r(n,o,a){return f2e.call(e,n.tagName)&&e[n.tagName](n,o,a)}}const _8=nL({body:g2e,caption:E8,colgroup:E8,dd:x2e,dt:v2e,head:E8,html:m2e,li:b2e,optgroup:w2e,option:k2e,p:y2e,rp:oL,rt:oL,tbody:E2e,td:aL,tfoot:S2e,th:aL,thead:_2e,tr:C2e});function E8(e,r,n){const o=Gn(n,r,!0);return!o||o.type!=="comment"&&!(o.type==="text"&&k8(o.value.charAt(0)))}function m2e(e,r,n){const o=Gn(n,r);return!o||o.type!=="comment"}function g2e(e,r,n){const o=Gn(n,r);return!o||o.type!=="comment"}function y2e(e,r,n){const o=Gn(n,r);return o?o.type==="element"&&(o.tagName==="address"||o.tagName==="article"||o.tagName==="aside"||o.tagName==="blockquote"||o.tagName==="details"||o.tagName==="div"||o.tagName==="dl"||o.tagName==="fieldset"||o.tagName==="figcaption"||o.tagName==="figure"||o.tagName==="footer"||o.tagName==="form"||o.tagName==="h1"||o.tagName==="h2"||o.tagName==="h3"||o.tagName==="h4"||o.tagName==="h5"||o.tagName==="h6"||o.tagName==="header"||o.tagName==="hgroup"||o.tagName==="hr"||o.tagName==="main"||o.tagName==="menu"||o.tagName==="nav"||o.tagName==="ol"||o.tagName==="p"||o.tagName==="pre"||o.tagName==="section"||o.tagName==="table"||o.tagName==="ul"):!n||!(n.type==="element"&&(n.tagName==="a"||n.tagName==="audio"||n.tagName==="del"||n.tagName==="ins"||n.tagName==="map"||n.tagName==="noscript"||n.tagName==="video"))}function b2e(e,r,n){const o=Gn(n,r);return!o||o.type==="element"&&o.tagName==="li"}function v2e(e,r,n){const o=Gn(n,r);return!!(o&&o.type==="element"&&(o.tagName==="dt"||o.tagName==="dd"))}function x2e(e,r,n){const o=Gn(n,r);return!o||o.type==="element"&&(o.tagName==="dt"||o.tagName==="dd")}function oL(e,r,n){const o=Gn(n,r);return!o||o.type==="element"&&(o.tagName==="rp"||o.tagName==="rt")}function w2e(e,r,n){const o=Gn(n,r);return!o||o.type==="element"&&o.tagName==="optgroup"}function k2e(e,r,n){const o=Gn(n,r);return!o||o.type==="element"&&(o.tagName==="option"||o.tagName==="optgroup")}function _2e(e,r,n){const o=Gn(n,r);return!!(o&&o.type==="element"&&(o.tagName==="tbody"||o.tagName==="tfoot"))}function E2e(e,r,n){const o=Gn(n,r);return!o||o.type==="element"&&(o.tagName==="tbody"||o.tagName==="tfoot")}function S2e(e,r,n){return!Gn(n,r)}function C2e(e,r,n){const o=Gn(n,r);return!o||o.type==="element"&&o.tagName==="tr"}function aL(e,r,n){const o=Gn(n,r);return!o||o.type==="element"&&(o.tagName==="td"||o.tagName==="th")}const T2e=nL({body:N2e,colgroup:D2e,head:R2e,html:A2e,tbody:$2e});function A2e(e){const r=Gn(e,-1);return!r||r.type!=="comment"}function R2e(e){const r=new Set;for(const o of e.children)if(o.type==="element"&&(o.tagName==="base"||o.tagName==="title")){if(r.has(o.tagName))return!1;r.add(o.tagName)}const n=e.children[0];return!n||n.type==="element"}function N2e(e){const r=Gn(e,-1,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&k8(r.value.charAt(0)))&&!(r.type==="element"&&(r.tagName==="meta"||r.tagName==="link"||r.tagName==="script"||r.tagName==="style"||r.tagName==="template"))}function D2e(e,r,n){const o=tL(n,r),a=Gn(e,-1,!0);return n&&o&&o.type==="element"&&o.tagName==="colgroup"&&_8(o,n.children.indexOf(o),n)?!1:!!(a&&a.type==="element"&&a.tagName==="col")}function $2e(e,r,n){const o=tL(n,r),a=Gn(e,-1);return n&&o&&o.type==="element"&&(o.tagName==="thead"||o.tagName==="tbody")&&_8(o,n.children.indexOf(o),n)?!1:!!(a&&a.type==="element"&&a.tagName==="tr")}const E3={name:[[` +function Mme(e,r){for(var n=0;no[a]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function HM(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var f6={exports:{}},Ig={};var UM;function Nme(){if(UM)return Ig;UM=1;var e=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function n(o,a,i){var l=null;if(i!==void 0&&(l=""+i),a.key!==void 0&&(l=""+a.key),"key"in a){i={};for(var s in a)s!=="key"&&(i[s]=a[s])}else i=a;return a=i.ref,{$$typeof:e,type:o,key:l,ref:a!==void 0?a:null,props:i}}return Ig.Fragment=r,Ig.jsx=n,Ig.jsxs=n,Ig}var WM;function Pme(){return WM||(WM=1,f6.exports=Nme()),f6.exports}var y=Pme(),m6={exports:{}},$t={};var GM;function Bme(){if(GM)return $t;GM=1;var e=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),l=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),u=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),f=Symbol.iterator;function g(Y){return Y===null||typeof Y!="object"?null:(Y=f&&Y[f]||Y["@@iterator"],typeof Y=="function"?Y:null)}var v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,x={};function k(Y,Z,I){this.props=Y,this.context=Z,this.refs=x,this.updater=I||v}k.prototype.isReactComponent={},k.prototype.setState=function(Y,Z){if(typeof Y!="object"&&typeof Y!="function"&&Y!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,Y,Z,"setState")},k.prototype.forceUpdate=function(Y){this.updater.enqueueForceUpdate(this,Y,"forceUpdate")};function C(){}C.prototype=k.prototype;function _(Y,Z,I){this.props=Y,this.context=Z,this.refs=x,this.updater=I||v}var $=_.prototype=new C;$.constructor=_,w($,k.prototype),$.isPureReactComponent=!0;var z=Array.isArray;function j(){}var A={H:null,A:null,T:null,S:null},R=Object.prototype.hasOwnProperty;function T(Y,Z,I){var W=I.ref;return{$$typeof:e,type:Y,key:Z,ref:W!==void 0?W:null,props:I}}function O(Y,Z){return T(Y.type,Z,Y.props)}function P(Y){return typeof Y=="object"&&Y!==null&&Y.$$typeof===e}function L(Y){var Z={"=":"=0",":":"=2"};return"$"+Y.replace(/[=:]/g,function(I){return Z[I]})}var H=/\/+/g;function M(Y,Z){return typeof Y=="object"&&Y!==null&&Y.key!=null?L(""+Y.key):Z.toString(36)}function V(Y){switch(Y.status){case"fulfilled":return Y.value;case"rejected":throw Y.reason;default:switch(typeof Y.status=="string"?Y.then(j,j):(Y.status="pending",Y.then(function(Z){Y.status==="pending"&&(Y.status="fulfilled",Y.value=Z)},function(Z){Y.status==="pending"&&(Y.status="rejected",Y.reason=Z)})),Y.status){case"fulfilled":return Y.value;case"rejected":throw Y.reason}}throw Y}function B(Y,Z,I,W,K){var Q=typeof Y;(Q==="undefined"||Q==="boolean")&&(Y=null);var ae=!1;if(Y===null)ae=!0;else switch(Q){case"bigint":case"string":case"number":ae=!0;break;case"object":switch(Y.$$typeof){case e:case r:ae=!0;break;case u:return ae=Y._init,B(ae(Y._payload),Z,I,W,K)}}if(ae)return K=K(Y),ae=W===""?"."+M(Y,0):W,z(K)?(I="",ae!=null&&(I=ae.replace(H,"$&/")+"/"),B(K,Z,I,"",function(ue){return ue})):K!=null&&(P(K)&&(K=O(K,I+(K.key==null||Y&&Y.key===K.key?"":(""+K.key).replace(H,"$&/")+"/")+ae)),Z.push(K)),1;ae=0;var te=W===""?".":W+":";if(z(Y))for(var re=0;re"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(r){console.error(r)}}return e(),y6.exports=Ome(),y6.exports}var Ii=KM();const QM=HM(Ii);function ir(e,r,n){const o=typeof r=="symbol"?r:Symbol.for(r);return e.hasOwnProperty(o)||Object.defineProperty(e,o,{enumerable:!1,writable:!1,value:n()}),e[o]}function v6(e){if(e===null||typeof e!="object")return!1;const r=Object.getPrototypeOf(e);return r!==null&&r!==Object.prototype&&Object.getPrototypeOf(r)!==null||Symbol.iterator in e?!1:Symbol.toStringTag in e?Object.prototype.toString.call(e)==="[object Module]":!0}function b6(e,r,n=".",o){if(!v6(r))return b6(e,{},n);const a=Object.assign({},r);for(const i in e){if(i==="__proto__"||i==="constructor")continue;const l=e[i];l!=null&&(Array.isArray(l)&&Array.isArray(a[i])?a[i]=[...l,...a[i]]:v6(l)&&v6(a[i])?a[i]=b6(l,a[i],(n?`${n}.`:"")+i.toString()):a[i]=l)}return a}function Ime(e){return(...r)=>r.reduce((n,o)=>b6(n,o,""),{})}const JM=Ime();function Lme(e,r,n){let o=a=>e(a,...r);return n===void 0?o:Object.assign(o,{lazy:n,lazyArgs:r})}function io(e,r,n){let o=e.length-r.length;if(o===0)return e(...r);if(o===1)return Lme(e,r,n);throw Error("Wrong number of arguments")}function Il(...e){return io(Fme,e)}const Fme=(e,r)=>e.length>=r;function mt(e,r){if(typeof e>"u"||e==null){const n=typeof r=="function"?r():r;throw new Error(n??`Expected defined value, but received ${e}`)}return e}function He(e,r){if(!e)throw new Error(r??"Invariant failed")}function Xo(e){throw new Error(`NonExhaustive value: ${e}`)}function Vme(...e){return io(qme,e)}function qme(e,r){let n={};for(let[o,a]of e.entries())n[a]=r(a,o,e);return n}function ab(...e){return io(Lg,e)}function Lg(e,r){if(e===r||Object.is(e,r))return!0;if(typeof e!="object"||typeof r!="object"||e===null||r===null||Object.getPrototypeOf(e)!==Object.getPrototypeOf(r))return!1;if(Array.isArray(e))return Hme(e,r);if(e instanceof Map)return Ume(e,r);if(e instanceof Set)return Wme(e,r);if(e instanceof Date)return e.getTime()===r.getTime();if(e instanceof RegExp)return e.toString()===r.toString();if(Object.keys(e).length!==Object.keys(r).length)return!1;for(let[n,o]of Object.entries(e))if(!(n in r)||!Lg(o,r[n]))return!1;return!0}function Hme(e,r){if(e.length!==r.length)return!1;for(let[n,o]of e.entries())if(!Lg(o,r[n]))return!1;return!0}function Ume(e,r){if(e.size!==r.size)return!1;for(let[n,o]of e.entries())if(!r.has(n)||!Lg(o,r.get(n)))return!1;return!0}function Wme(e,r){if(e.size!==r.size)return!1;let n=[...r];for(let o of e){let a=!1;for(let[i,l]of n.entries())if(Lg(o,l)){a=!0,n.splice(i,1);break}if(!a)return!1}return!0}const{min:Gme,max:Yme}=Math,wu=(e,r=0,n=1)=>Gme(Yme(r,e),n),x6=e=>{e._clipped=!1,e._unclipped=e.slice(0);for(let r=0;r<=3;r++)r<3?((e[r]<0||e[r]>255)&&(e._clipped=!0),e[r]=wu(e[r],0,255)):r===3&&(e[r]=wu(e[r],0,1));return e},eN={};for(let e of["Boolean","Number","String","Function","Array","Date","RegExp","Undefined","Null"])eN[`[object ${e}]`]=e.toLowerCase();function Ft(e){return eN[Object.prototype.toString.call(e)]||"object"}const Tt=(e,r=null)=>e.length>=3?Array.prototype.slice.call(e):Ft(e[0])=="object"&&r?r.split("").filter(n=>e[0][n]!==void 0).map(n=>e[0][n]):e[0].slice(0),$h=e=>{if(e.length<2)return null;const r=e.length-1;return Ft(e[r])=="string"?e[r].toLowerCase():null},{PI:ib,min:tN,max:rN}=Math,Ga=e=>Math.round(e*100)/100,w6=e=>Math.round(e*100)/100,Ts=ib*2,k6=ib/3,Xme=ib/180,Zme=180/ib;function nN(e){return[...e.slice(0,3).reverse(),...e.slice(3)]}const zt={format:{},autodetect:[]};let Ne=class{constructor(...r){const n=this;if(Ft(r[0])==="object"&&r[0].constructor&&r[0].constructor===this.constructor)return r[0];let o=$h(r),a=!1;if(!o){a=!0,zt.sorted||(zt.autodetect=zt.autodetect.sort((i,l)=>l.p-i.p),zt.sorted=!0);for(let i of zt.autodetect)if(o=i.test(...r),o)break}if(zt.format[o]){const i=zt.format[o].apply(null,a?r:r.slice(0,-1));n._rgb=x6(i)}else throw new Error("unknown format: "+r);n._rgb.length===3&&n._rgb.push(1)}toString(){return Ft(this.hex)=="function"?this.hex():`[${this._rgb.join(",")}]`}};const Kme="3.2.0",Rt=(...e)=>new Ne(...e);Rt.version=Kme;const zh={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",laserlemon:"#ffff54",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrod:"#fafad2",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",maroon2:"#7f0000",maroon3:"#b03060",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",purple2:"#7f007f",purple3:"#a020f0",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},Qme=/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,Jme=/^#?([A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/,oN=e=>{if(e.match(Qme)){(e.length===4||e.length===7)&&(e=e.substr(1)),e.length===3&&(e=e.split(""),e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]);const r=parseInt(e,16),n=r>>16,o=r>>8&255,a=r&255;return[n,o,a,1]}if(e.match(Jme)){(e.length===5||e.length===9)&&(e=e.substr(1)),e.length===4&&(e=e.split(""),e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]);const r=parseInt(e,16),n=r>>24&255,o=r>>16&255,a=r>>8&255,i=Math.round((r&255)/255*100)/100;return[n,o,a,i]}throw new Error(`unknown hex color: ${e}`)},{round:lb}=Math,aN=(...e)=>{let[r,n,o,a]=Tt(e,"rgba"),i=$h(e)||"auto";a===void 0&&(a=1),i==="auto"&&(i=a<1?"rgba":"rgb"),r=lb(r),n=lb(n),o=lb(o);let s="000000"+(r<<16|n<<8|o).toString(16);s=s.substr(s.length-6);let c="0"+lb(a*255).toString(16);switch(c=c.substr(c.length-2),i.toLowerCase()){case"rgba":return`#${s}${c}`;case"argb":return`#${c}${s}`;default:return`#${s}`}};Ne.prototype.name=function(){const e=aN(this._rgb,"rgb");for(let r of Object.keys(zh))if(zh[r]===e)return r.toLowerCase();return e},zt.format.named=e=>{if(e=e.toLowerCase(),zh[e])return oN(zh[e]);throw new Error("unknown color name: "+e)},zt.autodetect.push({p:5,test:(e,...r)=>{if(!r.length&&Ft(e)==="string"&&zh[e.toLowerCase()])return"named"}}),Ne.prototype.alpha=function(e,r=!1){return e!==void 0&&Ft(e)==="number"?r?(this._rgb[3]=e,this):new Ne([this._rgb[0],this._rgb[1],this._rgb[2],e],"rgb"):this._rgb[3]},Ne.prototype.clipped=function(){return this._rgb._clipped||!1};const Ll={Kn:18,labWhitePoint:"d65",Xn:.95047,Yn:1,Zn:1.08883,kE:216/24389,kKE:8,kK:24389/27,RefWhiteRGB:{X:.95047,Y:1,Z:1.08883},MtxRGB2XYZ:{m00:.4124564390896922,m01:.21267285140562253,m02:.0193338955823293,m10:.357576077643909,m11:.715152155287818,m12:.11919202588130297,m20:.18043748326639894,m21:.07217499330655958,m22:.9503040785363679},MtxXYZ2RGB:{m00:3.2404541621141045,m01:-.9692660305051868,m02:.055643430959114726,m10:-1.5371385127977166,m11:1.8760108454466942,m12:-.2040259135167538,m20:-.498531409556016,m21:.041556017530349834,m22:1.0572251882231791},As:.9414285350000001,Bs:1.040417467,Cs:1.089532651,MtxAdaptMa:{m00:.8951,m01:-.7502,m02:.0389,m10:.2664,m11:1.7135,m12:-.0685,m20:-.1614,m21:.0367,m22:1.0296},MtxAdaptMaI:{m00:.9869929054667123,m01:.43230526972339456,m02:-.008528664575177328,m10:-.14705425642099013,m11:.5183602715367776,m12:.04004282165408487,m20:.15996265166373125,m21:.0492912282128556,m22:.9684866957875502}},ege=new Map([["a",[1.0985,.35585]],["b",[1.0985,.35585]],["c",[.98074,1.18232]],["d50",[.96422,.82521]],["d55",[.95682,.92149]],["d65",[.95047,1.08883]],["e",[1,1,1]],["f2",[.99186,.67393]],["f7",[.95041,1.08747]],["f11",[1.00962,.6435]],["icc",[.96422,.82521]]]);function As(e){const r=ege.get(String(e).toLowerCase());if(!r)throw new Error("unknown Lab illuminant "+e);Ll.labWhitePoint=e,Ll.Xn=r[0],Ll.Zn=r[1]}function Fg(){return Ll.labWhitePoint}const _6=(...e)=>{e=Tt(e,"lab");const[r,n,o]=e,[a,i,l]=tge(r,n,o),[s,c,d]=iN(a,i,l);return[s,c,d,e.length>3?e[3]:1]},tge=(e,r,n)=>{const{kE:o,kK:a,kKE:i,Xn:l,Yn:s,Zn:c}=Ll,d=(e+16)/116,u=.002*r+d,p=d-.005*n,f=u*u*u,g=p*p*p,v=f>o?f:(116*u-16)/a,w=e>i?Math.pow((e+16)/116,3):e/a,x=g>o?g:(116*p-16)/a,k=v*l,C=w*s,_=x*c;return[k,C,_]},S6=e=>{const r=Math.sign(e);return e=Math.abs(e),(e<=.0031308?e*12.92:1.055*Math.pow(e,1/2.4)-.055)*r},iN=(e,r,n)=>{const{MtxAdaptMa:o,MtxAdaptMaI:a,MtxXYZ2RGB:i,RefWhiteRGB:l,Xn:s,Yn:c,Zn:d}=Ll,u=s*o.m00+c*o.m10+d*o.m20,p=s*o.m01+c*o.m11+d*o.m21,f=s*o.m02+c*o.m12+d*o.m22,g=l.X*o.m00+l.Y*o.m10+l.Z*o.m20,v=l.X*o.m01+l.Y*o.m11+l.Z*o.m21,w=l.X*o.m02+l.Y*o.m12+l.Z*o.m22,x=(e*o.m00+r*o.m10+n*o.m20)*(g/u),k=(e*o.m01+r*o.m11+n*o.m21)*(v/p),C=(e*o.m02+r*o.m12+n*o.m22)*(w/f),_=x*a.m00+k*a.m10+C*a.m20,$=x*a.m01+k*a.m11+C*a.m21,z=x*a.m02+k*a.m12+C*a.m22,j=S6(_*i.m00+$*i.m10+z*i.m20),A=S6(_*i.m01+$*i.m11+z*i.m21),R=S6(_*i.m02+$*i.m12+z*i.m22);return[j*255,A*255,R*255]},E6=(...e)=>{const[r,n,o,...a]=Tt(e,"rgb"),[i,l,s]=lN(r,n,o),[c,d,u]=rge(i,l,s);return[c,d,u,...a.length>0&&a[0]<1?[a[0]]:[]]};function rge(e,r,n){const{Xn:o,Yn:a,Zn:i,kE:l,kK:s}=Ll,c=e/o,d=r/a,u=n/i,p=c>l?Math.pow(c,1/3):(s*c+16)/116,f=d>l?Math.pow(d,1/3):(s*d+16)/116,g=u>l?Math.pow(u,1/3):(s*u+16)/116;return[116*f-16,500*(p-f),200*(f-g)]}function C6(e){const r=Math.sign(e);return e=Math.abs(e),(e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4))*r}const lN=(e,r,n)=>{e=C6(e/255),r=C6(r/255),n=C6(n/255);const{MtxRGB2XYZ:o,MtxAdaptMa:a,MtxAdaptMaI:i,Xn:l,Yn:s,Zn:c,As:d,Bs:u,Cs:p}=Ll;let f=e*o.m00+r*o.m10+n*o.m20,g=e*o.m01+r*o.m11+n*o.m21,v=e*o.m02+r*o.m12+n*o.m22;const w=l*a.m00+s*a.m10+c*a.m20,x=l*a.m01+s*a.m11+c*a.m21,k=l*a.m02+s*a.m12+c*a.m22;let C=f*a.m00+g*a.m10+v*a.m20,_=f*a.m01+g*a.m11+v*a.m21,$=f*a.m02+g*a.m12+v*a.m22;return C*=w/d,_*=x/u,$*=k/p,f=C*i.m00+_*i.m10+$*i.m20,g=C*i.m01+_*i.m11+$*i.m21,v=C*i.m02+_*i.m12+$*i.m22,[f,g,v]};Ne.prototype.lab=function(){return E6(this._rgb)},Object.assign(Rt,{lab:(...e)=>new Ne(...e,"lab"),getLabWhitePoint:Fg,setLabWhitePoint:As}),zt.format.lab=_6,zt.autodetect.push({p:2,test:(...e)=>{if(e=Tt(e,"lab"),Ft(e)==="array"&&e.length===3)return"lab"}}),Ne.prototype.darken=function(e=1){const r=this,n=r.lab();return n[0]-=Ll.Kn*e,new Ne(n,"lab").alpha(r.alpha(),!0)},Ne.prototype.brighten=function(e=1){return this.darken(-e)},Ne.prototype.darker=Ne.prototype.darken,Ne.prototype.brighter=Ne.prototype.brighten,Ne.prototype.get=function(e){const[r,n]=e.split("."),o=this[r]();if(n){const a=r.indexOf(n)-(r.substr(0,2)==="ok"?2:0);if(a>-1)return o[a];throw new Error(`unknown channel ${n} in mode ${r}`)}else return o};const{pow:nge}=Math,oge=1e-7,age=20;Ne.prototype.luminance=function(e,r="rgb"){if(e!==void 0&&Ft(e)==="number"){if(e===0)return new Ne([0,0,0,this._rgb[3]],"rgb");if(e===1)return new Ne([255,255,255,this._rgb[3]],"rgb");let n=this.luminance(),o=age;const a=(l,s)=>{const c=l.interpolate(s,.5,r),d=c.luminance();return Math.abs(e-d)e?a(l,c):a(c,s)},i=(n>e?a(new Ne([0,0,0]),this):a(this,new Ne([255,255,255]))).rgb();return new Ne([...i,this._rgb[3]])}return ige(...this._rgb.slice(0,3))};const ige=(e,r,n)=>(e=$6(e),r=$6(r),n=$6(n),.2126*e+.7152*r+.0722*n),$6=e=>(e/=255,e<=.03928?e/12.92:nge((e+.055)/1.055,2.4)),bo={},Rh=(e,r,n=.5,...o)=>{let a=o[0]||"lrgb";if(!bo[a]&&!o.length&&(a=Object.keys(bo)[0]),!bo[a])throw new Error(`interpolation mode ${a} is not defined`);return Ft(e)!=="object"&&(e=new Ne(e)),Ft(r)!=="object"&&(r=new Ne(r)),bo[a](e,r,n).alpha(e.alpha()+n*(r.alpha()-e.alpha()))};Ne.prototype.mix=Ne.prototype.interpolate=function(e,r=.5,...n){return Rh(this,e,r,...n)},Ne.prototype.premultiply=function(e=!1){const r=this._rgb,n=r[3];return e?(this._rgb=[r[0]*n,r[1]*n,r[2]*n,n],this):new Ne([r[0]*n,r[1]*n,r[2]*n,n],"rgb")};const{sin:lge,cos:sge}=Math,sN=(...e)=>{let[r,n,o]=Tt(e,"lch");return isNaN(o)&&(o=0),o=o*Xme,[r,sge(o)*n,lge(o)*n]},z6=(...e)=>{e=Tt(e,"lch");const[r,n,o]=e,[a,i,l]=sN(r,n,o),[s,c,d]=_6(a,i,l);return[s,c,d,e.length>3?e[3]:1]},cge=(...e)=>{const r=nN(Tt(e,"hcl"));return z6(...r)},{sqrt:dge,atan2:uge,round:pge}=Math,cN=(...e)=>{const[r,n,o]=Tt(e,"lab"),a=dge(n*n+o*o);let i=(uge(o,n)*Zme+360)%360;return pge(a*1e4)===0&&(i=Number.NaN),[r,a,i]},R6=(...e)=>{const[r,n,o,...a]=Tt(e,"rgb"),[i,l,s]=E6(r,n,o),[c,d,u]=cN(i,l,s);return[c,d,u,...a.length>0&&a[0]<1?[a[0]]:[]]};Ne.prototype.lch=function(){return R6(this._rgb)},Ne.prototype.hcl=function(){return nN(R6(this._rgb))},Object.assign(Rt,{lch:(...e)=>new Ne(...e,"lch"),hcl:(...e)=>new Ne(...e,"hcl")}),zt.format.lch=z6,zt.format.hcl=cge,["lch","hcl"].forEach(e=>zt.autodetect.push({p:2,test:(...r)=>{if(r=Tt(r,e),Ft(r)==="array"&&r.length===3)return e}})),Ne.prototype.saturate=function(e=1){const r=this,n=r.lch();return n[1]+=Ll.Kn*e,n[1]<0&&(n[1]=0),new Ne(n,"lch").alpha(r.alpha(),!0)},Ne.prototype.desaturate=function(e=1){return this.saturate(-e)},Ne.prototype.set=function(e,r,n=!1){const[o,a]=e.split("."),i=this[o]();if(a){const l=o.indexOf(a)-(o.substr(0,2)==="ok"?2:0);if(l>-1){if(Ft(r)=="string")switch(r.charAt(0)){case"+":i[l]+=+r;break;case"-":i[l]+=+r;break;case"*":i[l]*=+r.substr(1);break;case"/":i[l]/=+r.substr(1);break;default:i[l]=+r}else if(Ft(r)==="number")i[l]=r;else throw new Error("unsupported value for Color.set");const s=new Ne(i,o);return n?(this._rgb=s._rgb,this):s}throw new Error(`unknown channel ${a} in mode ${o}`)}else return i},Ne.prototype.tint=function(e=.5,...r){return Rh(this,"white",e,...r)},Ne.prototype.shade=function(e=.5,...r){return Rh(this,"black",e,...r)};const hge=(e,r,n)=>{const o=e._rgb,a=r._rgb;return new Ne(o[0]+n*(a[0]-o[0]),o[1]+n*(a[1]-o[1]),o[2]+n*(a[2]-o[2]),"rgb")};bo.rgb=hge;const{sqrt:j6,pow:jh}=Math,fge=(e,r,n)=>{const[o,a,i]=e._rgb,[l,s,c]=r._rgb;return new Ne(j6(jh(o,2)*(1-n)+jh(l,2)*n),j6(jh(a,2)*(1-n)+jh(s,2)*n),j6(jh(i,2)*(1-n)+jh(c,2)*n),"rgb")};bo.lrgb=fge;const mge=(e,r,n)=>{const o=e.lab(),a=r.lab();return new Ne(o[0]+n*(a[0]-o[0]),o[1]+n*(a[1]-o[1]),o[2]+n*(a[2]-o[2]),"lab")};bo.lab=mge;const Th=(e,r,n,o)=>{let a,i;o==="hsl"?(a=e.hsl(),i=r.hsl()):o==="hsv"?(a=e.hsv(),i=r.hsv()):o==="hcg"?(a=e.hcg(),i=r.hcg()):o==="hsi"?(a=e.hsi(),i=r.hsi()):o==="lch"||o==="hcl"?(o="hcl",a=e.hcl(),i=r.hcl()):o==="oklch"&&(a=e.oklch().reverse(),i=r.oklch().reverse());let l,s,c,d,u,p;(o.substr(0,1)==="h"||o==="oklch")&&([l,c,u]=a,[s,d,p]=i);let f,g,v,w;return!isNaN(l)&&!isNaN(s)?(s>l&&s-l>180?w=s-(l+360):s180?w=s+360-l:w=s-l,g=l+n*w):isNaN(l)?isNaN(s)?g=Number.NaN:(g=s,(u==1||u==0)&&o!="hsv"&&(f=d)):(g=l,(p==1||p==0)&&o!="hsv"&&(f=c)),f===void 0&&(f=c+n*(d-c)),v=u+n*(p-u),o==="oklch"?new Ne([v,f,g],o):new Ne([g,f,v],o)},dN=(e,r,n)=>Th(e,r,n,"lch");bo.lch=dN,bo.hcl=dN;const gge=e=>{if(Ft(e)=="number"&&e>=0&&e<=16777215){const r=e>>16,n=e>>8&255,o=e&255;return[r,n,o,1]}throw new Error("unknown num color: "+e)},yge=(...e)=>{const[r,n,o]=Tt(e,"rgb");return(r<<16)+(n<<8)+o};Ne.prototype.num=function(){return yge(this._rgb)},Object.assign(Rt,{num:(...e)=>new Ne(...e,"num")}),zt.format.num=gge,zt.autodetect.push({p:5,test:(...e)=>{if(e.length===1&&Ft(e[0])==="number"&&e[0]>=0&&e[0]<=16777215)return"num"}});const vge=(e,r,n)=>{const o=e.num(),a=r.num();return new Ne(o+n*(a-o),"num")};bo.num=vge;const{floor:bge}=Math,xge=(...e)=>{e=Tt(e,"hcg");let[r,n,o]=e,a,i,l;o=o*255;const s=n*255;if(n===0)a=i=l=o;else{r===360&&(r=0),r>360&&(r-=360),r<0&&(r+=360),r/=60;const c=bge(r),d=r-c,u=o*(1-n),p=u+s*(1-d),f=u+s*d,g=u+s;switch(c){case 0:[a,i,l]=[g,f,u];break;case 1:[a,i,l]=[p,g,u];break;case 2:[a,i,l]=[u,g,f];break;case 3:[a,i,l]=[u,p,g];break;case 4:[a,i,l]=[f,u,g];break;case 5:[a,i,l]=[g,u,p];break}}return[a,i,l,e.length>3?e[3]:1]},wge=(...e)=>{const[r,n,o]=Tt(e,"rgb"),a=tN(r,n,o),i=rN(r,n,o),l=i-a,s=l*100/255,c=a/(255-l)*100;let d;return l===0?d=Number.NaN:(r===i&&(d=(n-o)/l),n===i&&(d=2+(o-r)/l),o===i&&(d=4+(r-n)/l),d*=60,d<0&&(d+=360)),[d,s,c]};Ne.prototype.hcg=function(){return wge(this._rgb)};const kge=(...e)=>new Ne(...e,"hcg");Rt.hcg=kge,zt.format.hcg=xge,zt.autodetect.push({p:1,test:(...e)=>{if(e=Tt(e,"hcg"),Ft(e)==="array"&&e.length===3)return"hcg"}});const _ge=(e,r,n)=>Th(e,r,n,"hcg");bo.hcg=_ge;const{cos:Ah}=Math,Sge=(...e)=>{e=Tt(e,"hsi");let[r,n,o]=e,a,i,l;return isNaN(r)&&(r=0),isNaN(n)&&(n=0),r>360&&(r-=360),r<0&&(r+=360),r/=360,r<1/3?(l=(1-n)/3,a=(1+n*Ah(Ts*r)/Ah(k6-Ts*r))/3,i=1-(l+a)):r<2/3?(r-=1/3,a=(1-n)/3,i=(1+n*Ah(Ts*r)/Ah(k6-Ts*r))/3,l=1-(a+i)):(r-=2/3,i=(1-n)/3,l=(1+n*Ah(Ts*r)/Ah(k6-Ts*r))/3,a=1-(i+l)),a=wu(o*a*3),i=wu(o*i*3),l=wu(o*l*3),[a*255,i*255,l*255,e.length>3?e[3]:1]},{min:Ege,sqrt:Cge,acos:$ge}=Math,zge=(...e)=>{let[r,n,o]=Tt(e,"rgb");r/=255,n/=255,o/=255;let a;const i=Ege(r,n,o),l=(r+n+o)/3,s=l>0?1-i/l:0;return s===0?a=NaN:(a=(r-n+(r-o))/2,a/=Cge((r-n)*(r-n)+(r-o)*(n-o)),a=$ge(a),o>n&&(a=Ts-a),a/=Ts),[a*360,s,l]};Ne.prototype.hsi=function(){return zge(this._rgb)};const Rge=(...e)=>new Ne(...e,"hsi");Rt.hsi=Rge,zt.format.hsi=Sge,zt.autodetect.push({p:2,test:(...e)=>{if(e=Tt(e,"hsi"),Ft(e)==="array"&&e.length===3)return"hsi"}});const jge=(e,r,n)=>Th(e,r,n,"hsi");bo.hsi=jge;const T6=(...e)=>{e=Tt(e,"hsl");const[r,n,o]=e;let a,i,l;if(n===0)a=i=l=o*255;else{const s=[0,0,0],c=[0,0,0],d=o<.5?o*(1+n):o+n-o*n,u=2*o-d,p=r/360;s[0]=p+1/3,s[1]=p,s[2]=p-1/3;for(let f=0;f<3;f++)s[f]<0&&(s[f]+=1),s[f]>1&&(s[f]-=1),6*s[f]<1?c[f]=u+(d-u)*6*s[f]:2*s[f]<1?c[f]=d:3*s[f]<2?c[f]=u+(d-u)*(2/3-s[f])*6:c[f]=u;[a,i,l]=[c[0]*255,c[1]*255,c[2]*255]}return e.length>3?[a,i,l,e[3]]:[a,i,l,1]},uN=(...e)=>{e=Tt(e,"rgba");let[r,n,o]=e;r/=255,n/=255,o/=255;const a=tN(r,n,o),i=rN(r,n,o),l=(i+a)/2;let s,c;return i===a?(s=0,c=Number.NaN):s=l<.5?(i-a)/(i+a):(i-a)/(2-i-a),r==i?c=(n-o)/(i-a):n==i?c=2+(o-r)/(i-a):o==i&&(c=4+(r-n)/(i-a)),c*=60,c<0&&(c+=360),e.length>3&&e[3]!==void 0?[c,s,l,e[3]]:[c,s,l]};Ne.prototype.hsl=function(){return uN(this._rgb)};const Tge=(...e)=>new Ne(...e,"hsl");Rt.hsl=Tge,zt.format.hsl=T6,zt.autodetect.push({p:2,test:(...e)=>{if(e=Tt(e,"hsl"),Ft(e)==="array"&&e.length===3)return"hsl"}});const Age=(e,r,n)=>Th(e,r,n,"hsl");bo.hsl=Age;const{floor:Dge}=Math,Mge=(...e)=>{e=Tt(e,"hsv");let[r,n,o]=e,a,i,l;if(o*=255,n===0)a=i=l=o;else{r===360&&(r=0),r>360&&(r-=360),r<0&&(r+=360),r/=60;const s=Dge(r),c=r-s,d=o*(1-n),u=o*(1-n*c),p=o*(1-n*(1-c));switch(s){case 0:[a,i,l]=[o,p,d];break;case 1:[a,i,l]=[u,o,d];break;case 2:[a,i,l]=[d,o,p];break;case 3:[a,i,l]=[d,u,o];break;case 4:[a,i,l]=[p,d,o];break;case 5:[a,i,l]=[o,d,u];break}}return[a,i,l,e.length>3?e[3]:1]},{min:Nge,max:Pge}=Math,Bge=(...e)=>{e=Tt(e,"rgb");let[r,n,o]=e;const a=Nge(r,n,o),i=Pge(r,n,o),l=i-a;let s,c,d;return d=i/255,i===0?(s=Number.NaN,c=0):(c=l/i,r===i&&(s=(n-o)/l),n===i&&(s=2+(o-r)/l),o===i&&(s=4+(r-n)/l),s*=60,s<0&&(s+=360)),[s,c,d]};Ne.prototype.hsv=function(){return Bge(this._rgb)};const Oge=(...e)=>new Ne(...e,"hsv");Rt.hsv=Oge,zt.format.hsv=Mge,zt.autodetect.push({p:2,test:(...e)=>{if(e=Tt(e,"hsv"),Ft(e)==="array"&&e.length===3)return"hsv"}});const Ige=(e,r,n)=>Th(e,r,n,"hsv");bo.hsv=Ige;function sb(e,r){let n=e.length;Array.isArray(e[0])||(e=[e]),Array.isArray(r[0])||(r=r.map(l=>[l]));let o=r[0].length,a=r[0].map((l,s)=>r.map(c=>c[s])),i=e.map(l=>a.map(s=>Array.isArray(l)?l.reduce((c,d,u)=>c+d*(s[u]||0),0):s.reduce((c,d)=>c+d*l,0)));return n===1&&(i=i[0]),o===1?i.map(l=>l[0]):i}const A6=(...e)=>{e=Tt(e,"lab");const[r,n,o,...a]=e,[i,l,s]=Lge([r,n,o]),[c,d,u]=iN(i,l,s);return[c,d,u,...a.length>0&&a[0]<1?[a[0]]:[]]};function Lge(e){var r=[[1.2268798758459243,-.5578149944602171,.2813910456659647],[-.0405757452148008,1.112286803280317,-.0717110580655164],[-.0763729366746601,-.4214933324022432,1.5869240198367816]],n=[[1,.3963377773761749,.2158037573099136],[1,-.1055613458156586,-.0638541728258133],[1,-.0894841775298119,-1.2914855480194092]],o=sb(n,e);return sb(r,o.map(a=>a**3))}const D6=(...e)=>{const[r,n,o,...a]=Tt(e,"rgb"),i=lN(r,n,o);return[...Fge(i),...a.length>0&&a[0]<1?[a[0]]:[]]};function Fge(e){const r=[[.819022437996703,.3619062600528904,-.1288737815209879],[.0329836539323885,.9292868615863434,.0361446663506424],[.0481771893596242,.2642395317527308,.6335478284694309]],n=[[.210454268309314,.7936177747023054,-.0040720430116193],[1.9779985324311684,-2.42859224204858,.450593709617411],[.0259040424655478,.7827717124575296,-.8086757549230774]],o=sb(r,e);return sb(n,o.map(a=>Math.cbrt(a)))}Ne.prototype.oklab=function(){return D6(this._rgb)},Object.assign(Rt,{oklab:(...e)=>new Ne(...e,"oklab")}),zt.format.oklab=A6,zt.autodetect.push({p:2,test:(...e)=>{if(e=Tt(e,"oklab"),Ft(e)==="array"&&e.length===3)return"oklab"}});const Vge=(e,r,n)=>{const o=e.oklab(),a=r.oklab();return new Ne(o[0]+n*(a[0]-o[0]),o[1]+n*(a[1]-o[1]),o[2]+n*(a[2]-o[2]),"oklab")};bo.oklab=Vge;const qge=(e,r,n)=>Th(e,r,n,"oklch");bo.oklch=qge;const{pow:M6,sqrt:N6,PI:P6,cos:pN,sin:hN,atan2:Hge}=Math,Uge=(e,r="lrgb",n=null)=>{const o=e.length;n||(n=Array.from(new Array(o)).map(()=>1));const a=o/n.reduce(function(p,f){return p+f});if(n.forEach((p,f)=>{n[f]*=a}),e=e.map(p=>new Ne(p)),r==="lrgb")return Wge(e,n);const i=e.shift(),l=i.get(r),s=[];let c=0,d=0;for(let p=0;p{const g=p.get(r);u+=p.alpha()*n[f+1];for(let v=0;v=360;)f-=360;l[p]=f}else l[p]=l[p]/s[p];return u/=o,new Ne(l,r).alpha(u>.99999?1:u,!0)},Wge=(e,r)=>{const n=e.length,o=[0,0,0,0];for(let a=0;a.9999999&&(o[3]=1),new Ne(x6(o))},{pow:Gge}=Math;function cb(e){let r="rgb",n=Rt("#ccc"),o=0,a=[0,1],i=[0,1],l=[],s=[0,0],c=!1,d=[],u=!1,p=0,f=1,g=!1,v={},w=!0,x=1;const k=function(R){if(R=R||["#fff","#000"],R&&Ft(R)==="string"&&Rt.brewer&&Rt.brewer[R.toLowerCase()]&&(R=Rt.brewer[R.toLowerCase()]),Ft(R)==="array"){R.length===1&&(R=[R[0],R[0]]),R=R.slice(0);for(let T=0;T=c[O];)O++;return O-1}return 0};let _=R=>R,$=R=>R;const z=function(R,T){let O,P;if(T==null&&(T=!1),isNaN(R)||R===null)return n;T?P=R:c&&c.length>2?P=C(R)/(c.length-2):f!==p?P=(R-p)/(f-p):P=1,P=$(P),T||(P=_(P)),x!==1&&(P=Gge(P,x)),P=s[0]+P*(1-s[0]-s[1]),P=wu(P,0,1);const L=Math.floor(P*1e4);if(w&&v[L])O=v[L];else{if(Ft(d)==="array")for(let H=0;H=M&&H===l.length-1){O=d[H];break}if(P>M&&Pv={};k(e);const A=function(R){const T=Rt(z(R));return u&&T[u]?T[u]():T};return A.classes=function(R){if(R!=null){if(Ft(R)==="array")c=R,a=[R[0],R[R.length-1]];else{const T=Rt.analyze(a);R===0?c=[T.min,T.max]:c=Rt.limits(T,"e",R)}return A}return c},A.domain=function(R){if(!arguments.length)return i;i=R.slice(0),p=R[0],f=R[R.length-1],l=[];const T=d.length;if(R.length===T&&p!==f)for(let O of Array.from(R))l.push((O-p)/(f-p));else{for(let O=0;O2){const O=R.map((L,H)=>H/(R.length-1)),P=R.map(L=>(L-p)/(f-p));P.every((L,H)=>O[H]===L)||($=L=>{if(L<=0||L>=1)return L;let H=0;for(;L>=P[H+1];)H++;const M=(L-P[H])/(P[H+1]-P[H]);return O[H]+M*(O[H+1]-O[H])})}}return a=[p,f],A},A.mode=function(R){return arguments.length?(r=R,j(),A):r},A.range=function(R,T){return k(R),A},A.out=function(R){return u=R,A},A.spread=function(R){return arguments.length?(o=R,A):o},A.correctLightness=function(R){return R==null&&(R=!0),g=R,j(),g?_=function(T){const O=z(0,!0).lab()[0],P=z(1,!0).lab()[0],L=O>P;let H=z(T,!0).lab()[0];const M=O+(P-O)*T;let V=H-M,B=0,F=1,q=20;for(;Math.abs(V)>.01&&q-- >0;)(function(){return L&&(V*=-1),V<0?(B=T,T+=(F-T)*.5):(F=T,T+=(B-T)*.5),H=z(T,!0).lab()[0],V=H-M})();return T}:_=T=>T,A},A.padding=function(R){return R!=null?(Ft(R)==="number"&&(R=[R,R]),s=R,A):s},A.colors=function(R,T){arguments.length<2&&(T="hex");let O=[];if(arguments.length===0)O=d.slice(0);else if(R===1)O=[A(.5)];else if(R>1){const P=a[0],L=a[1]-P;O=Yge(0,R).map(H=>A(P+H/(R-1)*L))}else{e=[];let P=[];if(c&&c.length>2)for(let L=1,H=c.length,M=1<=H;M?LH;M?L++:L--)P.push((c[L-1]+c[L])*.5);else P=a;O=P.map(L=>A(L))}return Rt[T]&&(O=O.map(P=>P[T]())),O},A.cache=function(R){return R!=null?(w=R,A):w},A.gamma=function(R){return R!=null?(x=R,A):x},A.nodata=function(R){return R!=null?(n=Rt(R),A):n},A}function Yge(e,r,n){let o=[],a=ei;a?l++:l--)o.push(l);return o}const Xge=function(e){let r=[1,1];for(let n=1;nnew Ne(i)),e.length===2)[n,o]=e.map(i=>i.lab()),r=function(i){const l=[0,1,2].map(s=>n[s]+i*(o[s]-n[s]));return new Ne(l,"lab")};else if(e.length===3)[n,o,a]=e.map(i=>i.lab()),r=function(i){const l=[0,1,2].map(s=>(1-i)*(1-i)*n[s]+2*(1-i)*i*o[s]+i*i*a[s]);return new Ne(l,"lab")};else if(e.length===4){let i;[n,o,a,i]=e.map(l=>l.lab()),r=function(l){const s=[0,1,2].map(c=>(1-l)*(1-l)*(1-l)*n[c]+3*(1-l)*(1-l)*l*o[c]+3*(1-l)*l*l*a[c]+l*l*l*i[c]);return new Ne(s,"lab")}}else if(e.length>=5){let i,l,s;i=e.map(c=>c.lab()),s=e.length-1,l=Xge(s),r=function(c){const d=1-c,u=[0,1,2].map(p=>i.reduce((f,g,v)=>f+l[v]*d**(s-v)*c**v*g[p],0));return new Ne(u,"lab")}}else throw new RangeError("No point in running bezier with only one color.");return r},Kge=e=>{const r=Zge(e);return r.scale=()=>cb(r),r},{round:fN}=Math;Ne.prototype.rgb=function(e=!0){return e===!1?this._rgb.slice(0,3):this._rgb.slice(0,3).map(fN)},Ne.prototype.rgba=function(e=!0){return this._rgb.slice(0,4).map((r,n)=>n<3?e===!1?r:fN(r):r)},Object.assign(Rt,{rgb:(...e)=>new Ne(...e,"rgb")}),zt.format.rgb=(...e)=>{const r=Tt(e,"rgba");return r[3]===void 0&&(r[3]=1),r},zt.autodetect.push({p:3,test:(...e)=>{if(e=Tt(e,"rgba"),Ft(e)==="array"&&(e.length===3||e.length===4&&Ft(e[3])=="number"&&e[3]>=0&&e[3]<=1))return"rgb"}});const Li=(e,r,n)=>{if(!Li[n])throw new Error("unknown blend mode "+n);return Li[n](e,r)},qc=e=>(r,n)=>{const o=Rt(n).rgb(),a=Rt(r).rgb();return Rt.rgb(e(o,a))},Hc=e=>(r,n)=>{const o=[];return o[0]=e(r[0],n[0]),o[1]=e(r[1],n[1]),o[2]=e(r[2],n[2]),o},Qge=e=>e,Jge=(e,r)=>e*r/255,e1e=(e,r)=>e>r?r:e,t1e=(e,r)=>e>r?e:r,r1e=(e,r)=>255*(1-(1-e/255)*(1-r/255)),n1e=(e,r)=>r<128?2*e*r/255:255*(1-2*(1-e/255)*(1-r/255)),o1e=(e,r)=>255*(1-(1-r/255)/(e/255)),a1e=(e,r)=>e===255?255:(e=255*(r/255)/(1-e/255),e>255?255:e);Li.normal=qc(Hc(Qge)),Li.multiply=qc(Hc(Jge)),Li.screen=qc(Hc(r1e)),Li.overlay=qc(Hc(n1e)),Li.darken=qc(Hc(e1e)),Li.lighten=qc(Hc(t1e)),Li.dodge=qc(Hc(a1e)),Li.burn=qc(Hc(o1e));const{pow:i1e,sin:l1e,cos:s1e}=Math;function c1e(e=300,r=-1.5,n=1,o=1,a=[0,1]){let i=0,l;Ft(a)==="array"?l=a[1]-a[0]:(l=0,a=[a,a]);const s=function(c){const d=Ts*((e+120)/360+r*c),u=i1e(a[0]+l*c,o),f=(i!==0?n[0]+c*i:n)*u*(1-u)/2,g=s1e(d),v=l1e(d),w=u+f*(-.14861*g+1.78277*v),x=u+f*(-.29227*g-.90649*v),k=u+f*(1.97294*g);return Rt(x6([w*255,x*255,k*255,1]))};return s.start=function(c){return c==null?e:(e=c,s)},s.rotations=function(c){return c==null?r:(r=c,s)},s.gamma=function(c){return c==null?o:(o=c,s)},s.hue=function(c){return c==null?n:(n=c,Ft(n)==="array"?(i=n[1]-n[0],i===0&&(n=n[1])):i=0,s)},s.lightness=function(c){return c==null?a:(Ft(c)==="array"?(a=c,l=c[1]-c[0]):(a=[c,c],l=0),s)},s.scale=()=>Rt.scale(s),s.hue(n),s}const d1e="0123456789abcdef",{floor:u1e,random:p1e}=Math,h1e=(e=p1e)=>{let r="#";for(let n=0;n<6;n++)r+=d1e.charAt(u1e(e()*16));return new Ne(r,"hex")},{log:mN,pow:f1e,floor:m1e,abs:g1e}=Math;function gN(e,r=null){const n={min:Number.MAX_VALUE,max:Number.MAX_VALUE*-1,sum:0,values:[],count:0};return Ft(e)==="object"&&(e=Object.values(e)),e.forEach(o=>{r&&Ft(o)==="object"&&(o=o[r]),o!=null&&!isNaN(o)&&(n.values.push(o),n.sum+=o,on.max&&(n.max=o),n.count+=1)}),n.domain=[n.min,n.max],n.limits=(o,a)=>yN(n,o,a),n}function yN(e,r="equal",n=7){Ft(e)=="array"&&(e=gN(e));const{min:o,max:a}=e,i=e.values.sort((s,c)=>s-c);if(n===1)return[o,a];const l=[];if(r.substr(0,1)==="c"&&(l.push(o),l.push(a)),r.substr(0,1)==="e"){l.push(o);for(let s=1;s 0");const s=Math.LOG10E*mN(o),c=Math.LOG10E*mN(a);l.push(o);for(let d=1;d200&&(p=!1)}const v={};for(let x=0;xx-k),l.push(w[0]);for(let x=1;x{e=new Ne(e),r=new Ne(r);const n=e.luminance(),o=r.luminance();return n>o?(n+.05)/(o+.05):(o+.05)/(n+.05)};const vN=.027,v1e=5e-4,b1e=.1,bN=1.14,db=.022,xN=1.414,x1e=(e,r)=>{e=new Ne(e),r=new Ne(r),e.alpha()<1&&(e=Rh(r,e,e.alpha(),"rgb"));const n=wN(...e.rgb()),o=wN(...r.rgb()),a=n>=db?n:n+Math.pow(db-n,xN),i=o>=db?o:o+Math.pow(db-o,xN),l=Math.pow(i,.56)-Math.pow(a,.57),s=Math.pow(i,.65)-Math.pow(a,.62),c=Math.abs(i-a)0?c-vN:c+vN)*100};function wN(e,r,n){return .2126729*Math.pow(e/255,2.4)+.7151522*Math.pow(r/255,2.4)+.072175*Math.pow(n/255,2.4)}const{sqrt:Ds,pow:yn,min:w1e,max:k1e,atan2:kN,abs:_N,cos:ub,sin:SN,exp:_1e,PI:EN}=Math;function S1e(e,r,n=1,o=1,a=1){var i=function(I){return 360*I/(2*EN)},l=function(I){return 2*EN*I/360};e=new Ne(e),r=new Ne(r);const[s,c,d]=Array.from(e.lab()),[u,p,f]=Array.from(r.lab()),g=(s+u)/2,v=Ds(yn(c,2)+yn(d,2)),w=Ds(yn(p,2)+yn(f,2)),x=(v+w)/2,k=.5*(1-Ds(yn(x,7)/(yn(x,7)+yn(25,7)))),C=c*(1+k),_=p*(1+k),$=Ds(yn(C,2)+yn(d,2)),z=Ds(yn(_,2)+yn(f,2)),j=($+z)/2,A=i(kN(d,C)),R=i(kN(f,_)),T=A>=0?A:A+360,O=R>=0?R:R+360,P=_N(T-O)>180?(T+O+360)/2:(T+O)/2,L=1-.17*ub(l(P-30))+.24*ub(l(2*P))+.32*ub(l(3*P+6))-.2*ub(l(4*P-63));let H=O-T;H=_N(H)<=180?H:O<=T?H+360:H-360,H=2*Ds($*z)*SN(l(H)/2);const M=u-s,V=z-$,B=1+.015*yn(g-50,2)/Ds(20+yn(g-50,2)),F=1+.045*j,q=1+.015*j*L,G=30*_1e(-yn((P-275)/25,2)),Y=-(2*Ds(yn(j,7)/(yn(j,7)+yn(25,7))))*SN(2*l(G)),Z=Ds(yn(M/(n*B),2)+yn(V/(o*F),2)+yn(H/(a*q),2)+Y*(V/(o*F))*(H/(a*q)));return k1e(0,w1e(100,Z))}function E1e(e,r,n="lab"){e=new Ne(e),r=new Ne(r);const o=e.get(n),a=r.get(n);let i=0;for(let l in o){const s=(o[l]||0)-(a[l]||0);i+=s*s}return Math.sqrt(i)}const C1e=(...e)=>{try{return new Ne(...e),!0}catch{return!1}},$1e={cool(){return cb([Rt.hsl(180,1,.9),Rt.hsl(250,.7,.4)])},hot(){return cb(["#000","#f00","#ff0","#fff"]).mode("rgb")}},B6={OrRd:["#fff7ec","#fee8c8","#fdd49e","#fdbb84","#fc8d59","#ef6548","#d7301f","#b30000","#7f0000"],PuBu:["#fff7fb","#ece7f2","#d0d1e6","#a6bddb","#74a9cf","#3690c0","#0570b0","#045a8d","#023858"],BuPu:["#f7fcfd","#e0ecf4","#bfd3e6","#9ebcda","#8c96c6","#8c6bb1","#88419d","#810f7c","#4d004b"],Oranges:["#fff5eb","#fee6ce","#fdd0a2","#fdae6b","#fd8d3c","#f16913","#d94801","#a63603","#7f2704"],BuGn:["#f7fcfd","#e5f5f9","#ccece6","#99d8c9","#66c2a4","#41ae76","#238b45","#006d2c","#00441b"],YlOrBr:["#ffffe5","#fff7bc","#fee391","#fec44f","#fe9929","#ec7014","#cc4c02","#993404","#662506"],YlGn:["#ffffe5","#f7fcb9","#d9f0a3","#addd8e","#78c679","#41ab5d","#238443","#006837","#004529"],Reds:["#fff5f0","#fee0d2","#fcbba1","#fc9272","#fb6a4a","#ef3b2c","#cb181d","#a50f15","#67000d"],RdPu:["#fff7f3","#fde0dd","#fcc5c0","#fa9fb5","#f768a1","#dd3497","#ae017e","#7a0177","#49006a"],Greens:["#f7fcf5","#e5f5e0","#c7e9c0","#a1d99b","#74c476","#41ab5d","#238b45","#006d2c","#00441b"],YlGnBu:["#ffffd9","#edf8b1","#c7e9b4","#7fcdbb","#41b6c4","#1d91c0","#225ea8","#253494","#081d58"],Purples:["#fcfbfd","#efedf5","#dadaeb","#bcbddc","#9e9ac8","#807dba","#6a51a3","#54278f","#3f007d"],GnBu:["#f7fcf0","#e0f3db","#ccebc5","#a8ddb5","#7bccc4","#4eb3d3","#2b8cbe","#0868ac","#084081"],Greys:["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525","#000000"],YlOrRd:["#ffffcc","#ffeda0","#fed976","#feb24c","#fd8d3c","#fc4e2a","#e31a1c","#bd0026","#800026"],PuRd:["#f7f4f9","#e7e1ef","#d4b9da","#c994c7","#df65b0","#e7298a","#ce1256","#980043","#67001f"],Blues:["#f7fbff","#deebf7","#c6dbef","#9ecae1","#6baed6","#4292c6","#2171b5","#08519c","#08306b"],PuBuGn:["#fff7fb","#ece2f0","#d0d1e6","#a6bddb","#67a9cf","#3690c0","#02818a","#016c59","#014636"],Viridis:["#440154","#482777","#3f4a8a","#31678e","#26838f","#1f9d8a","#6cce5a","#b6de2b","#fee825"],Spectral:["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"],RdYlGn:["#a50026","#d73027","#f46d43","#fdae61","#fee08b","#ffffbf","#d9ef8b","#a6d96a","#66bd63","#1a9850","#006837"],RdBu:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#f7f7f7","#d1e5f0","#92c5de","#4393c3","#2166ac","#053061"],PiYG:["#8e0152","#c51b7d","#de77ae","#f1b6da","#fde0ef","#f7f7f7","#e6f5d0","#b8e186","#7fbc41","#4d9221","#276419"],PRGn:["#40004b","#762a83","#9970ab","#c2a5cf","#e7d4e8","#f7f7f7","#d9f0d3","#a6dba0","#5aae61","#1b7837","#00441b"],RdYlBu:["#a50026","#d73027","#f46d43","#fdae61","#fee090","#ffffbf","#e0f3f8","#abd9e9","#74add1","#4575b4","#313695"],BrBG:["#543005","#8c510a","#bf812d","#dfc27d","#f6e8c3","#f5f5f5","#c7eae5","#80cdc1","#35978f","#01665e","#003c30"],RdGy:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#ffffff","#e0e0e0","#bababa","#878787","#4d4d4d","#1a1a1a"],PuOr:["#7f3b08","#b35806","#e08214","#fdb863","#fee0b6","#f7f7f7","#d8daeb","#b2abd2","#8073ac","#542788","#2d004b"],Set2:["#66c2a5","#fc8d62","#8da0cb","#e78ac3","#a6d854","#ffd92f","#e5c494","#b3b3b3"],Accent:["#7fc97f","#beaed4","#fdc086","#ffff99","#386cb0","#f0027f","#bf5b17","#666666"],Set1:["#e41a1c","#377eb8","#4daf4a","#984ea3","#ff7f00","#ffff33","#a65628","#f781bf","#999999"],Set3:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69","#fccde5","#d9d9d9","#bc80bd","#ccebc5","#ffed6f"],Dark2:["#1b9e77","#d95f02","#7570b3","#e7298a","#66a61e","#e6ab02","#a6761d","#666666"],Paired:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f","#ff7f00","#cab2d6","#6a3d9a","#ffff99","#b15928"],Pastel2:["#b3e2cd","#fdcdac","#cbd5e8","#f4cae4","#e6f5c9","#fff2ae","#f1e2cc","#cccccc"],Pastel1:["#fbb4ae","#b3cde3","#ccebc5","#decbe4","#fed9a6","#ffffcc","#e5d8bd","#fddaec","#f2f2f2"]},CN=Object.keys(B6),$N=new Map(CN.map(e=>[e.toLowerCase(),e])),z1e=typeof Proxy=="function"?new Proxy(B6,{get(e,r){const n=r.toLowerCase();if($N.has(n))return e[$N.get(n)]},getOwnPropertyNames(){return Object.getOwnPropertyNames(CN)}}):B6,R1e=(...e)=>{e=Tt(e,"cmyk");const[r,n,o,a]=e,i=e.length>4?e[4]:1;return a===1?[0,0,0,i]:[r>=1?0:255*(1-r)*(1-a),n>=1?0:255*(1-n)*(1-a),o>=1?0:255*(1-o)*(1-a),i]},{max:zN}=Math,j1e=(...e)=>{let[r,n,o]=Tt(e,"rgb");r=r/255,n=n/255,o=o/255;const a=1-zN(r,zN(n,o)),i=a<1?1/(1-a):0,l=(1-r-a)*i,s=(1-n-a)*i,c=(1-o-a)*i;return[l,s,c,a]};Ne.prototype.cmyk=function(){return j1e(this._rgb)},Object.assign(Rt,{cmyk:(...e)=>new Ne(...e,"cmyk")}),zt.format.cmyk=R1e,zt.autodetect.push({p:2,test:(...e)=>{if(e=Tt(e,"cmyk"),Ft(e)==="array"&&e.length===4)return"cmyk"}});const T1e=(...e)=>{const r=Tt(e,"hsla");let n=$h(e)||"lsa";return r[0]=Ga(r[0]||0)+"deg",r[1]=Ga(r[1]*100)+"%",r[2]=Ga(r[2]*100)+"%",n==="hsla"||r.length>3&&r[3]<1?(r[3]="/ "+(r.length>3?r[3]:1),n="hsla"):r.length=3,`${n.substr(0,3)}(${r.join(" ")})`},A1e=(...e)=>{const r=Tt(e,"lab");let n=$h(e)||"lab";return r[0]=Ga(r[0])+"%",r[1]=Ga(r[1]),r[2]=Ga(r[2]),n==="laba"||r.length>3&&r[3]<1?r[3]="/ "+(r.length>3?r[3]:1):r.length=3,`lab(${r.join(" ")})`},D1e=(...e)=>{const r=Tt(e,"lch");let n=$h(e)||"lab";return r[0]=Ga(r[0])+"%",r[1]=Ga(r[1]),r[2]=isNaN(r[2])?"none":Ga(r[2])+"deg",n==="lcha"||r.length>3&&r[3]<1?r[3]="/ "+(r.length>3?r[3]:1):r.length=3,`lch(${r.join(" ")})`},M1e=(...e)=>{const r=Tt(e,"lab");return r[0]=Ga(r[0]*100)+"%",r[1]=w6(r[1]),r[2]=w6(r[2]),r.length>3&&r[3]<1?r[3]="/ "+(r.length>3?r[3]:1):r.length=3,`oklab(${r.join(" ")})`},RN=(...e)=>{const[r,n,o,...a]=Tt(e,"rgb"),[i,l,s]=D6(r,n,o),[c,d,u]=cN(i,l,s);return[c,d,u,...a.length>0&&a[0]<1?[a[0]]:[]]},N1e=(...e)=>{const r=Tt(e,"lch");return r[0]=Ga(r[0]*100)+"%",r[1]=w6(r[1]),r[2]=isNaN(r[2])?"none":Ga(r[2])+"deg",r.length>3&&r[3]<1?r[3]="/ "+(r.length>3?r[3]:1):r.length=3,`oklch(${r.join(" ")})`},{round:O6}=Math,P1e=(...e)=>{const r=Tt(e,"rgba");let n=$h(e)||"rgb";if(n.substr(0,3)==="hsl")return T1e(uN(r),n);if(n.substr(0,3)==="lab"){const o=Fg();As("d50");const a=A1e(E6(r),n);return As(o),a}if(n.substr(0,3)==="lch"){const o=Fg();As("d50");const a=D1e(R6(r),n);return As(o),a}return n.substr(0,5)==="oklab"?M1e(D6(r)):n.substr(0,5)==="oklch"?N1e(RN(r)):(r[0]=O6(r[0]),r[1]=O6(r[1]),r[2]=O6(r[2]),(n==="rgba"||r.length>3&&r[3]<1)&&(r[3]="/ "+(r.length>3?r[3]:1),n="rgba"),`${n.substr(0,3)}(${r.slice(0,n==="rgb"?3:4).join(" ")})`)},jN=(...e)=>{e=Tt(e,"lch");const[r,n,o,...a]=e,[i,l,s]=sN(r,n,o),[c,d,u]=A6(i,l,s);return[c,d,u,...a.length>0&&a[0]<1?[a[0]]:[]]},Ms=/((?:-?\d+)|(?:-?\d+(?:\.\d+)?)%|none)/.source,Fi=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)%?)|none)/.source,pb=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)%)|none)/.source,Ya=/\s*/.source,Dh=/\s+/.source,I6=/\s*,\s*/.source,hb=/((?:-?(?:\d+(?:\.\d*)?|\.\d+)(?:deg)?)|none)/.source,Mh=/\s*(?:\/\s*((?:[01]|[01]?\.\d+)|\d+(?:\.\d+)?%))?/.source,TN=new RegExp("^rgba?\\("+Ya+[Ms,Ms,Ms].join(Dh)+Mh+"\\)$"),AN=new RegExp("^rgb\\("+Ya+[Ms,Ms,Ms].join(I6)+Ya+"\\)$"),DN=new RegExp("^rgba\\("+Ya+[Ms,Ms,Ms,Fi].join(I6)+Ya+"\\)$"),MN=new RegExp("^hsla?\\("+Ya+[hb,pb,pb].join(Dh)+Mh+"\\)$"),NN=new RegExp("^hsl?\\("+Ya+[hb,pb,pb].join(I6)+Ya+"\\)$"),PN=/^hsla\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,BN=new RegExp("^lab\\("+Ya+[Fi,Fi,Fi].join(Dh)+Mh+"\\)$"),ON=new RegExp("^lch\\("+Ya+[Fi,Fi,hb].join(Dh)+Mh+"\\)$"),IN=new RegExp("^oklab\\("+Ya+[Fi,Fi,Fi].join(Dh)+Mh+"\\)$"),LN=new RegExp("^oklch\\("+Ya+[Fi,Fi,hb].join(Dh)+Mh+"\\)$"),{round:FN}=Math,Nh=e=>e.map((r,n)=>n<=2?wu(FN(r),0,255):r),vn=(e,r=0,n=100,o=!1)=>(typeof e=="string"&&e.endsWith("%")&&(e=parseFloat(e.substring(0,e.length-1))/100,o?e=r+(e+1)*.5*(n-r):e=r+e*(n-r)),+e),Po=(e,r)=>e==="none"?r:e,L6=e=>{if(e=e.toLowerCase().trim(),e==="transparent")return[0,0,0,0];let r;if(zt.format.named)try{return zt.format.named(e)}catch{}if((r=e.match(TN))||(r=e.match(AN))){let n=r.slice(1,4);for(let a=0;a<3;a++)n[a]=+vn(Po(n[a],0),0,255);n=Nh(n);const o=r[4]!==void 0?+vn(r[4],0,1):1;return n[3]=o,n}if(r=e.match(DN)){const n=r.slice(1,5);for(let o=0;o<4;o++)n[o]=+vn(n[o],0,255);return n}if((r=e.match(MN))||(r=e.match(NN))){const n=r.slice(1,4);n[0]=+Po(n[0].replace("deg",""),0),n[1]=+vn(Po(n[1],0),0,100)*.01,n[2]=+vn(Po(n[2],0),0,100)*.01;const o=Nh(T6(n)),a=r[4]!==void 0?+vn(r[4],0,1):1;return o[3]=a,o}if(r=e.match(PN)){const n=r.slice(1,4);n[1]*=.01,n[2]*=.01;const o=T6(n);for(let a=0;a<3;a++)o[a]=FN(o[a]);return o[3]=+r[4],o}if(r=e.match(BN)){const n=r.slice(1,4);n[0]=vn(Po(n[0],0),0,100),n[1]=vn(Po(n[1],0),-125,125,!0),n[2]=vn(Po(n[2],0),-125,125,!0);const o=Fg();As("d50");const a=Nh(_6(n));As(o);const i=r[4]!==void 0?+vn(r[4],0,1):1;return a[3]=i,a}if(r=e.match(ON)){const n=r.slice(1,4);n[0]=vn(n[0],0,100),n[1]=vn(Po(n[1],0),0,150,!1),n[2]=+Po(n[2].replace("deg",""),0);const o=Fg();As("d50");const a=Nh(z6(n));As(o);const i=r[4]!==void 0?+vn(r[4],0,1):1;return a[3]=i,a}if(r=e.match(IN)){const n=r.slice(1,4);n[0]=vn(Po(n[0],0),0,1),n[1]=vn(Po(n[1],0),-.4,.4,!0),n[2]=vn(Po(n[2],0),-.4,.4,!0);const o=Nh(A6(n)),a=r[4]!==void 0?+vn(r[4],0,1):1;return o[3]=a,o}if(r=e.match(LN)){const n=r.slice(1,4);n[0]=vn(Po(n[0],0),0,1),n[1]=vn(Po(n[1],0),0,.4,!1),n[2]=+Po(n[2].replace("deg",""),0);const o=Nh(jN(n)),a=r[4]!==void 0?+vn(r[4],0,1):1;return o[3]=a,o}};L6.test=e=>TN.test(e)||MN.test(e)||BN.test(e)||ON.test(e)||IN.test(e)||LN.test(e)||AN.test(e)||DN.test(e)||NN.test(e)||PN.test(e)||e==="transparent",Ne.prototype.css=function(e){return P1e(this._rgb,e)};const B1e=(...e)=>new Ne(...e,"css");Rt.css=B1e,zt.format.css=L6,zt.autodetect.push({p:5,test:(e,...r)=>{if(!r.length&&Ft(e)==="string"&&L6.test(e))return"css"}}),zt.format.gl=(...e)=>{const r=Tt(e,"rgba");return r[0]*=255,r[1]*=255,r[2]*=255,r};const O1e=(...e)=>new Ne(...e,"gl");Rt.gl=O1e,Ne.prototype.gl=function(){const e=this._rgb;return[e[0]/255,e[1]/255,e[2]/255,e[3]]},Ne.prototype.hex=function(e){return aN(this._rgb,e)};const I1e=(...e)=>new Ne(...e,"hex");Rt.hex=I1e,zt.format.hex=oN,zt.autodetect.push({p:4,test:(e,...r)=>{if(!r.length&&Ft(e)==="string"&&[3,4,5,6,7,8,9].indexOf(e.length)>=0)return"hex"}});const{log:fb}=Math,VN=e=>{const r=e/100;let n,o,a;return r<66?(n=255,o=r<6?0:-155.25485562709179-.44596950469579133*(o=r-2)+104.49216199393888*fb(o),a=r<20?0:-254.76935184120902+.8274096064007395*(a=r-10)+115.67994401066147*fb(a)):(n=351.97690566805693+.114206453784165*(n=r-55)-40.25366309332127*fb(n),o=325.4494125711974+.07943456536662342*(o=r-50)-28.0852963507957*fb(o),a=255),[n,o,a,1]},{round:L1e}=Math,F1e=(...e)=>{const r=Tt(e,"rgb"),n=r[0],o=r[2];let a=1e3,i=4e4;const l=.4;let s;for(;i-a>l;){s=(i+a)*.5;const c=VN(s);c[2]/c[0]>=o/n?i=s:a=s}return L1e(s)};Ne.prototype.temp=Ne.prototype.kelvin=Ne.prototype.temperature=function(){return F1e(this._rgb)};const F6=(...e)=>new Ne(...e,"temp");Object.assign(Rt,{temp:F6,kelvin:F6,temperature:F6}),zt.format.temp=zt.format.kelvin=zt.format.temperature=VN,Ne.prototype.oklch=function(){return RN(this._rgb)},Object.assign(Rt,{oklch:(...e)=>new Ne(...e,"oklch")}),zt.format.oklch=jN,zt.autodetect.push({p:2,test:(...e)=>{if(e=Tt(e,"oklch"),Ft(e)==="array"&&e.length===3)return"oklch"}}),Object.assign(Rt,{analyze:gN,average:Uge,bezier:Kge,blend:Li,brewer:z1e,Color:Ne,colors:zh,contrast:y1e,contrastAPCA:x1e,cubehelix:c1e,deltaE:S1e,distance:E1e,input:zt,interpolate:Rh,limits:yN,mix:Rh,random:h1e,scale:cb,scales:$1e,valid:C1e});const V6=[.96,.907,.805,.697,.605,.547,.518,.445,.395,.34],qN=[.32,.16,.08,.04,0,0,.04,.08,.16,.32];function V1e(e){const r=e.get("hsl.l");return V6.reduce((n,o)=>Math.abs(o-r)i===n),a=V6.map(i=>r.set("hsl.l",i)).map(i=>Rt(i)).map((i,l)=>{const s=qN[l]-qN[o];return s>=0?i.saturate(s):i.desaturate(s*-1)});return a[o]=Rt(e),{baseColorIndex:o,colors:a}}function H1e(e){return q1e(e).colors.map(r=>r.hex())}const HN={fill:"#3b82f6",stroke:"#2563eb",hiContrast:"#eff6ff",loContrast:"#bfdbfe"},UN={fill:"#0284c7",stroke:"#0369a1",hiContrast:"#f0f9ff",loContrast:"#B6ECF7"},WN={fill:"#64748b",stroke:"#475569",hiContrast:"#f8fafc",loContrast:"#cbd5e1"},U1e={primary:HN,blue:HN,secondary:UN,sky:UN,muted:WN,slate:WN,gray:{fill:"#737373",stroke:"#525252",hiContrast:"#fafafa",loContrast:"#d4d4d4"},red:{fill:"#AC4D39",stroke:"#853A2D",hiContrast:"#FBD3CB",loContrast:"#f5b2a3"},green:{fill:"#428a4f",stroke:"#2d5d39",hiContrast:"#f8fafc",loContrast:"#c2f0c2"},amber:{fill:"#A35829",stroke:"#7E451D",hiContrast:"#FFE0C2",loContrast:"#f9b27c"},indigo:{fill:"#6366f1",stroke:"#4f46e5",hiContrast:"#eef2ff",loContrast:"#c7d2fe"}},W1e={line:"#8D8D8D",labelBg:"#18191B",label:"#C9C9C9"},GN={line:"#64748b",labelBg:"#0f172a",label:"#cbd5e1"},YN={line:"#3b82f6",labelBg:"#172554",label:"#60a5fa"},XN={line:"#0ea5e9",labelBg:"#082f49",label:"#38bdf8"},G1e={amber:{line:"#b45309",labelBg:"#78350f",label:"#FFE0C2"},blue:YN,gray:W1e,green:{line:"#15803d",labelBg:"#052e16",label:"#22c55e"},indigo:{line:"#6366f1",labelBg:"#1e1b4b",label:"#818cf8"},muted:GN,primary:YN,red:{line:"#AC4D39",labelBg:"#b91c1c",label:"#f5b2a3"},secondary:XN,sky:XN,slate:GN},ZN=60,KN=2,QN=1;function Y1e(e){He(Rt.valid(e),`Invalid color: ${e}`);const r=H1e(e),n=r[6],o=X1e(n);return{elements:{fill:n,stroke:r[7],hiContrast:o[0],loContrast:o[1]},relationships:{line:r[4],label:r[3],labelBg:r[9]}}}function X1e(e){const r=Rt(e);let n=r.brighten(KN),o=r.darken(KN),a,i,l,s;do a=n,i=o,n=n.brighten(QN),o=o.darken(QN),l=Rt.contrastAPCA(r,n),s=Rt.contrastAPCA(r,o);while(Math.abs(l)Math.abs(s)?[n.brighten(.4).hex(),n.hex()]:[o.darken(.4).hex(),o.hex()]}const Z1e={color:"primary",size:"md",opacity:15,shape:"rectangle",group:{opacity:15,border:"dashed"},relationship:{color:"gray",line:"dashed",arrow:"normal"}},K1e=["rectangle","person","browser","mobile","cylinder","storage","queue"],Q1e={colors:Vme(["amber","blue","gray","slate","green","indigo","muted","primary","red","secondary","sky"],e=>({elements:U1e[e],relationships:G1e[e]})),sizes:{xs:{width:180,height:100},sm:{width:240,height:135},md:{width:320,height:180},lg:{width:420,height:234},xl:{width:520,height:290}},spacing:{xs:8,sm:10,md:16,lg:24,xl:32},textSizes:{xs:13.33,sm:16,md:19.2,lg:23.04,xl:27.65}};function mb({size:e,padding:r,textSize:n,...o},a=q6.defaults.size){return e??=a,n??=e,r??=e,{...o,size:e,padding:r,textSize:n}}const q6={theme:Q1e,defaults:Z1e};let JN=class qM{constructor(r){this.config=r,this.theme=r.theme,this.defaults=r.defaults}theme;defaults;static DEFAULT=new qM(q6);static from(...r){return Il(r,1)?new qM(JM(...r,q6)):this.DEFAULT}get elementColors(){return this.theme.colors[this.defaults.color].elements}get relationshipColors(){return this.theme.colors[this.defaults.relationship.color].relationships}get groupColors(){const r=this.defaults.group?.color;return r?ir(this,"defaultGroup",()=>({...this.elementColors,...this.theme.colors[r].elements})):this.elementColors}isDefaultColor(r){return r===this.defaults.color}colors(r){if(r??=this.defaults.color,this.isThemeColor(r))return this.theme.colors[r];throw new Error(`Unknown color: ${r}`)}fontSize(r){return r??=this.defaults.text??this.defaults.size,this.theme.textSizes[r]}padding(r){return r??=this.defaults.padding??this.defaults.size,this.theme.spacing[r]}isThemeColor(r){return r in this.theme.colors}nodeSizes(r){const n=mb(r,this.defaults.size);return{sizes:n,values:{sizes:this.theme.sizes[n.size],padding:this.padding(n.padding),textSize:this.fontSize(n.textSize)}}}computeFrom(r){return this.isThemeColor(r)?this.theme.colors[r]:ir(this,`compute-${r}`,()=>{if(!Rt.valid(r))throw new Error(`Invalid color value: "${r}"`);return Y1e(r)})}equals(r){return r===this?!0:ab(this.config,r.config)}};function Vg(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Uc(e){return typeof e=="string"}const H6={done:!1,hasNext:!1};function Ns(e,...r){let n=e,o=r.map(i=>"lazy"in i?J1e(i):void 0),a=0;for(;a65;)++o;return+u.slice(p-1,o)}return f=c&&c.indexOf(u.charAt(p)),f>-1?f+76:(f=u.charCodeAt(p)||0,f<45||f>127?f:f<46?65:f<48?f-1:f<58?f+18:f<65?f-11:f<91?f+11:f<97?f-37:f<123?f+5:f-63)}if((r+="")!=(n+="")){for(;i;)if(a=d(r,l++),i=d(n,s++),a<76&&i<76&&a>66&&i>66&&(a=d(r,l,l),i=d(n,s,l=o),s=o),a!=i)return a{if(n===o)return 0;if(!n)return-1;if(!o)return 1;const a=n.split(e),i=o.split(e),l=Math.min(a.length,i.length);for(let c=0;c0?e.slice(0,r):null}function qg(e){const r=e.lastIndexOf(".");return r>0?e.slice(r+1):e}const Hg=e=>W6(e)?e:e.id;function Yn(e,r){const n=Hg(e);return r?Hg(r).startsWith(n+"."):o=>{const a=Hg(o);return n.startsWith(a+".")}}function oP(e,r){if(!r)return a=>oP(e,a);const n=Hg(e),o=Hg(r);return n===o||o.startsWith(n+".")||n.startsWith(o+".")}function aP(e,r){return n=>Yn(e,n)}function vb(e){return(W6(e)?e:e.id).split(".").length}function Ug(e,r){const n=e.split(".");if(n.length<2)return null;const o=r.split(".");if(o.length<2)return null;let a=[];for(let i=0;ia===0?(n.push(o),n):(n.unshift(`${n[0]}.${o}`),n),[])}function nye(e,r){let n=r;for(const o of e)Yn(o,n)&&(n=o);return n!==r?n:null}function Wc(e){const r=[],n=[...e];let o;for(;o=n.shift();){let a;for(;a=nye(n,o);)r.push(n.splice(n.indexOf(a),1)[0]);r.push(o)}return r}function iP(e,r){if(!e||W6(e)){const o=e??"asc";return a=>iP(a,o)}const n=r==="desc"?-1:1;return e.map(o=>({item:o,fqn:o.id.split(".")})).sort((o,a)=>{if(o.fqn.length!==a.fqn.length)return(o.fqn.length-a.fqn.length)*n;for(let i=0;io)}var bb={},lP;function oye(){return lP||(lP=1,bb.ARRAY_BUFFER_SUPPORT=typeof ArrayBuffer<"u",bb.SYMBOL_SUPPORT=typeof Symbol<"u"),bb}var G6,sP;function xb(){if(sP)return G6;sP=1;var e=oye(),r=e.ARRAY_BUFFER_SUPPORT,n=e.SYMBOL_SUPPORT;return G6=function(a,i){var l,s,c,d,u;if(!a)throw new Error("obliterator/forEach: invalid iterable.");if(typeof i!="function")throw new Error("obliterator/forEach: expecting a callback.");if(Array.isArray(a)||r&&ArrayBuffer.isView(a)||typeof a=="string"||a.toString()==="[object Arguments]"){for(c=0,d=a.length;c=n?{done:!0}:{done:!1,value:r[o++]}})},e.empty=function(){var r=new e(function(){return{done:!0}});return r},e.fromSequence=function(r){var n=0,o=r.length;return new e(function(){return n>=o?{done:!0}:{done:!1,value:r[n++]}})},e.is=function(r){return r instanceof e?!0:typeof r=="object"&&r!==null&&typeof r.next=="function"},Y6=e,Y6}const uP=-1,wb=0,Wg=1,kb=2,X6=3,Z6=4,K6=5,Q6=6,pP=7,hP=8,fP=typeof self=="object"?self:globalThis,aye=(e,r)=>{const n=(a,i)=>(e.set(i,a),a),o=a=>{if(e.has(a))return e.get(a);const[i,l]=r[a];switch(i){case wb:case uP:return n(l,a);case Wg:{const s=n([],a);for(const c of l)s.push(o(c));return s}case kb:{const s=n({},a);for(const[c,d]of l)s[o(c)]=o(d);return s}case X6:return n(new Date(l),a);case Z6:{const{source:s,flags:c}=l;return n(new RegExp(s,c),a)}case K6:{const s=n(new Map,a);for(const[c,d]of l)s.set(o(c),o(d));return s}case Q6:{const s=n(new Set,a);for(const c of l)s.add(o(c));return s}case pP:{const{name:s,message:c}=l;return n(new fP[s](c),a)}case hP:return n(BigInt(l),a);case"BigInt":return n(Object(BigInt(l)),a);case"ArrayBuffer":return n(new Uint8Array(l).buffer,l);case"DataView":{const{buffer:s}=new Uint8Array(l);return n(new DataView(s),l)}}return n(new fP[i](l),a)};return o},mP=e=>aye(new Map,e)(0),Ph="",{toString:iye}={},{keys:lye}=Object,Gg=e=>{const r=typeof e;if(r!=="object"||!e)return[wb,r];const n=iye.call(e).slice(8,-1);switch(n){case"Array":return[Wg,Ph];case"Object":return[kb,Ph];case"Date":return[X6,Ph];case"RegExp":return[Z6,Ph];case"Map":return[K6,Ph];case"Set":return[Q6,Ph];case"DataView":return[Wg,n]}return n.includes("Array")?[Wg,n]:n.includes("Error")?[pP,n]:[kb,n]},_b=([e,r])=>e===wb&&(r==="function"||r==="symbol"),sye=(e,r,n,o)=>{const a=(l,s)=>{const c=o.push(l)-1;return n.set(s,c),c},i=l=>{if(n.has(l))return n.get(l);let[s,c]=Gg(l);switch(s){case wb:{let u=l;switch(c){case"bigint":s=hP,u=l.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+c);u=null;break;case"undefined":return a([uP],l)}return a([s,u],l)}case Wg:{if(c){let f=l;return c==="DataView"?f=new Uint8Array(l.buffer):c==="ArrayBuffer"&&(f=new Uint8Array(l)),a([c,[...f]],l)}const u=[],p=a([s,u],l);for(const f of l)u.push(i(f));return p}case kb:{if(c)switch(c){case"BigInt":return a([c,l.toString()],l);case"Boolean":case"Number":case"String":return a([c,l.valueOf()],l)}if(r&&"toJSON"in l)return i(l.toJSON());const u=[],p=a([s,u],l);for(const f of lye(l))(e||!_b(Gg(l[f])))&&u.push([i(f),i(l[f])]);return p}case X6:return a([s,l.toISOString()],l);case Z6:{const{source:u,flags:p}=l;return a([s,{source:u,flags:p}],l)}case K6:{const u=[],p=a([s,u],l);for(const[f,g]of l)(e||!(_b(Gg(f))||_b(Gg(g))))&&u.push([i(f),i(g)]);return p}case Q6:{const u=[],p=a([s,u],l);for(const f of l)(e||!_b(Gg(f)))&&u.push(i(f));return p}}const{message:d}=l;return a([s,{name:c,message:d}],l)};return i},gP=(e,{json:r,lossy:n}={})=>{const o=[];return sye(!(r||n),!!r,new Map,o)(e),o},Yg=typeof structuredClone=="function"?(e,r)=>r&&("json"in r||"lossy"in r)?mP(gP(e,r)):structuredClone(e):(e,r)=>mP(gP(e,r)),yP=bP("end"),vP=bP("start");function bP(e){return r;function r(n){const o=n&&n.position&&n.position[e]||{};if(typeof o.line=="number"&&o.line>0&&typeof o.column=="number"&&o.column>0)return{line:o.line,column:o.column,offset:typeof o.offset=="number"&&o.offset>-1?o.offset:void 0}}}function xP(e){const r=vP(e),n=yP(e);if(r&&n)return{start:r,end:n}}const _u=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],J6={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[..._u,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[..._u],h2:[["className","sr-only"]],img:[..._u,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[..._u,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[..._u],table:[..._u],ul:[..._u,["className","contains-task-list"]],"*":["abbr","accept","acceptCharset","accessKey","action","align","alt","axis","border","cellPadding","cellSpacing","char","charOff","charSet","checked","clear","colSpan","color","cols","compact","coords","dateTime","dir","encType","frame","hSpace","headers","height","hrefLang","htmlFor","id","isMap","itemProp","label","lang","maxLength","media","method","multiple","name","noHref","noShade","noWrap","open","prompt","readOnly","rev","rowSpan","rows","rules","scope","selected","shape","size","span","start","summary","tabIndex","title","useMap","vAlign","value","width"]},clobber:["ariaDescribedBy","ariaLabelledBy","id","name"],clobberPrefix:"user-content-",protocols:{cite:["http","https"],href:["http","https","irc","ircs","mailto","xmpp"],longDesc:["http","https"],src:["http","https"]},required:{input:{disabled:!0,type:"checkbox"}},strip:["script"],tagNames:["a","b","blockquote","br","code","dd","del","details","div","dl","dt","em","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","li","ol","p","picture","pre","q","rp","rt","ruby","s","samp","section","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","tr","tt","ul","var"]},Gc={}.hasOwnProperty;function cye(e,r){let n={type:"root",children:[]};const o={schema:r?{...J6,...r}:J6,stack:[]},a=wP(o,e);return a&&(Array.isArray(a)?a.length===1?n=a[0]:n.children=a:n=a),n}function wP(e,r){if(r&&typeof r=="object"){const n=r;switch(typeof n.type=="string"?n.type:""){case"comment":return dye(e,n);case"doctype":return uye(e,n);case"element":return pye(e,n);case"root":return hye(e,n);case"text":return fye(e,n)}}}function dye(e,r){if(e.schema.allowComments){const n=typeof r.value=="string"?r.value:"",o=n.indexOf("-->"),i={type:"comment",value:o<0?n:n.slice(0,o)};return Xg(i,r),i}}function uye(e,r){if(e.schema.allowDoctypes){const n={type:"doctype"};return Xg(n,r),n}}function pye(e,r){const n=typeof r.tagName=="string"?r.tagName:"";e.stack.push(n);const o=kP(e,r.children),a=mye(e,r.properties);e.stack.pop();let i=!1;if(n&&n!=="*"&&(!e.schema.tagNames||e.schema.tagNames.includes(n))&&(i=!0,e.schema.ancestors&&Gc.call(e.schema.ancestors,n))){const s=e.schema.ancestors[n];let c=-1;for(i=!1;++c1){let a=!1,i=0;for(;++i-1&&i>c||l>-1&&i>l||s>-1&&i>s)return!0;let d=-1;for(;++d4&&r.slice(0,4).toLowerCase()==="data")return n}function vye(e){return function(r){return cye(r,e)}}const bye=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class Zg{constructor(r,n,o){this.normal=n,this.property=r,o&&(this.space=o)}}Zg.prototype.normal={},Zg.prototype.property={},Zg.prototype.space=void 0;function CP(e,r){const n={},o={};for(const a of e)Object.assign(n,a.property),Object.assign(o,a.normal);return new Zg(n,o,r)}function e_(e){return e.toLowerCase()}class Zo{constructor(r,n){this.attribute=n,this.property=r}}Zo.prototype.attribute="",Zo.prototype.booleanish=!1,Zo.prototype.boolean=!1,Zo.prototype.commaOrSpaceSeparated=!1,Zo.prototype.commaSeparated=!1,Zo.prototype.defined=!1,Zo.prototype.mustUseProperty=!1,Zo.prototype.number=!1,Zo.prototype.overloadedBoolean=!1,Zo.prototype.property="",Zo.prototype.spaceSeparated=!1,Zo.prototype.space=void 0;let xye=0;const At=Su(),bn=Su(),$P=Su(),Oe=Su(),Cr=Su(),Bh=Su(),ga=Su();function Su(){return 2**++xye}const t_={__proto__:null,boolean:At,booleanish:bn,commaOrSpaceSeparated:ga,commaSeparated:Bh,number:Oe,overloadedBoolean:$P,spaceSeparated:Cr},r_=Object.keys(t_);class n_ extends Zo{constructor(r,n,o,a){let i=-1;if(super(r,n),zP(this,"space",a),typeof o=="number")for(;++i4&&n.slice(0,4)==="data"&&Sye.test(r)){if(r.charAt(4)==="-"){const i=r.slice(5).replace(NP,$ye);o="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=r.slice(4);if(!NP.test(i)){let l=i.replace(_ye,Cye);l.charAt(0)!=="-"&&(l="-"+l),r="data"+l}}a=n_}return new a(o,r)}function Cye(e){return"-"+e.toLowerCase()}function $ye(e){return e.charAt(1).toUpperCase()}const zye=CP([RP,wye,AP,DP,MP],"html"),PP=CP([RP,kye,AP,DP,MP],"svg"),BP={}.hasOwnProperty;function Rye(e,r){const n=r||{};function o(a,...i){let l=o.invalid;const s=o.handlers;if(a&&BP.call(a,e)){const c=String(a[e]);l=BP.call(s,c)?s[c]:o.unknown}if(l)return l.call(this,a,...i)}return o.handlers=n.handlers||{},o.invalid=n.invalid,o.unknown=n.unknown,o}const jye=/["&'<>`]/g,Tye=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Aye=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,Dye=/[|\\{}()[\]^$+*?.]/g,OP=new WeakMap;function Mye(e,r){if(e=e.replace(r.subset?Nye(r.subset):jye,o),r.subset||r.escapeOnly)return e;return e.replace(Tye,n).replace(Aye,o);function n(a,i,l){return r.format((a.charCodeAt(0)-55296)*1024+a.charCodeAt(1)-56320+65536,l.charCodeAt(i+2),r)}function o(a,i,l){return r.format(a.charCodeAt(0),l.charCodeAt(i+1),r)}}function Nye(e){let r=OP.get(e);return r||(r=Pye(e),OP.set(e,r)),r}function Pye(e){const r=[];let n=-1;for(;++n",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},Vye=["cent","copy","divide","gt","lt","not","para","times"],IP={}.hasOwnProperty,a_={};let Sb;for(Sb in o_)IP.call(o_,Sb)&&(a_[o_[Sb]]=Sb);const qye=/[^\dA-Za-z]/;function Hye(e,r,n,o){const a=String.fromCharCode(e);if(IP.call(a_,a)){const i=a_[a],l="&"+i;return n&&Fye.includes(i)&&!Vye.includes(i)&&(!o||r&&r!==61&&qye.test(String.fromCharCode(r)))?l:l+";"}return""}function Uye(e,r,n){let o=Oye(e,r,n.omitOptionalSemicolons),a;if((n.useNamedReferences||n.useShortestReferences)&&(a=Hye(e,r,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!a)&&n.useShortestReferences){const i=Lye(e,r,n.omitOptionalSemicolons);i.length|^->||--!>|"],Yye=["<",">"];function Xye(e,r,n,o){return o.settings.bogusComments?"":"";function a(i){return Ih(i,Object.assign({},o.settings.characterReferences,{subset:Yye}))}}function Zye(e,r,n,o){return""}function Eb(e,r){const n=String(e);if(typeof r!="string")throw new TypeError("Expected character");let o=0,a=n.indexOf(r);for(;a!==-1;)o++,a=n.indexOf(r,a+r.length);return o}function Kye(e,r){const n=r||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}function Qye(e){return e.join(" ").trim()}const Jye=/[ \t\n\f\r]/g;function i_(e){return typeof e=="object"?e.type==="text"?LP(e.value):!1:LP(e)}function LP(e){return e.replace(Jye,"")===""}const In=VP(1),FP=VP(-1),e0e=[];function VP(e){return r;function r(n,o,a){const i=n?n.children:e0e;let l=(o||0)+e,s=i[l];if(!a)for(;s&&i_(s);)l+=e,s=i[l];return s}}const t0e={}.hasOwnProperty;function qP(e){return r;function r(n,o,a){return t0e.call(e,n.tagName)&&e[n.tagName](n,o,a)}}const l_=qP({body:n0e,caption:s_,colgroup:s_,dd:l0e,dt:i0e,head:s_,html:r0e,li:a0e,optgroup:s0e,option:c0e,p:o0e,rp:HP,rt:HP,tbody:u0e,td:UP,tfoot:p0e,th:UP,thead:d0e,tr:h0e});function s_(e,r,n){const o=In(n,r,!0);return!o||o.type!=="comment"&&!(o.type==="text"&&i_(o.value.charAt(0)))}function r0e(e,r,n){const o=In(n,r);return!o||o.type!=="comment"}function n0e(e,r,n){const o=In(n,r);return!o||o.type!=="comment"}function o0e(e,r,n){const o=In(n,r);return o?o.type==="element"&&(o.tagName==="address"||o.tagName==="article"||o.tagName==="aside"||o.tagName==="blockquote"||o.tagName==="details"||o.tagName==="div"||o.tagName==="dl"||o.tagName==="fieldset"||o.tagName==="figcaption"||o.tagName==="figure"||o.tagName==="footer"||o.tagName==="form"||o.tagName==="h1"||o.tagName==="h2"||o.tagName==="h3"||o.tagName==="h4"||o.tagName==="h5"||o.tagName==="h6"||o.tagName==="header"||o.tagName==="hgroup"||o.tagName==="hr"||o.tagName==="main"||o.tagName==="menu"||o.tagName==="nav"||o.tagName==="ol"||o.tagName==="p"||o.tagName==="pre"||o.tagName==="section"||o.tagName==="table"||o.tagName==="ul"):!n||!(n.type==="element"&&(n.tagName==="a"||n.tagName==="audio"||n.tagName==="del"||n.tagName==="ins"||n.tagName==="map"||n.tagName==="noscript"||n.tagName==="video"))}function a0e(e,r,n){const o=In(n,r);return!o||o.type==="element"&&o.tagName==="li"}function i0e(e,r,n){const o=In(n,r);return!!(o&&o.type==="element"&&(o.tagName==="dt"||o.tagName==="dd"))}function l0e(e,r,n){const o=In(n,r);return!o||o.type==="element"&&(o.tagName==="dt"||o.tagName==="dd")}function HP(e,r,n){const o=In(n,r);return!o||o.type==="element"&&(o.tagName==="rp"||o.tagName==="rt")}function s0e(e,r,n){const o=In(n,r);return!o||o.type==="element"&&o.tagName==="optgroup"}function c0e(e,r,n){const o=In(n,r);return!o||o.type==="element"&&(o.tagName==="option"||o.tagName==="optgroup")}function d0e(e,r,n){const o=In(n,r);return!!(o&&o.type==="element"&&(o.tagName==="tbody"||o.tagName==="tfoot"))}function u0e(e,r,n){const o=In(n,r);return!o||o.type==="element"&&(o.tagName==="tbody"||o.tagName==="tfoot")}function p0e(e,r,n){return!In(n,r)}function h0e(e,r,n){const o=In(n,r);return!o||o.type==="element"&&o.tagName==="tr"}function UP(e,r,n){const o=In(n,r);return!o||o.type==="element"&&(o.tagName==="td"||o.tagName==="th")}const f0e=qP({body:y0e,colgroup:v0e,head:g0e,html:m0e,tbody:b0e});function m0e(e){const r=In(e,-1);return!r||r.type!=="comment"}function g0e(e){const r=new Set;for(const o of e.children)if(o.type==="element"&&(o.tagName==="base"||o.tagName==="title")){if(r.has(o.tagName))return!1;r.add(o.tagName)}const n=e.children[0];return!n||n.type==="element"}function y0e(e){const r=In(e,-1,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&i_(r.value.charAt(0)))&&!(r.type==="element"&&(r.tagName==="meta"||r.tagName==="link"||r.tagName==="script"||r.tagName==="style"||r.tagName==="template"))}function v0e(e,r,n){const o=FP(n,r),a=In(e,-1,!0);return n&&o&&o.type==="element"&&o.tagName==="colgroup"&&l_(o,n.children.indexOf(o),n)?!1:!!(a&&a.type==="element"&&a.tagName==="col")}function b0e(e,r,n){const o=FP(n,r),a=In(e,-1);return n&&o&&o.type==="element"&&(o.tagName==="thead"||o.tagName==="tbody")&&l_(o,n.children.indexOf(o),n)?!1:!!(a&&a.type==="element"&&a.tagName==="tr")}const Cb={name:[[` \f\r &/=>`.split(""),` \f\r "&'/=>\``.split("")],[`\0 \f\r "&'/<=>`.split(""),`\0 @@ -16,147 +15,149 @@ function S1e(e,r){for(var n=0;n`.split(""),`\0 \f\r "&'<=>\``.split("")],[`\0 \f\r "&'<=>\``.split(""),`\0 -\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function P2e(e,r,n,o){const a=o.schema,i=a.space==="svg"?!1:o.settings.omitOptionalTags;let s=a.space==="svg"?o.settings.closeEmptyElements:o.settings.voids.includes(e.tagName.toLowerCase());const l=[];let c;a.space==="html"&&e.tagName==="svg"&&(o.schema=_1);const d=M2e(o,e.properties),u=o.all(a.space==="html"&&e.tagName==="template"?e.content:e);return o.schema=a,u&&(s=!1),(d||!i||!T2e(e,r,n))&&(l.push("<",e.tagName,d?" "+d:""),s&&(a.space==="svg"||o.settings.closeSelfClosing)&&(c=d.charAt(d.length-1),(!o.settings.tightSelfClosing||c==="/"||c&&c!=='"'&&c!=="'")&&l.push(" "),l.push("/")),l.push(">")),l.push(u),!s&&(!i||!_8(e,r,n))&&l.push(""),l.join("")}function M2e(e,r){const n=[];let o=-1,a;if(r){for(a in r)if(r[a]!==null&&r[a]!==void 0){const i=z2e(e,a,r[a]);i&&n.push(i)}}for(;++o_3(n,e.alternative)&&(s=e.alternative),l=s+gf(n,Object.assign({},e.settings.characterReferences,{subset:(s==="'"?E3.single:E3.double)[a][i],attribute:!0}))+s),c+(l&&"="+l))}const I2e=["<","&"];function iL(e,r,n,o){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:gf(e.value,Object.assign({},o.settings.characterReferences,{subset:I2e}))}function O2e(e,r,n,o){return o.settings.allowDangerousHtml?e.value:iL(e,r,n,o)}function j2e(e,r,n,o){return o.all(e)}const L2e=a8("type",{invalid:B2e,unknown:F2e,handlers:{comment:d2e,doctype:u2e,element:P2e,raw:O2e,root:j2e,text:iL}});function B2e(e){throw new Error("Expected node, not `"+e+"`")}function F2e(e){const r=e;throw new Error("Cannot compile unknown node `"+r.type+"`")}const H2e={},V2e={},q2e=[];function U2e(e,r){const n=r||H2e,o=n.quote||'"',a=o==='"'?"'":'"';if(o!=='"'&&o!=="'")throw new Error("Invalid quote `"+o+"`, expected `'` or `\"`");return{one:W2e,all:Y2e,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||GO,characterReferences:n.characterReferences||V2e,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?_1:l3,quote:o,alternative:a}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function W2e(e,r,n){return L2e(e,r,n,this)}function Y2e(e){const r=[],n=e&&e.children||q2e;let o=-1;for(;++o-1&&e.test(String.fromCharCode(n))}}function Q2e(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function J2e(e,r,n){const a=x3((n||{}).ignore||[]),i=ewe(r);let s=-1;for(;++s0?{type:"text",value:R}:void 0),R===!1?f.lastIndex=T+1:(b!==T&&C.push({type:"text",value:d.value.slice(b,T)}),Array.isArray(R)?C.push(...R):R&&C.push(R),b=T+_[0].length,k=!0),!f.global)break;_=f.exec(d.value)}return k?(b?\]}]+$/.exec(e);if(!r)return[e,void 0];e=e.slice(0,r.index);let n=r[0],o=n.indexOf(")");const a=_3(e,"(");let i=_3(e,")");for(;o!==-1&&a>i;)e+=n.slice(0,o+1),n=n.slice(o+1),o=n.indexOf(")"),i++;return[e,n]}function sL(e,r){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Wu(n)||C3(n))&&(!r||n!==47)}function ts(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}lL.peek=_we;function mwe(){this.buffer()}function gwe(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function ywe(){this.buffer()}function bwe(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function vwe(e){const r=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=ts(this.sliceSerialize(e)).toLowerCase(),n.label=r}function xwe(e){this.exit(e)}function wwe(e){const r=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=ts(this.sliceSerialize(e)).toLowerCase(),n.label=r}function kwe(e){this.exit(e)}function _we(){return"["}function lL(e,r,n,o){const a=n.createTracker(o);let i=a.move("[^");const s=n.enter("footnoteReference"),l=n.enter("reference");return i+=a.move(n.safe(n.associationId(e),{after:"]",before:i})),l(),s(),i+=a.move("]"),i}function Ewe(){return{enter:{gfmFootnoteCallString:mwe,gfmFootnoteCall:gwe,gfmFootnoteDefinitionLabelString:ywe,gfmFootnoteDefinition:bwe},exit:{gfmFootnoteCallString:vwe,gfmFootnoteCall:xwe,gfmFootnoteDefinitionLabelString:wwe,gfmFootnoteDefinition:kwe}}}function Swe(e){let r=!1;return e&&e.firstLineBlank&&(r=!0),{handlers:{footnoteDefinition:n,footnoteReference:lL},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(o,a,i,s){const l=i.createTracker(s);let c=l.move("[^");const d=i.enter("footnoteDefinition"),u=i.enter("label");return c+=l.move(i.safe(i.associationId(o),{before:c,after:"]"})),u(),c+=l.move("]:"),o.children&&o.children.length>0&&(l.shift(4),c+=l.move((r?` -`:" ")+i.indentLines(i.containerFlow(o,l.current()),r?cL:Cwe))),d(),c}}function Cwe(e,r,n){return r===0?e:cL(e,r,n)}function cL(e,r,n){return(n?"":" ")+e}const Twe=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];dL.peek=$we;function Awe(){return{canContainEols:["delete"],enter:{strikethrough:Nwe},exit:{strikethrough:Dwe}}}function Rwe(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Twe}],handlers:{delete:dL}}}function Nwe(e){this.enter({type:"delete",children:[]},e)}function Dwe(e){this.exit(e)}function dL(e,r,n,o){const a=n.createTracker(o),i=n.enter("strikethrough");let s=a.move("~~");return s+=n.containerPhrasing(e,{...a.current(),before:s,after:"~"}),s+=a.move("~~"),i(),s}function $we(){return"~"}function Pwe(e){return e.length}function Mwe(e,r){const n=r||{},o=(n.align||[]).concat(),a=n.stringLength||Pwe,i=[],s=[],l=[],c=[];let d=0,u=-1;for(;++ud&&(d=e[u].length);++kc[k])&&(c[k]=_)}x.push(C)}s[u]=x,l[u]=w}let h=-1;if(typeof o=="object"&&"length"in o)for(;++hc[h]&&(c[h]=C),g[h]=C),f[h]=_}s.splice(1,0,f),l.splice(1,0,g),u=-1;const b=[];for(;++u "),i.shift(2);const s=n.indentLines(n.containerFlow(e,i.current()),Owe);return a(),s}function Owe(e,r,n){return">"+(n?"":" ")+e}function jwe(e,r){return pL(e,r.inConstruct,!0)&&!pL(e,r.notInConstruct,!1)}function pL(e,r,n){if(typeof r=="string"&&(r=[r]),!r||r.length===0)return n;let o=-1;for(;++os&&(s=i):i=1,a=o+r.length,o=n.indexOf(r,a);return s}function Bwe(e,r){return!!(r.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function Fwe(e){const r=e.options.fence||"`";if(r!=="`"&&r!=="~")throw new Error("Cannot serialize code with `"+r+"` for `options.fence`, expected `` ` `` or `~`");return r}function Hwe(e,r,n,o){const a=Fwe(n),i=e.value||"",s=a==="`"?"GraveAccent":"Tilde";if(Bwe(e,n)){const h=n.enter("codeIndented"),f=n.indentLines(i,Vwe);return h(),f}const l=n.createTracker(o),c=a.repeat(Math.max(Lwe(i,a)+1,3)),d=n.enter("codeFenced");let u=l.move(c);if(e.lang){const h=n.enter(`codeFencedLang${s}`);u+=l.move(n.safe(e.lang,{before:u,after:" ",encode:["`"],...l.current()})),h()}if(e.lang&&e.meta){const h=n.enter(`codeFencedMeta${s}`);u+=l.move(" "),u+=l.move(n.safe(e.meta,{before:u,after:` -`,encode:["`"],...l.current()})),h()}return u+=l.move(` -`),i&&(u+=l.move(i+` -`)),u+=l.move(c),d(),u}function Vwe(e,r,n){return(n?"":" ")+e}function R8(e){const r=e.options.quote||'"';if(r!=='"'&&r!=="'")throw new Error("Cannot serialize title with `"+r+"` for `options.quote`, expected `\"`, or `'`");return r}function qwe(e,r,n,o){const a=R8(n),i=a==='"'?"Quote":"Apostrophe",s=n.enter("definition");let l=n.enter("label");const c=n.createTracker(o);let d=c.move("[");return d+=c.move(n.safe(n.associationId(e),{before:d,after:"]",...c.current()})),d+=c.move("]: "),l(),!e.url||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),d+=c.move("<"),d+=c.move(n.safe(e.url,{before:d,after:">",...c.current()})),d+=c.move(">")):(l=n.enter("destinationRaw"),d+=c.move(n.safe(e.url,{before:d,after:e.title?" ":` -`,...c.current()}))),l(),e.title&&(l=n.enter(`title${i}`),d+=c.move(" "+a),d+=c.move(n.safe(e.title,{before:d,after:a,...c.current()})),d+=c.move(a),l()),s(),d}function Uwe(e){const r=e.options.emphasis||"*";if(r!=="*"&&r!=="_")throw new Error("Cannot serialize emphasis with `"+r+"` for `options.emphasis`, expected `*`, or `_`");return r}function O1(e){return"&#x"+e.toString(16).toUpperCase()+";"}function yf(e){if(e===null||Mr(e)||Wu(e))return 1;if(C3(e))return 2}function T3(e,r,n){const o=yf(e),a=yf(r);return o===void 0?a===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:a===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:o===1?a===void 0?{inside:!1,outside:!1}:a===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:a===void 0?{inside:!1,outside:!1}:a===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}fL.peek=Wwe;function fL(e,r,n,o){const a=Uwe(n),i=n.enter("emphasis"),s=n.createTracker(o),l=s.move(a);let c=s.move(n.containerPhrasing(e,{after:a,before:l,...s.current()}));const d=c.charCodeAt(0),u=T3(o.before.charCodeAt(o.before.length-1),d,a);u.inside&&(c=O1(d)+c.slice(1));const h=c.charCodeAt(c.length-1),f=T3(o.after.charCodeAt(0),h,a);f.inside&&(c=c.slice(0,-1)+O1(h));const g=s.move(a);return i(),n.attentionEncodeSurroundingInfo={after:f.outside,before:u.outside},l+c+g}function Wwe(e,r,n){return n.options.emphasis||"*"}const Ywe={};function A3(e,r){const n=r||Ywe,o=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,a=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return mL(e,o,a)}function mL(e,r,n){if(Gwe(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(r&&"alt"in e&&e.alt)return e.alt;if("children"in e)return gL(e.children,r,n)}return Array.isArray(e)?gL(e,r,n):""}function gL(e,r,n){const o=[];let a=-1;for(;++a\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function x0e(e,r,n,o){const a=o.schema,i=a.space==="svg"?!1:o.settings.omitOptionalTags;let l=a.space==="svg"?o.settings.closeEmptyElements:o.settings.voids.includes(e.tagName.toLowerCase());const s=[];let c;a.space==="html"&&e.tagName==="svg"&&(o.schema=PP);const d=w0e(o,e.properties),u=o.all(a.space==="html"&&e.tagName==="template"?e.content:e);return o.schema=a,u&&(l=!1),(d||!i||!f0e(e,r,n))&&(s.push("<",e.tagName,d?" "+d:""),l&&(a.space==="svg"||o.settings.closeSelfClosing)&&(c=d.charAt(d.length-1),(!o.settings.tightSelfClosing||c==="/"||c&&c!=='"'&&c!=="'")&&s.push(" "),s.push("/")),s.push(">")),s.push(u),!l&&(!i||!l_(e,r,n))&&s.push(""),s.join("")}function w0e(e,r){const n=[];let o=-1,a;if(r){for(a in r)if(r[a]!==null&&r[a]!==void 0){const i=k0e(e,a,r[a]);i&&n.push(i)}}for(;++oEb(n,e.alternative)&&(l=e.alternative),s=l+Ih(n,Object.assign({},e.settings.characterReferences,{subset:(l==="'"?Cb.single:Cb.double)[a][i],attribute:!0}))+l),c+(s&&"="+s))}const _0e=["<","&"];function WP(e,r,n,o){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:Ih(e.value,Object.assign({},o.settings.characterReferences,{subset:_0e}))}function S0e(e,r,n,o){return o.settings.allowDangerousHtml?e.value:WP(e,r,n,o)}function E0e(e,r,n,o){return o.all(e)}const C0e=Rye("type",{invalid:$0e,unknown:z0e,handlers:{comment:Xye,doctype:Zye,element:x0e,raw:S0e,root:E0e,text:WP}});function $0e(e){throw new Error("Expected node, not `"+e+"`")}function z0e(e){const r=e;throw new Error("Cannot compile unknown node `"+r.type+"`")}const R0e={},j0e={},T0e=[];function A0e(e,r){const n=r||R0e,o=n.quote||'"',a=o==='"'?"'":'"';if(o!=='"'&&o!=="'")throw new Error("Invalid quote `"+o+"`, expected `'` or `\"`");return{one:D0e,all:M0e,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||bye,characterReferences:n.characterReferences||j0e,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?PP:zye,quote:o,alternative:a}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function D0e(e,r,n){return C0e(e,r,n,this)}function M0e(e){const r=[],n=e&&e.children||T0e;let o=-1;for(;++o-1&&e.test(String.fromCharCode(n))}}function I0e(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const Rb=(function(e){if(e==null)return q0e;if(typeof e=="function")return jb(e);if(typeof e=="object")return Array.isArray(e)?L0e(e):F0e(e);if(typeof e=="string")return V0e(e);throw new Error("Expected function, string, or object as test")});function L0e(e){const r=[];let n=-1;for(;++n":""))+")"})}return f;function f(){let g=GP,v,w,x;if((!r||i(c,d,u[u.length-1]||void 0))&&(g=G0e(n(c,u)),g[0]===d_))return g;if("children"in c&&c.children){const k=c;if(k.children&&g[0]!==W0e)for(w=(o?k.children.length:-1)+l,x=u.concat(k);w>-1&&w0?{type:"text",value:j}:void 0),j===!1?f.lastIndex=$+1:(v!==$&&C.push({type:"text",value:d.value.slice(v,$)}),Array.isArray(j)?C.push(...j):j&&C.push(j),v=$+_[0].length,k=!0),!f.global)break;_=f.exec(d.value)}return k?(v?\]}]+$/.exec(e);if(!r)return[e,void 0];e=e.slice(0,r.index);let n=r[0],o=n.indexOf(")");const a=Eb(e,"(");let i=Eb(e,")");for(;o!==-1&&a>i;)e+=n.slice(0,o+1),n=n.slice(o+1),o=n.indexOf(")"),i++;return[e,n]}function XP(e,r){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Eu(n)||zb(n))&&(!r||n!==47)}function Vi(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}ZP.peek=vve;function dve(){this.buffer()}function uve(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function pve(){this.buffer()}function hve(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function fve(e){const r=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Vi(this.sliceSerialize(e)).toLowerCase(),n.label=r}function mve(e){this.exit(e)}function gve(e){const r=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Vi(this.sliceSerialize(e)).toLowerCase(),n.label=r}function yve(e){this.exit(e)}function vve(){return"["}function ZP(e,r,n,o){const a=n.createTracker(o);let i=a.move("[^");const l=n.enter("footnoteReference"),s=n.enter("reference");return i+=a.move(n.safe(n.associationId(e),{after:"]",before:i})),s(),l(),i+=a.move("]"),i}function bve(){return{enter:{gfmFootnoteCallString:dve,gfmFootnoteCall:uve,gfmFootnoteDefinitionLabelString:pve,gfmFootnoteDefinition:hve},exit:{gfmFootnoteCallString:fve,gfmFootnoteCall:mve,gfmFootnoteDefinitionLabelString:gve,gfmFootnoteDefinition:yve}}}function xve(e){let r=!1;return e&&e.firstLineBlank&&(r=!0),{handlers:{footnoteDefinition:n,footnoteReference:ZP},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(o,a,i,l){const s=i.createTracker(l);let c=s.move("[^");const d=i.enter("footnoteDefinition"),u=i.enter("label");return c+=s.move(i.safe(i.associationId(o),{before:c,after:"]"})),u(),c+=s.move("]:"),o.children&&o.children.length>0&&(s.shift(4),c+=s.move((r?` +`:" ")+i.indentLines(i.containerFlow(o,s.current()),r?KP:wve))),d(),c}}function wve(e,r,n){return r===0?e:KP(e,r,n)}function KP(e,r,n){return(n?"":" ")+e}const kve=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];QP.peek=$ve;function _ve(){return{canContainEols:["delete"],enter:{strikethrough:Eve},exit:{strikethrough:Cve}}}function Sve(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:kve}],handlers:{delete:QP}}}function Eve(e){this.enter({type:"delete",children:[]},e)}function Cve(e){this.exit(e)}function QP(e,r,n,o){const a=n.createTracker(o),i=n.enter("strikethrough");let l=a.move("~~");return l+=n.containerPhrasing(e,{...a.current(),before:l,after:"~"}),l+=a.move("~~"),i(),l}function $ve(){return"~"}function zve(e){return e.length}function Rve(e,r){const n=r||{},o=(n.align||[]).concat(),a=n.stringLength||zve,i=[],l=[],s=[],c=[];let d=0,u=-1;for(;++ud&&(d=e[u].length);++kc[k])&&(c[k]=_)}w.push(C)}l[u]=w,s[u]=x}let p=-1;if(typeof o=="object"&&"length"in o)for(;++pc[p]&&(c[p]=C),g[p]=C),f[p]=_}l.splice(1,0,f),s.splice(1,0,g),u=-1;const v=[];for(;++u "),i.shift(2);const l=n.indentLines(n.containerFlow(e,i.current()),Ave);return a(),l}function Ave(e,r,n){return">"+(n?"":" ")+e}function Dve(e,r){return eB(e,r.inConstruct,!0)&&!eB(e,r.notInConstruct,!1)}function eB(e,r,n){if(typeof r=="string"&&(r=[r]),!r||r.length===0)return n;let o=-1;for(;++ol&&(l=i):i=1,a=o+r.length,o=n.indexOf(r,a);return l}function Nve(e,r){return!!(r.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function Pve(e){const r=e.options.fence||"`";if(r!=="`"&&r!=="~")throw new Error("Cannot serialize code with `"+r+"` for `options.fence`, expected `` ` `` or `~`");return r}function Bve(e,r,n,o){const a=Pve(n),i=e.value||"",l=a==="`"?"GraveAccent":"Tilde";if(Nve(e,n)){const p=n.enter("codeIndented"),f=n.indentLines(i,Ove);return p(),f}const s=n.createTracker(o),c=a.repeat(Math.max(Mve(i,a)+1,3)),d=n.enter("codeFenced");let u=s.move(c);if(e.lang){const p=n.enter(`codeFencedLang${l}`);u+=s.move(n.safe(e.lang,{before:u,after:" ",encode:["`"],...s.current()})),p()}if(e.lang&&e.meta){const p=n.enter(`codeFencedMeta${l}`);u+=s.move(" "),u+=s.move(n.safe(e.meta,{before:u,after:` +`,encode:["`"],...s.current()})),p()}return u+=s.move(` +`),i&&(u+=s.move(i+` +`)),u+=s.move(c),d(),u}function Ove(e,r,n){return(n?"":" ")+e}function f_(e){const r=e.options.quote||'"';if(r!=='"'&&r!=="'")throw new Error("Cannot serialize title with `"+r+"` for `options.quote`, expected `\"`, or `'`");return r}function Ive(e,r,n,o){const a=f_(n),i=a==='"'?"Quote":"Apostrophe",l=n.enter("definition");let s=n.enter("label");const c=n.createTracker(o);let d=c.move("[");return d+=c.move(n.safe(n.associationId(e),{before:d,after:"]",...c.current()})),d+=c.move("]: "),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),d+=c.move("<"),d+=c.move(n.safe(e.url,{before:d,after:">",...c.current()})),d+=c.move(">")):(s=n.enter("destinationRaw"),d+=c.move(n.safe(e.url,{before:d,after:e.title?" ":` +`,...c.current()}))),s(),e.title&&(s=n.enter(`title${i}`),d+=c.move(" "+a),d+=c.move(n.safe(e.title,{before:d,after:a,...c.current()})),d+=c.move(a),s()),l(),d}function Lve(e){const r=e.options.emphasis||"*";if(r!=="*"&&r!=="_")throw new Error("Cannot serialize emphasis with `"+r+"` for `options.emphasis`, expected `*`, or `_`");return r}function Kg(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Lh(e){if(e===null||Sr(e)||Eu(e))return 1;if(zb(e))return 2}function Tb(e,r,n){const o=Lh(e),a=Lh(r);return o===void 0?a===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:a===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:o===1?a===void 0?{inside:!1,outside:!1}:a===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:a===void 0?{inside:!1,outside:!1}:a===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}rB.peek=Fve;function rB(e,r,n,o){const a=Lve(n),i=n.enter("emphasis"),l=n.createTracker(o),s=l.move(a);let c=l.move(n.containerPhrasing(e,{after:a,before:s,...l.current()}));const d=c.charCodeAt(0),u=Tb(o.before.charCodeAt(o.before.length-1),d,a);u.inside&&(c=Kg(d)+c.slice(1));const p=c.charCodeAt(c.length-1),f=Tb(o.after.charCodeAt(0),p,a);f.inside&&(c=c.slice(0,-1)+Kg(p));const g=l.move(a);return i(),n.attentionEncodeSurroundingInfo={after:f.outside,before:u.outside},s+c+g}function Fve(e,r,n){return n.options.emphasis||"*"}function m_(e,r,n,o){let a,i,l;typeof r=="function"&&typeof n!="function"?(i=void 0,l=r,a=n):(i=r,l=n,a=o),YP(e,i,s,a);function s(c,d){const u=d[d.length-1],p=u?u.children.indexOf(c):void 0;return l(c,p,u)}}const Vve={};function Ab(e,r){const n=r||Vve,o=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,a=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return nB(e,o,a)}function nB(e,r,n){if(qve(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(r&&"alt"in e&&e.alt)return e.alt;if("children"in e)return oB(e.children,r,n)}return Array.isArray(e)?oB(e,r,n):""}function oB(e,r,n){const o=[];let a=-1;for(;++a",...c.current()})),d+=c.move(">")):(l=n.enter("destinationRaw"),d+=c.move(n.safe(e.url,{before:d,after:e.title?" ":")",...c.current()}))),l(),e.title&&(l=n.enter(`title${i}`),d+=c.move(" "+a),d+=c.move(n.safe(e.title,{before:d,after:a,...c.current()})),d+=c.move(a),l()),d+=c.move(")"),s(),d}function Qwe(){return"!"}vL.peek=Jwe;function vL(e,r,n,o){const a=e.referenceType,i=n.enter("imageReference");let s=n.enter("label");const l=n.createTracker(o);let c=l.move("![");const d=n.safe(e.alt,{before:c,after:"]",...l.current()});c+=l.move(d+"]["),s();const u=n.stack;n.stack=[],s=n.enter("reference");const h=n.safe(n.associationId(e),{before:c,after:"]",...l.current()});return s(),n.stack=u,i(),a==="full"||!d||d!==h?c+=l.move(h+"]"):a==="shortcut"?c=c.slice(0,-1):c+=l.move("]"),c}function Jwe(){return"!"}xL.peek=e4e;function xL(e,r,n){let o=e.value||"",a="`",i=-1;for(;new RegExp("(^|[^`])"+a+"([^`]|$)").test(o);)a+="`";for(/[^ \r\n]/.test(o)&&(/^[ \r\n]/.test(o)&&/[ \r\n]$/.test(o)||/^`|`$/.test(o))&&(o=" "+o+" ");++i\u007F]/.test(e.url))}kL.peek=t4e;function kL(e,r,n,o){const a=R8(n),i=a==='"'?"Quote":"Apostrophe",s=n.createTracker(o);let l,c;if(wL(e,n)){const u=n.stack;n.stack=[],l=n.enter("autolink");let h=s.move("<");return h+=s.move(n.containerPhrasing(e,{before:h,after:">",...s.current()})),h+=s.move(">"),l(),n.stack=u,h}l=n.enter("link"),c=n.enter("label");let d=s.move("[");return d+=s.move(n.containerPhrasing(e,{before:d,after:"](",...s.current()})),d+=s.move("]("),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=n.enter("destinationLiteral"),d+=s.move("<"),d+=s.move(n.safe(e.url,{before:d,after:">",...s.current()})),d+=s.move(">")):(c=n.enter("destinationRaw"),d+=s.move(n.safe(e.url,{before:d,after:e.title?" ":")",...s.current()}))),c(),e.title&&(c=n.enter(`title${i}`),d+=s.move(" "+a),d+=s.move(n.safe(e.title,{before:d,after:a,...s.current()})),d+=s.move(a),c()),d+=s.move(")"),l(),d}function t4e(e,r,n){return wL(e,n)?"<":"["}_L.peek=r4e;function _L(e,r,n,o){const a=e.referenceType,i=n.enter("linkReference");let s=n.enter("label");const l=n.createTracker(o);let c=l.move("[");const d=n.containerPhrasing(e,{before:c,after:"]",...l.current()});c+=l.move(d+"]["),s();const u=n.stack;n.stack=[],s=n.enter("reference");const h=n.safe(n.associationId(e),{before:c,after:"]",...l.current()});return s(),n.stack=u,i(),a==="full"||!d||d!==h?c+=l.move(h+"]"):a==="shortcut"?c=c.slice(0,-1):c+=l.move("]"),c}function r4e(){return"["}function N8(e){const r=e.options.bullet||"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bullet`, expected `*`, `+`, or `-`");return r}function n4e(e){const r=N8(e),n=e.options.bulletOther;if(!n)return r==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===r)throw new Error("Expected `bullet` (`"+r+"`) and `bulletOther` (`"+n+"`) to be different");return n}function o4e(e){const r=e.options.bulletOrdered||".";if(r!=="."&&r!==")")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOrdered`, expected `.` or `)`");return r}function EL(e){const r=e.options.rule||"*";if(r!=="*"&&r!=="-"&&r!=="_")throw new Error("Cannot serialize rules with `"+r+"` for `options.rule`, expected `*`, `-`, or `_`");return r}function a4e(e,r,n,o){const a=n.enter("list"),i=n.bulletCurrent;let s=e.ordered?o4e(n):N8(n);const l=e.ordered?s==="."?")":".":n4e(n);let c=r&&n.bulletLastUsed?s===n.bulletLastUsed:!1;if(!e.ordered){const u=e.children?e.children[0]:void 0;if((s==="*"||s==="-")&&u&&(!u.children||!u.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(c=!0),EL(n)===s&&u){let h=-1;for(;++h-1?r.start:1)+(n.options.incrementListMarker===!1?0:r.children.indexOf(e))+i);let s=i.length+1;(a==="tab"||a==="mixed"&&(r&&r.type==="list"&&r.spread||e.spread))&&(s=Math.ceil(s/4)*4);const l=n.createTracker(o);l.move(i+" ".repeat(s-i.length)),l.shift(s);const c=n.enter("listItem"),d=n.indentLines(n.containerFlow(e,l.current()),u);return c(),d;function u(h,f,g){return f?(g?"":" ".repeat(s))+h:(g?i:i+" ".repeat(s-i.length))+h}}function l4e(e,r,n,o){const a=n.enter("paragraph"),i=n.enter("phrasing"),s=n.containerPhrasing(e,o);return i(),a(),s}const c4e=x3(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function d4e(e,r,n,o){return(e.children.some(function(s){return c4e(s)})?n.containerPhrasing:n.containerFlow).call(n,e,o)}function u4e(e){const r=e.options.strong||"*";if(r!=="*"&&r!=="_")throw new Error("Cannot serialize strong with `"+r+"` for `options.strong`, expected `*`, or `_`");return r}SL.peek=p4e;function SL(e,r,n,o){const a=u4e(n),i=n.enter("strong"),s=n.createTracker(o),l=s.move(a+a);let c=s.move(n.containerPhrasing(e,{after:a,before:l,...s.current()}));const d=c.charCodeAt(0),u=T3(o.before.charCodeAt(o.before.length-1),d,a);u.inside&&(c=O1(d)+c.slice(1));const h=c.charCodeAt(c.length-1),f=T3(o.after.charCodeAt(0),h,a);f.inside&&(c=c.slice(0,-1)+O1(h));const g=s.move(a+a);return i(),n.attentionEncodeSurroundingInfo={after:f.outside,before:u.outside},l+c+g}function p4e(e,r,n){return n.options.strong||"*"}function h4e(e,r,n,o){return n.safe(e.value,o)}function f4e(e){const r=e.options.ruleRepetition||3;if(r<3)throw new Error("Cannot serialize rules with repetition `"+r+"` for `options.ruleRepetition`, expected `3` or more");return r}function m4e(e,r,n){const o=(EL(n)+(n.options.ruleSpaces?" ":"")).repeat(f4e(n));return n.options.ruleSpaces?o.slice(0,-1):o}const CL={blockquote:Iwe,break:hL,code:Hwe,definition:qwe,emphasis:fL,hardBreak:hL,heading:Kwe,html:yL,image:bL,imageReference:vL,inlineCode:xL,link:kL,linkReference:_L,list:a4e,listItem:s4e,paragraph:l4e,root:d4e,strong:SL,text:h4e,thematicBreak:m4e},TL={AElig:"Æ",AMP:"&",Aacute:"Á",Abreve:"Ă",Acirc:"Â",Acy:"А",Afr:"𝔄",Agrave:"À",Alpha:"Α",Amacr:"Ā",And:"⩓",Aogon:"Ą",Aopf:"𝔸",ApplyFunction:"⁡",Aring:"Å",Ascr:"𝒜",Assign:"≔",Atilde:"Ã",Auml:"Ä",Backslash:"∖",Barv:"⫧",Barwed:"⌆",Bcy:"Б",Because:"∵",Bernoullis:"ℬ",Beta:"Β",Bfr:"𝔅",Bopf:"𝔹",Breve:"˘",Bscr:"ℬ",Bumpeq:"≎",CHcy:"Ч",COPY:"©",Cacute:"Ć",Cap:"⋒",CapitalDifferentialD:"ⅅ",Cayleys:"ℭ",Ccaron:"Č",Ccedil:"Ç",Ccirc:"Ĉ",Cconint:"∰",Cdot:"Ċ",Cedilla:"¸",CenterDot:"·",Cfr:"ℭ",Chi:"Χ",CircleDot:"⊙",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",Colon:"∷",Colone:"⩴",Congruent:"≡",Conint:"∯",ContourIntegral:"∮",Copf:"ℂ",Coproduct:"∐",CounterClockwiseContourIntegral:"∳",Cross:"⨯",Cscr:"𝒞",Cup:"⋓",CupCap:"≍",DD:"ⅅ",DDotrahd:"⤑",DJcy:"Ђ",DScy:"Ѕ",DZcy:"Џ",Dagger:"‡",Darr:"↡",Dashv:"⫤",Dcaron:"Ď",Dcy:"Д",Del:"∇",Delta:"Δ",Dfr:"𝔇",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",Diamond:"⋄",DifferentialD:"ⅆ",Dopf:"𝔻",Dot:"¨",DotDot:"⃜",DotEqual:"≐",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",Downarrow:"⇓",Dscr:"𝒟",Dstrok:"Đ",ENG:"Ŋ",ETH:"Ð",Eacute:"É",Ecaron:"Ě",Ecirc:"Ê",Ecy:"Э",Edot:"Ė",Efr:"𝔈",Egrave:"È",Element:"∈",Emacr:"Ē",EmptySmallSquare:"◻",EmptyVerySmallSquare:"▫",Eogon:"Ę",Eopf:"𝔼",Epsilon:"Ε",Equal:"⩵",EqualTilde:"≂",Equilibrium:"⇌",Escr:"ℰ",Esim:"⩳",Eta:"Η",Euml:"Ë",Exists:"∃",ExponentialE:"ⅇ",Fcy:"Ф",Ffr:"𝔉",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",Fopf:"𝔽",ForAll:"∀",Fouriertrf:"ℱ",Fscr:"ℱ",GJcy:"Ѓ",GT:">",Gamma:"Γ",Gammad:"Ϝ",Gbreve:"Ğ",Gcedil:"Ģ",Gcirc:"Ĝ",Gcy:"Г",Gdot:"Ġ",Gfr:"𝔊",Gg:"⋙",Gopf:"𝔾",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",Gt:"≫",HARDcy:"Ъ",Hacek:"ˇ",Hat:"^",Hcirc:"Ĥ",Hfr:"ℌ",HilbertSpace:"ℋ",Hopf:"ℍ",HorizontalLine:"─",Hscr:"ℋ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",IEcy:"Е",IJlig:"IJ",IOcy:"Ё",Iacute:"Í",Icirc:"Î",Icy:"И",Idot:"İ",Ifr:"ℑ",Igrave:"Ì",Im:"ℑ",Imacr:"Ī",ImaginaryI:"ⅈ",Implies:"⇒",Int:"∬",Integral:"∫",Intersection:"⋂",InvisibleComma:"⁣",InvisibleTimes:"⁢",Iogon:"Į",Iopf:"𝕀",Iota:"Ι",Iscr:"ℐ",Itilde:"Ĩ",Iukcy:"І",Iuml:"Ï",Jcirc:"Ĵ",Jcy:"Й",Jfr:"𝔍",Jopf:"𝕁",Jscr:"𝒥",Jsercy:"Ј",Jukcy:"Є",KHcy:"Х",KJcy:"Ќ",Kappa:"Κ",Kcedil:"Ķ",Kcy:"К",Kfr:"𝔎",Kopf:"𝕂",Kscr:"𝒦",LJcy:"Љ",LT:"<",Lacute:"Ĺ",Lambda:"Λ",Lang:"⟪",Laplacetrf:"ℒ",Larr:"↞",Lcaron:"Ľ",Lcedil:"Ļ",Lcy:"Л",LeftAngleBracket:"⟨",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",LeftRightArrow:"↔",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",Leftarrow:"⇐",Leftrightarrow:"⇔",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",LessLess:"⪡",LessSlantEqual:"⩽",LessTilde:"≲",Lfr:"𝔏",Ll:"⋘",Lleftarrow:"⇚",Lmidot:"Ŀ",LongLeftArrow:"⟵",LongLeftRightArrow:"⟷",LongRightArrow:"⟶",Longleftarrow:"⟸",Longleftrightarrow:"⟺",Longrightarrow:"⟹",Lopf:"𝕃",LowerLeftArrow:"↙",LowerRightArrow:"↘",Lscr:"ℒ",Lsh:"↰",Lstrok:"Ł",Lt:"≪",Map:"⤅",Mcy:"М",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",MinusPlus:"∓",Mopf:"𝕄",Mscr:"ℳ",Mu:"Μ",NJcy:"Њ",Nacute:"Ń",Ncaron:"Ň",Ncedil:"Ņ",Ncy:"Н",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:` -`,Nfr:"𝔑",NoBreak:"⁠",NonBreakingSpace:" ",Nopf:"ℕ",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",Nscr:"𝒩",Ntilde:"Ñ",Nu:"Ν",OElig:"Œ",Oacute:"Ó",Ocirc:"Ô",Ocy:"О",Odblac:"Ő",Ofr:"𝔒",Ograve:"Ò",Omacr:"Ō",Omega:"Ω",Omicron:"Ο",Oopf:"𝕆",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",Or:"⩔",Oscr:"𝒪",Oslash:"Ø",Otilde:"Õ",Otimes:"⨷",Ouml:"Ö",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",PartialD:"∂",Pcy:"П",Pfr:"𝔓",Phi:"Φ",Pi:"Π",PlusMinus:"±",Poincareplane:"ℌ",Popf:"ℙ",Pr:"⪻",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",Prime:"″",Product:"∏",Proportion:"∷",Proportional:"∝",Pscr:"𝒫",Psi:"Ψ",QUOT:'"',Qfr:"𝔔",Qopf:"ℚ",Qscr:"𝒬",RBarr:"⤐",REG:"®",Racute:"Ŕ",Rang:"⟫",Rarr:"↠",Rarrtl:"⤖",Rcaron:"Ř",Rcedil:"Ŗ",Rcy:"Р",Re:"ℜ",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",Rfr:"ℜ",Rho:"Ρ",RightAngleBracket:"⟩",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",Rightarrow:"⇒",Ropf:"ℝ",RoundImplies:"⥰",Rrightarrow:"⇛",Rscr:"ℛ",Rsh:"↱",RuleDelayed:"⧴",SHCHcy:"Щ",SHcy:"Ш",SOFTcy:"Ь",Sacute:"Ś",Sc:"⪼",Scaron:"Š",Scedil:"Ş",Scirc:"Ŝ",Scy:"С",Sfr:"𝔖",ShortDownArrow:"↓",ShortLeftArrow:"←",ShortRightArrow:"→",ShortUpArrow:"↑",Sigma:"Σ",SmallCircle:"∘",Sopf:"𝕊",Sqrt:"√",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",Sscr:"𝒮",Star:"⋆",Sub:"⋐",Subset:"⋐",SubsetEqual:"⊆",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",SuchThat:"∋",Sum:"∑",Sup:"⋑",Superset:"⊃",SupersetEqual:"⊇",Supset:"⋑",THORN:"Þ",TRADE:"™",TSHcy:"Ћ",TScy:"Ц",Tab:" ",Tau:"Τ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т",Tfr:"𝔗",Therefore:"∴",Theta:"Θ",ThickSpace:"  ",ThinSpace:" ",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",Topf:"𝕋",TripleDot:"⃛",Tscr:"𝒯",Tstrok:"Ŧ",Uacute:"Ú",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucirc:"Û",Ucy:"У",Udblac:"Ű",Ufr:"𝔘",Ugrave:"Ù",Umacr:"Ū",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",Uopf:"𝕌",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",UpEquilibrium:"⥮",UpTee:"⊥",UpTeeArrow:"↥",Uparrow:"⇑",Updownarrow:"⇕",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",Upsilon:"Υ",Uring:"Ů",Uscr:"𝒰",Utilde:"Ũ",Uuml:"Ü",VDash:"⊫",Vbar:"⫫",Vcy:"В",Vdash:"⊩",Vdashl:"⫦",Vee:"⋁",Verbar:"‖",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",Vopf:"𝕍",Vscr:"𝒱",Vvdash:"⊪",Wcirc:"Ŵ",Wedge:"⋀",Wfr:"𝔚",Wopf:"𝕎",Wscr:"𝒲",Xfr:"𝔛",Xi:"Ξ",Xopf:"𝕏",Xscr:"𝒳",YAcy:"Я",YIcy:"Ї",YUcy:"Ю",Yacute:"Ý",Ycirc:"Ŷ",Ycy:"Ы",Yfr:"𝔜",Yopf:"𝕐",Yscr:"𝒴",Yuml:"Ÿ",ZHcy:"Ж",Zacute:"Ź",Zcaron:"Ž",Zcy:"З",Zdot:"Ż",ZeroWidthSpace:"​",Zeta:"Ζ",Zfr:"ℨ",Zopf:"ℤ",Zscr:"𝒵",aacute:"á",abreve:"ă",ac:"∾",acE:"∾̳",acd:"∿",acirc:"â",acute:"´",acy:"а",aelig:"æ",af:"⁡",afr:"𝔞",agrave:"à",alefsym:"ℵ",aleph:"ℵ",alpha:"α",amacr:"ā",amalg:"⨿",amp:"&",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",aogon:"ą",aopf:"𝕒",ap:"≈",apE:"⩰",apacir:"⩯",ape:"≊",apid:"≋",apos:"'",approx:"≈",approxeq:"≊",aring:"å",ascr:"𝒶",ast:"*",asymp:"≈",asympeq:"≍",atilde:"ã",auml:"ä",awconint:"∳",awint:"⨑",bNot:"⫭",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",barvee:"⊽",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",beta:"β",beth:"ℶ",between:"≬",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxDL:"╗",boxDR:"╔",boxDl:"╖",boxDr:"╓",boxH:"═",boxHD:"╦",boxHU:"╩",boxHd:"╤",boxHu:"╧",boxUL:"╝",boxUR:"╚",boxUl:"╜",boxUr:"╙",boxV:"║",boxVH:"╬",boxVL:"╣",boxVR:"╠",boxVh:"╫",boxVl:"╢",boxVr:"╟",boxbox:"⧉",boxdL:"╕",boxdR:"╒",boxdl:"┐",boxdr:"┌",boxh:"─",boxhD:"╥",boxhU:"╨",boxhd:"┬",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxuL:"╛",boxuR:"╘",boxul:"┘",boxur:"└",boxv:"│",boxvH:"╪",boxvL:"╡",boxvR:"╞",boxvh:"┼",boxvl:"┤",boxvr:"├",bprime:"‵",breve:"˘",brvbar:"¦",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",bumpeq:"≏",cacute:"ć",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",caps:"∩︀",caret:"⁁",caron:"ˇ",ccaps:"⩍",ccaron:"č",ccedil:"ç",ccirc:"ĉ",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",cedil:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",cfr:"𝔠",chcy:"ч",check:"✓",checkmark:"✓",chi:"χ",cir:"○",cirE:"⧃",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledR:"®",circledS:"Ⓢ",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",clubs:"♣",clubsuit:"♣",colon:":",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",conint:"∮",copf:"𝕔",coprod:"∐",copy:"©",copysr:"℗",crarr:"↵",cross:"✗",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",cupbrcap:"⩈",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dArr:"⇓",dHar:"⥥",dagger:"†",daleth:"ℸ",darr:"↓",dash:"‐",dashv:"⊣",dbkarow:"⤏",dblac:"˝",dcaron:"ď",dcy:"д",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",ddotseq:"⩷",deg:"°",delta:"δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",dharl:"⇃",dharr:"⇂",diam:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",dot:"˙",doteq:"≐",doteqdot:"≑",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",downarrow:"↓",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"𝒹",dscy:"ѕ",dsol:"⧶",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",dzigrarr:"⟿",eDDot:"⩷",eDot:"≑",eacute:"é",easter:"⩮",ecaron:"ě",ecir:"≖",ecirc:"ê",ecolon:"≕",ecy:"э",edot:"ė",ee:"ⅇ",efDot:"≒",efr:"𝔢",eg:"⪚",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",empty:"∅",emptyset:"∅",emptyv:"∅",emsp13:" ",emsp14:" ",emsp:" ",eng:"ŋ",ensp:" ",eogon:"ę",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",equals:"=",equest:"≟",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erDot:"≓",erarr:"⥱",escr:"ℯ",esdot:"≐",esim:"≂",eta:"η",eth:"ð",euml:"ë",euro:"€",excl:"!",exist:"∃",expectation:"ℰ",exponentiale:"ⅇ",fallingdotseq:"≒",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",filig:"fi",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",forall:"∀",fork:"⋔",forkv:"⫙",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",gE:"≧",gEl:"⪌",gacute:"ǵ",gamma:"γ",gammad:"ϝ",gap:"⪆",gbreve:"ğ",gcirc:"ĝ",gcy:"г",gdot:"ġ",ge:"≥",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",gg:"≫",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",gl:"≷",glE:"⪒",gla:"⪥",glj:"⪤",gnE:"≩",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"𝕘",grave:"`",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",hArr:"⇔",hairsp:" ",half:"½",hamilt:"ℋ",hardcy:"ъ",harr:"↔",harrcir:"⥈",harrw:"↭",hbar:"ℏ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",horbar:"―",hscr:"𝒽",hslash:"ℏ",hstrok:"ħ",hybull:"⁃",hyphen:"‐",iacute:"í",ic:"⁣",icirc:"î",icy:"и",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",imacr:"ī",image:"ℑ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",intcal:"⊺",integers:"ℤ",intercal:"⊺",intlarhk:"⨗",intprod:"⨼",iocy:"ё",iogon:"į",iopf:"𝕚",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",isin:"∈",isinE:"⋹",isindot:"⋵",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",itilde:"ĩ",iukcy:"і",iuml:"ï",jcirc:"ĵ",jcy:"й",jfr:"𝔧",jmath:"ȷ",jopf:"𝕛",jscr:"𝒿",jsercy:"ј",jukcy:"є",kappa:"κ",kappav:"ϰ",kcedil:"ķ",kcy:"к",kfr:"𝔨",kgreen:"ĸ",khcy:"х",kjcy:"ќ",kopf:"𝕜",kscr:"𝓀",lAarr:"⇚",lArr:"⇐",lAtail:"⤛",lBarr:"⤎",lE:"≦",lEg:"⪋",lHar:"⥢",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",laquo:"«",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",late:"⪭",lates:"⪭︀",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",lcedil:"ļ",lceil:"⌈",lcub:"{",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",leftarrow:"←",leftarrowtail:"↢",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",leftthreetimes:"⋋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",lessgtr:"≶",lesssim:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"𝔩",lg:"≶",lgE:"⪑",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",ll:"≪",llarr:"⇇",llcorner:"⌞",llhard:"⥫",lltri:"◺",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnE:"≨",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",longleftrightarrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltrPar:"⦖",ltri:"◃",ltrie:"⊴",ltrif:"◂",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",mDDot:"∺",macr:"¯",male:"♂",malt:"✠",maltese:"✠",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",mdash:"—",measuredangle:"∡",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"𝕞",mp:"∓",mscr:"𝓂",mstpos:"∾",mu:"μ",multimap:"⊸",mumap:"⊸",nGg:"⋙̸",nGt:"≫⃒",nGtv:"≫̸",nLeftarrow:"⇍",nLeftrightarrow:"⇎",nLl:"⋘̸",nLt:"≪⃒",nLtv:"≪̸",nRightarrow:"⇏",nVDash:"⊯",nVdash:"⊮",nabla:"∇",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",ndash:"–",ne:"≠",neArr:"⇗",nearhk:"⤤",nearr:"↗",nearrow:"↗",nedot:"≐̸",nequiv:"≢",nesear:"⤨",nesim:"≂̸",nexist:"∄",nexists:"∄",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",ngsim:"≵",ngt:"≯",ngtr:"≯",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",nlArr:"⇍",nlE:"≦̸",nlarr:"↚",nldr:"‥",nle:"≰",nleftarrow:"↚",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nlsim:"≴",nlt:"≮",nltri:"⋪",nltrie:"⋬",nmid:"∤",nopf:"𝕟",not:"¬",notin:"∉",notinE:"⋹̸",notindot:"⋵̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",num:"#",numero:"№",numsp:" ",nvDash:"⊭",nvHarr:"⤄",nvap:"≍⃒",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwArr:"⇖",nwarhk:"⤣",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",oS:"Ⓢ",oacute:"ó",oast:"⊛",ocir:"⊚",ocirc:"ô",ocy:"о",odash:"⊝",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",ofcir:"⦿",ofr:"𝔬",ogon:"˛",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",omega:"ω",omicron:"ο",omid:"⦶",ominus:"⊖",oopf:"𝕠",opar:"⦷",operp:"⦹",oplus:"⊕",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oscr:"ℴ",oslash:"ø",osol:"⊘",otilde:"õ",otimes:"⊗",otimesas:"⨶",ouml:"ö",ovbar:"⌽",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"𝔭",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",pointint:"⨕",popf:"𝕡",pound:"£",pr:"≺",prE:"⪳",prap:"⪷",prcue:"≼",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",primes:"ℙ",prnE:"⪵",prnap:"⪹",prnsim:"⋨",prod:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"𝓅",psi:"ψ",puncsp:" ",qfr:"𝔮",qint:"⨌",qopf:"𝕢",qprime:"⁗",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',rAarr:"⇛",rArr:"⇒",rAtail:"⤜",rBarr:"⤏",rHar:"⥤",race:"∽̱",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",rarrw:"↝",ratail:"⤚",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",rcedil:"ŗ",rceil:"⌉",rcub:"}",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",reg:"®",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",rhov:"ϱ",rightarrow:"→",rightarrowtail:"↣",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",rightthreetimes:"⋌",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",rsaquo:"›",rscr:"𝓇",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",ruluhar:"⥨",rx:"℞",sacute:"ś",sbquo:"‚",sc:"≻",scE:"⪴",scap:"⪸",scaron:"š",sccue:"≽",sce:"⪰",scedil:"ş",scirc:"ŝ",scnE:"⪶",scnap:"⪺",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",seArr:"⇘",searhk:"⤥",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"𝔰",sfrown:"⌢",sharp:"♯",shchcy:"щ",shcy:"ш",shortmid:"∣",shortparallel:"∥",shy:"­",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",squarf:"▪",squf:"▪",srarr:"→",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",subE:"⫅",subdot:"⪽",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",supE:"⫆",supdot:"⪾",supdsub:"⫘",supe:"⊇",supedot:"⫄",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swArr:"⇙",swarhk:"⤦",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",target:"⌖",tau:"τ",tbrk:"⎴",tcaron:"ť",tcedil:"ţ",tcy:"т",tdot:"⃛",telrec:"⌕",tfr:"𝔱",there4:"∴",therefore:"∴",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",thinsp:" ",thkap:"≈",thksim:"∼",thorn:"þ",tilde:"˜",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",tscy:"ц",tshcy:"ћ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uArr:"⇑",uHar:"⥣",uacute:"ú",uarr:"↑",ubrcy:"ў",ubreve:"ŭ",ucirc:"û",ucy:"у",udarr:"⇅",udblac:"ű",udhar:"⥮",ufisht:"⥾",ufr:"𝔲",ugrave:"ù",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",uml:"¨",uogon:"ų",uopf:"𝕦",uparrow:"↑",updownarrow:"↕",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",upsi:"υ",upsih:"ϒ",upsilon:"υ",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",urtri:"◹",uscr:"𝓊",utdot:"⋰",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uuml:"ü",uwangle:"⦧",vArr:"⇕",vBar:"⫨",vBarv:"⫩",vDash:"⊨",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vcy:"в",vdash:"⊢",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",vert:"|",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"𝕧",vprop:"∝",vrtri:"⊳",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",vzigzag:"⦚",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",wedgeq:"≙",weierp:"℘",wfr:"𝔴",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacute:"ý",yacy:"я",ycirc:"ŷ",ycy:"ы",yen:"¥",yfr:"𝔶",yicy:"ї",yopf:"𝕪",yscr:"𝓎",yucy:"ю",yuml:"ÿ",zacute:"ź",zcaron:"ž",zcy:"з",zdot:"ż",zeetrf:"ℨ",zeta:"ζ",zfr:"𝔷",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",zscr:"𝓏",zwj:"‍",zwnj:"‌"},g4e={}.hasOwnProperty;function D8(e){return g4e.call(TL,e)?TL[e]:!1}function AL(e,r){const n=Number.parseInt(e,r);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}const y4e=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function b4e(e){return e.replace(y4e,v4e)}function v4e(e,r,n){if(r)return r;if(n.charCodeAt(0)===35){const a=n.charCodeAt(1),i=a===120||a===88;return AL(n.slice(i?2:1),i?16:10)}return D8(n)||e}function x4e(){return{enter:{table:w4e,tableData:RL,tableHeader:RL,tableRow:_4e},exit:{codeText:E4e,table:k4e,tableData:$8,tableHeader:$8,tableRow:$8}}}function w4e(e){const r=e._align;this.enter({type:"table",align:r.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function k4e(e){this.exit(e),this.data.inTable=void 0}function _4e(e){this.enter({type:"tableRow",children:[]},e)}function $8(e){this.exit(e)}function RL(e){this.enter({type:"tableCell",children:[]},e)}function E4e(e){let r=this.resume();this.data.inTable&&(r=r.replace(/\\([\\|])/g,S4e));const n=this.stack[this.stack.length-1];n.type,n.value=r,this.exit(e)}function S4e(e,r){return r==="|"?r:e}function C4e(e){const r=e||{},n=r.tableCellPadding,o=r.tablePipeAlign,a=r.stringLength,i=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:` -`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:f,table:s,tableCell:c,tableRow:l}};function s(g,b,x,w){return d(u(g,x,w),g.align)}function l(g,b,x,w){const k=h(g,x,w),C=d([k]);return C.slice(0,C.indexOf(` -`))}function c(g,b,x,w){const k=x.enter("tableCell"),C=x.enter("phrasing"),_=x.containerPhrasing(g,{...w,before:i,after:i});return C(),k(),_}function d(g,b){return Mwe(g,{align:b,alignDelimiters:o,padding:n,stringLength:a})}function u(g,b,x){const w=g.children;let k=-1;const C=[],_=b.enter("table");for(;++ka?0:a+r:r=r>a?a:r,n=n>0?n:0,o.length<1e4)s=Array.from(o),s.unshift(r,n),e.splice(...s);else for(n&&e.splice(r,n);i0?(Da(e,e.length,0,r),e):r}const DL={}.hasOwnProperty;function $L(e){const r={};let n=-1;for(;++n0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}function bf(e){const r=[];let n=-1,o=0,a=0;for(;++n55295&&i<57344){const l=e.charCodeAt(n+1);i<56320&&l>56319&&l<57344?(s=String.fromCharCode(i,l),a=1):s="�"}else s=String.fromCharCode(i);s&&(r.push(e.slice(o,n),encodeURIComponent(s)),o=n+a+1,s=""),a&&(n+=a,a=0)}return r.join("")+e.slice(o)}function R3(e,r,n){const o=[];let a=-1;for(;++a1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const h={...e[o][1].end},f={...e[n][1].start};FL(h,-c),FL(f,c),s={type:c>1?"strongSequence":"emphasisSequence",start:h,end:{...e[o][1].end}},l={type:c>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:f},i={type:c>1?"strongText":"emphasisText",start:{...e[o][1].end},end:{...e[n][1].start}},a={type:c>1?"strong":"emphasis",start:{...s.start},end:{...l.end}},e[o][1].end={...s.start},e[n][1].start={...l.end},d=[],e[o][1].end.offset-e[o][1].start.offset&&(d=ui(d,[["enter",e[o][1],r],["exit",e[o][1],r]])),d=ui(d,[["enter",a,r],["enter",s,r],["exit",s,r],["enter",i,r]]),d=ui(d,R3(r.parser.constructs.insideSpan.null,e.slice(o+1,n),r)),d=ui(d,[["exit",i,r],["enter",l,r],["exit",l,r],["exit",a,r]]),e[n][1].end.offset-e[n][1].start.offset?(u=2,d=ui(d,[["enter",e[n][1],r],["exit",e[n][1],r]])):u=0,Da(e,o-1,n-o+3,d),n=o+d.length-u-2;break}}for(n=-1;++n0&&Jt(R)?lr(e,C,"linePrefix",i+1)(R):C(R)}function C(R){return R===null||Et(R)?e.check(UL,x,T)(R):(e.enter("codeFlowValue"),_(R))}function _(R){return R===null||Et(R)?(e.exit("codeFlowValue"),C(R)):(e.consume(R),_)}function T(R){return e.exit("codeFenced"),r(R)}function A(R,D,N){let P=0;return O;function O(V){return R.enter("lineEnding"),R.consume(V),R.exit("lineEnding"),F}function F(V){return R.enter("codeFencedFence"),Jt(V)?lr(R,L,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(V):L(V)}function L(V){return V===l?(R.enter("codeFencedFenceSequence"),U(V)):N(V)}function U(V){return V===l?(P++,R.consume(V),U):P>=s?(R.exit("codeFencedFenceSequence"),Jt(V)?lr(R,M,"whitespace")(V):M(V)):N(V)}function M(V){return V===null||Et(V)?(R.exit("codeFencedFence"),D(V)):N(V)}}}function nke(e,r,n){const o=this;return a;function a(s){return s===null?n(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i)}function i(s){return o.parser.lazy[o.now().line]?n(s):r(s)}}const I8={name:"codeIndented",tokenize:ake},oke={partial:!0,tokenize:ike};function ake(e,r,n){const o=this;return a;function a(d){return e.enter("codeIndented"),lr(e,i,"linePrefix",5)(d)}function i(d){const u=o.events[o.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?s(d):n(d)}function s(d){return d===null?c(d):Et(d)?e.attempt(oke,s,c)(d):(e.enter("codeFlowValue"),l(d))}function l(d){return d===null||Et(d)?(e.exit("codeFlowValue"),s(d)):(e.consume(d),l)}function c(d){return e.exit("codeIndented"),r(d)}}function ike(e,r,n){const o=this;return a;function a(s){return o.parser.lazy[o.now().line]?n(s):Et(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a):lr(e,i,"linePrefix",5)(s)}function i(s){const l=o.events[o.events.length-1];return l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?r(s):Et(s)?a(s):n(s)}}const ske={name:"codeText",previous:cke,resolve:lke,tokenize:dke};function lke(e){let r=e.length-4,n=3,o,a;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[r][1].type==="lineEnding"||e[r][1].type==="space")){for(o=n;++o=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+r+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return rthis.left.length?this.right.slice(this.right.length-o+this.left.length,this.right.length-r+this.left.length).reverse():this.left.slice(r).concat(this.right.slice(this.right.length-o+this.left.length).reverse())}splice(r,n,o){const a=n||0;this.setCursor(Math.trunc(r));const i=this.right.splice(this.right.length-a,Number.POSITIVE_INFINITY);return o&&L1(this.left,o),i.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(r){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(r)}pushMany(r){this.setCursor(Number.POSITIVE_INFINITY),L1(this.left,r)}unshift(r){this.setCursor(0),this.right.push(r)}unshiftMany(r){this.setCursor(0),L1(this.right,r.reverse())}setCursor(r){if(!(r===this.left.length||r>this.left.length&&this.right.length===0||r<0&&this.left.length===0))if(r=4?r(s):e.interrupt(o.parser.constructs.flow,n,r)(s)}}function GL(e,r,n,o,a,i,s,l,c){const d=c||Number.POSITIVE_INFINITY;let u=0;return h;function h(k){return k===60?(e.enter(o),e.enter(a),e.enter(i),e.consume(k),e.exit(i),f):k===null||k===32||k===41||S3(k)?n(k):(e.enter(o),e.enter(s),e.enter(l),e.enter("chunkString",{contentType:"string"}),x(k))}function f(k){return k===62?(e.enter(i),e.consume(k),e.exit(i),e.exit(a),e.exit(o),r):(e.enter(l),e.enter("chunkString",{contentType:"string"}),g(k))}function g(k){return k===62?(e.exit("chunkString"),e.exit(l),f(k)):k===null||k===60||Et(k)?n(k):(e.consume(k),k===92?b:g)}function b(k){return k===60||k===62||k===92?(e.consume(k),g):g(k)}function x(k){return!u&&(k===null||k===41||Mr(k))?(e.exit("chunkString"),e.exit(l),e.exit(s),e.exit(o),r(k)):u999||g===null||g===91||g===93&&!c||g===94&&!l&&"_hiddenFootnoteSupport"in s.parser.constructs?n(g):g===93?(e.exit(i),e.enter(a),e.consume(g),e.exit(a),e.exit(o),r):Et(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),h(g))}function h(g){return g===null||g===91||g===93||Et(g)||l++>999?(e.exit("chunkString"),u(g)):(e.consume(g),c||(c=!Jt(g)),g===92?f:h)}function f(g){return g===91||g===92||g===93?(e.consume(g),l++,h):h(g)}}function KL(e,r,n,o,a,i){let s;return l;function l(f){return f===34||f===39||f===40?(e.enter(o),e.enter(a),e.consume(f),e.exit(a),s=f===40?41:f,c):n(f)}function c(f){return f===s?(e.enter(a),e.consume(f),e.exit(a),e.exit(o),r):(e.enter(i),d(f))}function d(f){return f===s?(e.exit(i),c(s)):f===null?n(f):Et(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),lr(e,d,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(f))}function u(f){return f===s||f===null||Et(f)?(e.exit("chunkString"),d(f)):(e.consume(f),f===92?h:u)}function h(f){return f===s||f===92?(e.consume(f),u):u(f)}}function B1(e,r){let n;return o;function o(a){return Et(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n=!0,o):Jt(a)?lr(e,o,n?"linePrefix":"lineSuffix")(a):r(a)}}const bke={name:"definition",tokenize:xke},vke={partial:!0,tokenize:wke};function xke(e,r,n){const o=this;let a;return i;function i(g){return e.enter("definition"),s(g)}function s(g){return XL.call(o,e,l,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(g)}function l(g){return a=ts(o.sliceSerialize(o.events[o.events.length-1][1]).slice(1,-1)),g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),c):n(g)}function c(g){return Mr(g)?B1(e,d)(g):d(g)}function d(g){return GL(e,u,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(g)}function u(g){return e.attempt(vke,h,h)(g)}function h(g){return Jt(g)?lr(e,f,"whitespace")(g):f(g)}function f(g){return g===null||Et(g)?(e.exit("definition"),o.parser.defined.push(a),r(g)):n(g)}}function wke(e,r,n){return o;function o(l){return Mr(l)?B1(e,a)(l):n(l)}function a(l){return KL(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(l)}function i(l){return Jt(l)?lr(e,s,"whitespace")(l):s(l)}function s(l){return l===null||Et(l)?r(l):n(l)}}const kke={name:"hardBreakEscape",tokenize:_ke};function _ke(e,r,n){return o;function o(i){return e.enter("hardBreakEscape"),e.consume(i),a}function a(i){return Et(i)?(e.exit("hardBreakEscape"),r(i)):n(i)}}const Eke={name:"headingAtx",resolve:Ske,tokenize:Cke};function Ske(e,r){let n=e.length-2,o=3,a,i;return e[o][1].type==="whitespace"&&(o+=2),n-2>o&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(o===n-1||n-4>o&&e[n-2][1].type==="whitespace")&&(n-=o+1===n?2:4),n>o&&(a={type:"atxHeadingText",start:e[o][1].start,end:e[n][1].end},i={type:"chunkText",start:e[o][1].start,end:e[n][1].end,contentType:"text"},Da(e,o,n-o+1,[["enter",a,r],["enter",i,r],["exit",i,r],["exit",a,r]])),e}function Cke(e,r,n){let o=0;return a;function a(u){return e.enter("atxHeading"),i(u)}function i(u){return e.enter("atxHeadingSequence"),s(u)}function s(u){return u===35&&o++<6?(e.consume(u),s):u===null||Mr(u)?(e.exit("atxHeadingSequence"),l(u)):n(u)}function l(u){return u===35?(e.enter("atxHeadingSequence"),c(u)):u===null||Et(u)?(e.exit("atxHeading"),r(u)):Jt(u)?lr(e,l,"whitespace")(u):(e.enter("atxHeadingText"),d(u))}function c(u){return u===35?(e.consume(u),c):(e.exit("atxHeadingSequence"),l(u))}function d(u){return u===null||u===35||Mr(u)?(e.exit("atxHeadingText"),l(u)):(e.consume(u),d)}}const Tke=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],ZL=["pre","script","style","textarea"],Ake={concrete:!0,name:"htmlFlow",resolveTo:Dke,tokenize:$ke},Rke={partial:!0,tokenize:Mke},Nke={partial:!0,tokenize:Pke};function Dke(e){let r=e.length;for(;r--&&!(e[r][0]==="enter"&&e[r][1].type==="htmlFlow"););return r>1&&e[r-2][1].type==="linePrefix"&&(e[r][1].start=e[r-2][1].start,e[r+1][1].start=e[r-2][1].start,e.splice(r-2,2)),e}function $ke(e,r,n){const o=this;let a,i,s,l,c;return d;function d(j){return u(j)}function u(j){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(j),h}function h(j){return j===33?(e.consume(j),f):j===47?(e.consume(j),i=!0,x):j===63?(e.consume(j),a=3,o.interrupt?r:W):Go(j)?(e.consume(j),s=String.fromCharCode(j),w):n(j)}function f(j){return j===45?(e.consume(j),a=2,g):j===91?(e.consume(j),a=5,l=0,b):Go(j)?(e.consume(j),a=4,o.interrupt?r:W):n(j)}function g(j){return j===45?(e.consume(j),o.interrupt?r:W):n(j)}function b(j){const Y="CDATA[";return j===Y.charCodeAt(l++)?(e.consume(j),l===Y.length?o.interrupt?r:L:b):n(j)}function x(j){return Go(j)?(e.consume(j),s=String.fromCharCode(j),w):n(j)}function w(j){if(j===null||j===47||j===62||Mr(j)){const Y=j===47,Q=s.toLowerCase();return!Y&&!i&&ZL.includes(Q)?(a=1,o.interrupt?r(j):L(j)):Tke.includes(s.toLowerCase())?(a=6,Y?(e.consume(j),k):o.interrupt?r(j):L(j)):(a=7,o.interrupt&&!o.parser.lazy[o.now().line]?n(j):i?C(j):_(j))}return j===45||Mo(j)?(e.consume(j),s+=String.fromCharCode(j),w):n(j)}function k(j){return j===62?(e.consume(j),o.interrupt?r:L):n(j)}function C(j){return Jt(j)?(e.consume(j),C):O(j)}function _(j){return j===47?(e.consume(j),O):j===58||j===95||Go(j)?(e.consume(j),T):Jt(j)?(e.consume(j),_):O(j)}function T(j){return j===45||j===46||j===58||j===95||Mo(j)?(e.consume(j),T):A(j)}function A(j){return j===61?(e.consume(j),R):Jt(j)?(e.consume(j),A):_(j)}function R(j){return j===null||j===60||j===61||j===62||j===96?n(j):j===34||j===39?(e.consume(j),c=j,D):Jt(j)?(e.consume(j),R):N(j)}function D(j){return j===c?(e.consume(j),c=null,P):j===null||Et(j)?n(j):(e.consume(j),D)}function N(j){return j===null||j===34||j===39||j===47||j===60||j===61||j===62||j===96||Mr(j)?A(j):(e.consume(j),N)}function P(j){return j===47||j===62||Jt(j)?_(j):n(j)}function O(j){return j===62?(e.consume(j),F):n(j)}function F(j){return j===null||Et(j)?L(j):Jt(j)?(e.consume(j),F):n(j)}function L(j){return j===45&&a===2?(e.consume(j),I):j===60&&a===1?(e.consume(j),H):j===62&&a===4?(e.consume(j),G):j===63&&a===3?(e.consume(j),W):j===93&&a===5?(e.consume(j),Z):Et(j)&&(a===6||a===7)?(e.exit("htmlFlowData"),e.check(Rke,K,U)(j)):j===null||Et(j)?(e.exit("htmlFlowData"),U(j)):(e.consume(j),L)}function U(j){return e.check(Nke,M,K)(j)}function M(j){return e.enter("lineEnding"),e.consume(j),e.exit("lineEnding"),V}function V(j){return j===null||Et(j)?U(j):(e.enter("htmlFlowData"),L(j))}function I(j){return j===45?(e.consume(j),W):L(j)}function H(j){return j===47?(e.consume(j),s="",q):L(j)}function q(j){if(j===62){const Y=s.toLowerCase();return ZL.includes(Y)?(e.consume(j),G):L(j)}return Go(j)&&s.length<8?(e.consume(j),s+=String.fromCharCode(j),q):L(j)}function Z(j){return j===93?(e.consume(j),W):L(j)}function W(j){return j===62?(e.consume(j),G):j===45&&a===2?(e.consume(j),W):L(j)}function G(j){return j===null||Et(j)?(e.exit("htmlFlowData"),K(j)):(e.consume(j),G)}function K(j){return e.exit("htmlFlow"),r(j)}}function Pke(e,r,n){const o=this;return a;function a(s){return Et(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):n(s)}function i(s){return o.parser.lazy[o.now().line]?n(s):r(s)}}function Mke(e,r,n){return o;function o(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(j1,r,n)}}const zke={name:"htmlText",tokenize:Ike};function Ike(e,r,n){const o=this;let a,i,s;return l;function l(W){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(W),c}function c(W){return W===33?(e.consume(W),d):W===47?(e.consume(W),A):W===63?(e.consume(W),_):Go(W)?(e.consume(W),N):n(W)}function d(W){return W===45?(e.consume(W),u):W===91?(e.consume(W),i=0,b):Go(W)?(e.consume(W),C):n(W)}function u(W){return W===45?(e.consume(W),g):n(W)}function h(W){return W===null?n(W):W===45?(e.consume(W),f):Et(W)?(s=h,H(W)):(e.consume(W),h)}function f(W){return W===45?(e.consume(W),g):h(W)}function g(W){return W===62?I(W):W===45?f(W):h(W)}function b(W){const G="CDATA[";return W===G.charCodeAt(i++)?(e.consume(W),i===G.length?x:b):n(W)}function x(W){return W===null?n(W):W===93?(e.consume(W),w):Et(W)?(s=x,H(W)):(e.consume(W),x)}function w(W){return W===93?(e.consume(W),k):x(W)}function k(W){return W===62?I(W):W===93?(e.consume(W),k):x(W)}function C(W){return W===null||W===62?I(W):Et(W)?(s=C,H(W)):(e.consume(W),C)}function _(W){return W===null?n(W):W===63?(e.consume(W),T):Et(W)?(s=_,H(W)):(e.consume(W),_)}function T(W){return W===62?I(W):_(W)}function A(W){return Go(W)?(e.consume(W),R):n(W)}function R(W){return W===45||Mo(W)?(e.consume(W),R):D(W)}function D(W){return Et(W)?(s=D,H(W)):Jt(W)?(e.consume(W),D):I(W)}function N(W){return W===45||Mo(W)?(e.consume(W),N):W===47||W===62||Mr(W)?P(W):n(W)}function P(W){return W===47?(e.consume(W),I):W===58||W===95||Go(W)?(e.consume(W),O):Et(W)?(s=P,H(W)):Jt(W)?(e.consume(W),P):I(W)}function O(W){return W===45||W===46||W===58||W===95||Mo(W)?(e.consume(W),O):F(W)}function F(W){return W===61?(e.consume(W),L):Et(W)?(s=F,H(W)):Jt(W)?(e.consume(W),F):P(W)}function L(W){return W===null||W===60||W===61||W===62||W===96?n(W):W===34||W===39?(e.consume(W),a=W,U):Et(W)?(s=L,H(W)):Jt(W)?(e.consume(W),L):(e.consume(W),M)}function U(W){return W===a?(e.consume(W),a=void 0,V):W===null?n(W):Et(W)?(s=U,H(W)):(e.consume(W),U)}function M(W){return W===null||W===34||W===39||W===60||W===61||W===96?n(W):W===47||W===62||Mr(W)?P(W):(e.consume(W),M)}function V(W){return W===47||W===62||Mr(W)?P(W):n(W)}function I(W){return W===62?(e.consume(W),e.exit("htmlTextData"),e.exit("htmlText"),r):n(W)}function H(W){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(W),e.exit("lineEnding"),q}function q(W){return Jt(W)?lr(e,Z,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(W):Z(W)}function Z(W){return e.enter("htmlTextData"),s(W)}}const O8={name:"labelEnd",resolveAll:Bke,resolveTo:Fke,tokenize:Hke},Oke={tokenize:Vke},jke={tokenize:qke},Lke={tokenize:Uke};function Bke(e){let r=-1;const n=[];for(;++r=3&&(d===null||Et(d))?(e.exit("thematicBreak"),r(d)):n(d)}function c(d){return d===a?(e.consume(d),o++,c):(e.exit("thematicBreakSequence"),Jt(d)?lr(e,l,"whitespace")(d):l(d))}}const ia={continuation:{tokenize:t5e},exit:n5e,name:"list",tokenize:e5e},Qke={partial:!0,tokenize:o5e},Jke={partial:!0,tokenize:r5e};function e5e(e,r,n){const o=this,a=o.events[o.events.length-1];let i=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0,s=0;return l;function l(g){const b=o.containerState.type||(g===42||g===43||g===45?"listUnordered":"listOrdered");if(b==="listUnordered"?!o.containerState.marker||g===o.containerState.marker:S8(g)){if(o.containerState.type||(o.containerState.type=b,e.enter(b,{_container:!0})),b==="listUnordered")return e.enter("listItemPrefix"),g===42||g===45?e.check(N3,n,d)(g):d(g);if(!o.interrupt||g===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),c(g)}return n(g)}function c(g){return S8(g)&&++s<10?(e.consume(g),c):(!o.interrupt||s<2)&&(o.containerState.marker?g===o.containerState.marker:g===41||g===46)?(e.exit("listItemValue"),d(g)):n(g)}function d(g){return e.enter("listItemMarker"),e.consume(g),e.exit("listItemMarker"),o.containerState.marker=o.containerState.marker||g,e.check(j1,o.interrupt?n:u,e.attempt(Qke,f,h))}function u(g){return o.containerState.initialBlankLine=!0,i++,f(g)}function h(g){return Jt(g)?(e.enter("listItemPrefixWhitespace"),e.consume(g),e.exit("listItemPrefixWhitespace"),f):n(g)}function f(g){return o.containerState.size=i+o.sliceSerialize(e.exit("listItemPrefix"),!0).length,r(g)}}function t5e(e,r,n){const o=this;return o.containerState._closeFlow=void 0,e.check(j1,a,i);function a(l){return o.containerState.furtherBlankLines=o.containerState.furtherBlankLines||o.containerState.initialBlankLine,lr(e,r,"listItemIndent",o.containerState.size+1)(l)}function i(l){return o.containerState.furtherBlankLines||!Jt(l)?(o.containerState.furtherBlankLines=void 0,o.containerState.initialBlankLine=void 0,s(l)):(o.containerState.furtherBlankLines=void 0,o.containerState.initialBlankLine=void 0,e.attempt(Jke,r,s)(l))}function s(l){return o.containerState._closeFlow=!0,o.interrupt=void 0,lr(e,e.attempt(ia,r,n),"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l)}}function r5e(e,r,n){const o=this;return lr(e,a,"listItemIndent",o.containerState.size+1);function a(i){const s=o.events[o.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===o.containerState.size?r(i):n(i)}}function n5e(e){e.exit(this.containerState.type)}function o5e(e,r,n){const o=this;return lr(e,a,"listItemPrefixWhitespace",o.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function a(i){const s=o.events[o.events.length-1];return!Jt(i)&&s&&s[1].type==="listItemPrefixWhitespace"?r(i):n(i)}}const QL={name:"setextUnderline",resolveTo:a5e,tokenize:i5e};function a5e(e,r){let n=e.length,o,a,i;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){o=n;break}e[n][1].type==="paragraph"&&(a=n)}else e[n][1].type==="content"&&e.splice(n,1),!i&&e[n][1].type==="definition"&&(i=n);const s={type:"setextHeading",start:{...e[o][1].start},end:{...e[e.length-1][1].end}};return e[a][1].type="setextHeadingText",i?(e.splice(a,0,["enter",s,r]),e.splice(i+1,0,["exit",e[o][1],r]),e[o][1].end={...e[i][1].end}):e[o][1]=s,e.push(["exit",s,r]),e}function i5e(e,r,n){const o=this;let a;return i;function i(d){let u=o.events.length,h;for(;u--;)if(o.events[u][1].type!=="lineEnding"&&o.events[u][1].type!=="linePrefix"&&o.events[u][1].type!=="content"){h=o.events[u][1].type==="paragraph";break}return!o.parser.lazy[o.now().line]&&(o.interrupt||h)?(e.enter("setextHeadingLine"),a=d,s(d)):n(d)}function s(d){return e.enter("setextHeadingLineSequence"),l(d)}function l(d){return d===a?(e.consume(d),l):(e.exit("setextHeadingLineSequence"),Jt(d)?lr(e,c,"lineSuffix")(d):c(d))}function c(d){return d===null||Et(d)?(e.exit("setextHeadingLine"),r(d)):n(d)}}const s5e={tokenize:m5e,partial:!0};function l5e(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:p5e,continuation:{tokenize:h5e},exit:f5e}},text:{91:{name:"gfmFootnoteCall",tokenize:u5e},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:c5e,resolveTo:d5e}}}}function c5e(e,r,n){const o=this;let a=o.events.length;const i=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let s;for(;a--;){const c=o.events[a][1];if(c.type==="labelImage"){s=c;break}if(c.type==="gfmFootnoteCall"||c.type==="labelLink"||c.type==="label"||c.type==="image"||c.type==="link")break}return l;function l(c){if(!s||!s._balanced)return n(c);const d=ts(o.sliceSerialize({start:s.end,end:o.now()}));return d.codePointAt(0)!==94||!i.includes(d.slice(1))?n(c):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),r(c))}}function d5e(e,r){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const o={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},a={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};a.end.column++,a.end.offset++,a.end._bufferIndex++;const i={type:"gfmFootnoteCallString",start:Object.assign({},a.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},i.start),end:Object.assign({},i.end)},l=[e[n+1],e[n+2],["enter",o,r],e[n+3],e[n+4],["enter",a,r],["exit",a,r],["enter",i,r],["enter",s,r],["exit",s,r],["exit",i,r],e[e.length-2],e[e.length-1],["exit",o,r]];return e.splice(n,e.length-n+1,...l),e}function u5e(e,r,n){const o=this,a=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let i=0,s;return l;function l(h){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),c}function c(h){return h!==94?n(h):(e.enter("gfmFootnoteCallMarker"),e.consume(h),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",d)}function d(h){if(i>999||h===93&&!s||h===null||h===91||Mr(h))return n(h);if(h===93){e.exit("chunkString");const f=e.exit("gfmFootnoteCallString");return a.includes(ts(o.sliceSerialize(f)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(h),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),r):n(h)}return Mr(h)||(s=!0),i++,e.consume(h),h===92?u:d}function u(h){return h===91||h===92||h===93?(e.consume(h),i++,d):d(h)}}function p5e(e,r,n){const o=this,a=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let i,s=0,l;return c;function c(b){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),d}function d(b){return b===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",u):n(b)}function u(b){if(s>999||b===93&&!l||b===null||b===91||Mr(b))return n(b);if(b===93){e.exit("chunkString");const x=e.exit("gfmFootnoteDefinitionLabelString");return i=ts(o.sliceSerialize(x)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),f}return Mr(b)||(l=!0),s++,e.consume(b),b===92?h:u}function h(b){return b===91||b===92||b===93?(e.consume(b),s++,u):u(b)}function f(b){return b===58?(e.enter("definitionMarker"),e.consume(b),e.exit("definitionMarker"),a.includes(i)||a.push(i),lr(e,g,"gfmFootnoteDefinitionWhitespace")):n(b)}function g(b){return r(b)}}function h5e(e,r,n){return e.check(j1,r,e.attempt(s5e,r,n))}function f5e(e){e.exit("gfmFootnoteDefinition")}function m5e(e,r,n){const o=this;return lr(e,a,"gfmFootnoteDefinitionIndent",5);function a(i){const s=o.events[o.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?r(i):n(i)}}function g5e(e){let n=(e||{}).singleTilde;const o={name:"strikethrough",tokenize:i,resolveAll:a};return n==null&&(n=!0),{text:{126:o},insideSpan:{null:[o]},attentionMarkers:{null:[126]}};function a(s,l){let c=-1;for(;++c1?c(b):(s.consume(b),h++,g);if(h<2&&!n)return c(b);const w=s.exit("strikethroughSequenceTemporary"),k=yf(b);return w._open=!k||k===2&&!!x,w._close=!x||x===2&&!!k,l(b)}}}class y5e{constructor(){this.map=[]}add(r,n,o){b5e(this,r,n,o)}consume(r){if(this.map.sort(function(i,s){return i[0]-s[0]}),this.map.length===0)return;let n=this.map.length;const o=[];for(;n>0;)n-=1,o.push(r.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),r.length=this.map[n][0];o.push(r.slice()),r.length=0;let a=o.pop();for(;a;){for(const i of a)r.push(i);a=o.pop()}this.map.length=0}}function b5e(e,r,n,o){let a=0;if(!(n===0&&o.length===0)){for(;a-1;){const M=o.events[F][1].type;if(M==="lineEnding"||M==="linePrefix")F--;else break}const L=F>-1?o.events[F][1].type:null,U=L==="tableHead"||L==="tableRow"?R:c;return U===R&&o.parser.lazy[o.now().line]?n(O):U(O)}function c(O){return e.enter("tableHead"),e.enter("tableRow"),d(O)}function d(O){return O===124||(s=!0,i+=1),u(O)}function u(O){return O===null?n(O):Et(O)?i>1?(i=0,o.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(O),e.exit("lineEnding"),g):n(O):Jt(O)?lr(e,u,"whitespace")(O):(i+=1,s&&(s=!1,a+=1),O===124?(e.enter("tableCellDivider"),e.consume(O),e.exit("tableCellDivider"),s=!0,u):(e.enter("data"),h(O)))}function h(O){return O===null||O===124||Mr(O)?(e.exit("data"),u(O)):(e.consume(O),O===92?f:h)}function f(O){return O===92||O===124?(e.consume(O),h):h(O)}function g(O){return o.interrupt=!1,o.parser.lazy[o.now().line]?n(O):(e.enter("tableDelimiterRow"),s=!1,Jt(O)?lr(e,b,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(O):b(O))}function b(O){return O===45||O===58?w(O):O===124?(s=!0,e.enter("tableCellDivider"),e.consume(O),e.exit("tableCellDivider"),x):A(O)}function x(O){return Jt(O)?lr(e,w,"whitespace")(O):w(O)}function w(O){return O===58?(i+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(O),e.exit("tableDelimiterMarker"),k):O===45?(i+=1,k(O)):O===null||Et(O)?T(O):A(O)}function k(O){return O===45?(e.enter("tableDelimiterFiller"),C(O)):A(O)}function C(O){return O===45?(e.consume(O),C):O===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(O),e.exit("tableDelimiterMarker"),_):(e.exit("tableDelimiterFiller"),_(O))}function _(O){return Jt(O)?lr(e,T,"whitespace")(O):T(O)}function T(O){return O===124?b(O):O===null||Et(O)?!s||a!==i?A(O):(e.exit("tableDelimiterRow"),e.exit("tableHead"),r(O)):A(O)}function A(O){return n(O)}function R(O){return e.enter("tableRow"),D(O)}function D(O){return O===124?(e.enter("tableCellDivider"),e.consume(O),e.exit("tableCellDivider"),D):O===null||Et(O)?(e.exit("tableRow"),r(O)):Jt(O)?lr(e,D,"whitespace")(O):(e.enter("data"),N(O))}function N(O){return O===null||O===124||Mr(O)?(e.exit("data"),D(O)):(e.consume(O),O===92?P:N)}function P(O){return O===92||O===124?(e.consume(O),N):N(O)}}function k5e(e,r){let n=-1,o=!0,a=0,i=[0,0,0,0],s=[0,0,0,0],l=!1,c=0,d,u,h;const f=new y5e;for(;++nn[2]+1){const b=n[2]+1,x=n[3]-n[2]-1;e.add(b,x,[])}}e.add(n[3]+1,0,[["exit",h,r]])}return a!==void 0&&(i.end=Object.assign({},vf(r.events,a)),e.add(a,0,[["exit",i,r]]),i=void 0),i}function JL(e,r,n,o,a){const i=[],s=vf(r.events,n);a&&(a.end=Object.assign({},s),i.push(["exit",a,r])),o.end=Object.assign({},s),i.push(["exit",o,r]),e.add(n+1,0,i)}function vf(e,r){const n=e[r],o=n[0]==="enter"?"start":"end";return n[1][o]}const _5e={name:"tasklistCheck",tokenize:S5e};function E5e(){return{text:{91:_5e}}}function S5e(e,r,n){const o=this;return a;function a(c){return o.previous!==null||!o._gfmTasklistFirstContentOfListItem?n(c):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(c),e.exit("taskListCheckMarker"),i)}function i(c){return Mr(c)?(e.enter("taskListCheckValueUnchecked"),e.consume(c),e.exit("taskListCheckValueUnchecked"),s):c===88||c===120?(e.enter("taskListCheckValueChecked"),e.consume(c),e.exit("taskListCheckValueChecked"),s):n(c)}function s(c){return c===93?(e.enter("taskListCheckMarker"),e.consume(c),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),l):n(c)}function l(c){return Et(c)?r(c):Jt(c)?e.check({tokenize:C5e},r,n)(c):n(c)}}function C5e(e,r,n){return lr(e,o,"whitespace");function o(a){return a===null?n(a):r(a)}}function T5e(e){return $L([O4e(),l5e(),g5e(e),x5e(),E5e()])}const A5e={};function R5e(e){const r=this,n=e||A5e,o=r.data(),a=o.micromarkExtensions||(o.micromarkExtensions=[]),i=o.fromMarkdownExtensions||(o.fromMarkdownExtensions=[]),s=o.toMarkdownExtensions||(o.toMarkdownExtensions=[]);a.push(T5e(n)),i.push(D4e()),s.push($4e(n))}const N5e={tokenize:D5e};function D5e(e){const r=e.attempt(this.parser.constructs.contentInitial,o,a);let n;return r;function o(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),lr(e,r,"linePrefix")}function a(l){return e.enter("paragraph"),i(l)}function i(l){const c=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=c),n=c,s(l)}function s(l){if(l===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(l);return}return Et(l)?(e.consume(l),e.exit("chunkText"),i):(e.consume(l),s)}}const $5e={tokenize:P5e},eB={tokenize:M5e};function P5e(e){const r=this,n=[];let o=0,a,i,s;return l;function l(_){if(os))return;const D=r.events.length;let N=D,P,O;for(;N--;)if(r.events[N][0]==="exit"&&r.events[N][1].type==="chunkFlow"){if(P){O=r.events[N][1].end;break}P=!0}for(k(o),R=D;R_;){const A=n[T];r.containerState=A[1],A[0].exit.call(r,e)}n.length=_}function C(){a.write([null]),i=void 0,a=void 0,r.containerState._closeFlow=void 0}}function M5e(e,r,n){return lr(e,e.attempt(this.parser.constructs.document,r,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}const z5e={tokenize:I5e};function I5e(e){const r=this,n=e.attempt(j1,o,e.attempt(this.parser.constructs.flowInitial,a,lr(e,e.attempt(this.parser.constructs.flow,a,e.attempt(hke,a)),"linePrefix")));return n;function o(i){if(i===null){e.consume(i);return}return e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),r.currentConstruct=void 0,n}function a(i){if(i===null){e.consume(i);return}return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),r.currentConstruct=void 0,n}}const O5e={resolveAll:rB()},j5e=tB("string"),L5e=tB("text");function tB(e){return{resolveAll:rB(e==="text"?B5e:void 0),tokenize:r};function r(n){const o=this,a=this.parser.constructs[e],i=n.attempt(a,s,l);return s;function s(u){return d(u)?i(u):l(u)}function l(u){if(u===null){n.consume(u);return}return n.enter("data"),n.consume(u),c}function c(u){return d(u)?(n.exit("data"),i(u)):(n.consume(u),c)}function d(u){if(u===null)return!0;const h=a[u];let f=-1;if(h)for(;++f-1){const l=s[0];typeof l=="string"?s[0]=l.slice(o):s.shift()}i>0&&s.push(e[a].slice(0,i))}return s}function q5e(e,r){let n=-1;const o=[];let a;for(;++n0){const Fr=it.tokenStack[it.tokenStack.length-1];(Fr[1]||cB).call(it,void 0,Fr[0])}for(Se.position={start:gd(Ee.length>0?Ee[0][1].start:{line:1,column:1,offset:0}),end:gd(Ee.length>0?Ee[Ee.length-2][1].end:{line:1,column:1,offset:0})},zt=-1;++zt1?"-"+l:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(r,c);const d={type:"element",tagName:"sup",properties:{},children:[c]};return e.patch(r,d),e.applyData(r,d)}function n_e(e,r){const n={type:"element",tagName:"h"+r.depth,properties:{},children:e.all(r)};return e.patch(r,n),e.applyData(r,n)}function o_e(e,r){if(e.options.allowDangerousHtml){const n={type:"raw",value:r.value};return e.patch(r,n),e.applyData(r,n)}}function dB(e,r){const n=r.referenceType;let o="]";if(n==="collapsed"?o+="[]":n==="full"&&(o+="["+(r.label||r.identifier)+"]"),r.type==="imageReference")return[{type:"text",value:"!["+r.alt+o}];const a=e.all(r),i=a[0];i&&i.type==="text"?i.value="["+i.value:a.unshift({type:"text",value:"["});const s=a[a.length-1];return s&&s.type==="text"?s.value+=o:a.push({type:"text",value:o}),a}function a_e(e,r){const n=String(r.identifier).toUpperCase(),o=e.definitionById.get(n);if(!o)return dB(e,r);const a={src:bf(o.url||""),alt:r.alt};o.title!==null&&o.title!==void 0&&(a.title=o.title);const i={type:"element",tagName:"img",properties:a,children:[]};return e.patch(r,i),e.applyData(r,i)}function i_e(e,r){const n={src:bf(r.url)};r.alt!==null&&r.alt!==void 0&&(n.alt=r.alt),r.title!==null&&r.title!==void 0&&(n.title=r.title);const o={type:"element",tagName:"img",properties:n,children:[]};return e.patch(r,o),e.applyData(r,o)}function s_e(e,r){const n={type:"text",value:r.value.replace(/\r?\n|\r/g," ")};e.patch(r,n);const o={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(r,o),e.applyData(r,o)}function l_e(e,r){const n=String(r.identifier).toUpperCase(),o=e.definitionById.get(n);if(!o)return dB(e,r);const a={href:bf(o.url||"")};o.title!==null&&o.title!==void 0&&(a.title=o.title);const i={type:"element",tagName:"a",properties:a,children:e.all(r)};return e.patch(r,i),e.applyData(r,i)}function c_e(e,r){const n={href:bf(r.url)};r.title!==null&&r.title!==void 0&&(n.title=r.title);const o={type:"element",tagName:"a",properties:n,children:e.all(r)};return e.patch(r,o),e.applyData(r,o)}function d_e(e,r,n){const o=e.all(r),a=n?u_e(n):uB(r),i={},s=[];if(typeof r.checked=="boolean"){const u=o[0];let h;u&&u.type==="element"&&u.tagName==="p"?h=u:(h={type:"element",tagName:"p",properties:{},children:[]},o.unshift(h)),h.children.length>0&&h.children.unshift({type:"text",value:" "}),h.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:r.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let l=-1;for(;++l1}function p_e(e,r){const n={},o=e.all(r);let a=-1;for(typeof r.start=="number"&&r.start!==1&&(n.start=r.start);++a0){const s={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},l=rc(r.children[1]),c=v3(r.children[r.children.length-1]);l&&c&&(s.position={start:l,end:c}),a.push(s)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(a,!0)};return e.patch(r,i),e.applyData(r,i)}function y_e(e,r,n){const o=n?n.children:void 0,i=(o?o.indexOf(r):1)===0?"th":"td",s=n&&n.type==="table"?n.align:void 0,l=s?s.length:r.children.length;let c=-1;const d=[];for(;++c0,!0),o[0]),a=o.index+o[0].length,o=n.exec(r);return i.push(fB(r.slice(a),a>0,!1)),i.join("")}function fB(e,r,n){let o=0,a=e.length;if(r){let i=e.codePointAt(o);for(;i===pB||i===hB;)o++,i=e.codePointAt(o)}if(n){let i=e.codePointAt(a-1);for(;i===pB||i===hB;)a--,i=e.codePointAt(a-1)}return a>o?e.slice(o,a):""}function x_e(e,r){const n={type:"text",value:v_e(String(r.value))};return e.patch(r,n),e.applyData(r,n)}function w_e(e,r){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(r,n),e.applyData(r,n)}const k_e={blockquote:Z5e,break:Q5e,code:J5e,delete:e_e,emphasis:t_e,footnoteReference:r_e,heading:n_e,html:o_e,imageReference:a_e,image:i_e,inlineCode:s_e,linkReference:l_e,link:c_e,listItem:d_e,list:p_e,paragraph:h_e,root:f_e,strong:m_e,table:g_e,tableCell:b_e,tableRow:y_e,text:x_e,thematicBreak:w_e,toml:$3,yaml:$3,definition:$3,footnoteDefinition:$3};function $3(){}function __e(e,r){const n=[{type:"text",value:"↩"}];return r>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(r)}]}),n}function E_e(e,r){return"Back to reference "+(e+1)+(r>1?"-"+r:"")}function S_e(e){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||__e,o=e.options.footnoteBackLabel||E_e,a=e.options.footnoteLabel||"Footnotes",i=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},l=[];let c=-1;for(;++c0&&b.push({type:"text",value:" "});let C=typeof n=="string"?n:n(c,g);typeof C=="string"&&(C={type:"text",value:C}),b.push({type:"element",tagName:"a",properties:{href:"#"+r+"fnref-"+f+(g>1?"-"+g:""),dataFootnoteBackref:"",ariaLabel:typeof o=="string"?o:o(c,g),className:["data-footnote-backref"]},children:Array.isArray(C)?C:[C]})}const w=u[u.length-1];if(w&&w.type==="element"&&w.tagName==="p"){const C=w.children[w.children.length-1];C&&C.type==="text"?C.value+=" ":w.children.push({type:"text",value:" "}),w.children.push(...b)}else u.push(...b);const k={type:"element",tagName:"li",properties:{id:r+"fn-"+f},children:e.wrap(u,!0)};e.patch(d,k),l.push(k)}if(l.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...Lu(s),id:"footnote-label"},children:[{type:"text",value:a}]},{type:"text",value:` -`},{type:"element",tagName:"ol",properties:{},children:e.wrap(l,!0)},{type:"text",value:` -`}]}}const B8={}.hasOwnProperty,C_e={};function T_e(e,r){const n=r||C_e,o=new Map,a=new Map,i=new Map,s={...k_e,...n.handlers},l={all:d,applyData:R_e,definitionById:o,footnoteById:a,footnoteCounts:i,footnoteOrder:[],handlers:s,one:c,options:n,patch:A_e,wrap:D_e};return v8(e,function(u){if(u.type==="definition"||u.type==="footnoteDefinition"){const h=u.type==="definition"?o:a,f=String(u.identifier).toUpperCase();h.has(f)||h.set(f,u)}}),l;function c(u,h){const f=u.type,g=l.handlers[f];if(B8.call(l.handlers,f)&&g)return g(l,u,h);if(l.options.passThrough&&l.options.passThrough.includes(f)){if("children"in u){const{children:x,...w}=u,k=Lu(w);return k.children=l.all(u),k}return Lu(u)}return(l.options.unknownHandler||N_e)(l,u,h)}function d(u){const h=[];if("children"in u){const f=u.children;let g=-1;for(;++g",...c.current()})),d+=c.move(">")):(s=n.enter("destinationRaw"),d+=c.move(n.safe(e.url,{before:d,after:e.title?" ":")",...c.current()}))),s(),e.title&&(s=n.enter(`title${i}`),d+=c.move(" "+a),d+=c.move(n.safe(e.title,{before:d,after:a,...c.current()})),d+=c.move(a),s()),d+=c.move(")"),l(),d}function Gve(){return"!"}lB.peek=Yve;function lB(e,r,n,o){const a=e.referenceType,i=n.enter("imageReference");let l=n.enter("label");const s=n.createTracker(o);let c=s.move("![");const d=n.safe(e.alt,{before:c,after:"]",...s.current()});c+=s.move(d+"]["),l();const u=n.stack;n.stack=[],l=n.enter("reference");const p=n.safe(n.associationId(e),{before:c,after:"]",...s.current()});return l(),n.stack=u,i(),a==="full"||!d||d!==p?c+=s.move(p+"]"):a==="shortcut"?c=c.slice(0,-1):c+=s.move("]"),c}function Yve(){return"!"}sB.peek=Xve;function sB(e,r,n){let o=e.value||"",a="`",i=-1;for(;new RegExp("(^|[^`])"+a+"([^`]|$)").test(o);)a+="`";for(/[^ \r\n]/.test(o)&&(/^[ \r\n]/.test(o)&&/[ \r\n]$/.test(o)||/^`|`$/.test(o))&&(o=" "+o+" ");++i\u007F]/.test(e.url))}dB.peek=Zve;function dB(e,r,n,o){const a=f_(n),i=a==='"'?"Quote":"Apostrophe",l=n.createTracker(o);let s,c;if(cB(e,n)){const u=n.stack;n.stack=[],s=n.enter("autolink");let p=l.move("<");return p+=l.move(n.containerPhrasing(e,{before:p,after:">",...l.current()})),p+=l.move(">"),s(),n.stack=u,p}s=n.enter("link"),c=n.enter("label");let d=l.move("[");return d+=l.move(n.containerPhrasing(e,{before:d,after:"](",...l.current()})),d+=l.move("]("),c(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(c=n.enter("destinationLiteral"),d+=l.move("<"),d+=l.move(n.safe(e.url,{before:d,after:">",...l.current()})),d+=l.move(">")):(c=n.enter("destinationRaw"),d+=l.move(n.safe(e.url,{before:d,after:e.title?" ":")",...l.current()}))),c(),e.title&&(c=n.enter(`title${i}`),d+=l.move(" "+a),d+=l.move(n.safe(e.title,{before:d,after:a,...l.current()})),d+=l.move(a),c()),d+=l.move(")"),s(),d}function Zve(e,r,n){return cB(e,n)?"<":"["}uB.peek=Kve;function uB(e,r,n,o){const a=e.referenceType,i=n.enter("linkReference");let l=n.enter("label");const s=n.createTracker(o);let c=s.move("[");const d=n.containerPhrasing(e,{before:c,after:"]",...s.current()});c+=s.move(d+"]["),l();const u=n.stack;n.stack=[],l=n.enter("reference");const p=n.safe(n.associationId(e),{before:c,after:"]",...s.current()});return l(),n.stack=u,i(),a==="full"||!d||d!==p?c+=s.move(p+"]"):a==="shortcut"?c=c.slice(0,-1):c+=s.move("]"),c}function Kve(){return"["}function g_(e){const r=e.options.bullet||"*";if(r!=="*"&&r!=="+"&&r!=="-")throw new Error("Cannot serialize items with `"+r+"` for `options.bullet`, expected `*`, `+`, or `-`");return r}function Qve(e){const r=g_(e),n=e.options.bulletOther;if(!n)return r==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===r)throw new Error("Expected `bullet` (`"+r+"`) and `bulletOther` (`"+n+"`) to be different");return n}function Jve(e){const r=e.options.bulletOrdered||".";if(r!=="."&&r!==")")throw new Error("Cannot serialize items with `"+r+"` for `options.bulletOrdered`, expected `.` or `)`");return r}function pB(e){const r=e.options.rule||"*";if(r!=="*"&&r!=="-"&&r!=="_")throw new Error("Cannot serialize rules with `"+r+"` for `options.rule`, expected `*`, `-`, or `_`");return r}function ebe(e,r,n,o){const a=n.enter("list"),i=n.bulletCurrent;let l=e.ordered?Jve(n):g_(n);const s=e.ordered?l==="."?")":".":Qve(n);let c=r&&n.bulletLastUsed?l===n.bulletLastUsed:!1;if(!e.ordered){const u=e.children?e.children[0]:void 0;if((l==="*"||l==="-")&&u&&(!u.children||!u.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(c=!0),pB(n)===l&&u){let p=-1;for(;++p-1?r.start:1)+(n.options.incrementListMarker===!1?0:r.children.indexOf(e))+i);let l=i.length+1;(a==="tab"||a==="mixed"&&(r&&r.type==="list"&&r.spread||e.spread))&&(l=Math.ceil(l/4)*4);const s=n.createTracker(o);s.move(i+" ".repeat(l-i.length)),s.shift(l);const c=n.enter("listItem"),d=n.indentLines(n.containerFlow(e,s.current()),u);return c(),d;function u(p,f,g){return f?(g?"":" ".repeat(l))+p:(g?i:i+" ".repeat(l-i.length))+p}}function nbe(e,r,n,o){const a=n.enter("paragraph"),i=n.enter("phrasing"),l=n.containerPhrasing(e,o);return i(),a(),l}const obe=Rb(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function abe(e,r,n,o){return(e.children.some(function(l){return obe(l)})?n.containerPhrasing:n.containerFlow).call(n,e,o)}function ibe(e){const r=e.options.strong||"*";if(r!=="*"&&r!=="_")throw new Error("Cannot serialize strong with `"+r+"` for `options.strong`, expected `*`, or `_`");return r}hB.peek=lbe;function hB(e,r,n,o){const a=ibe(n),i=n.enter("strong"),l=n.createTracker(o),s=l.move(a+a);let c=l.move(n.containerPhrasing(e,{after:a,before:s,...l.current()}));const d=c.charCodeAt(0),u=Tb(o.before.charCodeAt(o.before.length-1),d,a);u.inside&&(c=Kg(d)+c.slice(1));const p=c.charCodeAt(c.length-1),f=Tb(o.after.charCodeAt(0),p,a);f.inside&&(c=c.slice(0,-1)+Kg(p));const g=l.move(a+a);return i(),n.attentionEncodeSurroundingInfo={after:f.outside,before:u.outside},s+c+g}function lbe(e,r,n){return n.options.strong||"*"}function sbe(e,r,n,o){return n.safe(e.value,o)}function cbe(e){const r=e.options.ruleRepetition||3;if(r<3)throw new Error("Cannot serialize rules with repetition `"+r+"` for `options.ruleRepetition`, expected `3` or more");return r}function dbe(e,r,n){const o=(pB(n)+(n.options.ruleSpaces?" ":"")).repeat(cbe(n));return n.options.ruleSpaces?o.slice(0,-1):o}const fB={blockquote:Tve,break:tB,code:Bve,definition:Ive,emphasis:rB,hardBreak:tB,heading:Uve,html:aB,image:iB,imageReference:lB,inlineCode:sB,link:dB,linkReference:uB,list:ebe,listItem:rbe,paragraph:nbe,root:abe,strong:hB,text:sbe,thematicBreak:dbe},mB={AElig:"Æ",AMP:"&",Aacute:"Á",Abreve:"Ă",Acirc:"Â",Acy:"А",Afr:"𝔄",Agrave:"À",Alpha:"Α",Amacr:"Ā",And:"⩓",Aogon:"Ą",Aopf:"𝔸",ApplyFunction:"⁡",Aring:"Å",Ascr:"𝒜",Assign:"≔",Atilde:"Ã",Auml:"Ä",Backslash:"∖",Barv:"⫧",Barwed:"⌆",Bcy:"Б",Because:"∵",Bernoullis:"ℬ",Beta:"Β",Bfr:"𝔅",Bopf:"𝔹",Breve:"˘",Bscr:"ℬ",Bumpeq:"≎",CHcy:"Ч",COPY:"©",Cacute:"Ć",Cap:"⋒",CapitalDifferentialD:"ⅅ",Cayleys:"ℭ",Ccaron:"Č",Ccedil:"Ç",Ccirc:"Ĉ",Cconint:"∰",Cdot:"Ċ",Cedilla:"¸",CenterDot:"·",Cfr:"ℭ",Chi:"Χ",CircleDot:"⊙",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",Colon:"∷",Colone:"⩴",Congruent:"≡",Conint:"∯",ContourIntegral:"∮",Copf:"ℂ",Coproduct:"∐",CounterClockwiseContourIntegral:"∳",Cross:"⨯",Cscr:"𝒞",Cup:"⋓",CupCap:"≍",DD:"ⅅ",DDotrahd:"⤑",DJcy:"Ђ",DScy:"Ѕ",DZcy:"Џ",Dagger:"‡",Darr:"↡",Dashv:"⫤",Dcaron:"Ď",Dcy:"Д",Del:"∇",Delta:"Δ",Dfr:"𝔇",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",Diamond:"⋄",DifferentialD:"ⅆ",Dopf:"𝔻",Dot:"¨",DotDot:"⃜",DotEqual:"≐",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",Downarrow:"⇓",Dscr:"𝒟",Dstrok:"Đ",ENG:"Ŋ",ETH:"Ð",Eacute:"É",Ecaron:"Ě",Ecirc:"Ê",Ecy:"Э",Edot:"Ė",Efr:"𝔈",Egrave:"È",Element:"∈",Emacr:"Ē",EmptySmallSquare:"◻",EmptyVerySmallSquare:"▫",Eogon:"Ę",Eopf:"𝔼",Epsilon:"Ε",Equal:"⩵",EqualTilde:"≂",Equilibrium:"⇌",Escr:"ℰ",Esim:"⩳",Eta:"Η",Euml:"Ë",Exists:"∃",ExponentialE:"ⅇ",Fcy:"Ф",Ffr:"𝔉",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",Fopf:"𝔽",ForAll:"∀",Fouriertrf:"ℱ",Fscr:"ℱ",GJcy:"Ѓ",GT:">",Gamma:"Γ",Gammad:"Ϝ",Gbreve:"Ğ",Gcedil:"Ģ",Gcirc:"Ĝ",Gcy:"Г",Gdot:"Ġ",Gfr:"𝔊",Gg:"⋙",Gopf:"𝔾",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",Gt:"≫",HARDcy:"Ъ",Hacek:"ˇ",Hat:"^",Hcirc:"Ĥ",Hfr:"ℌ",HilbertSpace:"ℋ",Hopf:"ℍ",HorizontalLine:"─",Hscr:"ℋ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",IEcy:"Е",IJlig:"IJ",IOcy:"Ё",Iacute:"Í",Icirc:"Î",Icy:"И",Idot:"İ",Ifr:"ℑ",Igrave:"Ì",Im:"ℑ",Imacr:"Ī",ImaginaryI:"ⅈ",Implies:"⇒",Int:"∬",Integral:"∫",Intersection:"⋂",InvisibleComma:"⁣",InvisibleTimes:"⁢",Iogon:"Į",Iopf:"𝕀",Iota:"Ι",Iscr:"ℐ",Itilde:"Ĩ",Iukcy:"І",Iuml:"Ï",Jcirc:"Ĵ",Jcy:"Й",Jfr:"𝔍",Jopf:"𝕁",Jscr:"𝒥",Jsercy:"Ј",Jukcy:"Є",KHcy:"Х",KJcy:"Ќ",Kappa:"Κ",Kcedil:"Ķ",Kcy:"К",Kfr:"𝔎",Kopf:"𝕂",Kscr:"𝒦",LJcy:"Љ",LT:"<",Lacute:"Ĺ",Lambda:"Λ",Lang:"⟪",Laplacetrf:"ℒ",Larr:"↞",Lcaron:"Ľ",Lcedil:"Ļ",Lcy:"Л",LeftAngleBracket:"⟨",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",LeftRightArrow:"↔",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",Leftarrow:"⇐",Leftrightarrow:"⇔",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",LessLess:"⪡",LessSlantEqual:"⩽",LessTilde:"≲",Lfr:"𝔏",Ll:"⋘",Lleftarrow:"⇚",Lmidot:"Ŀ",LongLeftArrow:"⟵",LongLeftRightArrow:"⟷",LongRightArrow:"⟶",Longleftarrow:"⟸",Longleftrightarrow:"⟺",Longrightarrow:"⟹",Lopf:"𝕃",LowerLeftArrow:"↙",LowerRightArrow:"↘",Lscr:"ℒ",Lsh:"↰",Lstrok:"Ł",Lt:"≪",Map:"⤅",Mcy:"М",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",MinusPlus:"∓",Mopf:"𝕄",Mscr:"ℳ",Mu:"Μ",NJcy:"Њ",Nacute:"Ń",Ncaron:"Ň",Ncedil:"Ņ",Ncy:"Н",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:` +`,Nfr:"𝔑",NoBreak:"⁠",NonBreakingSpace:" ",Nopf:"ℕ",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",Nscr:"𝒩",Ntilde:"Ñ",Nu:"Ν",OElig:"Œ",Oacute:"Ó",Ocirc:"Ô",Ocy:"О",Odblac:"Ő",Ofr:"𝔒",Ograve:"Ò",Omacr:"Ō",Omega:"Ω",Omicron:"Ο",Oopf:"𝕆",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",Or:"⩔",Oscr:"𝒪",Oslash:"Ø",Otilde:"Õ",Otimes:"⨷",Ouml:"Ö",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",PartialD:"∂",Pcy:"П",Pfr:"𝔓",Phi:"Φ",Pi:"Π",PlusMinus:"±",Poincareplane:"ℌ",Popf:"ℙ",Pr:"⪻",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",Prime:"″",Product:"∏",Proportion:"∷",Proportional:"∝",Pscr:"𝒫",Psi:"Ψ",QUOT:'"',Qfr:"𝔔",Qopf:"ℚ",Qscr:"𝒬",RBarr:"⤐",REG:"®",Racute:"Ŕ",Rang:"⟫",Rarr:"↠",Rarrtl:"⤖",Rcaron:"Ř",Rcedil:"Ŗ",Rcy:"Р",Re:"ℜ",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",Rfr:"ℜ",Rho:"Ρ",RightAngleBracket:"⟩",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",Rightarrow:"⇒",Ropf:"ℝ",RoundImplies:"⥰",Rrightarrow:"⇛",Rscr:"ℛ",Rsh:"↱",RuleDelayed:"⧴",SHCHcy:"Щ",SHcy:"Ш",SOFTcy:"Ь",Sacute:"Ś",Sc:"⪼",Scaron:"Š",Scedil:"Ş",Scirc:"Ŝ",Scy:"С",Sfr:"𝔖",ShortDownArrow:"↓",ShortLeftArrow:"←",ShortRightArrow:"→",ShortUpArrow:"↑",Sigma:"Σ",SmallCircle:"∘",Sopf:"𝕊",Sqrt:"√",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",Sscr:"𝒮",Star:"⋆",Sub:"⋐",Subset:"⋐",SubsetEqual:"⊆",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",SuchThat:"∋",Sum:"∑",Sup:"⋑",Superset:"⊃",SupersetEqual:"⊇",Supset:"⋑",THORN:"Þ",TRADE:"™",TSHcy:"Ћ",TScy:"Ц",Tab:" ",Tau:"Τ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т",Tfr:"𝔗",Therefore:"∴",Theta:"Θ",ThickSpace:"  ",ThinSpace:" ",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",Topf:"𝕋",TripleDot:"⃛",Tscr:"𝒯",Tstrok:"Ŧ",Uacute:"Ú",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucirc:"Û",Ucy:"У",Udblac:"Ű",Ufr:"𝔘",Ugrave:"Ù",Umacr:"Ū",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",Uopf:"𝕌",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",UpEquilibrium:"⥮",UpTee:"⊥",UpTeeArrow:"↥",Uparrow:"⇑",Updownarrow:"⇕",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",Upsilon:"Υ",Uring:"Ů",Uscr:"𝒰",Utilde:"Ũ",Uuml:"Ü",VDash:"⊫",Vbar:"⫫",Vcy:"В",Vdash:"⊩",Vdashl:"⫦",Vee:"⋁",Verbar:"‖",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",Vopf:"𝕍",Vscr:"𝒱",Vvdash:"⊪",Wcirc:"Ŵ",Wedge:"⋀",Wfr:"𝔚",Wopf:"𝕎",Wscr:"𝒲",Xfr:"𝔛",Xi:"Ξ",Xopf:"𝕏",Xscr:"𝒳",YAcy:"Я",YIcy:"Ї",YUcy:"Ю",Yacute:"Ý",Ycirc:"Ŷ",Ycy:"Ы",Yfr:"𝔜",Yopf:"𝕐",Yscr:"𝒴",Yuml:"Ÿ",ZHcy:"Ж",Zacute:"Ź",Zcaron:"Ž",Zcy:"З",Zdot:"Ż",ZeroWidthSpace:"​",Zeta:"Ζ",Zfr:"ℨ",Zopf:"ℤ",Zscr:"𝒵",aacute:"á",abreve:"ă",ac:"∾",acE:"∾̳",acd:"∿",acirc:"â",acute:"´",acy:"а",aelig:"æ",af:"⁡",afr:"𝔞",agrave:"à",alefsym:"ℵ",aleph:"ℵ",alpha:"α",amacr:"ā",amalg:"⨿",amp:"&",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",aogon:"ą",aopf:"𝕒",ap:"≈",apE:"⩰",apacir:"⩯",ape:"≊",apid:"≋",apos:"'",approx:"≈",approxeq:"≊",aring:"å",ascr:"𝒶",ast:"*",asymp:"≈",asympeq:"≍",atilde:"ã",auml:"ä",awconint:"∳",awint:"⨑",bNot:"⫭",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",barvee:"⊽",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",beta:"β",beth:"ℶ",between:"≬",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxDL:"╗",boxDR:"╔",boxDl:"╖",boxDr:"╓",boxH:"═",boxHD:"╦",boxHU:"╩",boxHd:"╤",boxHu:"╧",boxUL:"╝",boxUR:"╚",boxUl:"╜",boxUr:"╙",boxV:"║",boxVH:"╬",boxVL:"╣",boxVR:"╠",boxVh:"╫",boxVl:"╢",boxVr:"╟",boxbox:"⧉",boxdL:"╕",boxdR:"╒",boxdl:"┐",boxdr:"┌",boxh:"─",boxhD:"╥",boxhU:"╨",boxhd:"┬",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxuL:"╛",boxuR:"╘",boxul:"┘",boxur:"└",boxv:"│",boxvH:"╪",boxvL:"╡",boxvR:"╞",boxvh:"┼",boxvl:"┤",boxvr:"├",bprime:"‵",breve:"˘",brvbar:"¦",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",bumpeq:"≏",cacute:"ć",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",caps:"∩︀",caret:"⁁",caron:"ˇ",ccaps:"⩍",ccaron:"č",ccedil:"ç",ccirc:"ĉ",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",cedil:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",cfr:"𝔠",chcy:"ч",check:"✓",checkmark:"✓",chi:"χ",cir:"○",cirE:"⧃",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledR:"®",circledS:"Ⓢ",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",clubs:"♣",clubsuit:"♣",colon:":",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",conint:"∮",copf:"𝕔",coprod:"∐",copy:"©",copysr:"℗",crarr:"↵",cross:"✗",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",cupbrcap:"⩈",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dArr:"⇓",dHar:"⥥",dagger:"†",daleth:"ℸ",darr:"↓",dash:"‐",dashv:"⊣",dbkarow:"⤏",dblac:"˝",dcaron:"ď",dcy:"д",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",ddotseq:"⩷",deg:"°",delta:"δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",dharl:"⇃",dharr:"⇂",diam:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",dot:"˙",doteq:"≐",doteqdot:"≑",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",downarrow:"↓",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"𝒹",dscy:"ѕ",dsol:"⧶",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",dzigrarr:"⟿",eDDot:"⩷",eDot:"≑",eacute:"é",easter:"⩮",ecaron:"ě",ecir:"≖",ecirc:"ê",ecolon:"≕",ecy:"э",edot:"ė",ee:"ⅇ",efDot:"≒",efr:"𝔢",eg:"⪚",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",empty:"∅",emptyset:"∅",emptyv:"∅",emsp13:" ",emsp14:" ",emsp:" ",eng:"ŋ",ensp:" ",eogon:"ę",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",equals:"=",equest:"≟",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erDot:"≓",erarr:"⥱",escr:"ℯ",esdot:"≐",esim:"≂",eta:"η",eth:"ð",euml:"ë",euro:"€",excl:"!",exist:"∃",expectation:"ℰ",exponentiale:"ⅇ",fallingdotseq:"≒",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",filig:"fi",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",forall:"∀",fork:"⋔",forkv:"⫙",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",gE:"≧",gEl:"⪌",gacute:"ǵ",gamma:"γ",gammad:"ϝ",gap:"⪆",gbreve:"ğ",gcirc:"ĝ",gcy:"г",gdot:"ġ",ge:"≥",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",gg:"≫",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",gl:"≷",glE:"⪒",gla:"⪥",glj:"⪤",gnE:"≩",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"𝕘",grave:"`",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",hArr:"⇔",hairsp:" ",half:"½",hamilt:"ℋ",hardcy:"ъ",harr:"↔",harrcir:"⥈",harrw:"↭",hbar:"ℏ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",horbar:"―",hscr:"𝒽",hslash:"ℏ",hstrok:"ħ",hybull:"⁃",hyphen:"‐",iacute:"í",ic:"⁣",icirc:"î",icy:"и",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",imacr:"ī",image:"ℑ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",intcal:"⊺",integers:"ℤ",intercal:"⊺",intlarhk:"⨗",intprod:"⨼",iocy:"ё",iogon:"į",iopf:"𝕚",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",isin:"∈",isinE:"⋹",isindot:"⋵",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",itilde:"ĩ",iukcy:"і",iuml:"ï",jcirc:"ĵ",jcy:"й",jfr:"𝔧",jmath:"ȷ",jopf:"𝕛",jscr:"𝒿",jsercy:"ј",jukcy:"є",kappa:"κ",kappav:"ϰ",kcedil:"ķ",kcy:"к",kfr:"𝔨",kgreen:"ĸ",khcy:"х",kjcy:"ќ",kopf:"𝕜",kscr:"𝓀",lAarr:"⇚",lArr:"⇐",lAtail:"⤛",lBarr:"⤎",lE:"≦",lEg:"⪋",lHar:"⥢",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",laquo:"«",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",late:"⪭",lates:"⪭︀",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",lcedil:"ļ",lceil:"⌈",lcub:"{",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",leftarrow:"←",leftarrowtail:"↢",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",leftthreetimes:"⋋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",lessgtr:"≶",lesssim:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"𝔩",lg:"≶",lgE:"⪑",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",ll:"≪",llarr:"⇇",llcorner:"⌞",llhard:"⥫",lltri:"◺",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnE:"≨",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",longleftrightarrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltrPar:"⦖",ltri:"◃",ltrie:"⊴",ltrif:"◂",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",mDDot:"∺",macr:"¯",male:"♂",malt:"✠",maltese:"✠",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",mdash:"—",measuredangle:"∡",mfr:"𝔪",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"𝕞",mp:"∓",mscr:"𝓂",mstpos:"∾",mu:"μ",multimap:"⊸",mumap:"⊸",nGg:"⋙̸",nGt:"≫⃒",nGtv:"≫̸",nLeftarrow:"⇍",nLeftrightarrow:"⇎",nLl:"⋘̸",nLt:"≪⃒",nLtv:"≪̸",nRightarrow:"⇏",nVDash:"⊯",nVdash:"⊮",nabla:"∇",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",ndash:"–",ne:"≠",neArr:"⇗",nearhk:"⤤",nearr:"↗",nearrow:"↗",nedot:"≐̸",nequiv:"≢",nesear:"⤨",nesim:"≂̸",nexist:"∄",nexists:"∄",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",ngsim:"≵",ngt:"≯",ngtr:"≯",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",nlArr:"⇍",nlE:"≦̸",nlarr:"↚",nldr:"‥",nle:"≰",nleftarrow:"↚",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nlsim:"≴",nlt:"≮",nltri:"⋪",nltrie:"⋬",nmid:"∤",nopf:"𝕟",not:"¬",notin:"∉",notinE:"⋹̸",notindot:"⋵̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",num:"#",numero:"№",numsp:" ",nvDash:"⊭",nvHarr:"⤄",nvap:"≍⃒",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwArr:"⇖",nwarhk:"⤣",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",oS:"Ⓢ",oacute:"ó",oast:"⊛",ocir:"⊚",ocirc:"ô",ocy:"о",odash:"⊝",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",ofcir:"⦿",ofr:"𝔬",ogon:"˛",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",omega:"ω",omicron:"ο",omid:"⦶",ominus:"⊖",oopf:"𝕠",opar:"⦷",operp:"⦹",oplus:"⊕",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oscr:"ℴ",oslash:"ø",osol:"⊘",otilde:"õ",otimes:"⊗",otimesas:"⨶",ouml:"ö",ovbar:"⌽",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"𝔭",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",pointint:"⨕",popf:"𝕡",pound:"£",pr:"≺",prE:"⪳",prap:"⪷",prcue:"≼",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",primes:"ℙ",prnE:"⪵",prnap:"⪹",prnsim:"⋨",prod:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"𝓅",psi:"ψ",puncsp:" ",qfr:"𝔮",qint:"⨌",qopf:"𝕢",qprime:"⁗",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',rAarr:"⇛",rArr:"⇒",rAtail:"⤜",rBarr:"⤏",rHar:"⥤",race:"∽̱",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",rarrw:"↝",ratail:"⤚",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",rcedil:"ŗ",rceil:"⌉",rcub:"}",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",reg:"®",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",rhov:"ϱ",rightarrow:"→",rightarrowtail:"↣",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",rightthreetimes:"⋌",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",rsaquo:"›",rscr:"𝓇",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",ruluhar:"⥨",rx:"℞",sacute:"ś",sbquo:"‚",sc:"≻",scE:"⪴",scap:"⪸",scaron:"š",sccue:"≽",sce:"⪰",scedil:"ş",scirc:"ŝ",scnE:"⪶",scnap:"⪺",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",seArr:"⇘",searhk:"⤥",searr:"↘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"𝔰",sfrown:"⌢",sharp:"♯",shchcy:"щ",shcy:"ш",shortmid:"∣",shortparallel:"∥",shy:"­",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",squarf:"▪",squf:"▪",srarr:"→",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",subE:"⫅",subdot:"⪽",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",supE:"⫆",supdot:"⪾",supdsub:"⫘",supe:"⊇",supedot:"⫄",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swArr:"⇙",swarhk:"⤦",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"ß",target:"⌖",tau:"τ",tbrk:"⎴",tcaron:"ť",tcedil:"ţ",tcy:"т",tdot:"⃛",telrec:"⌕",tfr:"𝔱",there4:"∴",therefore:"∴",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",thinsp:" ",thkap:"≈",thksim:"∼",thorn:"þ",tilde:"˜",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",tscy:"ц",tshcy:"ћ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uArr:"⇑",uHar:"⥣",uacute:"ú",uarr:"↑",ubrcy:"ў",ubreve:"ŭ",ucirc:"û",ucy:"у",udarr:"⇅",udblac:"ű",udhar:"⥮",ufisht:"⥾",ufr:"𝔲",ugrave:"ù",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",uml:"¨",uogon:"ų",uopf:"𝕦",uparrow:"↑",updownarrow:"↕",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",upsi:"υ",upsih:"ϒ",upsilon:"υ",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",urtri:"◹",uscr:"𝓊",utdot:"⋰",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uuml:"ü",uwangle:"⦧",vArr:"⇕",vBar:"⫨",vBarv:"⫩",vDash:"⊨",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vcy:"в",vdash:"⊢",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",vert:"|",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"𝕧",vprop:"∝",vrtri:"⊳",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",vzigzag:"⦚",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",wedgeq:"≙",weierp:"℘",wfr:"𝔴",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacute:"ý",yacy:"я",ycirc:"ŷ",ycy:"ы",yen:"¥",yfr:"𝔶",yicy:"ї",yopf:"𝕪",yscr:"𝓎",yucy:"ю",yuml:"ÿ",zacute:"ź",zcaron:"ž",zcy:"з",zdot:"ż",zeetrf:"ℨ",zeta:"ζ",zfr:"𝔷",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",zscr:"𝓏",zwj:"‍",zwnj:"‌"},ube={}.hasOwnProperty;function y_(e){return ube.call(mB,e)?mB[e]:!1}function gB(e,r){const n=Number.parseInt(e,r);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}const pbe=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function hbe(e){return e.replace(pbe,fbe)}function fbe(e,r,n){if(r)return r;if(n.charCodeAt(0)===35){const a=n.charCodeAt(1),i=a===120||a===88;return gB(n.slice(i?2:1),i?16:10)}return y_(n)||e}function mbe(){return{enter:{table:gbe,tableData:yB,tableHeader:yB,tableRow:vbe},exit:{codeText:bbe,table:ybe,tableData:v_,tableHeader:v_,tableRow:v_}}}function gbe(e){const r=e._align;this.enter({type:"table",align:r.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function ybe(e){this.exit(e),this.data.inTable=void 0}function vbe(e){this.enter({type:"tableRow",children:[]},e)}function v_(e){this.exit(e)}function yB(e){this.enter({type:"tableCell",children:[]},e)}function bbe(e){let r=this.resume();this.data.inTable&&(r=r.replace(/\\([\\|])/g,xbe));const n=this.stack[this.stack.length-1];n.type,n.value=r,this.exit(e)}function xbe(e,r){return r==="|"?r:e}function wbe(e){const r=e||{},n=r.tableCellPadding,o=r.tablePipeAlign,a=r.stringLength,i=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:` +`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:f,table:l,tableCell:c,tableRow:s}};function l(g,v,w,x){return d(u(g,w,x),g.align)}function s(g,v,w,x){const k=p(g,w,x),C=d([k]);return C.slice(0,C.indexOf(` +`))}function c(g,v,w,x){const k=w.enter("tableCell"),C=w.enter("phrasing"),_=w.containerPhrasing(g,{...x,before:i,after:i});return C(),k(),_}function d(g,v){return Rve(g,{align:v,alignDelimiters:o,padding:n,stringLength:a})}function u(g,v,w){const x=g.children;let k=-1;const C=[],_=v.enter("table");for(;++ka?0:a+r:r=r>a?a:r,n=n>0?n:0,o.length<1e4)l=Array.from(o),l.unshift(r,n),e.splice(...l);else for(n&&e.splice(r,n);i0?(ya(e,e.length,0,r),e):r}const bB={}.hasOwnProperty;function xB(e){const r={};let n=-1;for(;++n0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}function Fh(e){const r=[];let n=-1,o=0,a=0;for(;++n55295&&i<57344){const s=e.charCodeAt(n+1);i<56320&&s>56319&&s<57344?(l=String.fromCharCode(i,s),a=1):l="�"}else l=String.fromCharCode(i);l&&(r.push(e.slice(o,n),encodeURIComponent(l)),o=n+a+1,l=""),a&&(n+=a,a=0)}return r.join("")+e.slice(o)}function Db(e,r,n){const o=[];let a=-1;for(;++a1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const p={...e[o][1].end},f={...e[n][1].start};RB(p,-c),RB(f,c),l={type:c>1?"strongSequence":"emphasisSequence",start:p,end:{...e[o][1].end}},s={type:c>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:f},i={type:c>1?"strongText":"emphasisText",start:{...e[o][1].end},end:{...e[n][1].start}},a={type:c>1?"strong":"emphasis",start:{...l.start},end:{...s.end}},e[o][1].end={...l.start},e[n][1].start={...s.end},d=[],e[o][1].end.offset-e[o][1].start.offset&&(d=Xa(d,[["enter",e[o][1],r],["exit",e[o][1],r]])),d=Xa(d,[["enter",a,r],["enter",l,r],["exit",l,r],["enter",i,r]]),d=Xa(d,Db(r.parser.constructs.insideSpan.null,e.slice(o+1,n),r)),d=Xa(d,[["exit",i,r],["enter",s,r],["exit",s,r],["exit",a,r]]),e[n][1].end.offset-e[n][1].start.offset?(u=2,d=Xa(d,[["enter",e[n][1],r],["exit",e[n][1],r]])):u=0,ya(e,o-1,n-o+3,d),n=o+d.length-u-2;break}}for(n=-1;++n0&&Vt(j)?Kt(e,C,"linePrefix",i+1)(j):C(j)}function C(j){return j===null||gt(j)?e.check(DB,w,$)(j):(e.enter("codeFlowValue"),_(j))}function _(j){return j===null||gt(j)?(e.exit("codeFlowValue"),C(j)):(e.consume(j),_)}function $(j){return e.exit("codeFenced"),r(j)}function z(j,A,R){let T=0;return O;function O(V){return j.enter("lineEnding"),j.consume(V),j.exit("lineEnding"),P}function P(V){return j.enter("codeFencedFence"),Vt(V)?Kt(j,L,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(V):L(V)}function L(V){return V===s?(j.enter("codeFencedFenceSequence"),H(V)):R(V)}function H(V){return V===s?(T++,j.consume(V),H):T>=l?(j.exit("codeFencedFenceSequence"),Vt(V)?Kt(j,M,"whitespace")(V):M(V)):R(V)}function M(V){return V===null||gt(V)?(j.exit("codeFencedFence"),A(V)):R(V)}}}function Qbe(e,r,n){const o=this;return a;function a(l){return l===null?n(l):(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),i)}function i(l){return o.parser.lazy[o.now().line]?n(l):r(l)}}const k_={name:"codeIndented",tokenize:exe},Jbe={partial:!0,tokenize:txe};function exe(e,r,n){const o=this;return a;function a(d){return e.enter("codeIndented"),Kt(e,i,"linePrefix",5)(d)}function i(d){const u=o.events[o.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?l(d):n(d)}function l(d){return d===null?c(d):gt(d)?e.attempt(Jbe,l,c)(d):(e.enter("codeFlowValue"),s(d))}function s(d){return d===null||gt(d)?(e.exit("codeFlowValue"),l(d)):(e.consume(d),s)}function c(d){return e.exit("codeIndented"),r(d)}}function txe(e,r,n){const o=this;return a;function a(l){return o.parser.lazy[o.now().line]?n(l):gt(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),a):Kt(e,i,"linePrefix",5)(l)}function i(l){const s=o.events[o.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?r(l):gt(l)?a(l):n(l)}}const rxe={name:"codeText",previous:oxe,resolve:nxe,tokenize:axe};function nxe(e){let r=e.length-4,n=3,o,a;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[r][1].type==="lineEnding"||e[r][1].type==="space")){for(o=n;++o=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+r+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return rthis.left.length?this.right.slice(this.right.length-o+this.left.length,this.right.length-r+this.left.length).reverse():this.left.slice(r).concat(this.right.slice(this.right.length-o+this.left.length).reverse())}splice(r,n,o){const a=n||0;this.setCursor(Math.trunc(r));const i=this.right.splice(this.right.length-a,Number.POSITIVE_INFINITY);return o&&Jg(this.left,o),i.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(r){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(r)}pushMany(r){this.setCursor(Number.POSITIVE_INFINITY),Jg(this.left,r)}unshift(r){this.setCursor(0),this.right.push(r)}unshiftMany(r){this.setCursor(0),Jg(this.right,r.reverse())}setCursor(r){if(!(r===this.left.length||r>this.left.length&&this.right.length===0||r<0&&this.left.length===0))if(r=4?r(l):e.interrupt(o.parser.constructs.flow,n,r)(l)}}function PB(e,r,n,o,a,i,l,s,c){const d=c||Number.POSITIVE_INFINITY;let u=0;return p;function p(k){return k===60?(e.enter(o),e.enter(a),e.enter(i),e.consume(k),e.exit(i),f):k===null||k===32||k===41||$b(k)?n(k):(e.enter(o),e.enter(l),e.enter(s),e.enter("chunkString",{contentType:"string"}),w(k))}function f(k){return k===62?(e.enter(i),e.consume(k),e.exit(i),e.exit(a),e.exit(o),r):(e.enter(s),e.enter("chunkString",{contentType:"string"}),g(k))}function g(k){return k===62?(e.exit("chunkString"),e.exit(s),f(k)):k===null||k===60||gt(k)?n(k):(e.consume(k),k===92?v:g)}function v(k){return k===60||k===62||k===92?(e.consume(k),g):g(k)}function w(k){return!u&&(k===null||k===41||Sr(k))?(e.exit("chunkString"),e.exit(s),e.exit(l),e.exit(o),r(k)):u999||g===null||g===91||g===93&&!c||g===94&&!s&&"_hiddenFootnoteSupport"in l.parser.constructs?n(g):g===93?(e.exit(i),e.enter(a),e.consume(g),e.exit(a),e.exit(o),r):gt(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),u):(e.enter("chunkString",{contentType:"string"}),p(g))}function p(g){return g===null||g===91||g===93||gt(g)||s++>999?(e.exit("chunkString"),u(g)):(e.consume(g),c||(c=!Vt(g)),g===92?f:p)}function f(g){return g===91||g===92||g===93?(e.consume(g),s++,p):p(g)}}function OB(e,r,n,o,a,i){let l;return s;function s(f){return f===34||f===39||f===40?(e.enter(o),e.enter(a),e.consume(f),e.exit(a),l=f===40?41:f,c):n(f)}function c(f){return f===l?(e.enter(a),e.consume(f),e.exit(a),e.exit(o),r):(e.enter(i),d(f))}function d(f){return f===l?(e.exit(i),c(l)):f===null?n(f):gt(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),Kt(e,d,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),u(f))}function u(f){return f===l||f===null||gt(f)?(e.exit("chunkString"),d(f)):(e.consume(f),f===92?p:u)}function p(f){return f===l||f===92?(e.consume(f),u):u(f)}}function e1(e,r){let n;return o;function o(a){return gt(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n=!0,o):Vt(a)?Kt(e,o,n?"linePrefix":"lineSuffix")(a):r(a)}}const hxe={name:"definition",tokenize:mxe},fxe={partial:!0,tokenize:gxe};function mxe(e,r,n){const o=this;let a;return i;function i(g){return e.enter("definition"),l(g)}function l(g){return BB.call(o,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(g)}function s(g){return a=Vi(o.sliceSerialize(o.events[o.events.length-1][1]).slice(1,-1)),g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),c):n(g)}function c(g){return Sr(g)?e1(e,d)(g):d(g)}function d(g){return PB(e,u,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(g)}function u(g){return e.attempt(fxe,p,p)(g)}function p(g){return Vt(g)?Kt(e,f,"whitespace")(g):f(g)}function f(g){return g===null||gt(g)?(e.exit("definition"),o.parser.defined.push(a),r(g)):n(g)}}function gxe(e,r,n){return o;function o(s){return Sr(s)?e1(e,a)(s):n(s)}function a(s){return OB(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function i(s){return Vt(s)?Kt(e,l,"whitespace")(s):l(s)}function l(s){return s===null||gt(s)?r(s):n(s)}}const yxe={name:"hardBreakEscape",tokenize:vxe};function vxe(e,r,n){return o;function o(i){return e.enter("hardBreakEscape"),e.consume(i),a}function a(i){return gt(i)?(e.exit("hardBreakEscape"),r(i)):n(i)}}const bxe={name:"headingAtx",resolve:xxe,tokenize:wxe};function xxe(e,r){let n=e.length-2,o=3,a,i;return e[o][1].type==="whitespace"&&(o+=2),n-2>o&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(o===n-1||n-4>o&&e[n-2][1].type==="whitespace")&&(n-=o+1===n?2:4),n>o&&(a={type:"atxHeadingText",start:e[o][1].start,end:e[n][1].end},i={type:"chunkText",start:e[o][1].start,end:e[n][1].end,contentType:"text"},ya(e,o,n-o+1,[["enter",a,r],["enter",i,r],["exit",i,r],["exit",a,r]])),e}function wxe(e,r,n){let o=0;return a;function a(u){return e.enter("atxHeading"),i(u)}function i(u){return e.enter("atxHeadingSequence"),l(u)}function l(u){return u===35&&o++<6?(e.consume(u),l):u===null||Sr(u)?(e.exit("atxHeadingSequence"),s(u)):n(u)}function s(u){return u===35?(e.enter("atxHeadingSequence"),c(u)):u===null||gt(u)?(e.exit("atxHeading"),r(u)):Vt(u)?Kt(e,s,"whitespace")(u):(e.enter("atxHeadingText"),d(u))}function c(u){return u===35?(e.consume(u),c):(e.exit("atxHeadingSequence"),s(u))}function d(u){return u===null||u===35||Sr(u)?(e.exit("atxHeadingText"),s(u)):(e.consume(u),d)}}const kxe=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],IB=["pre","script","style","textarea"],_xe={concrete:!0,name:"htmlFlow",resolveTo:Cxe,tokenize:$xe},Sxe={partial:!0,tokenize:Rxe},Exe={partial:!0,tokenize:zxe};function Cxe(e){let r=e.length;for(;r--&&!(e[r][0]==="enter"&&e[r][1].type==="htmlFlow"););return r>1&&e[r-2][1].type==="linePrefix"&&(e[r][1].start=e[r-2][1].start,e[r+1][1].start=e[r-2][1].start,e.splice(r-2,2)),e}function $xe(e,r,n){const o=this;let a,i,l,s,c;return d;function d(I){return u(I)}function u(I){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(I),p}function p(I){return I===33?(e.consume(I),f):I===47?(e.consume(I),i=!0,w):I===63?(e.consume(I),a=3,o.interrupt?r:U):Bo(I)?(e.consume(I),l=String.fromCharCode(I),x):n(I)}function f(I){return I===45?(e.consume(I),a=2,g):I===91?(e.consume(I),a=5,s=0,v):Bo(I)?(e.consume(I),a=4,o.interrupt?r:U):n(I)}function g(I){return I===45?(e.consume(I),o.interrupt?r:U):n(I)}function v(I){const W="CDATA[";return I===W.charCodeAt(s++)?(e.consume(I),s===W.length?o.interrupt?r:L:v):n(I)}function w(I){return Bo(I)?(e.consume(I),l=String.fromCharCode(I),x):n(I)}function x(I){if(I===null||I===47||I===62||Sr(I)){const W=I===47,K=l.toLowerCase();return!W&&!i&&IB.includes(K)?(a=1,o.interrupt?r(I):L(I)):kxe.includes(l.toLowerCase())?(a=6,W?(e.consume(I),k):o.interrupt?r(I):L(I)):(a=7,o.interrupt&&!o.parser.lazy[o.now().line]?n(I):i?C(I):_(I))}return I===45||xo(I)?(e.consume(I),l+=String.fromCharCode(I),x):n(I)}function k(I){return I===62?(e.consume(I),o.interrupt?r:L):n(I)}function C(I){return Vt(I)?(e.consume(I),C):O(I)}function _(I){return I===47?(e.consume(I),O):I===58||I===95||Bo(I)?(e.consume(I),$):Vt(I)?(e.consume(I),_):O(I)}function $(I){return I===45||I===46||I===58||I===95||xo(I)?(e.consume(I),$):z(I)}function z(I){return I===61?(e.consume(I),j):Vt(I)?(e.consume(I),z):_(I)}function j(I){return I===null||I===60||I===61||I===62||I===96?n(I):I===34||I===39?(e.consume(I),c=I,A):Vt(I)?(e.consume(I),j):R(I)}function A(I){return I===c?(e.consume(I),c=null,T):I===null||gt(I)?n(I):(e.consume(I),A)}function R(I){return I===null||I===34||I===39||I===47||I===60||I===61||I===62||I===96||Sr(I)?z(I):(e.consume(I),R)}function T(I){return I===47||I===62||Vt(I)?_(I):n(I)}function O(I){return I===62?(e.consume(I),P):n(I)}function P(I){return I===null||gt(I)?L(I):Vt(I)?(e.consume(I),P):n(I)}function L(I){return I===45&&a===2?(e.consume(I),B):I===60&&a===1?(e.consume(I),F):I===62&&a===4?(e.consume(I),Y):I===63&&a===3?(e.consume(I),U):I===93&&a===5?(e.consume(I),G):gt(I)&&(a===6||a===7)?(e.exit("htmlFlowData"),e.check(Sxe,Z,H)(I)):I===null||gt(I)?(e.exit("htmlFlowData"),H(I)):(e.consume(I),L)}function H(I){return e.check(Exe,M,Z)(I)}function M(I){return e.enter("lineEnding"),e.consume(I),e.exit("lineEnding"),V}function V(I){return I===null||gt(I)?H(I):(e.enter("htmlFlowData"),L(I))}function B(I){return I===45?(e.consume(I),U):L(I)}function F(I){return I===47?(e.consume(I),l="",q):L(I)}function q(I){if(I===62){const W=l.toLowerCase();return IB.includes(W)?(e.consume(I),Y):L(I)}return Bo(I)&&l.length<8?(e.consume(I),l+=String.fromCharCode(I),q):L(I)}function G(I){return I===93?(e.consume(I),U):L(I)}function U(I){return I===62?(e.consume(I),Y):I===45&&a===2?(e.consume(I),U):L(I)}function Y(I){return I===null||gt(I)?(e.exit("htmlFlowData"),Z(I)):(e.consume(I),Y)}function Z(I){return e.exit("htmlFlow"),r(I)}}function zxe(e,r,n){const o=this;return a;function a(l){return gt(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),i):n(l)}function i(l){return o.parser.lazy[o.now().line]?n(l):r(l)}}function Rxe(e,r,n){return o;function o(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(Qg,r,n)}}const jxe={name:"htmlText",tokenize:Txe};function Txe(e,r,n){const o=this;let a,i,l;return s;function s(U){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(U),c}function c(U){return U===33?(e.consume(U),d):U===47?(e.consume(U),z):U===63?(e.consume(U),_):Bo(U)?(e.consume(U),R):n(U)}function d(U){return U===45?(e.consume(U),u):U===91?(e.consume(U),i=0,v):Bo(U)?(e.consume(U),C):n(U)}function u(U){return U===45?(e.consume(U),g):n(U)}function p(U){return U===null?n(U):U===45?(e.consume(U),f):gt(U)?(l=p,F(U)):(e.consume(U),p)}function f(U){return U===45?(e.consume(U),g):p(U)}function g(U){return U===62?B(U):U===45?f(U):p(U)}function v(U){const Y="CDATA[";return U===Y.charCodeAt(i++)?(e.consume(U),i===Y.length?w:v):n(U)}function w(U){return U===null?n(U):U===93?(e.consume(U),x):gt(U)?(l=w,F(U)):(e.consume(U),w)}function x(U){return U===93?(e.consume(U),k):w(U)}function k(U){return U===62?B(U):U===93?(e.consume(U),k):w(U)}function C(U){return U===null||U===62?B(U):gt(U)?(l=C,F(U)):(e.consume(U),C)}function _(U){return U===null?n(U):U===63?(e.consume(U),$):gt(U)?(l=_,F(U)):(e.consume(U),_)}function $(U){return U===62?B(U):_(U)}function z(U){return Bo(U)?(e.consume(U),j):n(U)}function j(U){return U===45||xo(U)?(e.consume(U),j):A(U)}function A(U){return gt(U)?(l=A,F(U)):Vt(U)?(e.consume(U),A):B(U)}function R(U){return U===45||xo(U)?(e.consume(U),R):U===47||U===62||Sr(U)?T(U):n(U)}function T(U){return U===47?(e.consume(U),B):U===58||U===95||Bo(U)?(e.consume(U),O):gt(U)?(l=T,F(U)):Vt(U)?(e.consume(U),T):B(U)}function O(U){return U===45||U===46||U===58||U===95||xo(U)?(e.consume(U),O):P(U)}function P(U){return U===61?(e.consume(U),L):gt(U)?(l=P,F(U)):Vt(U)?(e.consume(U),P):T(U)}function L(U){return U===null||U===60||U===61||U===62||U===96?n(U):U===34||U===39?(e.consume(U),a=U,H):gt(U)?(l=L,F(U)):Vt(U)?(e.consume(U),L):(e.consume(U),M)}function H(U){return U===a?(e.consume(U),a=void 0,V):U===null?n(U):gt(U)?(l=H,F(U)):(e.consume(U),H)}function M(U){return U===null||U===34||U===39||U===60||U===61||U===96?n(U):U===47||U===62||Sr(U)?T(U):(e.consume(U),M)}function V(U){return U===47||U===62||Sr(U)?T(U):n(U)}function B(U){return U===62?(e.consume(U),e.exit("htmlTextData"),e.exit("htmlText"),r):n(U)}function F(U){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(U),e.exit("lineEnding"),q}function q(U){return Vt(U)?Kt(e,G,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(U):G(U)}function G(U){return e.enter("htmlTextData"),l(U)}}const __={name:"labelEnd",resolveAll:Nxe,resolveTo:Pxe,tokenize:Bxe},Axe={tokenize:Oxe},Dxe={tokenize:Ixe},Mxe={tokenize:Lxe};function Nxe(e){let r=-1;const n=[];for(;++r=3&&(d===null||gt(d))?(e.exit("thematicBreak"),r(d)):n(d)}function c(d){return d===a?(e.consume(d),o++,c):(e.exit("thematicBreakSequence"),Vt(d)?Kt(e,s,"whitespace")(d):s(d))}}const Ko={continuation:{tokenize:Zxe},exit:Qxe,name:"list",tokenize:Xxe},Gxe={partial:!0,tokenize:Jxe},Yxe={partial:!0,tokenize:Kxe};function Xxe(e,r,n){const o=this,a=o.events[o.events.length-1];let i=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0,l=0;return s;function s(g){const v=o.containerState.type||(g===42||g===43||g===45?"listUnordered":"listOrdered");if(v==="listUnordered"?!o.containerState.marker||g===o.containerState.marker:c_(g)){if(o.containerState.type||(o.containerState.type=v,e.enter(v,{_container:!0})),v==="listUnordered")return e.enter("listItemPrefix"),g===42||g===45?e.check(Mb,n,d)(g):d(g);if(!o.interrupt||g===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),c(g)}return n(g)}function c(g){return c_(g)&&++l<10?(e.consume(g),c):(!o.interrupt||l<2)&&(o.containerState.marker?g===o.containerState.marker:g===41||g===46)?(e.exit("listItemValue"),d(g)):n(g)}function d(g){return e.enter("listItemMarker"),e.consume(g),e.exit("listItemMarker"),o.containerState.marker=o.containerState.marker||g,e.check(Qg,o.interrupt?n:u,e.attempt(Gxe,f,p))}function u(g){return o.containerState.initialBlankLine=!0,i++,f(g)}function p(g){return Vt(g)?(e.enter("listItemPrefixWhitespace"),e.consume(g),e.exit("listItemPrefixWhitespace"),f):n(g)}function f(g){return o.containerState.size=i+o.sliceSerialize(e.exit("listItemPrefix"),!0).length,r(g)}}function Zxe(e,r,n){const o=this;return o.containerState._closeFlow=void 0,e.check(Qg,a,i);function a(s){return o.containerState.furtherBlankLines=o.containerState.furtherBlankLines||o.containerState.initialBlankLine,Kt(e,r,"listItemIndent",o.containerState.size+1)(s)}function i(s){return o.containerState.furtherBlankLines||!Vt(s)?(o.containerState.furtherBlankLines=void 0,o.containerState.initialBlankLine=void 0,l(s)):(o.containerState.furtherBlankLines=void 0,o.containerState.initialBlankLine=void 0,e.attempt(Yxe,r,l)(s))}function l(s){return o.containerState._closeFlow=!0,o.interrupt=void 0,Kt(e,e.attempt(Ko,r,n),"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function Kxe(e,r,n){const o=this;return Kt(e,a,"listItemIndent",o.containerState.size+1);function a(i){const l=o.events[o.events.length-1];return l&&l[1].type==="listItemIndent"&&l[2].sliceSerialize(l[1],!0).length===o.containerState.size?r(i):n(i)}}function Qxe(e){e.exit(this.containerState.type)}function Jxe(e,r,n){const o=this;return Kt(e,a,"listItemPrefixWhitespace",o.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function a(i){const l=o.events[o.events.length-1];return!Vt(i)&&l&&l[1].type==="listItemPrefixWhitespace"?r(i):n(i)}}const LB={name:"setextUnderline",resolveTo:ewe,tokenize:twe};function ewe(e,r){let n=e.length,o,a,i;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){o=n;break}e[n][1].type==="paragraph"&&(a=n)}else e[n][1].type==="content"&&e.splice(n,1),!i&&e[n][1].type==="definition"&&(i=n);const l={type:"setextHeading",start:{...e[o][1].start},end:{...e[e.length-1][1].end}};return e[a][1].type="setextHeadingText",i?(e.splice(a,0,["enter",l,r]),e.splice(i+1,0,["exit",e[o][1],r]),e[o][1].end={...e[i][1].end}):e[o][1]=l,e.push(["exit",l,r]),e}function twe(e,r,n){const o=this;let a;return i;function i(d){let u=o.events.length,p;for(;u--;)if(o.events[u][1].type!=="lineEnding"&&o.events[u][1].type!=="linePrefix"&&o.events[u][1].type!=="content"){p=o.events[u][1].type==="paragraph";break}return!o.parser.lazy[o.now().line]&&(o.interrupt||p)?(e.enter("setextHeadingLine"),a=d,l(d)):n(d)}function l(d){return e.enter("setextHeadingLineSequence"),s(d)}function s(d){return d===a?(e.consume(d),s):(e.exit("setextHeadingLineSequence"),Vt(d)?Kt(e,c,"lineSuffix")(d):c(d))}function c(d){return d===null||gt(d)?(e.exit("setextHeadingLine"),r(d)):n(d)}}const rwe={tokenize:dwe,partial:!0};function nwe(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:lwe,continuation:{tokenize:swe},exit:cwe}},text:{91:{name:"gfmFootnoteCall",tokenize:iwe},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:owe,resolveTo:awe}}}}function owe(e,r,n){const o=this;let a=o.events.length;const i=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let l;for(;a--;){const c=o.events[a][1];if(c.type==="labelImage"){l=c;break}if(c.type==="gfmFootnoteCall"||c.type==="labelLink"||c.type==="label"||c.type==="image"||c.type==="link")break}return s;function s(c){if(!l||!l._balanced)return n(c);const d=Vi(o.sliceSerialize({start:l.end,end:o.now()}));return d.codePointAt(0)!==94||!i.includes(d.slice(1))?n(c):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),r(c))}}function awe(e,r){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const o={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},a={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};a.end.column++,a.end.offset++,a.end._bufferIndex++;const i={type:"gfmFootnoteCallString",start:Object.assign({},a.end),end:Object.assign({},e[e.length-1][1].start)},l={type:"chunkString",contentType:"string",start:Object.assign({},i.start),end:Object.assign({},i.end)},s=[e[n+1],e[n+2],["enter",o,r],e[n+3],e[n+4],["enter",a,r],["exit",a,r],["enter",i,r],["enter",l,r],["exit",l,r],["exit",i,r],e[e.length-2],e[e.length-1],["exit",o,r]];return e.splice(n,e.length-n+1,...s),e}function iwe(e,r,n){const o=this,a=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let i=0,l;return s;function s(p){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(p),e.exit("gfmFootnoteCallLabelMarker"),c}function c(p){return p!==94?n(p):(e.enter("gfmFootnoteCallMarker"),e.consume(p),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",d)}function d(p){if(i>999||p===93&&!l||p===null||p===91||Sr(p))return n(p);if(p===93){e.exit("chunkString");const f=e.exit("gfmFootnoteCallString");return a.includes(Vi(o.sliceSerialize(f)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(p),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),r):n(p)}return Sr(p)||(l=!0),i++,e.consume(p),p===92?u:d}function u(p){return p===91||p===92||p===93?(e.consume(p),i++,d):d(p)}}function lwe(e,r,n){const o=this,a=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);let i,l=0,s;return c;function c(v){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(v),e.exit("gfmFootnoteDefinitionLabelMarker"),d}function d(v){return v===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(v),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",u):n(v)}function u(v){if(l>999||v===93&&!s||v===null||v===91||Sr(v))return n(v);if(v===93){e.exit("chunkString");const w=e.exit("gfmFootnoteDefinitionLabelString");return i=Vi(o.sliceSerialize(w)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(v),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),f}return Sr(v)||(s=!0),l++,e.consume(v),v===92?p:u}function p(v){return v===91||v===92||v===93?(e.consume(v),l++,u):u(v)}function f(v){return v===58?(e.enter("definitionMarker"),e.consume(v),e.exit("definitionMarker"),a.includes(i)||a.push(i),Kt(e,g,"gfmFootnoteDefinitionWhitespace")):n(v)}function g(v){return r(v)}}function swe(e,r,n){return e.check(Qg,r,e.attempt(rwe,r,n))}function cwe(e){e.exit("gfmFootnoteDefinition")}function dwe(e,r,n){const o=this;return Kt(e,a,"gfmFootnoteDefinitionIndent",5);function a(i){const l=o.events[o.events.length-1];return l&&l[1].type==="gfmFootnoteDefinitionIndent"&&l[2].sliceSerialize(l[1],!0).length===4?r(i):n(i)}}function uwe(e){let n=(e||{}).singleTilde;const o={name:"strikethrough",tokenize:i,resolveAll:a};return n==null&&(n=!0),{text:{126:o},insideSpan:{null:[o]},attentionMarkers:{null:[126]}};function a(l,s){let c=-1;for(;++c1?c(v):(l.consume(v),p++,g);if(p<2&&!n)return c(v);const x=l.exit("strikethroughSequenceTemporary"),k=Lh(v);return x._open=!k||k===2&&!!w,x._close=!w||w===2&&!!k,s(v)}}}class pwe{constructor(){this.map=[]}add(r,n,o){hwe(this,r,n,o)}consume(r){if(this.map.sort(function(i,l){return i[0]-l[0]}),this.map.length===0)return;let n=this.map.length;const o=[];for(;n>0;)n-=1,o.push(r.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),r.length=this.map[n][0];o.push(r.slice()),r.length=0;let a=o.pop();for(;a;){for(const i of a)r.push(i);a=o.pop()}this.map.length=0}}function hwe(e,r,n,o){let a=0;if(!(n===0&&o.length===0)){for(;a-1;){const M=o.events[P][1].type;if(M==="lineEnding"||M==="linePrefix")P--;else break}const L=P>-1?o.events[P][1].type:null,H=L==="tableHead"||L==="tableRow"?j:c;return H===j&&o.parser.lazy[o.now().line]?n(O):H(O)}function c(O){return e.enter("tableHead"),e.enter("tableRow"),d(O)}function d(O){return O===124||(l=!0,i+=1),u(O)}function u(O){return O===null?n(O):gt(O)?i>1?(i=0,o.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(O),e.exit("lineEnding"),g):n(O):Vt(O)?Kt(e,u,"whitespace")(O):(i+=1,l&&(l=!1,a+=1),O===124?(e.enter("tableCellDivider"),e.consume(O),e.exit("tableCellDivider"),l=!0,u):(e.enter("data"),p(O)))}function p(O){return O===null||O===124||Sr(O)?(e.exit("data"),u(O)):(e.consume(O),O===92?f:p)}function f(O){return O===92||O===124?(e.consume(O),p):p(O)}function g(O){return o.interrupt=!1,o.parser.lazy[o.now().line]?n(O):(e.enter("tableDelimiterRow"),l=!1,Vt(O)?Kt(e,v,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(O):v(O))}function v(O){return O===45||O===58?x(O):O===124?(l=!0,e.enter("tableCellDivider"),e.consume(O),e.exit("tableCellDivider"),w):z(O)}function w(O){return Vt(O)?Kt(e,x,"whitespace")(O):x(O)}function x(O){return O===58?(i+=1,l=!0,e.enter("tableDelimiterMarker"),e.consume(O),e.exit("tableDelimiterMarker"),k):O===45?(i+=1,k(O)):O===null||gt(O)?$(O):z(O)}function k(O){return O===45?(e.enter("tableDelimiterFiller"),C(O)):z(O)}function C(O){return O===45?(e.consume(O),C):O===58?(l=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(O),e.exit("tableDelimiterMarker"),_):(e.exit("tableDelimiterFiller"),_(O))}function _(O){return Vt(O)?Kt(e,$,"whitespace")(O):$(O)}function $(O){return O===124?v(O):O===null||gt(O)?!l||a!==i?z(O):(e.exit("tableDelimiterRow"),e.exit("tableHead"),r(O)):z(O)}function z(O){return n(O)}function j(O){return e.enter("tableRow"),A(O)}function A(O){return O===124?(e.enter("tableCellDivider"),e.consume(O),e.exit("tableCellDivider"),A):O===null||gt(O)?(e.exit("tableRow"),r(O)):Vt(O)?Kt(e,A,"whitespace")(O):(e.enter("data"),R(O))}function R(O){return O===null||O===124||Sr(O)?(e.exit("data"),A(O)):(e.consume(O),O===92?T:R)}function T(O){return O===92||O===124?(e.consume(O),R):R(O)}}function ywe(e,r){let n=-1,o=!0,a=0,i=[0,0,0,0],l=[0,0,0,0],s=!1,c=0,d,u,p;const f=new pwe;for(;++nn[2]+1){const v=n[2]+1,w=n[3]-n[2]-1;e.add(v,w,[])}}e.add(n[3]+1,0,[["exit",p,r]])}return a!==void 0&&(i.end=Object.assign({},Vh(r.events,a)),e.add(a,0,[["exit",i,r]]),i=void 0),i}function FB(e,r,n,o,a){const i=[],l=Vh(r.events,n);a&&(a.end=Object.assign({},l),i.push(["exit",a,r])),o.end=Object.assign({},l),i.push(["exit",o,r]),e.add(n+1,0,i)}function Vh(e,r){const n=e[r],o=n[0]==="enter"?"start":"end";return n[1][o]}const vwe={name:"tasklistCheck",tokenize:xwe};function bwe(){return{text:{91:vwe}}}function xwe(e,r,n){const o=this;return a;function a(c){return o.previous!==null||!o._gfmTasklistFirstContentOfListItem?n(c):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(c),e.exit("taskListCheckMarker"),i)}function i(c){return Sr(c)?(e.enter("taskListCheckValueUnchecked"),e.consume(c),e.exit("taskListCheckValueUnchecked"),l):c===88||c===120?(e.enter("taskListCheckValueChecked"),e.consume(c),e.exit("taskListCheckValueChecked"),l):n(c)}function l(c){return c===93?(e.enter("taskListCheckMarker"),e.consume(c),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(c)}function s(c){return gt(c)?r(c):Vt(c)?e.check({tokenize:wwe},r,n)(c):n(c)}}function wwe(e,r,n){return Kt(e,o,"whitespace");function o(a){return a===null?n(a):r(a)}}function kwe(e){return xB([Abe(),nwe(),uwe(e),mwe(),bwe()])}const _we={};function Swe(e){const r=this,n=e||_we,o=r.data(),a=o.micromarkExtensions||(o.micromarkExtensions=[]),i=o.fromMarkdownExtensions||(o.fromMarkdownExtensions=[]),l=o.toMarkdownExtensions||(o.toMarkdownExtensions=[]);a.push(kwe(n)),i.push(Cbe()),l.push($be(n))}const Ewe=/^\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)\]/i,Cwe=/^\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)(\/.*)?\]/i,$we=({legacyTitle:e=!1,tagName:r="div"}={})=>n=>{m_(n,"blockquote",(o,a,i)=>{let l="",s="",c=!0,d=o.children.map(u=>{if(c&&u.type==="paragraph"){const p=u.children[0],f=p.type==="text"?p.value:"",g=e?Cwe:Ewe,v=f.match(g);if(v&&(c=!1,l=v[1].toLocaleLowerCase(),s=e&&v[2]||l.toLocaleUpperCase(),f.includes(` +`)&&(u.children[0]={type:"text",value:f.replace(g,"").replace(/^\n+/,"")}),!f.includes(` +`))){const w=[];u.children.forEach((x,k)=>{k!=0&&(k==1&&x.type==="break"||w.push(x))}),u.children=[...w]}}return u});l&&(o.data={hName:r,hProperties:{className:["markdown-alert",`markdown-alert-${l}`],dir:"auto"}},d.unshift({type:"paragraph",children:[zwe(l),{type:"text",value:s.replace(/^\//,"")}],data:{hProperties:{className:"markdown-alert-title",dir:"auto"}}})),o.children=[...d]})};function zwe(e){let r=Rwe[e]??"";return{type:"emphasis",data:{hName:"svg",hProperties:{className:["octicon"],viewBox:"0 0 16 16",width:"16",height:"16",ariaHidden:"true"}},children:[{type:"emphasis",data:{hName:"path",hProperties:{d:r}},children:[]}]}}const Rwe={note:"M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z",tip:"M8 1.5c-2.363 0-4 1.69-4 3.75 0 .984.424 1.625.984 2.304l.214.253c.223.264.47.556.673.848.284.411.537.896.621 1.49a.75.75 0 0 1-1.484.211c-.04-.282-.163-.547-.37-.847a8.456 8.456 0 0 0-.542-.68c-.084-.1-.173-.205-.268-.32C3.201 7.75 2.5 6.766 2.5 5.25 2.5 2.31 4.863 0 8 0s5.5 2.31 5.5 5.25c0 1.516-.701 2.5-1.328 3.259-.095.115-.184.22-.268.319-.207.245-.383.453-.541.681-.208.3-.33.565-.37.847a.751.751 0 0 1-1.485-.212c.084-.593.337-1.078.621-1.489.203-.292.45-.584.673-.848.075-.088.147-.173.213-.253.561-.679.985-1.32.985-2.304 0-2.06-1.637-3.75-4-3.75ZM5.75 12h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1 0-1.5ZM6 15.25a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 0 1.5h-2.5a.75.75 0 0 1-.75-.75Z",important:"M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v9.5A1.75 1.75 0 0 1 14.25 13H8.06l-2.573 2.573A1.458 1.458 0 0 1 3 14.543V13H1.75A1.75 1.75 0 0 1 0 11.25Zm1.75-.25a.25.25 0 0 0-.25.25v9.5c0 .138.112.25.25.25h2a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h6.5a.25.25 0 0 0 .25-.25v-9.5a.25.25 0 0 0-.25-.25Zm7 2.25v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 9a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",warning:"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",caution:"M4.47.22A.749.749 0 0 1 5 0h6c.199 0 .389.079.53.22l4.25 4.25c.141.14.22.331.22.53v6a.749.749 0 0 1-.22.53l-4.25 4.25A.749.749 0 0 1 11 16H5a.749.749 0 0 1-.53-.22L.22 11.53A.749.749 0 0 1 0 11V5c0-.199.079-.389.22-.53Zm.84 1.28L1.5 5.31v5.38l3.81 3.81h5.38l3.81-3.81V5.31L10.69 1.5ZM8 4a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 8 4Zm0 8a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"},jwe={tokenize:Twe};function Twe(e){const r=e.attempt(this.parser.constructs.contentInitial,o,a);let n;return r;function o(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),Kt(e,r,"linePrefix")}function a(s){return e.enter("paragraph"),i(s)}function i(s){const c=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=c),n=c,l(s)}function l(s){if(s===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(s);return}return gt(s)?(e.consume(s),e.exit("chunkText"),i):(e.consume(s),l)}}const Awe={tokenize:Dwe},VB={tokenize:Mwe};function Dwe(e){const r=this,n=[];let o=0,a,i,l;return s;function s(_){if(ol))return;const A=r.events.length;let R=A,T,O;for(;R--;)if(r.events[R][0]==="exit"&&r.events[R][1].type==="chunkFlow"){if(T){O=r.events[R][1].end;break}T=!0}for(k(o),j=A;j_;){const z=n[$];r.containerState=z[1],z[0].exit.call(r,e)}n.length=_}function C(){a.write([null]),i=void 0,a=void 0,r.containerState._closeFlow=void 0}}function Mwe(e,r,n){return Kt(e,e.attempt(this.parser.constructs.document,r,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}const Nwe={tokenize:Pwe};function Pwe(e){const r=this,n=e.attempt(Qg,o,e.attempt(this.parser.constructs.flowInitial,a,Kt(e,e.attempt(this.parser.constructs.flow,a,e.attempt(sxe,a)),"linePrefix")));return n;function o(i){if(i===null){e.consume(i);return}return e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),r.currentConstruct=void 0,n}function a(i){if(i===null){e.consume(i);return}return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),r.currentConstruct=void 0,n}}const Bwe={resolveAll:HB()},Owe=qB("string"),Iwe=qB("text");function qB(e){return{resolveAll:HB(e==="text"?Lwe:void 0),tokenize:r};function r(n){const o=this,a=this.parser.constructs[e],i=n.attempt(a,l,s);return l;function l(u){return d(u)?i(u):s(u)}function s(u){if(u===null){n.consume(u);return}return n.enter("data"),n.consume(u),c}function c(u){return d(u)?(n.exit("data"),i(u)):(n.consume(u),c)}function d(u){if(u===null)return!0;const p=a[u];let f=-1;if(p)for(;++f-1){const s=l[0];typeof s=="string"?l[0]=s.slice(o):l.shift()}i>0&&l.push(e[a].slice(0,i))}return l}function Hwe(e,r){let n=-1;const o=[];let a;for(;++n0){const jr=Ye.tokenStack[Ye.tokenStack.length-1];(jr[1]||KB).call(Ye,void 0,jr[0])}for(ke.position={start:Xc(be.length>0?be[0][1].start:{line:1,column:1,offset:0}),end:Xc(be.length>0?be[be.length-2][1].end:{line:1,column:1,offset:0})},xt=-1;++xt1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(l)}]};e.patch(r,c);const d={type:"element",tagName:"sup",properties:{},children:[c]};return e.patch(r,d),e.applyData(r,d)}function n3e(e,r){const n={type:"element",tagName:"h"+r.depth,properties:{},children:e.all(r)};return e.patch(r,n),e.applyData(r,n)}function o3e(e,r){if(e.options.allowDangerousHtml){const n={type:"raw",value:r.value};return e.patch(r,n),e.applyData(r,n)}}function QB(e,r){const n=r.referenceType;let o="]";if(n==="collapsed"?o+="[]":n==="full"&&(o+="["+(r.label||r.identifier)+"]"),r.type==="imageReference")return[{type:"text",value:"!["+r.alt+o}];const a=e.all(r),i=a[0];i&&i.type==="text"?i.value="["+i.value:a.unshift({type:"text",value:"["});const l=a[a.length-1];return l&&l.type==="text"?l.value+=o:a.push({type:"text",value:o}),a}function a3e(e,r){const n=String(r.identifier).toUpperCase(),o=e.definitionById.get(n);if(!o)return QB(e,r);const a={src:Fh(o.url||""),alt:r.alt};o.title!==null&&o.title!==void 0&&(a.title=o.title);const i={type:"element",tagName:"img",properties:a,children:[]};return e.patch(r,i),e.applyData(r,i)}function i3e(e,r){const n={src:Fh(r.url)};r.alt!==null&&r.alt!==void 0&&(n.alt=r.alt),r.title!==null&&r.title!==void 0&&(n.title=r.title);const o={type:"element",tagName:"img",properties:n,children:[]};return e.patch(r,o),e.applyData(r,o)}function l3e(e,r){const n={type:"text",value:r.value.replace(/\r?\n|\r/g," ")};e.patch(r,n);const o={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(r,o),e.applyData(r,o)}function s3e(e,r){const n=String(r.identifier).toUpperCase(),o=e.definitionById.get(n);if(!o)return QB(e,r);const a={href:Fh(o.url||"")};o.title!==null&&o.title!==void 0&&(a.title=o.title);const i={type:"element",tagName:"a",properties:a,children:e.all(r)};return e.patch(r,i),e.applyData(r,i)}function c3e(e,r){const n={href:Fh(r.url)};r.title!==null&&r.title!==void 0&&(n.title=r.title);const o={type:"element",tagName:"a",properties:n,children:e.all(r)};return e.patch(r,o),e.applyData(r,o)}function d3e(e,r,n){const o=e.all(r),a=n?u3e(n):JB(r),i={},l=[];if(typeof r.checked=="boolean"){const u=o[0];let p;u&&u.type==="element"&&u.tagName==="p"?p=u:(p={type:"element",tagName:"p",properties:{},children:[]},o.unshift(p)),p.children.length>0&&p.children.unshift({type:"text",value:" "}),p.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:r.checked,disabled:!0},children:[]}),i.className=["task-list-item"]}let s=-1;for(;++s1}function p3e(e,r){const n={},o=e.all(r);let a=-1;for(typeof r.start=="number"&&r.start!==1&&(n.start=r.start);++a0){const l={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},s=vP(r.children[1]),c=yP(r.children[r.children.length-1]);s&&c&&(l.position={start:s,end:c}),a.push(l)}const i={type:"element",tagName:"table",properties:{},children:e.wrap(a,!0)};return e.patch(r,i),e.applyData(r,i)}function y3e(e,r,n){const o=n?n.children:void 0,i=(o?o.indexOf(r):1)===0?"th":"td",l=n&&n.type==="table"?n.align:void 0,s=l?l.length:r.children.length;let c=-1;const d=[];for(;++c0,!0),o[0]),a=o.index+o[0].length,o=n.exec(r);return i.push(rO(r.slice(a),a>0,!1)),i.join("")}function rO(e,r,n){let o=0,a=e.length;if(r){let i=e.codePointAt(o);for(;i===eO||i===tO;)o++,i=e.codePointAt(o)}if(n){let i=e.codePointAt(a-1);for(;i===eO||i===tO;)a--,i=e.codePointAt(a-1)}return a>o?e.slice(o,a):""}function x3e(e,r){const n={type:"text",value:b3e(String(r.value))};return e.patch(r,n),e.applyData(r,n)}function w3e(e,r){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(r,n),e.applyData(r,n)}const k3e={blockquote:Kwe,break:Qwe,code:Jwe,delete:e3e,emphasis:t3e,footnoteReference:r3e,heading:n3e,html:o3e,imageReference:a3e,image:i3e,inlineCode:l3e,linkReference:s3e,link:c3e,listItem:d3e,list:p3e,paragraph:h3e,root:f3e,strong:m3e,table:g3e,tableCell:v3e,tableRow:y3e,text:x3e,thematicBreak:w3e,toml:Pb,yaml:Pb,definition:Pb,footnoteDefinition:Pb};function Pb(){}function _3e(e,r){const n=[{type:"text",value:"↩"}];return r>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(r)}]}),n}function S3e(e,r){return"Back to reference "+(e+1)+(r>1?"-"+r:"")}function E3e(e){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||_3e,o=e.options.footnoteBackLabel||S3e,a=e.options.footnoteLabel||"Footnotes",i=e.options.footnoteLabelTagName||"h2",l=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let c=-1;for(;++c0&&v.push({type:"text",value:" "});let C=typeof n=="string"?n:n(c,g);typeof C=="string"&&(C={type:"text",value:C}),v.push({type:"element",tagName:"a",properties:{href:"#"+r+"fnref-"+f+(g>1?"-"+g:""),dataFootnoteBackref:"",ariaLabel:typeof o=="string"?o:o(c,g),className:["data-footnote-backref"]},children:Array.isArray(C)?C:[C]})}const x=u[u.length-1];if(x&&x.type==="element"&&x.tagName==="p"){const C=x.children[x.children.length-1];C&&C.type==="text"?C.value+=" ":x.children.push({type:"text",value:" "}),x.children.push(...v)}else u.push(...v);const k={type:"element",tagName:"li",properties:{id:r+"fn-"+f},children:e.wrap(u,!0)};e.patch(d,k),s.push(k)}if(s.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:i,properties:{...Yg(l),id:"footnote-label"},children:[{type:"text",value:a}]},{type:"text",value:` +`},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:` +`}]}}const C_={}.hasOwnProperty,C3e={};function $3e(e,r){const n=r||C3e,o=new Map,a=new Map,i=new Map,l={...k3e,...n.handlers},s={all:d,applyData:R3e,definitionById:o,footnoteById:a,footnoteCounts:i,footnoteOrder:[],handlers:l,one:c,options:n,patch:z3e,wrap:T3e};return m_(e,function(u){if(u.type==="definition"||u.type==="footnoteDefinition"){const p=u.type==="definition"?o:a,f=String(u.identifier).toUpperCase();p.has(f)||p.set(f,u)}}),s;function c(u,p){const f=u.type,g=s.handlers[f];if(C_.call(s.handlers,f)&&g)return g(s,u,p);if(s.options.passThrough&&s.options.passThrough.includes(f)){if("children"in u){const{children:w,...x}=u,k=Yg(x);return k.children=s.all(u),k}return Yg(u)}return(s.options.unknownHandler||j3e)(s,u,p)}function d(u){const p=[];if("children"in u){const f=u.children;let g=-1;for(;++g0&&n.push({type:"text",value:` -`}),n}function mB(e){let r=0,n=e.charCodeAt(r);for(;n===9||n===32;)r++,n=e.charCodeAt(r);return e.slice(r)}function gB(e,r){const n=T_e(e,r),o=n.one(e,void 0),a=S_e(n),i=Array.isArray(o)?{type:"root",children:o}:o||{type:"root",children:[]};return a&&i.children.push({type:"text",value:` -`},a),i}function $_e(e,r){return e&&"run"in e?async function(n,o){const a=gB(n,{file:o,...r});await e.run(a,o)}:function(n,o){return gB(n,{file:o,...e||r})}}function yB(e){if(e)throw e}var F8,bB;function P_e(){if(bB)return F8;bB=1;var e=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=function(d){return typeof Array.isArray=="function"?Array.isArray(d):r.call(d)==="[object Array]"},i=function(d){if(!d||r.call(d)!=="[object Object]")return!1;var u=e.call(d,"constructor"),h=d.constructor&&d.constructor.prototype&&e.call(d.constructor.prototype,"isPrototypeOf");if(d.constructor&&!u&&!h)return!1;var f;for(f in d);return typeof f>"u"||e.call(d,f)},s=function(d,u){n&&u.name==="__proto__"?n(d,u.name,{enumerable:!0,configurable:!0,value:u.newValue,writable:!0}):d[u.name]=u.newValue},l=function(d,u){if(u==="__proto__")if(e.call(d,u)){if(o)return o(d,u).value}else return;return d[u]};return F8=function c(){var d,u,h,f,g,b,x=arguments[0],w=1,k=arguments.length,C=!1;for(typeof x=="boolean"&&(C=x,x=arguments[1]||{},w=2),(x==null||typeof x!="object"&&typeof x!="function")&&(x={});ws.length;let c;l&&s.push(a);try{c=e.apply(this,s)}catch(d){const u=d;if(l&&n)throw u;return a(u)}l||(c&&c.then&&typeof c.then=="function"?c.then(i,a):c instanceof Error?a(c):i(c))}function a(s,...l){n||(n=!0,r(s,...l))}function i(s){a(null,s)}}class sa extends Error{constructor(r,n,o){super(),typeof n=="string"&&(o=n,n=void 0);let a="",i={},s=!1;if(n&&("line"in n&&"column"in n?i={place:n}:"start"in n&&"end"in n?i={place:n}:"type"in n?i={ancestors:[n],place:n.position}:i={...n}),typeof r=="string"?a=r:!i.cause&&r&&(s=!0,a=r.message,i.cause=r),!i.ruleId&&!i.source&&typeof o=="string"){const c=o.indexOf(":");c===-1?i.ruleId=o:(i.source=o.slice(0,c),i.ruleId=o.slice(c+1))}if(!i.place&&i.ancestors&&i.ancestors){const c=i.ancestors[i.ancestors.length-1];c&&(i.place=c.position)}const l=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=l?l.column:void 0,this.fatal=void 0,this.file,this.message=a,this.line=l?l.line:void 0,this.name=F1(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=s&&i.cause&&typeof i.cause.stack=="string"?i.cause.stack:"",this.actual,this.expected,this.note,this.url}}sa.prototype.file="",sa.prototype.name="",sa.prototype.reason="",sa.prototype.message="",sa.prototype.stack="",sa.prototype.column=void 0,sa.prototype.line=void 0,sa.prototype.ancestors=void 0,sa.prototype.cause=void 0,sa.prototype.fatal=void 0,sa.prototype.place=void 0,sa.prototype.ruleId=void 0,sa.prototype.source=void 0;const al={basename:O_e,dirname:j_e,extname:L_e,join:B_e,sep:"/"};function O_e(e,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');H1(e);let n=0,o=-1,a=e.length,i;if(r===void 0||r.length===0||r.length>e.length){for(;a--;)if(e.codePointAt(a)===47){if(i){n=a+1;break}}else o<0&&(i=!0,o=a+1);return o<0?"":e.slice(n,o)}if(r===e)return"";let s=-1,l=r.length-1;for(;a--;)if(e.codePointAt(a)===47){if(i){n=a+1;break}}else s<0&&(i=!0,s=a+1),l>-1&&(e.codePointAt(a)===r.codePointAt(l--)?l<0&&(o=a):(l=-1,o=s));return n===o?o=s:o<0&&(o=e.length),e.slice(n,o)}function j_e(e){if(H1(e),e.length===0)return".";let r=-1,n=e.length,o;for(;--n;)if(e.codePointAt(n)===47){if(o){r=n;break}}else o||(o=!0);return r<0?e.codePointAt(0)===47?"/":".":r===1&&e.codePointAt(0)===47?"//":e.slice(0,r)}function L_e(e){H1(e);let r=e.length,n=-1,o=0,a=-1,i=0,s;for(;r--;){const l=e.codePointAt(r);if(l===47){if(s){o=r+1;break}continue}n<0&&(s=!0,n=r+1),l===46?a<0?a=r:i!==1&&(i=1):a>-1&&(i=-1)}return a<0||n<0||i===0||i===1&&a===n-1&&a===o+1?"":e.slice(a,n)}function B_e(...e){let r=-1,n;for(;++r0&&e.codePointAt(e.length-1)===47&&(n+="/"),r?"/"+n:n}function H_e(e,r){let n="",o=0,a=-1,i=0,s=-1,l,c;for(;++s<=e.length;){if(s2){if(c=n.lastIndexOf("/"),c!==n.length-1){c<0?(n="",o=0):(n=n.slice(0,c),o=n.length-1-n.lastIndexOf("/")),a=s,i=0;continue}}else if(n.length>0){n="",o=0,a=s,i=0;continue}}r&&(n=n.length>0?n+"/..":"..",o=2)}else n.length>0?n+="/"+e.slice(a+1,s):n=e.slice(a+1,s),o=s-a-1;a=s,i=0}else l===46&&i>-1?i++:i=-1}return n}function H1(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const V_e={cwd:q_e};function q_e(){return"/"}function q8(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function U_e(e){if(typeof e=="string")e=new URL(e);else if(!q8(e)){const r=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw r.code="ERR_INVALID_ARG_TYPE",r}if(e.protocol!=="file:"){const r=new TypeError("The URL must be of scheme file");throw r.code="ERR_INVALID_URL_SCHEME",r}return W_e(e)}function W_e(e){if(e.hostname!==""){const o=new TypeError('File URL host must be "localhost" or empty on darwin');throw o.code="ERR_INVALID_FILE_URL_HOST",o}const r=e.pathname;let n=-1;for(;++n0){let[g,...b]=u;const x=o[f][1];V8(x)&&V8(g)&&(g=H8(!0,x,g)),o[f]=[d,g,...b]}}}}const Z_e=new G8().freeze();function X8(e,r){if(typeof r!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function K8(e,r){if(typeof r!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Z8(e,r){if(r)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function xB(e){if(!V8(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function wB(e,r,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+r+"` instead")}function P3(e){return Q_e(e)?e:new Y_e(e)}function Q_e(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function J_e(e){return typeof e=="string"||e6e(e)}function e6e(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}function t6e(){return Z_e().use(K5e).use(R5e).use($_e,{allowDangerousHtml:!0,clobberPrefix:"",tableCellPadding:!1,tight:!0}).use(Mxe).use(qxe).use(G2e,{closeSelfClosing:!0,tightSelfClosing:!0})}function r6e(e){return String(t6e().processSync(e.trim())).trim()}function n6e(e){return A3(sB(e),{includeHtml:!1,includeImageAlt:!1})}var Q8,kB;function o6e(){if(kB)return Q8;kB=1;var e=iO(),r=o3();function n(){this.clear()}return n.prototype.clear=function(){this.items=[],this.offset=0,this.size=0},n.prototype.enqueue=function(o){return this.items.push(o),++this.size},n.prototype.dequeue=function(){if(this.size){var o=this.items[this.offset];return++this.offset*2>=this.items.length&&(this.items=this.items.slice(this.offset),this.offset=0),this.size--,o}},n.prototype.peek=function(){if(this.size)return this.items[this.offset]},n.prototype.forEach=function(o,a){a=arguments.length>1?a:this;for(var i=this.offset,s=0,l=this.items.length;i=o.length)return{done:!0};var i=o[a];return a++,{value:i,done:!1}})},n.prototype.entries=function(){var o=this.items,a=this.offset,i=0;return new e(function(){if(a>=o.length)return{done:!0};var s=o[a];return a++,{value:[i++,s],done:!1}})},typeof Symbol<"u"&&(n.prototype[Symbol.iterator]=n.prototype.values),n.prototype.toString=function(){return this.toArray().join(",")},n.prototype.toJSON=function(){return this.toArray()},n.prototype.inspect=function(){var o=this.toArray();return Object.defineProperty(o,"constructor",{value:n,enumerable:!1}),o},typeof Symbol<"u"&&(n.prototype[Symbol.for("nodejs.util.inspect.custom")]=n.prototype.inspect),n.from=function(o){var a=new n;return r(o,function(i){a.enqueue(i)}),a},n.of=function(){return n.from(arguments)},Q8=n,Q8}var a6e=o6e();const J8=m1(a6e);var eE,_B;function i6e(){if(_B)return eE;_B=1;function e(r){if(typeof r!="function")throw new Error("mnemonist/DefaultMap.constructor: expecting a function.");this.items=new Map,this.factory=r,this.size=0}return e.prototype.clear=function(){this.items.clear(),this.size=0},e.prototype.get=function(r){var n=this.items.get(r);return typeof n>"u"&&(n=this.factory(r,this.size),this.items.set(r,n),this.size++),n},e.prototype.peek=function(r){return this.items.get(r)},e.prototype.set=function(r,n){return this.items.set(r,n),this.size=this.items.size,this},e.prototype.has=function(r){return this.items.has(r)},e.prototype.delete=function(r){var n=this.items.delete(r);return this.size=this.items.size,n},e.prototype.forEach=function(r,n){n=arguments.length>1?n:this,this.items.forEach(r,n)},e.prototype.entries=function(){return this.items.entries()},e.prototype.keys=function(){return this.items.keys()},e.prototype.values=function(){return this.items.values()},typeof Symbol<"u"&&(e.prototype[Symbol.iterator]=e.prototype.entries),e.prototype.inspect=function(){return this.items},typeof Symbol<"u"&&(e.prototype[Symbol.for("nodejs.util.inspect.custom")]=e.prototype.inspect),e.autoIncrement=function(){var r=0;return function(){return r++}},eE=e,eE}var s6e=i6e();const Xn=m1(s6e);function xf(e){return e.summary??e.description}function wf(e){return e.description??e.summary}function la(e){return!!e}const V1="@group";function l6e(e){return e.kind===V1}function EB(e,r){return at(typeof e=="string"&&e!=""),"@"+e+"."+r}function c6e(e){return e.startsWith("@")}function d6e(e){if(!e.startsWith("@"))return[null,e];const r=e.indexOf(".");if(r<2)throw new Error("Invalid global FQN");const n=e.slice(1,r),o=e.slice(r+1);return[n,o]}function q1(e){return e.startsWith("step-")}function SB(e){if(!q1(e))throw new Error(`Invalid step edge id: ${e}`);return parseFloat(e.slice(5))}function u6e(...e){return Do(p6e,e)}function p6e(e,r){let n={...e};for(let[o,a]of Object.entries(n))r(a,o,e)&&delete n[o];return n}var tE={},CB;function rE(){return CB||(CB=1,(function(e){var r=Math.pow(2,8)-1,n=Math.pow(2,16)-1,o=Math.pow(2,32)-1,a=Math.pow(2,7)-1,i=Math.pow(2,15)-1,s=Math.pow(2,31)-1;e.getPointerArray=function(c){var d=c-1;if(d<=r)return Uint8Array;if(d<=n)return Uint16Array;if(d<=o)return Uint32Array;throw new Error("mnemonist: Pointer Array of size > 4294967295 is not supported.")},e.getSignedPointerArray=function(c){var d=c-1;return d<=a?Int8Array:d<=i?Int16Array:d<=s?Int32Array:Float64Array},e.getNumberType=function(c){return c===(c|0)?Math.sign(c)===-1?c<=127&&c>=-128?Int8Array:c<=32767&&c>=-32768?Int16Array:Int32Array:c<=255?Uint8Array:c<=65535?Uint16Array:Uint32Array:Float64Array};var l={Uint8Array:1,Int8Array:2,Uint16Array:3,Int16Array:4,Uint32Array:5,Int32Array:6,Float32Array:7,Float64Array:8};e.getMinimalRepresentation=function(c,d){var u=null,h=0,f,g,b,x,w;for(x=0,w=c.length;xh&&(h=f,u=g);return u},e.isTypedArray=function(c){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView(c)},e.concat=function(){var c=0,d,u,h;for(d=0,h=arguments.length;d"u"))return this.splayOnTop(s),this.V[s]},a.prototype.peek=function(i){var s=this.items[i];if(!(typeof s>"u"))return this.V[s]},a.prototype.forEach=function(i,s){s=arguments.length>1?s:this;for(var l=0,c=this.size,d=this.head,u=this.K,h=this.V,f=this.forward;l=s)return{done:!0};var u=c[l];return i++,i=s)return{done:!0};var u=c[l];return i++,i=s)return{done:!0};var h=c[l],f=d[l];return i++,i"u"))return this.splayOnTop(s),this.V[s]},a.prototype.peek=function(i){var s=this.items.get(i);if(!(typeof s>"u"))return this.V[s]},a.prototype.splayOnTop=e.prototype.splayOnTop,a.prototype.forEach=e.prototype.forEach,a.prototype.keys=e.prototype.keys,a.prototype.values=e.prototype.values,a.prototype.entries=e.prototype.entries,typeof Symbol<"u"&&(a.prototype[Symbol.iterator]=a.prototype.entries),a.prototype.inspect=e.prototype.inspect,a.from=function(i,s,l,c){if(arguments.length<2){if(c=o.guessLength(i),typeof c!="number")throw new Error("mnemonist/lru-cache.from: could not guess iterable length. Please provide desired capacity as last argument.")}else arguments.length===2&&(c=s,s=null,l=null);var d=new a(s,l,c);return r(i,function(u,h){d.set(h,u)}),d},oE=a,oE}var m6e=f6e();const DB=m1(m6e);function U1(e){return u6e(e,r=>r===void 0)}const g6e=Symbol.for("text"),y6e=Symbol.for("html"),oc="",$B=new DB(500),PB=new DB(500);class or{static getOrCreateFromText(r){if(r.trim()===oc)return or.EMPTY;let n=PB.get(r);return n||(n=new or({txt:r}),PB.set(r,n),n)}static getOrCreateFromMarkdown(r){if(r.trim()===oc)return or.EMPTY;let n=$B.get(r);return n||(n=new or({md:r}),$B.set(r,n),n)}static memoize(r,n,o){return yr(r,n,()=>or.from(o))}static from(r){return r==null||r===or.EMPTY?or.EMPTY:r instanceof or?r:typeof r=="string"?this.getOrCreateFromText(r):"isEmpty"in r&&r.isEmpty?or.EMPTY:"md"in r?this.getOrCreateFromMarkdown(r.md):this.getOrCreateFromText(r.txt)}static EMPTY=new class extends or{isEmpty=!0;nonEmpty=!1;isMarkdown=!1;$source=null;constructor(){super({txt:oc})}get text(){return null}get md(){return null}get html(){return null}};$source;isEmpty;nonEmpty;isMarkdown;constructor(r){this.isMarkdown=!1,typeof r=="string"?(this.$source={txt:r},this.isEmpty=r.trim()===oc):(this.$source=r,this.isEmpty=!0,"md"in r?(this.isEmpty=r.md===oc,this.isMarkdown=!0):this.isEmpty=r.txt===oc),this.nonEmpty=!this.isEmpty}get text(){if(this.isEmpty||this.$source===null)return oc;const r=this.$source;return"txt"in r?r.txt:yr(this,g6e,()=>n6e(r.md))}get md(){if(this.isEmpty||this.$source===null)return oc;const r=this.$source;if("md"in r)return r.md;if("txt"in r)return r.txt;Zi(r)}get html(){if(this.isEmpty||this.$source===null)return oc;const r=this.$source;return"txt"in r?r.txt:yr(this,y6e,()=>r6e(r.md))}equals(r){return this===r?!0:r instanceof or?this.isEmpty&&r.isEmpty?!0:this.isEmpty!==r.isEmpty||this.isMarkdown!==r.isMarkdown?!1:this.isMarkdown?this.$source?.md===r.$source?.md:this.$source?.txt===r.$source?.txt:!1}}function MB(e){return r=>!e(r)}function b6e(...e){return Do(v6e,e)}const v6e=(e,r)=>r.every(n=>n(e));function x6e(...e){return Do(w6e,e)}const w6e=(e,r)=>r.some(n=>n(e));function rs(e){return e==null}function zB(e,r){return e[Gu]===r}const Gu="_stage",W1="_type",IB="_layout";function k6e(e){return la(e.kind)&&!la(e.element)}function _6e(e){return"tag"in e}function E6e(e){return"kind"in e}function S6e(e){return"participant"in e}function C6e(e){return"not"in e}function T6e(e){return"and"in e}function A6e(e){return"or"in e}function Xu(e){switch(!0){case S6e(e):{const r=e.participant,n=Xu(e.operator);return R6e(r,n)}case _6e(e):{if(cd(e.tag)||"eq"in e.tag){const n=cd(e.tag)?e.tag:e.tag.eq;return o=>Array.isArray(o.tags)&&o.tags.includes(n)}const r=e.tag.neq;return n=>!Array.isArray(n.tags)||!n.tags.includes(r)}case E6e(e):{if(cd(e.kind)||"eq"in e.kind){const n=cd(e.kind)?e.kind:e.kind.eq;return o=>o.kind===n}const r=e.kind.neq;return n=>rs(n.kind)||n.kind!==r}case C6e(e):{const r=Xu(e.not);return MB(r)}case T6e(e):{const r=e.and.map(Xu);return b6e(r)}case A6e(e):{const r=e.or.map(Xu);return x6e(r)}default:Zi(e)}}function R6e(e,r){return n=>{if(!n.source||!n.target)return!1;switch(e){case"source":return r(n.source);case"target":return r(n.target)}}}function N6e(e){return e._type==="dynamic"}var Y1;(e=>{function r(c){return"model"in c&&!("project"in c)}e.isElementRef=r;function n(c){return"project"in c&&"model"in c}e.isImportRef=n;function o(c){if(cd(c))throw new Error(`Expected FqnRef, got: "${c}"`);if(n(c))return EB(c.project,c.model);if(r(c))return c.model;throw new Error("Expected FqnRef.ModelRef or FqnRef.ImportRef")}e.flatten=o;function a(c){return r(c)||n(c)}e.isModelRef=a;function i(c){return"deployment"in c&&"element"in c}e.isInsideInstanceRef=i;function s(c){return"deployment"in c&&!("element"in c)}e.isDeploymentElementRef=s;function l(c){return s(c)||i(c)}e.isDeploymentRef=l})(Y1||(Y1={}));function aE(e){return q1(e)&&e.includes(".")?e.slice(0,e.indexOf(".")+1):null}var il;(e=>{function r({x:d,y:u,width:h,height:f}){return{x:d+h/2,y:u+f/2}}e.center=r;function n(d){const{x1:u,y1:h,x2:f,y2:g}=iE.fromPoints(d);return{x:u,y:h,width:f-u,height:g-h}}e.fromPoints=n;function o(...d){if(at(Kl(d,1),"No boxes provided"),d.length===1)return d[0];let u=1/0,h=1/0,f=-1/0,g=-1/0;for(const b of d)u=Math.min(u,b.x),h=Math.min(h,b.y),f=Math.max(f,b.x+b.width),g=Math.max(g,b.y+b.height);return{x:u,y:h,width:f-u,height:g-h}}e.merge=o;function a(d){return{x:Math.min(d.x1,d.x2),y:Math.min(d.y1,d.y2),width:Math.abs(d.x2-d.x1),height:Math.abs(d.y2-d.y1)}}e.fromRectBox=a;function i(d){return{x1:d.x,y1:d.y,x2:d.x+d.width,y2:d.y+d.height}}e.toRectBox=i;function s(d,u){return u===0?d:{x:d.x-u,y:d.y-u,width:d.width+u*2,height:d.height+u*2}}e.expand=s;function l(d,u){return u===0?d:{x:d.x+u,y:d.y+u,width:d.width-u*2,height:d.height-u*2}}e.shrink=l;function c(d,u){return d===u?!0:d.x<=u.x&&d.y<=u.y&&d.x+d.width>=u.x+u.width&&d.y+d.height>=u.y+u.height}e.includes=c})(il||(il={}));var iE;(e=>{function r({x1:s,y1:l,x2:c,y2:d}){return{x:(s+c)/2,y:(l+d)/2}}e.center=r;function n(s){at(s.length>0,"At least one point is required");let l=1/0,c=1/0,d=-1/0,u=-1/0;for(const[h,f]of s)l=Math.min(l,h),c=Math.min(c,f),d=Math.max(d,h),u=Math.max(u,f);return{x1:l,y1:c,x2:d,y2:u}}e.fromPoints=n;function o(...s){at(s.length>0,"No boxes provided");let l=1/0,c=1/0,d=-1/0,u=-1/0;for(const h of s)l=Math.min(l,h.x1),c=Math.min(c,h.y1),d=Math.max(d,h.x2),u=Math.max(u,h.y2);return{x1:l,y1:c,x2:d,y2:u}}e.merge=o;function a(s){return{x:s.x1,y:s.y1,width:s.x2-s.x1,height:s.y2-s.y1}}e.toBBox=a;function i(s,l){return s===l?!0:s.x1<=l.x1&&s.y1<=l.y1&&s.x2>=l.x2&&s.y2>=l.y2}e.includes=i})(iE||(iE={}));function OB(e){const r=typeof e=="string"?e:e.color;return r.startsWith("#")||r.startsWith("rgb")}const sE={done:!1,hasNext:!1};function Ku(e,...r){let n=e,o=r.map(i=>"lazy"in i?D6e(i):void 0),a=0;for(;aLB(n,e,...r):LB(e,...r)}function LB(e,...r){let n=e;for(let o of r){if(n==null)return;n=n[o]}return n}function lE(...e){return Do(P6e,e)}function P6e(e,r){let n=[...e];return n.sort(r),n}function M3(...e){return Do(M6e,e,z6e)}const M6e=(e,r)=>e.map(r),z6e=e=>(r,n,o)=>({done:!1,hasNext:!0,next:e(r,n,o)}),I6e=["tomato","grass","blue","ruby","orange","indigo","pink","teal","purple","amber","crimson","red","lime","yellow","violet"];function O6e(e,r,n){let o=e.get(r);return o||(o=n(r),e.set(r,o)),o}var cE={},BB;function j6e(){return BB||(BB=1,(function(e){e.intersection=function(){if(arguments.length<2)throw new Error("mnemonist/Set.intersection: needs at least two arguments.");var r=new Set,n=1/0,o=null,a,i,s=arguments.length;for(i=0;in.size)return!1;for(;a=o.next(),!a.done;)if(!n.has(a.value))return!1;return!0},e.isSuperset=function(r,n){return e.isSubset(n,r)},e.add=function(r,n){for(var o=n.values(),a;a=o.next(),!a.done;)r.add(a.value)},e.subtract=function(r,n){for(var o=n.values(),a;a=o.next(),!a.done;)r.delete(a.value)},e.intersect=function(r,n){for(var o=r.values(),a;a=o.next(),!a.done;)n.has(a.value)||r.delete(a.value)},e.disjunct=function(r,n){for(var o=r.values(),a,i=[];a=o.next(),!a.done;)n.has(a.value)&&i.push(a.value);for(o=n.values();a=o.next(),!a.done;)r.has(a.value)||r.add(a.value);for(var s=0,l=i.length;sn.size&&(o=r,r=n,n=o),r.size===0)return 0;if(r===n)return r.size;for(var a=r.values(),i,s=0;i=a.next(),!i.done;)n.has(i.value)&&s++;return s},e.unionSize=function(r,n){var o=e.intersectionSize(r,n);return r.size+n.size-o},e.jaccard=function(r,n){var o=e.intersectionSize(r,n);if(o===0)return 0;var a=r.size+n.size-o;return o/a},e.overlap=function(r,n){var o=e.intersectionSize(r,n);return o===0?0:o/Math.min(r.size,n.size)}})(cE)),cE}var FB=j6e();function dE(...e){let r=new Set;for(const n of e)for(const o of n)r.add(o);return r}function _f(e,...r){let n=new Set;if(e.size===0)return n;let o=Kl(r,2)?FB.intersection(...r):r[0];if(o.size===0)return n;for(const a of e)o.has(a)&&n.add(a);return n}function uE(e,r){if(e.size===0)return new Set;if(r.size===0)return new Set(e);let n=new Set;for(const o of e)r.has(o)||n.add(o);return n}function L6e(e,r){return e.size===r.size&&[...e].every(n=>r.has(n))}function pE(e,r){return FB.symmetricDifference(e,r)}function B6e(e){let r=5381;const n=e.length;at(n>0,"stringHash: empty string");for(let o=0;o>>0).toString(36)}const z3=e=>typeof e=="function";function Qu(e,r){const n=r??e;at(z3(n));function*o(a){for(const i of a)n(i)&&(yield i)}return r?o(e):o}function X1(e,r){const n=r??e;at(z3(n));function o(a){for(const i of a)if(n(i))return i}return r?o(e):o}function hE(e){return e?HB(e):HB}function HB(e){const r=e[Symbol.iterator](),{value:n}=r.next();return n}function F6e(e,r){const n=e;at(z3(n));function*o(a){for(const i of a)yield n(i)}return o}function K1(e){return e?Array.from(e):r=>Array.from(r)}function H6e(e){return e?new Set(e):r=>new Set(r)}function VB(e,r){const n=r??e;at(z3(n));function o(a){for(const i of a)if(n(i))return!0;return!1}return r?o(e):o}function V6e(e,r){const n=e;at(n>=0,"Count must be a non-negative number");function*o(a){let i=0;for(const s of a){if(i>=n)break;yield s,i++}}return a=>o(a)}function q6e(e,r){let n=Math.ceil(e),o=Math.floor(r);if(o{setTimeout(()=>{n(U6e)},r??100)})}function I3(e){const r=dd([...e]),n=new Set(r),o=new Map(r.map(s=>[s._literalId,s])),a=new Xn(()=>null),i=r.reduce((s,l,c,d)=>(s.set(l,d.slice(c+1).filter(rO(l)).map(u=>(n.delete(u),u)).reduce((u,h)=>(u.some(to(h))||(u.push(h),a.set(h,l)),u),[])),s),new Xn(()=>[]));return{sorted:r,byId:s=>bt(o.get(s),`Element not found by id: ${s}`),root:n,parent:s=>a.get(s),children:s=>i.get(s),flatten:()=>new Set([...n,...r.reduce((s,l)=>{const c=i.get(l);return c.length===0?(s.push(l),s):(c.length>1&&s.push(...c),s)},[])])}}const fE=(e,r)=>e.size>2&&r.size!==e.size?new Set(dd([...I3(e).flatten(),...r])):e.size>1?new Set(dd([...e])):e;function UB(e,r,n){const o=c=>r.has(c);let a=new Set([e]);const i={incomers:new Set,subjects:new Set([e]),outgoers:new Set};let s=new Set(n.incoming.flatMap(c=>{if(i.subjects.add(c.target),i.incomers.add(c.source),a.add(c.target),c.target!==e){let h=c.target.parent;for(;h&&h!==e;)a.add(h),h=h.parent}let d=c.source;const u=[];for(;u.push(d),!(o(d)||!d.parent);)d=d.parent;return u})),l=new Set(n.outgoing.flatMap(c=>{if(i.subjects.add(c.source),i.outgoers.add(c.target),a.add(c.source),c.source!==e){let h=c.source.parent;for(;h&&h!==e;)a.add(h),h=h.parent}let d=c.target;const u=[];for(;u.push(d),!(o(d)||!d.parent);)d=d.parent;return u}));return{incomers:fE(s,i.incomers),incoming:new Set(n.incoming),subjects:fE(a,i.subjects),outgoing:new Set(n.outgoing),outgoers:fE(l,i.outgoers)}}function WB(e,r,n,o="global"){const a=n?r.findView(n):null;if(o==="view")return at(a,'Scope view id is required when scope is "view"'),W6e(e,a,r);const i=r.element(e),s=H6e(i.ascendingSiblings());return UB(i,s,{incoming:[...i.incoming()],outgoing:[...i.outgoing()]})}function W6e(e,r,n){const o=n.element(e);let a={incoming:K1(Qu(o.incoming(),l=>r.includesRelation(l.id))),outgoing:K1(Qu(o.outgoing(),l=>r.includesRelation(l.id)))};const i=rO(o),s=new Set([...o.ascendingSiblings(),...Ku(r.elements(),F6e(l=>l.element),Qu(l=>l!==o&&i(l)))]);return UB(o,s,a)}var YB;(e=>{e.isInside=r=>n=>to(r,n.source.id)&&to(r,n.target.id),e.isDirectedBetween=(r,n)=>o=>(o.source.id===r||to(r,o.source.id))&&(o.target.id===n||to(n,o.target.id)),e.isAnyBetween=(r,n)=>{const o=(0,e.isDirectedBetween)(r,n),a=(0,e.isDirectedBetween)(n,r);return i=>o(i)||a(i)},e.isIncoming=r=>n=>(n.target.id===r||to(r,n.target.id))&&!to(r,n.source.id),e.isOutgoing=r=>n=>(n.source.id===r||to(r,n.source.id))&&!to(r,n.target.id),e.isAnyInOut=r=>{const n=(0,e.isIncoming)(r),o=(0,e.isOutgoing)(r);return a=>n(a)||o(a)}})(YB||(YB={}));const Y6e=Symbol.for("nodejs.util.inspect.custom");function G6e(e,r){let n=r.length-e.length;if(n===1){let[o,...a]=r;return Ku(o,{lazy:e,lazyArgs:a})}if(n===0){let o={lazy:e,lazyArgs:r};return Object.assign(a=>Ku(a,o),o)}throw Error("Wrong number of arguments")}function Ef(e){return e===""||e===void 0?!0:Array.isArray(e)?e.length===0:Object.keys(e).length===0}function mE(...e){return Do(X6e,e)}function X6e(e,r){if(e===r||Object.is(e,r))return!0;if(typeof e!="object"||!e||typeof r!="object"||!r)return!1;if(e instanceof Map&&r instanceof Map)return K6e(e,r);if(e instanceof Set&&r instanceof Set)return Z6e(e,r);let n=Object.keys(e);if(n.length!==Object.keys(r).length)return!1;for(let o of n){if(!Object.hasOwn(r,o))return!1;let{[o]:a}=e,{[o]:i}=r;if(a!==i||!Object.is(a,i))return!1}return!0}function K6e(e,r){if(e.size!==r.size)return!1;for(let[n,o]of e){let a=r.get(n);if(o!==a||!Object.is(o,a))return!1}return!0}function Z6e(e,r){if(e.size!==r.size)return!1;for(let n of e)if(!r.has(n))return!1;return!0}function O3(...e){return G6e(Q6e,e)}function Q6e(){let e=new Set;return r=>e.has(r)?sE:(e.add(r),{done:!1,hasNext:!0,next:r})}class GB{Aux;get style(){return yr(this,"style",()=>U1({shape:this.$model.$styles.defaults.shape,color:this.$model.$styles.defaults.color,border:this.$model.$styles.defaults.border,opacity:this.$model.$styles.defaults.opacity,size:this.$model.$styles.defaults.size,padding:this.$model.$styles.defaults.padding,textSize:this.$model.$styles.defaults.text,...this.$node.style}))}get name(){return g1(this.id)}get shape(){return this.style.shape}get color(){return this.style.color}get summary(){return or.memoize(this,"summary",xf(this.$node))}get description(){return or.memoize(this,"description",wf(this.$node))}get technology(){return this.$node.technology??null}get links(){return this.$node.links??[]}ancestors(){return this.$model.ancestors(this)}commonAncestor(r){const n=b1(this.id,r.id);return n?this.$model.node(n):null}siblings(){return this.$model.siblings(this)}isSibling(r){return this.parent===r.parent}*ascendingSiblings(){yield*this.siblings();for(const r of this.ancestors())yield*r.siblings()}*descendingSiblings(){for(const r of[...this.ancestors()].reverse())yield*r.siblings();yield*this.siblings()}incoming(r="all"){return this.$model.incoming(this,r)}outgoing(r="all"){return this.$model.outgoing(this,r)}*incomers(r="all"){const n=new Set;for(const o of this.incoming(r))n.has(o.source.id)||(n.add(o.source.id),yield o.source)}*outgoers(r="all"){const n=new Set;for(const o of this.outgoing(r))n.has(o.target.id)||(n.add(o.target.id),yield o.target)}*views(){for(const r of this.$model.views())r._type==="deployment"&&r.includesDeployment(this.id)&&(yield r)}isDeploymentNode(){return!1}isInstance(){return!1}get allOutgoing(){return yr(this,Symbol.for("allOutgoing"),()=>yd.from(new Set(this.outgoingModelRelationships()),new Set(this.outgoing())))}get allIncoming(){return yr(this,Symbol.for("allIncoming"),()=>yd.from(new Set(this.incomingModelRelationships()),new Set(this.incoming())))}hasMetadata(){return!!this.$node.metadata&&!Ef(this.$node.metadata)}getMetadata(r){return r?this.$node.metadata?.[r]:this.$node.metadata??{}}isTagged(r){return this.tags.includes(r)}}class XB extends GB{constructor(r,n){super(),this.$model=r,this.$node=n,this.id=n.id,this._literalId=n.id,this.title=n.title,this.hierarchyLevel=r3(n.id)}id;_literalId;title;hierarchyLevel;get parent(){return this.$model.parent(this)}get kind(){return this.$node.kind}get tags(){return yr(this,Symbol.for("tags"),()=>O3([...this.$node.tags??[],...this.$model.$model.specification.deployments[this.kind]?.tags??[]]))}children(){return this.$model.children(this)}descendants(r="desc"){return this.$model.descendants(this,r)}isDeploymentNode(){return!0}*instances(){for(const r of this.descendants("desc"))r.isInstance()&&(yield r)}onlyOneInstance(){const r=this.children();if(r.size!==1)return null;const n=hE(r);return n?n.isInstance()?n:n.onlyOneInstance():null}_relationshipsFromInstances=null;relationshipsFromInstances(){if(this._relationshipsFromInstances)return this._relationshipsFromInstances;const{outgoing:r,incoming:n}=this._relationshipsFromInstances={outgoing:new Set,incoming:new Set};for(const o of this.instances()){for(const a of o.element.outgoing())r.add(a);for(const a of o.element.incoming())n.add(a)}return this._relationshipsFromInstances}outgoingModelRelationships(){return this.relationshipsFromInstances().outgoing.values()}incomingModelRelationships(){return this.relationshipsFromInstances().incoming.values()}internalModelRelationships(){const{outgoing:r,incoming:n}=this.relationshipsFromInstances();return _f(n,r)}}class KB extends GB{constructor(r,n,o){super(),this.$model=r,this.$instance=n,this.element=o,this.id=n.id,this._literalId=n.id,this.title=n.title??o.title,this.hierarchyLevel=r3(n.id)}id;_literalId;title;hierarchyLevel;get $node(){return this.$instance}get parent(){return bt(this.$model.parent(this),`Parent of ${this.id} not found`)}get style(){return yr(this,"style",()=>U1({shape:this.$model.$styles.defaults.shape,color:this.$model.$styles.defaults.color,border:this.$model.$styles.defaults.border,opacity:this.$model.$styles.defaults.opacity,size:this.$model.$styles.defaults.size,padding:this.$model.$styles.defaults.padding,textSize:this.$model.$styles.defaults.text,...this.element.$element.style,...this.$instance.style}))}get tags(){return yr(this,Symbol.for("tags"),()=>O3([...this.$instance.tags??[],...this.element.tags]))}get kind(){return this.element.kind}get summary(){return or.memoize(this,"summary",xf(this.$instance)??xf(this.element.$element))}get description(){return or.memoize(this,"description",wf(this.$instance)??wf(this.element.$element))}get technology(){return this.$instance.technology??this.element.technology??null}get links(){return this.$instance.links??this.element.links}isInstance(){return!0}outgoingModelRelationships(){return this.element.outgoing()}incomingModelRelationships(){return this.element.incoming()}*views(){for(const r of this.$model.views())if(r._type==="deployment"){if(r.includesDeployment(this.id)){yield r;continue}r.includesDeployment(this.parent.id)&&this.parent.onlyOneInstance()&&(yield r)}}}class J6e{constructor(r,n){this.instance=r,this.element=n}get id(){return this.instance.id}get _literalId(){return this.instance.id}get style(){return yr(this,"style ",()=>({shape:this.element.shape,color:this.element.color,...this.element.$element.style}))}get shape(){return this.element.shape}get color(){return this.element.color}get title(){return this.element.title}get summary(){return this.element.summary}get description(){return this.element.description}get technology(){return this.element.technology}isDeploymentNode(){return!1}isInstance(){return!1}}class e8e{constructor(r,n){this.$model=r,this.$relationship=n,this.source=r.deploymentRef(n.source),this.target=r.deploymentRef(n.target);const o=b1(this.source.id,this.target.id);this.boundary=o?this.$model.node(o):null}boundary;source;target;get id(){return this.$relationship.id}get expression(){return`${this.source.id} -> ${this.target.id}`}get title(){return la(this.$relationship.title)?this.$relationship.title:null}get technology(){return this.$relationship.technology??null}get hasSummary(){return!!this.$relationship.summary&&!!this.$relationship.description&&!mE(this.$relationship.summary,this.$relationship.description)}get summary(){return or.memoize(this,"summary",xf(this.$relationship))}get description(){return or.memoize(this,"description",wf(this.$relationship))}get tags(){return this.$relationship.tags??[]}get kind(){return this.$relationship.kind??null}get navigateTo(){return this.$relationship.navigateTo?this.$model.$model.view(this.$relationship.navigateTo):null}get links(){return this.$relationship.links??[]}get color(){return this.$relationship.color??this.$model.$styles.defaults.relationship.color}get line(){return this.$relationship.line??this.$model.$styles.defaults.relationship.line}get head(){return this.$relationship.head??this.$model.$styles.defaults.relationship.arrow}get tail(){return this.$relationship.tail}*views(){for(const r of this.$model.views())r.includesRelation(this.id)&&(yield r)}isDeploymentRelation(){return!0}isModelRelation(){return!1}hasMetadata(){return!!this.$relationship.metadata&&!Ef(this.$relationship.metadata)}getMetadata(r){return r?this.$relationship.metadata?.[r]:this.$relationship.metadata??{}}isTagged(r){return this.tags.includes(r)}}class yd{constructor(r=new Set,n=new Set){this.model=r,this.deployment=n}static empty(){return new yd}static from(r,n){return new yd(new Set(r),new Set(n))}get isEmpty(){return this.model.size===0&&this.deployment.size===0}get nonEmpty(){return this.model.size>0||this.deployment.size>0}get size(){return this.model.size+this.deployment.size}intersect(r){return yd.from(_f(this.model,r.model),_f(this.deployment,r.deployment))}difference(r){return yd.from(uE(this.model,r.model),uE(this.deployment,r.deployment))}union(r){return yd.from(dE(this.model,r.model),dE(this.deployment,r.deployment))}}function ZB(e,r){return n=>e.source===n.source&&e.target===n.target}function gE(e,r,n="directed"){if(e===r)return[];if(tO(e,r))return[];const o=_f(e.allOutgoing,r.allIncoming),a=o.size>0?new pi(e,r,o):null;if(n==="directed")return a?[a]:[];const i=_f(e.allIncoming,r.allOutgoing),s=i.size>0?new pi(r,e,i):null;return a&&s?[a,s]:a?[a]:s?[s]:[]}function QB(e,r,n="both"){if(e.allIncoming.size===0&&e.allOutgoing.size===0)return[];const o=[],a=[];for(const i of r)if(e!==i)for(const s of gE(e,i,n))s.source===e?o.push(s):a.push(s);return[...o,...a]}function t8e(e){return[...e].reduce((r,n,o,a)=>(o===a.length-1||r.push(...QB(n,a.slice(o+1),"both")),r),[])}const r8e={__proto__:null,findConnection:gE,findConnectionsBetween:QB,findConnectionsWithin:t8e};class pi{constructor(r,n,o=new Set){this.source=r,this.target=n,this.relations=o,this.id=B6e(`model:${r.id}:${n.id}`)}id;_boundary;get boundary(){return this._boundary??=this.source.commonAncestor(this.target)}get expression(){return`${this.source.id} -> ${this.target.id}`}get isDirect(){return this.nonEmpty()&&!this.isImplicit}get isImplicit(){return this.nonEmpty()&&VB(this.relations,MB(ZB(this)))}get directRelations(){return new Set(Qu(this.relations,ZB(this)))}nonEmpty(){return this.relations.size>0}mergeWith(r){return at(this.source.id===r.source.id,"Cannot merge connections with different sources"),at(this.target.id===r.target.id,"Cannot merge connections with different targets"),new pi(this.source,this.target,dE(this.relations,r.relations))}difference(r){return new pi(this.source,this.target,uE(this.relations,r.relations))}intersect(r){return at(r instanceof pi,"Cannot intersect connection with different type"),new pi(this.source,this.target,_f(this.relations,r.relations))}equals(r){at(r instanceof pi,"Cannot merge connection with different type");const n=r;return this.id===n.id&&this.source.id===n.source.id&&this.target.id===n.target.id&&L6e(this.relations,n.relations)}update(r){return new pi(this.source,this.target,r)}[Y6e](r,n,o){const a=this.toString();return Object.defineProperty(a,"constructor",{value:pi,enumerable:!1}),a}toString(){return[this.expression,this.relations.size?" relations:":" relations: [ ]",...[...this.relations].map(r=>" "+r.expression)].join(` -`)}reversed(r=!1){if(!r)return new pi(this.target,this.source);const[n]=gE(this.target,this.source,"directed");return n??new pi(this.target,this.source,new Set)}}const JB={asc:(e,r)=>e>r,desc:(e,r)=>ee(i,a)}function yE(e,r,...n){let o=typeof e=="function"?e:e[0],a=typeof e=="function"?"asc":e[1],{[a]:i}=JB,s=r===void 0?void 0:yE(r,...n);return(l,c)=>{let d=o(l),u=o(c);return i(d,u)?1:i(u,d)?-1:s?.(l,c)??0}}function o8e(e){if(eF(e))return!0;if(typeof e!="object"||!Array.isArray(e))return!1;let[r,n,...o]=e;return eF(r)&&typeof n=="string"&&n in JB&&o.length===0}const eF=e=>typeof e=="function"&&e.length===1;function a8e(...e){return Do(i8e,e,s8e)}const i8e=(e,r)=>e.filter(r),s8e=e=>(r,n,o)=>e(r,n,o)?{done:!1,hasNext:!0,next:r}:sE;function tF(...e){return Do(l8e,e,c8e)}const l8e=(e,r)=>e.flatMap(r),c8e=e=>(r,n,o)=>{let a=e(r,n,o);return Array.isArray(a)?{done:!1,hasNext:!0,hasMany:!0,next:a}:{done:!1,hasNext:!0,next:a}};function bE(...e){return Do(d8e,e)}const d8e=(e,r)=>{let n=Object.create(null);for(let o=0;oe.at(-1);function vE(...e){return Do(f8e,e)}function f8e(e,r){let n={};for(let[o,a]of Object.entries(e))n[o]=r(a,o,e);return n}function xE(...e){return r=>Ku(r,...e)}function rF(...e){return n8e(m8e,e)}const m8e=(e,r)=>[...e].sort(r);function nF(e,r,n){return typeof r=="number"||r===void 0?o=>o.split(e,r):e.split(r,n)}function Z1(...e){return Do(Object.values,e)}class j3{constructor(r,n){this.$model=r,this.$element=n,this.id=this.$element.id,this._literalId=this.$element.id;const[o,a]=d6e(this.id);o?(this.imported={from:o,fqn:a},this.hierarchyLevel=r3(a)):(this.imported=null,this.hierarchyLevel=r3(this.id))}Aux;id;_literalId;hierarchyLevel;imported;get name(){return g1(this.id)}get parent(){return this.$model.parent(this)}get kind(){return this.$element.kind}get shape(){return this.style.shape}get color(){return this.style.color}get icon(){return this.style.icon??null}get tags(){return yr(this,Symbol.for("tags"),()=>O3([...this.$element.tags??[],...this.$model.specification.elements[this.$element.kind]?.tags??[]]))}get title(){return this.$element.title}get hasSummary(){return!!this.$element.summary&&!!this.$element.description&&!mE(this.$element.summary,this.$element.description)}get summary(){return or.memoize(this,"summary",xf(this.$element))}get description(){return or.memoize(this,"description",wf(this.$element))}get technology(){return this.$element.technology??null}get links(){return this.$element.links??[]}get defaultView(){return yr(this,Symbol.for("defaultView"),()=>hE(this.scopedViews())??null)}get isRoot(){return this.parent===null}get style(){return yr(this,"style",()=>U1({shape:this.$model.$styles.defaults.shape,color:this.$model.$styles.defaults.color,border:this.$model.$styles.defaults.border,opacity:this.$model.$styles.defaults.opacity,size:this.$model.$styles.defaults.size,padding:this.$model.$styles.defaults.padding,textSize:this.$model.$styles.defaults.text,...this.$element.style}))}isAncestorOf(r){return to(this,r)}isDescendantOf(r){return to(r,this)}ancestors(){return this.$model.ancestors(this)}commonAncestor(r){const n=b1(this.id,r.id);return n?this.$model.element(n):null}children(){return this.$model.children(this)}descendants(r){return r?nO([...this.$model.descendants(this)],r)[Symbol.iterator]():this.$model.descendants(this)}siblings(){return this.$model.siblings(this)}*ascendingSiblings(){yield*this.siblings();for(const r of this.ancestors())yield*r.siblings()}*descendingSiblings(){for(const r of[...this.ancestors()].reverse())yield*r.siblings();yield*this.siblings()}incoming(r="all"){return this.$model.incoming(this,r)}*incomers(r="all"){const n=new Set;for(const o of this.incoming(r))n.has(o.source.id)||(n.add(o.source.id),yield o.source)}outgoing(r="all"){return this.$model.outgoing(this,r)}*outgoers(r="all"){const n=new Set;for(const o of this.outgoing(r))n.has(o.target.id)||(n.add(o.target.id),yield o.target)}get allOutgoing(){return yr(this,Symbol.for("allOutgoing"),()=>new Set(this.outgoing()))}get allIncoming(){return yr(this,Symbol.for("allIncoming"),()=>new Set(this.incoming()))}views(){return yr(this,Symbol.for("views"),()=>{const r=new Set;for(const n of this.$model.views())n.includesElement(this.id)&&r.add(n);return r})}scopedViews(){return yr(this,Symbol.for("scopedViews"),()=>{const r=new Set;for(const n of this.$model.views())n.isScopedElementView()&&n.viewOf.id===this.id&&r.add(n);return r})}isDeployed(){return la(hE(this.deployments()))}deployments(){return this.$model.deployment.instancesOf(this)}hasMetadata(){return!!this.$element.metadata&&!Ef(this.$element.metadata)}getMetadata(r){return r?this.$element.metadata?.[r]:this.$element.metadata??{}}isTagged(r){return this.tags.includes(r)}}const Tr=e=>typeof e=="string"?e:e.id,$a="/",wE=e=>{if(at(!e.includes(` -`),"View title cannot contain newlines"),e.includes($a)){const r=e.split($a).map(n=>n.trim()).filter(n=>n.length>0);return Kl(r,1)?r:[""]}return[e.trim()]},L3=e=>wE(e).join($a),g8e=e=>{const r=wE(e);return Kl(r,2)?r.slice(0,-1).join($a):null},kE=e=>e.includes($a)?wE(e).pop()??e:e.trim();class y8e{constructor(r){this.$model=r;const n=this.$deployments=r.$data.deployments,o=Z1(n.elements);for(const a of dd(o)){const i=this.addElement(a);for(const s of i.tags)this.#c.get(s).add(i);i.isInstance()&&this.#r.get(i.element.id).add(i)}for(const a of Z1(n.relations)){const i=this.addRelation(a);for(const s of i.tags)this.#c.get(s).add(i)}}#e=new Map;#i=new Map;#t=new Xn(()=>new Set);#r=new Xn(()=>new Set);#s=new Set;#n=new Map;#l=new Xn(()=>new Set);#a=new Xn(()=>new Set);#o=new Xn(()=>new Set);#c=new Xn(()=>new Set);#d=new Map;$deployments;get $styles(){return this.$model.$styles}element(r){if(r instanceof XB||r instanceof KB)return r;const n=Tr(r);return bt(this.#e.get(n),`Element ${n} not found`)}findElement(r){return this.#e.get(r)??null}node(r){const n=this.element(r);return at(n.isDeploymentNode(),`Element ${n.id} is not a deployment node`),n}findNode(r){const n=this.findElement(r);return n?(at(n.isDeploymentNode(),`Element ${n?.id} is not a deployment node`),n):null}instance(r){const n=this.element(r);return at(n.isInstance(),`Element ${n.id} is not a deployed instance`),n}findInstance(r){const n=this.findElement(r);return n?(at(n.isInstance(),`Element ${n?.id} is not a deployed instance`),n):null}roots(){return this.#s.values()}elements(){return this.#e.values()}*nodes(){for(const r of this.#e.values())r.isDeploymentNode()&&(yield r)}*nodesOfKind(r){for(const n of this.#e.values())n.isDeploymentNode()&&n.kind===r&&(yield n)}*instances(){for(const r of this.#e.values())r.isInstance()&&(yield r)}*instancesOf(r){const n=Tr(r),o=this.#r.get(n);o&&(yield*o)}deploymentRef(r){if(Y1.isInsideInstanceRef(r)){const{deployment:n,element:o}=r;return O6e(this.#d,`${n}@${o}`,()=>new J6e(this.instance(n),this.$model.element(o)))}return this.element(r.deployment)}relationships(){return this.#n.values()}relationship(r){return bt(this.#n.get(Tr(r)),`DeploymentRelationModel ${r} not found`)}findRelationship(r){return this.#n.get(r)??null}*views(){for(const r of this.$model.views())r.isDeploymentView()&&(yield r)}parent(r){const n=Tr(r);return this.#i.get(n)||null}children(r){const n=Tr(r);return this.#t.get(n)}*siblings(r){const n=Tr(r),o=this.parent(r)?.children()??this.roots();for(const a of o)a.id!==n&&(yield a)}*ancestors(r){let n=Tr(r),o;for(;o=this.#i.get(n);)yield o,n=o.id}*descendants(r,n="desc"){for(const o of this.children(r))n==="asc"?(yield o,yield*this.descendants(o.id)):(yield*this.descendants(o.id),yield o)}*incoming(r,n="all"){const o=Tr(r);for(const a of this.#l.get(o))switch(!0){case n==="all":case(n==="direct"&&a.target.id===o):case(n==="to-descendants"&&a.target.id!==o):yield a;break}}*outgoing(r,n="all"){const o=Tr(r);for(const a of this.#a.get(o))switch(!0){case n==="all":case(n==="direct"&&a.source.id===o):case(n==="from-descendants"&&a.source.id!==o):yield a;break}}addElement(r){if(this.#e.has(r.id))throw new Error(`Element ${r.id} already exists`);const n=k6e(r)?new XB(this,Object.freeze(r)):new KB(this,Object.freeze(r),this.$model.element(r.element));this.#e.set(n.id,n);const o=t3(n.id);return o?(at(this.#e.has(o),`Parent ${o} of ${n.id} not found`),this.#i.set(n.id,this.node(o)),this.#t.get(o).add(n)):(at(n.isDeploymentNode(),`Root element ${n.id} is not a deployment node`),this.#s.add(n)),n}addRelation(r){if(this.#n.has(r.id))throw new Error(`Relation ${r.id} already exists`);const n=new e8e(this,Object.freeze(r));this.#n.set(n.id,n),this.#l.get(n.target.id).add(n),this.#a.get(n.source.id).add(n);const o=n.boundary?.id??null;if(o)for(const a of[o,...ju(o)])this.#o.get(a).add(n);for(const a of ju(n.source.id)){if(a===o)break;this.#a.get(a).add(n)}for(const a of ju(n.target.id)){if(a===o)break;this.#l.get(a).add(n)}return n}}class oF{constructor(r,n){this.model=r,this.$relationship=n,this.source=r.element(Y1.flatten(n.source)),this.target=r.element(Y1.flatten(n.target));const o=b1(this.source.id,this.target.id);this.boundary=o?this.model.element(o):null}source;target;boundary;get id(){return this.$relationship.id}get expression(){return`${this.source.id} -> ${this.target.id}`}get title(){return la(this.$relationship.title)?this.$relationship.title:null}get technology(){return la(this.$relationship.technology)?this.$relationship.technology:null}get hasSummary(){return!!this.$relationship.summary&&!!this.$relationship.description&&!mE(this.$relationship.summary,this.$relationship.description)}get summary(){return or.memoize(this,"summary",xf(this.$relationship))}get description(){return or.memoize(this,"description",wf(this.$relationship))}get navigateTo(){return this.$relationship.navigateTo?this.model.view(this.$relationship.navigateTo):null}get tags(){return this.$relationship.tags??[]}get kind(){return this.$relationship.kind??null}get links(){return this.$relationship.links??[]}get color(){return this.$relationship.color??this.model.$styles.defaults.relationship.color}get line(){return this.$relationship.line??this.model.$styles.defaults.relationship.line}get head(){return this.$relationship.head??this.model.$styles.defaults.relationship.arrow}get tail(){return this.$relationship.tail}*views(){for(const r of this.model.views())r.includesRelation(this.id)&&(yield r)}isDeploymentRelation(){return!1}isModelRelation(){return!0}hasMetadata(){return!!this.$relationship.metadata&&!Ef(this.$relationship.metadata)}getMetadata(r){return r?this.$relationship.metadata?.[r]:this.$relationship.metadata??{}}isTagged(r){return this.tags.includes(r)}}var aF=Symbol.for("immer-nothing"),iF=Symbol.for("immer-draftable"),Pa=Symbol.for("immer-state");function ns(e,...r){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Q1=Object.getPrototypeOf;function Sf(e){return!!e&&!!e[Pa]}function Ju(e){return e?lF(e)||Array.isArray(e)||!!e[iF]||!!e.constructor?.[iF]||J1(e)||H3(e):!1}var b8e=Object.prototype.constructor.toString(),sF=new WeakMap;function lF(e){if(!e||typeof e!="object")return!1;const r=Object.getPrototypeOf(e);if(r===null||r===Object.prototype)return!0;const n=Object.hasOwnProperty.call(r,"constructor")&&r.constructor;if(n===Object)return!0;if(typeof n!="function")return!1;let o=sF.get(n);return o===void 0&&(o=Function.toString.call(n),sF.set(n,o)),o===b8e}function B3(e,r,n=!0){F3(e)===0?(n?Reflect.ownKeys(e):Object.keys(e)).forEach(a=>{r(a,e[a],e)}):e.forEach((o,a)=>r(a,o,e))}function F3(e){const r=e[Pa];return r?r.type_:Array.isArray(e)?1:J1(e)?2:H3(e)?3:0}function _E(e,r){return F3(e)===2?e.has(r):Object.prototype.hasOwnProperty.call(e,r)}function cF(e,r,n){const o=F3(e);o===2?e.set(r,n):o===3?e.add(n):e[r]=n}function v8e(e,r){return e===r?e!==0||1/e===1/r:e!==e&&r!==r}function J1(e){return e instanceof Map}function H3(e){return e instanceof Set}function ep(e){return e.copy_||e.base_}function EE(e,r){if(J1(e))return new Map(e);if(H3(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=lF(e);if(r===!0||r==="class_only"&&!n){const o=Object.getOwnPropertyDescriptors(e);delete o[Pa];let a=Reflect.ownKeys(o);for(let i=0;i1&&Object.defineProperties(e,{set:V3,add:V3,clear:V3,delete:V3}),Object.freeze(e),r&&Object.values(e).forEach(n=>SE(n,!0))),e}function x8e(){ns(2)}var V3={value:x8e};function q3(e){return e===null||typeof e!="object"?!0:Object.isFrozen(e)}var w8e={};function tp(e){const r=w8e[e];return r||ns(0,e),r}var e0;function dF(){return e0}function k8e(e,r){return{drafts_:[],parent_:e,immer_:r,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function uF(e,r){r&&(tp("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=r)}function CE(e){TE(e),e.drafts_.forEach(_8e),e.drafts_=null}function TE(e){e===e0&&(e0=e.parent_)}function pF(e){return e0=k8e(e0,e)}function _8e(e){const r=e[Pa];r.type_===0||r.type_===1?r.revoke_():r.revoked_=!0}function hF(e,r){r.unfinalizedDrafts_=r.drafts_.length;const n=r.drafts_[0];return e!==void 0&&e!==n?(n[Pa].modified_&&(CE(r),ns(4)),Ju(e)&&(e=U3(r,e),r.parent_||W3(r,e)),r.patches_&&tp("Patches").generateReplacementPatches_(n[Pa].base_,e,r.patches_,r.inversePatches_)):e=U3(r,n,[]),CE(r),r.patches_&&r.patchListener_(r.patches_,r.inversePatches_),e!==aF?e:void 0}function U3(e,r,n){if(q3(r))return r;const o=e.immer_.shouldUseStrictIteration(),a=r[Pa];if(!a)return B3(r,(i,s)=>fF(e,a,r,i,s,n),o),r;if(a.scope_!==e)return r;if(!a.modified_)return W3(e,a.base_,!0),a.base_;if(!a.finalized_){a.finalized_=!0,a.scope_.unfinalizedDrafts_--;const i=a.copy_;let s=i,l=!1;a.type_===3&&(s=new Set(i),i.clear(),l=!0),B3(s,(c,d)=>fF(e,a,i,c,d,n,l),o),W3(e,i,!1),n&&e.patches_&&tp("Patches").generatePatches_(a,n,e.patches_,e.inversePatches_)}return a.copy_}function fF(e,r,n,o,a,i,s){if(a==null||typeof a!="object"&&!s)return;const l=q3(a);if(!(l&&!s)){if(Sf(a)){const c=i&&r&&r.type_!==3&&!_E(r.assigned_,o)?i.concat(o):void 0,d=U3(e,a,c);if(cF(n,o,d),Sf(d))e.canAutoFreeze_=!1;else return}else s&&n.add(a);if(Ju(a)&&!l){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1||r&&r.base_&&r.base_[o]===a&&l)return;U3(e,a),(!r||!r.scope_.parent_)&&typeof o!="symbol"&&(J1(n)?n.has(o):Object.prototype.propertyIsEnumerable.call(n,o))&&W3(e,a)}}}function W3(e,r,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&SE(r,n)}function E8e(e,r){const n=Array.isArray(e),o={type_:n?1:0,scope_:r?r.scope_:dF(),modified_:!1,finalized_:!1,assigned_:{},parent_:r,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let a=o,i=AE;n&&(a=[o],i=t0);const{revoke:s,proxy:l}=Proxy.revocable(a,i);return o.draft_=l,o.revoke_=s,l}var AE={get(e,r){if(r===Pa)return e;const n=ep(e);if(!_E(n,r))return S8e(e,n,r);const o=n[r];return e.finalized_||!Ju(o)?o:o===RE(e.base_,r)?(DE(e),e.copy_[r]=$E(o,e)):o},has(e,r){return r in ep(e)},ownKeys(e){return Reflect.ownKeys(ep(e))},set(e,r,n){const o=mF(ep(e),r);if(o?.set)return o.set.call(e.draft_,n),!0;if(!e.modified_){const a=RE(ep(e),r),i=a?.[Pa];if(i&&i.base_===n)return e.copy_[r]=n,e.assigned_[r]=!1,!0;if(v8e(n,a)&&(n!==void 0||_E(e.base_,r)))return!0;DE(e),NE(e)}return e.copy_[r]===n&&(n!==void 0||r in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[r])||(e.copy_[r]=n,e.assigned_[r]=!0),!0},deleteProperty(e,r){return RE(e.base_,r)!==void 0||r in e.base_?(e.assigned_[r]=!1,DE(e),NE(e)):delete e.assigned_[r],e.copy_&&delete e.copy_[r],!0},getOwnPropertyDescriptor(e,r){const n=ep(e),o=Reflect.getOwnPropertyDescriptor(n,r);return o&&{writable:!0,configurable:e.type_!==1||r!=="length",enumerable:o.enumerable,value:n[r]}},defineProperty(){ns(11)},getPrototypeOf(e){return Q1(e.base_)},setPrototypeOf(){ns(12)}},t0={};B3(AE,(e,r)=>{t0[e]=function(){return arguments[0]=arguments[0][0],r.apply(this,arguments)}}),t0.deleteProperty=function(e,r){return t0.set.call(this,e,r,void 0)},t0.set=function(e,r,n){return AE.set.call(this,e[0],r,n,e[0])};function RE(e,r){const n=e[Pa];return(n?ep(n):e)[r]}function S8e(e,r,n){const o=mF(r,n);return o?"value"in o?o.value:o.get?.call(e.draft_):void 0}function mF(e,r){if(!(r in e))return;let n=Q1(e);for(;n;){const o=Object.getOwnPropertyDescriptor(n,r);if(o)return o;n=Q1(n)}}function NE(e){e.modified_||(e.modified_=!0,e.parent_&&NE(e.parent_))}function DE(e){e.copy_||(e.copy_=EE(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var C8e=class{constructor(r){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!0,this.produce=(n,o,a)=>{if(typeof n=="function"&&typeof o!="function"){const s=o;o=n;const l=this;return function(d=s,...u){return l.produce(d,h=>o.call(this,h,...u))}}typeof o!="function"&&ns(6),a!==void 0&&typeof a!="function"&&ns(7);let i;if(Ju(n)){const s=pF(this),l=$E(n,void 0);let c=!0;try{i=o(l),c=!1}finally{c?CE(s):TE(s)}return uF(s,a),hF(i,s)}else if(!n||typeof n!="object"){if(i=o(n),i===void 0&&(i=n),i===aF&&(i=void 0),this.autoFreeze_&&SE(i,!0),a){const s=[],l=[];tp("Patches").generateReplacementPatches_(n,i,s,l),a(s,l)}return i}else ns(1,n)},this.produceWithPatches=(n,o)=>{if(typeof n=="function")return(l,...c)=>this.produceWithPatches(l,d=>n(d,...c));let a,i;return[this.produce(n,o,(l,c)=>{a=l,i=c}),a,i]},typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze),typeof r?.useStrictShallowCopy=="boolean"&&this.setUseStrictShallowCopy(r.useStrictShallowCopy),typeof r?.useStrictIteration=="boolean"&&this.setUseStrictIteration(r.useStrictIteration)}createDraft(r){Ju(r)||ns(8),Sf(r)&&(r=T8e(r));const n=pF(this),o=$E(r,void 0);return o[Pa].isManual_=!0,TE(n),o}finishDraft(r,n){const o=r&&r[Pa];(!o||!o.isManual_)&&ns(9);const{scope_:a}=o;return uF(a,n),hF(void 0,a)}setAutoFreeze(r){this.autoFreeze_=r}setUseStrictShallowCopy(r){this.useStrictShallowCopy_=r}setUseStrictIteration(r){this.useStrictIteration_=r}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(r,n){let o;for(o=n.length-1;o>=0;o--){const i=n[o];if(i.path.length===0&&i.op==="replace"){r=i.value;break}}o>-1&&(n=n.slice(o+1));const a=tp("Patches").applyPatches_;return Sf(r)?a(r,n):this.produce(r,i=>a(i,n))}};function $E(e,r){const n=J1(e)?tp("MapSet").proxyMap_(e,r):H3(e)?tp("MapSet").proxySet_(e,r):E8e(e,r);return(r?r.scope_:dF()).drafts_.push(n),n}function T8e(e){return Sf(e)||ns(10,e),gF(e)}function gF(e){if(!Ju(e)||q3(e))return e;const r=e[Pa];let n,o=!0;if(r){if(!r.modified_)return r.base_;r.finalized_=!0,n=EE(e,r.scope_.immer_.useStrictShallowCopy_),o=r.scope_.immer_.shouldUseStrictIteration()}else n=EE(e,!0);return B3(n,(a,i)=>{cF(n,a,gF(i))},o),r&&(r.finalized_=!1),n}var A8e=new C8e,yF=A8e.produce;function R8e(e){return Ku(e,a8e(r=>!!r.notation),bE(Zu("notation")),vE(xE(bE(Zu("shape")),vE(xE(bE(Zu("color")),vE(xE(M3(Zu("kind")),O3())),G1(),M3(([r,n])=>({kinds:n,color:r})))),G1(),tF(([r,n])=>n.map(({color:o,kinds:a})=>({shape:r,color:o,kinds:a}))))),G1(),tF(([r,n])=>n.map(({shape:o,color:a,kinds:i})=>({title:r,shape:o,color:a,kinds:i}))),rF(Zu("shape"),Zu("title"),[r=>r.kinds.length,"desc"]))}const sl=(e,r)=>e===r||rs(e)&&rs(r)?!1:!Vv(e,r),bF=5;function N8e(e,r){e.color=r.color,e.kind=r.kind,e.navigateTo=r.navigateTo??null,e.links=r.links?[...r.links]:null,e.tags=[...r.tags],rs(r.style.border)?delete e.style.border:e.style.border=r.style.border,u8e(r.style.opacity)?e.style.opacity=r.style.opacity:delete e.style.opacity,rs(r.style.multiple)?delete e.style.multiple:e.style.multiple=r.style.multiple}function D8e(e,r,n){if(sl(r.icon??"none",e.icon??"none")){const o=la(e.icon)&&e.icon!=="none";switch(!0){case(o&&la(r.icon)&&r.icon!=="none"):return e.icon=r.icon,!0;case(o&&(rs(r.icon)||r.icon==="none")):return e.icon="none",!0;case(!o&&la(r.icon)&&r.icon!=="none"):return n?(e.icon=r.icon,!0):!1}}return!0}function $8e(e,r,n){let o=!0;return sl(e.title,r.title)&&(n?e.title=r.title:o=!1),sl(e.description,r.description)&&(rs(r.description)?delete e.description:n?e.description=r.description:o=!1),sl(e.technology,r.technology)&&(rs(r.technology)?delete e.technology:n?e.technology=r.technology:o=!1),o}function P8e(e,r,n){return e.title=r.title,rs(r.description)?delete e.description:e.description=r.description,rs(r.technology)?delete e.technology:e.technology=r.technology,!0}function vF(e,r){at(e.id===r.id,"applyManualLayout: view ids do not match"),at(e._stage==="layouted","applyManualLayout: expected layouted view"),at(r._stage==="layouted","applyManualLayout: expected layouted snapshot"),at(e._layout!=="manual","applyManualLayout: expected auto-layouted view");const n=new Set;e._type!==r._type&&n.add("type-changed");const o=new Map(e.nodes.map(b=>[b.id,b])),a=new Map(e.edges.map(b=>[b.id,b])),i=new Set(o.keys()),s=new Set(a.keys()),l=new Set(r.nodes.map(b=>b.id)),c=new Set(r.edges.map(b=>b.id));pE(i,l).size>0&&n.add("nodes-mismatch"),pE(s,c).size>0&&n.add("edges-mismatch");const d=r.nodes.map(b=>{const x=o.get(b.id);return yF(b,w=>{if(!x){w.drifts=["missing"];return}N8e(w,x);const k=new Set,C=b.children.length>0,_=x.children.length>0;(sl(w.modelRef,x.modelRef)||sl(w.deploymentRef,x.deploymentRef))&&k.add("modelRef-changed"),_&&!C&&k.add("became-compound"),!_&&C&&k.add("became-leaf"),sl(w.parent,x.parent)&&k.add("parent-changed");const T=w.width+bF>=x.width&&w.height+bF>=x.height;sl(w.shape,x.shape)&&(T?w.shape=x.shape:k.add("shape-changed")),D8e(w,x,T&&_===C)||k.add("label-changed"),(C?P8e:$8e)(w,x,T)||k.add("label-changed"),sl(b.notation,x.notation)&&(w.notation=x.notation??null),C&&_&&pE(new Set(b.children),new Set(x.children)).size>0&&k.add("children-changed");const R=[...k];Kl(R,1)&&(n.add("nodes-mismatch"),w.drifts=R)})}),u=r.edges.map(b=>{const x=a.get(b.id);return yF(b,w=>{if(!x){w.drifts=["missing"];return}const k=new Set;w.source===x.target&&w.target===x.source?k.add("direction-changed"):(w.source!==x.source&&k.add("source-changed"),w.target!==x.target&&k.add("target-changed")),k.size===0&&sl(w.dir??"forward",x.dir??"forward")&&k.add("direction-changed"),w.color=x.color,w.line=x.line,w.navigateTo=x.navigateTo??null,w.tags=x.tags?[...x.tags]:null,rs(x.notes)?delete w.notes:w.notes=x.notes,x.astPath&&(w.astPath=x.astPath),x.labelBBox?((!w.labelBBox||!la(w.label)&&la(x.label))&&k.add("label-changed"),w.labelBBox={x:w.labelBBox?.x??x.labelBBox.x,y:w.labelBBox?.y??x.labelBBox.y,width:x.labelBBox.width,height:x.labelBBox.height},w.label=x.label,w.description=x.description??null,w.technology=x.technology??null):b.labelBBox&&k.add("label-changed");const C=[...k];Kl(C,1)&&(n.add("edges-mismatch"),w.drifts=C)})}),h=R8e(d),f={...r};Object.assign(f,{title:e.title??r.title,description:e.description??r.description,tags:e.tags?[...e.tags]:null,links:e.links?[...e.links]:null,[IB]:"manual",...h&&h.length>0?{notation:{nodes:h}}:{},nodes:d,edges:u}),N6e(e)&&f._type==="dynamic"&&Object.assign(f,{variant:e.variant});const g=[...n];return Kl(g,1)?f.drifts=g:"drifts"in f&&delete f.drifts,f}function M8e(e,r){const{drifts:n}=vF(e,r);if(n)Object.assign(e,{[IB]:"auto",drifts:n});else{const o=e;"drifts"in e&&delete o.drifts}return e}class z8e{constructor(r,n,o,a){this.source=o,this.target=a,this.$viewModel=r,this.$view=r.$view,this.$edge=n}Aux;$viewModel;$view;$edge;get id(){return this.$edge.id}get parent(){return this.$edge.parent?this.$viewModel.node(this.$edge.parent):null}get label(){return this.$edge.label??null}get description(){return or.memoize(this,"description",this.$edge.description)}get technology(){return this.$edge.technology??null}hasParent(){return this.$edge.parent!==null}get tags(){return this.$edge.tags??[]}get stepNumber(){return this.isStep()?SB(this.id):null}get navigateTo(){return this.$edge.navigateTo?this.$viewModel.$model.view(this.$edge.navigateTo):null}get color(){return this.$edge.color}get line(){return this.$edge.line??this.$viewModel.$styles.defaults.relationship.line}get head(){return this.$edge.head??this.$viewModel.$styles.defaults.relationship.arrow}get tail(){return this.$edge.tail}isStep(){return q1(this.id)}*relationships(r){for(const n of this.$edge.relations)if(r){const o=this.$viewModel.$model.findRelationship(n,r);o&&(yield o)}else yield this.$viewModel.$model.relationship(n)}includesRelation(r){const n=typeof r=="string"?r:r.id;return this.$edge.relations.includes(n)}isTagged(r){return this.tags.includes(r)}}class I8e{Aux;$viewModel;$view;$node;constructor(r,n){this.$viewModel=r,this.$view=r.$view,this.$node=n}get id(){return this.$node.id}get title(){return this.$node.title}get kind(){return this.$node.kind}get description(){return or.memoize(this,"description",this.$node.description)}get technology(){return this.$node.technology??null}get parent(){return this.$node.parent?this.$viewModel.node(this.$node.parent):null}get element(){const r=this.$node.modelRef;return r?this.$viewModel.$model.element(r):null}get deployment(){const r=this.$node.deploymentRef;return r?this.$viewModel.$model.deployment.element(r):null}get shape(){return this.$node.shape}get color(){return this.$node.color}get icon(){return this.$node.icon??null}get tags(){return this.$node.tags}get links(){return this.$node.links??[]}get navigateTo(){return this.$node.navigateTo?this.$viewModel.$model.view(this.$node.navigateTo):null}get style(){return this.$node.style}get x(){return"x"in this.$node?this.$node.x:void 0}get y(){return"y"in this.$node?this.$node.y:void 0}get width(){return"width"in this.$node?this.$node.width:void 0}get height(){return"height"in this.$node?this.$node.height:void 0}children(){return yr(this,"children",()=>new Set(this.$node.children.map(r=>this.$viewModel.node(r))))}*ancestors(){let r=this.parent;for(;r;)yield r,r=r.parent}*siblings(){const r=this.parent?.children()??this.$viewModel.roots();for(const n of r)n.id!==this.id&&(yield n)}*incoming(r="all"){for(const n of this.$node.inEdges){const o=this.$viewModel.edge(n);switch(!0){case r==="all":case(r==="direct"&&o.target.id===this.id):case(r==="to-descendants"&&o.target.id!==this.id):yield o;break}}}*incomers(r="all"){const n=new Set;for(const o of this.incoming(r))n.has(o.source.id)||(n.add(o.source.id),yield o.source)}*outgoing(r="all"){for(const n of this.$node.outEdges){const o=this.$viewModel.edge(n);switch(!0){case r==="all":case(r==="direct"&&o.source.id===this.id):case(r==="from-descendants"&&o.source.id!==this.id):yield o;break}}}*outgoers(r="all"){const n=new Set;for(const o of this.outgoing(r))n.has(o.target.id)||(n.add(o.target.id),yield o.target)}isLayouted(){return"width"in this.$node&&"height"in this.$node}hasChildren(){return this.$node.children.length>0}hasParent(){return this.$node.parent!==null}hasElement(){return la(this.$node.modelRef)}hasDeployment(){return la(this.$node.deploymentRef)}hasDeployedInstance(){return this.hasElement()&&this.hasDeployment()}isGroup(){return l6e(this.$node)}isTagged(r){return this.tags.includes(r)}}class PE{Aux;#e;#i=new Set;#t=new Map;#r=new Map;#s=new Set;#n=new Set;#l=new Set;#a=new Xn(r=>new Set);#o;id;$model;title;folder;viewPath;constructor(r,n,o,a){this.$model=r,this.#e=o,this.id=o.id,this.folder=n,this.#o=a;for(const i of this.#e.nodes){const s=new I8e(this,Object.freeze(i));this.#t.set(i.id,s),i.parent||this.#i.add(s),i.deploymentRef&&this.#n.add(i.deploymentRef),i.modelRef&&this.#s.add(i.modelRef);for(const l of s.tags)this.#a.get(l).add(s)}for(const i of this.#e.edges){const s=new z8e(this,Object.freeze(i),this.node(i.source),this.node(i.target));for(const l of s.tags)this.#a.get(l).add(s);for(const l of i.relations)this.#l.add(l);this.#r.set(i.id,s)}this.title=o.title?kE(o.title):null,this.viewPath=o.title?L3(o.title):o.id}get $styles(){return this.$model.$styles}get _type(){return this.#e[W1]}get stage(){return this.#e[Gu]}get bounds(){if("bounds"in this.#e)return this.#e.bounds;if(this.#o)return this.#o.bounds;throw new Error("View is not layouted")}get titleOrId(){return this.title??this.viewOf?.title??this.id}get titleOrUntitled(){return this.title??"Untitled"}get breadcrumbs(){return yr(this,"breadcrumbs",()=>this.folder.isRoot?[this]:[...this.folder.breadcrumbs,this])}get description(){return or.memoize(this,"description",this.#e.description)}get tags(){return this.#e.tags??[]}get links(){return this.#e.links??[]}get viewOf(){if(this.isElementView()){const r=this.#e.viewOf;return r?this.$model.element(r):null}return null}get mode(){return this.isDynamicView()?this.#e.variant??"diagram":null}get includedTags(){return[...this.#a.keys()]}get $view(){if(!this.isLayouted()||"drifts"in this.#e)return this.#e;const r=this.#o;return r?yr(this,"withDriftReasons",()=>M8e(this.#e,r)):this.#e}get $layouted(){if(!this.isLayouted())throw new Error("View is not layouted");return this.manualLayouted??this.#e}get hasManualLayout(){return this.#o!==void 0}get manualLayouted(){if(!this.isLayouted())return null;const r=this.#o;return r?yr(this,"snapshotWithManualLayout",()=>vF(this.#e,r)):null}get driftReasons(){return this.isLayouted()?this.$view.drifts??[]:[]}roots(){return this.#i.values()}*compounds(){for(const r of this.#t.values())r.hasChildren()&&(yield r)}node(r){const n=Tr(r);return bt(this.#t.get(n),`Node ${n} not found in view ${this.#e.id}`)}findNode(r){return this.#t.get(Tr(r))??null}findNodeWithElement(r){const n=Tr(r);return this.#s.has(n)?X1(this.#t.values(),o=>o.hasElement()&&o.element.id===n)??null:null}nodes(){return this.#t.values()}edge(r){const n=Tr(r);return bt(this.#r.get(n),`Edge ${n} not found in view ${this.#e.id}`)}findEdge(r){return this.#r.get(Tr(r))??null}edges(){return this.#r.values()}*edgesWithRelation(r){for(const n of this.#r.values())n.includesRelation(r)&&(yield n)}*elements(){for(const r of this.#t.values())r.hasElement()&&(yield r)}isTagged(r){return this.tags.includes(r)}includesElement(r){return this.#s.has(Tr(r))}includesDeployment(r){return this.#n.has(Tr(r))}includesRelation(r){return this.#l.has(Tr(r))}isComputed(){return this.#e[Gu]==="computed"}isLayouted(){return this.#e[Gu]==="layouted"}isDiagram(){return this.#e[Gu]==="layouted"}isElementView(){return this.#e[W1]==="element"}isScopedElementView(){return this.#e[W1]==="element"&&la(this.#e.viewOf)}isDeploymentView(){return this.#e[W1]==="deployment"}isDynamicView(){return this.#e[W1]==="dynamic"}}class Y3{$model;path;title;isRoot;parentPath;defaultViewId;constructor(r,n,o){this.$model=r,this.path=n.join("/"),this.isRoot=this.path==="",this.title=p8e(n),this.isRoot?this.parentPath=void 0:this.parentPath=n.slice(0,-1).join("/"),this.defaultViewId=o}get defaultView(){return this.defaultViewId?this.$model.view(this.defaultViewId):null}get breadcrumbs(){return at(!this.isRoot,"Root view folder has no breadcrumbs"),yr(this,"breadcrumbs",()=>{const r=this.parent;return r?r.isRoot?[r,this]:[...r.breadcrumbs,this]:[this]})}get parent(){return at(!this.isRoot,"Root view folder has no parent"),Ef(this.parentPath)?null:this.$model.viewFolder(this.parentPath)}get children(){return this.$model.viewFolderItems(this.path)}get folders(){return yr(this,"folders",()=>{const r=[];for(const n of this.children)n instanceof Y3&&r.push(n);return r})}get views(){return yr(this,"views",()=>{const r=[];for(const n of this.children)n instanceof PE&&r.push(n);return r})}}class rp{Aux;_elements=new Map;_parents=new Map;_children=new Xn(()=>new Set);_rootElements=new Set;_relations=new Map;_incoming=new Xn(()=>new Set);_outgoing=new Xn(()=>new Set);_internal=new Xn(()=>new Set);_views=new Map;_rootViewFolder;_viewFolders=new Map;_viewFolderItems=new Xn(()=>new Set);_allTags=new Xn(()=>new Set);static fromParsed(r){return new rp(r)}static create(r){return new rp(r)}static fromDump(r){const{_stage:n="layouted",projectId:o="unknown",project:a,globals:i,imports:s,deployments:l,views:c,relations:d,elements:u,specification:h}=r;return new rp({[Gu]:n,projectId:o,project:a,globals:{predicates:i?.predicates??{},dynamicPredicates:i?.dynamicPredicates??{},styles:i?.styles??{}},imports:s??{},deployments:{elements:l?.elements??{},relations:l?.relations??{}},views:c??{},relations:d??{},elements:u??{},specification:h})}deployment;$data;constructor(r){this.$data=r;for(const[,n]of G1(r.elements)){const o=this.addElement(n);for(const a of o.tags)this._allTags.get(a).add(o)}for(const[n,o]of G1(r.imports??{}))for(const a of dd(o)){const i=this.addImportedElement(n,a);for(const s of i.tags)this._allTags.get(s).add(i)}for(const n of Z1(r.relations)){const o=this.addRelation(n);for(const a of o.tags)this._allTags.get(a).add(o)}if(this.deployment=new y8e(this),zB(r,"computed")||zB(r,"layouted")){const n=eO($a);Z1(r.views);const o=Ku(Z1(r.views),M3(i=>({view:i,path:L3(i.title??i.id),folderPath:i.title&&g8e(i.title)||""})),lE((i,s)=>n(i.folderPath,s.folderPath))),a=i=>{let s=this._viewFolders.get(i);if(!s){const l=nF(i,$a);at(Kl(l,1),`View group path "${i}" must have at least one element`);let c;i===""?c=o.find(d=>d.view.id==="index"):c=o.find(d=>d.path===i),s=new Y3(this,l,c?.view.id),this._viewFolders.set(i,s)}return s};this._rootViewFolder=a("");for(const{folderPath:i}of o)this._viewFolders.has(i)||nF(i,$a).reduce((s,l)=>{const c=s.join($a),d=Ef(c)?l:c+$a+l,u=a(d);return this._viewFolderItems.get(c).add(u),s.push(l),s},[]);for(const{view:i,folderPath:s}of o){const l=new PE(this,a(s),i,r.manualLayouts?.[i.id]);this._viewFolderItems.get(s).add(l),this._views.set(i.id,l);for(const c of l.tags)this._allTags.get(c).add(l)}}else this._rootViewFolder=new Y3(this,[""],void 0),this._viewFolders.set(this._rootViewFolder.path,this._rootViewFolder)}get asParsed(){return this}get asComputed(){return this}get asLayouted(){return this}get $styles(){return yr(this,"styles",()=>ZI.from(this.$data.project.styles,this.$data.specification.customColors?{theme:{colors:this.$data.specification.customColors}}:void 0))}isParsed(){return this.stage==="parsed"}isLayouted(){return this.stage==="layouted"}isComputed(){return this.stage==="computed"}get $model(){return this.$data}get stage(){return this.$data[Gu]}get projectId(){return this.$data.projectId??"default"}get project(){return this.$data.project??yr(this,Symbol.for("project"),()=>({id:this.projectId}))}get specification(){return this.$data.specification}get globals(){return yr(this,Symbol.for("globals"),()=>({predicates:{...this.$data.globals?.predicates},dynamicPredicates:{...this.$data.globals?.dynamicPredicates},styles:{...this.$data.globals?.styles}}))}element(r){if(r instanceof j3)return r;const n=Tr(r);return bt(this._elements.get(n),`Element ${n} not found`)}findElement(r){return this._elements.get(Tr(r))??null}roots(){return this._rootElements.values()}elements(){return this._elements.values()}relationships(){return this._relations.values()}relationship(r,n){if(n==="deployment")return this.deployment.relationship(r);const o=Tr(r);let a=this._relations.get(o)??null;return a||n==="model"?bt(a,`Model relation ${o} not found`):bt(this.deployment.findRelationship(o),`No model/deployment relation ${o} not found`)}findRelationship(r,n){if(n==="deployment")return this.deployment.findRelationship(r);let o=this._relations.get(Tr(r))??null;return o||n==="model"?o:this.deployment.findRelationship(r)}views(){return this._views.values()}view(r){const n=Tr(r);return bt(this._views.get(n),`View ${n} not found`)}findView(r){return this._views.get(r)??null}viewFolder(r){return bt(this._viewFolders.get(r),`View folder ${r} not found`)}get rootViewFolder(){return this._rootViewFolder}get hasViewFolders(){return this._viewFolders.size>1}viewFolderItems(r){return at(this._viewFolders.has(r),`View folder ${r} not found`),this._viewFolderItems.get(r)}parent(r){const n=Tr(r);return this._parents.get(n)||null}children(r){const n=Tr(r);return this._children.get(n)}*siblings(r){const n=Tr(r),o=this._parents.get(n),a=o?this._children.get(o.id).values():this.roots();for(const i of a)i.id!==n&&(yield i)}*ancestors(r){let n=Tr(r),o;for(;o=this._parents.get(n);)yield o,n=o.id}*descendants(r){for(const n of this.children(r))yield n,yield*this.descendants(n.id)}*incoming(r,n="all"){const o=Tr(r);for(const a of this._incoming.get(o))switch(!0){case n==="all":case(n==="direct"&&a.target.id===o):case(n==="to-descendants"&&a.target.id!==o):yield a;break}}*outgoing(r,n="all"){const o=Tr(r);for(const a of this._outgoing.get(o))switch(!0){case n==="all":case(n==="direct"&&a.source.id===o):case(n==="from-descendants"&&a.source.id!==o):yield a;break}}get tags(){return yr(this,"tags",()=>lE([...this._allTags.keys()],e3))}get tagsSortedByUsage(){return yr(this,"tagsSortedByUsage",()=>Ku([...this._allTags.entries()],M3(([r,n])=>({tag:r,count:n.size,tagged:n})),lE((r,n)=>e3(r.tag,n.tag)),rF([Zu("count"),"desc"])))}findByTag(r,n){return Qu(this._allTags.get(r),o=>n==="elements"?o instanceof j3:n==="views"?o instanceof PE:n==="relationships"?o instanceof oF:!0)}*elementsOfKind(r){for(const n of this._elements.values())n.kind===r&&(yield n)}*elementsWhere(r){const n=Xu(r);for(const o of this._elements.values())n(o)&&(yield o)}*relationshipsWhere(r){const n=Xu(r);for(const o of this._relations.values())n(o)&&(yield o)}addElement(r){if(this._elements.has(r.id))throw new Error(`Element ${r.id} already exists`);const n=new j3(this,Object.freeze(r));this._elements.set(n.id,n);const o=t3(n.id);return o?(at(this._elements.has(o),`Parent ${o} of ${n.id} not found`),this._parents.set(n.id,this.element(o)),this._children.get(o).add(n)):this._rootElements.add(n),n}addImportedElement(r,n){at(!c6e(n.id),"Imported element already has global FQN");const o=EB(r,n.id);if(this._elements.has(o))throw new Error(`Element ${o} already exists`);const a=new j3(this,Object.freeze({...n,id:o}));this._elements.set(a.id,a);let i=t3(a.id);for(;i;){if(i.includes(".")&&this._elements.has(i))return this._parents.set(a.id,this.element(i)),this._children.get(i).add(a),a;i=t3(i)}return this._rootElements.add(a),a}addRelation(r){if(this._relations.has(r.id))throw new Error(`Relation ${r.id} already exists`);const n=new oF(this,Object.freeze(r)),{source:o,target:a}=n;this._relations.set(n.id,n),this._incoming.get(a.id).add(n),this._outgoing.get(o.id).add(n);const i=b1(o.id,a.id);if(i)for(const s of[i,...ju(i)])this._internal.get(s).add(n);for(const s of ju(o.id)){if(s===i)break;this._outgoing.get(s).add(n)}for(const s of ju(a.id)){if(s===i)break;this._incoming.get(s).add(n)}return n}}(e=>{e.EMPTY=e.create({_stage:"computed",projectId:"default",project:{id:"default"},specification:{elements:{},relationships:{},deployments:{},tags:{}},globals:{predicates:{},dynamicPredicates:{},styles:{}},deployments:{elements:{},relations:{}},elements:{},relations:{},views:{},imports:{}})})(rp||(rp={}));function G3(e){return typeof e=="object"&&e!=null&&!Array.isArray(e)}var O8e=e=>typeof e=="object"&&e!==null;function np(e){return Object.fromEntries(Object.entries(e??{}).filter(([r,n])=>n!==void 0))}var j8e=e=>e==="base";function L8e(e){return e.slice().filter(r=>!j8e(r))}function xF(e){return String.fromCharCode(e+(e>25?39:97))}function B8e(e){let r="",n;for(n=Math.abs(e);n>52;n=n/52|0)r=xF(n%52)+r;return xF(n%52)+r}function F8e(e,r){let n=r.length;for(;n;)e=e*33^r.charCodeAt(--n);return e}function H8e(e){return B8e(F8e(5381,e)>>>0)}var wF=/\s*!(important)?/i;function V8e(e){return typeof e=="string"?wF.test(e):!1}function q8e(e){return typeof e=="string"?e.replace(wF,"").trim():e}function ME(e){return typeof e=="string"?e.replaceAll(" ","_"):e}var go=e=>{const r=new Map;return(...n)=>{const o=JSON.stringify(n);if(r.has(o))return r.get(o);const a=e(...n);return r.set(o,a),a}},U8e=new Set(["__proto__","constructor","prototype"]);function zE(...e){return e.reduce((r,n)=>(n&&Object.keys(n).forEach(o=>{if(U8e.has(o))return;const a=r[o],i=n[o];G3(a)&&G3(i)?r[o]=zE(a,i):r[o]=i}),r),{})}var W8e=e=>e!=null;function IE(e,r,n={}){const{stop:o,getKey:a}=n;function i(s,l=[]){if(O8e(s)){const c={};for(const[d,u]of Object.entries(s)){const h=a?.(d,u)??d,f=[...l,h];if(o?.(s,f))return r(s,l);const g=i(u,f);W8e(g)&&(c[h]=g)}return c}return r(s,l)}return i(e)}function Y8e(e,r){return Array.isArray(e)?e.map(n=>r(n)):G3(e)?IE(e,n=>r(n)):r(e)}function G8e(e,r){return e.reduce((n,o,a)=>{const i=r[a];return o!=null&&(n[i]=o),n},{})}function kF(e,r,n=!0){const{utility:o,conditions:a}=r,{hasShorthand:i,resolveShorthand:s}=o;return IE(e,l=>Array.isArray(l)?G8e(l,a.breakpoints.keys):l,{stop:l=>Array.isArray(l),getKey:n?l=>i?s(l):l:void 0})}var X8e={shift:e=>e,finalize:e=>e,breakpoints:{keys:[]}},K8e=e=>typeof e=="string"?e.replaceAll(/[\n\s]+/g," "):e;function _F(e){const{utility:r,hash:n,conditions:o=X8e}=e,a=s=>[r.prefix,s].filter(Boolean).join("-"),i=(s,l)=>{let c;if(n){const d=[...o.finalize(s),l];c=a(r.toHash(d,H8e))}else c=[...o.finalize(s),a(l)].join(":");return c};return go(({base:s,...l}={})=>{const c=Object.assign(l,s),d=kF(c,e),u=new Set;return IE(d,(h,f)=>{if(h==null)return;const g=V8e(h),[b,...x]=o.shift(f),w=L8e(x),k=r.transform(b,q8e(K8e(h)));let C=i(w,k.className);g&&(C=`${C}!`),u.add(C)}),Array.from(u).join(" ")})}function Z8e(...e){return e.flat().filter(r=>G3(r)&&Object.keys(np(r)).length>0)}function Q8e(e){function r(a){const i=Z8e(...a);return i.length===1?i:i.map(s=>kF(s,e))}function n(...a){return zE(...r(a))}function o(...a){return Object.assign({},...r(a))}return{mergeCss:go(n),assignCss:o}}var J8e=/([A-Z])/g,eEe=/^ms-/,tEe=go(e=>e.startsWith("--")?e:e.replace(J8e,"-$1").replace(eEe,"-ms-").toLowerCase()),rEe=["min","max","clamp","calc"],nEe=new RegExp(`^(${rEe.join("|")})\\(.*\\)`),oEe=e=>typeof e=="string"&&nEe.test(e),aEe="cm,mm,Q,in,pc,pt,px,em,ex,ch,rem,lh,rlh,vw,vh,vmin,vmax,vb,vi,svw,svh,lvw,lvh,dvw,dvh,cqw,cqh,cqi,cqb,cqmin,cqmax,%",iEe=`(?:${aEe.split(",").join("|")})`,sEe=new RegExp(`^[+-]?[0-9]*.?[0-9]+(?:[eE][+-]?[0-9]+)?${iEe}$`),lEe=e=>typeof e=="string"&&sEe.test(e),cEe=e=>typeof e=="string"&&/^var\(--.+\)$/.test(e),r0={map:Y8e,isCssFunction:oEe,isCssVar:cEe,isCssUnit:lEe},n0=(e,r)=>{if(!e?.defaultValues)return r;const n=typeof e.defaultValues=="function"?e.defaultValues(r):e.defaultValues;return Object.assign({},n,np(r))},dEe=(e={})=>{const r=o=>({className:[e.className,o].filter(Boolean).join("__"),base:e.base?.[o]??{},variants:{},defaultVariants:e.defaultVariants??{},compoundVariants:e.compoundVariants?OE(e.compoundVariants,o):[]}),n=(e.slots??[]).map(o=>[o,r(o)]);for(const[o,a]of Object.entries(e.variants??{}))for(const[i,s]of Object.entries(a))n.forEach(([l,c])=>{c.variants[o]??={},c.variants[o][i]=s[l]??{}});return Object.fromEntries(n)},OE=(e,r)=>e.filter(n=>n.css[r]).map(n=>({...n,css:n.css[r]}));function oo(e,...r){const n=Object.getOwnPropertyDescriptors(e),o=Object.keys(n),a=s=>{const l={};for(let c=0;ca(Array.isArray(s)?s:o.filter(s));return r.map(i).concat(a(o))}var jE=(...e)=>{const r=e.reduce((n,o)=>(o&&o.forEach(a=>n.add(a)),n),new Set([]));return Array.from(r)},EF=["htmlSize","htmlTranslate","htmlWidth","htmlHeight"];function uEe(e){return EF.includes(e)?e.replace("html","").toLowerCase():e}function LE(e){return Object.fromEntries(Object.entries(e).map(([r,n])=>[uEe(r),n]))}LE.keys=EF;const pEe="_hover,_focus,_focusWithin,_focusVisible,_disabled,_active,_visited,_target,_readOnly,_readWrite,_empty,_checked,_enabled,_expanded,_highlighted,_complete,_incomplete,_dragging,_before,_after,_firstLetter,_firstLine,_marker,_selection,_file,_backdrop,_first,_last,_only,_even,_odd,_firstOfType,_lastOfType,_onlyOfType,_peerFocus,_peerHover,_peerActive,_peerFocusWithin,_peerFocusVisible,_peerDisabled,_peerChecked,_peerInvalid,_peerExpanded,_peerPlaceholderShown,_groupFocus,_groupHover,_groupActive,_groupFocusWithin,_groupFocusVisible,_groupDisabled,_groupChecked,_groupExpanded,_groupInvalid,_indeterminate,_required,_valid,_invalid,_autofill,_inRange,_outOfRange,_placeholder,_placeholderShown,_pressed,_selected,_grabbed,_underValue,_overValue,_atValue,_default,_optional,_open,_closed,_fullscreen,_loading,_hidden,_current,_currentPage,_currentStep,_today,_unavailable,_rangeStart,_rangeEnd,_now,_topmost,_motionReduce,_motionSafe,_print,_landscape,_portrait,_dark,_light,_osDark,_osLight,_highContrast,_lessContrast,_moreContrast,_ltr,_rtl,_scrollbar,_scrollbarThumb,_scrollbarTrack,_horizontal,_vertical,_icon,_starting,_noscript,_invertedColors,_shapeSizeXs,_shapeSizeSm,_shapeSizeMd,_shapeSizeLg,_shapeSizeXl,_shapeRectangle,_shapePerson,_shapeBrowser,_shapeMobile,_shapeCylinder,_shapeStorage,_shapeQueue,_notDisabled,_reduceGraphics,_reduceGraphicsOnPan,_noReduceGraphics,_whenPanning,_smallZoom,_compoundTransparent,_edgeActive,_whenHovered,_whenSelectable,_whenSelected,_whenDimmed,_whenFocused,_p3,_srgb,_rec2020,xs,xsOnly,xsDown,sm,smOnly,smDown,md,mdOnly,mdDown,lg,lgOnly,lgDown,xl,xlOnly,xlDown,xsToSm,xsToMd,xsToLg,xsToXl,smToMd,smToLg,smToXl,mdToLg,mdToXl,lgToXl,@/xs,@/sm,@/md,@/lg,@likec4-root/xs,@likec4-root/sm,@likec4-root/md,@likec4-root/lg,@likec4-dialog/xs,@likec4-dialog/sm,@likec4-dialog/md,@likec4-dialog/lg,base",SF=new Set(pEe.split(",")),hEe=/^@|&|&$/;function CF(e){return SF.has(e)||hEe.test(e)}const fEe=/^_/,mEe=/&|@/;function TF(e){return e.map(r=>SF.has(r)?r.replace(fEe,""):mEe.test(r)?`[${ME(r.trim())}]`:r)}function AF(e){return e.sort((r,n)=>{const o=CF(r),a=CF(n);return o&&!a?1:!o&&a?-1:0})}const gEe="aspectRatio:asp,boxDecorationBreak:bx-db,zIndex:z,boxSizing:bx-s,objectPosition:obj-p,objectFit:obj-f,overscrollBehavior:ovs-b,overscrollBehaviorX:ovs-bx,overscrollBehaviorY:ovs-by,position:pos/1,top:top,left:left,inset:inset,insetInline:inset-x/insetX,insetBlock:inset-y/insetY,insetBlockEnd:inset-be,insetBlockStart:inset-bs,insetInlineEnd:inset-e/insetEnd/end,insetInlineStart:inset-s/insetStart/start,right:right,bottom:bottom,float:float,visibility:vis,display:d,hideFrom:hide,hideBelow:show,flexBasis:flex-b,flex:flex,flexDirection:flex-d/flexDir,flexGrow:flex-g,flexShrink:flex-sh,gridTemplateColumns:grid-tc,gridTemplateRows:grid-tr,gridColumn:grid-c,gridRow:grid-r,gridColumnStart:grid-cs,gridColumnEnd:grid-ce,gridAutoFlow:grid-af,gridAutoColumns:grid-ac,gridAutoRows:grid-ar,gap:gap,gridGap:grid-g,gridRowGap:grid-rg,gridColumnGap:grid-cg,rowGap:rg,columnGap:cg,justifyContent:jc,alignContent:ac,alignItems:ai,alignSelf:as,padding:p/1,paddingLeft:pl/1,paddingRight:pr/1,paddingTop:pt/1,paddingBottom:pb/1,paddingBlock:py/1/paddingY,paddingBlockEnd:pbe,paddingBlockStart:pbs,paddingInline:px/paddingX/1,paddingInlineEnd:pe/1/paddingEnd,paddingInlineStart:ps/1/paddingStart,marginLeft:ml/1,marginRight:mr/1,marginTop:mt/1,marginBottom:mb/1,margin:m/1,marginBlock:my/1/marginY,marginBlockEnd:mbe,marginBlockStart:mbs,marginInline:mx/1/marginX,marginInlineEnd:me/1/marginEnd,marginInlineStart:ms/1/marginStart,spaceX:sx,spaceY:sy,outlineWidth:ring-w/ringWidth,outlineColor:ring-c/ringColor,outline:ring/1,outlineOffset:ring-o/ringOffset,focusRing:focus-ring,focusVisibleRing:focus-v-ring,focusRingColor:focus-ring-c,focusRingOffset:focus-ring-o,focusRingWidth:focus-ring-w,focusRingStyle:focus-ring-s,divideX:dvd-x,divideY:dvd-y,divideColor:dvd-c,divideStyle:dvd-s,width:w/1,inlineSize:w-is,minWidth:min-w/minW,minInlineSize:min-w-is,maxWidth:max-w/maxW,maxInlineSize:max-w-is,height:h/1,blockSize:h-bs,minHeight:min-h/minH,minBlockSize:min-h-bs,maxHeight:max-h/maxH,maxBlockSize:max-b,boxSize:size,color:c,fontFamily:ff,fontSize:fs,fontSizeAdjust:fs-a,fontPalette:fp,fontKerning:fk,fontFeatureSettings:ff-s,fontWeight:fw,fontSmoothing:fsmt,fontVariant:fv,fontVariantAlternates:fv-alt,fontVariantCaps:fv-caps,fontVariationSettings:fv-s,fontVariantNumeric:fv-num,letterSpacing:ls,lineHeight:lh,textAlign:ta,textDecoration:td,textDecorationColor:td-c,textEmphasisColor:te-c,textDecorationStyle:td-s,textDecorationThickness:td-t,textUnderlineOffset:tu-o,textTransform:tt,textIndent:ti,textShadow:tsh,textShadowColor:tsh-c/textShadowColor,textOverflow:tov,verticalAlign:va,wordBreak:wb,textWrap:tw,truncate:trunc,lineClamp:lc,listStyleType:li-t,listStylePosition:li-pos,listStyleImage:li-img,listStyle:li-s,backgroundPosition:bg-p/bgPosition,backgroundPositionX:bg-p-x/bgPositionX,backgroundPositionY:bg-p-y/bgPositionY,backgroundAttachment:bg-a/bgAttachment,backgroundClip:bg-cp/bgClip,background:bg/1,backgroundColor:bg-c/bgColor,backgroundOrigin:bg-o/bgOrigin,backgroundImage:bg-i/bgImage,backgroundRepeat:bg-r/bgRepeat,backgroundBlendMode:bg-bm/bgBlendMode,backgroundSize:bg-s/bgSize,backgroundGradient:bg-grad/bgGradient,backgroundLinear:bg-linear/bgLinear,backgroundRadial:bg-radial/bgRadial,backgroundConic:bg-conic/bgConic,textGradient:txt-grad,gradientFromPosition:grad-from-pos,gradientToPosition:grad-to-pos,gradientFrom:grad-from,gradientTo:grad-to,gradientVia:grad-via,gradientViaPosition:grad-via-pos,borderRadius:bdr/rounded,borderTopLeftRadius:bdr-tl/roundedTopLeft,borderTopRightRadius:bdr-tr/roundedTopRight,borderBottomRightRadius:bdr-br/roundedBottomRight,borderBottomLeftRadius:bdr-bl/roundedBottomLeft,borderTopRadius:bdr-t/roundedTop,borderRightRadius:bdr-r/roundedRight,borderBottomRadius:bdr-b/roundedBottom,borderLeftRadius:bdr-l/roundedLeft,borderStartStartRadius:bdr-ss/roundedStartStart,borderStartEndRadius:bdr-se/roundedStartEnd,borderStartRadius:bdr-s/roundedStart,borderEndStartRadius:bdr-es/roundedEndStart,borderEndEndRadius:bdr-ee/roundedEndEnd,borderEndRadius:bdr-e/roundedEnd,border:bd,borderWidth:bd-w,borderTopWidth:bd-t-w,borderLeftWidth:bd-l-w,borderRightWidth:bd-r-w,borderBottomWidth:bd-b-w,borderBlockStartWidth:bd-bs-w,borderBlockEndWidth:bd-be-w,borderColor:bd-c,borderInline:bd-x/borderX,borderInlineWidth:bd-x-w/borderXWidth,borderInlineColor:bd-x-c/borderXColor,borderBlock:bd-y/borderY,borderBlockWidth:bd-y-w/borderYWidth,borderBlockColor:bd-y-c/borderYColor,borderLeft:bd-l,borderLeftColor:bd-l-c,borderInlineStart:bd-s/borderStart,borderInlineStartWidth:bd-s-w/borderStartWidth,borderInlineStartColor:bd-s-c/borderStartColor,borderRight:bd-r,borderRightColor:bd-r-c,borderInlineEnd:bd-e/borderEnd,borderInlineEndWidth:bd-e-w/borderEndWidth,borderInlineEndColor:bd-e-c/borderEndColor,borderTop:bd-t,borderTopColor:bd-t-c,borderBottom:bd-b,borderBottomColor:bd-b-c,borderBlockEnd:bd-be,borderBlockEndColor:bd-be-c,borderBlockStart:bd-bs,borderBlockStartColor:bd-bs-c,opacity:op,boxShadow:bx-sh/shadow,boxShadowColor:bx-sh-c/shadowColor,mixBlendMode:mix-bm,filter:filter,brightness:brightness,contrast:contrast,grayscale:grayscale,hueRotate:hue-rotate,invert:invert,saturate:saturate,sepia:sepia,dropShadow:drop-shadow,blur:blur,backdropFilter:bkdp,backdropBlur:bkdp-blur,backdropBrightness:bkdp-brightness,backdropContrast:bkdp-contrast,backdropGrayscale:bkdp-grayscale,backdropHueRotate:bkdp-hue-rotate,backdropInvert:bkdp-invert,backdropOpacity:bkdp-opacity,backdropSaturate:bkdp-saturate,backdropSepia:bkdp-sepia,borderCollapse:bd-cl,borderSpacing:bd-sp,borderSpacingX:bd-sx,borderSpacingY:bd-sy,tableLayout:tbl,transitionTimingFunction:trs-tmf,transitionDelay:trs-dly,transitionDuration:trs-dur,transitionProperty:trs-prop,transition:transition,animation:anim,animationName:anim-n,animationTimingFunction:anim-tmf,animationDuration:anim-dur,animationDelay:anim-dly,animationPlayState:anim-ps,animationComposition:anim-comp,animationFillMode:anim-fm,animationDirection:anim-dir,animationIterationCount:anim-ic,animationRange:anim-r,animationState:anim-s,animationRangeStart:anim-rs,animationRangeEnd:anim-re,animationTimeline:anim-tl,transformOrigin:trf-o,transformBox:trf-b,transformStyle:trf-s,transform:trf,rotate:rotate,rotateX:rotate-x,rotateY:rotate-y,rotateZ:rotate-z,scale:scale,scaleX:scale-x,scaleY:scale-y,translate:translate,translateX:translate-x/x,translateY:translate-y/y,translateZ:translate-z/z,accentColor:ac-c,caretColor:ca-c,scrollBehavior:scr-bhv,scrollbar:scr-bar,scrollbarColor:scr-bar-c,scrollbarGutter:scr-bar-g,scrollbarWidth:scr-bar-w,scrollMargin:scr-m,scrollMarginLeft:scr-ml,scrollMarginRight:scr-mr,scrollMarginTop:scr-mt,scrollMarginBottom:scr-mb,scrollMarginBlock:scr-my/scrollMarginY,scrollMarginBlockEnd:scr-mbe,scrollMarginBlockStart:scr-mbt,scrollMarginInline:scr-mx/scrollMarginX,scrollMarginInlineEnd:scr-me,scrollMarginInlineStart:scr-ms,scrollPadding:scr-p,scrollPaddingBlock:scr-py/scrollPaddingY,scrollPaddingBlockStart:scr-pbs,scrollPaddingBlockEnd:scr-pbe,scrollPaddingInline:scr-px/scrollPaddingX,scrollPaddingInlineEnd:scr-pe,scrollPaddingInlineStart:scr-ps,scrollPaddingLeft:scr-pl,scrollPaddingRight:scr-pr,scrollPaddingTop:scr-pt,scrollPaddingBottom:scr-pb,scrollSnapAlign:scr-sa,scrollSnapStop:scrs-s,scrollSnapType:scrs-t,scrollSnapStrictness:scrs-strt,scrollSnapMargin:scrs-m,scrollSnapMarginTop:scrs-mt,scrollSnapMarginBottom:scrs-mb,scrollSnapMarginLeft:scrs-ml,scrollSnapMarginRight:scrs-mr,scrollSnapCoordinate:scrs-c,scrollSnapDestination:scrs-d,scrollSnapPointsX:scrs-px,scrollSnapPointsY:scrs-py,scrollSnapTypeX:scrs-tx,scrollSnapTypeY:scrs-ty,scrollTimeline:scrtl,scrollTimelineAxis:scrtl-a,scrollTimelineName:scrtl-n,touchAction:tch-a,userSelect:us,overflow:ov,overflowWrap:ov-wrap,overflowX:ov-x,overflowY:ov-y,overflowAnchor:ov-a,overflowBlock:ov-b,overflowInline:ov-i,overflowClipBox:ovcp-bx,overflowClipMargin:ovcp-m,overscrollBehaviorBlock:ovs-bb,overscrollBehaviorInline:ovs-bi,fill:fill,stroke:stk,strokeWidth:stk-w,strokeDasharray:stk-dsh,strokeDashoffset:stk-do,strokeLinecap:stk-lc,strokeLinejoin:stk-lj,strokeMiterlimit:stk-ml,strokeOpacity:stk-op,srOnly:sr,debug:debug,appearance:ap,backfaceVisibility:bfv,clipPath:cp-path,hyphens:hy,mask:msk,maskImage:msk-i,maskSize:msk-s,textSizeAdjust:txt-adj,container:cq,containerName:cq-n,containerType:cq-t,cursor:cursor,textStyle:textStyle,layerStyle:layerStyle,animationStyle:animationStyle",RF=new Map,NF=new Map;gEe.split(",").forEach(e=>{const[r,n]=e.split(":"),[o,...a]=n.split("/");RF.set(r,o),a.length&&a.forEach(i=>{NF.set(i==="1"?o:i,r)})});const DF=e=>NF.get(e)||e,$F={conditions:{shift:AF,finalize:TF,breakpoints:{keys:["base","xs","sm","md","lg","xl"]}},utility:{transform:(e,r)=>{const n=DF(e);return{className:`${RF.get(n)||tEe(n)}_${ME(r)}`}},hasShorthand:!0,toHash:(e,r)=>r(e.join(":")),resolveShorthand:DF}},yEe=_F($F),be=(...e)=>yEe(op(...e));be.raw=(...e)=>op(...e);const{mergeCss:op}=Q8e($F);function et(){let e="",r=0,n;for(;r({base:{},variants:{},defaultVariants:{},compoundVariants:[],...e});function o0(e){const{base:r,variants:n,defaultVariants:o,compoundVariants:a}=PF(e),i=f=>({...o,...np(f)});function s(f={}){const g=i(f);let b={...r};for(const[w,k]of Object.entries(g))n[w]?.[k]&&(b=op(b,n[w][k]));const x=BE(a,g);return op(b,x)}function l(f){const g=PF(f.config),b=jE(f.variantKeys,Object.keys(n));return o0({base:op(r,g.base),variants:Object.fromEntries(b.map(x=>[x,op(n[x],g.variants[x])])),defaultVariants:zE(o,g.defaultVariants),compoundVariants:[...a,...g.compoundVariants]})}function c(f){return be(s(f))}const d=Object.keys(n);function u(f){return oo(f,d)}const h=Object.fromEntries(Object.entries(n).map(([f,g])=>[f,Object.keys(g)]));return Object.assign(go(c),{__cva__:!0,variantMap:h,variantKeys:d,raw:s,config:e,merge:l,splitVariantProps:u,getVariantProps:i})}function BE(e,r){let n={};return e.forEach(o=>{Object.entries(o).every(([a,i])=>a==="css"?!0:(Array.isArray(i)?i:[i]).some(s=>r[a]===s))&&(n=op(n,o.css))}),n}function bEe(e,r,n,o){if(r.length>0&&typeof n?.[o]=="object")throw new Error(`[recipe:${e}:${o}] Conditions are not supported when using compound variants.`)}function vEe(e){const r=Object.entries(dEe(e)).map(([h,f])=>[h,o0(f)]),n=e.defaultVariants??{},o=r.reduce((h,[f,g])=>(e.className&&(h[f]=g.config.className),h),{});function a(h){const f=r.map(([g,b])=>[g,et(b(h),o[g])]);return Object.fromEntries(f)}function i(h){const f=r.map(([g,b])=>[g,b.raw(h)]);return Object.fromEntries(f)}const s=e.variants??{},l=Object.keys(s);function c(h){return oo(h,l)}const d=h=>({...n,...np(h)}),u=Object.fromEntries(Object.entries(s).map(([h,f])=>[h,Object.keys(f)]));return Object.assign(go(a),{__cva__:!1,raw:i,config:e,variantMap:u,variantKeys:l,classNameMap:o,splitVariantProps:c,getVariantProps:d})}var xEe={outline:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},filled:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none"}};const Nt=(e,r,n,o)=>{const a=E.forwardRef(({color:i="currentColor",size:s=24,stroke:l=2,title:c,className:d,children:u,...h},f)=>E.createElement("svg",{ref:f,...xEe[e],width:s,height:s,className:["tabler-icon",`tabler-icon-${r}`,d].join(" "),...e==="filled"?{fill:i}:{strokeWidth:l,stroke:i},...h},[c&&E.createElement("title",{key:"svg-title"},c),...o.map(([g,b])=>E.createElement(g,b)),...Array.isArray(u)?u:[u]]));return a.displayName=`${n}`,a},wEe=[["path",{d:"M12 6m-7 0a7 3 0 1 0 14 0a7 3 0 1 0 -14 0",key:"svg-0"}],["path",{d:"M5 6v12c0 1.657 3.134 3 7 3s7 -1.343 7 -3v-12",key:"svg-1"}]],MF=Nt("outline","cylinder","Cylinder",wEe),kEe=[["path",{d:"M21 14.008v-5.018a1.98 1.98 0 0 0 -1 -1.717l-4 -2.008a2.016 2.016 0 0 0 -2 0l-10 5.008c-.619 .355 -1 1.01 -1 1.718v5.018c0 .709 .381 1.363 1 1.717l4 2.008a2.016 2.016 0 0 0 2 0l10 -5.008c.619 -.355 1 -1.01 1 -1.718z",key:"svg-0"}],["path",{d:"M9 21v-7.5",key:"svg-1"}],["path",{d:"M9 13.5l11.5 -5.5",key:"svg-2"}],["path",{d:"M3.5 11l5.5 2.5",key:"svg-3"}]],_Ee=Nt("outline","rectangular-prism","RectangularPrism",kEe),EEe=[["path",{d:"M3 15m0 1a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v2a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1z",key:"svg-0"}],["path",{d:"M10 15m0 1a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v2a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1z",key:"svg-1"}],["path",{d:"M17 15m0 1a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v2a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1z",key:"svg-2"}],["path",{d:"M5 11v-3a3 3 0 0 1 3 -3h8a3 3 0 0 1 3 3v3",key:"svg-3"}],["path",{d:"M16.5 8.5l2.5 2.5l2.5 -2.5",key:"svg-4"}]],SEe=Nt("outline","reorder","Reorder",EEe),CEe=[["path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0",key:"svg-0"}],["path",{d:"M6 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2",key:"svg-1"}]],TEe=Nt("outline","user","User",CEe),AEe=[["path",{d:"M6 5a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-8a2 2 0 0 1 -2 -2v-14z",key:"svg-0"}],["path",{d:"M11 4h2",key:"svg-1"}],["path",{d:"M12 17v.01",key:"svg-2"}]],REe=Nt("outline","device-mobile","DeviceMobile",AEe),NEe=[["path",{d:"M4 8h16",key:"svg-0"}],["path",{d:"M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z",key:"svg-1"}],["path",{d:"M8 4v4",key:"svg-2"}]],DEe=Nt("outline","browser","Browser",NEe),FE=E.createContext(null);function $Ee({value:e,children:r}){return E.useContext(FE)?y.jsx(y.Fragment,{children:r}):y.jsx(FE.Provider,{value:e,children:r})}function X3({element:e,className:r,style:n}){const o=E.useContext(FE);if(!e||!e.icon||e.icon==="none")return null;let a;return e.icon.startsWith("http://")||e.icon.startsWith("https://")?a=y.jsx("img",{src:e.icon,alt:e.title}):o&&(a=y.jsx(o,{node:e})),a?y.jsx("div",{className:et(r,"likec4-element-icon"),"data-likec4-icon":e.icon,style:n,children:a}):null}const PEe={browser:DEe,cylinder:MF,mobile:REe,person:TEe,queue:SEe,rectangle:_Ee,storage:MF};function MEe({element:e,className:r}){const n=y.jsx(X3,{element:e,className:r});if(n)return n;const o=PEe[e.shape];return y.jsx("div",{className:et(r,"likec4-shape-icon"),children:y.jsx(o,{})})}function Cf(e){const r=E.useRef(e);return r.current=e,E.useMemo(()=>Object.freeze({get current(){return r.current}}),[])}function zF(e){const r=Cf(e);E.useEffect(()=>()=>{r.current()},[])}function HE(e,r,n,o=0){const a=E.useRef(void 0),i=E.useRef(void 0),s=E.useRef(e),l=E.useRef(void 0),c=()=>{a.current&&(clearTimeout(a.current),a.current=void 0),i.current&&(clearTimeout(i.current),i.current=void 0)};return zF(c),E.useEffect(()=>{s.current=e},r),E.useMemo(()=>{const d=()=>{if(c(),!l.current)return;const h=l.current;l.current=void 0,s.current.apply(h.this,h.args)},u=function(...h){a.current&&clearTimeout(a.current),l.current={args:h,this:this},a.current=setTimeout(d,n),o>0&&!i.current&&(i.current=setTimeout(d,o))};return Object.defineProperties(u,{length:{value:e.length},name:{value:`${e.name||"anonymous"}__debounced__${n}`}}),u},[n,o,...r])}const zEe=()=>{},K3=typeof globalThis<"u"&&typeof navigator<"u"&&typeof document<"u";function IEe(e){const r=Cf(e),n=E.useRef(0),o=E.useCallback(()=>{K3&&n.current&&(cancelAnimationFrame(n.current),n.current=0)},[]);return zF(o),[E.useMemo(()=>{const a=(...i)=>{K3&&(o(),n.current=requestAnimationFrame(()=>{r.current(...i),n.current=0}))};return Object.defineProperties(a,{length:{value:e.length},name:{value:`${e.name||"anonymous"}__raf`}}),a},[]),o]}const OEe=(e,r)=>{if(e===r)return!0;if(e.length!==r.length)return!1;for(const[n,o]of e.entries())if(o!==r[n])return!1;return!0};function jEe(e,r,n=OEe,o=E.useEffect,...a){const i=E.useRef(void 0);(i.current===void 0||K3&&!n(i.current,r))&&(i.current=r),o(e,i.current,...a)}function IF(){const e=E.useRef(!0);return E.useEffect(()=>{e.current=!1},[]),e.current}const VE=K3?E.useLayoutEffect:E.useEffect;function LEe(e){E.useEffect(()=>{e()},[])}function qE(e,r){const[n,o]=IEe(e);E.useEffect(()=>(n(),o),r)}const BEe=e=>(e+1)%Number.MAX_SAFE_INTEGER;function FEe(){const[,e]=E.useState(0);return E.useCallback(()=>{e(BEe)},[])}function OF(e,r){const n=IF();E.useEffect(n?zEe:e,r)}const HEe=e=>{e&&clearTimeout(e)};function Z3(e,r){const n=Cf(e),o=Cf(r),a=E.useRef(null),i=E.useCallback(()=>{HEe(a.current)},[]),s=E.useCallback(()=>{o.current!==void 0&&(i(),a.current=setTimeout(()=>{n.current()},o.current))},[]);return E.useEffect(()=>(s(),i),[r]),[i,s]}const jF=(e,r,n)=>{const o=E.useRef(void 0);return(o.current===void 0||!n(o.current,r))&&(o.current=r),E.useMemo(e,o.current)};function _n(e){if(typeof e=="string"||typeof e=="number")return""+e;let r="";if(Array.isArray(e))for(let n=0,o;n{}};function Q3(){for(var e=0,r=arguments.length,n={},o;e=0&&(o=n.slice(a+1),n=n.slice(0,a)),n&&!r.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:o}})}J3.prototype=Q3.prototype={constructor:J3,on:function(e,r){var n=this._,o=qEe(e+"",n),a,i=-1,s=o.length;if(arguments.length<2){for(;++i0)for(var n=new Array(a),o=0,a,i;o=0&&(r=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),BF.hasOwnProperty(r)?{space:BF[r],local:e}:e}function WEe(e){return function(){var r=this.ownerDocument,n=this.namespaceURI;return n===UE&&r.documentElement.namespaceURI===UE?r.createElement(e):r.createElementNS(n,e)}}function YEe(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function FF(e){var r=ex(e);return(r.local?YEe:WEe)(r)}function GEe(){}function WE(e){return e==null?GEe:function(){return this.querySelector(e)}}function XEe(e){typeof e!="function"&&(e=WE(e));for(var r=this._groups,n=r.length,o=new Array(n),a=0;a=_&&(_=C+1);!(A=w[_])&&++_=0;)(s=o[a])&&(i&&s.compareDocumentPosition(i)^4&&i.parentNode.insertBefore(s,i),i=s);return this}function x7e(e){e||(e=w7e);function r(h,f){return h&&f?e(h.__data__,f.__data__):!h-!f}for(var n=this._groups,o=n.length,a=new Array(o),i=0;ir?1:e>=r?0:NaN}function k7e(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function _7e(){return Array.from(this)}function E7e(){for(var e=this._groups,r=0,n=e.length;r1?this.each((r==null?z7e:typeof r=="function"?O7e:I7e)(e,r,n??"")):Tf(this.node(),e)}function Tf(e,r){return e.style.getPropertyValue(r)||WF(e).getComputedStyle(e,null).getPropertyValue(r)}function L7e(e){return function(){delete this[e]}}function B7e(e,r){return function(){this[e]=r}}function F7e(e,r){return function(){var n=r.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function H7e(e,r){return arguments.length>1?this.each((r==null?L7e:typeof r=="function"?F7e:B7e)(e,r)):this.node()[e]}function YF(e){return e.trim().split(/^|\s+/)}function YE(e){return e.classList||new GF(e)}function GF(e){this._node=e,this._names=YF(e.getAttribute("class")||"")}GF.prototype={add:function(e){var r=this._names.indexOf(e);r<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var r=this._names.indexOf(e);r>=0&&(this._names.splice(r,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function XF(e,r){for(var n=YE(e),o=-1,a=r.length;++o=0&&(n=r.slice(o+1),r=r.slice(0,o)),{type:r,name:n}})}function g9e(e){return function(){var r=this.__on;if(r){for(var n=0,o=-1,a=r.length,i;n()=>e;function XE(e,{sourceEvent:r,subject:n,target:o,identifier:a,active:i,x:s,y:l,dx:c,dy:d,dispatch:u}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:r,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:o,enumerable:!0,configurable:!0},identifier:{value:a,enumerable:!0,configurable:!0},active:{value:i,enumerable:!0,configurable:!0},x:{value:s,enumerable:!0,configurable:!0},y:{value:l,enumerable:!0,configurable:!0},dx:{value:c,enumerable:!0,configurable:!0},dy:{value:d,enumerable:!0,configurable:!0},_:{value:u}})}XE.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function C9e(e){return!e.ctrlKey&&!e.button}function T9e(){return this.parentNode}function A9e(e,r){return r??{x:e.x,y:e.y}}function R9e(){return navigator.maxTouchPoints||"ontouchstart"in this}function tH(){var e=C9e,r=T9e,n=A9e,o=R9e,a={},i=Q3("start","drag","end"),s=0,l,c,d,u,h=0;function f(T){T.on("mousedown.drag",g).filter(o).on("touchstart.drag",w).on("touchmove.drag",k,S9e).on("touchend.drag touchcancel.drag",C).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function g(T,A){if(!(u||!e.call(this,T,A))){var R=_(this,r.call(this,T,A),T,A,"mouse");R&&(za(T.view).on("mousemove.drag",b,i0).on("mouseup.drag",x,i0),JF(T.view),GE(T),d=!1,l=T.clientX,c=T.clientY,R("start",T))}}function b(T){if(Af(T),!d){var A=T.clientX-l,R=T.clientY-c;d=A*A+R*R>h}a.mouse("drag",T)}function x(T){za(T.view).on("mousemove.drag mouseup.drag",null),eH(T.view,d),Af(T),a.mouse("end",T)}function w(T,A){if(e.call(this,T,A)){var R=T.changedTouches,D=r.call(this,T,A),N=R.length,P,O;for(P=0;P>8&15|r>>4&240,r>>4&15|r&240,(r&15)<<4|r&15,1):n===8?ox(r>>24&255,r>>16&255,r>>8&255,(r&255)/255):n===4?ox(r>>12&15|r>>8&240,r>>8&15|r>>4&240,r>>4&15|r&240,((r&15)<<4|r&15)/255):null):(r=D9e.exec(e))?new ca(r[1],r[2],r[3],1):(r=$9e.exec(e))?new ca(r[1]*255/100,r[2]*255/100,r[3]*255/100,1):(r=P9e.exec(e))?ox(r[1],r[2],r[3],r[4]):(r=M9e.exec(e))?ox(r[1]*255/100,r[2]*255/100,r[3]*255/100,r[4]):(r=z9e.exec(e))?cH(r[1],r[2]/100,r[3]/100,1):(r=I9e.exec(e))?cH(r[1],r[2]/100,r[3]/100,r[4]):nH.hasOwnProperty(e)?iH(nH[e]):e==="transparent"?new ca(NaN,NaN,NaN,0):null}function iH(e){return new ca(e>>16&255,e>>8&255,e&255,1)}function ox(e,r,n,o){return o<=0&&(e=r=n=NaN),new ca(e,r,n,o)}function L9e(e){return e instanceof s0||(e=ap(e)),e?(e=e.rgb(),new ca(e.r,e.g,e.b,e.opacity)):new ca}function ZE(e,r,n,o){return arguments.length===1?L9e(e):new ca(e,r,n,o??1)}function ca(e,r,n,o){this.r=+e,this.g=+r,this.b=+n,this.opacity=+o}KE(ca,ZE,rH(s0,{brighter(e){return e=e==null?nx:Math.pow(nx,e),new ca(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?l0:Math.pow(l0,e),new ca(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ca(ip(this.r),ip(this.g),ip(this.b),ax(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:sH,formatHex:sH,formatHex8:B9e,formatRgb:lH,toString:lH}));function sH(){return`#${sp(this.r)}${sp(this.g)}${sp(this.b)}`}function B9e(){return`#${sp(this.r)}${sp(this.g)}${sp(this.b)}${sp((isNaN(this.opacity)?1:this.opacity)*255)}`}function lH(){const e=ax(this.opacity);return`${e===1?"rgb(":"rgba("}${ip(this.r)}, ${ip(this.g)}, ${ip(this.b)}${e===1?")":`, ${e})`}`}function ax(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ip(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function sp(e){return e=ip(e),(e<16?"0":"")+e.toString(16)}function cH(e,r,n,o){return o<=0?e=r=n=NaN:n<=0||n>=1?e=r=NaN:r<=0&&(e=NaN),new as(e,r,n,o)}function dH(e){if(e instanceof as)return new as(e.h,e.s,e.l,e.opacity);if(e instanceof s0||(e=ap(e)),!e)return new as;if(e instanceof as)return e;e=e.rgb();var r=e.r/255,n=e.g/255,o=e.b/255,a=Math.min(r,n,o),i=Math.max(r,n,o),s=NaN,l=i-a,c=(i+a)/2;return l?(r===i?s=(n-o)/l+(n0&&c<1?0:s,new as(s,l,c,e.opacity)}function F9e(e,r,n,o){return arguments.length===1?dH(e):new as(e,r,n,o??1)}function as(e,r,n,o){this.h=+e,this.s=+r,this.l=+n,this.opacity=+o}KE(as,F9e,rH(s0,{brighter(e){return e=e==null?nx:Math.pow(nx,e),new as(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?l0:Math.pow(l0,e),new as(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,r=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,o=n+(n<.5?n:1-n)*r,a=2*n-o;return new ca(QE(e>=240?e-240:e+120,a,o),QE(e,a,o),QE(e<120?e+240:e-120,a,o),this.opacity)},clamp(){return new as(uH(this.h),ix(this.s),ix(this.l),ax(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(){const e=ax(this.opacity);return`${e===1?"hsl(":"hsla("}${uH(this.h)}, ${ix(this.s)*100}%, ${ix(this.l)*100}%${e===1?")":`, ${e})`}`}}));function uH(e){return e=(e||0)%360,e<0?e+360:e}function ix(e){return Math.max(0,Math.min(1,e||0))}function QE(e,r,n){return(e<60?r+(n-r)*e/60:e<180?n:e<240?r+(n-r)*(240-e)/60:r)*255}const JE=e=>()=>e;function H9e(e,r){return function(n){return e+n*r}}function V9e(e,r,n){return e=Math.pow(e,n),r=Math.pow(r,n)-e,n=1/n,function(o){return Math.pow(e+o*r,n)}}function q9e(e){return(e=+e)==1?pH:function(r,n){return n-r?V9e(r,n,e):JE(isNaN(r)?n:r)}}function pH(e,r){var n=r-e;return n?H9e(e,n):JE(isNaN(e)?r:e)}const sx=(function e(r){var n=q9e(r);function o(a,i){var s=n((a=ZE(a)).r,(i=ZE(i)).r),l=n(a.g,i.g),c=n(a.b,i.b),d=pH(a.opacity,i.opacity);return function(u){return a.r=s(u),a.g=l(u),a.b=c(u),a.opacity=d(u),a+""}}return o.gamma=e,o})(1);function U9e(e,r){r||(r=[]);var n=e?Math.min(r.length,e.length):0,o=r.slice(),a;return function(i){for(a=0;an&&(i=r.slice(n,i),l[s]?l[s]+=i:l[++s]=i),(o=o[0])===(a=a[0])?l[s]?l[s]+=a:l[++s]=a:(l[++s]=null,c.push({i:s,x:cl(o,a)})),n=t7.lastIndex;return n180?u+=360:u-d>180&&(d+=360),f.push({i:h.push(a(h)+"rotate(",null,o)-2,x:cl(d,u)})):u&&h.push(a(h)+"rotate("+u+o)}function l(d,u,h,f){d!==u?f.push({i:h.push(a(h)+"skewX(",null,o)-2,x:cl(d,u)}):u&&h.push(a(h)+"skewX("+u+o)}function c(d,u,h,f,g,b){if(d!==h||u!==f){var x=g.push(a(g)+"scale(",null,",",null,")");b.push({i:x-4,x:cl(d,h)},{i:x-2,x:cl(u,f)})}else(h!==1||f!==1)&&g.push(a(g)+"scale("+h+","+f+")")}return function(d,u){var h=[],f=[];return d=e(d),u=e(u),i(d.translateX,d.translateY,u.translateX,u.translateY,h,f),s(d.rotate,u.rotate,h,f),l(d.skewX,u.skewX,h,f),c(d.scaleX,d.scaleY,u.scaleX,u.scaleY,h,f),d=u=null,function(g){for(var b=-1,x=f.length,w;++b=0&&e._call.call(void 0,r),e=e._next;--Nf}function kH(){lp=(ux=f0.now())+px,Nf=u0=0;try{iSe()}finally{Nf=0,lSe(),lp=0}}function sSe(){var e=f0.now(),r=e-ux;r>vH&&(px-=r,ux=e)}function lSe(){for(var e,r=dx,n,o=1/0;r;)r._call?(o>r._time&&(o=r._time),e=r,r=r._next):(n=r._next,r._next=null,r=e?e._next=n:dx=n);h0=e,n7(o)}function n7(e){if(!Nf){u0&&(u0=clearTimeout(u0));var r=e-lp;r>24?(e<1/0&&(u0=setTimeout(kH,e-f0.now()-px)),p0&&(p0=clearInterval(p0))):(p0||(ux=f0.now(),p0=setInterval(sSe,vH)),Nf=1,xH(kH))}}function _H(e,r,n){var o=new hx;return r=r==null?0:+r,o.restart(a=>{o.stop(),e(a+r)},r,n),o}var cSe=Q3("start","end","cancel","interrupt"),dSe=[],EH=0,SH=1,o7=2,fx=3,CH=4,a7=5,mx=6;function gx(e,r,n,o,a,i){var s=e.__transition;if(!s)e.__transition={};else if(n in s)return;uSe(e,n,{name:r,index:o,group:a,on:cSe,tween:dSe,time:i.time,delay:i.delay,duration:i.duration,ease:i.ease,timer:null,state:EH})}function i7(e,r){var n=is(e,r);if(n.state>EH)throw new Error("too late; already scheduled");return n}function dl(e,r){var n=is(e,r);if(n.state>fx)throw new Error("too late; already running");return n}function is(e,r){var n=e.__transition;if(!n||!(n=n[r]))throw new Error("transition not found");return n}function uSe(e,r,n){var o=e.__transition,a;o[r]=n,n.timer=wH(i,0,n.time);function i(d){n.state=SH,n.timer.restart(s,n.delay,n.time),n.delay<=d&&s(d-n.delay)}function s(d){var u,h,f,g;if(n.state!==SH)return c();for(u in o)if(g=o[u],g.name===n.name){if(g.state===fx)return _H(s);g.state===CH?(g.state=mx,g.timer.stop(),g.on.call("interrupt",e,e.__data__,g.index,g.group),delete o[u]):+uo7&&o.state=0&&(r=r.slice(0,n)),!r||r==="start"})}function FSe(e,r,n){var o,a,i=BSe(r)?i7:dl;return function(){var s=i(this,e),l=s.on;l!==o&&(a=(o=l).copy()).on(r,n),s.on=a}}function HSe(e,r){var n=this._id;return arguments.length<2?is(this.node(),n).on.on(e):this.each(FSe(n,e,r))}function VSe(e){return function(){var r=this.parentNode;for(var n in this.__transition)if(+n!==e)return;r&&r.removeChild(this)}}function qSe(){return this.on("end.remove",VSe(this._id))}function USe(e){var r=this._name,n=this._id;typeof e!="function"&&(e=WE(e));for(var o=this._groups,a=o.length,i=new Array(a),s=0;s()=>e;function gCe(e,{sourceEvent:r,target:n,transform:o,dispatch:a}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:r,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:o,enumerable:!0,configurable:!0},_:{value:a}})}function sc(e,r,n){this.k=e,this.x=r,this.y=n}sc.prototype={constructor:sc,scale:function(e){return e===1?this:new sc(this.k*e,this.x,this.y)},translate:function(e,r){return e===0&r===0?this:new sc(this.k,this.x+this.k*e,this.y+this.k*r)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var vx=new sc(1,0,0);NH.prototype=sc.prototype;function NH(e){for(;!e.__zoom;)if(!(e=e.parentNode))return vx;return e.__zoom}function l7(e){e.stopImmediatePropagation()}function m0(e){e.preventDefault(),e.stopImmediatePropagation()}function yCe(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function bCe(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function DH(){return this.__zoom||vx}function vCe(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function xCe(){return navigator.maxTouchPoints||"ontouchstart"in this}function wCe(e,r,n){var o=e.invertX(r[0][0])-n[0][0],a=e.invertX(r[1][0])-n[1][0],i=e.invertY(r[0][1])-n[0][1],s=e.invertY(r[1][1])-n[1][1];return e.translate(a>o?(o+a)/2:Math.min(0,o)||Math.max(0,a),s>i?(i+s)/2:Math.min(0,i)||Math.max(0,s))}function $H(){var e=yCe,r=bCe,n=wCe,o=vCe,a=xCe,i=[0,1/0],s=[[-1/0,-1/0],[1/0,1/0]],l=250,c=cx,d=Q3("start","zoom","end"),u,h,f,g=500,b=150,x=0,w=10;function k(M){M.property("__zoom",DH).on("wheel.zoom",N,{passive:!1}).on("mousedown.zoom",P).on("dblclick.zoom",O).filter(a).on("touchstart.zoom",F).on("touchmove.zoom",L).on("touchend.zoom touchcancel.zoom",U).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}k.transform=function(M,V,I,H){var q=M.selection?M.selection():M;q.property("__zoom",DH),M!==q?A(M,V,I,H):q.interrupt().each(function(){R(this,arguments).event(H).start().zoom(null,typeof V=="function"?V.apply(this,arguments):V).end()})},k.scaleBy=function(M,V,I,H){k.scaleTo(M,function(){var q=this.__zoom.k,Z=typeof V=="function"?V.apply(this,arguments):V;return q*Z},I,H)},k.scaleTo=function(M,V,I,H){k.transform(M,function(){var q=r.apply(this,arguments),Z=this.__zoom,W=I==null?T(q):typeof I=="function"?I.apply(this,arguments):I,G=Z.invert(W),K=typeof V=="function"?V.apply(this,arguments):V;return n(_(C(Z,K),W,G),q,s)},I,H)},k.translateBy=function(M,V,I,H){k.transform(M,function(){return n(this.__zoom.translate(typeof V=="function"?V.apply(this,arguments):V,typeof I=="function"?I.apply(this,arguments):I),r.apply(this,arguments),s)},null,H)},k.translateTo=function(M,V,I,H,q){k.transform(M,function(){var Z=r.apply(this,arguments),W=this.__zoom,G=H==null?T(Z):typeof H=="function"?H.apply(this,arguments):H;return n(vx.translate(G[0],G[1]).scale(W.k).translate(typeof V=="function"?-V.apply(this,arguments):-V,typeof I=="function"?-I.apply(this,arguments):-I),Z,s)},H,q)};function C(M,V){return V=Math.max(i[0],Math.min(i[1],V)),V===M.k?M:new sc(V,M.x,M.y)}function _(M,V,I){var H=V[0]-I[0]*M.k,q=V[1]-I[1]*M.k;return H===M.x&&q===M.y?M:new sc(M.k,H,q)}function T(M){return[(+M[0][0]+ +M[1][0])/2,(+M[0][1]+ +M[1][1])/2]}function A(M,V,I,H){M.on("start.zoom",function(){R(this,arguments).event(H).start()}).on("interrupt.zoom end.zoom",function(){R(this,arguments).event(H).end()}).tween("zoom",function(){var q=this,Z=arguments,W=R(q,Z).event(H),G=r.apply(q,Z),K=I==null?T(G):typeof I=="function"?I.apply(q,Z):I,j=Math.max(G[1][0]-G[0][0],G[1][1]-G[0][1]),Y=q.__zoom,Q=typeof V=="function"?V.apply(q,Z):V,J=c(Y.invert(K).concat(j/Y.k),Q.invert(K).concat(j/Q.k));return function(ie){if(ie===1)ie=Q;else{var ne=J(ie),re=j/ne[2];ie=new sc(re,K[0]-ne[0]*re,K[1]-ne[1]*re)}W.zoom(null,ie)}})}function R(M,V,I){return!I&&M.__zooming||new D(M,V)}function D(M,V){this.that=M,this.args=V,this.active=0,this.sourceEvent=null,this.extent=r.apply(M,V),this.taps=0}D.prototype={event:function(M){return M&&(this.sourceEvent=M),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(M,V){return this.mouse&&M!=="mouse"&&(this.mouse[1]=V.invert(this.mouse[0])),this.touch0&&M!=="touch"&&(this.touch0[1]=V.invert(this.touch0[0])),this.touch1&&M!=="touch"&&(this.touch1[1]=V.invert(this.touch1[0])),this.that.__zoom=V,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(M){var V=za(this.that).datum();d.call(M,this.that,new gCe(M,{sourceEvent:this.sourceEvent,target:k,transform:this.that.__zoom,dispatch:d}),V)}};function N(M,...V){if(!e.apply(this,arguments))return;var I=R(this,V).event(M),H=this.__zoom,q=Math.max(i[0],Math.min(i[1],H.k*Math.pow(2,o.apply(this,arguments)))),Z=os(M);if(I.wheel)(I.mouse[0][0]!==Z[0]||I.mouse[0][1]!==Z[1])&&(I.mouse[1]=H.invert(I.mouse[0]=Z)),clearTimeout(I.wheel);else{if(H.k===q)return;I.mouse=[Z,H.invert(Z)],yx(this),I.start()}m0(M),I.wheel=setTimeout(W,b),I.zoom("mouse",n(_(C(H,q),I.mouse[0],I.mouse[1]),I.extent,s));function W(){I.wheel=null,I.end()}}function P(M,...V){if(f||!e.apply(this,arguments))return;var I=M.currentTarget,H=R(this,V,!0).event(M),q=za(M.view).on("mousemove.zoom",K,!0).on("mouseup.zoom",j,!0),Z=os(M,I),W=M.clientX,G=M.clientY;JF(M.view),l7(M),H.mouse=[Z,this.__zoom.invert(Z)],yx(this),H.start();function K(Y){if(m0(Y),!H.moved){var Q=Y.clientX-W,J=Y.clientY-G;H.moved=Q*Q+J*J>x}H.event(Y).zoom("mouse",n(_(H.that.__zoom,H.mouse[0]=os(Y,I),H.mouse[1]),H.extent,s))}function j(Y){q.on("mousemove.zoom mouseup.zoom",null),eH(Y.view,H.moved),m0(Y),H.event(Y).end()}}function O(M,...V){if(e.apply(this,arguments)){var I=this.__zoom,H=os(M.changedTouches?M.changedTouches[0]:M,this),q=I.invert(H),Z=I.k*(M.shiftKey?.5:2),W=n(_(C(I,Z),H,q),r.apply(this,V),s);m0(M),l>0?za(this).transition().duration(l).call(A,W,H,M):za(this).call(k.transform,W,H,M)}}function F(M,...V){if(e.apply(this,arguments)){var I=M.touches,H=I.length,q=R(this,V,M.changedTouches.length===H).event(M),Z,W,G,K;for(l7(M),W=0;W"[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:e=>`Node type "${e}" 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:e=>`The old edge with id=${e} does not exist.`,error009:e=>`Marker type "${e}" doesn't exist.`,error008:(e,{id:r,sourceHandle:n,targetHandle:o})=>`Couldn't create edge for ${e} handle id: "${e==="source"?n:o}", edge id: ${r}.`,error010:()=>"Handle: No node id found. Make sure to only use a Handle inside a custom Node.",error011:e=>`Edge type "${e}" not found. Using fallback type "default".`,error012:e=>`Node with id "${e}" does not exist, it may have been removed. This can happen when a node is deleted before the "onNodeClick" handler is called.`,error013:(e="react")=>`It seems that you haven't loaded the styles. Please import '@xyflow/${e}/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."},g0=[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],PH=["Enter"," ","Escape"],MH={"node.a11yDescription.default":"Press enter or space to select a node. Press delete to remove it and escape to cancel.","node.a11yDescription.keyboardDisabled":"Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.","node.a11yDescription.ariaLiveMessage":({direction:e,x:r,y:n})=>`Moved selected node ${e}. New position, x: ${r}, y: ${n}`,"edge.a11yDescription.default":"Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.","controls.ariaLabel":"Control Panel","controls.zoomIn.ariaLabel":"Zoom In","controls.zoomOut.ariaLabel":"Zoom Out","controls.fitView.ariaLabel":"Fit View","controls.interactive.ariaLabel":"Toggle Interactivity","minimap.ariaLabel":"Mini Map","handle.ariaLabel":"Handle"};var Df;(function(e){e.Strict="strict",e.Loose="loose"})(Df||(Df={}));var cp;(function(e){e.Free="free",e.Vertical="vertical",e.Horizontal="horizontal"})(cp||(cp={}));var y0;(function(e){e.Partial="partial",e.Full="full"})(y0||(y0={}));const zH={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null};var bd;(function(e){e.Bezier="default",e.Straight="straight",e.Step="step",e.SmoothStep="smoothstep",e.SimpleBezier="simplebezier"})(bd||(bd={}));var xx;(function(e){e.Arrow="arrow",e.ArrowClosed="arrowclosed"})(xx||(xx={}));var tt;(function(e){e.Left="left",e.Top="top",e.Right="right",e.Bottom="bottom"})(tt||(tt={}));const IH={[tt.Left]:tt.Right,[tt.Right]:tt.Left,[tt.Top]:tt.Bottom,[tt.Bottom]:tt.Top};function OH(e){return e===null?null:e?"valid":"invalid"}const jH=e=>"id"in e&&"source"in e&&"target"in e,kCe=e=>"id"in e&&"position"in e&&!("source"in e)&&!("target"in e),c7=e=>"id"in e&&"internals"in e&&!("source"in e)&&!("target"in e),b0=(e,r=[0,0])=>{const{width:n,height:o}=ao(e),a=e.origin??r,i=n*a[0],s=o*a[1];return{x:e.position.x-i,y:e.position.y-s}},LH=(e,r={nodeOrigin:[0,0]})=>{if(e.length===0)return{x:0,y:0,width:0,height:0};const n=e.reduce((o,a)=>{const i=typeof a=="string";let s=!r.nodeLookup&&!i?a:void 0;r.nodeLookup&&(s=i?r.nodeLookup.get(a):c7(a)?a:r.nodeLookup.get(a.id));const l=s?_x(s,r.nodeOrigin):{x:0,y:0,x2:0,y2:0};return wx(o,l)},{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return kx(n)},$f=(e,r={})=>{let n={x:1/0,y:1/0,x2:-1/0,y2:-1/0},o=!1;return e.forEach(a=>{(r.filter===void 0||r.filter(a))&&(n=wx(n,_x(a)),o=!0)}),o?kx(n):{x:0,y:0,width:0,height:0}},d7=(e,r,[n,o,a]=[0,0,1],i=!1,s=!1)=>{const l={...w0(r,[n,o,a]),width:r.width/a,height:r.height/a},c=[];for(const d of e.values()){const{measured:u,selectable:h=!0,hidden:f=!1}=d;if(s&&!h||f)continue;const g=u.width??d.width??d.initialWidth??null,b=u.height??d.height??d.initialHeight??null,x=v0(l,up(d)),w=(g??0)*(b??0),k=i&&x>0;(!d.internals.handleBounds||k||x>=w||d.dragging)&&c.push(d)}return c},_Ce=(e,r)=>{const n=new Set;return e.forEach(o=>{n.add(o.id)}),r.filter(o=>n.has(o.source)||n.has(o.target))};function ECe(e,r){const n=new Map,o=r?.nodes?new Set(r.nodes.map(a=>a.id)):null;return e.forEach(a=>{a.measured.width&&a.measured.height&&(r?.includeHiddenNodes||!a.hidden)&&(!o||o.has(a.id))&&n.set(a.id,a)}),n}async function SCe({nodes:e,width:r,height:n,panZoom:o,minZoom:a,maxZoom:i},s){if(e.size===0)return Promise.resolve(!0);const l=ECe(e,s),c=$f(l),d=vd(c,r,n,s?.minZoom??a,s?.maxZoom??i,s?.padding??.1);return await o.setViewport(d,{duration:s?.duration,ease:s?.ease,interpolate:s?.interpolate}),Promise.resolve(!0)}function BH({nodeId:e,nextPosition:r,nodeLookup:n,nodeOrigin:o=[0,0],nodeExtent:a,onError:i}){const s=n.get(e),l=s.parentId?n.get(s.parentId):void 0,{x:c,y:d}=l?l.internals.positionAbsolute:{x:0,y:0},u=s.origin??o;let h=s.extent||a;if(s.extent==="parent"&&!s.expandParent)if(!l)i?.("005",ul.error005());else{const g=l.measured.width,b=l.measured.height;g&&b&&(h=[[c,d],[c+g,d+b]])}else l&&If(s.extent)&&(h=[[s.extent[0][0]+c,s.extent[0][1]+d],[s.extent[1][0]+c,s.extent[1][1]+d]]);const f=If(h)?dp(r,h,s.measured):r;return(s.measured.width===void 0||s.measured.height===void 0)&&i?.("015",ul.error015()),{position:{x:f.x-c+(s.measured.width??0)*u[0],y:f.y-d+(s.measured.height??0)*u[1]},positionAbsolute:f}}async function CCe({nodesToRemove:e=[],edgesToRemove:r=[],nodes:n,edges:o,onBeforeDelete:a}){const i=new Set(e.map(h=>h.id)),s=[];for(const h of n){if(h.deletable===!1)continue;const f=i.has(h.id),g=!f&&h.parentId&&s.find(b=>b.id===h.parentId);(f||g)&&s.push(h)}const l=new Set(r.map(h=>h.id)),c=o.filter(h=>h.deletable!==!1),d=_Ce(s,c);for(const h of c)l.has(h.id)&&!d.find(f=>f.id===h.id)&&d.push(h);if(!a)return{edges:d,nodes:s};const u=await a({nodes:s,edges:d});return typeof u=="boolean"?u?{edges:d,nodes:s}:{edges:[],nodes:[]}:u}const Pf=(e,r=0,n=1)=>Math.min(Math.max(e,r),n),dp=(e={x:0,y:0},r,n)=>({x:Pf(e.x,r[0][0],r[1][0]-(n?.width??0)),y:Pf(e.y,r[0][1],r[1][1]-(n?.height??0))});function FH(e,r,n){const{width:o,height:a}=ao(n),{x:i,y:s}=n.internals.positionAbsolute;return dp(e,[[i,s],[i+o,s+a]],r)}const HH=(e,r,n)=>en?-Pf(Math.abs(e-n),1,r)/r:0,VH=(e,r,n=15,o=40)=>{const a=HH(e.x,o,r.width-o)*n,i=HH(e.y,o,r.height-o)*n;return[a,i]},wx=(e,r)=>({x:Math.min(e.x,r.x),y:Math.min(e.y,r.y),x2:Math.max(e.x2,r.x2),y2:Math.max(e.y2,r.y2)}),u7=({x:e,y:r,width:n,height:o})=>({x:e,y:r,x2:e+n,y2:r+o}),kx=({x:e,y:r,x2:n,y2:o})=>({x:e,y:r,width:n-e,height:o-r}),up=(e,r=[0,0])=>{const{x:n,y:o}=c7(e)?e.internals.positionAbsolute:b0(e,r);return{x:n,y:o,width:e.measured?.width??e.width??e.initialWidth??0,height:e.measured?.height??e.height??e.initialHeight??0}},_x=(e,r=[0,0])=>{const{x:n,y:o}=c7(e)?e.internals.positionAbsolute:b0(e,r);return{x:n,y:o,x2:n+(e.measured?.width??e.width??e.initialWidth??0),y2:o+(e.measured?.height??e.height??e.initialHeight??0)}},qH=(e,r)=>kx(wx(u7(e),u7(r))),v0=(e,r)=>{const n=Math.max(0,Math.min(e.x+e.width,r.x+r.width)-Math.max(e.x,r.x)),o=Math.max(0,Math.min(e.y+e.height,r.y+r.height)-Math.max(e.y,r.y));return Math.ceil(n*o)},UH=e=>ss(e.width)&&ss(e.height)&&ss(e.x)&&ss(e.y),ss=e=>!isNaN(e)&&isFinite(e),TCe=(e,r)=>{},x0=(e,r=[1,1])=>({x:r[0]*Math.round(e.x/r[0]),y:r[1]*Math.round(e.y/r[1])}),w0=({x:e,y:r},[n,o,a],i=!1,s=[1,1])=>{const l={x:(e-n)/a,y:(r-o)/a};return i?x0(l,s):l},Ex=({x:e,y:r},[n,o,a])=>({x:e*a+n,y:r*a+o});function Mf(e,r){if(typeof e=="number")return Math.floor((r-r/(1+e))*.5);if(typeof e=="string"&&e.endsWith("px")){const n=parseFloat(e);if(!Number.isNaN(n))return Math.floor(n)}if(typeof e=="string"&&e.endsWith("%")){const n=parseFloat(e);if(!Number.isNaN(n))return Math.floor(r*n*.01)}return console.error(`[React Flow] The padding value "${e}" is invalid. Please provide a number or a string with a valid unit (px or %).`),0}function ACe(e,r,n){if(typeof e=="string"||typeof e=="number"){const o=Mf(e,n),a=Mf(e,r);return{top:o,right:a,bottom:o,left:a,x:a*2,y:o*2}}if(typeof e=="object"){const o=Mf(e.top??e.y??0,n),a=Mf(e.bottom??e.y??0,n),i=Mf(e.left??e.x??0,r),s=Mf(e.right??e.x??0,r);return{top:o,right:s,bottom:a,left:i,x:i+s,y:o+a}}return{top:0,right:0,bottom:0,left:0,x:0,y:0}}function RCe(e,r,n,o,a,i){const{x:s,y:l}=Ex(e,[r,n,o]),{x:c,y:d}=Ex({x:e.x+e.width,y:e.y+e.height},[r,n,o]),u=a-c,h=i-d;return{left:Math.floor(s),top:Math.floor(l),right:Math.floor(u),bottom:Math.floor(h)}}const vd=(e,r,n,o,a,i)=>{const s=ACe(i,r,n),l=(r-s.x)/e.width,c=(n-s.y)/e.height,d=Math.min(l,c),u=Pf(d,o,a),h=e.x+e.width/2,f=e.y+e.height/2,g=r/2-h*u,b=n/2-f*u,x=RCe(e,g,b,u,r,n),w={left:Math.min(x.left-s.left,0),top:Math.min(x.top-s.top,0),right:Math.min(x.right-s.right,0),bottom:Math.min(x.bottom-s.bottom,0)};return{x:g-w.left+w.right,y:b-w.top+w.bottom,zoom:u}},zf=()=>typeof navigator<"u"&&navigator?.userAgent?.indexOf("Mac")>=0;function If(e){return e!=null&&e!=="parent"}function ao(e){return{width:e.measured?.width??e.width??e.initialWidth??0,height:e.measured?.height??e.height??e.initialHeight??0}}function WH(e){return(e.measured?.width??e.width??e.initialWidth)!==void 0&&(e.measured?.height??e.height??e.initialHeight)!==void 0}function YH(e,r={width:0,height:0},n,o,a){const i={...e},s=o.get(n);if(s){const l=s.origin||a;i.x+=s.internals.positionAbsolute.x-(r.width??0)*l[0],i.y+=s.internals.positionAbsolute.y-(r.height??0)*l[1]}return i}function GH(e,r){if(e.size!==r.size)return!1;for(const n of e)if(!r.has(n))return!1;return!0}function NCe(){let e,r;return{promise:new Promise((n,o)=>{e=n,r=o}),resolve:e,reject:r}}function DCe(e){return{...MH,...e||{}}}function k0(e,{snapGrid:r=[0,0],snapToGrid:n=!1,transform:o,containerBounds:a}){const{x:i,y:s}=ls(e),l=w0({x:i-(a?.left??0),y:s-(a?.top??0)},o),{x:c,y:d}=n?x0(l,r):l;return{xSnapped:c,ySnapped:d,...l}}const p7=e=>({width:e.offsetWidth,height:e.offsetHeight}),XH=e=>e?.getRootNode?.()||window?.document,$Ce=["INPUT","SELECT","TEXTAREA"];function KH(e){const r=e.composedPath?.()?.[0]||e.target;return r?.nodeType!==1?!1:$Ce.includes(r.nodeName)||r.hasAttribute("contenteditable")||!!r.closest(".nokey")}const ZH=e=>"clientX"in e,ls=(e,r)=>{const n=ZH(e),o=n?e.clientX:e.touches?.[0].clientX,a=n?e.clientY:e.touches?.[0].clientY;return{x:o-(r?.left??0),y:a-(r?.top??0)}},QH=(e,r,n,o,a)=>{const i=r.querySelectorAll(`.${e}`);return!i||!i.length?null:Array.from(i).map(s=>{const l=s.getBoundingClientRect();return{id:s.getAttribute("data-handleid"),type:e,nodeId:a,position:s.getAttribute("data-handlepos"),x:(l.left-n.left)/o,y:(l.top-n.top)/o,...p7(s)}})};function JH({sourceX:e,sourceY:r,targetX:n,targetY:o,sourceControlX:a,sourceControlY:i,targetControlX:s,targetControlY:l}){const c=e*.125+a*.375+s*.375+n*.125,d=r*.125+i*.375+l*.375+o*.125,u=Math.abs(c-e),h=Math.abs(d-r);return[c,d,u,h]}function Sx(e,r){return e>=0?.5*e:r*25*Math.sqrt(-e)}function eV({pos:e,x1:r,y1:n,x2:o,y2:a,c:i}){switch(e){case tt.Left:return[r-Sx(r-o,i),n];case tt.Right:return[r+Sx(o-r,i),n];case tt.Top:return[r,n-Sx(n-a,i)];case tt.Bottom:return[r,n+Sx(a-n,i)]}}function Cx({sourceX:e,sourceY:r,sourcePosition:n=tt.Bottom,targetX:o,targetY:a,targetPosition:i=tt.Top,curvature:s=.25}){const[l,c]=eV({pos:n,x1:e,y1:r,x2:o,y2:a,c:s}),[d,u]=eV({pos:i,x1:o,y1:a,x2:e,y2:r,c:s}),[h,f,g,b]=JH({sourceX:e,sourceY:r,targetX:o,targetY:a,sourceControlX:l,sourceControlY:c,targetControlX:d,targetControlY:u});return[`M${e},${r} C${l},${c} ${d},${u} ${o},${a}`,h,f,g,b]}function tV({sourceX:e,sourceY:r,targetX:n,targetY:o}){const a=Math.abs(n-e)/2,i=n0}const zCe=({source:e,sourceHandle:r,target:n,targetHandle:o})=>`xy-edge__${e}${r||""}-${n}${o||""}`,ICe=(e,r)=>r.some(n=>n.source===e.source&&n.target===e.target&&(n.sourceHandle===e.sourceHandle||!n.sourceHandle&&!e.sourceHandle)&&(n.targetHandle===e.targetHandle||!n.targetHandle&&!e.targetHandle)),OCe=(e,r)=>{if(!e.source||!e.target)return r;let n;return jH(e)?n={...e}:n={...e,id:zCe(e)},ICe(n,r)?r:(n.sourceHandle===null&&delete n.sourceHandle,n.targetHandle===null&&delete n.targetHandle,r.concat(n))};function rV({sourceX:e,sourceY:r,targetX:n,targetY:o}){const[a,i,s,l]=tV({sourceX:e,sourceY:r,targetX:n,targetY:o});return[`M ${e},${r}L ${n},${o}`,a,i,s,l]}const nV={[tt.Left]:{x:-1,y:0},[tt.Right]:{x:1,y:0},[tt.Top]:{x:0,y:-1},[tt.Bottom]:{x:0,y:1}},jCe=({source:e,sourcePosition:r=tt.Bottom,target:n})=>r===tt.Left||r===tt.Right?e.xMath.sqrt(Math.pow(r.x-e.x,2)+Math.pow(r.y-e.y,2));function LCe({source:e,sourcePosition:r=tt.Bottom,target:n,targetPosition:o=tt.Top,center:a,offset:i,stepPosition:s}){const l=nV[r],c=nV[o],d={x:e.x+l.x*i,y:e.y+l.y*i},u={x:n.x+c.x*i,y:n.y+c.y*i},h=jCe({source:d,sourcePosition:r,target:u}),f=h.x!==0?"x":"y",g=h[f];let b=[],x,w;const k={x:0,y:0},C={x:0,y:0},[,,_,T]=tV({sourceX:e.x,sourceY:e.y,targetX:n.x,targetY:n.y});if(l[f]*c[f]===-1){f==="x"?(x=a.x??d.x+(u.x-d.x)*s,w=a.y??(d.y+u.y)/2):(x=a.x??(d.x+u.x)/2,w=a.y??d.y+(u.y-d.y)*s);const A=[{x,y:d.y},{x,y:u.y}],R=[{x:d.x,y:w},{x:u.x,y:w}];l[f]===g?b=f==="x"?A:R:b=f==="x"?R:A}else{const A=[{x:d.x,y:u.y}],R=[{x:u.x,y:d.y}];if(f==="x"?b=l.x===g?R:A:b=l.y===g?A:R,r===o){const F=Math.abs(e[f]-n[f]);if(F<=i){const L=Math.min(i-1,i-F);l[f]===g?k[f]=(d[f]>e[f]?-1:1)*L:C[f]=(u[f]>n[f]?-1:1)*L}}if(r!==o){const F=f==="x"?"y":"x",L=l[f]===c[F],U=d[F]>u[F],M=d[F]=O?(x=(D.x+N.x)/2,w=b[0].y):(x=b[0].x,w=(D.y+N.y)/2)}return[[e,{x:d.x+k.x,y:d.y+k.y},...b,{x:u.x+C.x,y:u.y+C.y},n],x,w,_,T]}function BCe(e,r,n,o){const a=Math.min(oV(e,r)/2,oV(r,n)/2,o),{x:i,y:s}=r;if(e.x===i&&i===n.x||e.y===s&&s===n.y)return`L${i} ${s}`;if(e.y===s){const d=e.x{let _="";return C>0&&Cn.id===r):e[0])||null}function h7(e,r){return e?typeof e=="string"?e:`${r?`${r}__`:""}${Object.keys(e).sort().map(n=>`${n}=${e[n]}`).join("&")}`:""}function FCe(e,{id:r,defaultColor:n,defaultMarkerStart:o,defaultMarkerEnd:a}){const i=new Set;return e.reduce((s,l)=>([l.markerStart||o,l.markerEnd||a].forEach(c=>{if(c&&typeof c=="object"){const d=h7(c,r);i.has(d)||(s.push({id:d,color:c.color||n,...c}),i.add(d))}}),s),[]).sort((s,l)=>s.id.localeCompare(l.id))}function HCe(e,r,n,o,a){let i=.5;a==="start"?i=0:a==="end"&&(i=1);let s=[(e.x+e.width*i)*r.zoom+r.x,e.y*r.zoom+r.y-o],l=[-100*i,-100];switch(n){case tt.Right:s=[(e.x+e.width)*r.zoom+r.x+o,(e.y+e.height*i)*r.zoom+r.y],l=[0,-100*i];break;case tt.Bottom:s[1]=(e.y+e.height)*r.zoom+r.y+o,l[1]=0;break;case tt.Left:s=[e.x*r.zoom+r.x-o,(e.y+e.height*i)*r.zoom+r.y],l=[-100,-100*i];break}return`translate(${s[0]}px, ${s[1]}px) translate(${l[0]}%, ${l[1]}%)`}const cV=1e3,VCe=10,f7={nodeOrigin:[0,0],nodeExtent:g0,elevateNodesOnSelect:!0,defaults:{}},qCe={...f7,checkEquality:!0};function m7(e,r){const n={...e};for(const o in r)r[o]!==void 0&&(n[o]=r[o]);return n}function UCe(e,r,n){const o=m7(f7,n);for(const a of e.values())if(a.parentId)y7(a,e,r,o);else{const i=b0(a,o.nodeOrigin),s=If(a.extent)?a.extent:o.nodeExtent,l=dp(i,s,ao(a));a.internals.positionAbsolute=l}}function WCe(e,r){if(!e.handles)return e.measured?r?.internals.handleBounds:void 0;const n=[],o=[];for(const a of e.handles){const i={id:a.id,width:a.width??1,height:a.height??1,nodeId:e.id,x:a.x,y:a.y,position:a.position,type:a.type};a.type==="source"?n.push(i):a.type==="target"&&o.push(i)}return{source:n,target:o}}function g7(e,r,n,o){const a=m7(qCe,o);let i={i:-1},s=e.length>0;const l=new Map(r),c=a?.elevateNodesOnSelect?cV:0;r.clear(),n.clear();for(const d of e){let u=l.get(d.id);if(a.checkEquality&&d===u?.internals.userNode)r.set(d.id,u);else{const h=b0(d,a.nodeOrigin),f=If(d.extent)?d.extent:a.nodeExtent,g=dp(h,f,ao(d));u={...a.defaults,...d,measured:{width:d.measured?.width,height:d.measured?.height},internals:{positionAbsolute:g,handleBounds:WCe(d,u),z:dV(d,c),userNode:d}},r.set(d.id,u)}(u.measured===void 0||u.measured.width===void 0||u.measured.height===void 0)&&!u.hidden&&(s=!1),d.parentId&&y7(u,r,n,o,i)}return s}function YCe(e,r){if(!e.parentId)return;const n=r.get(e.parentId);n?n.set(e.id,e):r.set(e.parentId,new Map([[e.id,e]]))}function y7(e,r,n,o,a){const{elevateNodesOnSelect:i,nodeOrigin:s,nodeExtent:l}=m7(f7,o),c=e.parentId,d=r.get(c);if(!d){console.warn(`Parent node ${c} not found. Please make sure that parent nodes are in front of their child nodes in the nodes array.`);return}YCe(e,n),a&&!d.parentId&&d.internals.rootParentIndex===void 0&&(d.internals.rootParentIndex=++a.i,d.internals.z=d.internals.z+a.i*VCe),a&&d.internals.rootParentIndex!==void 0&&(a.i=d.internals.rootParentIndex);const u=i?cV:0,{x:h,y:f,z:g}=GCe(e,d,s,l,u),{positionAbsolute:b}=e.internals,x=h!==b.x||f!==b.y;(x||g!==e.internals.z)&&r.set(e.id,{...e,internals:{...e.internals,positionAbsolute:x?{x:h,y:f}:b,z:g}})}function dV(e,r){return(ss(e.zIndex)?e.zIndex:0)+(e.selected?r:0)}function GCe(e,r,n,o,a){const{x:i,y:s}=r.internals.positionAbsolute,l=ao(e),c=b0(e,n),d=If(e.extent)?dp(c,e.extent,l):c;let u=dp({x:i+d.x,y:s+d.y},o,l);e.extent==="parent"&&(u=FH(u,l,r));const h=dV(e,a),f=r.internals.z??0;return{x:u.x,y:u.y,z:f>=h?f+1:h}}function b7(e,r,n,o=[0,0]){const a=[],i=new Map;for(const s of e){const l=r.get(s.parentId);if(!l)continue;const c=i.get(s.parentId)?.expandedRect??up(l),d=qH(c,s.rect);i.set(s.parentId,{expandedRect:d,parent:l})}return i.size>0&&i.forEach(({expandedRect:s,parent:l},c)=>{const d=l.internals.positionAbsolute,u=ao(l),h=l.origin??o,f=s.x0||g>0||w||k)&&(a.push({id:c,type:"position",position:{x:l.position.x-f+w,y:l.position.y-g+k}}),n.get(c)?.forEach(C=>{e.some(_=>_.id===C.id)||a.push({id:C.id,type:"position",position:{x:C.position.x+f,y:C.position.y+g}})})),(u.width0){const f=b7(h,r,n,a);c.push(...f)}return{changes:c,updatedInternals:l}}async function KCe({delta:e,panZoom:r,transform:n,translateExtent:o,width:a,height:i}){if(!r||!e.x&&!e.y)return Promise.resolve(!1);const s=await r.setViewportConstrained({x:n[0]+e.x,y:n[1]+e.y,zoom:n[2]},[[0,0],[a,i]],o),l=!!s&&(s.x!==n[0]||s.y!==n[1]||s.k!==n[2]);return Promise.resolve(l)}function uV(e,r,n,o,a,i){let s=a;const l=o.get(s)||new Map;o.set(s,l.set(n,r)),s=`${a}-${e}`;const c=o.get(s)||new Map;if(o.set(s,c.set(n,r)),i){s=`${a}-${e}-${i}`;const d=o.get(s)||new Map;o.set(s,d.set(n,r))}}function pV(e,r,n){e.clear(),r.clear();for(const o of n){const{source:a,target:i,sourceHandle:s=null,targetHandle:l=null}=o,c={edgeId:o.id,source:a,target:i,sourceHandle:s,targetHandle:l},d=`${a}-${s}--${i}-${l}`,u=`${i}-${l}--${a}-${s}`;uV("source",c,u,e,a,s),uV("target",c,d,e,i,l),r.set(o.id,o)}}function hV(e,r){if(!e.parentId)return!1;const n=r.get(e.parentId);return n?n.selected?!0:hV(n,r):!1}function fV(e,r,n){let o=e;do{if(o?.matches?.(r))return!0;if(o===n)return!1;o=o?.parentElement}while(o);return!1}function ZCe(e,r,n,o){const a=new Map;for(const[i,s]of e)if((s.selected||s.id===o)&&(!s.parentId||!hV(s,e))&&(s.draggable||r&&typeof s.draggable>"u")){const l=e.get(i);l&&a.set(i,{id:i,position:l.position||{x:0,y:0},distance:{x:n.x-l.internals.positionAbsolute.x,y:n.y-l.internals.positionAbsolute.y},extent:l.extent,parentId:l.parentId,origin:l.origin,expandParent:l.expandParent,internals:{positionAbsolute:l.internals.positionAbsolute||{x:0,y:0}},measured:{width:l.measured.width??0,height:l.measured.height??0}})}return a}function v7({nodeId:e,dragItems:r,nodeLookup:n,dragging:o=!0}){const a=[];for(const[s,l]of r){const c=n.get(s)?.internals.userNode;c&&a.push({...c,position:l.position,dragging:o})}if(!e)return[a[0],a];const i=n.get(e)?.internals.userNode;return[i?{...i,position:r.get(e)?.position||i.position,dragging:o}:a[0],a]}function QCe({dragItems:e,snapGrid:r,x:n,y:o}){const a=e.values().next().value;if(!a)return null;const i={x:n-a.distance.x,y:o-a.distance.y},s=x0(i,r);return{x:s.x-i.x,y:s.y-i.y}}function JCe({onNodeMouseDown:e,getStoreItems:r,onDragStart:n,onDrag:o,onDragStop:a}){let i={x:null,y:null},s=0,l=new Map,c=!1,d={x:0,y:0},u=null,h=!1,f=null,g=!1,b=!1,x=null;function w({noDragClassName:C,handleSelector:_,domNode:T,isSelectable:A,nodeId:R,nodeClickDistance:D=0}){f=za(T);function N({x:L,y:U}){const{nodeLookup:M,nodeExtent:V,snapGrid:I,snapToGrid:H,nodeOrigin:q,onNodeDrag:Z,onSelectionDrag:W,onError:G,updateNodePositions:K}=r();i={x:L,y:U};let j=!1;const Y=l.size>1,Q=Y&&V?u7($f(l)):null,J=Y&&H?QCe({dragItems:l,snapGrid:I,x:L,y:U}):null;for(const[ie,ne]of l){if(!M.has(ie))continue;let re={x:L-ne.distance.x,y:U-ne.distance.y};H&&(re=J?{x:Math.round(re.x+J.x),y:Math.round(re.y+J.y)}:x0(re,I));let ge=null;if(Y&&V&&!ne.extent&&Q){const{positionAbsolute:me}=ne.internals,Te=me.x-Q.x+V[0][0],Ie=me.x+ne.measured.width-Q.x2+V[1][0],Ze=me.y-Q.y+V[0][1],rt=me.y+ne.measured.height-Q.y2+V[1][1];ge=[[Te,Ze],[Ie,rt]]}const{position:De,positionAbsolute:he}=BH({nodeId:ie,nextPosition:re,nodeLookup:M,nodeExtent:ge||V,nodeOrigin:q,onError:G});j=j||ne.position.x!==De.x||ne.position.y!==De.y,ne.position=De,ne.internals.positionAbsolute=he}if(b=b||j,!!j&&(K(l,!0),x&&(o||Z||!R&&W))){const[ie,ne]=v7({nodeId:R,dragItems:l,nodeLookup:M});o?.(x,l,ie,ne),Z?.(x,ie,ne),R||W?.(x,ne)}}async function P(){if(!u)return;const{transform:L,panBy:U,autoPanSpeed:M,autoPanOnNodeDrag:V}=r();if(!V){c=!1,cancelAnimationFrame(s);return}const[I,H]=VH(d,u,M);(I!==0||H!==0)&&(i.x=(i.x??0)-I/L[2],i.y=(i.y??0)-H/L[2],await U({x:I,y:H})&&N(i)),s=requestAnimationFrame(P)}function O(L){const{nodeLookup:U,multiSelectionActive:M,nodesDraggable:V,transform:I,snapGrid:H,snapToGrid:q,selectNodesOnDrag:Z,onNodeDragStart:W,onSelectionDragStart:G,unselectNodesAndEdges:K}=r();h=!0,(!Z||!A)&&!M&&R&&(U.get(R)?.selected||K()),A&&Z&&R&&e?.(R);const j=k0(L.sourceEvent,{transform:I,snapGrid:H,snapToGrid:q,containerBounds:u});if(i=j,l=ZCe(U,V,j,R),l.size>0&&(n||W||!R&&G)){const[Y,Q]=v7({nodeId:R,dragItems:l,nodeLookup:U});n?.(L.sourceEvent,l,Y,Q),W?.(L.sourceEvent,Y,Q),R||G?.(L.sourceEvent,Q)}}const F=tH().clickDistance(D).on("start",L=>{const{domNode:U,nodeDragThreshold:M,transform:V,snapGrid:I,snapToGrid:H}=r();u=U?.getBoundingClientRect()||null,g=!1,b=!1,x=L.sourceEvent,M===0&&O(L),i=k0(L.sourceEvent,{transform:V,snapGrid:I,snapToGrid:H,containerBounds:u}),d=ls(L.sourceEvent,u)}).on("drag",L=>{const{autoPanOnNodeDrag:U,transform:M,snapGrid:V,snapToGrid:I,nodeDragThreshold:H,nodeLookup:q}=r(),Z=k0(L.sourceEvent,{transform:M,snapGrid:V,snapToGrid:I,containerBounds:u});if(x=L.sourceEvent,(L.sourceEvent.type==="touchmove"&&L.sourceEvent.touches.length>1||R&&!q.has(R))&&(g=!0),!g){if(!c&&U&&h&&(c=!0,P()),!h){const W=ls(L.sourceEvent,u),G=W.x-d.x,K=W.y-d.y;Math.sqrt(G*G+K*K)>H&&O(L)}(i.x!==Z.xSnapped||i.y!==Z.ySnapped)&&l&&h&&(d=ls(L.sourceEvent,u),N(Z))}}).on("end",L=>{if(!(!h||g)&&(c=!1,h=!1,cancelAnimationFrame(s),l.size>0)){const{nodeLookup:U,updateNodePositions:M,onNodeDragStop:V,onSelectionDragStop:I}=r();if(b&&(M(l,!1),b=!1),a||V||!R&&I){const[H,q]=v7({nodeId:R,dragItems:l,nodeLookup:U,dragging:!1});a?.(L.sourceEvent,l,H,q),V?.(L.sourceEvent,H,q),R||I?.(L.sourceEvent,q)}}}).filter(L=>{const U=L.target;return!L.button&&(!C||!fV(U,`.${C}`,T))&&(!_||fV(U,_,T))});f.call(F)}function k(){f?.on(".drag",null)}return{update:w,destroy:k}}function eTe(e,r,n){const o=[],a={x:e.x-n,y:e.y-n,width:n*2,height:n*2};for(const i of r.values())v0(a,up(i))>0&&o.push(i);return o}const tTe=250;function rTe(e,r,n,o){let a=[],i=1/0;const s=eTe(e,n,r+tTe);for(const l of s){const c=[...l.internals.handleBounds?.source??[],...l.internals.handleBounds?.target??[]];for(const d of c){if(o.nodeId===d.nodeId&&o.type===d.type&&o.id===d.id)continue;const{x:u,y:h}=_0(l,d,d.position,!0),f=Math.sqrt(Math.pow(u-e.x,2)+Math.pow(h-e.y,2));f>r||(f1){const l=o.type==="source"?"target":"source";return a.find(c=>c.type===l)??a[0]}return a[0]}function mV(e,r,n,o,a,i=!1){const s=o.get(e);if(!s)return null;const l=a==="strict"?s.internals.handleBounds?.[r]:[...s.internals.handleBounds?.source??[],...s.internals.handleBounds?.target??[]],c=(n?l?.find(d=>d.id===n):l?.[0])??null;return c&&i?{...c,..._0(s,c,c.position,!0)}:c}function gV(e,r){return e||(r?.classList.contains("target")?"target":r?.classList.contains("source")?"source":null)}function nTe(e,r){let n=null;return r?n=!0:e&&!r&&(n=!1),n}const yV=()=>!0;function oTe(e,{connectionMode:r,connectionRadius:n,handleId:o,nodeId:a,edgeUpdaterType:i,isTarget:s,domNode:l,nodeLookup:c,lib:d,autoPanOnConnect:u,flowId:h,panBy:f,cancelConnection:g,onConnectStart:b,onConnect:x,onConnectEnd:w,isValidConnection:k=yV,onReconnectEnd:C,updateConnection:_,getTransform:T,getFromHandle:A,autoPanSpeed:R,dragThreshold:D=1,handleDomNode:N}){const P=XH(e.target);let O=0,F;const{x:L,y:U}=ls(e),M=gV(i,N),V=l?.getBoundingClientRect();let I=!1;if(!V||!M)return;const H=mV(a,M,o,c,r);if(!H)return;let q=ls(e,V),Z=!1,W=null,G=!1,K=null;function j(){if(!u||!V)return;const[ge,De]=VH(q,V,R);f({x:ge,y:De}),O=requestAnimationFrame(j)}const Y={...H,nodeId:a,type:M,position:H.position},Q=c.get(a);let J={inProgress:!0,isValid:null,from:_0(Q,Y,tt.Left,!0),fromHandle:Y,fromPosition:Y.position,fromNode:Q,to:q,toHandle:null,toPosition:IH[Y.position],toNode:null};function ie(){I=!0,_(J),b?.(e,{nodeId:a,handleId:o,handleType:M})}D===0&&ie();function ne(ge){if(!I){const{x:Te,y:Ie}=ls(ge),Ze=Te-L,rt=Ie-U;if(!(Ze*Ze+rt*rt>D*D))return;ie()}if(!A()||!Y){re(ge);return}const De=T();q=ls(ge,V),F=rTe(w0(q,De,!1,[1,1]),n,c,Y),Z||(j(),Z=!0);const he=bV(ge,{handle:F,connectionMode:r,fromNodeId:a,fromHandleId:o,fromType:s?"target":"source",isValidConnection:k,doc:P,lib:d,flowId:h,nodeLookup:c});K=he.handleDomNode,W=he.connection,G=nTe(!!F,he.isValid);const me={...J,isValid:G,to:he.toHandle&&G?Ex({x:he.toHandle.x,y:he.toHandle.y},De):q,toHandle:he.toHandle,toPosition:G&&he.toHandle?he.toHandle.position:IH[Y.position],toNode:he.toHandle?c.get(he.toHandle.nodeId):null};G&&F&&J.toHandle&&me.toHandle&&J.toHandle.type===me.toHandle.type&&J.toHandle.nodeId===me.toHandle.nodeId&&J.toHandle.id===me.toHandle.id&&J.to.x===me.to.x&&J.to.y===me.to.y||(_(me),J=me)}function re(ge){if(!("touches"in ge&&ge.touches.length>0)){if(I){(F||K)&&W&&G&&x?.(W);const{inProgress:De,...he}=J,me={...he,toPosition:J.toHandle?J.toPosition:null};w?.(ge,me),i&&C?.(ge,me)}g(),cancelAnimationFrame(O),Z=!1,G=!1,W=null,K=null,P.removeEventListener("mousemove",ne),P.removeEventListener("mouseup",re),P.removeEventListener("touchmove",ne),P.removeEventListener("touchend",re)}}P.addEventListener("mousemove",ne),P.addEventListener("mouseup",re),P.addEventListener("touchmove",ne),P.addEventListener("touchend",re)}function bV(e,{handle:r,connectionMode:n,fromNodeId:o,fromHandleId:a,fromType:i,doc:s,lib:l,flowId:c,isValidConnection:d=yV,nodeLookup:u}){const h=i==="target",f=r?s.querySelector(`.${l}-flow__handle[data-id="${c}-${r?.nodeId}-${r?.id}-${r?.type}"]`):null,{x:g,y:b}=ls(e),x=s.elementFromPoint(g,b),w=x?.classList.contains(`${l}-flow__handle`)?x:f,k={handleDomNode:w,isValid:!1,connection:null,toHandle:null};if(w){const C=gV(void 0,w),_=w.getAttribute("data-nodeid"),T=w.getAttribute("data-handleid"),A=w.classList.contains("connectable"),R=w.classList.contains("connectableend");if(!_||!C)return k;const D={source:h?_:o,sourceHandle:h?T:a,target:h?o:_,targetHandle:h?a:T};k.connection=D;const N=A&&R&&(n===Df.Strict?h&&C==="source"||!h&&C==="target":_!==o||T!==a);k.isValid=N&&d(D),k.toHandle=mV(_,C,T,u,n,!0)}return k}const x7={onPointerDown:oTe,isValid:bV};function aTe({domNode:e,panZoom:r,getTransform:n,getViewScale:o}){const a=za(e);function i({translateExtent:l,width:c,height:d,zoomStep:u=1,pannable:h=!0,zoomable:f=!0,inversePan:g=!1}){const b=_=>{if(_.sourceEvent.type!=="wheel"||!r)return;const T=n(),A=_.sourceEvent.ctrlKey&&zf()?10:1,R=-_.sourceEvent.deltaY*(_.sourceEvent.deltaMode===1?.05:_.sourceEvent.deltaMode?1:.002)*u,D=T[2]*Math.pow(2,R*A);r.scaleTo(D)};let x=[0,0];const w=_=>{(_.sourceEvent.type==="mousedown"||_.sourceEvent.type==="touchstart")&&(x=[_.sourceEvent.clientX??_.sourceEvent.touches[0].clientX,_.sourceEvent.clientY??_.sourceEvent.touches[0].clientY])},k=_=>{const T=n();if(_.sourceEvent.type!=="mousemove"&&_.sourceEvent.type!=="touchmove"||!r)return;const A=[_.sourceEvent.clientX??_.sourceEvent.touches[0].clientX,_.sourceEvent.clientY??_.sourceEvent.touches[0].clientY],R=[A[0]-x[0],A[1]-x[1]];x=A;const D=o()*Math.max(T[2],Math.log(T[2]))*(g?-1:1),N={x:T[0]-R[0]*D,y:T[1]-R[1]*D},P=[[0,0],[c,d]];r.setViewportConstrained({x:N.x,y:N.y,zoom:T[2]},P,l)},C=$H().on("start",w).on("zoom",h?k:null).on("zoom.wheel",f?b:null);a.call(C,{})}function s(){a.on("zoom",null)}return{update:i,destroy:s,pointer:os}}const Ax=e=>({x:e.x,y:e.y,zoom:e.k}),w7=({x:e,y:r,zoom:n})=>vx.translate(e,r).scale(n),Of=(e,r)=>e.target.closest(`.${r}`),vV=(e,r)=>r===2&&Array.isArray(e)&&e.includes(2),iTe=e=>((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2,k7=(e,r=0,n=iTe,o=()=>{})=>{const a=typeof r=="number"&&r>0;return a||o(),a?e.transition().duration(r).ease(n).on("end",o):e},xV=e=>{const r=e.ctrlKey&&zf()?10:1;return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*r};function sTe({zoomPanValues:e,noWheelClassName:r,d3Selection:n,d3Zoom:o,panOnScrollMode:a,panOnScrollSpeed:i,zoomOnPinch:s,onPanZoomStart:l,onPanZoom:c,onPanZoomEnd:d}){return u=>{if(Of(u,r))return u.ctrlKey&&u.preventDefault(),!1;u.preventDefault(),u.stopImmediatePropagation();const h=n.property("__zoom").k||1;if(u.ctrlKey&&s){const w=os(u),k=xV(u),C=h*Math.pow(2,k);o.scaleTo(n,C,w,u);return}const f=u.deltaMode===1?20:1;let g=a===cp.Vertical?0:u.deltaX*f,b=a===cp.Horizontal?0:u.deltaY*f;!zf()&&u.shiftKey&&a!==cp.Vertical&&(g=u.deltaY*f,b=0),o.translateBy(n,-(g/h)*i,-(b/h)*i,{internal:!0});const x=Ax(n.property("__zoom"));clearTimeout(e.panScrollTimeout),e.isPanScrolling?(c?.(u,x),e.panScrollTimeout=setTimeout(()=>{d?.(u,x),e.isPanScrolling=!1},150)):(e.isPanScrolling=!0,l?.(u,x))}}function lTe({noWheelClassName:e,preventScrolling:r,d3ZoomHandler:n}){return function(o,a){const i=o.type==="wheel",s=!r&&i&&!o.ctrlKey,l=Of(o,e);if(o.ctrlKey&&i&&l&&o.preventDefault(),s||l)return null;o.preventDefault(),n.call(this,o,a)}}function cTe({zoomPanValues:e,onDraggingChange:r,onPanZoomStart:n}){return o=>{if(o.sourceEvent?.internal)return;const a=Ax(o.transform);e.mouseButton=o.sourceEvent?.button||0,e.isZoomingOrPanning=!0,e.prevViewport=a,o.sourceEvent?.type==="mousedown"&&r(!0),n&&n?.(o.sourceEvent,a)}}function dTe({zoomPanValues:e,panOnDrag:r,onPaneContextMenu:n,onTransformChange:o,onPanZoom:a}){return i=>{e.usedRightMouseButton=!!(n&&vV(r,e.mouseButton??0)),i.sourceEvent?.sync||o([i.transform.x,i.transform.y,i.transform.k]),a&&!i.sourceEvent?.internal&&a?.(i.sourceEvent,Ax(i.transform))}}function uTe({zoomPanValues:e,panOnDrag:r,panOnScroll:n,onDraggingChange:o,onPanZoomEnd:a,onPaneContextMenu:i}){return s=>{if(!s.sourceEvent?.internal&&(e.isZoomingOrPanning=!1,i&&vV(r,e.mouseButton??0)&&!e.usedRightMouseButton&&s.sourceEvent&&i(s.sourceEvent),e.usedRightMouseButton=!1,o(!1),a)){const l=Ax(s.transform);e.prevViewport=l,clearTimeout(e.timerId),e.timerId=setTimeout(()=>{a?.(s.sourceEvent,l)},n?150:0)}}}function pTe({zoomActivationKeyPressed:e,zoomOnScroll:r,zoomOnPinch:n,panOnDrag:o,panOnScroll:a,zoomOnDoubleClick:i,userSelectionActive:s,noWheelClassName:l,noPanClassName:c,lib:d,connectionInProgress:u}){return h=>{const f=e||r,g=n&&h.ctrlKey,b=h.type==="wheel";if(h.button===1&&h.type==="mousedown"&&(Of(h,`${d}-flow__node`)||Of(h,`${d}-flow__edge`)))return!0;if(!o&&!f&&!a&&!i&&!n||s||u&&!b||Of(h,l)&&b||Of(h,c)&&(!b||a&&b&&!e)||!n&&h.ctrlKey&&b)return!1;if(!n&&h.type==="touchstart"&&h.touches?.length>1)return h.preventDefault(),!1;if(!f&&!a&&!g&&b||!o&&(h.type==="mousedown"||h.type==="touchstart")||Array.isArray(o)&&!o.includes(h.button)&&h.type==="mousedown")return!1;const x=Array.isArray(o)&&o.includes(h.button)||!h.button||h.button<=1;return(!h.ctrlKey||b)&&x}}function hTe({domNode:e,minZoom:r,maxZoom:n,paneClickDistance:o,translateExtent:a,viewport:i,onPanZoom:s,onPanZoomStart:l,onPanZoomEnd:c,onDraggingChange:d}){const u={isZoomingOrPanning:!1,usedRightMouseButton:!1,prevViewport:{},mouseButton:0,timerId:void 0,panScrollTimeout:void 0,isPanScrolling:!1},h=e.getBoundingClientRect(),f=$H().clickDistance(!ss(o)||o<0?0:o).scaleExtent([r,n]).translateExtent(a),g=za(e).call(f);_({x:i.x,y:i.y,zoom:Pf(i.zoom,r,n)},[[0,0],[h.width,h.height]],a);const b=g.on("wheel.zoom"),x=g.on("dblclick.zoom");f.wheelDelta(xV);function w(L,U){return g?new Promise(M=>{f?.interpolate(U?.interpolate==="linear"?d0:cx).transform(k7(g,U?.duration,U?.ease,()=>M(!0)),L)}):Promise.resolve(!1)}function k({noWheelClassName:L,noPanClassName:U,onPaneContextMenu:M,userSelectionActive:V,panOnScroll:I,panOnDrag:H,panOnScrollMode:q,panOnScrollSpeed:Z,preventScrolling:W,zoomOnPinch:G,zoomOnScroll:K,zoomOnDoubleClick:j,zoomActivationKeyPressed:Y,lib:Q,onTransformChange:J,connectionInProgress:ie}){V&&!u.isZoomingOrPanning&&C();const ne=I&&!Y&&!V?sTe({zoomPanValues:u,noWheelClassName:L,d3Selection:g,d3Zoom:f,panOnScrollMode:q,panOnScrollSpeed:Z,zoomOnPinch:G,onPanZoomStart:l,onPanZoom:s,onPanZoomEnd:c}):lTe({noWheelClassName:L,preventScrolling:W,d3ZoomHandler:b});if(g.on("wheel.zoom",ne,{passive:!1}),!V){const ge=cTe({zoomPanValues:u,onDraggingChange:d,onPanZoomStart:l});f.on("start",ge);const De=dTe({zoomPanValues:u,panOnDrag:H,onPaneContextMenu:!!M,onPanZoom:s,onTransformChange:J});f.on("zoom",De);const he=uTe({zoomPanValues:u,panOnDrag:H,panOnScroll:I,onPaneContextMenu:M,onPanZoomEnd:c,onDraggingChange:d});f.on("end",he)}const re=pTe({zoomActivationKeyPressed:Y,panOnDrag:H,zoomOnScroll:K,panOnScroll:I,zoomOnDoubleClick:j,zoomOnPinch:G,userSelectionActive:V,noPanClassName:U,noWheelClassName:L,lib:Q,connectionInProgress:ie});f.filter(re),j?g.on("dblclick.zoom",x):g.on("dblclick.zoom",null)}function C(){f.on("zoom",null)}async function _(L,U,M){const V=w7(L),I=f?.constrain()(V,U,M);return I&&await w(I),new Promise(H=>H(I))}async function T(L,U){const M=w7(L);return await w(M,U),new Promise(V=>V(M))}function A(L){if(g){const U=w7(L),M=g.property("__zoom");(M.k!==L.zoom||M.x!==L.x||M.y!==L.y)&&f?.transform(g,U,null,{sync:!0})}}function R(){const L=g?NH(g.node()):{x:0,y:0,k:1};return{x:L.x,y:L.y,zoom:L.k}}function D(L,U){return g?new Promise(M=>{f?.interpolate(U?.interpolate==="linear"?d0:cx).scaleTo(k7(g,U?.duration,U?.ease,()=>M(!0)),L)}):Promise.resolve(!1)}function N(L,U){return g?new Promise(M=>{f?.interpolate(U?.interpolate==="linear"?d0:cx).scaleBy(k7(g,U?.duration,U?.ease,()=>M(!0)),L)}):Promise.resolve(!1)}function P(L){f?.scaleExtent(L)}function O(L){f?.translateExtent(L)}function F(L){const U=!ss(L)||L<0?0:L;f?.clickDistance(U)}return{update:k,destroy:C,setViewport:T,setViewportConstrained:_,getViewport:R,scaleTo:D,scaleBy:N,setScaleExtent:P,setTranslateExtent:O,syncViewport:A,setClickDistance:F}}var jf;(function(e){e.Line="line",e.Handle="handle"})(jf||(jf={}));function fTe({width:e,prevWidth:r,height:n,prevHeight:o,affectsX:a,affectsY:i}){const s=e-r,l=n-o,c=[s>0?1:s<0?-1:0,l>0?1:l<0?-1:0];return s&&a&&(c[0]=c[0]*-1),l&&i&&(c[1]=c[1]*-1),c}function wV(e){const r=e.includes("right")||e.includes("left"),n=e.includes("bottom")||e.includes("top"),o=e.includes("left"),a=e.includes("top");return{isHorizontal:r,isVertical:n,affectsX:o,affectsY:a}}function xd(e,r){return Math.max(0,r-e)}function wd(e,r){return Math.max(0,e-r)}function Rx(e,r,n){return Math.max(0,r-e,e-n)}function kV(e,r){return e?!r:r}function mTe(e,r,n,o,a,i,s,l){let{affectsX:c,affectsY:d}=r;const{isHorizontal:u,isVertical:h}=r,f=u&&h,{xSnapped:g,ySnapped:b}=n,{minWidth:x,maxWidth:w,minHeight:k,maxHeight:C}=o,{x:_,y:T,width:A,height:R,aspectRatio:D}=e;let N=Math.floor(u?g-e.pointerX:0),P=Math.floor(h?b-e.pointerY:0);const O=A+(c?-N:N),F=R+(d?-P:P),L=-i[0]*A,U=-i[1]*R;let M=Rx(O,x,w),V=Rx(F,k,C);if(s){let q=0,Z=0;c&&N<0?q=xd(_+N+L,s[0][0]):!c&&N>0&&(q=wd(_+O+L,s[1][0])),d&&P<0?Z=xd(T+P+U,s[0][1]):!d&&P>0&&(Z=wd(T+F+U,s[1][1])),M=Math.max(M,q),V=Math.max(V,Z)}if(l){let q=0,Z=0;c&&N>0?q=wd(_+N,l[0][0]):!c&&N<0&&(q=xd(_+O,l[1][0])),d&&P>0?Z=wd(T+P,l[0][1]):!d&&P<0&&(Z=xd(T+F,l[1][1])),M=Math.max(M,q),V=Math.max(V,Z)}if(a){if(u){const q=Rx(O/D,k,C)*D;if(M=Math.max(M,q),s){let Z=0;!c&&!d||c&&!d&&f?Z=wd(T+U+O/D,s[1][1])*D:Z=xd(T+U+(c?N:-N)/D,s[0][1])*D,M=Math.max(M,Z)}if(l){let Z=0;!c&&!d||c&&!d&&f?Z=xd(T+O/D,l[1][1])*D:Z=wd(T+(c?N:-N)/D,l[0][1])*D,M=Math.max(M,Z)}}if(h){const q=Rx(F*D,x,w)/D;if(V=Math.max(V,q),s){let Z=0;!c&&!d||d&&!c&&f?Z=wd(_+F*D+L,s[1][0])/D:Z=xd(_+(d?P:-P)*D+L,s[0][0])/D,V=Math.max(V,Z)}if(l){let Z=0;!c&&!d||d&&!c&&f?Z=xd(_+F*D,l[1][0])/D:Z=wd(_+(d?P:-P)*D,l[0][0])/D,V=Math.max(V,Z)}}}P=P+(P<0?V:-V),N=N+(N<0?M:-M),a&&(f?O>F*D?P=(kV(c,d)?-N:N)/D:N=(kV(c,d)?-P:P)*D:u?(P=N/D,d=c):(N=P*D,c=d));const I=c?_+N:_,H=d?T+P:T;return{width:A+(c?-N:N),height:R+(d?-P:P),x:i[0]*N*(c?-1:1)+I,y:i[1]*P*(d?-1:1)+H}}const _V={width:0,height:0,x:0,y:0},gTe={..._V,pointerX:0,pointerY:0,aspectRatio:1};function yTe(e){return[[0,0],[e.measured.width,e.measured.height]]}function bTe(e,r,n){const o=r.position.x+e.position.x,a=r.position.y+e.position.y,i=e.measured.width??0,s=e.measured.height??0,l=n[0]*i,c=n[1]*s;return[[o-l,a-c],[o+i-l,a+s-c]]}function vTe({domNode:e,nodeId:r,getStoreItems:n,onChange:o,onEnd:a}){const i=za(e);let s={controlDirection:wV("bottom-right"),boundaries:{minWidth:0,minHeight:0,maxWidth:Number.MAX_VALUE,maxHeight:Number.MAX_VALUE},resizeDirection:void 0,keepAspectRatio:!1};function l({controlPosition:d,boundaries:u,keepAspectRatio:h,resizeDirection:f,onResizeStart:g,onResize:b,onResizeEnd:x,shouldResize:w}){let k={..._V},C={...gTe};s={boundaries:u,resizeDirection:f,keepAspectRatio:h,controlDirection:wV(d)};let _,T=null,A=[],R,D,N,P=!1;const O=tH().on("start",F=>{const{nodeLookup:L,transform:U,snapGrid:M,snapToGrid:V,nodeOrigin:I,paneDomNode:H}=n();if(_=L.get(r),!_)return;T=H?.getBoundingClientRect()??null;const{xSnapped:q,ySnapped:Z}=k0(F.sourceEvent,{transform:U,snapGrid:M,snapToGrid:V,containerBounds:T});k={width:_.measured.width??0,height:_.measured.height??0,x:_.position.x??0,y:_.position.y??0},C={...k,pointerX:q,pointerY:Z,aspectRatio:k.width/k.height},R=void 0,_.parentId&&(_.extent==="parent"||_.expandParent)&&(R=L.get(_.parentId),D=R&&_.extent==="parent"?yTe(R):void 0),A=[],N=void 0;for(const[W,G]of L)if(G.parentId===r&&(A.push({id:W,position:{...G.position},extent:G.extent}),G.extent==="parent"||G.expandParent)){const K=bTe(G,_,G.origin??I);N?N=[[Math.min(K[0][0],N[0][0]),Math.min(K[0][1],N[0][1])],[Math.max(K[1][0],N[1][0]),Math.max(K[1][1],N[1][1])]]:N=K}g?.(F,{...k})}).on("drag",F=>{const{transform:L,snapGrid:U,snapToGrid:M,nodeOrigin:V}=n(),I=k0(F.sourceEvent,{transform:L,snapGrid:U,snapToGrid:M,containerBounds:T}),H=[];if(!_)return;const{x:q,y:Z,width:W,height:G}=k,K={},j=_.origin??V,{width:Y,height:Q,x:J,y:ie}=mTe(C,s.controlDirection,I,s.boundaries,s.keepAspectRatio,j,D,N),ne=Y!==W,re=Q!==G,ge=J!==q&&ne,De=ie!==Z&&re;if(!ge&&!De&&!ne&&!re)return;if((ge||De||j[0]===1||j[1]===1)&&(K.x=ge?J:k.x,K.y=De?ie:k.y,k.x=K.x,k.y=K.y,A.length>0)){const Te=J-q,Ie=ie-Z;for(const Ze of A)Ze.position={x:Ze.position.x-Te+j[0]*(Y-W),y:Ze.position.y-Ie+j[1]*(Q-G)},H.push(Ze)}if((ne||re)&&(K.width=ne&&(!s.resizeDirection||s.resizeDirection==="horizontal")?Y:k.width,K.height=re&&(!s.resizeDirection||s.resizeDirection==="vertical")?Q:k.height,k.width=K.width,k.height=K.height),R&&_.expandParent){const Te=j[0]*(K.width??0);K.x&&K.x{P&&(x?.(F,{...k}),a?.({...k}),P=!1)});i.call(O)}function c(){i.on(".drag",null)}return{update:l,destroy:c}}function _7(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var EV={exports:{}},E7={},SV={exports:{}},S7={},CV;function xTe(){if(CV)return S7;CV=1;var e=un;function r(h,f){return h===f&&(h!==0||1/h===1/f)||h!==h&&f!==f}var n=typeof Object.is=="function"?Object.is:r,o=e.useState,a=e.useEffect,i=e.useLayoutEffect,s=e.useDebugValue;function l(h,f){var g=f(),b=o({inst:{value:g,getSnapshot:f}}),x=b[0].inst,w=b[1];return i(function(){x.value=g,x.getSnapshot=f,c(x)&&w({inst:x})},[h,g,f]),a(function(){return c(x)&&w({inst:x}),h(function(){c(x)&&w({inst:x})})},[h]),s(g),g}function c(h){var f=h.getSnapshot;h=h.value;try{var g=f();return!n(h,g)}catch{return!0}}function d(h,f){return f()}var u=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:l;return S7.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:u,S7}var TV;function AV(){return TV||(TV=1,SV.exports=xTe()),SV.exports}var RV;function wTe(){if(RV)return E7;RV=1;var e=un,r=AV();function n(d,u){return d===u&&(d!==0||1/d===1/u)||d!==d&&u!==u}var o=typeof Object.is=="function"?Object.is:n,a=r.useSyncExternalStore,i=e.useRef,s=e.useEffect,l=e.useMemo,c=e.useDebugValue;return E7.useSyncExternalStoreWithSelector=function(d,u,h,f,g){var b=i(null);if(b.current===null){var x={hasValue:!1,value:null};b.current=x}else x=b.current;b=l(function(){function k(R){if(!C){if(C=!0,_=R,R=f(R),g!==void 0&&x.hasValue){var D=x.value;if(g(D,R))return T=D}return T=R}if(D=T,o(_,R))return D;var N=f(R);return g!==void 0&&g(D,N)?(_=R,D):(_=R,T=N)}var C=!1,_,T,A=h===void 0?null:h;return[function(){return k(u())},A===null?void 0:function(){return k(A())}]},[u,h,f,g]);var w=a(d,b[0],b[1]);return s(function(){x.hasValue=!0,x.value=w},[w]),c(w),w},E7}var NV;function kTe(){return NV||(NV=1,EV.exports=wTe()),EV.exports}var DV=kTe();const _Te=_7(DV),ETe={},$V=e=>{let r;const n=new Set,o=(l,c)=>{const d=typeof l=="function"?l(r):l;if(!Object.is(d,r)){const u=r;r=c??(typeof d!="object"||d===null)?d:Object.assign({},r,d),n.forEach(h=>h(r,u))}},a=()=>r,i={setState:o,getState:a,getInitialState:()=>s,subscribe:l=>(n.add(l),()=>n.delete(l)),destroy:()=>{(ETe?"production":void 0)!=="production"&&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()}},s=r=e(o,a,i);return i},STe=e=>e?$V(e):$V,{useDebugValue:CTe}=un,{useSyncExternalStoreWithSelector:TTe}=_Te,ATe=e=>e;function PV(e,r=ATe,n){const o=TTe(e.subscribe,e.getState,e.getServerState||e.getInitialState,r,n);return CTe(o),o}const MV=(e,r)=>{const n=STe(e),o=(a,i=r)=>PV(n,a,i);return Object.assign(o,n),o},RTe=(e,r)=>e?MV(e,r):MV;function Kr(e,r){if(Object.is(e,r))return!0;if(typeof e!="object"||e===null||typeof r!="object"||r===null)return!1;if(e instanceof Map&&r instanceof Map){if(e.size!==r.size)return!1;for(const[o,a]of e)if(!Object.is(a,r.get(o)))return!1;return!0}if(e instanceof Set&&r instanceof Set){if(e.size!==r.size)return!1;for(const o of e)if(!r.has(o))return!1;return!0}const n=Object.keys(e);if(n.length!==Object.keys(r).length)return!1;for(const o of n)if(!Object.prototype.hasOwnProperty.call(r,o)||!Object.is(e[o],r[o]))return!1;return!0}const Nx=E.createContext(null),NTe=Nx.Provider,zV=ul.error001();function qt(e,r){const n=E.useContext(Nx);if(n===null)throw new Error(zV);return PV(n,e,r)}function Ar(){const e=E.useContext(Nx);if(e===null)throw new Error(zV);return E.useMemo(()=>({getState:e.getState,setState:e.setState,subscribe:e.subscribe}),[e])}const IV={display:"none"},DTe={position:"absolute",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)",clipPath:"inset(100%)"},OV="react-flow__node-desc",jV="react-flow__edge-desc",$Te="react-flow__aria-live",PTe=e=>e.ariaLiveMessage,MTe=e=>e.ariaLabelConfig;function zTe({rfId:e}){const r=qt(PTe);return y.jsx("div",{id:`${$Te}-${e}`,"aria-live":"assertive","aria-atomic":"true",style:DTe,children:r})}function ITe({rfId:e,disableKeyboardA11y:r}){const n=qt(MTe);return y.jsxs(y.Fragment,{children:[y.jsx("div",{id:`${OV}-${e}`,style:IV,children:r?n["node.a11yDescription.default"]:n["node.a11yDescription.keyboardDisabled"]}),y.jsx("div",{id:`${jV}-${e}`,style:IV,children:n["edge.a11yDescription.default"]}),!r&&y.jsx(zTe,{rfId:e})]})}const kd=E.forwardRef(({position:e="top-left",children:r,className:n,style:o,...a},i)=>{const s=`${e}`.split("-");return y.jsx("div",{className:_n(["react-flow__panel",n,...s]),style:o,ref:i,...a,children:r})});kd.displayName="Panel";function OTe({proOptions:e,position:r="bottom-right"}){return e?.hideAttribution?null:y.jsx(kd,{position:r,className:"react-flow__attribution","data-message":"Please only hide this attribution when you are subscribed to React Flow Pro: https://pro.reactflow.dev",children:y.jsx("a",{href:"https://reactflow.dev",target:"_blank",rel:"noopener noreferrer","aria-label":"React Flow attribution",children:"React Flow"})})}const jTe=e=>{const r=[],n=[];for(const[,o]of e.nodeLookup)o.selected&&r.push(o.internals.userNode);for(const[,o]of e.edgeLookup)o.selected&&n.push(o);return{selectedNodes:r,selectedEdges:n}},Dx=e=>e.id;function LTe(e,r){return Kr(e.selectedNodes.map(Dx),r.selectedNodes.map(Dx))&&Kr(e.selectedEdges.map(Dx),r.selectedEdges.map(Dx))}function BTe({onSelectionChange:e}){const r=Ar(),{selectedNodes:n,selectedEdges:o}=qt(jTe,LTe);return E.useEffect(()=>{const a={nodes:n,edges:o};e?.(a),r.getState().onSelectionChangeHandlers.forEach(i=>i(a))},[n,o,e]),null}const FTe=e=>!!e.onSelectionChangeHandlers;function HTe({onSelectionChange:e}){const r=qt(FTe);return e||r?y.jsx(BTe,{onSelectionChange:e}):null}const LV=[0,0],VTe={x:0,y:0,zoom:1},qTe=["nodes","edges","defaultNodes","defaultEdges","onConnect","onConnectStart","onConnectEnd","onClickConnectStart","onClickConnectEnd","nodesDraggable","autoPanOnNodeFocus","nodesConnectable","nodesFocusable","edgesFocusable","edgesReconnectable","elevateNodesOnSelect","elevateEdgesOnSelect","minZoom","maxZoom","nodeExtent","onNodesChange","onEdgesChange","elementsSelectable","connectionMode","snapGrid","snapToGrid","translateExtent","connectOnClick","defaultEdgeOptions","fitView","fitViewOptions","onNodesDelete","onEdgesDelete","onDelete","onNodeDrag","onNodeDragStart","onNodeDragStop","onSelectionDrag","onSelectionDragStart","onSelectionDragStop","onMoveStart","onMove","onMoveEnd","noPanClassName","nodeOrigin","autoPanOnConnect","autoPanOnNodeDrag","onError","connectionRadius","isValidConnection","selectNodesOnDrag","nodeDragThreshold","connectionDragThreshold","onBeforeDelete","debug","autoPanSpeed","paneClickDistance","ariaLabelConfig"],BV=[...qTe,"rfId"],UTe=e=>({setNodes:e.setNodes,setEdges:e.setEdges,setMinZoom:e.setMinZoom,setMaxZoom:e.setMaxZoom,setTranslateExtent:e.setTranslateExtent,setNodeExtent:e.setNodeExtent,reset:e.reset,setDefaultNodesAndEdges:e.setDefaultNodesAndEdges,setPaneClickDistance:e.setPaneClickDistance}),FV={translateExtent:g0,nodeOrigin:LV,minZoom:.5,maxZoom:2,elementsSelectable:!0,noPanClassName:"nopan",rfId:"1",paneClickDistance:0};function WTe(e){const{setNodes:r,setEdges:n,setMinZoom:o,setMaxZoom:a,setTranslateExtent:i,setNodeExtent:s,reset:l,setDefaultNodesAndEdges:c,setPaneClickDistance:d}=qt(UTe,Kr),u=Ar();E.useEffect(()=>(c(e.defaultNodes,e.defaultEdges),()=>{h.current=FV,l()}),[]);const h=E.useRef(FV);return E.useEffect(()=>{for(const f of BV){const g=e[f],b=h.current[f];g!==b&&(typeof e[f]>"u"||(f==="nodes"?r(g):f==="edges"?n(g):f==="minZoom"?o(g):f==="maxZoom"?a(g):f==="translateExtent"?i(g):f==="nodeExtent"?s(g):f==="paneClickDistance"?d(g):f==="ariaLabelConfig"?u.setState({ariaLabelConfig:DCe(g)}):f==="fitView"?u.setState({fitViewQueued:g}):f==="fitViewOptions"?u.setState({fitViewOptions:g}):u.setState({[f]:g})))}h.current=e},BV.map(f=>e[f])),null}function HV(){return typeof window>"u"||!window.matchMedia?null:window.matchMedia("(prefers-color-scheme: dark)")}function YTe(e){const[r,n]=E.useState(e==="system"?null:e);return E.useEffect(()=>{if(e!=="system"){n(e);return}const o=HV(),a=()=>n(o?.matches?"dark":"light");return a(),o?.addEventListener("change",a),()=>{o?.removeEventListener("change",a)}},[e]),r!==null?r:HV()?.matches?"dark":"light"}const VV=typeof document<"u"?document:null;function E0(e=null,r={target:VV,actInsideInputWithModifier:!0}){const[n,o]=E.useState(!1),a=E.useRef(!1),i=E.useRef(new Set([])),[s,l]=E.useMemo(()=>{if(e!==null){const c=(Array.isArray(e)?e:[e]).filter(u=>typeof u=="string").map(u=>u.replace("+",` +`}),n}function nO(e){let r=0,n=e.charCodeAt(r);for(;n===9||n===32;)r++,n=e.charCodeAt(r);return e.slice(r)}function oO(e,r){const n=$3e(e,r),o=n.one(e,void 0),a=E3e(n),i=Array.isArray(o)?{type:"root",children:o}:o||{type:"root",children:[]};return a&&i.children.push({type:"text",value:` +`},a),i}function A3e(e,r){return e&&"run"in e?async function(n,o){const a=oO(n,{file:o,...r});await e.run(a,o)}:function(n,o){return oO(n,{file:o,...e||r})}}function aO(e){if(e)throw e}var $_,iO;function D3e(){if(iO)return $_;iO=1;var e=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,a=function(d){return typeof Array.isArray=="function"?Array.isArray(d):r.call(d)==="[object Array]"},i=function(d){if(!d||r.call(d)!=="[object Object]")return!1;var u=e.call(d,"constructor"),p=d.constructor&&d.constructor.prototype&&e.call(d.constructor.prototype,"isPrototypeOf");if(d.constructor&&!u&&!p)return!1;var f;for(f in d);return typeof f>"u"||e.call(d,f)},l=function(d,u){n&&u.name==="__proto__"?n(d,u.name,{enumerable:!0,configurable:!0,value:u.newValue,writable:!0}):d[u.name]=u.newValue},s=function(d,u){if(u==="__proto__")if(e.call(d,u)){if(o)return o(d,u).value}else return;return d[u]};return $_=function c(){var d,u,p,f,g,v,w=arguments[0],x=1,k=arguments.length,C=!1;for(typeof w=="boolean"&&(C=w,w=arguments[1]||{},x=2),(w==null||typeof w!="object"&&typeof w!="function")&&(w={});xl.length;let c;s&&l.push(a);try{c=e.apply(this,l)}catch(d){const u=d;if(s&&n)throw u;return a(u)}s||(c&&c.then&&typeof c.then=="function"?c.then(i,a):c instanceof Error?a(c):i(c))}function a(l,...s){n||(n=!0,r(l,...s))}function i(l){a(null,l)}}class Qo extends Error{constructor(r,n,o){super(),typeof n=="string"&&(o=n,n=void 0);let a="",i={},l=!1;if(n&&("line"in n&&"column"in n?i={place:n}:"start"in n&&"end"in n?i={place:n}:"type"in n?i={ancestors:[n],place:n.position}:i={...n}),typeof r=="string"?a=r:!i.cause&&r&&(l=!0,a=r.message,i.cause=r),!i.ruleId&&!i.source&&typeof o=="string"){const c=o.indexOf(":");c===-1?i.ruleId=o:(i.source=o.slice(0,c),i.ruleId=o.slice(c+1))}if(!i.place&&i.ancestors&&i.ancestors){const c=i.ancestors[i.ancestors.length-1];c&&(i.place=c.position)}const s=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file,this.message=a,this.line=s?s.line:void 0,this.name=t1(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=l&&i.cause&&typeof i.cause.stack=="string"?i.cause.stack:"",this.actual,this.expected,this.note,this.url}}Qo.prototype.file="",Qo.prototype.name="",Qo.prototype.reason="",Qo.prototype.message="",Qo.prototype.stack="",Qo.prototype.column=void 0,Qo.prototype.line=void 0,Qo.prototype.ancestors=void 0,Qo.prototype.cause=void 0,Qo.prototype.fatal=void 0,Qo.prototype.place=void 0,Qo.prototype.ruleId=void 0,Qo.prototype.source=void 0;const Vl={basename:B3e,dirname:O3e,extname:I3e,join:L3e,sep:"/"};function B3e(e,r){if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');r1(e);let n=0,o=-1,a=e.length,i;if(r===void 0||r.length===0||r.length>e.length){for(;a--;)if(e.codePointAt(a)===47){if(i){n=a+1;break}}else o<0&&(i=!0,o=a+1);return o<0?"":e.slice(n,o)}if(r===e)return"";let l=-1,s=r.length-1;for(;a--;)if(e.codePointAt(a)===47){if(i){n=a+1;break}}else l<0&&(i=!0,l=a+1),s>-1&&(e.codePointAt(a)===r.codePointAt(s--)?s<0&&(o=a):(s=-1,o=l));return n===o?o=l:o<0&&(o=e.length),e.slice(n,o)}function O3e(e){if(r1(e),e.length===0)return".";let r=-1,n=e.length,o;for(;--n;)if(e.codePointAt(n)===47){if(o){r=n;break}}else o||(o=!0);return r<0?e.codePointAt(0)===47?"/":".":r===1&&e.codePointAt(0)===47?"//":e.slice(0,r)}function I3e(e){r1(e);let r=e.length,n=-1,o=0,a=-1,i=0,l;for(;r--;){const s=e.codePointAt(r);if(s===47){if(l){o=r+1;break}continue}n<0&&(l=!0,n=r+1),s===46?a<0?a=r:i!==1&&(i=1):a>-1&&(i=-1)}return a<0||n<0||i===0||i===1&&a===n-1&&a===o+1?"":e.slice(a,n)}function L3e(...e){let r=-1,n;for(;++r0&&e.codePointAt(e.length-1)===47&&(n+="/"),r?"/"+n:n}function V3e(e,r){let n="",o=0,a=-1,i=0,l=-1,s,c;for(;++l<=e.length;){if(l2){if(c=n.lastIndexOf("/"),c!==n.length-1){c<0?(n="",o=0):(n=n.slice(0,c),o=n.length-1-n.lastIndexOf("/")),a=l,i=0;continue}}else if(n.length>0){n="",o=0,a=l,i=0;continue}}r&&(n=n.length>0?n+"/..":"..",o=2)}else n.length>0?n+="/"+e.slice(a+1,l):n=e.slice(a+1,l),o=l-a-1;a=l,i=0}else s===46&&i>-1?i++:i=-1}return n}function r1(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const q3e={cwd:H3e};function H3e(){return"/"}function j_(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function U3e(e){if(typeof e=="string")e=new URL(e);else if(!j_(e)){const r=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw r.code="ERR_INVALID_ARG_TYPE",r}if(e.protocol!=="file:"){const r=new TypeError("The URL must be of scheme file");throw r.code="ERR_INVALID_URL_SCHEME",r}return W3e(e)}function W3e(e){if(e.hostname!==""){const o=new TypeError('File URL host must be "localhost" or empty on darwin');throw o.code="ERR_INVALID_FILE_URL_HOST",o}const r=e.pathname;let n=-1;for(;++n0){let[g,...v]=u;const w=o[f][1];R_(w)&&R_(g)&&(g=z_(!0,w,g)),o[f]=[d,g,...v]}}}}const K3e=new M_().freeze();function N_(e,r){if(typeof r!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function P_(e,r){if(typeof r!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function B_(e,r){if(r)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function sO(e){if(!R_(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function cO(e,r,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+r+"` instead")}function Bb(e){return Q3e(e)?e:new G3e(e)}function Q3e(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function J3e(e){return typeof e=="string"||e2e(e)}function e2e(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}function t2e(){return K3e().use(Zwe).use(Swe).use($we).use(A3e,{allowDangerousHtml:!0}).use(vye,JM({attributes:{"*":["className"],svg:["width","height","viewBox","fill","ariaHidden"],path:["d","fill","stroke","strokeWidth","strokeLinecap","strokeLinejoin"]},tagNames:["svg","g","path","div"]},J6)).use(N0e,{allowDangerousHtml:!0})}function r2e(e){return(""+t2e().processSync(e)).trim()}function n2e(e){return Ab(XB(e),{includeHtml:!1,includeImageAlt:!1})}var O_,dO;function o2e(){if(dO)return O_;dO=1;var e=dP(),r=xb();function n(){this.clear()}return n.prototype.clear=function(){this.items=[],this.offset=0,this.size=0},n.prototype.enqueue=function(o){return this.items.push(o),++this.size},n.prototype.dequeue=function(){if(this.size){var o=this.items[this.offset];return++this.offset*2>=this.items.length&&(this.items=this.items.slice(this.offset),this.offset=0),this.size--,o}},n.prototype.peek=function(){if(this.size)return this.items[this.offset]},n.prototype.forEach=function(o,a){a=arguments.length>1?a:this;for(var i=this.offset,l=0,s=this.items.length;i=o.length)return{done:!0};var i=o[a];return a++,{value:i,done:!1}})},n.prototype.entries=function(){var o=this.items,a=this.offset,i=0;return new e(function(){if(a>=o.length)return{done:!0};var l=o[a];return a++,{value:[i++,l],done:!1}})},typeof Symbol<"u"&&(n.prototype[Symbol.iterator]=n.prototype.values),n.prototype.toString=function(){return this.toArray().join(",")},n.prototype.toJSON=function(){return this.toArray()},n.prototype.inspect=function(){var o=this.toArray();return Object.defineProperty(o,"constructor",{value:n,enumerable:!1}),o},typeof Symbol<"u"&&(n.prototype[Symbol.for("nodejs.util.inspect.custom")]=n.prototype.inspect),n.from=function(o){var a=new n;return r(o,function(i){a.enqueue(i)}),a},n.of=function(){return n.from(arguments)},O_=n,O_}var a2e=o2e();const I_=Vg(a2e);var L_,uO;function i2e(){if(uO)return L_;uO=1;function e(r){if(typeof r!="function")throw new Error("mnemonist/DefaultMap.constructor: expecting a function.");this.items=new Map,this.factory=r,this.size=0}return e.prototype.clear=function(){this.items.clear(),this.size=0},e.prototype.get=function(r){var n=this.items.get(r);return typeof n>"u"&&(n=this.factory(r,this.size),this.items.set(r,n),this.size++),n},e.prototype.peek=function(r){return this.items.get(r)},e.prototype.set=function(r,n){return this.items.set(r,n),this.size=this.items.size,this},e.prototype.has=function(r){return this.items.has(r)},e.prototype.delete=function(r){var n=this.items.delete(r);return this.size=this.items.size,n},e.prototype.forEach=function(r,n){n=arguments.length>1?n:this,this.items.forEach(r,n)},e.prototype.entries=function(){return this.items.entries()},e.prototype.keys=function(){return this.items.keys()},e.prototype.values=function(){return this.items.values()},typeof Symbol<"u"&&(e.prototype[Symbol.iterator]=e.prototype.entries),e.prototype.inspect=function(){return this.items},typeof Symbol<"u"&&(e.prototype[Symbol.for("nodejs.util.inspect.custom")]=e.prototype.inspect),e.autoIncrement=function(){var r=0;return function(){return r++}},L_=e,L_}var l2e=i2e();const Ln=Vg(l2e);function Za(e){return!!e}function pO(e){return r=>!e(r)}function s2e(...e){return io(c2e,e)}const c2e=(e,r)=>r.every(n=>n(e));function d2e(...e){return io(u2e,e)}const u2e=(e,r)=>r.some(n=>n(e));function Xn(e){return e==null}function hO(e,r){return e[$u]===r}const $u="_stage",n1="_type",F_="_layout";function p2e(e){return Za(e.kind)&&!Za(e.element)}function h2e(e){return"tag"in e}function f2e(e){return"kind"in e}function m2e(e){return"participant"in e}function g2e(e){return"not"in e}function y2e(e){return"and"in e}function v2e(e){return"or"in e}function zu(e){switch(!0){case m2e(e):{const r=e.participant,n=zu(e.operator);return b2e(r,n)}case h2e(e):{if(Uc(e.tag)||"eq"in e.tag){const n=Uc(e.tag)?e.tag:e.tag.eq;return o=>Array.isArray(o.tags)&&o.tags.includes(n)}const r=e.tag.neq;return n=>!Array.isArray(n.tags)||!n.tags.includes(r)}case f2e(e):{if(Uc(e.kind)||"eq"in e.kind){const n=Uc(e.kind)?e.kind:e.kind.eq;return o=>o.kind===n}const r=e.kind.neq;return n=>Xn(n.kind)||n.kind!==r}case g2e(e):{const r=zu(e.not);return pO(r)}case y2e(e):{const r=e.and.map(zu);return s2e(r)}case v2e(e):{const r=e.or.map(zu);return d2e(r)}default:Xo(e)}}function b2e(e,r){return n=>{if(!n.source||!n.target)return!1;switch(e){case"source":return r(n.source);case"target":return r(n.target)}}}function x2e(e){return e._type==="dynamic"}function o1(...e){return io(Object.entries,e)}function Ru(e,...r){return typeof e=="string"||typeof e=="number"||typeof e=="symbol"?n=>fO(n,e,...r):fO(e,...r)}function fO(e,...r){let n=e;for(let o of r){if(n==null)return;n=n[o]}return n}function Ob(...e){return io(w2e,e,k2e)}const w2e=(e,r)=>e.map(r),k2e=e=>(r,n,o)=>({done:!1,hasNext:!0,next:e(r,n,o)});function _2e(e,r){let n=r.length-e.length;if(n===1){let[o,...a]=r;return Ns(o,{lazy:e,lazyArgs:a})}if(n===0){let o={lazy:e,lazyArgs:r};return Object.assign(a=>Ns(a,o),o)}throw Error("Wrong number of arguments")}function Ib(...e){return _2e(S2e,e)}function S2e(){let e=new Set;return r=>e.has(r)?H6:(e.add(r),{done:!1,hasNext:!0,next:r})}var V_={},mO;function E2e(){return mO||(mO=1,(function(e){e.intersection=function(){if(arguments.length<2)throw new Error("mnemonist/Set.intersection: needs at least two arguments.");var r=new Set,n=1/0,o=null,a,i,l=arguments.length;for(i=0;in.size)return!1;for(;a=o.next(),!a.done;)if(!n.has(a.value))return!1;return!0},e.isSuperset=function(r,n){return e.isSubset(n,r)},e.add=function(r,n){for(var o=n.values(),a;a=o.next(),!a.done;)r.add(a.value)},e.subtract=function(r,n){for(var o=n.values(),a;a=o.next(),!a.done;)r.delete(a.value)},e.intersect=function(r,n){for(var o=r.values(),a;a=o.next(),!a.done;)n.has(a.value)||r.delete(a.value)},e.disjunct=function(r,n){for(var o=r.values(),a,i=[];a=o.next(),!a.done;)n.has(a.value)&&i.push(a.value);for(o=n.values();a=o.next(),!a.done;)r.has(a.value)||r.add(a.value);for(var l=0,s=i.length;ln.size&&(o=r,r=n,n=o),r.size===0)return 0;if(r===n)return r.size;for(var a=r.values(),i,l=0;i=a.next(),!i.done;)n.has(i.value)&&l++;return l},e.unionSize=function(r,n){var o=e.intersectionSize(r,n);return r.size+n.size-o},e.jaccard=function(r,n){var o=e.intersectionSize(r,n);if(o===0)return 0;var a=r.size+n.size-o;return o/a},e.overlap=function(r,n){var o=e.intersectionSize(r,n);return o===0?0:o/Math.min(r.size,n.size)}})(V_)),V_}var gO=E2e();function q_(...e){let r=new Set;for(const n of e)for(const o of n)r.add(o);return r}function qh(e,...r){let n=new Set;if(e.size===0)return n;let o=Il(r,2)?gO.intersection(...r):r[0];if(o.size===0)return n;for(const a of e)o.has(a)&&n.add(a);return n}function H_(e,r){if(e.size===0)return new Set;if(r.size===0)return new Set(e);let n=new Set;for(const o of e)r.has(o)||n.add(o);return n}function C2e(e,r){return e.size===r.size&&[...e].every(n=>r.has(n))}function $2e(e,r){return gO.symmetricDifference(e,r)}function a1(e){return e?yO(e):yO}function yO(e){const r=e[Symbol.iterator](),{value:n}=r.next();return n}const Lb=e=>typeof e=="function";function Bs(e,r){const n=r??e;He(Lb(n));function*o(a){for(const i of a)n(i)&&(yield i)}return r?o(e):o}const vO={asc:(e,r)=>e>r,desc:(e,r)=>ee(i,a)}function U_(e,r,...n){let o=typeof e=="function"?e:e[0],a=typeof e=="function"?"asc":e[1],{[a]:i}=vO,l=r===void 0?void 0:U_(r,...n);return(s,c)=>{let d=o(s),u=o(c);return i(d,u)?1:i(u,d)?-1:l?.(s,c)??0}}function R2e(e){if(bO(e))return!0;if(typeof e!="object"||!Array.isArray(e))return!1;let[r,n,...o]=e;return bO(r)&&typeof n=="string"&&n in vO&&o.length===0}const bO=e=>typeof e=="function"&&e.length===1;function j2e(...e){return io(T2e,e,A2e)}const T2e=(e,r)=>e.filter(r),A2e=e=>(r,n,o)=>e(r,n,o)?{done:!1,hasNext:!0,next:r}:H6;function xO(...e){return io(D2e,e,M2e)}const D2e=(e,r)=>e.flatMap(r),M2e=e=>(r,n,o)=>{let a=e(r,n,o);return Array.isArray(a)?{done:!1,hasNext:!0,hasMany:!0,next:a}:{done:!1,hasNext:!0,next:a}};function W_(...e){return io(N2e,e)}const N2e=(e,r)=>{let n=Object.create(null);for(let o=0;oNs(r,...e)}function kO(...e){return z2e(I2e,e)}const I2e=(e,r)=>[...e].sort(r);var _O=Symbol.for("immer-nothing"),SO=Symbol.for("immer-draftable"),va=Symbol.for("immer-state");function qi(e,...r){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var i1=Object.getPrototypeOf;function Hh(e){return!!e&&!!e[va]}function ju(e){return e?CO(e)||Array.isArray(e)||!!e[SO]||!!e.constructor?.[SO]||l1(e)||qb(e):!1}var L2e=Object.prototype.constructor.toString(),EO=new WeakMap;function CO(e){if(!e||typeof e!="object")return!1;const r=Object.getPrototypeOf(e);if(r===null||r===Object.prototype)return!0;const n=Object.hasOwnProperty.call(r,"constructor")&&r.constructor;if(n===Object)return!0;if(typeof n!="function")return!1;let o=EO.get(n);return o===void 0&&(o=Function.toString.call(n),EO.set(n,o)),o===L2e}function Fb(e,r,n=!0){Vb(e)===0?(n?Reflect.ownKeys(e):Object.keys(e)).forEach(a=>{r(a,e[a],e)}):e.forEach((o,a)=>r(a,o,e))}function Vb(e){const r=e[va];return r?r.type_:Array.isArray(e)?1:l1(e)?2:qb(e)?3:0}function X_(e,r){return Vb(e)===2?e.has(r):Object.prototype.hasOwnProperty.call(e,r)}function $O(e,r,n){const o=Vb(e);o===2?e.set(r,n):o===3?e.add(n):e[r]=n}function F2e(e,r){return e===r?e!==0||1/e===1/r:e!==e&&r!==r}function l1(e){return e instanceof Map}function qb(e){return e instanceof Set}function Tu(e){return e.copy_||e.base_}function Z_(e,r){if(l1(e))return new Map(e);if(qb(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=CO(e);if(r===!0||r==="class_only"&&!n){const o=Object.getOwnPropertyDescriptors(e);delete o[va];let a=Reflect.ownKeys(o);for(let i=0;i1&&Object.defineProperties(e,{set:Hb,add:Hb,clear:Hb,delete:Hb}),Object.freeze(e),r&&Object.values(e).forEach(n=>K_(n,!0))),e}function V2e(){qi(2)}var Hb={value:V2e};function Ub(e){return e===null||typeof e!="object"?!0:Object.isFrozen(e)}var q2e={};function Au(e){const r=q2e[e];return r||qi(0,e),r}var s1;function zO(){return s1}function H2e(e,r){return{drafts_:[],parent_:e,immer_:r,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function RO(e,r){r&&(Au("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=r)}function Q_(e){J_(e),e.drafts_.forEach(U2e),e.drafts_=null}function J_(e){e===s1&&(s1=e.parent_)}function jO(e){return s1=H2e(s1,e)}function U2e(e){const r=e[va];r.type_===0||r.type_===1?r.revoke_():r.revoked_=!0}function TO(e,r){r.unfinalizedDrafts_=r.drafts_.length;const n=r.drafts_[0];return e!==void 0&&e!==n?(n[va].modified_&&(Q_(r),qi(4)),ju(e)&&(e=Wb(r,e),r.parent_||Gb(r,e)),r.patches_&&Au("Patches").generateReplacementPatches_(n[va].base_,e,r.patches_,r.inversePatches_)):e=Wb(r,n,[]),Q_(r),r.patches_&&r.patchListener_(r.patches_,r.inversePatches_),e!==_O?e:void 0}function Wb(e,r,n){if(Ub(r))return r;const o=e.immer_.shouldUseStrictIteration(),a=r[va];if(!a)return Fb(r,(i,l)=>AO(e,a,r,i,l,n),o),r;if(a.scope_!==e)return r;if(!a.modified_)return Gb(e,a.base_,!0),a.base_;if(!a.finalized_){a.finalized_=!0,a.scope_.unfinalizedDrafts_--;const i=a.copy_;let l=i,s=!1;a.type_===3&&(l=new Set(i),i.clear(),s=!0),Fb(l,(c,d)=>AO(e,a,i,c,d,n,s),o),Gb(e,i,!1),n&&e.patches_&&Au("Patches").generatePatches_(a,n,e.patches_,e.inversePatches_)}return a.copy_}function AO(e,r,n,o,a,i,l){if(a==null||typeof a!="object"&&!l)return;const s=Ub(a);if(!(s&&!l)){if(Hh(a)){const c=i&&r&&r.type_!==3&&!X_(r.assigned_,o)?i.concat(o):void 0,d=Wb(e,a,c);if($O(n,o,d),Hh(d))e.canAutoFreeze_=!1;else return}else l&&n.add(a);if(ju(a)&&!s){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1||r&&r.base_&&r.base_[o]===a&&s)return;Wb(e,a),(!r||!r.scope_.parent_)&&typeof o!="symbol"&&(l1(n)?n.has(o):Object.prototype.propertyIsEnumerable.call(n,o))&&Gb(e,a)}}}function Gb(e,r,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&K_(r,n)}function W2e(e,r){const n=Array.isArray(e),o={type_:n?1:0,scope_:r?r.scope_:zO(),modified_:!1,finalized_:!1,assigned_:{},parent_:r,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let a=o,i=e8;n&&(a=[o],i=c1);const{revoke:l,proxy:s}=Proxy.revocable(a,i);return o.draft_=s,o.revoke_=l,s}var e8={get(e,r){if(r===va)return e;const n=Tu(e);if(!X_(n,r))return G2e(e,n,r);const o=n[r];return e.finalized_||!ju(o)?o:o===t8(e.base_,r)?(n8(e),e.copy_[r]=o8(o,e)):o},has(e,r){return r in Tu(e)},ownKeys(e){return Reflect.ownKeys(Tu(e))},set(e,r,n){const o=DO(Tu(e),r);if(o?.set)return o.set.call(e.draft_,n),!0;if(!e.modified_){const a=t8(Tu(e),r),i=a?.[va];if(i&&i.base_===n)return e.copy_[r]=n,e.assigned_[r]=!1,!0;if(F2e(n,a)&&(n!==void 0||X_(e.base_,r)))return!0;n8(e),r8(e)}return e.copy_[r]===n&&(n!==void 0||r in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[r])||(e.copy_[r]=n,e.assigned_[r]=!0),!0},deleteProperty(e,r){return t8(e.base_,r)!==void 0||r in e.base_?(e.assigned_[r]=!1,n8(e),r8(e)):delete e.assigned_[r],e.copy_&&delete e.copy_[r],!0},getOwnPropertyDescriptor(e,r){const n=Tu(e),o=Reflect.getOwnPropertyDescriptor(n,r);return o&&{writable:!0,configurable:e.type_!==1||r!=="length",enumerable:o.enumerable,value:n[r]}},defineProperty(){qi(11)},getPrototypeOf(e){return i1(e.base_)},setPrototypeOf(){qi(12)}},c1={};Fb(e8,(e,r)=>{c1[e]=function(){return arguments[0]=arguments[0][0],r.apply(this,arguments)}}),c1.deleteProperty=function(e,r){return c1.set.call(this,e,r,void 0)},c1.set=function(e,r,n){return e8.set.call(this,e[0],r,n,e[0])};function t8(e,r){const n=e[va];return(n?Tu(n):e)[r]}function G2e(e,r,n){const o=DO(r,n);return o?"value"in o?o.value:o.get?.call(e.draft_):void 0}function DO(e,r){if(!(r in e))return;let n=i1(e);for(;n;){const o=Object.getOwnPropertyDescriptor(n,r);if(o)return o;n=i1(n)}}function r8(e){e.modified_||(e.modified_=!0,e.parent_&&r8(e.parent_))}function n8(e){e.copy_||(e.copy_=Z_(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Y2e=class{constructor(r){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!0,this.produce=(n,o,a)=>{if(typeof n=="function"&&typeof o!="function"){const l=o;o=n;const s=this;return function(d=l,...u){return s.produce(d,p=>o.call(this,p,...u))}}typeof o!="function"&&qi(6),a!==void 0&&typeof a!="function"&&qi(7);let i;if(ju(n)){const l=jO(this),s=o8(n,void 0);let c=!0;try{i=o(s),c=!1}finally{c?Q_(l):J_(l)}return RO(l,a),TO(i,l)}else if(!n||typeof n!="object"){if(i=o(n),i===void 0&&(i=n),i===_O&&(i=void 0),this.autoFreeze_&&K_(i,!0),a){const l=[],s=[];Au("Patches").generateReplacementPatches_(n,i,l,s),a(l,s)}return i}else qi(1,n)},this.produceWithPatches=(n,o)=>{if(typeof n=="function")return(s,...c)=>this.produceWithPatches(s,d=>n(d,...c));let a,i;return[this.produce(n,o,(s,c)=>{a=s,i=c}),a,i]},typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze),typeof r?.useStrictShallowCopy=="boolean"&&this.setUseStrictShallowCopy(r.useStrictShallowCopy),typeof r?.useStrictIteration=="boolean"&&this.setUseStrictIteration(r.useStrictIteration)}createDraft(r){ju(r)||qi(8),Hh(r)&&(r=X2e(r));const n=jO(this),o=o8(r,void 0);return o[va].isManual_=!0,J_(n),o}finishDraft(r,n){const o=r&&r[va];(!o||!o.isManual_)&&qi(9);const{scope_:a}=o;return RO(a,n),TO(void 0,a)}setAutoFreeze(r){this.autoFreeze_=r}setUseStrictShallowCopy(r){this.useStrictShallowCopy_=r}setUseStrictIteration(r){this.useStrictIteration_=r}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(r,n){let o;for(o=n.length-1;o>=0;o--){const i=n[o];if(i.path.length===0&&i.op==="replace"){r=i.value;break}}o>-1&&(n=n.slice(o+1));const a=Au("Patches").applyPatches_;return Hh(r)?a(r,n):this.produce(r,i=>a(i,n))}};function o8(e,r){const n=l1(e)?Au("MapSet").proxyMap_(e,r):qb(e)?Au("MapSet").proxySet_(e,r):W2e(e,r);return(r?r.scope_:zO()).drafts_.push(n),n}function X2e(e){return Hh(e)||qi(10,e),MO(e)}function MO(e){if(!ju(e)||Ub(e))return e;const r=e[va];let n,o=!0;if(r){if(!r.modified_)return r.base_;r.finalized_=!0,n=Z_(e,r.scope_.immer_.useStrictShallowCopy_),o=r.scope_.immer_.shouldUseStrictIteration()}else n=Z_(e,!0);return Fb(n,(a,i)=>{$O(n,a,MO(i))},o),r&&(r.finalized_=!1),n}var Z2e=new Y2e,Uh=Z2e.produce;function $xt(e){return e}function K2e(e){return Ns(e,j2e(r=>!!r.notation),W_(Ru("notation")),G_(Y_(W_(Ru("shape")),G_(Y_(W_(Ru("color")),G_(Y_(Ob(Ru("kind")),Ib())),o1(),Ob(([r,n])=>({kinds:n,color:r})))),o1(),xO(([r,n])=>n.map(({color:o,kinds:a})=>({shape:r,color:o,kinds:a}))))),o1(),xO(([r,n])=>n.map(({shape:o,color:a,kinds:i})=>({title:r,shape:o,color:a,kinds:i}))),kO(Ru("shape"),Ru("title"),[r=>r.kinds.length,"desc"]))}const wo=(e,r)=>e===r||Xn(e)&&Xn(r)?!1:!ab(e,r),Yb=5;function Q2e(e,r){e.color=r.color,e.kind=r.kind,e.navigateTo=r.navigateTo??null,e.links=r.links?[...r.links]:null,e.tags=[...r.tags],Xn(r.style.border)?delete e.style.border:e.style.border=r.style.border,P2e(r.style.opacity)?e.style.opacity=r.style.opacity:delete e.style.opacity,Xn(r.style.multiple)?delete e.style.multiple:e.style.multiple=r.style.multiple}function J2e(e,r,n){if(wo(r.icon??"none",e.icon??"none")){const o=Za(e.icon)&&e.icon!=="none";switch(!0){case(o&&Za(r.icon)&&r.icon!=="none"):return e.icon=r.icon,!0;case(o&&(Xn(r.icon)||r.icon==="none")):return e.icon="none",!0;case(!o&&Za(r.icon)&&r.icon!=="none"):return n?(e.icon=r.icon,!0):!1}}return!0}function a8(e,r){return e?"md"in r?(e.md=r.md,delete e.txt,e):("txt"in r&&(e.txt=r.txt,delete e.md),e):r}function eke(e,r,n){let o=!0;return wo(e.title,r.title)&&(n?e.title=r.title:o=!1),wo(e.description,r.description)&&(Xn(r.description)?delete e.description:n?e.description=a8(e.description,r.description):o=!1),wo(e.technology,r.technology)&&(Xn(r.technology)?delete e.technology:n?e.technology=r.technology:o=!1),o}function tke(e,r,n){return e.title=r.title,Xn(r.description)?delete e.description:e.description=a8(e.description,r.description),Xn(r.technology)?delete e.technology:e.technology=r.technology,!0}function NO(e,r){He(e.id===r.id,"applyManualLayout: view ids do not match"),He(e._stage==="layouted","applyManualLayout: expected layouted view"),He(r._stage==="layouted","applyManualLayout: expected layouted snapshot"),He(e._layout!=="manual","applyManualLayout: expected auto-layouted view");const n=new Set;e._type!==r._type&&n.add("type-changed");const o=new Map(e.nodes.map(u=>[u.id,u])),a=new Map(e.edges.map(u=>[u.id,u])),i=rke(r.nodes,o,n),l=nke(r.edges,a,n),s=K2e(i),c=Object.assign({...r},{title:e.title??r.title,description:e.description??r.description,tags:e.tags?[...e.tags]:null,links:e.links?[...e.links]:null,[F_]:"manual",...s&&s.length>0?{notation:{nodes:s}}:{},nodes:i,edges:l});x2e(e)&&c._type==="dynamic"&&(c.variant=e.variant);const d=[...n];return Il(d,1)?c.drifts=d:"drifts"in c&&delete c.drifts,c}function rke(e,r,n){const o=e.map(a=>{const i=r.get(a.id);return i&&r.delete(i.id),Uh(a,l=>{if(!i){l.drifts=["removed"],n.add("nodes-removed");return}Q2e(l,i);const s=new Set,c=a.children.length>0,d=i.children.length>0;(wo(l.modelRef,i.modelRef)||wo(l.deploymentRef,i.deploymentRef))&&s.add("modelRef-changed"),d&&!c&&s.add("became-compound"),!d&&c&&s.add("became-leaf"),wo(l.parent,i.parent)&&s.add("parent-changed");const u=l.width+Yb>=i.width&&l.height+Yb>=i.height;wo(l.shape,i.shape)&&(u?l.shape=i.shape:s.add("shape-changed")),J2e(l,i,u&&d===c)||s.add("label-changed"),(c?tke:eke)(l,i,u)||s.add("label-changed"),wo(a.notation,i.notation)&&(l.notation=i.notation??null),c&&d&&$2e(new Set(a.children),new Set(i.children)).size>0&&s.add("children-changed");const f=[...s];Il(f,1)?(n.add("nodes-drift"),l.drifts=f):delete l.drifts})});return r.size>0&&n.add("nodes-added"),o}function nke(e,r,n){const o=e.map(a=>{let i=r.get(a.id)??Ns(r.values(),Bs(l=>l.source===a.source&&l.target===a.target),a1());return i&&r.delete(i.id),Uh(a,l=>{if(!i){l.drifts=["removed"],n.add("edges-removed");return}const s=new Set,c=a.id===i.id;switch(!0){case(c&&a.source==i.source&&a.target==i.target):{wo(l.dir??"forward",i.dir??"forward")&&s.add("direction-changed");break}case(c&&a.source==i.target&&a.target==i.source):{a.source!==a.target&&s.add("direction-changed");break}case c:{a.source!=i.source&&s.add("source-changed"),a.target!=i.target&&s.add("target-changed");break}default:{He(a.id!=i.id,"Unexpected case in edge drift detection, ids should not match"),He(a.source==i.source,"Unexpected case in edge drift detection, sources should match"),He(a.target==i.target,"Unexpected case in edge drift detection, targets should match"),wo(l.dir??"forward",i.dir??"forward")&&s.add("direction-changed");break}}l.color=i.color,l.line=i.line,l.navigateTo=i.navigateTo??null,l.tags=i.tags?[...i.tags]:null,wo(a.notes,i.notes)&&(Xn(a.notes)!==Xn(i.notes)&&s.add("notes-changed"),l.notes=i.notes??a.notes),i.astPath?l.astPath=i.astPath:delete l.astPath;const d=wO(a,["label","description","technology","labelBBox"]),u=wO(i,["label","description","technology","labelBBox"]);if(wo(d,u))switch(!0){case(i.labelBBox&&!a.labelBBox):{s.add("label-added");break}case(a.labelBBox&&!i.labelBBox):{s.add("label-removed");break}case(!!a.labelBBox&&!!i.labelBBox):{i.labelBBox.width*i.labelBBox.height>(a.labelBBox.width+Yb)*(a.labelBBox.height+Yb)&&(l.labelBBox.width=Math.round(i.labelBBox.width),l.labelBBox.height=Math.round(i.labelBBox.height)),wo(a.label,i.label)&&(Xn(i.label)!==Xn(a.label)&&s.add("label-changed"),l.label=i.label??a.label),wo(a.description,i.description)&&(Xn(i.description)!==Xn(a.description)&&s.add("label-changed"),i.description&&(l.description=a8(a.description,i.description))),wo(a.technology,i.technology)&&(Xn(i.technology)!==Xn(a.technology)&&s.add("label-changed"),l.technology=i.technology??a.technology??null);break}default:He(!a.labelBBox,"Unexpected case in edge labelBBox drift detection"),He(!i.labelBBox,"Unexpected case in next labelBBox drift detection");break}const p=[...s];Il(p,1)?(n.add("edges-drift"),l.drifts=p):delete l.drifts})});return r.size>0&&n.add("edges-added"),o}function oke(e,r){const{drifts:n,...o}=NO(e,r);if(n){const a=new Set;n.includes("type-changed")&&a.add("type-changed");const i=new Map(o.nodes.map(u=>[u.id,u])),l=new Map(o.edges.map(u=>[u.id,u])),s=e.nodes.map(u=>{const p=i.get(u.id);return p&&i.delete(p.id),Uh(u,f=>{if(!p){a.add("nodes-added"),f.drifts=["added"];return}p.drifts?(a.add("nodes-drift"),f.drifts=[...p.drifts]):delete f.drifts})});i.size>0&&a.add("nodes-removed");const c=e.edges.map(u=>{const p=l.get(u.id)??Ns(l.values(),Bs(f=>f.source===u.source&&f.target===u.target),a1());return p&&l.delete(p.id),Uh(u,f=>{if(!p){a.add("edges-added"),f.drifts=["added"];return}p.drifts?(a.add("edges-drift"),f.drifts=[...p.drifts]):delete f.drifts})});l.size>0&&a.add("edges-removed");const d=[...a];return Uh(e,u=>{Il(d,1)?u.drifts=d:delete u.drifts,u.nodes=s,u.edges=c,u[F_]="auto"})}return Uh(e,a=>{delete a.drifts,a[F_]="auto"})}function Os(e){return e.summary??e.description}function Wh(e){return e.description??e.summary}const d1="@group";function ake(e){return e.kind===d1}function PO(e,r){return He(typeof e=="string"&&e!=""),"@"+e+"."+r}function ike(e){return e.startsWith("@")}function lke(e){if(!e.startsWith("@"))return[null,e];const r=e.indexOf(".");if(r<2)throw new Error("Invalid global FQN");const n=e.slice(1,r),o=e.slice(r+1);return[n,o]}function u1(e){return e.startsWith("step-")}function BO(e){if(!u1(e))throw new Error(`Invalid step edge id: ${e}`);return parseFloat(e.slice(5))}function ske(...e){return io(cke,e)}function cke(e,r){let n={...e};for(let[o,a]of Object.entries(n))r(a,o,e)&&delete n[o];return n}var i8={},OO;function l8(){return OO||(OO=1,(function(e){var r=Math.pow(2,8)-1,n=Math.pow(2,16)-1,o=Math.pow(2,32)-1,a=Math.pow(2,7)-1,i=Math.pow(2,15)-1,l=Math.pow(2,31)-1;e.getPointerArray=function(c){var d=c-1;if(d<=r)return Uint8Array;if(d<=n)return Uint16Array;if(d<=o)return Uint32Array;throw new Error("mnemonist: Pointer Array of size > 4294967295 is not supported.")},e.getSignedPointerArray=function(c){var d=c-1;return d<=a?Int8Array:d<=i?Int16Array:d<=l?Int32Array:Float64Array},e.getNumberType=function(c){return c===(c|0)?Math.sign(c)===-1?c<=127&&c>=-128?Int8Array:c<=32767&&c>=-32768?Int16Array:Int32Array:c<=255?Uint8Array:c<=65535?Uint16Array:Uint32Array:Float64Array};var s={Uint8Array:1,Int8Array:2,Uint16Array:3,Int16Array:4,Uint32Array:5,Int32Array:6,Float32Array:7,Float64Array:8};e.getMinimalRepresentation=function(c,d){var u=null,p=0,f,g,v,w,x;for(w=0,x=c.length;wp&&(p=f,u=g);return u},e.isTypedArray=function(c){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView(c)},e.concat=function(){var c=0,d,u,p;for(d=0,p=arguments.length;d"u"))return this.splayOnTop(l),this.V[l]},a.prototype.peek=function(i){var l=this.items[i];if(!(typeof l>"u"))return this.V[l]},a.prototype.forEach=function(i,l){l=arguments.length>1?l:this;for(var s=0,c=this.size,d=this.head,u=this.K,p=this.V,f=this.forward;s=l)return{done:!0};var u=c[s];return i++,i=l)return{done:!0};var u=c[s];return i++,i=l)return{done:!0};var p=c[s],f=d[s];return i++,i"u"))return this.splayOnTop(l),this.V[l]},a.prototype.peek=function(i){var l=this.items.get(i);if(!(typeof l>"u"))return this.V[l]},a.prototype.splayOnTop=e.prototype.splayOnTop,a.prototype.forEach=e.prototype.forEach,a.prototype.keys=e.prototype.keys,a.prototype.values=e.prototype.values,a.prototype.entries=e.prototype.entries,typeof Symbol<"u"&&(a.prototype[Symbol.iterator]=a.prototype.entries),a.prototype.inspect=e.prototype.inspect,a.from=function(i,l,s,c){if(arguments.length<2){if(c=o.guessLength(i),typeof c!="number")throw new Error("mnemonist/lru-cache.from: could not guess iterable length. Please provide desired capacity as last argument.")}else arguments.length===2&&(c=l,l=null,s=null);var d=new a(l,s,c);return r(i,function(u,p){d.set(p,u)}),d},c8=a,c8}var pke=uke();const qO=Vg(pke);function p1(e){return ske(e,r=>r===void 0)}const hke=Symbol.for("text"),fke=Symbol.for("html"),Is="",HO=new qO(500),UO=new qO(500);class ur{static getOrCreateFromText(r){if(r.trim()===Is)return ur.EMPTY;let n=UO.get(r);return n||(n=new ur({txt:r}),UO.set(r,n),n)}static getOrCreateFromMarkdown(r){if(r.trim()===Is)return ur.EMPTY;let n=HO.get(r);return n||(n=new ur({md:r}),HO.set(r,n),n)}static memoize(r,n,o){return ir(r,n,()=>ur.from(o))}static from(r){return r==null||r===ur.EMPTY?ur.EMPTY:r instanceof ur?r:typeof r=="string"?this.getOrCreateFromText(r):"isEmpty"in r&&r.isEmpty?ur.EMPTY:"md"in r?this.getOrCreateFromMarkdown(r.md):this.getOrCreateFromText(r.txt)}static EMPTY=new class extends ur{isEmpty=!0;nonEmpty=!1;isMarkdown=!1;$source=null;constructor(){super({txt:Is})}get text(){return null}get md(){return null}get html(){return null}};$source;isEmpty;nonEmpty;isMarkdown;constructor(r){this.isMarkdown=!1,typeof r=="string"?(this.$source={txt:r},this.isEmpty=r.trim()===Is):(this.$source=r,this.isEmpty=!0,"md"in r?(this.isEmpty=r.md===Is,this.isMarkdown=!0):this.isEmpty=r.txt===Is),this.nonEmpty=!this.isEmpty}get text(){if(this.isEmpty||this.$source===null)return Is;const r=this.$source;return"txt"in r?r.txt:ir(this,hke,()=>n2e(r.md))}get md(){if(this.isEmpty||this.$source===null)return Is;const r=this.$source;if("md"in r)return r.md;if("txt"in r)return r.txt;Xo(r)}get html(){if(this.isEmpty||this.$source===null)return Is;const r=this.$source;return"txt"in r?r.txt:ir(this,fke,()=>r2e(r.md))}equals(r){return this===r?!0:r instanceof ur?this.isEmpty&&r.isEmpty?!0:this.isEmpty!==r.isEmpty||this.isMarkdown!==r.isMarkdown?!1:this.isMarkdown?this.$source?.md===r.$source?.md:this.$source?.txt===r.$source?.txt:!1}}var h1;(e=>{function r(c){return"model"in c&&!("project"in c)}e.isElementRef=r;function n(c){return"project"in c&&"model"in c}e.isImportRef=n;function o(c){if(Uc(c))throw new Error(`Expected FqnRef, got: "${c}"`);if(n(c))return PO(c.project,c.model);if(r(c))return c.model;throw new Error("Expected FqnRef.ModelRef or FqnRef.ImportRef")}e.flatten=o;function a(c){return r(c)||n(c)}e.isModelRef=a;function i(c){return"deployment"in c&&"element"in c}e.isInsideInstanceRef=i;function l(c){return"deployment"in c&&!("element"in c)}e.isDeploymentElementRef=l;function s(c){return l(c)||i(c)}e.isDeploymentRef=s})(h1||(h1={}));var ko;(e=>{function r({x:u,y:p,width:f,height:g}){return{x:u+f/2,y:p+g/2}}e.center=r;function n({x:u,y:p,width:f,height:g}){return[{x:u,y:p},{x:u+f,y:p},{x:u+f,y:p+g},{x:u,y:p+g}]}e.toPoints=n;function o(u){const{x1:p,y1:f,x2:g,y2:v}=d8.fromPoints(u);return{x:p,y:f,width:g-p,height:v-f}}e.fromPoints=o;function a(...u){if(He(Il(u,1),"No boxes provided"),u.length===1)return u[0];let p=u[0].x,f=u[0].y,g=u[0].x+u[0].width,v=u[0].y+u[0].height;for(let w=1;w=p.x+p.width&&u.y+u.height>=p.y+p.height}e.includes=d})(ko||(ko={}));var d8;(e=>{function r({x1:l,y1:s,x2:c,y2:d}){return{x:(l+c)/2,y:(s+d)/2}}e.center=r;function n(l){He(l.length>0,"At least one point is required");let s=1/0,c=1/0,d=-1/0,u=-1/0;for(const[p,f]of l)s=Math.min(s,p),c=Math.min(c,f),d=Math.max(d,p),u=Math.max(u,f);return{x1:s,y1:c,x2:d,y2:u}}e.fromPoints=n;function o(...l){He(l.length>0,"No boxes provided");let s=1/0,c=1/0,d=-1/0,u=-1/0;for(const p of l)s=Math.min(s,p.x1),c=Math.min(c,p.y1),d=Math.max(d,p.x2),u=Math.max(u,p.y2);return{x1:s,y1:c,x2:d,y2:u}}e.merge=o;function a(l){return{x:l.x1,y:l.y1,width:l.x2-l.x1,height:l.y2-l.y1}}e.toBBox=a;function i(l,s){return l===s?!0:l.x1<=s.x1&&l.y1<=s.y1&&l.x2>=s.x2&&l.y2>=s.y2}e.includes=i})(d8||(d8={}));class ba{constructor(r,n){this.x=r,this.y=n}static create(...r){return r.length===2?new ba(r[0],r[1]):new ba(r[0].x,r[0].y)}static add(r,n){return{x:r.x+n.x,y:r.y+n.y}}static subtract(r,n){return{x:r.x-n.x,y:r.y-n.y}}static multiply(r,n){return{x:r.x*n,y:r.y*n}}static divide(r,n){return{x:r.x/n,y:r.y/n}}static dot(r,n){return r.x*n.x+r.y*n.y}add(r){return new ba(this.x+r.x,this.y+r.y)}subtract(r){return new ba(this.x-r.x,this.y-r.y)}multiply(r){return new ba(this.x*r,this.y*r)}divide(r){return new ba(this.x/r,this.y/r)}dot(r){return this.x*r.x+this.y*r.y}cross(r){return this.x*r.y-this.y*r.x}length(){return this.x===0&&this.y===0?0:Math.sqrt(this.x**2+this.y**2)}normalize(){const r=this.length();return r===0?new ba(0,0):new ba(this.x/r,this.y/r)}round(){return new ba(Math.round(this.x),Math.round(this.y))}toObject(){return{x:this.x,y:this.y}}}function Qr(...e){return e.length===1&&e[0]instanceof ba?e[0]:e.length===2?new ba(e[0],e[1]):new ba(e[0].x,e[0].y)}function u8(e){return u1(e)&&e.includes(".")?e.slice(0,e.indexOf(".")+1):null}function WO(e){const r=typeof e=="string"?e:e.color;return r.startsWith("#")||r.startsWith("rgb")}function p8(...e){return io(mke,e)}function mke(e,r){let n=[...e];return n.sort(r),n}const gke=["tomato","grass","blue","ruby","orange","indigo","pink","teal","purple","amber","crimson","red","lime","yellow","violet"];function yke(e,r,n){let o=e.get(r);return o||(o=n(r),e.set(r,o)),o}function vke(e){let r=5381;const n=e.length;He(n>0,"stringHash: empty string");for(let o=0;o>>0).toString(36)}function f1(e,r){const n=r??e;He(Lb(n));function o(a){for(const i of a)if(n(i))return i}return r?o(e):o}function bke(e,r){const n=e;He(Lb(n));function*o(a){for(const i of a)yield n(i)}return o}function m1(e){return e?Array.from(e):r=>Array.from(r)}function xke(e){return e?new Set(e):r=>new Set(r)}function GO(e,r){const n=r??e;He(Lb(n));function o(a){for(const i of a)if(n(i))return!0;return!1}return r?o(e):o}function wke(e,r){const n=e;He(n>=0,"Count must be a non-negative number");function*o(a){let i=0;for(const l of a){if(i>=n)break;yield l,i++}}return a=>o(a)}function kke(e,r){let n=Math.ceil(e),o=Math.floor(r);if(o{setTimeout(()=>{n(_ke)},r??100)})}function Xb(e){const r=Wc([...e]),n=new Set(r),o=new Map(r.map(l=>[l._literalId,l])),a=new Ln(()=>null),i=r.reduce((l,s,c,d)=>(l.set(s,d.slice(c+1).filter(aP(s)).map(u=>(n.delete(u),u)).reduce((u,p)=>(u.some(Yn(p))||(u.push(p),a.set(p,s)),u),[])),l),new Ln(()=>[]));return{sorted:r,byId:l=>mt(o.get(l),`Element not found by id: ${l}`),root:n,parent:l=>a.get(l),children:l=>i.get(l),flatten:()=>new Set([...n,...r.reduce((l,s)=>{const c=i.get(s);return c.length===0?(l.push(s),l):(c.length>1&&l.push(...c),l)},[])])}}const h8=(e,r)=>e.size>2&&r.size!==e.size?new Set(Wc([...Xb(e).flatten(),...r])):e.size>1?new Set(Wc([...e])):e;function XO(e,r,n){const o=c=>r.has(c);let a=new Set([e]);const i={incomers:new Set,subjects:new Set([e]),outgoers:new Set};let l=new Set(n.incoming.flatMap(c=>{if(i.subjects.add(c.target),i.incomers.add(c.source),a.add(c.target),c.target!==e){let p=c.target.parent;for(;p&&p!==e;)a.add(p),p=p.parent}let d=c.source;const u=[];for(;u.push(d),!(o(d)||!d.parent);)d=d.parent;return u})),s=new Set(n.outgoing.flatMap(c=>{if(i.subjects.add(c.source),i.outgoers.add(c.target),a.add(c.source),c.source!==e){let p=c.source.parent;for(;p&&p!==e;)a.add(p),p=p.parent}let d=c.target;const u=[];for(;u.push(d),!(o(d)||!d.parent);)d=d.parent;return u}));return{incomers:h8(l,i.incomers),incoming:new Set(n.incoming),subjects:h8(a,i.subjects),outgoing:new Set(n.outgoing),outgoers:h8(s,i.outgoers)}}function ZO(e,r,n,o="global"){const a=n?r.findView(n):null;if(o==="view")return He(a,'Scope view id is required when scope is "view"'),Ske(e,a,r);const i=r.element(e),l=xke(i.ascendingSiblings());return XO(i,l,{incoming:[...i.incoming()],outgoing:[...i.outgoing()]})}function Ske(e,r,n){const o=n.element(e);let a={incoming:m1(Bs(o.incoming(),s=>r.includesRelation(s.id))),outgoing:m1(Bs(o.outgoing(),s=>r.includesRelation(s.id)))};const i=aP(o),l=new Set([...o.ascendingSiblings(),...Ns(r.elements(),bke(s=>s.element),Bs(s=>s!==o&&i(s)))]);return XO(o,l,a)}var KO;(e=>{e.isInside=r=>n=>Yn(r,n.source.id)&&Yn(r,n.target.id),e.isDirectedBetween=(r,n)=>o=>(o.source.id===r||Yn(r,o.source.id))&&(o.target.id===n||Yn(n,o.target.id)),e.isAnyBetween=(r,n)=>{const o=(0,e.isDirectedBetween)(r,n),a=(0,e.isDirectedBetween)(n,r);return i=>o(i)||a(i)},e.isIncoming=r=>n=>(n.target.id===r||Yn(r,n.target.id))&&!Yn(r,n.source.id),e.isOutgoing=r=>n=>(n.source.id===r||Yn(r,n.source.id))&&!Yn(r,n.target.id),e.isAnyInOut=r=>{const n=(0,e.isIncoming)(r),o=(0,e.isOutgoing)(r);return a=>n(a)||o(a)}})(KO||(KO={}));const Eke=Symbol.for("nodejs.util.inspect.custom");function g1(e){return e===""||e===void 0?!0:Array.isArray(e)?e.length===0:Object.keys(e).length===0}function f8(...e){return io(Cke,e)}function Cke(e,r){if(e===r||Object.is(e,r))return!0;if(typeof e!="object"||!e||typeof r!="object"||!r)return!1;if(e instanceof Map&&r instanceof Map)return $ke(e,r);if(e instanceof Set&&r instanceof Set)return zke(e,r);let n=Object.keys(e);if(n.length!==Object.keys(r).length)return!1;for(let o of n){if(!Object.hasOwn(r,o))return!1;let{[o]:a}=e,{[o]:i}=r;if(a!==i||!Object.is(a,i))return!1}return!0}function $ke(e,r){if(e.size!==r.size)return!1;for(let[n,o]of e){let a=r.get(n);if(o!==a||!Object.is(o,a))return!1}return!0}function zke(e,r){if(e.size!==r.size)return!1;for(let n of e)if(!r.has(n))return!1;return!0}class QO{Aux;get style(){return ir(this,"style",()=>p1({shape:this.$model.$styles.defaults.shape,color:this.$model.$styles.defaults.color,border:this.$model.$styles.defaults.border,opacity:this.$model.$styles.defaults.opacity,size:this.$model.$styles.defaults.size,padding:this.$model.$styles.defaults.padding,textSize:this.$model.$styles.defaults.text,...this.$node.style}))}get name(){return qg(this.id)}get shape(){return this.style.shape}get color(){return this.style.color}get summary(){return ur.memoize(this,"summary",Os(this.$node))}get description(){return ur.memoize(this,"description",Wh(this.$node))}get technology(){return this.$node.technology??null}get links(){return this.$node.links??[]}ancestors(){return this.$model.ancestors(this)}commonAncestor(r){const n=Ug(this.id,r.id);return n?this.$model.node(n):null}siblings(){return this.$model.siblings(this)}isSibling(r){return this.parent===r.parent}*ascendingSiblings(){yield*this.siblings();for(const r of this.ancestors())yield*r.siblings()}*descendingSiblings(){for(const r of[...this.ancestors()].reverse())yield*r.siblings();yield*this.siblings()}incoming(r="all"){return this.$model.incoming(this,r)}outgoing(r="all"){return this.$model.outgoing(this,r)}*incomers(r="all"){const n=new Set;for(const o of this.incoming(r))n.has(o.source.id)||(n.add(o.source.id),yield o.source)}*outgoers(r="all"){const n=new Set;for(const o of this.outgoing(r))n.has(o.target.id)||(n.add(o.target.id),yield o.target)}*views(){for(const r of this.$model.views())r._type==="deployment"&&r.includesDeployment(this.id)&&(yield r)}isDeploymentNode(){return!1}isInstance(){return!1}get allOutgoing(){return ir(this,Symbol.for("allOutgoing"),()=>Zc.from(new Set(this.outgoingModelRelationships()),new Set(this.outgoing())))}get allIncoming(){return ir(this,Symbol.for("allIncoming"),()=>Zc.from(new Set(this.incomingModelRelationships()),new Set(this.incoming())))}hasMetadata(){return!!this.$node.metadata&&!g1(this.$node.metadata)}getMetadata(r){return r?this.$node.metadata?.[r]:this.$node.metadata??{}}isTagged(r){return this.tags.includes(r)}}class JO extends QO{constructor(r,n){super(),this.$model=r,this.$node=n,this.id=n.id,this._literalId=n.id,this.title=n.title,this.hierarchyLevel=vb(n.id)}id;_literalId;title;hierarchyLevel;get parent(){return this.$model.parent(this)}get kind(){return this.$node.kind}get tags(){return ir(this,Symbol.for("tags"),()=>Ib([...this.$node.tags??[],...this.$model.$model.specification.deployments[this.kind]?.tags??[]]))}children(){return this.$model.children(this)}descendants(r="desc"){return this.$model.descendants(this,r)}isDeploymentNode(){return!0}*instances(){for(const r of this.descendants("desc"))r.isInstance()&&(yield r)}onlyOneInstance(){const r=this.children();if(r.size!==1)return null;const n=a1(r);return n?n.isInstance()?n:n.onlyOneInstance():null}_relationshipsFromInstances=null;relationshipsFromInstances(){if(this._relationshipsFromInstances)return this._relationshipsFromInstances;const{outgoing:r,incoming:n}=this._relationshipsFromInstances={outgoing:new Set,incoming:new Set};for(const o of this.instances()){for(const a of o.element.outgoing())r.add(a);for(const a of o.element.incoming())n.add(a)}return this._relationshipsFromInstances}outgoingModelRelationships(){return this.relationshipsFromInstances().outgoing.values()}incomingModelRelationships(){return this.relationshipsFromInstances().incoming.values()}internalModelRelationships(){const{outgoing:r,incoming:n}=this.relationshipsFromInstances();return qh(n,r)}}class eI extends QO{constructor(r,n,o){super(),this.$model=r,this.$instance=n,this.element=o,this.id=n.id,this._literalId=n.id,this.title=n.title??o.title,this.hierarchyLevel=vb(n.id)}id;_literalId;title;hierarchyLevel;get $node(){return this.$instance}get parent(){return mt(this.$model.parent(this),`Parent of ${this.id} not found`)}get style(){return ir(this,"style",()=>p1({shape:this.$model.$styles.defaults.shape,color:this.$model.$styles.defaults.color,border:this.$model.$styles.defaults.border,opacity:this.$model.$styles.defaults.opacity,size:this.$model.$styles.defaults.size,padding:this.$model.$styles.defaults.padding,textSize:this.$model.$styles.defaults.text,...this.element.$element.style,...this.$instance.style}))}get tags(){return ir(this,Symbol.for("tags"),()=>Ib([...this.$instance.tags??[],...this.element.tags]))}get kind(){return this.element.kind}get summary(){return ur.memoize(this,"summary",Os(this.$instance)??Os(this.element.$element))}get description(){return ur.memoize(this,"description",Wh(this.$instance)??Wh(this.element.$element))}get technology(){return this.$instance.technology??this.element.technology??null}get links(){return this.$instance.links??this.element.links}isInstance(){return!0}outgoingModelRelationships(){return this.element.outgoing()}incomingModelRelationships(){return this.element.incoming()}*views(){for(const r of this.$model.views())if(r._type==="deployment"){if(r.includesDeployment(this.id)){yield r;continue}r.includesDeployment(this.parent.id)&&this.parent.onlyOneInstance()&&(yield r)}}}class Rke{constructor(r,n){this.instance=r,this.element=n}get id(){return this.instance.id}get _literalId(){return this.instance.id}get style(){return ir(this,"style ",()=>({shape:this.element.shape,color:this.element.color,...this.element.$element.style}))}get shape(){return this.element.shape}get color(){return this.element.color}get title(){return this.element.title}get summary(){return this.element.summary}get description(){return this.element.description}get technology(){return this.element.technology}isDeploymentNode(){return!1}isInstance(){return!1}}class jke{constructor(r,n){this.$model=r,this.$relationship=n,this.source=r.deploymentRef(n.source),this.target=r.deploymentRef(n.target);const o=Ug(this.source.id,this.target.id);this.boundary=o?this.$model.node(o):null}boundary;source;target;get id(){return this.$relationship.id}get expression(){return`${this.source.id} -> ${this.target.id}`}get title(){return Za(this.$relationship.title)?this.$relationship.title:null}get technology(){return this.$relationship.technology??null}get hasSummary(){return!!this.$relationship.summary&&!!this.$relationship.description&&!f8(this.$relationship.summary,this.$relationship.description)}get summary(){return ur.memoize(this,"summary",Os(this.$relationship))}get description(){return ur.memoize(this,"description",Wh(this.$relationship))}get tags(){return this.$relationship.tags??[]}get kind(){return this.$relationship.kind??null}get navigateTo(){return this.$relationship.navigateTo?this.$model.$model.view(this.$relationship.navigateTo):null}get links(){return this.$relationship.links??[]}get color(){return this.$relationship.color??this.$model.$styles.defaults.relationship.color}get line(){return this.$relationship.line??this.$model.$styles.defaults.relationship.line}get head(){return this.$relationship.head??this.$model.$styles.defaults.relationship.arrow}get tail(){return this.$relationship.tail}*views(){for(const r of this.$model.views())r.includesRelation(this.id)&&(yield r)}isDeploymentRelation(){return!0}isModelRelation(){return!1}hasMetadata(){return!!this.$relationship.metadata&&!g1(this.$relationship.metadata)}getMetadata(r){return r?this.$relationship.metadata?.[r]:this.$relationship.metadata??{}}isTagged(r){return this.tags.includes(r)}}class Zc{constructor(r=new Set,n=new Set){this.model=r,this.deployment=n}static empty(){return new Zc}static from(r,n){return new Zc(new Set(r),new Set(n))}get isEmpty(){return this.model.size===0&&this.deployment.size===0}get nonEmpty(){return this.model.size>0||this.deployment.size>0}get size(){return this.model.size+this.deployment.size}intersect(r){return Zc.from(qh(this.model,r.model),qh(this.deployment,r.deployment))}difference(r){return Zc.from(H_(this.model,r.model),H_(this.deployment,r.deployment))}union(r){return Zc.from(q_(this.model,r.model),q_(this.deployment,r.deployment))}}function tI(e,r){return n=>e.source===n.source&&e.target===n.target}function m8(e,r,n="directed"){if(e===r)return[];if(oP(e,r))return[];const o=qh(e.allOutgoing,r.allIncoming),a=o.size>0?new Ka(e,r,o):null;if(n==="directed")return a?[a]:[];const i=qh(e.allIncoming,r.allOutgoing),l=i.size>0?new Ka(r,e,i):null;return a&&l?[a,l]:a?[a]:l?[l]:[]}function rI(e,r,n="both"){if(e.allIncoming.size===0&&e.allOutgoing.size===0)return[];const o=[],a=[];for(const i of r)if(e!==i)for(const l of m8(e,i,n))l.source===e?o.push(l):a.push(l);return[...o,...a]}function Tke(e){return[...e].reduce((r,n,o,a)=>(o===a.length-1||r.push(...rI(n,a.slice(o+1),"both")),r),[])}const Ake={__proto__:null,findConnection:m8,findConnectionsBetween:rI,findConnectionsWithin:Tke};class Ka{constructor(r,n,o=new Set){this.source=r,this.target=n,this.relations=o,this.id=vke(`model:${r.id}:${n.id}`)}id;_boundary;get boundary(){return this._boundary??=this.source.commonAncestor(this.target)}get expression(){return`${this.source.id} -> ${this.target.id}`}get isDirect(){return this.nonEmpty()&&!this.isImplicit}get isImplicit(){return this.nonEmpty()&&GO(this.relations,pO(tI(this)))}get directRelations(){return new Set(Bs(this.relations,tI(this)))}nonEmpty(){return this.relations.size>0}mergeWith(r){return He(this.source.id===r.source.id,"Cannot merge connections with different sources"),He(this.target.id===r.target.id,"Cannot merge connections with different targets"),new Ka(this.source,this.target,q_(this.relations,r.relations))}difference(r){return new Ka(this.source,this.target,H_(this.relations,r.relations))}intersect(r){return He(r instanceof Ka,"Cannot intersect connection with different type"),new Ka(this.source,this.target,qh(this.relations,r.relations))}equals(r){He(r instanceof Ka,"Cannot merge connection with different type");const n=r;return this.id===n.id&&this.source.id===n.source.id&&this.target.id===n.target.id&&C2e(this.relations,n.relations)}update(r){return new Ka(this.source,this.target,r)}[Eke](r,n,o){const a=this.toString();return Object.defineProperty(a,"constructor",{value:Ka,enumerable:!1}),a}toString(){return[this.expression,this.relations.size?" relations:":" relations: [ ]",...[...this.relations].map(r=>" "+r.expression)].join(` +`)}reversed(r=!1){if(!r)return new Ka(this.target,this.source);const[n]=m8(this.target,this.source,"directed");return n??new Ka(this.target,this.source,new Set)}}function Dke(e){if(e==null||e==="")return!0;if(typeof e!="object")return!1;if("length"in e&&typeof e.length=="number")return e.length===0;if("size"in e&&typeof e.size=="number")return e.size===0;for(let r in e)return!1;return Object.getOwnPropertySymbols(e).length===0}function Mke(...e){return io(Nke,e)}const Nke=e=>e.at(-1);function nI(e,r,n){return typeof r=="number"||r===void 0?o=>o.split(e,r):e.split(r,n)}function Zb(...e){return io(Object.values,e)}class Kb{constructor(r,n){this.$model=r,this.$element=n,this.id=this.$element.id,this._literalId=this.$element.id;const[o,a]=lke(this.id);o?(this.imported={from:o,fqn:a},this.hierarchyLevel=vb(a)):(this.imported=null,this.hierarchyLevel=vb(this.id))}Aux;id;_literalId;hierarchyLevel;imported;get name(){return qg(this.id)}get parent(){return this.$model.parent(this)}get kind(){return this.$element.kind}get shape(){return this.style.shape}get color(){return this.style.color}get icon(){return this.style.icon??null}get tags(){return ir(this,Symbol.for("tags"),()=>Ib([...this.$element.tags??[],...this.$model.specification.elements[this.$element.kind]?.tags??[]]))}get title(){return this.$element.title}get hasSummary(){return!!this.$element.summary&&!!this.$element.description&&!f8(this.$element.summary,this.$element.description)}get summary(){return ur.memoize(this,"summary",Os(this.$element))}get description(){return ur.memoize(this,"description",Wh(this.$element))}get technology(){return this.$element.technology??null}get links(){return this.$element.links??[]}get defaultView(){return ir(this,Symbol.for("defaultView"),()=>a1(this.scopedViews())??null)}get isRoot(){return this.parent===null}get style(){return ir(this,"style",()=>p1({shape:this.$model.$styles.defaults.shape,color:this.$model.$styles.defaults.color,border:this.$model.$styles.defaults.border,opacity:this.$model.$styles.defaults.opacity,size:this.$model.$styles.defaults.size,padding:this.$model.$styles.defaults.padding,textSize:this.$model.$styles.defaults.text,...this.$element.style}))}isAncestorOf(r){return Yn(this,r)}isDescendantOf(r){return Yn(r,this)}ancestors(){return this.$model.ancestors(this)}commonAncestor(r){const n=Ug(this.id,r.id);return n?this.$model.element(n):null}children(){return this.$model.children(this)}descendants(r){return r?iP([...this.$model.descendants(this)],r)[Symbol.iterator]():this.$model.descendants(this)}siblings(){return this.$model.siblings(this)}*ascendingSiblings(){yield*this.siblings();for(const r of this.ancestors())yield*r.siblings()}*descendingSiblings(){for(const r of[...this.ancestors()].reverse())yield*r.siblings();yield*this.siblings()}incoming(r="all"){return this.$model.incoming(this,r)}*incomers(r="all"){const n=new Set;for(const o of this.incoming(r))n.has(o.source.id)||(n.add(o.source.id),yield o.source)}outgoing(r="all"){return this.$model.outgoing(this,r)}*outgoers(r="all"){const n=new Set;for(const o of this.outgoing(r))n.has(o.target.id)||(n.add(o.target.id),yield o.target)}get allOutgoing(){return ir(this,Symbol.for("allOutgoing"),()=>new Set(this.outgoing()))}get allIncoming(){return ir(this,Symbol.for("allIncoming"),()=>new Set(this.incoming()))}views(){return ir(this,Symbol.for("views"),()=>{const r=new Set;for(const n of this.$model.views())n.includesElement(this.id)&&r.add(n);return r})}scopedViews(){return ir(this,Symbol.for("scopedViews"),()=>{const r=new Set;for(const n of this.$model.views())n.isScopedElementView()&&n.viewOf.id===this.id&&r.add(n);return r})}isDeployed(){return Za(a1(this.deployments()))}deployments(){return this.$model.deployment.instancesOf(this)}hasMetadata(){return!!this.$element.metadata&&!g1(this.$element.metadata)}getMetadata(r){return r?this.$element.metadata?.[r]:this.$element.metadata??{}}isTagged(r){return this.tags.includes(r)}}const yr=e=>typeof e=="string"?e:e.id,xa="/",g8=e=>{if(He(!e.includes(` +`),"View title cannot contain newlines"),e.includes(xa)){const r=e.split(xa).map(n=>n.trim()).filter(n=>n.length>0);return Il(r,1)?r:[""]}return[e.trim()]},Qb=e=>g8(e).join(xa),Pke=e=>{const r=g8(e);return Il(r,2)?r.slice(0,-1).join(xa):null},y8=e=>e.includes(xa)?g8(e).pop()??e:e.trim();class Bke{constructor(r){this.$model=r;const n=this.$deployments=r.$data.deployments,o=Zb(n.elements);for(const a of Wc(o)){const i=this.addElement(a);for(const l of i.tags)this.#c.get(l).add(i);i.isInstance()&&this.#r.get(i.element.id).add(i)}for(const a of Zb(n.relations)){const i=this.addRelation(a);for(const l of i.tags)this.#c.get(l).add(i)}}#e=new Map;#i=new Map;#t=new Ln(()=>new Set);#r=new Ln(()=>new Set);#l=new Set;#n=new Map;#s=new Ln(()=>new Set);#a=new Ln(()=>new Set);#o=new Ln(()=>new Set);#c=new Ln(()=>new Set);#d=new Map;$deployments;get $styles(){return this.$model.$styles}element(r){if(r instanceof JO||r instanceof eI)return r;const n=yr(r);return mt(this.#e.get(n),`Element ${n} not found`)}findElement(r){return this.#e.get(r)??null}node(r){const n=this.element(r);return He(n.isDeploymentNode(),`Element ${n.id} is not a deployment node`),n}findNode(r){const n=this.findElement(r);return n?(He(n.isDeploymentNode(),`Element ${n?.id} is not a deployment node`),n):null}instance(r){const n=this.element(r);return He(n.isInstance(),`Element ${n.id} is not a deployed instance`),n}findInstance(r){const n=this.findElement(r);return n?(He(n.isInstance(),`Element ${n?.id} is not a deployed instance`),n):null}roots(){return this.#l.values()}elements(){return this.#e.values()}*nodes(){for(const r of this.#e.values())r.isDeploymentNode()&&(yield r)}*nodesOfKind(r){for(const n of this.#e.values())n.isDeploymentNode()&&n.kind===r&&(yield n)}*instances(){for(const r of this.#e.values())r.isInstance()&&(yield r)}*instancesOf(r){const n=yr(r),o=this.#r.get(n);o&&(yield*o)}deploymentRef(r){if(h1.isInsideInstanceRef(r)){const{deployment:n,element:o}=r;return yke(this.#d,`${n}@${o}`,()=>new Rke(this.instance(n),this.$model.element(o)))}return this.element(r.deployment)}relationships(){return this.#n.values()}relationship(r){return mt(this.#n.get(yr(r)),`DeploymentRelationModel ${r} not found`)}findRelationship(r){return this.#n.get(r)??null}*views(){for(const r of this.$model.views())r.isDeploymentView()&&(yield r)}parent(r){const n=yr(r);return this.#i.get(n)||null}children(r){const n=yr(r);return this.#t.get(n)}*siblings(r){const n=yr(r),o=this.parent(r)?.children()??this.roots();for(const a of o)a.id!==n&&(yield a)}*ancestors(r){let n=yr(r),o;for(;o=this.#i.get(n);)yield o,n=o.id}*descendants(r,n="desc"){for(const o of this.children(r))n==="asc"?(yield o,yield*this.descendants(o.id)):(yield*this.descendants(o.id),yield o)}*incoming(r,n="all"){const o=yr(r);for(const a of this.#s.get(o))switch(!0){case n==="all":case(n==="direct"&&a.target.id===o):case(n==="to-descendants"&&a.target.id!==o):yield a;break}}*outgoing(r,n="all"){const o=yr(r);for(const a of this.#a.get(o))switch(!0){case n==="all":case(n==="direct"&&a.source.id===o):case(n==="from-descendants"&&a.source.id!==o):yield a;break}}addElement(r){if(this.#e.has(r.id))throw new Error(`Element ${r.id} already exists`);const n=p2e(r)?new JO(this,Object.freeze(r)):new eI(this,Object.freeze(r),this.$model.element(r.element));this.#e.set(n.id,n);const o=yb(n.id);return o?(He(this.#e.has(o),`Parent ${o} of ${n.id} not found`),this.#i.set(n.id,this.node(o)),this.#t.get(o).add(n)):(He(n.isDeploymentNode(),`Root element ${n.id} is not a deployment node`),this.#l.add(n)),n}addRelation(r){if(this.#n.has(r.id))throw new Error(`Relation ${r.id} already exists`);const n=new jke(this,Object.freeze(r));this.#n.set(n.id,n),this.#s.get(n.target.id).add(n),this.#a.get(n.source.id).add(n);const o=n.boundary?.id??null;if(o)for(const a of[o,...ku(o)])this.#o.get(a).add(n);for(const a of ku(n.source.id)){if(a===o)break;this.#a.get(a).add(n)}for(const a of ku(n.target.id)){if(a===o)break;this.#s.get(a).add(n)}return n}}class oI{constructor(r,n){this.model=r,this.$relationship=n,this.source=r.element(h1.flatten(n.source)),this.target=r.element(h1.flatten(n.target));const o=Ug(this.source.id,this.target.id);this.boundary=o?this.model.element(o):null}source;target;boundary;get id(){return this.$relationship.id}get expression(){return`${this.source.id} -> ${this.target.id}`}get title(){return Za(this.$relationship.title)?this.$relationship.title:null}get technology(){return Za(this.$relationship.technology)?this.$relationship.technology:null}get hasSummary(){return!!this.$relationship.summary&&!!this.$relationship.description&&!f8(this.$relationship.summary,this.$relationship.description)}get summary(){return ur.memoize(this,"summary",Os(this.$relationship))}get description(){return ur.memoize(this,"description",Wh(this.$relationship))}get navigateTo(){return this.$relationship.navigateTo?this.model.view(this.$relationship.navigateTo):null}get tags(){return this.$relationship.tags??[]}get kind(){return this.$relationship.kind??null}get links(){return this.$relationship.links??[]}get color(){return this.$relationship.color??this.model.$styles.defaults.relationship.color}get line(){return this.$relationship.line??this.model.$styles.defaults.relationship.line}get head(){return this.$relationship.head??this.model.$styles.defaults.relationship.arrow}get tail(){return this.$relationship.tail}*views(){for(const r of this.model.views())r.includesRelation(this.id)&&(yield r)}isDeploymentRelation(){return!1}isModelRelation(){return!0}hasMetadata(){return!!this.$relationship.metadata&&!g1(this.$relationship.metadata)}getMetadata(r){return r?this.$relationship.metadata?.[r]:this.$relationship.metadata??{}}isTagged(r){return this.tags.includes(r)}}class Oke{constructor(r,n,o,a){this.source=o,this.target=a,this.$viewModel=r,this.$view=r.$view,this.$edge=n}Aux;$viewModel;$view;$edge;get id(){return this.$edge.id}get parent(){return this.$edge.parent?this.$viewModel.node(this.$edge.parent):null}get label(){return this.$edge.label??null}get description(){return ur.memoize(this,"description",this.$edge.description)}get technology(){return this.$edge.technology??null}hasParent(){return this.$edge.parent!==null}get tags(){return this.$edge.tags??[]}get stepNumber(){return this.isStep()?BO(this.id):null}get navigateTo(){return this.$edge.navigateTo?this.$viewModel.$model.view(this.$edge.navigateTo):null}get color(){return this.$edge.color}get line(){return this.$edge.line??this.$viewModel.$styles.defaults.relationship.line}get head(){return this.$edge.head??this.$viewModel.$styles.defaults.relationship.arrow}get tail(){return this.$edge.tail}isStep(){return u1(this.id)}*relationships(r){for(const n of this.$edge.relations)if(r){const o=this.$viewModel.$model.findRelationship(n,r);o&&(yield o)}else yield this.$viewModel.$model.relationship(n)}includesRelation(r){const n=typeof r=="string"?r:r.id;return this.$edge.relations.includes(n)}isTagged(r){return this.tags.includes(r)}}class Ike{Aux;$viewModel;$view;$node;constructor(r,n){this.$viewModel=r,this.$view=r.$view,this.$node=n}get id(){return this.$node.id}get title(){return this.$node.title}get kind(){return this.$node.kind}get description(){return ur.memoize(this,"description",this.$node.description)}get technology(){return this.$node.technology??null}get parent(){return this.$node.parent?this.$viewModel.node(this.$node.parent):null}get element(){const r=this.$node.modelRef;return r?this.$viewModel.$model.element(r):null}get deployment(){const r=this.$node.deploymentRef;return r?this.$viewModel.$model.deployment.element(r):null}get shape(){return this.$node.shape}get color(){return this.$node.color}get icon(){return this.$node.icon??null}get tags(){return this.$node.tags}get links(){return this.$node.links??[]}get navigateTo(){return this.$node.navigateTo?this.$viewModel.$model.view(this.$node.navigateTo):null}get style(){return this.$node.style}get x(){return"x"in this.$node?this.$node.x:void 0}get y(){return"y"in this.$node?this.$node.y:void 0}get width(){return"width"in this.$node?this.$node.width:void 0}get height(){return"height"in this.$node?this.$node.height:void 0}children(){return ir(this,"children",()=>new Set(this.$node.children.map(r=>this.$viewModel.node(r))))}*ancestors(){let r=this.parent;for(;r;)yield r,r=r.parent}*siblings(){const r=this.parent?.children()??this.$viewModel.roots();for(const n of r)n.id!==this.id&&(yield n)}*incoming(r="all"){for(const n of this.$node.inEdges){const o=this.$viewModel.edge(n);switch(!0){case r==="all":case(r==="direct"&&o.target.id===this.id):case(r==="to-descendants"&&o.target.id!==this.id):yield o;break}}}*incomers(r="all"){const n=new Set;for(const o of this.incoming(r))n.has(o.source.id)||(n.add(o.source.id),yield o.source)}*outgoing(r="all"){for(const n of this.$node.outEdges){const o=this.$viewModel.edge(n);switch(!0){case r==="all":case(r==="direct"&&o.source.id===this.id):case(r==="from-descendants"&&o.source.id!==this.id):yield o;break}}}*outgoers(r="all"){const n=new Set;for(const o of this.outgoing(r))n.has(o.target.id)||(n.add(o.target.id),yield o.target)}isLayouted(){return"width"in this.$node&&"height"in this.$node}hasChildren(){return this.$node.children.length>0}hasParent(){return this.$node.parent!==null}hasElement(){return Za(this.$node.modelRef)}hasDeployment(){return Za(this.$node.deploymentRef)}hasDeployedInstance(){return this.hasElement()&&this.hasDeployment()}isGroup(){return ake(this.$node)}isTagged(r){return this.tags.includes(r)}}class v8{Aux;#e;#i=new Set;#t=new Map;#r=new Map;#l=new Set;#n=new Set;#s=new Set;#a=new Ln(r=>new Set);#o;id;$model;title;folder;viewPath;constructor(r,n,o,a){this.$model=r,this.#e=o,this.id=o.id,this.folder=n,this.#o=a;for(const i of this.#e.nodes){const l=new Ike(this,Object.freeze(i));this.#t.set(i.id,l),i.parent||this.#i.add(l),i.deploymentRef&&this.#n.add(i.deploymentRef),i.modelRef&&this.#l.add(i.modelRef);for(const s of l.tags)this.#a.get(s).add(l)}for(const i of this.#e.edges){const l=new Oke(this,Object.freeze(i),this.node(i.source),this.node(i.target));for(const s of l.tags)this.#a.get(s).add(l);for(const s of i.relations)this.#s.add(s);this.#r.set(i.id,l)}this.title=o.title?y8(o.title):null,this.viewPath=o.title?Qb(o.title):o.id}get $styles(){return this.$model.$styles}get _type(){return this.#e[n1]}get stage(){return this.#e[$u]}get bounds(){if("bounds"in this.#e)return this.#e.bounds;if(this.#o)return this.#o.bounds;throw new Error("View is not layouted")}get titleOrId(){return this.title??this.viewOf?.title??this.id}get titleOrUntitled(){return this.title??"Untitled"}get breadcrumbs(){return ir(this,"breadcrumbs",()=>this.folder.isRoot?[this]:[...this.folder.breadcrumbs,this])}get description(){return ur.memoize(this,"description",this.#e.description)}get tags(){return this.#e.tags??[]}get links(){return this.#e.links??[]}get viewOf(){if(this.isElementView()){const r=this.#e.viewOf;return r?this.$model.element(r):null}return null}get mode(){return this.isDynamicView()?this.#e.variant??"diagram":null}get includedTags(){return[...this.#a.keys()]}get $view(){if(!this.isLayouted()||"drifts"in this.#e)return this.#e;const r=this.#o;return r?ir(this,"withDriftReasons",()=>oke(this.#e,r)):this.#e}get $layouted(){if(!this.isLayouted())throw new Error("View is not layouted");return this.$manual??this.#e}get hasManualLayout(){return this.#o!==void 0}get hasLayoutDrifts(){if(!this.isLayouted())return!1;const r=this.$manual;return!!r?.drifts&&r.drifts.length>0}get $manual(){if(!this.isLayouted())return null;const r=this.#o;return r?ir(this,"snapshotWithManualLayout",()=>NO(this.#e,r)):null}roots(){return this.#i.values()}*compounds(){for(const r of this.#t.values())r.hasChildren()&&(yield r)}node(r){const n=yr(r);return mt(this.#t.get(n),`Node ${n} not found in view ${this.#e.id}`)}findNode(r){return this.#t.get(yr(r))??null}findNodeWithElement(r){const n=yr(r);return this.#l.has(n)?f1(this.#t.values(),o=>o.hasElement()&&o.element.id===n)??null:null}nodes(){return this.#t.values()}edge(r){const n=yr(r);return mt(this.#r.get(n),`Edge ${n} not found in view ${this.#e.id}`)}findEdge(r){return this.#r.get(yr(r))??null}edges(){return this.#r.values()}*edgesWithRelation(r){for(const n of this.#r.values())n.includesRelation(r)&&(yield n)}*elements(){for(const r of this.#t.values())r.hasElement()&&(yield r)}isTagged(r){return this.tags.includes(r)}includesElement(r){return this.#l.has(yr(r))}includesDeployment(r){return this.#n.has(yr(r))}includesRelation(r){return this.#s.has(yr(r))}isComputed(){return this.#e[$u]==="computed"}isLayouted(){return this.#e[$u]==="layouted"}isDiagram(){return this.#e[$u]==="layouted"}isElementView(){return this.#e[n1]==="element"}isScopedElementView(){return this.#e[n1]==="element"&&Za(this.#e.viewOf)}isDeploymentView(){return this.#e[n1]==="deployment"}isDynamicView(){return this.#e[n1]==="dynamic"}}class Jb{$model;path;title;isRoot;parentPath;defaultViewId;constructor(r,n,o){this.$model=r,this.path=n.join("/"),this.isRoot=this.path==="",this.title=Mke(n),this.isRoot?this.parentPath=void 0:this.parentPath=n.slice(0,-1).join("/"),this.defaultViewId=o}get defaultView(){return this.defaultViewId?this.$model.view(this.defaultViewId):null}get breadcrumbs(){return He(!this.isRoot,"Root view folder has no breadcrumbs"),ir(this,"breadcrumbs",()=>{const r=this.parent;return r?r.isRoot?[r,this]:[...r.breadcrumbs,this]:[this]})}get parent(){return He(!this.isRoot,"Root view folder has no parent"),Dke(this.parentPath)?null:this.$model.viewFolder(this.parentPath)}get children(){return this.$model.viewFolderItems(this.path)}get folders(){return ir(this,"folders",()=>{const r=[];for(const n of this.children)n instanceof Jb&&r.push(n);return r})}get views(){return ir(this,"views",()=>{const r=[];for(const n of this.children)n instanceof v8&&r.push(n);return r})}}class Du{Aux;_elements=new Map;_parents=new Map;_children=new Ln(()=>new Set);_rootElements=new Set;_relations=new Map;_incoming=new Ln(()=>new Set);_outgoing=new Ln(()=>new Set);_internal=new Ln(()=>new Set);_views=new Map;_rootViewFolder;_viewFolders=new Map;_viewFolderItems=new Ln(()=>new Set);_allTags=new Ln(()=>new Set);static fromParsed(r){return new Du(r)}static create(r){return new Du(r)}static fromDump(r){const{_stage:n="layouted",projectId:o="unknown",project:a,globals:i,imports:l,deployments:s,views:c,relations:d,elements:u,specification:p}=r;return new Du({[$u]:n,projectId:o,project:a,globals:{predicates:i?.predicates??{},dynamicPredicates:i?.dynamicPredicates??{},styles:i?.styles??{}},imports:l??{},deployments:{elements:s?.elements??{},relations:s?.relations??{}},views:c??{},relations:d??{},elements:u??{},specification:p})}deployment;$data;constructor(r){this.$data=r;for(const[,n]of o1(r.elements)){const o=this.addElement(n);for(const a of o.tags)this._allTags.get(a).add(o)}for(const[n,o]of o1(r.imports??{}))for(const a of Wc(o)){const i=this.addImportedElement(n,a);for(const l of i.tags)this._allTags.get(l).add(i)}for(const n of Zb(r.relations)){const o=this.addRelation(n);for(const a of o.tags)this._allTags.get(a).add(o)}if(this.deployment=new Bke(this),hO(r,"computed")||hO(r,"layouted")){const n=nP(xa),o=Ns(Zb(r.views),Ob(i=>({view:i,path:Qb(i.title??i.id),folderPath:i.title&&Pke(i.title)||""})),p8((i,l)=>n(i.folderPath,l.folderPath))),a=i=>{let l=this._viewFolders.get(i);if(!l){const s=nI(i,xa);He(Il(s,1),`View group path "${i}" must have at least one element`);let c;i===""?c=o.find(d=>d.view.id==="index"):c=o.find(d=>d.path===i),l=new Jb(this,s,c?.view.id),this._viewFolders.set(i,l)}return l};this._rootViewFolder=a("");for(const{folderPath:i}of o)this._viewFolders.has(i)||nI(i,xa).reduce((l,s)=>{const c=l.join(xa),d=g1(c)?s:c+xa+s,u=a(d);return this._viewFolderItems.get(c).add(u),l.push(s),l},[]);for(const{view:i,folderPath:l}of o){const s=new v8(this,a(l),i,r.manualLayouts?.[i.id]);this._viewFolderItems.get(l).add(s),this._views.set(i.id,s);for(const c of s.tags)this._allTags.get(c).add(s)}}else this._rootViewFolder=new Jb(this,[""],void 0),this._viewFolders.set(this._rootViewFolder.path,this._rootViewFolder)}get asParsed(){return this}get asComputed(){return this}get asLayouted(){return this}get $styles(){return ir(this,"styles",()=>JN.from(this.$data.project.styles,this.$data.specification.customColors?{theme:{colors:this.$data.specification.customColors}}:void 0))}isParsed(){return this.stage==="parsed"}isLayouted(){return this.stage==="layouted"}isComputed(){return this.stage==="computed"}get $model(){return this.$data}get stage(){return this.$data[$u]}get projectId(){return this.$data.projectId??"default"}get project(){return this.$data.project??ir(this,Symbol.for("project"),()=>({id:this.projectId}))}get specification(){return this.$data.specification}get globals(){return ir(this,Symbol.for("globals"),()=>({predicates:{...this.$data.globals?.predicates},dynamicPredicates:{...this.$data.globals?.dynamicPredicates},styles:{...this.$data.globals?.styles}}))}element(r){if(r instanceof Kb)return r;const n=yr(r);return mt(this._elements.get(n),`Element ${n} not found`)}findElement(r){return this._elements.get(yr(r))??null}roots(){return this._rootElements.values()}elements(){return this._elements.values()}relationships(){return this._relations.values()}relationship(r,n){if(n==="deployment")return this.deployment.relationship(r);const o=yr(r);let a=this._relations.get(o)??null;return a||n==="model"?mt(a,`Model relation ${o} not found`):mt(this.deployment.findRelationship(o),`No model/deployment relation ${o} not found`)}findRelationship(r,n){if(n==="deployment")return this.deployment.findRelationship(r);let o=this._relations.get(yr(r))??null;return o||n==="model"?o:this.deployment.findRelationship(r)}views(){return this._views.values()}view(r){const n=yr(r);return mt(this._views.get(n),`View ${n} not found`)}findView(r){return this._views.get(r)??null}findManualLayout(r){return"manualLayouts"in this.$data?this.$data.manualLayouts?.[r]??null:null}viewFolder(r){return mt(this._viewFolders.get(r),`View folder ${r} not found`)}get rootViewFolder(){return this._rootViewFolder}get hasViewFolders(){return this._viewFolders.size>1}viewFolderItems(r){return He(this._viewFolders.has(r),`View folder ${r} not found`),this._viewFolderItems.get(r)}parent(r){const n=yr(r);return this._parents.get(n)||null}children(r){const n=yr(r);return this._children.get(n)}*siblings(r){const n=yr(r),o=this._parents.get(n),a=o?this._children.get(o.id).values():this.roots();for(const i of a)i.id!==n&&(yield i)}*ancestors(r){let n=yr(r),o;for(;o=this._parents.get(n);)yield o,n=o.id}*descendants(r){for(const n of this.children(r))yield n,yield*this.descendants(n.id)}*incoming(r,n="all"){const o=yr(r);for(const a of this._incoming.get(o))switch(!0){case n==="all":case(n==="direct"&&a.target.id===o):case(n==="to-descendants"&&a.target.id!==o):yield a;break}}*outgoing(r,n="all"){const o=yr(r);for(const a of this._outgoing.get(o))switch(!0){case n==="all":case(n==="direct"&&a.source.id===o):case(n==="from-descendants"&&a.source.id!==o):yield a;break}}get tags(){return ir(this,"tags",()=>p8([...this._allTags.keys()],gb))}get tagsSortedByUsage(){return ir(this,"tagsSortedByUsage",()=>Ns([...this._allTags.entries()],Ob(([r,n])=>({tag:r,count:n.size,tagged:n})),p8((r,n)=>gb(r.tag,n.tag)),kO([Ru("count"),"desc"])))}findByTag(r,n){return Bs(this._allTags.get(r),o=>n==="elements"?o instanceof Kb:n==="views"?o instanceof v8:n==="relationships"?o instanceof oI:!0)}*elementsOfKind(r){for(const n of this._elements.values())n.kind===r&&(yield n)}*elementsWhere(r){const n=zu(r);for(const o of this._elements.values())n(o)&&(yield o)}*relationshipsWhere(r){const n=zu(r);for(const o of this._relations.values())n(o)&&(yield o)}addElement(r){if(this._elements.has(r.id))throw new Error(`Element ${r.id} already exists`);const n=new Kb(this,Object.freeze(r));this._elements.set(n.id,n);const o=yb(n.id);return o?(He(this._elements.has(o),`Parent ${o} of ${n.id} not found`),this._parents.set(n.id,this.element(o)),this._children.get(o).add(n)):this._rootElements.add(n),n}addImportedElement(r,n){He(!ike(n.id),"Imported element already has global FQN");const o=PO(r,n.id);if(this._elements.has(o))throw new Error(`Element ${o} already exists`);const a=new Kb(this,Object.freeze({...n,id:o}));this._elements.set(a.id,a);let i=yb(a.id);for(;i;){if(i.includes(".")&&this._elements.has(i))return this._parents.set(a.id,this.element(i)),this._children.get(i).add(a),a;i=yb(i)}return this._rootElements.add(a),a}addRelation(r){if(this._relations.has(r.id))throw new Error(`Relation ${r.id} already exists`);const n=new oI(this,Object.freeze(r)),{source:o,target:a}=n;this._relations.set(n.id,n),this._incoming.get(a.id).add(n),this._outgoing.get(o.id).add(n);const i=Ug(o.id,a.id);if(i)for(const l of[i,...ku(i)])this._internal.get(l).add(n);for(const l of ku(o.id)){if(l===i)break;this._outgoing.get(l).add(n)}for(const l of ku(a.id)){if(l===i)break;this._incoming.get(l).add(n)}return n}}(e=>{e.EMPTY=e.create({_stage:"computed",projectId:"default",project:{id:"default"},specification:{elements:{},relationships:{},deployments:{},tags:{}},globals:{predicates:{},dynamicPredicates:{},styles:{}},deployments:{elements:{},relations:{}},elements:{},relations:{},views:{},imports:{}})})(Du||(Du={}));function ex(e){return typeof e=="object"&&e!=null&&!Array.isArray(e)}var Lke=e=>typeof e=="object"&&e!==null;function Mu(e){return Object.fromEntries(Object.entries(e??{}).filter(([r,n])=>n!==void 0))}var Fke=e=>e==="base";function Vke(e){return e.slice().filter(r=>!Fke(r))}function aI(e){return String.fromCharCode(e+(e>25?39:97))}function qke(e){let r="",n;for(n=Math.abs(e);n>52;n=n/52|0)r=aI(n%52)+r;return aI(n%52)+r}function Hke(e,r){let n=r.length;for(;n;)e=e*33^r.charCodeAt(--n);return e}function Uke(e){return qke(Hke(5381,e)>>>0)}var iI=/\s*!(important)?/i;function Wke(e){return typeof e=="string"?iI.test(e):!1}function Gke(e){return typeof e=="string"?e.replace(iI,"").trim():e}function b8(e){return typeof e=="string"?e.replaceAll(" ","_"):e}var Zn=e=>{const r=new Map;return(...n)=>{const o=JSON.stringify(n);if(r.has(o))return r.get(o);const a=e(...n);return r.set(o,a),a}},Yke=new Set(["__proto__","constructor","prototype"]);function x8(...e){return e.reduce((r,n)=>(n&&Object.keys(n).forEach(o=>{if(Yke.has(o))return;const a=r[o],i=n[o];ex(a)&&ex(i)?r[o]=x8(a,i):r[o]=i}),r),{})}var Xke=e=>e!=null;function w8(e,r,n={}){const{stop:o,getKey:a}=n;function i(l,s=[]){if(Lke(l)){const c={};for(const[d,u]of Object.entries(l)){const p=a?.(d,u)??d,f=[...s,p];if(o?.(l,f))return r(l,s);const g=i(u,f);Xke(g)&&(c[p]=g)}return c}return r(l,s)}return i(e)}function Zke(e,r){return Array.isArray(e)?e.map(n=>r(n)):ex(e)?w8(e,n=>r(n)):r(e)}function Kke(e,r){return e.reduce((n,o,a)=>{const i=r[a];return o!=null&&(n[i]=o),n},{})}function lI(e,r,n=!0){const{utility:o,conditions:a}=r,{hasShorthand:i,resolveShorthand:l}=o;return w8(e,s=>Array.isArray(s)?Kke(s,a.breakpoints.keys):s,{stop:s=>Array.isArray(s),getKey:n?s=>i?l(s):s:void 0})}var Qke={shift:e=>e,finalize:e=>e,breakpoints:{keys:[]}},Jke=e=>typeof e=="string"?e.replaceAll(/[\n\s]+/g," "):e;function sI(e){const{utility:r,hash:n,conditions:o=Qke}=e,a=l=>[r.prefix,l].filter(Boolean).join("-"),i=(l,s)=>{let c;if(n){const d=[...o.finalize(l),s];c=a(r.toHash(d,Uke))}else c=[...o.finalize(l),a(s)].join(":");return c};return Zn(({base:l,...s}={})=>{const c=Object.assign(s,l),d=lI(c,e),u=new Set;return w8(d,(p,f)=>{if(p==null)return;const g=Wke(p),[v,...w]=o.shift(f),x=Vke(w),k=r.transform(v,Gke(Jke(p)));let C=i(x,k.className);g&&(C=`${C}!`),u.add(C)}),Array.from(u).join(" ")})}function e4e(...e){return e.flat().filter(r=>ex(r)&&Object.keys(Mu(r)).length>0)}function t4e(e){function r(a){const i=e4e(...a);return i.length===1?i:i.map(l=>lI(l,e))}function n(...a){return x8(...r(a))}function o(...a){return Object.assign({},...r(a))}return{mergeCss:Zn(n),assignCss:o}}var r4e=/([A-Z])/g,n4e=/^ms-/,o4e=Zn(e=>e.startsWith("--")?e:e.replace(r4e,"-$1").replace(n4e,"-ms-").toLowerCase()),a4e=["min","max","clamp","calc"],i4e=new RegExp(`^(${a4e.join("|")})\\(.*\\)`),l4e=e=>typeof e=="string"&&i4e.test(e),s4e="cm,mm,Q,in,pc,pt,px,em,ex,ch,rem,lh,rlh,vw,vh,vmin,vmax,vb,vi,svw,svh,lvw,lvh,dvw,dvh,cqw,cqh,cqi,cqb,cqmin,cqmax,%",c4e=`(?:${s4e.split(",").join("|")})`,d4e=new RegExp(`^[+-]?[0-9]*.?[0-9]+(?:[eE][+-]?[0-9]+)?${c4e}$`),u4e=e=>typeof e=="string"&&d4e.test(e),p4e=e=>typeof e=="string"&&/^var\(--.+\)$/.test(e),y1={map:Zke,isCssFunction:l4e,isCssVar:p4e,isCssUnit:u4e},v1=(e,r)=>{if(!e?.defaultValues)return r;const n=typeof e.defaultValues=="function"?e.defaultValues(r):e.defaultValues;return Object.assign({},n,Mu(r))},h4e=(e={})=>{const r=o=>({className:[e.className,o].filter(Boolean).join("__"),base:e.base?.[o]??{},variants:{},defaultVariants:e.defaultVariants??{},compoundVariants:e.compoundVariants?k8(e.compoundVariants,o):[]}),n=(e.slots??[]).map(o=>[o,r(o)]);for(const[o,a]of Object.entries(e.variants??{}))for(const[i,l]of Object.entries(a))n.forEach(([s,c])=>{c.variants[o]??={},c.variants[o][i]=l[s]??{}});return Object.fromEntries(n)},k8=(e,r)=>e.filter(n=>n.css[r]).map(n=>({...n,css:n.css[r]}));function Fn(e,...r){const n=Object.getOwnPropertyDescriptors(e),o=Object.keys(n),a=l=>{const s={};for(let c=0;ca(Array.isArray(l)?l:o.filter(l));return r.map(i).concat(a(o))}var _8=(...e)=>{const r=e.reduce((n,o)=>(o&&o.forEach(a=>n.add(a)),n),new Set([]));return Array.from(r)},cI=["htmlSize","htmlTranslate","htmlWidth","htmlHeight"];function f4e(e){return cI.includes(e)?e.replace("html","").toLowerCase():e}function S8(e){return Object.fromEntries(Object.entries(e).map(([r,n])=>[f4e(r),n]))}S8.keys=cI;const m4e="_hover,_focus,_focusWithin,_focusVisible,_disabled,_active,_visited,_target,_readOnly,_readWrite,_empty,_checked,_enabled,_expanded,_highlighted,_complete,_incomplete,_dragging,_before,_after,_firstLetter,_firstLine,_marker,_selection,_file,_backdrop,_first,_last,_only,_even,_odd,_firstOfType,_lastOfType,_onlyOfType,_peerFocus,_peerHover,_peerActive,_peerFocusWithin,_peerFocusVisible,_peerDisabled,_peerChecked,_peerInvalid,_peerExpanded,_peerPlaceholderShown,_groupFocus,_groupHover,_groupActive,_groupFocusWithin,_groupFocusVisible,_groupDisabled,_groupChecked,_groupExpanded,_groupInvalid,_indeterminate,_required,_valid,_invalid,_autofill,_inRange,_outOfRange,_placeholder,_placeholderShown,_pressed,_selected,_grabbed,_underValue,_overValue,_atValue,_default,_optional,_open,_closed,_fullscreen,_loading,_hidden,_current,_currentPage,_currentStep,_today,_unavailable,_rangeStart,_rangeEnd,_now,_topmost,_motionReduce,_motionSafe,_print,_landscape,_portrait,_dark,_light,_osDark,_osLight,_highContrast,_lessContrast,_moreContrast,_ltr,_rtl,_scrollbar,_scrollbarThumb,_scrollbarTrack,_horizontal,_vertical,_icon,_starting,_noscript,_invertedColors,_shapeSizeXs,_shapeSizeSm,_shapeSizeMd,_shapeSizeLg,_shapeSizeXl,_shapeRectangle,_shapePerson,_shapeBrowser,_shapeMobile,_shapeCylinder,_shapeStorage,_shapeQueue,_notDisabled,_reduceGraphics,_reduceGraphicsOnPan,_noReduceGraphics,_whenPanning,_smallZoom,_compoundTransparent,_edgeActive,_whenHovered,_whenSelectable,_whenSelected,_whenDimmed,_whenFocused,_p3,_srgb,_rec2020,xs,xsOnly,xsDown,sm,smOnly,smDown,md,mdOnly,mdDown,lg,lgOnly,lgDown,xl,xlOnly,xlDown,xsToSm,xsToMd,xsToLg,xsToXl,smToMd,smToLg,smToXl,mdToLg,mdToXl,lgToXl,@/xs,@/sm,@/md,@/lg,@likec4-root/xs,@likec4-root/sm,@likec4-root/md,@likec4-root/lg,@likec4-dialog/xs,@likec4-dialog/sm,@likec4-dialog/md,@likec4-dialog/lg,base",dI=new Set(m4e.split(",")),g4e=/^@|&|&$/;function uI(e){return dI.has(e)||g4e.test(e)}const y4e=/^_/,v4e=/&|@/;function pI(e){return e.map(r=>dI.has(r)?r.replace(y4e,""):v4e.test(r)?`[${b8(r.trim())}]`:r)}function hI(e){return e.sort((r,n)=>{const o=uI(r),a=uI(n);return o&&!a?1:!o&&a?-1:0})}const b4e="aspectRatio:asp,boxDecorationBreak:bx-db,zIndex:z,boxSizing:bx-s,objectPosition:obj-p,objectFit:obj-f,overscrollBehavior:ovs-b,overscrollBehaviorX:ovs-bx,overscrollBehaviorY:ovs-by,position:pos/1,top:top,left:left,inset:inset,insetInline:inset-x/insetX,insetBlock:inset-y/insetY,insetBlockEnd:inset-be,insetBlockStart:inset-bs,insetInlineEnd:inset-e/insetEnd/end,insetInlineStart:inset-s/insetStart/start,right:right,bottom:bottom,float:float,visibility:vis,display:d,hideFrom:hide,hideBelow:show,flexBasis:flex-b,flex:flex,flexDirection:flex-d/flexDir,flexGrow:flex-g,flexShrink:flex-sh,gridTemplateColumns:grid-tc,gridTemplateRows:grid-tr,gridColumn:grid-c,gridRow:grid-r,gridColumnStart:grid-cs,gridColumnEnd:grid-ce,gridAutoFlow:grid-af,gridAutoColumns:grid-ac,gridAutoRows:grid-ar,gap:gap,gridGap:grid-g,gridRowGap:grid-rg,gridColumnGap:grid-cg,rowGap:rg,columnGap:cg,justifyContent:jc,alignContent:ac,alignItems:ai,alignSelf:as,padding:p/1,paddingLeft:pl/1,paddingRight:pr/1,paddingTop:pt/1,paddingBottom:pb/1,paddingBlock:py/1/paddingY,paddingBlockEnd:pbe,paddingBlockStart:pbs,paddingInline:px/paddingX/1,paddingInlineEnd:pe/1/paddingEnd,paddingInlineStart:ps/1/paddingStart,marginLeft:ml/1,marginRight:mr/1,marginTop:mt/1,marginBottom:mb/1,margin:m/1,marginBlock:my/1/marginY,marginBlockEnd:mbe,marginBlockStart:mbs,marginInline:mx/1/marginX,marginInlineEnd:me/1/marginEnd,marginInlineStart:ms/1/marginStart,spaceX:sx,spaceY:sy,outlineWidth:ring-w/ringWidth,outlineColor:ring-c/ringColor,outline:ring/1,outlineOffset:ring-o/ringOffset,focusRing:focus-ring,focusVisibleRing:focus-v-ring,focusRingColor:focus-ring-c,focusRingOffset:focus-ring-o,focusRingWidth:focus-ring-w,focusRingStyle:focus-ring-s,divideX:dvd-x,divideY:dvd-y,divideColor:dvd-c,divideStyle:dvd-s,width:w/1,inlineSize:w-is,minWidth:min-w/minW,minInlineSize:min-w-is,maxWidth:max-w/maxW,maxInlineSize:max-w-is,height:h/1,blockSize:h-bs,minHeight:min-h/minH,minBlockSize:min-h-bs,maxHeight:max-h/maxH,maxBlockSize:max-b,boxSize:size,color:c,fontFamily:ff,fontSize:fs,fontSizeAdjust:fs-a,fontPalette:fp,fontKerning:fk,fontFeatureSettings:ff-s,fontWeight:fw,fontSmoothing:fsmt,fontVariant:fv,fontVariantAlternates:fv-alt,fontVariantCaps:fv-caps,fontVariationSettings:fv-s,fontVariantNumeric:fv-num,letterSpacing:ls,lineHeight:lh,textAlign:ta,textDecoration:td,textDecorationColor:td-c,textEmphasisColor:te-c,textDecorationStyle:td-s,textDecorationThickness:td-t,textUnderlineOffset:tu-o,textTransform:tt,textIndent:ti,textShadow:tsh,textShadowColor:tsh-c/textShadowColor,textOverflow:tov,verticalAlign:va,wordBreak:wb,textWrap:tw,truncate:trunc,lineClamp:lc,listStyleType:li-t,listStylePosition:li-pos,listStyleImage:li-img,listStyle:li-s,backgroundPosition:bg-p/bgPosition,backgroundPositionX:bg-p-x/bgPositionX,backgroundPositionY:bg-p-y/bgPositionY,backgroundAttachment:bg-a/bgAttachment,backgroundClip:bg-cp/bgClip,background:bg/1,backgroundColor:bg-c/bgColor,backgroundOrigin:bg-o/bgOrigin,backgroundImage:bg-i/bgImage,backgroundRepeat:bg-r/bgRepeat,backgroundBlendMode:bg-bm/bgBlendMode,backgroundSize:bg-s/bgSize,backgroundGradient:bg-grad/bgGradient,backgroundLinear:bg-linear/bgLinear,backgroundRadial:bg-radial/bgRadial,backgroundConic:bg-conic/bgConic,textGradient:txt-grad,gradientFromPosition:grad-from-pos,gradientToPosition:grad-to-pos,gradientFrom:grad-from,gradientTo:grad-to,gradientVia:grad-via,gradientViaPosition:grad-via-pos,borderRadius:bdr/rounded,borderTopLeftRadius:bdr-tl/roundedTopLeft,borderTopRightRadius:bdr-tr/roundedTopRight,borderBottomRightRadius:bdr-br/roundedBottomRight,borderBottomLeftRadius:bdr-bl/roundedBottomLeft,borderTopRadius:bdr-t/roundedTop,borderRightRadius:bdr-r/roundedRight,borderBottomRadius:bdr-b/roundedBottom,borderLeftRadius:bdr-l/roundedLeft,borderStartStartRadius:bdr-ss/roundedStartStart,borderStartEndRadius:bdr-se/roundedStartEnd,borderStartRadius:bdr-s/roundedStart,borderEndStartRadius:bdr-es/roundedEndStart,borderEndEndRadius:bdr-ee/roundedEndEnd,borderEndRadius:bdr-e/roundedEnd,border:bd,borderWidth:bd-w,borderTopWidth:bd-t-w,borderLeftWidth:bd-l-w,borderRightWidth:bd-r-w,borderBottomWidth:bd-b-w,borderBlockStartWidth:bd-bs-w,borderBlockEndWidth:bd-be-w,borderColor:bd-c,borderInline:bd-x/borderX,borderInlineWidth:bd-x-w/borderXWidth,borderInlineColor:bd-x-c/borderXColor,borderBlock:bd-y/borderY,borderBlockWidth:bd-y-w/borderYWidth,borderBlockColor:bd-y-c/borderYColor,borderLeft:bd-l,borderLeftColor:bd-l-c,borderInlineStart:bd-s/borderStart,borderInlineStartWidth:bd-s-w/borderStartWidth,borderInlineStartColor:bd-s-c/borderStartColor,borderRight:bd-r,borderRightColor:bd-r-c,borderInlineEnd:bd-e/borderEnd,borderInlineEndWidth:bd-e-w/borderEndWidth,borderInlineEndColor:bd-e-c/borderEndColor,borderTop:bd-t,borderTopColor:bd-t-c,borderBottom:bd-b,borderBottomColor:bd-b-c,borderBlockEnd:bd-be,borderBlockEndColor:bd-be-c,borderBlockStart:bd-bs,borderBlockStartColor:bd-bs-c,opacity:op,boxShadow:bx-sh/shadow,boxShadowColor:bx-sh-c/shadowColor,mixBlendMode:mix-bm,filter:filter,brightness:brightness,contrast:contrast,grayscale:grayscale,hueRotate:hue-rotate,invert:invert,saturate:saturate,sepia:sepia,dropShadow:drop-shadow,blur:blur,backdropFilter:bkdp,backdropBlur:bkdp-blur,backdropBrightness:bkdp-brightness,backdropContrast:bkdp-contrast,backdropGrayscale:bkdp-grayscale,backdropHueRotate:bkdp-hue-rotate,backdropInvert:bkdp-invert,backdropOpacity:bkdp-opacity,backdropSaturate:bkdp-saturate,backdropSepia:bkdp-sepia,borderCollapse:bd-cl,borderSpacing:bd-sp,borderSpacingX:bd-sx,borderSpacingY:bd-sy,tableLayout:tbl,transitionTimingFunction:trs-tmf,transitionDelay:trs-dly,transitionDuration:trs-dur,transitionProperty:trs-prop,transition:transition,animation:anim,animationName:anim-n,animationTimingFunction:anim-tmf,animationDuration:anim-dur,animationDelay:anim-dly,animationPlayState:anim-ps,animationComposition:anim-comp,animationFillMode:anim-fm,animationDirection:anim-dir,animationIterationCount:anim-ic,animationRange:anim-r,animationState:anim-s,animationRangeStart:anim-rs,animationRangeEnd:anim-re,animationTimeline:anim-tl,transformOrigin:trf-o,transformBox:trf-b,transformStyle:trf-s,transform:trf,rotate:rotate,rotateX:rotate-x,rotateY:rotate-y,rotateZ:rotate-z,scale:scale,scaleX:scale-x,scaleY:scale-y,translate:translate,translateX:translate-x/x,translateY:translate-y/y,translateZ:translate-z/z,accentColor:ac-c,caretColor:ca-c,scrollBehavior:scr-bhv,scrollbar:scr-bar,scrollbarColor:scr-bar-c,scrollbarGutter:scr-bar-g,scrollbarWidth:scr-bar-w,scrollMargin:scr-m,scrollMarginLeft:scr-ml,scrollMarginRight:scr-mr,scrollMarginTop:scr-mt,scrollMarginBottom:scr-mb,scrollMarginBlock:scr-my/scrollMarginY,scrollMarginBlockEnd:scr-mbe,scrollMarginBlockStart:scr-mbt,scrollMarginInline:scr-mx/scrollMarginX,scrollMarginInlineEnd:scr-me,scrollMarginInlineStart:scr-ms,scrollPadding:scr-p,scrollPaddingBlock:scr-py/scrollPaddingY,scrollPaddingBlockStart:scr-pbs,scrollPaddingBlockEnd:scr-pbe,scrollPaddingInline:scr-px/scrollPaddingX,scrollPaddingInlineEnd:scr-pe,scrollPaddingInlineStart:scr-ps,scrollPaddingLeft:scr-pl,scrollPaddingRight:scr-pr,scrollPaddingTop:scr-pt,scrollPaddingBottom:scr-pb,scrollSnapAlign:scr-sa,scrollSnapStop:scrs-s,scrollSnapType:scrs-t,scrollSnapStrictness:scrs-strt,scrollSnapMargin:scrs-m,scrollSnapMarginTop:scrs-mt,scrollSnapMarginBottom:scrs-mb,scrollSnapMarginLeft:scrs-ml,scrollSnapMarginRight:scrs-mr,scrollSnapCoordinate:scrs-c,scrollSnapDestination:scrs-d,scrollSnapPointsX:scrs-px,scrollSnapPointsY:scrs-py,scrollSnapTypeX:scrs-tx,scrollSnapTypeY:scrs-ty,scrollTimeline:scrtl,scrollTimelineAxis:scrtl-a,scrollTimelineName:scrtl-n,touchAction:tch-a,userSelect:us,overflow:ov,overflowWrap:ov-wrap,overflowX:ov-x,overflowY:ov-y,overflowAnchor:ov-a,overflowBlock:ov-b,overflowInline:ov-i,overflowClipBox:ovcp-bx,overflowClipMargin:ovcp-m,overscrollBehaviorBlock:ovs-bb,overscrollBehaviorInline:ovs-bi,fill:fill,stroke:stk,strokeWidth:stk-w,strokeDasharray:stk-dsh,strokeDashoffset:stk-do,strokeLinecap:stk-lc,strokeLinejoin:stk-lj,strokeMiterlimit:stk-ml,strokeOpacity:stk-op,srOnly:sr,debug:debug,appearance:ap,backfaceVisibility:bfv,clipPath:cp-path,hyphens:hy,mask:msk,maskImage:msk-i,maskSize:msk-s,textSizeAdjust:txt-adj,container:cq,containerName:cq-n,containerType:cq-t,cursor:cursor,textStyle:textStyle,layerStyle:layerStyle,animationStyle:animationStyle",fI=new Map,mI=new Map;b4e.split(",").forEach(e=>{const[r,n]=e.split(":"),[o,...a]=n.split("/");fI.set(r,o),a.length&&a.forEach(i=>{mI.set(i==="1"?o:i,r)})});const gI=e=>mI.get(e)||e,yI={conditions:{shift:hI,finalize:pI,breakpoints:{keys:["base","xs","sm","md","lg","xl"]}},utility:{transform:(e,r)=>{const n=gI(e);return{className:`${fI.get(n)||o4e(n)}_${b8(r)}`}},hasShorthand:!0,toHash:(e,r)=>r(e.join(":")),resolveShorthand:gI}},x4e=sI(yI),fe=(...e)=>x4e(Nu(...e));fe.raw=(...e)=>Nu(...e);const{mergeCss:Nu}=t4e(yI);function Ge(){let e="",r=0,n;for(;r({base:{},variants:{},defaultVariants:{},compoundVariants:[],...e});function b1(e){const{base:r,variants:n,defaultVariants:o,compoundVariants:a}=vI(e),i=f=>({...o,...Mu(f)});function l(f={}){const g=i(f);let v={...r};for(const[x,k]of Object.entries(g))n[x]?.[k]&&(v=Nu(v,n[x][k]));const w=E8(a,g);return Nu(v,w)}function s(f){const g=vI(f.config),v=_8(f.variantKeys,Object.keys(n));return b1({base:Nu(r,g.base),variants:Object.fromEntries(v.map(w=>[w,Nu(n[w],g.variants[w])])),defaultVariants:x8(o,g.defaultVariants),compoundVariants:[...a,...g.compoundVariants]})}function c(f){return fe(l(f))}const d=Object.keys(n);function u(f){return Fn(f,d)}const p=Object.fromEntries(Object.entries(n).map(([f,g])=>[f,Object.keys(g)]));return Object.assign(Zn(c),{__cva__:!0,variantMap:p,variantKeys:d,raw:l,config:e,merge:s,splitVariantProps:u,getVariantProps:i})}function E8(e,r){let n={};return e.forEach(o=>{Object.entries(o).every(([a,i])=>a==="css"?!0:(Array.isArray(i)?i:[i]).some(l=>r[a]===l))&&(n=Nu(n,o.css))}),n}function w4e(e,r,n,o){if(r.length>0&&typeof n?.[o]=="object")throw new Error(`[recipe:${e}:${o}] Conditions are not supported when using compound variants.`)}function k4e(e){const r=Object.entries(h4e(e)).map(([p,f])=>[p,b1(f)]),n=e.defaultVariants??{},o=r.reduce((p,[f,g])=>(e.className&&(p[f]=g.config.className),p),{});function a(p){const f=r.map(([g,v])=>[g,Ge(v(p),o[g])]);return Object.fromEntries(f)}function i(p){const f=r.map(([g,v])=>[g,v.raw(p)]);return Object.fromEntries(f)}const l=e.variants??{},s=Object.keys(l);function c(p){return Fn(p,s)}const d=p=>({...n,...Mu(p)}),u=Object.fromEntries(Object.entries(l).map(([p,f])=>[p,Object.keys(f)]));return Object.assign(Zn(a),{__cva__:!1,raw:i,config:e,variantMap:u,variantKeys:s,classNameMap:o,splitVariantProps:c,getVariantProps:d})}var _4e={outline:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},filled:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none"}};const wt=(e,r,n,o)=>{const a=S.forwardRef(({color:i="currentColor",size:l=24,stroke:s=2,title:c,className:d,children:u,...p},f)=>S.createElement("svg",{ref:f,..._4e[e],width:l,height:l,className:["tabler-icon",`tabler-icon-${r}`,d].join(" "),...e==="filled"?{fill:i}:{strokeWidth:s,stroke:i},...p},[c&&S.createElement("title",{key:"svg-title"},c),...o.map(([g,v])=>S.createElement(g,v)),...Array.isArray(u)?u:[u]]));return a.displayName=`${n}`,a},S4e=[["path",{d:"M12 6m-7 0a7 3 0 1 0 14 0a7 3 0 1 0 -14 0",key:"svg-0"}],["path",{d:"M5 6v12c0 1.657 3.134 3 7 3s7 -1.343 7 -3v-12",key:"svg-1"}]],bI=wt("outline","cylinder","Cylinder",S4e),E4e=[["path",{d:"M21 14.008v-5.018a1.98 1.98 0 0 0 -1 -1.717l-4 -2.008a2.016 2.016 0 0 0 -2 0l-10 5.008c-.619 .355 -1 1.01 -1 1.718v5.018c0 .709 .381 1.363 1 1.717l4 2.008a2.016 2.016 0 0 0 2 0l10 -5.008c.619 -.355 1 -1.01 1 -1.718z",key:"svg-0"}],["path",{d:"M9 21v-7.5",key:"svg-1"}],["path",{d:"M9 13.5l11.5 -5.5",key:"svg-2"}],["path",{d:"M3.5 11l5.5 2.5",key:"svg-3"}]],C4e=wt("outline","rectangular-prism","RectangularPrism",E4e),$4e=[["path",{d:"M3 15m0 1a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v2a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1z",key:"svg-0"}],["path",{d:"M10 15m0 1a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v2a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1z",key:"svg-1"}],["path",{d:"M17 15m0 1a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v2a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1z",key:"svg-2"}],["path",{d:"M5 11v-3a3 3 0 0 1 3 -3h8a3 3 0 0 1 3 3v3",key:"svg-3"}],["path",{d:"M16.5 8.5l2.5 2.5l2.5 -2.5",key:"svg-4"}]],z4e=wt("outline","reorder","Reorder",$4e),R4e=[["path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0",key:"svg-0"}],["path",{d:"M6 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2",key:"svg-1"}]],j4e=wt("outline","user","User",R4e),T4e=[["path",{d:"M6 5a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-8a2 2 0 0 1 -2 -2v-14z",key:"svg-0"}],["path",{d:"M11 4h2",key:"svg-1"}],["path",{d:"M12 17v.01",key:"svg-2"}]],A4e=wt("outline","device-mobile","DeviceMobile",T4e),D4e=[["path",{d:"M4 8h16",key:"svg-0"}],["path",{d:"M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z",key:"svg-1"}],["path",{d:"M8 4v4",key:"svg-2"}]],M4e=wt("outline","browser","Browser",D4e),C8=S.createContext(null);function N4e({value:e,children:r}){return S.useContext(C8)?y.jsx(y.Fragment,{children:r}):y.jsx(C8.Provider,{value:e,children:r})}function tx({element:e,className:r,style:n}){const o=S.useContext(C8);if(!e||!e.icon||e.icon==="none")return null;let a;return e.icon.startsWith("http://")||e.icon.startsWith("https://")?a=y.jsx("img",{src:e.icon,alt:e.title}):o&&(a=y.jsx(o,{node:e})),a?y.jsx("div",{className:Ge(r,"likec4-element-icon"),"data-likec4-icon":e.icon,style:n,children:a}):null}const P4e={browser:M4e,cylinder:bI,mobile:A4e,person:j4e,queue:z4e,rectangle:C4e,storage:bI};function B4e({element:e,className:r}){const n=y.jsx(tx,{element:e,className:r});if(n)return n;const o=P4e[e.shape];return y.jsx("div",{className:Ge(r,"likec4-shape-icon"),children:y.jsx(o,{})})}function Yh(e){const r=S.useRef(e);return r.current=e,S.useMemo(()=>Object.freeze({get current(){return r.current}}),[])}function xI(e){const r=Yh(e);S.useEffect(()=>()=>{r.current()},[])}function $8(e,r,n,o=0){const a=S.useRef(void 0),i=S.useRef(void 0),l=S.useRef(e),s=S.useRef(void 0),c=()=>{a.current&&(clearTimeout(a.current),a.current=void 0),i.current&&(clearTimeout(i.current),i.current=void 0)};return xI(c),S.useEffect(()=>{l.current=e},r),S.useMemo(()=>{const d=()=>{if(c(),!s.current)return;const p=s.current;s.current=void 0,l.current.apply(p.this,p.args)},u=function(...p){a.current&&clearTimeout(a.current),s.current={args:p,this:this},a.current=setTimeout(d,n),o>0&&!i.current&&(i.current=setTimeout(d,o))};return Object.defineProperties(u,{length:{value:e.length},name:{value:`${e.name||"anonymous"}__debounced__${n}`}}),u},[n,o,...r])}const O4e=()=>{},rx=typeof globalThis<"u"&&typeof navigator<"u"&&typeof document<"u";function I4e(e){const r=Yh(e),n=S.useRef(0),o=S.useCallback(()=>{rx&&n.current&&(cancelAnimationFrame(n.current),n.current=0)},[]);return xI(o),[S.useMemo(()=>{const a=(...i)=>{rx&&(o(),n.current=requestAnimationFrame(()=>{r.current(...i),n.current=0}))};return Object.defineProperties(a,{length:{value:e.length},name:{value:`${e.name||"anonymous"}__raf`}}),a},[]),o]}const L4e=(e,r)=>{if(e===r)return!0;if(e.length!==r.length)return!1;for(const[n,o]of e.entries())if(o!==r[n])return!1;return!0};function F4e(e,r,n=L4e,o=S.useEffect,...a){const i=S.useRef(void 0);(i.current===void 0||rx&&!n(i.current,r))&&(i.current=r),o(e,i.current,...a)}function wI(){const e=S.useRef(!0);return S.useEffect(()=>{e.current=!1},[]),e.current}const z8=rx?S.useLayoutEffect:S.useEffect;function V4e(e){S.useEffect(()=>{e()},[])}function kI(e,r){const[n,o]=I4e(e);S.useEffect(()=>(n(),o),r)}const q4e=e=>(e+1)%Number.MAX_SAFE_INTEGER;function H4e(){const[,e]=S.useState(0);return S.useCallback(()=>{e(q4e)},[])}function U4e(e,r){const n=wI();S.useEffect(n?O4e:e,r)}const W4e=e=>{e&&clearTimeout(e)};function nx(e,r){const n=Yh(e),o=Yh(r),a=S.useRef(null),i=S.useCallback(()=>{W4e(a.current)},[]),l=S.useCallback(()=>{o.current!==void 0&&(i(),a.current=setTimeout(()=>{n.current()},o.current))},[]);return S.useEffect(()=>(l(),i),[r]),[i,l]}const _I=(e,r,n)=>{const o=S.useRef(void 0);return(o.current===void 0||!n(o.current,r))&&(o.current=r),S.useMemo(e,o.current)};function dn(e){if(typeof e=="string"||typeof e=="number")return""+e;let r="";if(Array.isArray(e))for(let n=0,o;n{}};function ox(){for(var e=0,r=arguments.length,n={},o;e=0&&(o=n.slice(a+1),n=n.slice(0,a)),n&&!r.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:o}})}ax.prototype=ox.prototype={constructor:ax,on:function(e,r){var n=this._,o=Y4e(e+"",n),a,i=-1,l=o.length;if(arguments.length<2){for(;++i0)for(var n=new Array(a),o=0,a,i;o=0&&(r=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),EI.hasOwnProperty(r)?{space:EI[r],local:e}:e}function Z4e(e){return function(){var r=this.ownerDocument,n=this.namespaceURI;return n===R8&&r.documentElement.namespaceURI===R8?r.createElement(e):r.createElementNS(n,e)}}function K4e(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function CI(e){var r=ix(e);return(r.local?K4e:Z4e)(r)}function Q4e(){}function j8(e){return e==null?Q4e:function(){return this.querySelector(e)}}function J4e(e){typeof e!="function"&&(e=j8(e));for(var r=this._groups,n=r.length,o=new Array(n),a=0;a=_&&(_=C+1);!(z=x[_])&&++_=0;)(l=o[a])&&(i&&l.compareDocumentPosition(i)^4&&i.parentNode.insertBefore(l,i),i=l);return this}function S5e(e){e||(e=E5e);function r(p,f){return p&&f?e(p.__data__,f.__data__):!p-!f}for(var n=this._groups,o=n.length,a=new Array(o),i=0;ir?1:e>=r?0:NaN}function C5e(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function $5e(){return Array.from(this)}function z5e(){for(var e=this._groups,r=0,n=e.length;r1?this.each((r==null?I5e:typeof r=="function"?F5e:L5e)(e,r,n??"")):Xh(this.node(),e)}function Xh(e,r){return e.style.getPropertyValue(r)||TI(e).getComputedStyle(e,null).getPropertyValue(r)}function q5e(e){return function(){delete this[e]}}function H5e(e,r){return function(){this[e]=r}}function U5e(e,r){return function(){var n=r.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function W5e(e,r){return arguments.length>1?this.each((r==null?q5e:typeof r=="function"?U5e:H5e)(e,r)):this.node()[e]}function AI(e){return e.trim().split(/^|\s+/)}function T8(e){return e.classList||new DI(e)}function DI(e){this._node=e,this._names=AI(e.getAttribute("class")||"")}DI.prototype={add:function(e){var r=this._names.indexOf(e);r<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var r=this._names.indexOf(e);r>=0&&(this._names.splice(r,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function MI(e,r){for(var n=T8(e),o=-1,a=r.length;++o=0&&(n=r.slice(o+1),r=r.slice(0,o)),{type:r,name:n}})}function x6e(e){return function(){var r=this.__on;if(r){for(var n=0,o=-1,a=r.length,i;n()=>e;function D8(e,{sourceEvent:r,subject:n,target:o,identifier:a,active:i,x:l,y:s,dx:c,dy:d,dispatch:u}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:r,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:o,enumerable:!0,configurable:!0},identifier:{value:a,enumerable:!0,configurable:!0},active:{value:i,enumerable:!0,configurable:!0},x:{value:l,enumerable:!0,configurable:!0},y:{value:s,enumerable:!0,configurable:!0},dx:{value:c,enumerable:!0,configurable:!0},dy:{value:d,enumerable:!0,configurable:!0},_:{value:u}})}D8.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function j6e(e){return!e.ctrlKey&&!e.button}function T6e(){return this.parentNode}function A6e(e,r){return r??{x:e.x,y:e.y}}function D6e(){return navigator.maxTouchPoints||"ontouchstart"in this}function LI(){var e=j6e,r=T6e,n=A6e,o=D6e,a={},i=ox("start","drag","end"),l=0,s,c,d,u,p=0;function f($){$.on("mousedown.drag",g).filter(o).on("touchstart.drag",x).on("touchmove.drag",k,R6e).on("touchend.drag touchcancel.drag",C).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function g($,z){if(!(u||!e.call(this,$,z))){var j=_(this,r.call(this,$,z),$,z,"mouse");j&&(ka($.view).on("mousemove.drag",v,w1).on("mouseup.drag",w,w1),OI($.view),A8($),d=!1,s=$.clientX,c=$.clientY,j("start",$))}}function v($){if(Zh($),!d){var z=$.clientX-s,j=$.clientY-c;d=z*z+j*j>p}a.mouse("drag",$)}function w($){ka($.view).on("mousemove.drag mouseup.drag",null),II($.view,d),Zh($),a.mouse("end",$)}function x($,z){if(e.call(this,$,z)){var j=$.changedTouches,A=r.call(this,$,z),R=j.length,T,O;for(T=0;T>8&15|r>>4&240,r>>4&15|r&240,(r&15)<<4|r&15,1):n===8?dx(r>>24&255,r>>16&255,r>>8&255,(r&255)/255):n===4?dx(r>>12&15|r>>8&240,r>>8&15|r>>4&240,r>>4&15|r&240,((r&15)<<4|r&15)/255):null):(r=N6e.exec(e))?new Jo(r[1],r[2],r[3],1):(r=P6e.exec(e))?new Jo(r[1]*255/100,r[2]*255/100,r[3]*255/100,1):(r=B6e.exec(e))?dx(r[1],r[2],r[3],r[4]):(r=O6e.exec(e))?dx(r[1]*255/100,r[2]*255/100,r[3]*255/100,r[4]):(r=I6e.exec(e))?YI(r[1],r[2]/100,r[3]/100,1):(r=L6e.exec(e))?YI(r[1],r[2]/100,r[3]/100,r[4]):VI.hasOwnProperty(e)?UI(VI[e]):e==="transparent"?new Jo(NaN,NaN,NaN,0):null}function UI(e){return new Jo(e>>16&255,e>>8&255,e&255,1)}function dx(e,r,n,o){return o<=0&&(e=r=n=NaN),new Jo(e,r,n,o)}function q6e(e){return e instanceof k1||(e=Pu(e)),e?(e=e.rgb(),new Jo(e.r,e.g,e.b,e.opacity)):new Jo}function N8(e,r,n,o){return arguments.length===1?q6e(e):new Jo(e,r,n,o??1)}function Jo(e,r,n,o){this.r=+e,this.g=+r,this.b=+n,this.opacity=+o}M8(Jo,N8,FI(k1,{brighter(e){return e=e==null?cx:Math.pow(cx,e),new Jo(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?_1:Math.pow(_1,e),new Jo(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Jo(Bu(this.r),Bu(this.g),Bu(this.b),ux(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:WI,formatHex:WI,formatHex8:H6e,formatRgb:GI,toString:GI}));function WI(){return`#${Ou(this.r)}${Ou(this.g)}${Ou(this.b)}`}function H6e(){return`#${Ou(this.r)}${Ou(this.g)}${Ou(this.b)}${Ou((isNaN(this.opacity)?1:this.opacity)*255)}`}function GI(){const e=ux(this.opacity);return`${e===1?"rgb(":"rgba("}${Bu(this.r)}, ${Bu(this.g)}, ${Bu(this.b)}${e===1?")":`, ${e})`}`}function ux(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Bu(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ou(e){return e=Bu(e),(e<16?"0":"")+e.toString(16)}function YI(e,r,n,o){return o<=0?e=r=n=NaN:n<=0||n>=1?e=r=NaN:r<=0&&(e=NaN),new Ui(e,r,n,o)}function XI(e){if(e instanceof Ui)return new Ui(e.h,e.s,e.l,e.opacity);if(e instanceof k1||(e=Pu(e)),!e)return new Ui;if(e instanceof Ui)return e;e=e.rgb();var r=e.r/255,n=e.g/255,o=e.b/255,a=Math.min(r,n,o),i=Math.max(r,n,o),l=NaN,s=i-a,c=(i+a)/2;return s?(r===i?l=(n-o)/s+(n0&&c<1?0:l,new Ui(l,s,c,e.opacity)}function U6e(e,r,n,o){return arguments.length===1?XI(e):new Ui(e,r,n,o??1)}function Ui(e,r,n,o){this.h=+e,this.s=+r,this.l=+n,this.opacity=+o}M8(Ui,U6e,FI(k1,{brighter(e){return e=e==null?cx:Math.pow(cx,e),new Ui(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?_1:Math.pow(_1,e),new Ui(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,r=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,o=n+(n<.5?n:1-n)*r,a=2*n-o;return new Jo(P8(e>=240?e-240:e+120,a,o),P8(e,a,o),P8(e<120?e+240:e-120,a,o),this.opacity)},clamp(){return new Ui(ZI(this.h),px(this.s),px(this.l),ux(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(){const e=ux(this.opacity);return`${e===1?"hsl(":"hsla("}${ZI(this.h)}, ${px(this.s)*100}%, ${px(this.l)*100}%${e===1?")":`, ${e})`}`}}));function ZI(e){return e=(e||0)%360,e<0?e+360:e}function px(e){return Math.max(0,Math.min(1,e||0))}function P8(e,r,n){return(e<60?r+(n-r)*e/60:e<180?n:e<240?r+(n-r)*(240-e)/60:r)*255}const B8=e=>()=>e;function W6e(e,r){return function(n){return e+n*r}}function G6e(e,r,n){return e=Math.pow(e,n),r=Math.pow(r,n)-e,n=1/n,function(o){return Math.pow(e+o*r,n)}}function Y6e(e){return(e=+e)==1?KI:function(r,n){return n-r?G6e(r,n,e):B8(isNaN(r)?n:r)}}function KI(e,r){var n=r-e;return n?W6e(e,n):B8(isNaN(e)?r:e)}const hx=(function e(r){var n=Y6e(r);function o(a,i){var l=n((a=N8(a)).r,(i=N8(i)).r),s=n(a.g,i.g),c=n(a.b,i.b),d=KI(a.opacity,i.opacity);return function(u){return a.r=l(u),a.g=s(u),a.b=c(u),a.opacity=d(u),a+""}}return o.gamma=e,o})(1);function X6e(e,r){r||(r=[]);var n=e?Math.min(r.length,e.length):0,o=r.slice(),a;return function(i){for(a=0;an&&(i=r.slice(n,i),s[l]?s[l]+=i:s[++l]=i),(o=o[0])===(a=a[0])?s[l]?s[l]+=a:s[++l]=a:(s[++l]=null,c.push({i:l,x:Hl(o,a)})),n=I8.lastIndex;return n180?u+=360:u-d>180&&(d+=360),f.push({i:p.push(a(p)+"rotate(",null,o)-2,x:Hl(d,u)})):u&&p.push(a(p)+"rotate("+u+o)}function s(d,u,p,f){d!==u?f.push({i:p.push(a(p)+"skewX(",null,o)-2,x:Hl(d,u)}):u&&p.push(a(p)+"skewX("+u+o)}function c(d,u,p,f,g,v){if(d!==p||u!==f){var w=g.push(a(g)+"scale(",null,",",null,")");v.push({i:w-4,x:Hl(d,p)},{i:w-2,x:Hl(u,f)})}else(p!==1||f!==1)&&g.push(a(g)+"scale("+p+","+f+")")}return function(d,u){var p=[],f=[];return d=e(d),u=e(u),i(d.translateX,d.translateY,u.translateX,u.translateY,p,f),l(d.rotate,u.rotate,p,f),s(d.skewX,u.skewX,p,f),c(d.scaleX,d.scaleY,u.scaleX,u.scaleY,p,f),d=u=null,function(g){for(var v=-1,w=f.length,x;++v=0&&e._call.call(void 0,r),e=e._next;--Qh}function lL(){Iu=(yx=R1.now())+vx,Qh=C1=0;try{d_e()}finally{Qh=0,p_e(),Iu=0}}function u_e(){var e=R1.now(),r=e-yx;r>oL&&(vx-=r,yx=e)}function p_e(){for(var e,r=gx,n,o=1/0;r;)r._call?(o>r._time&&(o=r._time),e=r,r=r._next):(n=r._next,r._next=null,r=e?e._next=n:gx=n);z1=e,F8(o)}function F8(e){if(!Qh){C1&&(C1=clearTimeout(C1));var r=e-Iu;r>24?(e<1/0&&(C1=setTimeout(lL,e-R1.now()-vx)),$1&&($1=clearInterval($1))):($1||(yx=R1.now(),$1=setInterval(u_e,oL)),Qh=1,aL(lL))}}function sL(e,r,n){var o=new bx;return r=r==null?0:+r,o.restart(a=>{o.stop(),e(a+r)},r,n),o}var h_e=ox("start","end","cancel","interrupt"),f_e=[],cL=0,dL=1,V8=2,xx=3,uL=4,q8=5,wx=6;function kx(e,r,n,o,a,i){var l=e.__transition;if(!l)e.__transition={};else if(n in l)return;m_e(e,n,{name:r,index:o,group:a,on:h_e,tween:f_e,time:i.time,delay:i.delay,duration:i.duration,ease:i.ease,timer:null,state:cL})}function H8(e,r){var n=Wi(e,r);if(n.state>cL)throw new Error("too late; already scheduled");return n}function Ul(e,r){var n=Wi(e,r);if(n.state>xx)throw new Error("too late; already running");return n}function Wi(e,r){var n=e.__transition;if(!n||!(n=n[r]))throw new Error("transition not found");return n}function m_e(e,r,n){var o=e.__transition,a;o[r]=n,n.timer=iL(i,0,n.time);function i(d){n.state=dL,n.timer.restart(l,n.delay,n.time),n.delay<=d&&l(d-n.delay)}function l(d){var u,p,f,g;if(n.state!==dL)return c();for(u in o)if(g=o[u],g.name===n.name){if(g.state===xx)return sL(l);g.state===uL?(g.state=wx,g.timer.stop(),g.on.call("interrupt",e,e.__data__,g.index,g.group),delete o[u]):+uV8&&o.state=0&&(r=r.slice(0,n)),!r||r==="start"})}function U_e(e,r,n){var o,a,i=H_e(r)?H8:Ul;return function(){var l=i(this,e),s=l.on;s!==o&&(a=(o=s).copy()).on(r,n),l.on=a}}function W_e(e,r){var n=this._id;return arguments.length<2?Wi(this.node(),n).on.on(e):this.each(U_e(n,e,r))}function G_e(e){return function(){var r=this.parentNode;for(var n in this.__transition)if(+n!==e)return;r&&r.removeChild(this)}}function Y_e(){return this.on("end.remove",G_e(this._id))}function X_e(e){var r=this._name,n=this._id;typeof e!="function"&&(e=j8(e));for(var o=this._groups,a=o.length,i=new Array(a),l=0;l()=>e;function x8e(e,{sourceEvent:r,target:n,transform:o,dispatch:a}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:r,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:o,enumerable:!0,configurable:!0},_:{value:a}})}function Vs(e,r,n){this.k=e,this.x=r,this.y=n}Vs.prototype={constructor:Vs,scale:function(e){return e===1?this:new Vs(this.k*e,this.x,this.y)},translate:function(e,r){return e===0&r===0?this:new Vs(this.k,this.x+this.k*e,this.y+this.k*r)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var Ex=new Vs(1,0,0);mL.prototype=Vs.prototype;function mL(e){for(;!e.__zoom;)if(!(e=e.parentNode))return Ex;return e.__zoom}function W8(e){e.stopImmediatePropagation()}function j1(e){e.preventDefault(),e.stopImmediatePropagation()}function w8e(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function k8e(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function gL(){return this.__zoom||Ex}function _8e(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function S8e(){return navigator.maxTouchPoints||"ontouchstart"in this}function E8e(e,r,n){var o=e.invertX(r[0][0])-n[0][0],a=e.invertX(r[1][0])-n[1][0],i=e.invertY(r[0][1])-n[0][1],l=e.invertY(r[1][1])-n[1][1];return e.translate(a>o?(o+a)/2:Math.min(0,o)||Math.max(0,a),l>i?(i+l)/2:Math.min(0,i)||Math.max(0,l))}function yL(){var e=w8e,r=k8e,n=E8e,o=_8e,a=S8e,i=[0,1/0],l=[[-1/0,-1/0],[1/0,1/0]],s=250,c=mx,d=ox("start","zoom","end"),u,p,f,g=500,v=150,w=0,x=10;function k(M){M.property("__zoom",gL).on("wheel.zoom",R,{passive:!1}).on("mousedown.zoom",T).on("dblclick.zoom",O).filter(a).on("touchstart.zoom",P).on("touchmove.zoom",L).on("touchend.zoom touchcancel.zoom",H).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}k.transform=function(M,V,B,F){var q=M.selection?M.selection():M;q.property("__zoom",gL),M!==q?z(M,V,B,F):q.interrupt().each(function(){j(this,arguments).event(F).start().zoom(null,typeof V=="function"?V.apply(this,arguments):V).end()})},k.scaleBy=function(M,V,B,F){k.scaleTo(M,function(){var q=this.__zoom.k,G=typeof V=="function"?V.apply(this,arguments):V;return q*G},B,F)},k.scaleTo=function(M,V,B,F){k.transform(M,function(){var q=r.apply(this,arguments),G=this.__zoom,U=B==null?$(q):typeof B=="function"?B.apply(this,arguments):B,Y=G.invert(U),Z=typeof V=="function"?V.apply(this,arguments):V;return n(_(C(G,Z),U,Y),q,l)},B,F)},k.translateBy=function(M,V,B,F){k.transform(M,function(){return n(this.__zoom.translate(typeof V=="function"?V.apply(this,arguments):V,typeof B=="function"?B.apply(this,arguments):B),r.apply(this,arguments),l)},null,F)},k.translateTo=function(M,V,B,F,q){k.transform(M,function(){var G=r.apply(this,arguments),U=this.__zoom,Y=F==null?$(G):typeof F=="function"?F.apply(this,arguments):F;return n(Ex.translate(Y[0],Y[1]).scale(U.k).translate(typeof V=="function"?-V.apply(this,arguments):-V,typeof B=="function"?-B.apply(this,arguments):-B),G,l)},F,q)};function C(M,V){return V=Math.max(i[0],Math.min(i[1],V)),V===M.k?M:new Vs(V,M.x,M.y)}function _(M,V,B){var F=V[0]-B[0]*M.k,q=V[1]-B[1]*M.k;return F===M.x&&q===M.y?M:new Vs(M.k,F,q)}function $(M){return[(+M[0][0]+ +M[1][0])/2,(+M[0][1]+ +M[1][1])/2]}function z(M,V,B,F){M.on("start.zoom",function(){j(this,arguments).event(F).start()}).on("interrupt.zoom end.zoom",function(){j(this,arguments).event(F).end()}).tween("zoom",function(){var q=this,G=arguments,U=j(q,G).event(F),Y=r.apply(q,G),Z=B==null?$(Y):typeof B=="function"?B.apply(q,G):B,I=Math.max(Y[1][0]-Y[0][0],Y[1][1]-Y[0][1]),W=q.__zoom,K=typeof V=="function"?V.apply(q,G):V,Q=c(W.invert(Z).concat(I/W.k),K.invert(Z).concat(I/K.k));return function(ae){if(ae===1)ae=K;else{var te=Q(ae),re=I/te[2];ae=new Vs(re,Z[0]-te[0]*re,Z[1]-te[1]*re)}U.zoom(null,ae)}})}function j(M,V,B){return!B&&M.__zooming||new A(M,V)}function A(M,V){this.that=M,this.args=V,this.active=0,this.sourceEvent=null,this.extent=r.apply(M,V),this.taps=0}A.prototype={event:function(M){return M&&(this.sourceEvent=M),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(M,V){return this.mouse&&M!=="mouse"&&(this.mouse[1]=V.invert(this.mouse[0])),this.touch0&&M!=="touch"&&(this.touch0[1]=V.invert(this.touch0[0])),this.touch1&&M!=="touch"&&(this.touch1[1]=V.invert(this.touch1[0])),this.that.__zoom=V,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(M){var V=ka(this.that).datum();d.call(M,this.that,new x8e(M,{sourceEvent:this.sourceEvent,target:k,transform:this.that.__zoom,dispatch:d}),V)}};function R(M,...V){if(!e.apply(this,arguments))return;var B=j(this,V).event(M),F=this.__zoom,q=Math.max(i[0],Math.min(i[1],F.k*Math.pow(2,o.apply(this,arguments)))),G=Hi(M);if(B.wheel)(B.mouse[0][0]!==G[0]||B.mouse[0][1]!==G[1])&&(B.mouse[1]=F.invert(B.mouse[0]=G)),clearTimeout(B.wheel);else{if(F.k===q)return;B.mouse=[G,F.invert(G)],_x(this),B.start()}j1(M),B.wheel=setTimeout(U,v),B.zoom("mouse",n(_(C(F,q),B.mouse[0],B.mouse[1]),B.extent,l));function U(){B.wheel=null,B.end()}}function T(M,...V){if(f||!e.apply(this,arguments))return;var B=M.currentTarget,F=j(this,V,!0).event(M),q=ka(M.view).on("mousemove.zoom",Z,!0).on("mouseup.zoom",I,!0),G=Hi(M,B),U=M.clientX,Y=M.clientY;OI(M.view),W8(M),F.mouse=[G,this.__zoom.invert(G)],_x(this),F.start();function Z(W){if(j1(W),!F.moved){var K=W.clientX-U,Q=W.clientY-Y;F.moved=K*K+Q*Q>w}F.event(W).zoom("mouse",n(_(F.that.__zoom,F.mouse[0]=Hi(W,B),F.mouse[1]),F.extent,l))}function I(W){q.on("mousemove.zoom mouseup.zoom",null),II(W.view,F.moved),j1(W),F.event(W).end()}}function O(M,...V){if(e.apply(this,arguments)){var B=this.__zoom,F=Hi(M.changedTouches?M.changedTouches[0]:M,this),q=B.invert(F),G=B.k*(M.shiftKey?.5:2),U=n(_(C(B,G),F,q),r.apply(this,V),l);j1(M),s>0?ka(this).transition().duration(s).call(z,U,F,M):ka(this).call(k.transform,U,F,M)}}function P(M,...V){if(e.apply(this,arguments)){var B=M.touches,F=B.length,q=j(this,V,M.changedTouches.length===F).event(M),G,U,Y,Z;for(W8(M),U=0;U"[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:e=>`Node type "${e}" 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:e=>`The old edge with id=${e} does not exist.`,error009:e=>`Marker type "${e}" doesn't exist.`,error008:(e,{id:r,sourceHandle:n,targetHandle:o})=>`Couldn't create edge for ${e} handle id: "${e==="source"?n:o}", edge id: ${r}.`,error010:()=>"Handle: No node id found. Make sure to only use a Handle inside a custom Node.",error011:e=>`Edge type "${e}" not found. Using fallback type "default".`,error012:e=>`Node with id "${e}" does not exist, it may have been removed. This can happen when a node is deleted before the "onNodeClick" handler is called.`,error013:(e="react")=>`It seems that you haven't loaded the styles. Please import '@xyflow/${e}/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."},T1=[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],vL=["Enter"," ","Escape"],bL={"node.a11yDescription.default":"Press enter or space to select a node. Press delete to remove it and escape to cancel.","node.a11yDescription.keyboardDisabled":"Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.","node.a11yDescription.ariaLiveMessage":({direction:e,x:r,y:n})=>`Moved selected node ${e}. New position, x: ${r}, y: ${n}`,"edge.a11yDescription.default":"Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.","controls.ariaLabel":"Control Panel","controls.zoomIn.ariaLabel":"Zoom In","controls.zoomOut.ariaLabel":"Zoom Out","controls.fitView.ariaLabel":"Fit View","controls.interactive.ariaLabel":"Toggle Interactivity","minimap.ariaLabel":"Mini Map","handle.ariaLabel":"Handle"};var Jh;(function(e){e.Strict="strict",e.Loose="loose"})(Jh||(Jh={}));var Lu;(function(e){e.Free="free",e.Vertical="vertical",e.Horizontal="horizontal"})(Lu||(Lu={}));var A1;(function(e){e.Partial="partial",e.Full="full"})(A1||(A1={}));const xL={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null,pointer:null};var Kc;(function(e){e.Bezier="default",e.Straight="straight",e.Step="step",e.SmoothStep="smoothstep",e.SimpleBezier="simplebezier"})(Kc||(Kc={}));var Cx;(function(e){e.Arrow="arrow",e.ArrowClosed="arrowclosed"})(Cx||(Cx={}));var Ue;(function(e){e.Left="left",e.Top="top",e.Right="right",e.Bottom="bottom"})(Ue||(Ue={}));const wL={[Ue.Left]:Ue.Right,[Ue.Right]:Ue.Left,[Ue.Top]:Ue.Bottom,[Ue.Bottom]:Ue.Top};function kL(e){return e===null?null:e?"valid":"invalid"}const _L=e=>"id"in e&&"source"in e&&"target"in e,C8e=e=>"id"in e&&"position"in e&&!("source"in e)&&!("target"in e),G8=e=>"id"in e&&"internals"in e&&!("source"in e)&&!("target"in e),D1=(e,r=[0,0])=>{const{width:n,height:o}=_o(e),a=e.origin??r,i=n*a[0],l=o*a[1];return{x:e.position.x-i,y:e.position.y-l}},SL=(e,r={nodeOrigin:[0,0]})=>{if(e.length===0)return{x:0,y:0,width:0,height:0};const n=e.reduce((o,a)=>{const i=typeof a=="string";let l=!r.nodeLookup&&!i?a:void 0;r.nodeLookup&&(l=i?r.nodeLookup.get(a):G8(a)?a:r.nodeLookup.get(a.id));const s=l?Rx(l,r.nodeOrigin):{x:0,y:0,x2:0,y2:0};return $x(o,s)},{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return zx(n)},ef=(e,r={})=>{let n={x:1/0,y:1/0,x2:-1/0,y2:-1/0},o=!1;return e.forEach(a=>{(r.filter===void 0||r.filter(a))&&(n=$x(n,Rx(a)),o=!0)}),o?zx(n):{x:0,y:0,width:0,height:0}},Y8=(e,r,[n,o,a]=[0,0,1],i=!1,l=!1)=>{const s={...P1(r,[n,o,a]),width:r.width/a,height:r.height/a},c=[];for(const d of e.values()){const{measured:u,selectable:p=!0,hidden:f=!1}=d;if(l&&!p||f)continue;const g=u.width??d.width??d.initialWidth??null,v=u.height??d.height??d.initialHeight??null,w=M1(s,Vu(d)),x=(g??0)*(v??0),k=i&&w>0;(!d.internals.handleBounds||k||w>=x||d.dragging)&&c.push(d)}return c},$8e=(e,r)=>{const n=new Set;return e.forEach(o=>{n.add(o.id)}),r.filter(o=>n.has(o.source)||n.has(o.target))};function z8e(e,r){const n=new Map,o=r?.nodes?new Set(r.nodes.map(a=>a.id)):null;return e.forEach(a=>{a.measured.width&&a.measured.height&&(r?.includeHiddenNodes||!a.hidden)&&(!o||o.has(a.id))&&n.set(a.id,a)}),n}async function R8e({nodes:e,width:r,height:n,panZoom:o,minZoom:a,maxZoom:i},l){if(e.size===0)return Promise.resolve(!0);const s=z8e(e,l),c=ef(s),d=qs(c,r,n,l?.minZoom??a,l?.maxZoom??i,l?.padding??.1);return await o.setViewport(d,{duration:l?.duration,ease:l?.ease,interpolate:l?.interpolate}),Promise.resolve(!0)}function EL({nodeId:e,nextPosition:r,nodeLookup:n,nodeOrigin:o=[0,0],nodeExtent:a,onError:i}){const l=n.get(e),s=l.parentId?n.get(l.parentId):void 0,{x:c,y:d}=s?s.internals.positionAbsolute:{x:0,y:0},u=l.origin??o;let p=l.extent||a;if(l.extent==="parent"&&!l.expandParent)if(!s)i?.("005",Wl.error005());else{const g=s.measured.width,v=s.measured.height;g&&v&&(p=[[c,d],[c+g,d+v]])}else s&&of(l.extent)&&(p=[[l.extent[0][0]+c,l.extent[0][1]+d],[l.extent[1][0]+c,l.extent[1][1]+d]]);const f=of(p)?Fu(r,p,l.measured):r;return(l.measured.width===void 0||l.measured.height===void 0)&&i?.("015",Wl.error015()),{position:{x:f.x-c+(l.measured.width??0)*u[0],y:f.y-d+(l.measured.height??0)*u[1]},positionAbsolute:f}}async function j8e({nodesToRemove:e=[],edgesToRemove:r=[],nodes:n,edges:o,onBeforeDelete:a}){const i=new Set(e.map(p=>p.id)),l=[];for(const p of n){if(p.deletable===!1)continue;const f=i.has(p.id),g=!f&&p.parentId&&l.find(v=>v.id===p.parentId);(f||g)&&l.push(p)}const s=new Set(r.map(p=>p.id)),c=o.filter(p=>p.deletable!==!1),d=$8e(l,c);for(const p of c)s.has(p.id)&&!d.find(f=>f.id===p.id)&&d.push(p);if(!a)return{edges:d,nodes:l};const u=await a({nodes:l,edges:d});return typeof u=="boolean"?u?{edges:d,nodes:l}:{edges:[],nodes:[]}:u}const tf=(e,r=0,n=1)=>Math.min(Math.max(e,r),n),Fu=(e={x:0,y:0},r,n)=>({x:tf(e.x,r[0][0],r[1][0]-(n?.width??0)),y:tf(e.y,r[0][1],r[1][1]-(n?.height??0))});function CL(e,r,n){const{width:o,height:a}=_o(n),{x:i,y:l}=n.internals.positionAbsolute;return Fu(e,[[i,l],[i+o,l+a]],r)}const $L=(e,r,n)=>en?-tf(Math.abs(e-n),1,r)/r:0,zL=(e,r,n=15,o=40)=>{const a=$L(e.x,o,r.width-o)*n,i=$L(e.y,o,r.height-o)*n;return[a,i]},$x=(e,r)=>({x:Math.min(e.x,r.x),y:Math.min(e.y,r.y),x2:Math.max(e.x2,r.x2),y2:Math.max(e.y2,r.y2)}),X8=({x:e,y:r,width:n,height:o})=>({x:e,y:r,x2:e+n,y2:r+o}),zx=({x:e,y:r,x2:n,y2:o})=>({x:e,y:r,width:n-e,height:o-r}),Vu=(e,r=[0,0])=>{const{x:n,y:o}=G8(e)?e.internals.positionAbsolute:D1(e,r);return{x:n,y:o,width:e.measured?.width??e.width??e.initialWidth??0,height:e.measured?.height??e.height??e.initialHeight??0}},Rx=(e,r=[0,0])=>{const{x:n,y:o}=G8(e)?e.internals.positionAbsolute:D1(e,r);return{x:n,y:o,x2:n+(e.measured?.width??e.width??e.initialWidth??0),y2:o+(e.measured?.height??e.height??e.initialHeight??0)}},RL=(e,r)=>zx($x(X8(e),X8(r))),M1=(e,r)=>{const n=Math.max(0,Math.min(e.x+e.width,r.x+r.width)-Math.max(e.x,r.x)),o=Math.max(0,Math.min(e.y+e.height,r.y+r.height)-Math.max(e.y,r.y));return Math.ceil(n*o)},jL=e=>Gi(e.width)&&Gi(e.height)&&Gi(e.x)&&Gi(e.y),Gi=e=>!isNaN(e)&&isFinite(e),T8e=(e,r)=>{},N1=(e,r=[1,1])=>({x:r[0]*Math.round(e.x/r[0]),y:r[1]*Math.round(e.y/r[1])}),P1=({x:e,y:r},[n,o,a],i=!1,l=[1,1])=>{const s={x:(e-n)/a,y:(r-o)/a};return i?N1(s,l):s},jx=({x:e,y:r},[n,o,a])=>({x:e*a+n,y:r*a+o});function rf(e,r){if(typeof e=="number")return Math.floor((r-r/(1+e))*.5);if(typeof e=="string"&&e.endsWith("px")){const n=parseFloat(e);if(!Number.isNaN(n))return Math.floor(n)}if(typeof e=="string"&&e.endsWith("%")){const n=parseFloat(e);if(!Number.isNaN(n))return Math.floor(r*n*.01)}return console.error(`[React Flow] The padding value "${e}" is invalid. Please provide a number or a string with a valid unit (px or %).`),0}function A8e(e,r,n){if(typeof e=="string"||typeof e=="number"){const o=rf(e,n),a=rf(e,r);return{top:o,right:a,bottom:o,left:a,x:a*2,y:o*2}}if(typeof e=="object"){const o=rf(e.top??e.y??0,n),a=rf(e.bottom??e.y??0,n),i=rf(e.left??e.x??0,r),l=rf(e.right??e.x??0,r);return{top:o,right:l,bottom:a,left:i,x:i+l,y:o+a}}return{top:0,right:0,bottom:0,left:0,x:0,y:0}}function D8e(e,r,n,o,a,i){const{x:l,y:s}=jx(e,[r,n,o]),{x:c,y:d}=jx({x:e.x+e.width,y:e.y+e.height},[r,n,o]),u=a-c,p=i-d;return{left:Math.floor(l),top:Math.floor(s),right:Math.floor(u),bottom:Math.floor(p)}}const qs=(e,r,n,o,a,i)=>{const l=A8e(i,r,n),s=(r-l.x)/e.width,c=(n-l.y)/e.height,d=Math.min(s,c),u=tf(d,o,a),p=e.x+e.width/2,f=e.y+e.height/2,g=r/2-p*u,v=n/2-f*u,w=D8e(e,g,v,u,r,n),x={left:Math.min(w.left-l.left,0),top:Math.min(w.top-l.top,0),right:Math.min(w.right-l.right,0),bottom:Math.min(w.bottom-l.bottom,0)};return{x:g-x.left+x.right,y:v-x.top+x.bottom,zoom:u}},nf=()=>typeof navigator<"u"&&navigator?.userAgent?.indexOf("Mac")>=0;function of(e){return e!=null&&e!=="parent"}function _o(e){return{width:e.measured?.width??e.width??e.initialWidth??0,height:e.measured?.height??e.height??e.initialHeight??0}}function TL(e){return(e.measured?.width??e.width??e.initialWidth)!==void 0&&(e.measured?.height??e.height??e.initialHeight)!==void 0}function AL(e,r={width:0,height:0},n,o,a){const i={...e},l=o.get(n);if(l){const s=l.origin||a;i.x+=l.internals.positionAbsolute.x-(r.width??0)*s[0],i.y+=l.internals.positionAbsolute.y-(r.height??0)*s[1]}return i}function DL(e,r){if(e.size!==r.size)return!1;for(const n of e)if(!r.has(n))return!1;return!0}function M8e(){let e,r;return{promise:new Promise((n,o)=>{e=n,r=o}),resolve:e,reject:r}}function N8e(e){return{...bL,...e||{}}}function B1(e,{snapGrid:r=[0,0],snapToGrid:n=!1,transform:o,containerBounds:a}){const{x:i,y:l}=Yi(e),s=P1({x:i-(a?.left??0),y:l-(a?.top??0)},o),{x:c,y:d}=n?N1(s,r):s;return{xSnapped:c,ySnapped:d,...s}}const Z8=e=>({width:e.offsetWidth,height:e.offsetHeight}),ML=e=>e?.getRootNode?.()||window?.document,P8e=["INPUT","SELECT","TEXTAREA"];function NL(e){const r=e.composedPath?.()?.[0]||e.target;return r?.nodeType!==1?!1:P8e.includes(r.nodeName)||r.hasAttribute("contenteditable")||!!r.closest(".nokey")}const PL=e=>"clientX"in e,Yi=(e,r)=>{const n=PL(e),o=n?e.clientX:e.touches?.[0].clientX,a=n?e.clientY:e.touches?.[0].clientY;return{x:o-(r?.left??0),y:a-(r?.top??0)}},BL=(e,r,n,o,a)=>{const i=r.querySelectorAll(`.${e}`);return!i||!i.length?null:Array.from(i).map(l=>{const s=l.getBoundingClientRect();return{id:l.getAttribute("data-handleid"),type:e,nodeId:a,position:l.getAttribute("data-handlepos"),x:(s.left-n.left)/o,y:(s.top-n.top)/o,...Z8(l)}})};function OL({sourceX:e,sourceY:r,targetX:n,targetY:o,sourceControlX:a,sourceControlY:i,targetControlX:l,targetControlY:s}){const c=e*.125+a*.375+l*.375+n*.125,d=r*.125+i*.375+s*.375+o*.125,u=Math.abs(c-e),p=Math.abs(d-r);return[c,d,u,p]}function Tx(e,r){return e>=0?.5*e:r*25*Math.sqrt(-e)}function IL({pos:e,x1:r,y1:n,x2:o,y2:a,c:i}){switch(e){case Ue.Left:return[r-Tx(r-o,i),n];case Ue.Right:return[r+Tx(o-r,i),n];case Ue.Top:return[r,n-Tx(n-a,i)];case Ue.Bottom:return[r,n+Tx(a-n,i)]}}function Ax({sourceX:e,sourceY:r,sourcePosition:n=Ue.Bottom,targetX:o,targetY:a,targetPosition:i=Ue.Top,curvature:l=.25}){const[s,c]=IL({pos:n,x1:e,y1:r,x2:o,y2:a,c:l}),[d,u]=IL({pos:i,x1:o,y1:a,x2:e,y2:r,c:l}),[p,f,g,v]=OL({sourceX:e,sourceY:r,targetX:o,targetY:a,sourceControlX:s,sourceControlY:c,targetControlX:d,targetControlY:u});return[`M${e},${r} C${s},${c} ${d},${u} ${o},${a}`,p,f,g,v]}function LL({sourceX:e,sourceY:r,targetX:n,targetY:o}){const a=Math.abs(n-e)/2,i=n0}const I8e=({source:e,sourceHandle:r,target:n,targetHandle:o})=>`xy-edge__${e}${r||""}-${n}${o||""}`,L8e=(e,r)=>r.some(n=>n.source===e.source&&n.target===e.target&&(n.sourceHandle===e.sourceHandle||!n.sourceHandle&&!e.sourceHandle)&&(n.targetHandle===e.targetHandle||!n.targetHandle&&!e.targetHandle)),F8e=(e,r,n={})=>{if(!e.source||!e.target)return r;const o=n.getEdgeId||I8e;let a;return _L(e)?a={...e}:a={...e,id:o(e)},L8e(a,r)?r:(a.sourceHandle===null&&delete a.sourceHandle,a.targetHandle===null&&delete a.targetHandle,r.concat(a))};function FL({sourceX:e,sourceY:r,targetX:n,targetY:o}){const[a,i,l,s]=LL({sourceX:e,sourceY:r,targetX:n,targetY:o});return[`M ${e},${r}L ${n},${o}`,a,i,l,s]}const VL={[Ue.Left]:{x:-1,y:0},[Ue.Right]:{x:1,y:0},[Ue.Top]:{x:0,y:-1},[Ue.Bottom]:{x:0,y:1}},V8e=({source:e,sourcePosition:r=Ue.Bottom,target:n})=>r===Ue.Left||r===Ue.Right?e.xMath.sqrt(Math.pow(r.x-e.x,2)+Math.pow(r.y-e.y,2));function q8e({source:e,sourcePosition:r=Ue.Bottom,target:n,targetPosition:o=Ue.Top,center:a,offset:i,stepPosition:l}){const s=VL[r],c=VL[o],d={x:e.x+s.x*i,y:e.y+s.y*i},u={x:n.x+c.x*i,y:n.y+c.y*i},p=V8e({source:d,sourcePosition:r,target:u}),f=p.x!==0?"x":"y",g=p[f];let v=[],w,x;const k={x:0,y:0},C={x:0,y:0},[,,_,$]=LL({sourceX:e.x,sourceY:e.y,targetX:n.x,targetY:n.y});if(s[f]*c[f]===-1){f==="x"?(w=a.x??d.x+(u.x-d.x)*l,x=a.y??(d.y+u.y)/2):(w=a.x??(d.x+u.x)/2,x=a.y??d.y+(u.y-d.y)*l);const z=[{x:w,y:d.y},{x:w,y:u.y}],j=[{x:d.x,y:x},{x:u.x,y:x}];s[f]===g?v=f==="x"?z:j:v=f==="x"?j:z}else{const z=[{x:d.x,y:u.y}],j=[{x:u.x,y:d.y}];if(f==="x"?v=s.x===g?j:z:v=s.y===g?z:j,r===o){const P=Math.abs(e[f]-n[f]);if(P<=i){const L=Math.min(i-1,i-P);s[f]===g?k[f]=(d[f]>e[f]?-1:1)*L:C[f]=(u[f]>n[f]?-1:1)*L}}if(r!==o){const P=f==="x"?"y":"x",L=s[f]===c[P],H=d[P]>u[P],M=d[P]=O?(w=(A.x+R.x)/2,x=v[0].y):(w=v[0].x,x=(A.y+R.y)/2)}return[[e,{x:d.x+k.x,y:d.y+k.y},...v,{x:u.x+C.x,y:u.y+C.y},n],w,x,_,$]}function H8e(e,r,n,o){const a=Math.min(qL(e,r)/2,qL(r,n)/2,o),{x:i,y:l}=r;if(e.x===i&&i===n.x||e.y===l&&l===n.y)return`L${i} ${l}`;if(e.y===l){const d=e.x{let _="";return C>0&&Cn.id===r):e[0])||null}function K8(e,r){return e?typeof e=="string"?e:`${r?`${r}__`:""}${Object.keys(e).sort().map(n=>`${n}=${e[n]}`).join("&")}`:""}function U8e(e,{id:r,defaultColor:n,defaultMarkerStart:o,defaultMarkerEnd:a}){const i=new Set;return e.reduce((l,s)=>([s.markerStart||o,s.markerEnd||a].forEach(c=>{if(c&&typeof c=="object"){const d=K8(c,r);i.has(d)||(l.push({id:d,color:c.color||n,...c}),i.add(d))}}),l),[]).sort((l,s)=>l.id.localeCompare(s.id))}function W8e(e,r,n,o,a){let i=.5;a==="start"?i=0:a==="end"&&(i=1);let l=[(e.x+e.width*i)*r.zoom+r.x,e.y*r.zoom+r.y-o],s=[-100*i,-100];switch(n){case Ue.Right:l=[(e.x+e.width)*r.zoom+r.x+o,(e.y+e.height*i)*r.zoom+r.y],s=[0,-100*i];break;case Ue.Bottom:l[1]=(e.y+e.height)*r.zoom+r.y+o,s[1]=0;break;case Ue.Left:l=[e.x*r.zoom+r.x-o,(e.y+e.height*i)*r.zoom+r.y],s=[-100,-100*i];break}return`translate(${l[0]}px, ${l[1]}px) translate(${s[0]}%, ${s[1]}%)`}const YL=1e3,G8e=10,Q8={nodeOrigin:[0,0],nodeExtent:T1,elevateNodesOnSelect:!0,zIndexMode:"basic",defaults:{}},Y8e={...Q8,checkEquality:!0};function J8(e,r){const n={...e};for(const o in r)r[o]!==void 0&&(n[o]=r[o]);return n}function X8e(e,r,n){const o=J8(Q8,n);for(const a of e.values())if(a.parentId)r7(a,e,r,o);else{const i=D1(a,o.nodeOrigin),l=of(a.extent)?a.extent:o.nodeExtent,s=Fu(i,l,_o(a));a.internals.positionAbsolute=s}}function Z8e(e,r){if(!e.handles)return e.measured?r?.internals.handleBounds:void 0;const n=[],o=[];for(const a of e.handles){const i={id:a.id,width:a.width??1,height:a.height??1,nodeId:e.id,x:a.x,y:a.y,position:a.position,type:a.type};a.type==="source"?n.push(i):a.type==="target"&&o.push(i)}return{source:n,target:o}}function e7(e){return e==="manual"}function t7(e,r,n,o={}){const a=J8(Y8e,o),i={i:0},l=new Map(r),s=a?.elevateNodesOnSelect&&!e7(a.zIndexMode)?YL:0;let c=e.length>0;r.clear(),n.clear();for(const d of e){let u=l.get(d.id);if(a.checkEquality&&d===u?.internals.userNode)r.set(d.id,u);else{const p=D1(d,a.nodeOrigin),f=of(d.extent)?d.extent:a.nodeExtent,g=Fu(p,f,_o(d));u={...a.defaults,...d,measured:{width:d.measured?.width,height:d.measured?.height},internals:{positionAbsolute:g,handleBounds:Z8e(d,u),z:XL(d,s,a.zIndexMode),userNode:d}},r.set(d.id,u)}(u.measured===void 0||u.measured.width===void 0||u.measured.height===void 0)&&!u.hidden&&(c=!1),d.parentId&&r7(u,r,n,o,i)}return c}function K8e(e,r){if(!e.parentId)return;const n=r.get(e.parentId);n?n.set(e.id,e):r.set(e.parentId,new Map([[e.id,e]]))}function r7(e,r,n,o,a){const{elevateNodesOnSelect:i,nodeOrigin:l,nodeExtent:s,zIndexMode:c}=J8(Q8,o),d=e.parentId,u=r.get(d);if(!u){console.warn(`Parent node ${d} not found. Please make sure that parent nodes are in front of their child nodes in the nodes array.`);return}K8e(e,n),a&&!u.parentId&&u.internals.rootParentIndex===void 0&&c==="auto"&&(u.internals.rootParentIndex=++a.i,u.internals.z=u.internals.z+a.i*G8e),a&&u.internals.rootParentIndex!==void 0&&(a.i=u.internals.rootParentIndex);const p=i&&!e7(c)?YL:0,{x:f,y:g,z:v}=Q8e(e,u,l,s,p,c),{positionAbsolute:w}=e.internals,x=f!==w.x||g!==w.y;(x||v!==e.internals.z)&&r.set(e.id,{...e,internals:{...e.internals,positionAbsolute:x?{x:f,y:g}:w,z:v}})}function XL(e,r,n){const o=Gi(e.zIndex)?e.zIndex:0;return e7(n)?o:o+(e.selected?r:0)}function Q8e(e,r,n,o,a,i){const{x:l,y:s}=r.internals.positionAbsolute,c=_o(e),d=D1(e,n),u=of(e.extent)?Fu(d,e.extent,c):d;let p=Fu({x:l+u.x,y:s+u.y},o,c);e.extent==="parent"&&(p=CL(p,c,r));const f=XL(e,a,i),g=r.internals.z??0;return{x:p.x,y:p.y,z:g>=f?g+1:f}}function n7(e,r,n,o=[0,0]){const a=[],i=new Map;for(const l of e){const s=r.get(l.parentId);if(!s)continue;const c=i.get(l.parentId)?.expandedRect??Vu(s),d=RL(c,l.rect);i.set(l.parentId,{expandedRect:d,parent:s})}return i.size>0&&i.forEach(({expandedRect:l,parent:s},c)=>{const d=s.internals.positionAbsolute,u=_o(s),p=s.origin??o,f=l.x0||g>0||x||k)&&(a.push({id:c,type:"position",position:{x:s.position.x-f+x,y:s.position.y-g+k}}),n.get(c)?.forEach(C=>{e.some(_=>_.id===C.id)||a.push({id:C.id,type:"position",position:{x:C.position.x+f,y:C.position.y+g}})})),(u.width0){const g=n7(f,r,n,a);d.push(...g)}return{changes:d,updatedInternals:c}}async function e7e({delta:e,panZoom:r,transform:n,translateExtent:o,width:a,height:i}){if(!r||!e.x&&!e.y)return Promise.resolve(!1);const l=await r.setViewportConstrained({x:n[0]+e.x,y:n[1]+e.y,zoom:n[2]},[[0,0],[a,i]],o),s=!!l&&(l.x!==n[0]||l.y!==n[1]||l.k!==n[2]);return Promise.resolve(s)}function ZL(e,r,n,o,a,i){let l=a;const s=o.get(l)||new Map;o.set(l,s.set(n,r)),l=`${a}-${e}`;const c=o.get(l)||new Map;if(o.set(l,c.set(n,r)),i){l=`${a}-${e}-${i}`;const d=o.get(l)||new Map;o.set(l,d.set(n,r))}}function KL(e,r,n){e.clear(),r.clear();for(const o of n){const{source:a,target:i,sourceHandle:l=null,targetHandle:s=null}=o,c={edgeId:o.id,source:a,target:i,sourceHandle:l,targetHandle:s},d=`${a}-${l}--${i}-${s}`,u=`${i}-${s}--${a}-${l}`;ZL("source",c,u,e,a,l),ZL("target",c,d,e,i,s),r.set(o.id,o)}}function QL(e,r){if(!e.parentId)return!1;const n=r.get(e.parentId);return n?n.selected?!0:QL(n,r):!1}function JL(e,r,n){let o=e;do{if(o?.matches?.(r))return!0;if(o===n)return!1;o=o?.parentElement}while(o);return!1}function t7e(e,r,n,o){const a=new Map;for(const[i,l]of e)if((l.selected||l.id===o)&&(!l.parentId||!QL(l,e))&&(l.draggable||r&&typeof l.draggable>"u")){const s=e.get(i);s&&a.set(i,{id:i,position:s.position||{x:0,y:0},distance:{x:n.x-s.internals.positionAbsolute.x,y:n.y-s.internals.positionAbsolute.y},extent:s.extent,parentId:s.parentId,origin:s.origin,expandParent:s.expandParent,internals:{positionAbsolute:s.internals.positionAbsolute||{x:0,y:0}},measured:{width:s.measured.width??0,height:s.measured.height??0}})}return a}function o7({nodeId:e,dragItems:r,nodeLookup:n,dragging:o=!0}){const a=[];for(const[l,s]of r){const c=n.get(l)?.internals.userNode;c&&a.push({...c,position:s.position,dragging:o})}if(!e)return[a[0],a];const i=n.get(e)?.internals.userNode;return[i?{...i,position:r.get(e)?.position||i.position,dragging:o}:a[0],a]}function r7e({dragItems:e,snapGrid:r,x:n,y:o}){const a=e.values().next().value;if(!a)return null;const i={x:n-a.distance.x,y:o-a.distance.y},l=N1(i,r);return{x:l.x-i.x,y:l.y-i.y}}function n7e({onNodeMouseDown:e,getStoreItems:r,onDragStart:n,onDrag:o,onDragStop:a}){let i={x:null,y:null},l=0,s=new Map,c=!1,d={x:0,y:0},u=null,p=!1,f=null,g=!1,v=!1,w=null;function x({noDragClassName:C,handleSelector:_,domNode:$,isSelectable:z,nodeId:j,nodeClickDistance:A=0}){f=ka($);function R({x:L,y:H}){const{nodeLookup:M,nodeExtent:V,snapGrid:B,snapToGrid:F,nodeOrigin:q,onNodeDrag:G,onSelectionDrag:U,onError:Y,updateNodePositions:Z}=r();i={x:L,y:H};let I=!1;const W=s.size>1,K=W&&V?X8(ef(s)):null,Q=W&&F?r7e({dragItems:s,snapGrid:B,x:L,y:H}):null;for(const[ae,te]of s){if(!M.has(ae))continue;let re={x:L-te.distance.x,y:H-te.distance.y};F&&(re=Q?{x:Math.round(re.x+Q.x),y:Math.round(re.y+Q.y)}:N1(re,B));let ue=null;if(W&&V&&!te.extent&&K){const{positionAbsolute:pe}=te.internals,xe=pe.x-K.x+V[0][0],De=pe.x+te.measured.width-K.x2+V[1][0],Be=pe.y-K.y+V[0][1],Je=pe.y+te.measured.height-K.y2+V[1][1];ue=[[xe,Be],[De,Je]]}const{position:_e,positionAbsolute:ce}=EL({nodeId:ae,nextPosition:re,nodeLookup:M,nodeExtent:ue||V,nodeOrigin:q,onError:Y});I=I||te.position.x!==_e.x||te.position.y!==_e.y,te.position=_e,te.internals.positionAbsolute=ce}if(v=v||I,!!I&&(Z(s,!0),w&&(o||G||!j&&U))){const[ae,te]=o7({nodeId:j,dragItems:s,nodeLookup:M});o?.(w,s,ae,te),G?.(w,ae,te),j||U?.(w,te)}}async function T(){if(!u)return;const{transform:L,panBy:H,autoPanSpeed:M,autoPanOnNodeDrag:V}=r();if(!V){c=!1,cancelAnimationFrame(l);return}const[B,F]=zL(d,u,M);(B!==0||F!==0)&&(i.x=(i.x??0)-B/L[2],i.y=(i.y??0)-F/L[2],await H({x:B,y:F})&&R(i)),l=requestAnimationFrame(T)}function O(L){const{nodeLookup:H,multiSelectionActive:M,nodesDraggable:V,transform:B,snapGrid:F,snapToGrid:q,selectNodesOnDrag:G,onNodeDragStart:U,onSelectionDragStart:Y,unselectNodesAndEdges:Z}=r();p=!0,(!G||!z)&&!M&&j&&(H.get(j)?.selected||Z()),z&&G&&j&&e?.(j);const I=B1(L.sourceEvent,{transform:B,snapGrid:F,snapToGrid:q,containerBounds:u});if(i=I,s=t7e(H,V,I,j),s.size>0&&(n||U||!j&&Y)){const[W,K]=o7({nodeId:j,dragItems:s,nodeLookup:H});n?.(L.sourceEvent,s,W,K),U?.(L.sourceEvent,W,K),j||Y?.(L.sourceEvent,K)}}const P=LI().clickDistance(A).on("start",L=>{const{domNode:H,nodeDragThreshold:M,transform:V,snapGrid:B,snapToGrid:F}=r();u=H?.getBoundingClientRect()||null,g=!1,v=!1,w=L.sourceEvent,M===0&&O(L),i=B1(L.sourceEvent,{transform:V,snapGrid:B,snapToGrid:F,containerBounds:u}),d=Yi(L.sourceEvent,u)}).on("drag",L=>{const{autoPanOnNodeDrag:H,transform:M,snapGrid:V,snapToGrid:B,nodeDragThreshold:F,nodeLookup:q}=r(),G=B1(L.sourceEvent,{transform:M,snapGrid:V,snapToGrid:B,containerBounds:u});if(w=L.sourceEvent,(L.sourceEvent.type==="touchmove"&&L.sourceEvent.touches.length>1||j&&!q.has(j))&&(g=!0),!g){if(!c&&H&&p&&(c=!0,T()),!p){const U=Yi(L.sourceEvent,u),Y=U.x-d.x,Z=U.y-d.y;Math.sqrt(Y*Y+Z*Z)>F&&O(L)}(i.x!==G.xSnapped||i.y!==G.ySnapped)&&s&&p&&(d=Yi(L.sourceEvent,u),R(G))}}).on("end",L=>{if(!(!p||g)&&(c=!1,p=!1,cancelAnimationFrame(l),s.size>0)){const{nodeLookup:H,updateNodePositions:M,onNodeDragStop:V,onSelectionDragStop:B}=r();if(v&&(M(s,!1),v=!1),a||V||!j&&B){const[F,q]=o7({nodeId:j,dragItems:s,nodeLookup:H,dragging:!1});a?.(L.sourceEvent,s,F,q),V?.(L.sourceEvent,F,q),j||B?.(L.sourceEvent,q)}}}).filter(L=>{const H=L.target;return!L.button&&(!C||!JL(H,`.${C}`,$))&&(!_||JL(H,_,$))});f.call(P)}function k(){f?.on(".drag",null)}return{update:x,destroy:k}}function o7e(e,r,n){const o=[],a={x:e.x-n,y:e.y-n,width:n*2,height:n*2};for(const i of r.values())M1(a,Vu(i))>0&&o.push(i);return o}const a7e=250;function i7e(e,r,n,o){let a=[],i=1/0;const l=o7e(e,n,r+a7e);for(const s of l){const c=[...s.internals.handleBounds?.source??[],...s.internals.handleBounds?.target??[]];for(const d of c){if(o.nodeId===d.nodeId&&o.type===d.type&&o.id===d.id)continue;const{x:u,y:p}=qu(s,d,d.position,!0),f=Math.sqrt(Math.pow(u-e.x,2)+Math.pow(p-e.y,2));f>r||(f1){const s=o.type==="source"?"target":"source";return a.find(c=>c.type===s)??a[0]}return a[0]}function eF(e,r,n,o,a,i=!1){const l=o.get(e);if(!l)return null;const s=a==="strict"?l.internals.handleBounds?.[r]:[...l.internals.handleBounds?.source??[],...l.internals.handleBounds?.target??[]],c=(n?s?.find(d=>d.id===n):s?.[0])??null;return c&&i?{...c,...qu(l,c,c.position,!0)}:c}function tF(e,r){return e||(r?.classList.contains("target")?"target":r?.classList.contains("source")?"source":null)}function l7e(e,r){let n=null;return r?n=!0:e&&!r&&(n=!1),n}const rF=()=>!0;function s7e(e,{connectionMode:r,connectionRadius:n,handleId:o,nodeId:a,edgeUpdaterType:i,isTarget:l,domNode:s,nodeLookup:c,lib:d,autoPanOnConnect:u,flowId:p,panBy:f,cancelConnection:g,onConnectStart:v,onConnect:w,onConnectEnd:x,isValidConnection:k=rF,onReconnectEnd:C,updateConnection:_,getTransform:$,getFromHandle:z,autoPanSpeed:j,dragThreshold:A=1,handleDomNode:R}){const T=ML(e.target);let O=0,P;const{x:L,y:H}=Yi(e),M=tF(i,R),V=s?.getBoundingClientRect();let B=!1;if(!V||!M)return;const F=eF(a,M,o,c,r);if(!F)return;let q=Yi(e,V),G=!1,U=null,Y=!1,Z=null;function I(){if(!u||!V)return;const[ue,_e]=zL(q,V,j);f({x:ue,y:_e}),O=requestAnimationFrame(I)}const W={...F,nodeId:a,type:M,position:F.position},K=c.get(a);let Q={inProgress:!0,isValid:null,from:qu(K,W,Ue.Left,!0),fromHandle:W,fromPosition:W.position,fromNode:K,to:q,toHandle:null,toPosition:wL[W.position],toNode:null,pointer:q};function ae(){B=!0,_(Q),v?.(e,{nodeId:a,handleId:o,handleType:M})}A===0&&ae();function te(ue){if(!B){const{x:Be,y:Je}=Yi(ue),st=Be-L,Le=Je-H;if(!(st*st+Le*Le>A*A))return;ae()}if(!z()||!W){re(ue);return}const _e=$();q=Yi(ue,V),P=i7e(P1(q,_e,!1,[1,1]),n,c,W),G||(I(),G=!0);const ce=nF(ue,{handle:P,connectionMode:r,fromNodeId:a,fromHandleId:o,fromType:l?"target":"source",isValidConnection:k,doc:T,lib:d,flowId:p,nodeLookup:c});Z=ce.handleDomNode,U=ce.connection,Y=l7e(!!P,ce.isValid);const pe=c.get(a),xe=pe?qu(pe,W,Ue.Left,!0):Q.from,De={...Q,from:xe,isValid:Y,to:ce.toHandle&&Y?jx({x:ce.toHandle.x,y:ce.toHandle.y},_e):q,toHandle:ce.toHandle,toPosition:Y&&ce.toHandle?ce.toHandle.position:wL[W.position],toNode:ce.toHandle?c.get(ce.toHandle.nodeId):null,pointer:q};_(De),Q=De}function re(ue){if(!("touches"in ue&&ue.touches.length>0)){if(B){(P||Z)&&U&&Y&&w?.(U);const{inProgress:_e,...ce}=Q,pe={...ce,toPosition:Q.toHandle?Q.toPosition:null};x?.(ue,pe),i&&C?.(ue,pe)}g(),cancelAnimationFrame(O),G=!1,Y=!1,U=null,Z=null,T.removeEventListener("mousemove",te),T.removeEventListener("mouseup",re),T.removeEventListener("touchmove",te),T.removeEventListener("touchend",re)}}T.addEventListener("mousemove",te),T.addEventListener("mouseup",re),T.addEventListener("touchmove",te),T.addEventListener("touchend",re)}function nF(e,{handle:r,connectionMode:n,fromNodeId:o,fromHandleId:a,fromType:i,doc:l,lib:s,flowId:c,isValidConnection:d=rF,nodeLookup:u}){const p=i==="target",f=r?l.querySelector(`.${s}-flow__handle[data-id="${c}-${r?.nodeId}-${r?.id}-${r?.type}"]`):null,{x:g,y:v}=Yi(e),w=l.elementFromPoint(g,v),x=w?.classList.contains(`${s}-flow__handle`)?w:f,k={handleDomNode:x,isValid:!1,connection:null,toHandle:null};if(x){const C=tF(void 0,x),_=x.getAttribute("data-nodeid"),$=x.getAttribute("data-handleid"),z=x.classList.contains("connectable"),j=x.classList.contains("connectableend");if(!_||!C)return k;const A={source:p?_:o,sourceHandle:p?$:a,target:p?o:_,targetHandle:p?a:$};k.connection=A;const R=z&&j&&(n===Jh.Strict?p&&C==="source"||!p&&C==="target":_!==o||$!==a);k.isValid=R&&d(A),k.toHandle=eF(_,C,$,u,n,!0)}return k}const a7={onPointerDown:s7e,isValid:nF};function c7e({domNode:e,panZoom:r,getTransform:n,getViewScale:o}){const a=ka(e);function i({translateExtent:s,width:c,height:d,zoomStep:u=1,pannable:p=!0,zoomable:f=!0,inversePan:g=!1}){const v=_=>{if(_.sourceEvent.type!=="wheel"||!r)return;const $=n(),z=_.sourceEvent.ctrlKey&&nf()?10:1,j=-_.sourceEvent.deltaY*(_.sourceEvent.deltaMode===1?.05:_.sourceEvent.deltaMode?1:.002)*u,A=$[2]*Math.pow(2,j*z);r.scaleTo(A)};let w=[0,0];const x=_=>{(_.sourceEvent.type==="mousedown"||_.sourceEvent.type==="touchstart")&&(w=[_.sourceEvent.clientX??_.sourceEvent.touches[0].clientX,_.sourceEvent.clientY??_.sourceEvent.touches[0].clientY])},k=_=>{const $=n();if(_.sourceEvent.type!=="mousemove"&&_.sourceEvent.type!=="touchmove"||!r)return;const z=[_.sourceEvent.clientX??_.sourceEvent.touches[0].clientX,_.sourceEvent.clientY??_.sourceEvent.touches[0].clientY],j=[z[0]-w[0],z[1]-w[1]];w=z;const A=o()*Math.max($[2],Math.log($[2]))*(g?-1:1),R={x:$[0]-j[0]*A,y:$[1]-j[1]*A},T=[[0,0],[c,d]];r.setViewportConstrained({x:R.x,y:R.y,zoom:$[2]},T,s)},C=yL().on("start",x).on("zoom",p?k:null).on("zoom.wheel",f?v:null);a.call(C,{})}function l(){a.on("zoom",null)}return{update:i,destroy:l,pointer:Hi}}const Mx=e=>({x:e.x,y:e.y,zoom:e.k}),i7=({x:e,y:r,zoom:n})=>Ex.translate(e,r).scale(n),af=(e,r)=>e.target.closest(`.${r}`),oF=(e,r)=>r===2&&Array.isArray(e)&&e.includes(2),d7e=e=>((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2,l7=(e,r=0,n=d7e,o=()=>{})=>{const a=typeof r=="number"&&r>0;return a||o(),a?e.transition().duration(r).ease(n).on("end",o):e},aF=e=>{const r=e.ctrlKey&&nf()?10:1;return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*r};function u7e({zoomPanValues:e,noWheelClassName:r,d3Selection:n,d3Zoom:o,panOnScrollMode:a,panOnScrollSpeed:i,zoomOnPinch:l,onPanZoomStart:s,onPanZoom:c,onPanZoomEnd:d}){return u=>{if(af(u,r))return u.ctrlKey&&u.preventDefault(),!1;u.preventDefault(),u.stopImmediatePropagation();const p=n.property("__zoom").k||1;if(u.ctrlKey&&l){const x=Hi(u),k=aF(u),C=p*Math.pow(2,k);o.scaleTo(n,C,x,u);return}const f=u.deltaMode===1?20:1;let g=a===Lu.Vertical?0:u.deltaX*f,v=a===Lu.Horizontal?0:u.deltaY*f;!nf()&&u.shiftKey&&a!==Lu.Vertical&&(g=u.deltaY*f,v=0),o.translateBy(n,-(g/p)*i,-(v/p)*i,{internal:!0});const w=Mx(n.property("__zoom"));clearTimeout(e.panScrollTimeout),e.isPanScrolling?(c?.(u,w),e.panScrollTimeout=setTimeout(()=>{d?.(u,w),e.isPanScrolling=!1},150)):(e.isPanScrolling=!0,s?.(u,w))}}function p7e({noWheelClassName:e,preventScrolling:r,d3ZoomHandler:n}){return function(o,a){const i=o.type==="wheel",l=!r&&i&&!o.ctrlKey,s=af(o,e);if(o.ctrlKey&&i&&s&&o.preventDefault(),l||s)return null;o.preventDefault(),n.call(this,o,a)}}function h7e({zoomPanValues:e,onDraggingChange:r,onPanZoomStart:n}){return o=>{if(o.sourceEvent?.internal)return;const a=Mx(o.transform);e.mouseButton=o.sourceEvent?.button||0,e.isZoomingOrPanning=!0,e.prevViewport=a,o.sourceEvent?.type==="mousedown"&&r(!0),n&&n?.(o.sourceEvent,a)}}function f7e({zoomPanValues:e,panOnDrag:r,onPaneContextMenu:n,onTransformChange:o,onPanZoom:a}){return i=>{e.usedRightMouseButton=!!(n&&oF(r,e.mouseButton??0)),i.sourceEvent?.sync||o([i.transform.x,i.transform.y,i.transform.k]),a&&!i.sourceEvent?.internal&&a?.(i.sourceEvent,Mx(i.transform))}}function m7e({zoomPanValues:e,panOnDrag:r,panOnScroll:n,onDraggingChange:o,onPanZoomEnd:a,onPaneContextMenu:i}){return l=>{if(!l.sourceEvent?.internal&&(e.isZoomingOrPanning=!1,i&&oF(r,e.mouseButton??0)&&!e.usedRightMouseButton&&l.sourceEvent&&i(l.sourceEvent),e.usedRightMouseButton=!1,o(!1),a)){const s=Mx(l.transform);e.prevViewport=s,clearTimeout(e.timerId),e.timerId=setTimeout(()=>{a?.(l.sourceEvent,s)},n?150:0)}}}function g7e({zoomActivationKeyPressed:e,zoomOnScroll:r,zoomOnPinch:n,panOnDrag:o,panOnScroll:a,zoomOnDoubleClick:i,userSelectionActive:l,noWheelClassName:s,noPanClassName:c,lib:d,connectionInProgress:u}){return p=>{const f=e||r,g=n&&p.ctrlKey,v=p.type==="wheel";if(p.button===1&&p.type==="mousedown"&&(af(p,`${d}-flow__node`)||af(p,`${d}-flow__edge`)))return!0;if(!o&&!f&&!a&&!i&&!n||l||u&&!v||af(p,s)&&v||af(p,c)&&(!v||a&&v&&!e)||!n&&p.ctrlKey&&v)return!1;if(!n&&p.type==="touchstart"&&p.touches?.length>1)return p.preventDefault(),!1;if(!f&&!a&&!g&&v||!o&&(p.type==="mousedown"||p.type==="touchstart")||Array.isArray(o)&&!o.includes(p.button)&&p.type==="mousedown")return!1;const w=Array.isArray(o)&&o.includes(p.button)||!p.button||p.button<=1;return(!p.ctrlKey||v)&&w}}function y7e({domNode:e,minZoom:r,maxZoom:n,translateExtent:o,viewport:a,onPanZoom:i,onPanZoomStart:l,onPanZoomEnd:s,onDraggingChange:c}){const d={isZoomingOrPanning:!1,usedRightMouseButton:!1,prevViewport:{},mouseButton:0,timerId:void 0,panScrollTimeout:void 0,isPanScrolling:!1},u=e.getBoundingClientRect(),p=yL().scaleExtent([r,n]).translateExtent(o),f=ka(e).call(p);C({x:a.x,y:a.y,zoom:tf(a.zoom,r,n)},[[0,0],[u.width,u.height]],o);const g=f.on("wheel.zoom"),v=f.on("dblclick.zoom");p.wheelDelta(aF);function w(P,L){return f?new Promise(H=>{p?.interpolate(L?.interpolate==="linear"?E1:mx).transform(l7(f,L?.duration,L?.ease,()=>H(!0)),P)}):Promise.resolve(!1)}function x({noWheelClassName:P,noPanClassName:L,onPaneContextMenu:H,userSelectionActive:M,panOnScroll:V,panOnDrag:B,panOnScrollMode:F,panOnScrollSpeed:q,preventScrolling:G,zoomOnPinch:U,zoomOnScroll:Y,zoomOnDoubleClick:Z,zoomActivationKeyPressed:I,lib:W,onTransformChange:K,connectionInProgress:Q,paneClickDistance:ae,selectionOnDrag:te}){M&&!d.isZoomingOrPanning&&k();const re=V&&!I&&!M;p.clickDistance(te?1/0:!Gi(ae)||ae<0?0:ae);const ue=re?u7e({zoomPanValues:d,noWheelClassName:P,d3Selection:f,d3Zoom:p,panOnScrollMode:F,panOnScrollSpeed:q,zoomOnPinch:U,onPanZoomStart:l,onPanZoom:i,onPanZoomEnd:s}):p7e({noWheelClassName:P,preventScrolling:G,d3ZoomHandler:g});if(f.on("wheel.zoom",ue,{passive:!1}),!M){const ce=h7e({zoomPanValues:d,onDraggingChange:c,onPanZoomStart:l});p.on("start",ce);const pe=f7e({zoomPanValues:d,panOnDrag:B,onPaneContextMenu:!!H,onPanZoom:i,onTransformChange:K});p.on("zoom",pe);const xe=m7e({zoomPanValues:d,panOnDrag:B,panOnScroll:V,onPaneContextMenu:H,onPanZoomEnd:s,onDraggingChange:c});p.on("end",xe)}const _e=g7e({zoomActivationKeyPressed:I,panOnDrag:B,zoomOnScroll:Y,panOnScroll:V,zoomOnDoubleClick:Z,zoomOnPinch:U,userSelectionActive:M,noPanClassName:L,noWheelClassName:P,lib:W,connectionInProgress:Q});p.filter(_e),Z?f.on("dblclick.zoom",v):f.on("dblclick.zoom",null)}function k(){p.on("zoom",null)}async function C(P,L,H){const M=i7(P),V=p?.constrain()(M,L,H);return V&&await w(V),new Promise(B=>B(V))}async function _(P,L){const H=i7(P);return await w(H,L),new Promise(M=>M(H))}function $(P){if(f){const L=i7(P),H=f.property("__zoom");(H.k!==P.zoom||H.x!==P.x||H.y!==P.y)&&p?.transform(f,L,null,{sync:!0})}}function z(){const P=f?mL(f.node()):{x:0,y:0,k:1};return{x:P.x,y:P.y,zoom:P.k}}function j(P,L){return f?new Promise(H=>{p?.interpolate(L?.interpolate==="linear"?E1:mx).scaleTo(l7(f,L?.duration,L?.ease,()=>H(!0)),P)}):Promise.resolve(!1)}function A(P,L){return f?new Promise(H=>{p?.interpolate(L?.interpolate==="linear"?E1:mx).scaleBy(l7(f,L?.duration,L?.ease,()=>H(!0)),P)}):Promise.resolve(!1)}function R(P){p?.scaleExtent(P)}function T(P){p?.translateExtent(P)}function O(P){const L=!Gi(P)||P<0?0:P;p?.clickDistance(L)}return{update:x,destroy:k,setViewport:_,setViewportConstrained:C,getViewport:z,scaleTo:j,scaleBy:A,setScaleExtent:R,setTranslateExtent:T,syncViewport:$,setClickDistance:O}}var lf;(function(e){e.Line="line",e.Handle="handle"})(lf||(lf={}));function v7e({width:e,prevWidth:r,height:n,prevHeight:o,affectsX:a,affectsY:i}){const l=e-r,s=n-o,c=[l>0?1:l<0?-1:0,s>0?1:s<0?-1:0];return l&&a&&(c[0]=c[0]*-1),s&&i&&(c[1]=c[1]*-1),c}function iF(e){const r=e.includes("right")||e.includes("left"),n=e.includes("bottom")||e.includes("top"),o=e.includes("left"),a=e.includes("top");return{isHorizontal:r,isVertical:n,affectsX:o,affectsY:a}}function Qc(e,r){return Math.max(0,r-e)}function Jc(e,r){return Math.max(0,e-r)}function Nx(e,r,n){return Math.max(0,r-e,e-n)}function lF(e,r){return e?!r:r}function b7e(e,r,n,o,a,i,l,s){let{affectsX:c,affectsY:d}=r;const{isHorizontal:u,isVertical:p}=r,f=u&&p,{xSnapped:g,ySnapped:v}=n,{minWidth:w,maxWidth:x,minHeight:k,maxHeight:C}=o,{x:_,y:$,width:z,height:j,aspectRatio:A}=e;let R=Math.floor(u?g-e.pointerX:0),T=Math.floor(p?v-e.pointerY:0);const O=z+(c?-R:R),P=j+(d?-T:T),L=-i[0]*z,H=-i[1]*j;let M=Nx(O,w,x),V=Nx(P,k,C);if(l){let q=0,G=0;c&&R<0?q=Qc(_+R+L,l[0][0]):!c&&R>0&&(q=Jc(_+O+L,l[1][0])),d&&T<0?G=Qc($+T+H,l[0][1]):!d&&T>0&&(G=Jc($+P+H,l[1][1])),M=Math.max(M,q),V=Math.max(V,G)}if(s){let q=0,G=0;c&&R>0?q=Jc(_+R,s[0][0]):!c&&R<0&&(q=Qc(_+O,s[1][0])),d&&T>0?G=Jc($+T,s[0][1]):!d&&T<0&&(G=Qc($+P,s[1][1])),M=Math.max(M,q),V=Math.max(V,G)}if(a){if(u){const q=Nx(O/A,k,C)*A;if(M=Math.max(M,q),l){let G=0;!c&&!d||c&&!d&&f?G=Jc($+H+O/A,l[1][1])*A:G=Qc($+H+(c?R:-R)/A,l[0][1])*A,M=Math.max(M,G)}if(s){let G=0;!c&&!d||c&&!d&&f?G=Qc($+O/A,s[1][1])*A:G=Jc($+(c?R:-R)/A,s[0][1])*A,M=Math.max(M,G)}}if(p){const q=Nx(P*A,w,x)/A;if(V=Math.max(V,q),l){let G=0;!c&&!d||d&&!c&&f?G=Jc(_+P*A+L,l[1][0])/A:G=Qc(_+(d?T:-T)*A+L,l[0][0])/A,V=Math.max(V,G)}if(s){let G=0;!c&&!d||d&&!c&&f?G=Qc(_+P*A,s[1][0])/A:G=Jc(_+(d?T:-T)*A,s[0][0])/A,V=Math.max(V,G)}}}T=T+(T<0?V:-V),R=R+(R<0?M:-M),a&&(f?O>P*A?T=(lF(c,d)?-R:R)/A:R=(lF(c,d)?-T:T)*A:u?(T=R/A,d=c):(R=T*A,c=d));const B=c?_+R:_,F=d?$+T:$;return{width:z+(c?-R:R),height:j+(d?-T:T),x:i[0]*R*(c?-1:1)+B,y:i[1]*T*(d?-1:1)+F}}const sF={width:0,height:0,x:0,y:0},x7e={...sF,pointerX:0,pointerY:0,aspectRatio:1};function w7e(e){return[[0,0],[e.measured.width,e.measured.height]]}function k7e(e,r,n){const o=r.position.x+e.position.x,a=r.position.y+e.position.y,i=e.measured.width??0,l=e.measured.height??0,s=n[0]*i,c=n[1]*l;return[[o-s,a-c],[o+i-s,a+l-c]]}function _7e({domNode:e,nodeId:r,getStoreItems:n,onChange:o,onEnd:a}){const i=ka(e);let l={controlDirection:iF("bottom-right"),boundaries:{minWidth:0,minHeight:0,maxWidth:Number.MAX_VALUE,maxHeight:Number.MAX_VALUE},resizeDirection:void 0,keepAspectRatio:!1};function s({controlPosition:d,boundaries:u,keepAspectRatio:p,resizeDirection:f,onResizeStart:g,onResize:v,onResizeEnd:w,shouldResize:x}){let k={...sF},C={...x7e};l={boundaries:u,resizeDirection:f,keepAspectRatio:p,controlDirection:iF(d)};let _,$=null,z=[],j,A,R,T=!1;const O=LI().on("start",P=>{const{nodeLookup:L,transform:H,snapGrid:M,snapToGrid:V,nodeOrigin:B,paneDomNode:F}=n();if(_=L.get(r),!_)return;$=F?.getBoundingClientRect()??null;const{xSnapped:q,ySnapped:G}=B1(P.sourceEvent,{transform:H,snapGrid:M,snapToGrid:V,containerBounds:$});k={width:_.measured.width??0,height:_.measured.height??0,x:_.position.x??0,y:_.position.y??0},C={...k,pointerX:q,pointerY:G,aspectRatio:k.width/k.height},j=void 0,_.parentId&&(_.extent==="parent"||_.expandParent)&&(j=L.get(_.parentId),A=j&&_.extent==="parent"?w7e(j):void 0),z=[],R=void 0;for(const[U,Y]of L)if(Y.parentId===r&&(z.push({id:U,position:{...Y.position},extent:Y.extent}),Y.extent==="parent"||Y.expandParent)){const Z=k7e(Y,_,Y.origin??B);R?R=[[Math.min(Z[0][0],R[0][0]),Math.min(Z[0][1],R[0][1])],[Math.max(Z[1][0],R[1][0]),Math.max(Z[1][1],R[1][1])]]:R=Z}g?.(P,{...k})}).on("drag",P=>{const{transform:L,snapGrid:H,snapToGrid:M,nodeOrigin:V}=n(),B=B1(P.sourceEvent,{transform:L,snapGrid:H,snapToGrid:M,containerBounds:$}),F=[];if(!_)return;const{x:q,y:G,width:U,height:Y}=k,Z={},I=_.origin??V,{width:W,height:K,x:Q,y:ae}=b7e(C,l.controlDirection,B,l.boundaries,l.keepAspectRatio,I,A,R),te=W!==U,re=K!==Y,ue=Q!==q&&te,_e=ae!==G&&re;if(!ue&&!_e&&!te&&!re)return;if((ue||_e||I[0]===1||I[1]===1)&&(Z.x=ue?Q:k.x,Z.y=_e?ae:k.y,k.x=Z.x,k.y=Z.y,z.length>0)){const xe=Q-q,De=ae-G;for(const Be of z)Be.position={x:Be.position.x-xe+I[0]*(W-U),y:Be.position.y-De+I[1]*(K-Y)},F.push(Be)}if((te||re)&&(Z.width=te&&(!l.resizeDirection||l.resizeDirection==="horizontal")?W:k.width,Z.height=re&&(!l.resizeDirection||l.resizeDirection==="vertical")?K:k.height,k.width=Z.width,k.height=Z.height),j&&_.expandParent){const xe=I[0]*(Z.width??0);Z.x&&Z.x{T&&(w?.(P,{...k}),a?.({...k}),T=!1)});i.call(O)}function c(){i.on(".drag",null)}return{update:s,destroy:c}}function s7(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var cF={exports:{}},c7={},dF={exports:{}},d7={},uF;function S7e(){if(uF)return d7;uF=1;var e=Kr;function r(p,f){return p===f&&(p!==0||1/p===1/f)||p!==p&&f!==f}var n=typeof Object.is=="function"?Object.is:r,o=e.useState,a=e.useEffect,i=e.useLayoutEffect,l=e.useDebugValue;function s(p,f){var g=f(),v=o({inst:{value:g,getSnapshot:f}}),w=v[0].inst,x=v[1];return i(function(){w.value=g,w.getSnapshot=f,c(w)&&x({inst:w})},[p,g,f]),a(function(){return c(w)&&x({inst:w}),p(function(){c(w)&&x({inst:w})})},[p]),l(g),g}function c(p){var f=p.getSnapshot;p=p.value;try{var g=f();return!n(p,g)}catch{return!0}}function d(p,f){return f()}var u=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:s;return d7.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:u,d7}var pF;function hF(){return pF||(pF=1,dF.exports=S7e()),dF.exports}var fF;function E7e(){if(fF)return c7;fF=1;var e=Kr,r=hF();function n(d,u){return d===u&&(d!==0||1/d===1/u)||d!==d&&u!==u}var o=typeof Object.is=="function"?Object.is:n,a=r.useSyncExternalStore,i=e.useRef,l=e.useEffect,s=e.useMemo,c=e.useDebugValue;return c7.useSyncExternalStoreWithSelector=function(d,u,p,f,g){var v=i(null);if(v.current===null){var w={hasValue:!1,value:null};v.current=w}else w=v.current;v=s(function(){function k(j){if(!C){if(C=!0,_=j,j=f(j),g!==void 0&&w.hasValue){var A=w.value;if(g(A,j))return $=A}return $=j}if(A=$,o(_,j))return A;var R=f(j);return g!==void 0&&g(A,R)?(_=j,A):(_=j,$=R)}var C=!1,_,$,z=p===void 0?null:p;return[function(){return k(u())},z===null?void 0:function(){return k(z())}]},[u,p,f,g]);var x=a(d,v[0],v[1]);return l(function(){w.hasValue=!0,w.value=x},[x]),c(x),x},c7}var mF;function C7e(){return mF||(mF=1,cF.exports=E7e()),cF.exports}var gF=C7e();const $7e=s7(gF),z7e={},yF=e=>{let r;const n=new Set,o=(s,c)=>{const d=typeof s=="function"?s(r):s;if(!Object.is(d,r)){const u=r;r=c??(typeof d!="object"||d===null)?d:Object.assign({},r,d),n.forEach(p=>p(r,u))}},a=()=>r,i={setState:o,getState:a,getInitialState:()=>l,subscribe:s=>(n.add(s),()=>n.delete(s)),destroy:()=>{(z7e?"production":void 0)!=="production"&&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()}},l=r=e(o,a,i);return i},R7e=e=>e?yF(e):yF,{useDebugValue:j7e}=Kr,{useSyncExternalStoreWithSelector:T7e}=$7e,A7e=e=>e;function vF(e,r=A7e,n){const o=T7e(e.subscribe,e.getState,e.getServerState||e.getInitialState,r,n);return j7e(o),o}const bF=(e,r)=>{const n=R7e(e),o=(a,i=r)=>vF(n,a,i);return Object.assign(o,n),o},D7e=(e,r)=>e?bF(e,r):bF;function Tr(e,r){if(Object.is(e,r))return!0;if(typeof e!="object"||e===null||typeof r!="object"||r===null)return!1;if(e instanceof Map&&r instanceof Map){if(e.size!==r.size)return!1;for(const[o,a]of e)if(!Object.is(a,r.get(o)))return!1;return!0}if(e instanceof Set&&r instanceof Set){if(e.size!==r.size)return!1;for(const o of e)if(!r.has(o))return!1;return!0}const n=Object.keys(e);if(n.length!==Object.keys(r).length)return!1;for(const o of n)if(!Object.prototype.hasOwnProperty.call(r,o)||!Object.is(e[o],r[o]))return!1;return!0}const Px=S.createContext(null),M7e=Px.Provider,xF=Wl.error001();function Dt(e,r){const n=S.useContext(Px);if(n===null)throw new Error(xF);return vF(n,e,r)}function vr(){const e=S.useContext(Px);if(e===null)throw new Error(xF);return S.useMemo(()=>({getState:e.getState,setState:e.setState,subscribe:e.subscribe}),[e])}const wF={display:"none"},N7e={position:"absolute",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)",clipPath:"inset(100%)"},kF="react-flow__node-desc",_F="react-flow__edge-desc",P7e="react-flow__aria-live",B7e=e=>e.ariaLiveMessage,O7e=e=>e.ariaLabelConfig;function I7e({rfId:e}){const r=Dt(B7e);return y.jsx("div",{id:`${P7e}-${e}`,"aria-live":"assertive","aria-atomic":"true",style:N7e,children:r})}function L7e({rfId:e,disableKeyboardA11y:r}){const n=Dt(O7e);return y.jsxs(y.Fragment,{children:[y.jsx("div",{id:`${kF}-${e}`,style:wF,children:r?n["node.a11yDescription.default"]:n["node.a11yDescription.keyboardDisabled"]}),y.jsx("div",{id:`${_F}-${e}`,style:wF,children:n["edge.a11yDescription.default"]}),!r&&y.jsx(I7e,{rfId:e})]})}const ed=S.forwardRef(({position:e="top-left",children:r,className:n,style:o,...a},i)=>{const l=`${e}`.split("-");return y.jsx("div",{className:dn(["react-flow__panel",n,...l]),style:o,ref:i,...a,children:r})});ed.displayName="Panel";function F7e({proOptions:e,position:r="bottom-right"}){return e?.hideAttribution?null:y.jsx(ed,{position:r,className:"react-flow__attribution","data-message":"Please only hide this attribution when you are subscribed to React Flow Pro: https://pro.reactflow.dev",children:y.jsx("a",{href:"https://reactflow.dev",target:"_blank",rel:"noopener noreferrer","aria-label":"React Flow attribution",children:"React Flow"})})}const V7e=e=>{const r=[],n=[];for(const[,o]of e.nodeLookup)o.selected&&r.push(o.internals.userNode);for(const[,o]of e.edgeLookup)o.selected&&n.push(o);return{selectedNodes:r,selectedEdges:n}},Bx=e=>e.id;function q7e(e,r){return Tr(e.selectedNodes.map(Bx),r.selectedNodes.map(Bx))&&Tr(e.selectedEdges.map(Bx),r.selectedEdges.map(Bx))}function H7e({onSelectionChange:e}){const r=vr(),{selectedNodes:n,selectedEdges:o}=Dt(V7e,q7e);return S.useEffect(()=>{const a={nodes:n,edges:o};e?.(a),r.getState().onSelectionChangeHandlers.forEach(i=>i(a))},[n,o,e]),null}const U7e=e=>!!e.onSelectionChangeHandlers;function W7e({onSelectionChange:e}){const r=Dt(U7e);return e||r?y.jsx(H7e,{onSelectionChange:e}):null}const SF=[0,0],G7e={x:0,y:0,zoom:1},Y7e=["nodes","edges","defaultNodes","defaultEdges","onConnect","onConnectStart","onConnectEnd","onClickConnectStart","onClickConnectEnd","nodesDraggable","autoPanOnNodeFocus","nodesConnectable","nodesFocusable","edgesFocusable","edgesReconnectable","elevateNodesOnSelect","elevateEdgesOnSelect","minZoom","maxZoom","nodeExtent","onNodesChange","onEdgesChange","elementsSelectable","connectionMode","snapGrid","snapToGrid","translateExtent","connectOnClick","defaultEdgeOptions","fitView","fitViewOptions","onNodesDelete","onEdgesDelete","onDelete","onNodeDrag","onNodeDragStart","onNodeDragStop","onSelectionDrag","onSelectionDragStart","onSelectionDragStop","onMoveStart","onMove","onMoveEnd","noPanClassName","nodeOrigin","autoPanOnConnect","autoPanOnNodeDrag","onError","connectionRadius","isValidConnection","selectNodesOnDrag","nodeDragThreshold","connectionDragThreshold","onBeforeDelete","debug","autoPanSpeed","ariaLabelConfig","zIndexMode"],EF=[...Y7e,"rfId"],X7e=e=>({setNodes:e.setNodes,setEdges:e.setEdges,setMinZoom:e.setMinZoom,setMaxZoom:e.setMaxZoom,setTranslateExtent:e.setTranslateExtent,setNodeExtent:e.setNodeExtent,reset:e.reset,setDefaultNodesAndEdges:e.setDefaultNodesAndEdges}),CF={translateExtent:T1,nodeOrigin:SF,minZoom:.5,maxZoom:2,elementsSelectable:!0,noPanClassName:"nopan",rfId:"1"};function Z7e(e){const{setNodes:r,setEdges:n,setMinZoom:o,setMaxZoom:a,setTranslateExtent:i,setNodeExtent:l,reset:s,setDefaultNodesAndEdges:c}=Dt(X7e,Tr),d=vr();S.useEffect(()=>(c(e.defaultNodes,e.defaultEdges),()=>{u.current=CF,s()}),[]);const u=S.useRef(CF);return S.useEffect(()=>{for(const p of EF){const f=e[p],g=u.current[p];f!==g&&(typeof e[p]>"u"||(p==="nodes"?r(f):p==="edges"?n(f):p==="minZoom"?o(f):p==="maxZoom"?a(f):p==="translateExtent"?i(f):p==="nodeExtent"?l(f):p==="ariaLabelConfig"?d.setState({ariaLabelConfig:N8e(f)}):p==="fitView"?d.setState({fitViewQueued:f}):p==="fitViewOptions"?d.setState({fitViewOptions:f}):d.setState({[p]:f})))}u.current=e},EF.map(p=>e[p])),null}function $F(){return typeof window>"u"||!window.matchMedia?null:window.matchMedia("(prefers-color-scheme: dark)")}function K7e(e){const[r,n]=S.useState(e==="system"?null:e);return S.useEffect(()=>{if(e!=="system"){n(e);return}const o=$F(),a=()=>n(o?.matches?"dark":"light");return a(),o?.addEventListener("change",a),()=>{o?.removeEventListener("change",a)}},[e]),r!==null?r:$F()?.matches?"dark":"light"}const zF=typeof document<"u"?document:null;function O1(e=null,r={target:zF,actInsideInputWithModifier:!0}){const[n,o]=S.useState(!1),a=S.useRef(!1),i=S.useRef(new Set([])),[l,s]=S.useMemo(()=>{if(e!==null){const c=(Array.isArray(e)?e:[e]).filter(u=>typeof u=="string").map(u=>u.replace("+",` `).replace(` `,` +`).split(` -`)),d=c.reduce((u,h)=>u.concat(...h),[]);return[c,d]}return[[],[]]},[e]);return E.useEffect(()=>{const c=r?.target??VV,d=r?.actInsideInputWithModifier??!0;if(e!==null){const u=g=>{if(a.current=g.ctrlKey||g.metaKey||g.shiftKey||g.altKey,(!a.current||a.current&&!d)&&KH(g))return!1;const b=UV(g.code,l);if(i.current.add(g[b]),qV(s,i.current,!1)){const x=g.composedPath?.()?.[0]||g.target,w=x?.nodeName==="BUTTON"||x?.nodeName==="A";r.preventDefault!==!1&&(a.current||!w)&&g.preventDefault(),o(!0)}},h=g=>{const b=UV(g.code,l);qV(s,i.current,!0)?(o(!1),i.current.clear()):i.current.delete(g[b]),g.key==="Meta"&&i.current.clear(),a.current=!1},f=()=>{i.current.clear(),o(!1)};return c?.addEventListener("keydown",u),c?.addEventListener("keyup",h),window.addEventListener("blur",f),window.addEventListener("contextmenu",f),()=>{c?.removeEventListener("keydown",u),c?.removeEventListener("keyup",h),window.removeEventListener("blur",f),window.removeEventListener("contextmenu",f)}}},[e,o]),n}function qV(e,r,n){return e.filter(o=>n||o.length===r.size).some(o=>o.every(a=>r.has(a)))}function UV(e,r){return r.includes(e)?"code":"key"}const GTe=()=>{const e=Ar();return E.useMemo(()=>({zoomIn:r=>{const{panZoom:n}=e.getState();return n?n.scaleBy(1.2,{duration:r?.duration}):Promise.resolve(!1)},zoomOut:r=>{const{panZoom:n}=e.getState();return n?n.scaleBy(1/1.2,{duration:r?.duration}):Promise.resolve(!1)},zoomTo:(r,n)=>{const{panZoom:o}=e.getState();return o?o.scaleTo(r,{duration:n?.duration}):Promise.resolve(!1)},getZoom:()=>e.getState().transform[2],setViewport:async(r,n)=>{const{transform:[o,a,i],panZoom:s}=e.getState();return s?(await s.setViewport({x:r.x??o,y:r.y??a,zoom:r.zoom??i},n),Promise.resolve(!0)):Promise.resolve(!1)},getViewport:()=>{const[r,n,o]=e.getState().transform;return{x:r,y:n,zoom:o}},setCenter:async(r,n,o)=>e.getState().setCenter(r,n,o),fitBounds:async(r,n)=>{const{width:o,height:a,minZoom:i,maxZoom:s,panZoom:l}=e.getState(),c=vd(r,o,a,i,s,n?.padding??.1);return l?(await l.setViewport(c,{duration:n?.duration,ease:n?.ease,interpolate:n?.interpolate}),Promise.resolve(!0)):Promise.resolve(!1)},screenToFlowPosition:(r,n={})=>{const{transform:o,snapGrid:a,snapToGrid:i,domNode:s}=e.getState();if(!s)return r;const{x:l,y:c}=s.getBoundingClientRect(),d={x:r.x-l,y:r.y-c},u=n.snapGrid??a,h=n.snapToGrid??i;return w0(d,o,h,u)},flowToScreenPosition:r=>{const{transform:n,domNode:o}=e.getState();if(!o)return r;const{x:a,y:i}=o.getBoundingClientRect(),s=Ex(r,n);return{x:s.x+a,y:s.y+i}}}),[])};function WV(e,r){const n=[],o=new Map,a=[];for(const i of e)if(i.type==="add"){a.push(i);continue}else if(i.type==="remove"||i.type==="replace")o.set(i.id,[i]);else{const s=o.get(i.id);s?s.push(i):o.set(i.id,[i])}for(const i of r){const s=o.get(i.id);if(!s){n.push(i);continue}if(s[0].type==="remove")continue;if(s[0].type==="replace"){n.push({...s[0].item});continue}const l={...i};for(const c of s)XTe(c,l);n.push(l)}return a.length&&a.forEach(i=>{i.index!==void 0?n.splice(i.index,0,{...i.item}):n.push({...i.item})}),n}function XTe(e,r){switch(e.type){case"select":{r.selected=e.selected;break}case"position":{typeof e.position<"u"&&(r.position=e.position),typeof e.dragging<"u"&&(r.dragging=e.dragging);break}case"dimensions":{typeof e.dimensions<"u"&&(r.measured??={},r.measured.width=e.dimensions.width,r.measured.height=e.dimensions.height,e.setAttributes&&((e.setAttributes===!0||e.setAttributes==="width")&&(r.width=e.dimensions.width),(e.setAttributes===!0||e.setAttributes==="height")&&(r.height=e.dimensions.height))),typeof e.resizing=="boolean"&&(r.resizing=e.resizing);break}}}function $x(e,r){return WV(e,r)}function Px(e,r){return WV(e,r)}function pp(e,r){return{id:e,type:"select",selected:r}}function Lf(e,r=new Set,n=!1){const o=[];for(const[a,i]of e){const s=r.has(a);!(i.selected===void 0&&!s)&&i.selected!==s&&(n&&(i.selected=s),o.push(pp(i.id,s)))}return o}function YV({items:e=[],lookup:r}){const n=[],o=new Map(e.map(a=>[a.id,a]));for(const[a,i]of e.entries()){const s=r.get(i.id),l=s?.internals?.userNode??s;l!==void 0&&l!==i&&n.push({id:i.id,item:i,type:"replace"}),l===void 0&&n.push({item:i,type:"add",index:a})}for(const[a]of r)o.get(a)===void 0&&n.push({id:a,type:"remove"});return n}function GV(e){return{id:e.id,type:"remove"}}const XV=e=>kCe(e),KTe=e=>jH(e);function KV(e){return E.forwardRef(e)}const ZTe=typeof window<"u"?E.useLayoutEffect:E.useEffect;function ZV(e){const[r,n]=E.useState(BigInt(0)),[o]=E.useState(()=>QTe(()=>n(a=>a+BigInt(1))));return ZTe(()=>{const a=o.get();a.length&&(e(a),o.reset())},[r]),o}function QTe(e){let r=[];return{get:()=>r,reset:()=>{r=[]},push:n=>{r.push(n),e()}}}const QV=E.createContext(null);function JTe({children:e}){const r=Ar(),n=E.useCallback(l=>{const{nodes:c=[],setNodes:d,hasDefaultNodes:u,onNodesChange:h,nodeLookup:f,fitViewQueued:g}=r.getState();let b=c;for(const w of l)b=typeof w=="function"?w(b):w;const x=YV({items:b,lookup:f});u&&d(b),x.length>0?h?.(x):g&&window.requestAnimationFrame(()=>{const{fitViewQueued:w,nodes:k,setNodes:C}=r.getState();w&&C(k)})},[]),o=ZV(n),a=E.useCallback(l=>{const{edges:c=[],setEdges:d,hasDefaultEdges:u,onEdgesChange:h,edgeLookup:f}=r.getState();let g=c;for(const b of l)g=typeof b=="function"?b(g):b;u?d(g):h&&h(YV({items:g,lookup:f}))},[]),i=ZV(a),s=E.useMemo(()=>({nodeQueue:o,edgeQueue:i}),[]);return y.jsx(QV.Provider,{value:s,children:e})}function eAe(){const e=E.useContext(QV);if(!e)throw new Error("useBatchContext must be used within a BatchProvider");return e}const tAe=e=>!!e.panZoom;function Bf(){const e=GTe(),r=Ar(),n=eAe(),o=qt(tAe),a=E.useMemo(()=>{const i=h=>r.getState().nodeLookup.get(h),s=h=>{n.nodeQueue.push(h)},l=h=>{n.edgeQueue.push(h)},c=h=>{const{nodeLookup:f,nodeOrigin:g}=r.getState(),b=XV(h)?h:f.get(h.id),x=b.parentId?YH(b.position,b.measured,b.parentId,f,g):b.position,w={...b,position:x,width:b.measured?.width??b.width,height:b.measured?.height??b.height};return up(w)},d=(h,f,g={replace:!1})=>{s(b=>b.map(x=>{if(x.id===h){const w=typeof f=="function"?f(x):f;return g.replace&&XV(w)?w:{...x,...w}}return x}))},u=(h,f,g={replace:!1})=>{l(b=>b.map(x=>{if(x.id===h){const w=typeof f=="function"?f(x):f;return g.replace&&KTe(w)?w:{...x,...w}}return x}))};return{getNodes:()=>r.getState().nodes.map(h=>({...h})),getNode:h=>i(h)?.internals.userNode,getInternalNode:i,getEdges:()=>{const{edges:h=[]}=r.getState();return h.map(f=>({...f}))},getEdge:h=>r.getState().edgeLookup.get(h),setNodes:s,setEdges:l,addNodes:h=>{const f=Array.isArray(h)?h:[h];n.nodeQueue.push(g=>[...g,...f])},addEdges:h=>{const f=Array.isArray(h)?h:[h];n.edgeQueue.push(g=>[...g,...f])},toObject:()=>{const{nodes:h=[],edges:f=[],transform:g}=r.getState(),[b,x,w]=g;return{nodes:h.map(k=>({...k})),edges:f.map(k=>({...k})),viewport:{x:b,y:x,zoom:w}}},deleteElements:async({nodes:h=[],edges:f=[]})=>{const{nodes:g,edges:b,onNodesDelete:x,onEdgesDelete:w,triggerNodeChanges:k,triggerEdgeChanges:C,onDelete:_,onBeforeDelete:T}=r.getState(),{nodes:A,edges:R}=await CCe({nodesToRemove:h,edgesToRemove:f,nodes:g,edges:b,onBeforeDelete:T}),D=R.length>0,N=A.length>0;if(D){const P=R.map(GV);w?.(R),C(P)}if(N){const P=A.map(GV);x?.(A),k(P)}return(N||D)&&_?.({nodes:A,edges:R}),{deletedNodes:A,deletedEdges:R}},getIntersectingNodes:(h,f=!0,g)=>{const b=UH(h),x=b?h:c(h),w=g!==void 0;return x?(g||r.getState().nodes).filter(k=>{const C=r.getState().nodeLookup.get(k.id);if(C&&!b&&(k.id===h.id||!C.internals.positionAbsolute))return!1;const _=up(w?k:C),T=v0(_,x);return f&&T>0||T>=_.width*_.height||T>=x.width*x.height}):[]},isNodeIntersecting:(h,f,g=!0)=>{const b=UH(h)?h:c(h);if(!b)return!1;const x=v0(b,f);return g&&x>0||x>=f.width*f.height||x>=b.width*b.height},updateNode:d,updateNodeData:(h,f,g={replace:!1})=>{d(h,b=>{const x=typeof f=="function"?f(b):f;return g.replace?{...b,data:x}:{...b,data:{...b.data,...x}}},g)},updateEdge:u,updateEdgeData:(h,f,g={replace:!1})=>{u(h,b=>{const x=typeof f=="function"?f(b):f;return g.replace?{...b,data:x}:{...b,data:{...b.data,...x}}},g)},getNodesBounds:h=>{const{nodeLookup:f,nodeOrigin:g}=r.getState();return LH(h,{nodeLookup:f,nodeOrigin:g})},getHandleConnections:({type:h,id:f,nodeId:g})=>Array.from(r.getState().connectionLookup.get(`${g}-${h}${f?`-${f}`:""}`)?.values()??[]),getNodeConnections:({type:h,handleId:f,nodeId:g})=>Array.from(r.getState().connectionLookup.get(`${g}${h?f?`-${h}-${f}`:`-${h}`:""}`)?.values()??[]),fitView:async h=>{const f=r.getState().fitViewResolver??NCe();return r.setState({fitViewQueued:!0,fitViewOptions:h,fitViewResolver:f}),n.nodeQueue.push(g=>[...g]),f.promise}}},[]);return E.useMemo(()=>({...a,...e,viewportInitialized:o}),[o])}const JV=e=>e.selected,rAe=typeof window<"u"?window:void 0;function nAe({deleteKeyCode:e,multiSelectionKeyCode:r}){const n=Ar(),{deleteElements:o}=Bf(),a=E0(e,{actInsideInputWithModifier:!1}),i=E0(r,{target:rAe});E.useEffect(()=>{if(a){const{edges:s,nodes:l}=n.getState();o({nodes:l.filter(JV),edges:s.filter(JV)}),n.setState({nodesSelectionActive:!1})}},[a]),E.useEffect(()=>{n.setState({multiSelectionActive:i})},[i])}function oAe(e){const r=Ar();E.useEffect(()=>{const n=()=>{if(!e.current||!(e.current.checkVisibility?.()??!0))return!1;const o=p7(e.current);(o.height===0||o.width===0)&&r.getState().onError?.("004",ul.error004()),r.setState({width:o.width||500,height:o.height||500})};if(e.current){n(),window.addEventListener("resize",n);const o=new ResizeObserver(()=>n());return o.observe(e.current),()=>{window.removeEventListener("resize",n),o&&e.current&&o.unobserve(e.current)}}},[])}const Mx={position:"absolute",width:"100%",height:"100%",top:0,left:0},aAe=e=>({userSelectionActive:e.userSelectionActive,lib:e.lib,connectionInProgress:e.connection.inProgress});function iAe({onPaneContextMenu:e,zoomOnScroll:r=!0,zoomOnPinch:n=!0,panOnScroll:o=!1,panOnScrollSpeed:a=.5,panOnScrollMode:i=cp.Free,zoomOnDoubleClick:s=!0,panOnDrag:l=!0,defaultViewport:c,translateExtent:d,minZoom:u,maxZoom:h,zoomActivationKeyCode:f,preventScrolling:g=!0,children:b,noWheelClassName:x,noPanClassName:w,onViewportChange:k,isControlledViewport:C,paneClickDistance:_}){const T=Ar(),A=E.useRef(null),{userSelectionActive:R,lib:D,connectionInProgress:N}=qt(aAe,Kr),P=E0(f),O=E.useRef();oAe(A);const F=E.useCallback(L=>{k?.({x:L[0],y:L[1],zoom:L[2]}),C||T.setState({transform:L})},[k,C]);return E.useEffect(()=>{if(A.current){O.current=hTe({domNode:A.current,minZoom:u,maxZoom:h,translateExtent:d,viewport:c,paneClickDistance:_,onDraggingChange:V=>T.setState({paneDragging:V}),onPanZoomStart:(V,I)=>{const{onViewportChangeStart:H,onMoveStart:q}=T.getState();q?.(V,I),H?.(I)},onPanZoom:(V,I)=>{const{onViewportChange:H,onMove:q}=T.getState();q?.(V,I),H?.(I)},onPanZoomEnd:(V,I)=>{const{onViewportChangeEnd:H,onMoveEnd:q}=T.getState();q?.(V,I),H?.(I)}});const{x:L,y:U,zoom:M}=O.current.getViewport();return T.setState({panZoom:O.current,transform:[L,U,M],domNode:A.current.closest(".react-flow")}),()=>{O.current?.destroy()}}},[]),E.useEffect(()=>{O.current?.update({onPaneContextMenu:e,zoomOnScroll:r,zoomOnPinch:n,panOnScroll:o,panOnScrollSpeed:a,panOnScrollMode:i,zoomOnDoubleClick:s,panOnDrag:l,zoomActivationKeyPressed:P,preventScrolling:g,noPanClassName:w,userSelectionActive:R,noWheelClassName:x,lib:D,onTransformChange:F,connectionInProgress:N})},[e,r,n,o,a,i,s,l,P,g,w,R,x,D,F,N]),y.jsx("div",{className:"react-flow__renderer",ref:A,style:Mx,children:b})}const sAe=e=>({userSelectionActive:e.userSelectionActive,userSelectionRect:e.userSelectionRect});function lAe(){const{userSelectionActive:e,userSelectionRect:r}=qt(sAe,Kr);return e&&r?y.jsx("div",{className:"react-flow__selection react-flow__container",style:{width:r.width,height:r.height,transform:`translate(${r.x}px, ${r.y}px)`}}):null}const C7=(e,r)=>n=>{n.target===r.current&&e?.(n)},cAe=e=>({userSelectionActive:e.userSelectionActive,elementsSelectable:e.elementsSelectable,connectionInProgress:e.connection.inProgress,dragging:e.paneDragging});function dAe({isSelecting:e,selectionKeyPressed:r,selectionMode:n=y0.Full,panOnDrag:o,selectionOnDrag:a,onSelectionStart:i,onSelectionEnd:s,onPaneClick:l,onPaneContextMenu:c,onPaneScroll:d,onPaneMouseEnter:u,onPaneMouseMove:h,onPaneMouseLeave:f,children:g}){const b=Ar(),{userSelectionActive:x,elementsSelectable:w,dragging:k,connectionInProgress:C}=qt(cAe,Kr),_=w&&(e||x),T=E.useRef(null),A=E.useRef(),R=E.useRef(new Set),D=E.useRef(new Set),N=E.useRef(!1),P=E.useRef(!1),O=q=>{if(N.current||C){N.current=!1;return}l?.(q),b.getState().resetSelectedElements(),b.setState({nodesSelectionActive:!1})},F=q=>{if(Array.isArray(o)&&o?.includes(2)){q.preventDefault();return}c?.(q)},L=d?q=>d(q):void 0,U=q=>{(a&&T.current===q.target||!a||r)&&q.stopPropagation()},M=q=>{const{resetSelectedElements:Z,domNode:W}=b.getState();A.current=W?.getBoundingClientRect();const G=q.target!==T.current&&!!q.target.closest(".nokey"),K=a&&T.current===q.target||!a||r;if(!w||!e||q.button!==0||!A.current||G||!K||!q.isPrimary)return;q.stopPropagation(),q.preventDefault(),q.target?.setPointerCapture?.(q.pointerId),P.current=!0,N.current=!1;const{x:j,y:Y}=ls(q.nativeEvent,A.current);Z(),b.setState({userSelectionRect:{width:0,height:0,startX:j,startY:Y,x:j,y:Y}}),i?.(q)},V=q=>{const{userSelectionRect:Z,transform:W,nodeLookup:G,edgeLookup:K,connectionLookup:j,triggerNodeChanges:Y,triggerEdgeChanges:Q,defaultEdgeOptions:J}=b.getState();if(!A.current||!Z)return;N.current=!0;const{x:ie,y:ne}=ls(q.nativeEvent,A.current),{startX:re,startY:ge}=Z,De={startX:re,startY:ge,x:ieIe.id)),D.current=new Set;const Te=J?.selectable??!0;for(const Ie of R.current){const Ze=j.get(Ie);if(Ze)for(const{edgeId:rt}of Ze.values()){const Rt=K.get(rt);Rt&&(Rt.selectable??Te)&&D.current.add(rt)}}if(!GH(he,R.current)){const Ie=Lf(G,R.current,!0);Y(Ie)}if(!GH(me,D.current)){const Ie=Lf(K,D.current);Q(Ie)}b.setState({userSelectionRect:De,userSelectionActive:!0,nodesSelectionActive:!1})},I=q=>{if(q.button!==0||!P.current)return;q.target?.releasePointerCapture?.(q.pointerId);const{userSelectionRect:Z}=b.getState();!x&&Z&&q.target===T.current&&O?.(q),b.setState({userSelectionActive:!1,userSelectionRect:null,nodesSelectionActive:R.current.size>0}),s?.(q),(r||a)&&(N.current=!1),P.current=!1},H=o===!0||Array.isArray(o)&&o.includes(0);return y.jsxs("div",{className:_n(["react-flow__pane",{draggable:H,dragging:k,selection:e}]),onClick:_?void 0:C7(O,T),onContextMenu:C7(F,T),onWheel:C7(L,T),onPointerEnter:_?void 0:u,onPointerMove:_?V:h,onPointerUp:_?I:void 0,onPointerDownCapture:_?M:void 0,onClickCapture:_?U:void 0,onPointerLeave:f,ref:T,style:Mx,children:[g,y.jsx(lAe,{})]})}function T7({id:e,store:r,unselect:n=!1,nodeRef:o}){const{addSelectedNodes:a,unselectNodesAndEdges:i,multiSelectionActive:s,nodeLookup:l,onError:c}=r.getState(),d=l.get(e);if(!d){c?.("012",ul.error012(e));return}r.setState({nodesSelectionActive:!1}),d.selected?(n||d.selected&&s)&&(i({nodes:[d],edges:[]}),requestAnimationFrame(()=>o?.current?.blur())):a([e])}function eq({nodeRef:e,disabled:r=!1,noDragClassName:n,handleSelector:o,nodeId:a,isSelectable:i,nodeClickDistance:s}){const l=Ar(),[c,d]=E.useState(!1),u=E.useRef();return E.useEffect(()=>{u.current=JCe({getStoreItems:()=>l.getState(),onNodeMouseDown:h=>{T7({id:h,store:l,nodeRef:e})},onDragStart:()=>{d(!0)},onDragStop:()=>{d(!1)}})},[]),E.useEffect(()=>{if(r)u.current?.destroy();else if(e.current)return u.current?.update({noDragClassName:n,handleSelector:o,domNode:e.current,isSelectable:i,nodeId:a,nodeClickDistance:s}),()=>{u.current?.destroy()}},[n,o,r,i,e,a]),c}const uAe=e=>r=>r.selected&&(r.draggable||e&&typeof r.draggable>"u");function tq(){const e=Ar();return E.useCallback(r=>{const{nodeExtent:n,snapToGrid:o,snapGrid:a,nodesDraggable:i,onError:s,updateNodePositions:l,nodeLookup:c,nodeOrigin:d}=e.getState(),u=new Map,h=uAe(i),f=o?a[0]:5,g=o?a[1]:5,b=r.direction.x*f*r.factor,x=r.direction.y*g*r.factor;for(const[,w]of c){if(!h(w))continue;let k={x:w.internals.positionAbsolute.x+b,y:w.internals.positionAbsolute.y+x};o&&(k=x0(k,a));const{position:C,positionAbsolute:_}=BH({nodeId:w.id,nextPosition:k,nodeLookup:c,nodeExtent:n,nodeOrigin:d,onError:s});w.position=C,w.internals.positionAbsolute=_,u.set(w.id,w)}l(u)},[])}const A7=E.createContext(null),pAe=A7.Provider;A7.Consumer;const R7=()=>E.useContext(A7),hAe=e=>({connectOnClick:e.connectOnClick,noPanClassName:e.noPanClassName,rfId:e.rfId}),fAe=(e,r,n)=>o=>{const{connectionClickStartHandle:a,connectionMode:i,connection:s}=o,{fromHandle:l,toHandle:c,isValid:d}=s,u=c?.nodeId===e&&c?.id===r&&c?.type===n;return{connectingFrom:l?.nodeId===e&&l?.id===r&&l?.type===n,connectingTo:u,clickConnecting:a?.nodeId===e&&a?.id===r&&a?.type===n,isPossibleEndHandle:i===Df.Strict?l?.type!==n:e!==l?.nodeId||r!==l?.id,connectionInProcess:!!l,clickConnectionInProcess:!!a,valid:u&&d}};function mAe({type:e="source",position:r=tt.Top,isValidConnection:n,isConnectable:o=!0,isConnectableStart:a=!0,isConnectableEnd:i=!0,id:s,onConnect:l,children:c,className:d,onMouseDown:u,onTouchStart:h,...f},g){const b=s||null,x=e==="target",w=Ar(),k=R7(),{connectOnClick:C,noPanClassName:_,rfId:T}=qt(hAe,Kr),{connectingFrom:A,connectingTo:R,clickConnecting:D,isPossibleEndHandle:N,connectionInProcess:P,clickConnectionInProcess:O,valid:F}=qt(fAe(k,b,e),Kr);k||w.getState().onError?.("010",ul.error010());const L=V=>{const{defaultEdgeOptions:I,onConnect:H,hasDefaultEdges:q}=w.getState(),Z={...I,...V};if(q){const{edges:W,setEdges:G}=w.getState();G(OCe(Z,W))}H?.(Z),l?.(Z)},U=V=>{if(!k)return;const I=ZH(V.nativeEvent);if(a&&(I&&V.button===0||!I)){const H=w.getState();x7.onPointerDown(V.nativeEvent,{handleDomNode:V.currentTarget,autoPanOnConnect:H.autoPanOnConnect,connectionMode:H.connectionMode,connectionRadius:H.connectionRadius,domNode:H.domNode,nodeLookup:H.nodeLookup,lib:H.lib,isTarget:x,handleId:b,nodeId:k,flowId:H.rfId,panBy:H.panBy,cancelConnection:H.cancelConnection,onConnectStart:H.onConnectStart,onConnectEnd:H.onConnectEnd,updateConnection:H.updateConnection,onConnect:L,isValidConnection:n||H.isValidConnection,getTransform:()=>w.getState().transform,getFromHandle:()=>w.getState().connection.fromHandle,autoPanSpeed:H.autoPanSpeed,dragThreshold:H.connectionDragThreshold})}I?u?.(V):h?.(V)},M=V=>{const{onClickConnectStart:I,onClickConnectEnd:H,connectionClickStartHandle:q,connectionMode:Z,isValidConnection:W,lib:G,rfId:K,nodeLookup:j,connection:Y}=w.getState();if(!k||!q&&!a)return;if(!q){I?.(V.nativeEvent,{nodeId:k,handleId:b,handleType:e}),w.setState({connectionClickStartHandle:{nodeId:k,type:e,id:b}});return}const Q=XH(V.target),J=n||W,{connection:ie,isValid:ne}=x7.isValid(V.nativeEvent,{handle:{nodeId:k,id:b,type:e},connectionMode:Z,fromNodeId:q.nodeId,fromHandleId:q.id||null,fromType:q.type,isValidConnection:J,flowId:K,doc:Q,lib:G,nodeLookup:j});ne&&ie&&L(ie);const re=structuredClone(Y);delete re.inProgress,re.toPosition=re.toHandle?re.toHandle.position:null,H?.(V,re),w.setState({connectionClickStartHandle:null})};return y.jsx("div",{"data-handleid":b,"data-nodeid":k,"data-handlepos":r,"data-id":`${T}-${k}-${b}-${e}`,className:_n(["react-flow__handle",`react-flow__handle-${r}`,"nodrag",_,d,{source:!x,target:x,connectable:o,connectablestart:a,connectableend:i,clickconnecting:D,connectingfrom:A,connectingto:R,valid:F,connectionindicator:o&&(!P||N)&&(P||O?i:a)}]),onMouseDown:U,onTouchStart:U,onClick:C?M:void 0,ref:g,...f,children:c})}const yo=E.memo(KV(mAe));function gAe({data:e,isConnectable:r,sourcePosition:n=tt.Bottom}){return y.jsxs(y.Fragment,{children:[e?.label,y.jsx(yo,{type:"source",position:n,isConnectable:r})]})}function yAe({data:e,isConnectable:r,targetPosition:n=tt.Top,sourcePosition:o=tt.Bottom}){return y.jsxs(y.Fragment,{children:[y.jsx(yo,{type:"target",position:n,isConnectable:r}),e?.label,y.jsx(yo,{type:"source",position:o,isConnectable:r})]})}function bAe(){return null}function vAe({data:e,isConnectable:r,targetPosition:n=tt.Top}){return y.jsxs(y.Fragment,{children:[y.jsx(yo,{type:"target",position:n,isConnectable:r}),e?.label]})}const zx={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}},rq={input:gAe,default:yAe,output:vAe,group:bAe};function xAe(e){return e.internals.handleBounds===void 0?{width:e.width??e.initialWidth??e.style?.width,height:e.height??e.initialHeight??e.style?.height}:{width:e.width??e.style?.width,height:e.height??e.style?.height}}const wAe=e=>{const{width:r,height:n,x:o,y:a}=$f(e.nodeLookup,{filter:i=>!!i.selected});return{width:ss(r)?r:null,height:ss(n)?n:null,userSelectionActive:e.userSelectionActive,transformString:`translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]}) translate(${o}px,${a}px)`}};function kAe({onSelectionContextMenu:e,noPanClassName:r,disableKeyboardA11y:n}){const o=Ar(),{width:a,height:i,transformString:s,userSelectionActive:l}=qt(wAe,Kr),c=tq(),d=E.useRef(null);if(E.useEffect(()=>{n||d.current?.focus({preventScroll:!0})},[n]),eq({nodeRef:d}),l||!a||!i)return null;const u=e?f=>{const g=o.getState().nodes.filter(b=>b.selected);e(f,g)}:void 0,h=f=>{Object.prototype.hasOwnProperty.call(zx,f.key)&&(f.preventDefault(),c({direction:zx[f.key],factor:f.shiftKey?4:1}))};return y.jsx("div",{className:_n(["react-flow__nodesselection","react-flow__container",r]),style:{transform:s},children:y.jsx("div",{ref:d,className:"react-flow__nodesselection-rect",onContextMenu:u,tabIndex:n?void 0:-1,onKeyDown:n?void 0:h,style:{width:a,height:i}})})}const nq=typeof window<"u"?window:void 0,_Ae=e=>({nodesSelectionActive:e.nodesSelectionActive,userSelectionActive:e.userSelectionActive});function oq({children:e,onPaneClick:r,onPaneMouseEnter:n,onPaneMouseMove:o,onPaneMouseLeave:a,onPaneContextMenu:i,onPaneScroll:s,paneClickDistance:l,deleteKeyCode:c,selectionKeyCode:d,selectionOnDrag:u,selectionMode:h,onSelectionStart:f,onSelectionEnd:g,multiSelectionKeyCode:b,panActivationKeyCode:x,zoomActivationKeyCode:w,elementsSelectable:k,zoomOnScroll:C,zoomOnPinch:_,panOnScroll:T,panOnScrollSpeed:A,panOnScrollMode:R,zoomOnDoubleClick:D,panOnDrag:N,defaultViewport:P,translateExtent:O,minZoom:F,maxZoom:L,preventScrolling:U,onSelectionContextMenu:M,noWheelClassName:V,noPanClassName:I,disableKeyboardA11y:H,onViewportChange:q,isControlledViewport:Z}){const{nodesSelectionActive:W,userSelectionActive:G}=qt(_Ae),K=E0(d,{target:nq}),j=E0(x,{target:nq}),Y=j||N,Q=j||T,J=u&&Y!==!0,ie=K||G||J;return nAe({deleteKeyCode:c,multiSelectionKeyCode:b}),y.jsx(iAe,{onPaneContextMenu:i,elementsSelectable:k,zoomOnScroll:C,zoomOnPinch:_,panOnScroll:Q,panOnScrollSpeed:A,panOnScrollMode:R,zoomOnDoubleClick:D,panOnDrag:!K&&Y,defaultViewport:P,translateExtent:O,minZoom:F,maxZoom:L,zoomActivationKeyCode:w,preventScrolling:U,noWheelClassName:V,noPanClassName:I,onViewportChange:q,isControlledViewport:Z,paneClickDistance:l,children:y.jsxs(dAe,{onSelectionStart:f,onSelectionEnd:g,onPaneClick:r,onPaneMouseEnter:n,onPaneMouseMove:o,onPaneMouseLeave:a,onPaneContextMenu:i,onPaneScroll:s,panOnDrag:Y,isSelecting:!!ie,selectionMode:h,selectionKeyPressed:K,selectionOnDrag:J,children:[e,W&&y.jsx(kAe,{onSelectionContextMenu:M,noPanClassName:I,disableKeyboardA11y:H})]})})}oq.displayName="FlowRenderer";const EAe=E.memo(oq),SAe=e=>r=>e?d7(r.nodeLookup,{x:0,y:0,width:r.width,height:r.height},r.transform,!0).map(n=>n.id):Array.from(r.nodeLookup.keys());function CAe(e){return qt(E.useCallback(SAe(e),[e]),Kr)}const TAe=e=>e.updateNodeInternals;function AAe(){const e=qt(TAe),[r]=E.useState(()=>typeof ResizeObserver>"u"?null:new ResizeObserver(n=>{const o=new Map;n.forEach(a=>{const i=a.target.getAttribute("data-id");o.set(i,{id:i,nodeElement:a.target,force:!0})}),e(o)}));return E.useEffect(()=>()=>{r?.disconnect()},[r]),r}function RAe({node:e,nodeType:r,hasDimensions:n,resizeObserver:o}){const a=Ar(),i=E.useRef(null),s=E.useRef(null),l=E.useRef(e.sourcePosition),c=E.useRef(e.targetPosition),d=E.useRef(r),u=n&&!!e.internals.handleBounds;return E.useEffect(()=>{i.current&&!e.hidden&&(!u||s.current!==i.current)&&(s.current&&o?.unobserve(s.current),o?.observe(i.current),s.current=i.current)},[u,e.hidden]),E.useEffect(()=>()=>{s.current&&(o?.unobserve(s.current),s.current=null)},[]),E.useEffect(()=>{if(i.current){const h=d.current!==r,f=l.current!==e.sourcePosition,g=c.current!==e.targetPosition;(h||f||g)&&(d.current=r,l.current=e.sourcePosition,c.current=e.targetPosition,a.getState().updateNodeInternals(new Map([[e.id,{id:e.id,nodeElement:i.current,force:!0}]])))}},[e.id,r,e.sourcePosition,e.targetPosition]),i}function NAe({id:e,onClick:r,onMouseEnter:n,onMouseMove:o,onMouseLeave:a,onContextMenu:i,onDoubleClick:s,nodesDraggable:l,elementsSelectable:c,nodesConnectable:d,nodesFocusable:u,resizeObserver:h,noDragClassName:f,noPanClassName:g,disableKeyboardA11y:b,rfId:x,nodeTypes:w,nodeClickDistance:k,onError:C}){const{node:_,internals:T,isParent:A}=qt(ne=>{const re=ne.nodeLookup.get(e),ge=ne.parentLookup.has(e);return{node:re,internals:re.internals,isParent:ge}},Kr);let R=_.type||"default",D=w?.[R]||rq[R];D===void 0&&(C?.("003",ul.error003(R)),R="default",D=w?.default||rq.default);const N=!!(_.draggable||l&&typeof _.draggable>"u"),P=!!(_.selectable||c&&typeof _.selectable>"u"),O=!!(_.connectable||d&&typeof _.connectable>"u"),F=!!(_.focusable||u&&typeof _.focusable>"u"),L=Ar(),U=WH(_),M=RAe({node:_,nodeType:R,hasDimensions:U,resizeObserver:h}),V=eq({nodeRef:M,disabled:_.hidden||!N,noDragClassName:f,handleSelector:_.dragHandle,nodeId:e,isSelectable:P,nodeClickDistance:k}),I=tq();if(_.hidden)return null;const H=ao(_),q=xAe(_),Z=P||N||r||n||o||a,W=n?ne=>n(ne,{...T.userNode}):void 0,G=o?ne=>o(ne,{...T.userNode}):void 0,K=a?ne=>a(ne,{...T.userNode}):void 0,j=i?ne=>i(ne,{...T.userNode}):void 0,Y=s?ne=>s(ne,{...T.userNode}):void 0,Q=ne=>{const{selectNodesOnDrag:re,nodeDragThreshold:ge}=L.getState();P&&(!re||!N||ge>0)&&T7({id:e,store:L,nodeRef:M}),r&&r(ne,{...T.userNode})},J=ne=>{if(!(KH(ne.nativeEvent)||b)){if(PH.includes(ne.key)&&P){const re=ne.key==="Escape";T7({id:e,store:L,unselect:re,nodeRef:M})}else if(N&&_.selected&&Object.prototype.hasOwnProperty.call(zx,ne.key)){ne.preventDefault();const{ariaLabelConfig:re}=L.getState();L.setState({ariaLiveMessage:re["node.a11yDescription.ariaLiveMessage"]({direction:ne.key.replace("Arrow","").toLowerCase(),x:~~T.positionAbsolute.x,y:~~T.positionAbsolute.y})}),I({direction:zx[ne.key],factor:ne.shiftKey?4:1})}}},ie=()=>{if(b||!M.current?.matches(":focus-visible"))return;const{transform:ne,width:re,height:ge,autoPanOnNodeFocus:De,setCenter:he}=L.getState();De&&(d7(new Map([[e,_]]),{x:0,y:0,width:re,height:ge},ne,!0).length>0||he(_.position.x+H.width/2,_.position.y+H.height/2,{zoom:ne[2]}))};return y.jsx("div",{className:_n(["react-flow__node",`react-flow__node-${R}`,{[g]:N},_.className,{selected:_.selected,selectable:P,parent:A,draggable:N,dragging:V}]),ref:M,style:{zIndex:T.z,transform:`translate(${T.positionAbsolute.x}px,${T.positionAbsolute.y}px)`,pointerEvents:Z?"all":"none",visibility:U?"visible":"hidden",..._.style,...q},"data-id":e,"data-testid":`rf__node-${e}`,onMouseEnter:W,onMouseMove:G,onMouseLeave:K,onContextMenu:j,onClick:Q,onDoubleClick:Y,onKeyDown:F?J:void 0,tabIndex:F?0:void 0,onFocus:F?ie:void 0,role:_.ariaRole??(F?"group":void 0),"aria-roledescription":"node","aria-describedby":b?void 0:`${OV}-${x}`,"aria-label":_.ariaLabel,..._.domAttributes,children:y.jsx(pAe,{value:e,children:y.jsx(D,{id:e,data:_.data,type:R,positionAbsoluteX:T.positionAbsolute.x,positionAbsoluteY:T.positionAbsolute.y,selected:_.selected??!1,selectable:P,draggable:N,deletable:_.deletable??!0,isConnectable:O,sourcePosition:_.sourcePosition,targetPosition:_.targetPosition,dragging:V,dragHandle:_.dragHandle,zIndex:T.z,parentId:_.parentId,...H})})})}var DAe=E.memo(NAe);const $Ae=e=>({nodesDraggable:e.nodesDraggable,nodesConnectable:e.nodesConnectable,nodesFocusable:e.nodesFocusable,elementsSelectable:e.elementsSelectable,onError:e.onError});function aq(e){const{nodesDraggable:r,nodesConnectable:n,nodesFocusable:o,elementsSelectable:a,onError:i}=qt($Ae,Kr),s=CAe(e.onlyRenderVisibleElements),l=AAe();return y.jsx("div",{className:"react-flow__nodes",style:Mx,children:s.map(c=>y.jsx(DAe,{id:c,nodeTypes:e.nodeTypes,nodeExtent:e.nodeExtent,onClick:e.onNodeClick,onMouseEnter:e.onNodeMouseEnter,onMouseMove:e.onNodeMouseMove,onMouseLeave:e.onNodeMouseLeave,onContextMenu:e.onNodeContextMenu,onDoubleClick:e.onNodeDoubleClick,noDragClassName:e.noDragClassName,noPanClassName:e.noPanClassName,rfId:e.rfId,disableKeyboardA11y:e.disableKeyboardA11y,resizeObserver:l,nodesDraggable:r,nodesConnectable:n,nodesFocusable:o,elementsSelectable:a,nodeClickDistance:e.nodeClickDistance,onError:i},c))})}aq.displayName="NodeRenderer";const PAe=E.memo(aq);function MAe(e){return qt(E.useCallback(r=>{if(!e)return r.edges.map(o=>o.id);const n=[];if(r.width&&r.height)for(const o of r.edges){const a=r.nodeLookup.get(o.source),i=r.nodeLookup.get(o.target);a&&i&&MCe({sourceNode:a,targetNode:i,width:r.width,height:r.height,transform:r.transform})&&n.push(o.id)}return n},[e]),Kr)}const zAe=({color:e="none",strokeWidth:r=1})=>{const n={strokeWidth:r,...e&&{stroke:e}};return y.jsx("polyline",{className:"arrow",style:n,strokeLinecap:"round",fill:"none",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4"})},IAe=({color:e="none",strokeWidth:r=1})=>{const n={strokeWidth:r,...e&&{stroke:e,fill:e}};return y.jsx("polyline",{className:"arrowclosed",style:n,strokeLinecap:"round",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4 -5,-4"})},iq={[xx.Arrow]:zAe,[xx.ArrowClosed]:IAe};function OAe(e){const r=Ar();return E.useMemo(()=>Object.prototype.hasOwnProperty.call(iq,e)?iq[e]:(r.getState().onError?.("009",ul.error009(e)),null),[e])}const jAe=({id:e,type:r,color:n,width:o=12.5,height:a=12.5,markerUnits:i="strokeWidth",strokeWidth:s,orient:l="auto-start-reverse"})=>{const c=OAe(r);return c?y.jsx("marker",{className:"react-flow__arrowhead",id:e,markerWidth:`${o}`,markerHeight:`${a}`,viewBox:"-10 -10 20 20",markerUnits:i,orient:l,refX:"0",refY:"0",children:y.jsx(c,{color:n,strokeWidth:s})}):null},sq=({defaultColor:e,rfId:r})=>{const n=qt(i=>i.edges),o=qt(i=>i.defaultEdgeOptions),a=E.useMemo(()=>FCe(n,{id:r,defaultColor:e,defaultMarkerStart:o?.markerStart,defaultMarkerEnd:o?.markerEnd}),[n,o,r,e]);return a.length?y.jsx("svg",{className:"react-flow__marker","aria-hidden":"true",children:y.jsx("defs",{children:a.map(i=>y.jsx(jAe,{id:i.id,type:i.type,color:i.color,width:i.width,height:i.height,markerUnits:i.markerUnits,strokeWidth:i.strokeWidth,orient:i.orient},i.id))})}):null};sq.displayName="MarkerDefinitions";var LAe=E.memo(sq);function lq({x:e,y:r,label:n,labelStyle:o,labelShowBg:a=!0,labelBgStyle:i,labelBgPadding:s=[2,4],labelBgBorderRadius:l=2,children:c,className:d,...u}){const[h,f]=E.useState({x:1,y:0,width:0,height:0}),g=_n(["react-flow__edge-textwrapper",d]),b=E.useRef(null);return E.useEffect(()=>{if(b.current){const x=b.current.getBBox();f({x:x.x,y:x.y,width:x.width,height:x.height})}},[n]),n?y.jsxs("g",{transform:`translate(${e-h.width/2} ${r-h.height/2})`,className:g,visibility:h.width?"visible":"hidden",...u,children:[a&&y.jsx("rect",{width:h.width+2*s[0],x:-s[0],y:-s[1],height:h.height+2*s[1],className:"react-flow__edge-textbg",style:i,rx:l,ry:l}),y.jsx("text",{className:"react-flow__edge-text",y:h.height/2,dy:"0.3em",ref:b,style:o,children:n}),c]}):null}lq.displayName="EdgeText";const BAe=E.memo(lq);function Ix({path:e,labelX:r,labelY:n,label:o,labelStyle:a,labelShowBg:i,labelBgStyle:s,labelBgPadding:l,labelBgBorderRadius:c,interactionWidth:d=20,...u}){return y.jsxs(y.Fragment,{children:[y.jsx("path",{...u,d:e,fill:"none",className:_n(["react-flow__edge-path",u.className])}),d?y.jsx("path",{d:e,fill:"none",strokeOpacity:0,strokeWidth:d,className:"react-flow__edge-interaction"}):null,o&&ss(r)&&ss(n)?y.jsx(BAe,{x:r,y:n,label:o,labelStyle:a,labelShowBg:i,labelBgStyle:s,labelBgPadding:l,labelBgBorderRadius:c}):null]})}function cq({pos:e,x1:r,y1:n,x2:o,y2:a}){return e===tt.Left||e===tt.Right?[.5*(r+o),n]:[r,.5*(n+a)]}function dq({sourceX:e,sourceY:r,sourcePosition:n=tt.Bottom,targetX:o,targetY:a,targetPosition:i=tt.Top}){const[s,l]=cq({pos:n,x1:e,y1:r,x2:o,y2:a}),[c,d]=cq({pos:i,x1:o,y1:a,x2:e,y2:r}),[u,h,f,g]=JH({sourceX:e,sourceY:r,targetX:o,targetY:a,sourceControlX:s,sourceControlY:l,targetControlX:c,targetControlY:d});return[`M${e},${r} C${s},${l} ${c},${d} ${o},${a}`,u,h,f,g]}function uq(e){return E.memo(({id:r,sourceX:n,sourceY:o,targetX:a,targetY:i,sourcePosition:s,targetPosition:l,label:c,labelStyle:d,labelShowBg:u,labelBgStyle:h,labelBgPadding:f,labelBgBorderRadius:g,style:b,markerEnd:x,markerStart:w,interactionWidth:k})=>{const[C,_,T]=dq({sourceX:n,sourceY:o,sourcePosition:s,targetX:a,targetY:i,targetPosition:l}),A=e.isInternal?void 0:r;return y.jsx(Ix,{id:A,path:C,labelX:_,labelY:T,label:c,labelStyle:d,labelShowBg:u,labelBgStyle:h,labelBgPadding:f,labelBgBorderRadius:g,style:b,markerEnd:x,markerStart:w,interactionWidth:k})})}const FAe=uq({isInternal:!1}),pq=uq({isInternal:!0});FAe.displayName="SimpleBezierEdge",pq.displayName="SimpleBezierEdgeInternal";function hq(e){return E.memo(({id:r,sourceX:n,sourceY:o,targetX:a,targetY:i,label:s,labelStyle:l,labelShowBg:c,labelBgStyle:d,labelBgPadding:u,labelBgBorderRadius:h,style:f,sourcePosition:g=tt.Bottom,targetPosition:b=tt.Top,markerEnd:x,markerStart:w,pathOptions:k,interactionWidth:C})=>{const[_,T,A]=Tx({sourceX:n,sourceY:o,sourcePosition:g,targetX:a,targetY:i,targetPosition:b,borderRadius:k?.borderRadius,offset:k?.offset,stepPosition:k?.stepPosition}),R=e.isInternal?void 0:r;return y.jsx(Ix,{id:R,path:_,labelX:T,labelY:A,label:s,labelStyle:l,labelShowBg:c,labelBgStyle:d,labelBgPadding:u,labelBgBorderRadius:h,style:f,markerEnd:x,markerStart:w,interactionWidth:C})})}const fq=hq({isInternal:!1}),mq=hq({isInternal:!0});fq.displayName="SmoothStepEdge",mq.displayName="SmoothStepEdgeInternal";function gq(e){return E.memo(({id:r,...n})=>{const o=e.isInternal?void 0:r;return y.jsx(fq,{...n,id:o,pathOptions:E.useMemo(()=>({borderRadius:0,offset:n.pathOptions?.offset}),[n.pathOptions?.offset])})})}const HAe=gq({isInternal:!1}),yq=gq({isInternal:!0});HAe.displayName="StepEdge",yq.displayName="StepEdgeInternal";function bq(e){return E.memo(({id:r,sourceX:n,sourceY:o,targetX:a,targetY:i,label:s,labelStyle:l,labelShowBg:c,labelBgStyle:d,labelBgPadding:u,labelBgBorderRadius:h,style:f,markerEnd:g,markerStart:b,interactionWidth:x})=>{const[w,k,C]=rV({sourceX:n,sourceY:o,targetX:a,targetY:i}),_=e.isInternal?void 0:r;return y.jsx(Ix,{id:_,path:w,labelX:k,labelY:C,label:s,labelStyle:l,labelShowBg:c,labelBgStyle:d,labelBgPadding:u,labelBgBorderRadius:h,style:f,markerEnd:g,markerStart:b,interactionWidth:x})})}const VAe=bq({isInternal:!1}),vq=bq({isInternal:!0});VAe.displayName="StraightEdge",vq.displayName="StraightEdgeInternal";function xq(e){return E.memo(({id:r,sourceX:n,sourceY:o,targetX:a,targetY:i,sourcePosition:s=tt.Bottom,targetPosition:l=tt.Top,label:c,labelStyle:d,labelShowBg:u,labelBgStyle:h,labelBgPadding:f,labelBgBorderRadius:g,style:b,markerEnd:x,markerStart:w,pathOptions:k,interactionWidth:C})=>{const[_,T,A]=Cx({sourceX:n,sourceY:o,sourcePosition:s,targetX:a,targetY:i,targetPosition:l,curvature:k?.curvature}),R=e.isInternal?void 0:r;return y.jsx(Ix,{id:R,path:_,labelX:T,labelY:A,label:c,labelStyle:d,labelShowBg:u,labelBgStyle:h,labelBgPadding:f,labelBgBorderRadius:g,style:b,markerEnd:x,markerStart:w,interactionWidth:C})})}const qAe=xq({isInternal:!1}),wq=xq({isInternal:!0});qAe.displayName="BezierEdge",wq.displayName="BezierEdgeInternal";const kq={default:wq,straight:vq,step:yq,smoothstep:mq,simplebezier:pq},_q={sourceX:null,sourceY:null,targetX:null,targetY:null,sourcePosition:null,targetPosition:null},UAe=(e,r,n)=>n===tt.Left?e-r:n===tt.Right?e+r:e,WAe=(e,r,n)=>n===tt.Top?e-r:n===tt.Bottom?e+r:e,Eq="react-flow__edgeupdater";function Sq({position:e,centerX:r,centerY:n,radius:o=10,onMouseDown:a,onMouseEnter:i,onMouseOut:s,type:l}){return y.jsx("circle",{onMouseDown:a,onMouseEnter:i,onMouseOut:s,className:_n([Eq,`${Eq}-${l}`]),cx:UAe(r,o,e),cy:WAe(n,o,e),r:o,stroke:"transparent",fill:"transparent"})}function YAe({isReconnectable:e,reconnectRadius:r,edge:n,sourceX:o,sourceY:a,targetX:i,targetY:s,sourcePosition:l,targetPosition:c,onReconnect:d,onReconnectStart:u,onReconnectEnd:h,setReconnecting:f,setUpdateHover:g}){const b=Ar(),x=(T,A)=>{if(T.button!==0)return;const{autoPanOnConnect:R,domNode:D,isValidConnection:N,connectionMode:P,connectionRadius:O,lib:F,onConnectStart:L,onConnectEnd:U,cancelConnection:M,nodeLookup:V,rfId:I,panBy:H,updateConnection:q}=b.getState(),Z=A.type==="target",W=(j,Y)=>{f(!1),h?.(j,n,A.type,Y)},G=j=>d?.(n,j),K=(j,Y)=>{f(!0),u?.(T,n,A.type),L?.(j,Y)};x7.onPointerDown(T.nativeEvent,{autoPanOnConnect:R,connectionMode:P,connectionRadius:O,domNode:D,handleId:A.id,nodeId:A.nodeId,nodeLookup:V,isTarget:Z,edgeUpdaterType:A.type,lib:F,flowId:I,cancelConnection:M,panBy:H,isValidConnection:N,onConnect:G,onConnectStart:K,onConnectEnd:U,onReconnectEnd:W,updateConnection:q,getTransform:()=>b.getState().transform,getFromHandle:()=>b.getState().connection.fromHandle,dragThreshold:b.getState().connectionDragThreshold,handleDomNode:T.currentTarget})},w=T=>x(T,{nodeId:n.target,id:n.targetHandle??null,type:"target"}),k=T=>x(T,{nodeId:n.source,id:n.sourceHandle??null,type:"source"}),C=()=>g(!0),_=()=>g(!1);return y.jsxs(y.Fragment,{children:[(e===!0||e==="source")&&y.jsx(Sq,{position:l,centerX:o,centerY:a,radius:r,onMouseDown:w,onMouseEnter:C,onMouseOut:_,type:"source"}),(e===!0||e==="target")&&y.jsx(Sq,{position:c,centerX:i,centerY:s,radius:r,onMouseDown:k,onMouseEnter:C,onMouseOut:_,type:"target"})]})}function GAe({id:e,edgesFocusable:r,edgesReconnectable:n,elementsSelectable:o,onClick:a,onDoubleClick:i,onContextMenu:s,onMouseEnter:l,onMouseMove:c,onMouseLeave:d,reconnectRadius:u,onReconnect:h,onReconnectStart:f,onReconnectEnd:g,rfId:b,edgeTypes:x,noPanClassName:w,onError:k,disableKeyboardA11y:C}){let _=qt(he=>he.edgeLookup.get(e));const T=qt(he=>he.defaultEdgeOptions);_=T?{...T,..._}:_;let A=_.type||"default",R=x?.[A]||kq[A];R===void 0&&(k?.("011",ul.error011(A)),A="default",R=x?.default||kq.default);const D=!!(_.focusable||r&&typeof _.focusable>"u"),N=typeof h<"u"&&(_.reconnectable||n&&typeof _.reconnectable>"u"),P=!!(_.selectable||o&&typeof _.selectable>"u"),O=E.useRef(null),[F,L]=E.useState(!1),[U,M]=E.useState(!1),V=Ar(),{zIndex:I,sourceX:H,sourceY:q,targetX:Z,targetY:W,sourcePosition:G,targetPosition:K}=qt(E.useCallback(he=>{const me=he.nodeLookup.get(_.source),Te=he.nodeLookup.get(_.target);if(!me||!Te)return{zIndex:_.zIndex,..._q};const Ie=iV({id:e,sourceNode:me,targetNode:Te,sourceHandle:_.sourceHandle||null,targetHandle:_.targetHandle||null,connectionMode:he.connectionMode,onError:k});return{zIndex:PCe({selected:_.selected,zIndex:_.zIndex,sourceNode:me,targetNode:Te,elevateOnSelect:he.elevateEdgesOnSelect}),...Ie||_q}},[_.source,_.target,_.sourceHandle,_.targetHandle,_.selected,_.zIndex]),Kr),j=E.useMemo(()=>_.markerStart?`url('#${h7(_.markerStart,b)}')`:void 0,[_.markerStart,b]),Y=E.useMemo(()=>_.markerEnd?`url('#${h7(_.markerEnd,b)}')`:void 0,[_.markerEnd,b]);if(_.hidden||H===null||q===null||Z===null||W===null)return null;const Q=he=>{const{addSelectedEdges:me,unselectNodesAndEdges:Te,multiSelectionActive:Ie}=V.getState();P&&(V.setState({nodesSelectionActive:!1}),_.selected&&Ie?(Te({nodes:[],edges:[_]}),O.current?.blur()):me([e])),a&&a(he,_)},J=i?he=>{i(he,{..._})}:void 0,ie=s?he=>{s(he,{..._})}:void 0,ne=l?he=>{l(he,{..._})}:void 0,re=c?he=>{c(he,{..._})}:void 0,ge=d?he=>{d(he,{..._})}:void 0,De=he=>{if(!C&&PH.includes(he.key)&&P){const{unselectNodesAndEdges:me,addSelectedEdges:Te}=V.getState();he.key==="Escape"?(O.current?.blur(),me({edges:[_]})):Te([e])}};return y.jsx("svg",{style:{zIndex:I},children:y.jsxs("g",{className:_n(["react-flow__edge",`react-flow__edge-${A}`,_.className,w,{selected:_.selected,animated:_.animated,inactive:!P&&!a,updating:F,selectable:P}]),onClick:Q,onDoubleClick:J,onContextMenu:ie,onMouseEnter:ne,onMouseMove:re,onMouseLeave:ge,onKeyDown:D?De:void 0,tabIndex:D?0:void 0,role:_.ariaRole??(D?"group":"img"),"aria-roledescription":"edge","data-id":e,"data-testid":`rf__edge-${e}`,"aria-label":_.ariaLabel===null?void 0:_.ariaLabel||`Edge from ${_.source} to ${_.target}`,"aria-describedby":D?`${jV}-${b}`:void 0,ref:O,..._.domAttributes,children:[!U&&y.jsx(R,{id:e,source:_.source,target:_.target,type:_.type,selected:_.selected,animated:_.animated,selectable:P,deletable:_.deletable??!0,label:_.label,labelStyle:_.labelStyle,labelShowBg:_.labelShowBg,labelBgStyle:_.labelBgStyle,labelBgPadding:_.labelBgPadding,labelBgBorderRadius:_.labelBgBorderRadius,sourceX:H,sourceY:q,targetX:Z,targetY:W,sourcePosition:G,targetPosition:K,data:_.data,style:_.style,sourceHandleId:_.sourceHandle,targetHandleId:_.targetHandle,markerStart:j,markerEnd:Y,pathOptions:"pathOptions"in _?_.pathOptions:void 0,interactionWidth:_.interactionWidth}),N&&y.jsx(YAe,{edge:_,isReconnectable:N,reconnectRadius:u,onReconnect:h,onReconnectStart:f,onReconnectEnd:g,sourceX:H,sourceY:q,targetX:Z,targetY:W,sourcePosition:G,targetPosition:K,setUpdateHover:L,setReconnecting:M})]})})}var XAe=E.memo(GAe);const KAe=e=>({edgesFocusable:e.edgesFocusable,edgesReconnectable:e.edgesReconnectable,elementsSelectable:e.elementsSelectable,connectionMode:e.connectionMode,onError:e.onError});function Cq({defaultMarkerColor:e,onlyRenderVisibleElements:r,rfId:n,edgeTypes:o,noPanClassName:a,onReconnect:i,onEdgeContextMenu:s,onEdgeMouseEnter:l,onEdgeMouseMove:c,onEdgeMouseLeave:d,onEdgeClick:u,reconnectRadius:h,onEdgeDoubleClick:f,onReconnectStart:g,onReconnectEnd:b,disableKeyboardA11y:x}){const{edgesFocusable:w,edgesReconnectable:k,elementsSelectable:C,onError:_}=qt(KAe,Kr),T=MAe(r);return y.jsxs("div",{className:"react-flow__edges",children:[y.jsx(LAe,{defaultColor:e,rfId:n}),T.map(A=>y.jsx(XAe,{id:A,edgesFocusable:w,edgesReconnectable:k,elementsSelectable:C,noPanClassName:a,onReconnect:i,onContextMenu:s,onMouseEnter:l,onMouseMove:c,onMouseLeave:d,onClick:u,reconnectRadius:h,onDoubleClick:f,onReconnectStart:g,onReconnectEnd:b,rfId:n,onError:_,edgeTypes:o,disableKeyboardA11y:x},A))]})}Cq.displayName="EdgeRenderer";const ZAe=E.memo(Cq),QAe=e=>`translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]})`;function JAe({children:e}){const r=qt(QAe);return y.jsx("div",{className:"react-flow__viewport xyflow__viewport react-flow__container",style:{transform:r},children:e})}function eRe(e){const r=Bf(),n=E.useRef(!1);E.useEffect(()=>{!n.current&&r.viewportInitialized&&e&&(setTimeout(()=>e(r),1),n.current=!0)},[e,r.viewportInitialized])}const tRe=e=>e.panZoom?.syncViewport;function rRe(e){const r=qt(tRe),n=Ar();return E.useEffect(()=>{e&&(r?.(e),n.setState({transform:[e.x,e.y,e.zoom]}))},[e,r]),null}function nRe(e){return e.connection.inProgress?{...e.connection,to:w0(e.connection.to,e.transform)}:{...e.connection}}function oRe(e){return nRe}function aRe(e){const r=oRe();return qt(r,Kr)}const iRe=e=>({nodesConnectable:e.nodesConnectable,isValid:e.connection.isValid,inProgress:e.connection.inProgress,width:e.width,height:e.height});function sRe({containerStyle:e,style:r,type:n,component:o}){const{nodesConnectable:a,width:i,height:s,isValid:l,inProgress:c}=qt(iRe,Kr);return i&&a&&c?y.jsx("svg",{style:e,width:i,height:s,className:"react-flow__connectionline react-flow__container",children:y.jsx("g",{className:_n(["react-flow__connection",OH(l)]),children:y.jsx(Tq,{style:r,type:n,CustomComponent:o,isValid:l})})}):null}const Tq=({style:e,type:r=bd.Bezier,CustomComponent:n,isValid:o})=>{const{inProgress:a,from:i,fromNode:s,fromHandle:l,fromPosition:c,to:d,toNode:u,toHandle:h,toPosition:f}=aRe();if(!a)return;if(n)return y.jsx(n,{connectionLineType:r,connectionLineStyle:e,fromNode:s,fromHandle:l,fromX:i.x,fromY:i.y,toX:d.x,toY:d.y,fromPosition:c,toPosition:f,connectionStatus:OH(o),toNode:u,toHandle:h});let g="";const b={sourceX:i.x,sourceY:i.y,sourcePosition:c,targetX:d.x,targetY:d.y,targetPosition:f};switch(r){case bd.Bezier:[g]=Cx(b);break;case bd.SimpleBezier:[g]=dq(b);break;case bd.Step:[g]=Tx({...b,borderRadius:0});break;case bd.SmoothStep:[g]=Tx(b);break;default:[g]=rV(b)}return y.jsx("path",{d:g,fill:"none",className:"react-flow__connection-path",style:e})};Tq.displayName="ConnectionLine";const lRe={};function Aq(e=lRe){E.useRef(e),Ar(),E.useEffect(()=>{},[e])}function cRe(){Ar(),E.useRef(!1),E.useEffect(()=>{},[])}function Rq({nodeTypes:e,edgeTypes:r,onInit:n,onNodeClick:o,onEdgeClick:a,onNodeDoubleClick:i,onEdgeDoubleClick:s,onNodeMouseEnter:l,onNodeMouseMove:c,onNodeMouseLeave:d,onNodeContextMenu:u,onSelectionContextMenu:h,onSelectionStart:f,onSelectionEnd:g,connectionLineType:b,connectionLineStyle:x,connectionLineComponent:w,connectionLineContainerStyle:k,selectionKeyCode:C,selectionOnDrag:_,selectionMode:T,multiSelectionKeyCode:A,panActivationKeyCode:R,zoomActivationKeyCode:D,deleteKeyCode:N,onlyRenderVisibleElements:P,elementsSelectable:O,defaultViewport:F,translateExtent:L,minZoom:U,maxZoom:M,preventScrolling:V,defaultMarkerColor:I,zoomOnScroll:H,zoomOnPinch:q,panOnScroll:Z,panOnScrollSpeed:W,panOnScrollMode:G,zoomOnDoubleClick:K,panOnDrag:j,onPaneClick:Y,onPaneMouseEnter:Q,onPaneMouseMove:J,onPaneMouseLeave:ie,onPaneScroll:ne,onPaneContextMenu:re,paneClickDistance:ge,nodeClickDistance:De,onEdgeContextMenu:he,onEdgeMouseEnter:me,onEdgeMouseMove:Te,onEdgeMouseLeave:Ie,reconnectRadius:Ze,onReconnect:rt,onReconnectStart:Rt,onReconnectEnd:Qe,noDragClassName:Mt,noWheelClassName:Ke,noPanClassName:Ge,disableKeyboardA11y:ct,nodeExtent:dt,rfId:Ir,viewport:Ee,onViewportChange:Se}){return Aq(e),Aq(r),cRe(),eRe(n),rRe(Ee),y.jsx(EAe,{onPaneClick:Y,onPaneMouseEnter:Q,onPaneMouseMove:J,onPaneMouseLeave:ie,onPaneContextMenu:re,onPaneScroll:ne,paneClickDistance:ge,deleteKeyCode:N,selectionKeyCode:C,selectionOnDrag:_,selectionMode:T,onSelectionStart:f,onSelectionEnd:g,multiSelectionKeyCode:A,panActivationKeyCode:R,zoomActivationKeyCode:D,elementsSelectable:O,zoomOnScroll:H,zoomOnPinch:q,zoomOnDoubleClick:K,panOnScroll:Z,panOnScrollSpeed:W,panOnScrollMode:G,panOnDrag:j,defaultViewport:F,translateExtent:L,minZoom:U,maxZoom:M,onSelectionContextMenu:h,preventScrolling:V,noDragClassName:Mt,noWheelClassName:Ke,noPanClassName:Ge,disableKeyboardA11y:ct,onViewportChange:Se,isControlledViewport:!!Ee,children:y.jsxs(JAe,{children:[y.jsx(ZAe,{edgeTypes:r,onEdgeClick:a,onEdgeDoubleClick:s,onReconnect:rt,onReconnectStart:Rt,onReconnectEnd:Qe,onlyRenderVisibleElements:P,onEdgeContextMenu:he,onEdgeMouseEnter:me,onEdgeMouseMove:Te,onEdgeMouseLeave:Ie,reconnectRadius:Ze,defaultMarkerColor:I,noPanClassName:Ge,disableKeyboardA11y:ct,rfId:Ir}),y.jsx(sRe,{style:x,type:b,component:w,containerStyle:k}),y.jsx("div",{className:"react-flow__edgelabel-renderer"}),y.jsx(PAe,{nodeTypes:e,onNodeClick:o,onNodeDoubleClick:i,onNodeMouseEnter:l,onNodeMouseMove:c,onNodeMouseLeave:d,onNodeContextMenu:u,nodeClickDistance:De,onlyRenderVisibleElements:P,noPanClassName:Ge,noDragClassName:Mt,disableKeyboardA11y:ct,nodeExtent:dt,rfId:Ir}),y.jsx("div",{className:"react-flow__viewport-portal"})]})})}Rq.displayName="GraphView";const dRe=E.memo(Rq),Nq=({nodes:e,edges:r,defaultNodes:n,defaultEdges:o,width:a,height:i,fitView:s,fitViewOptions:l,minZoom:c=.5,maxZoom:d=2,nodeOrigin:u,nodeExtent:h}={})=>{const f=new Map,g=new Map,b=new Map,x=new Map,w=o??r??[],k=n??e??[],C=u??[0,0],_=h??g0;pV(b,x,w);const T=g7(k,f,g,{nodeOrigin:C,nodeExtent:_,elevateNodesOnSelect:!1});let A=[0,0,1];if(s&&a&&i){const R=$f(f,{filter:O=>!!((O.width||O.initialWidth)&&(O.height||O.initialHeight))}),{x:D,y:N,zoom:P}=vd(R,a,i,c,d,l?.padding??.1);A=[D,N,P]}return{rfId:"1",width:a??0,height:i??0,transform:A,nodes:k,nodesInitialized:T,nodeLookup:f,parentLookup:g,edges:w,edgeLookup:x,connectionLookup:b,onNodesChange:null,onEdgesChange:null,hasDefaultNodes:n!==void 0,hasDefaultEdges:o!==void 0,panZoom:null,minZoom:c,maxZoom:d,translateExtent:g0,nodeExtent:_,nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,connectionMode:Df.Strict,domNode:null,paneDragging:!1,noPanClassName:"nopan",nodeOrigin:C,nodeDragThreshold:1,connectionDragThreshold:1,snapGrid:[15,15],snapToGrid:!1,nodesDraggable:!0,nodesConnectable:!0,nodesFocusable:!0,edgesFocusable:!0,edgesReconnectable:!0,elementsSelectable:!0,elevateNodesOnSelect:!0,elevateEdgesOnSelect:!1,selectNodesOnDrag:!0,multiSelectionActive:!1,fitViewQueued:s??!1,fitViewOptions:l,fitViewResolver:null,connection:{...zH},connectionClickStartHandle:null,connectOnClick:!0,ariaLiveMessage:"",autoPanOnConnect:!0,autoPanOnNodeDrag:!0,autoPanOnNodeFocus:!0,autoPanSpeed:15,connectionRadius:20,onError:TCe,isValidConnection:void 0,onSelectionChangeHandlers:[],lib:"react",debug:!1,ariaLabelConfig:MH}},uRe=({nodes:e,edges:r,defaultNodes:n,defaultEdges:o,width:a,height:i,fitView:s,fitViewOptions:l,minZoom:c,maxZoom:d,nodeOrigin:u,nodeExtent:h})=>RTe((f,g)=>{async function b(){const{nodeLookup:x,panZoom:w,fitViewOptions:k,fitViewResolver:C,width:_,height:T,minZoom:A,maxZoom:R}=g();w&&(await SCe({nodes:x,width:_,height:T,panZoom:w,minZoom:A,maxZoom:R},k),C?.resolve(!0),f({fitViewResolver:null}))}return{...Nq({nodes:e,edges:r,width:a,height:i,fitView:s,fitViewOptions:l,minZoom:c,maxZoom:d,nodeOrigin:u,nodeExtent:h,defaultNodes:n,defaultEdges:o}),setNodes:x=>{const{nodeLookup:w,parentLookup:k,nodeOrigin:C,elevateNodesOnSelect:_,fitViewQueued:T}=g(),A=g7(x,w,k,{nodeOrigin:C,nodeExtent:h,elevateNodesOnSelect:_,checkEquality:!0});T&&A?(b(),f({nodes:x,nodesInitialized:A,fitViewQueued:!1,fitViewOptions:void 0})):f({nodes:x,nodesInitialized:A})},setEdges:x=>{const{connectionLookup:w,edgeLookup:k}=g();pV(w,k,x),f({edges:x})},setDefaultNodesAndEdges:(x,w)=>{if(x){const{setNodes:k}=g();k(x),f({hasDefaultNodes:!0})}if(w){const{setEdges:k}=g();k(w),f({hasDefaultEdges:!0})}},updateNodeInternals:x=>{const{triggerNodeChanges:w,nodeLookup:k,parentLookup:C,domNode:_,nodeOrigin:T,nodeExtent:A,debug:R,fitViewQueued:D}=g(),{changes:N,updatedInternals:P}=XCe(x,k,C,_,T,A);P&&(UCe(k,C,{nodeOrigin:T,nodeExtent:A}),D?(b(),f({fitViewQueued:!1,fitViewOptions:void 0})):f({}),N?.length>0&&(R&&console.log("React Flow: trigger node changes",N),w?.(N)))},updateNodePositions:(x,w=!1)=>{const k=[],C=[],{nodeLookup:_,triggerNodeChanges:T}=g();for(const[A,R]of x){const D=_.get(A),N=!!(D?.expandParent&&D?.parentId&&R?.position),P={id:A,type:"position",position:N?{x:Math.max(0,R.position.x),y:Math.max(0,R.position.y)}:R.position,dragging:w};N&&D.parentId&&k.push({id:A,parentId:D.parentId,rect:{...R.internals.positionAbsolute,width:R.measured.width??0,height:R.measured.height??0}}),C.push(P)}if(k.length>0){const{parentLookup:A,nodeOrigin:R}=g(),D=b7(k,_,A,R);C.push(...D)}T(C)},triggerNodeChanges:x=>{const{onNodesChange:w,setNodes:k,nodes:C,hasDefaultNodes:_,debug:T}=g();if(x?.length){if(_){const A=$x(x,C);k(A)}T&&console.log("React Flow: trigger node changes",x),w?.(x)}},triggerEdgeChanges:x=>{const{onEdgesChange:w,setEdges:k,edges:C,hasDefaultEdges:_,debug:T}=g();if(x?.length){if(_){const A=Px(x,C);k(A)}T&&console.log("React Flow: trigger edge changes",x),w?.(x)}},addSelectedNodes:x=>{const{multiSelectionActive:w,edgeLookup:k,nodeLookup:C,triggerNodeChanges:_,triggerEdgeChanges:T}=g();if(w){const A=x.map(R=>pp(R,!0));_(A);return}_(Lf(C,new Set([...x]),!0)),T(Lf(k))},addSelectedEdges:x=>{const{multiSelectionActive:w,edgeLookup:k,nodeLookup:C,triggerNodeChanges:_,triggerEdgeChanges:T}=g();if(w){const A=x.map(R=>pp(R,!0));T(A);return}T(Lf(k,new Set([...x]))),_(Lf(C,new Set,!0))},unselectNodesAndEdges:({nodes:x,edges:w}={})=>{const{edges:k,nodes:C,nodeLookup:_,triggerNodeChanges:T,triggerEdgeChanges:A}=g(),R=x||C,D=w||k,N=R.map(O=>{const F=_.get(O.id);return F&&(F.selected=!1),pp(O.id,!1)}),P=D.map(O=>pp(O.id,!1));T(N),A(P)},setMinZoom:x=>{const{panZoom:w,maxZoom:k}=g();w?.setScaleExtent([x,k]),f({minZoom:x})},setMaxZoom:x=>{const{panZoom:w,minZoom:k}=g();w?.setScaleExtent([k,x]),f({maxZoom:x})},setTranslateExtent:x=>{g().panZoom?.setTranslateExtent(x),f({translateExtent:x})},setPaneClickDistance:x=>{g().panZoom?.setClickDistance(x)},resetSelectedElements:()=>{const{edges:x,nodes:w,triggerNodeChanges:k,triggerEdgeChanges:C,elementsSelectable:_}=g();if(!_)return;const T=w.reduce((R,D)=>D.selected?[...R,pp(D.id,!1)]:R,[]),A=x.reduce((R,D)=>D.selected?[...R,pp(D.id,!1)]:R,[]);k(T),C(A)},setNodeExtent:x=>{const{nodes:w,nodeLookup:k,parentLookup:C,nodeOrigin:_,elevateNodesOnSelect:T,nodeExtent:A}=g();x[0][0]===A[0][0]&&x[0][1]===A[0][1]&&x[1][0]===A[1][0]&&x[1][1]===A[1][1]||(g7(w,k,C,{nodeOrigin:_,nodeExtent:x,elevateNodesOnSelect:T,checkEquality:!1}),f({nodeExtent:x}))},panBy:x=>{const{transform:w,width:k,height:C,panZoom:_,translateExtent:T}=g();return KCe({delta:x,panZoom:_,transform:w,translateExtent:T,width:k,height:C})},setCenter:async(x,w,k)=>{const{width:C,height:_,maxZoom:T,panZoom:A}=g();if(!A)return Promise.resolve(!1);const R=typeof k?.zoom<"u"?k.zoom:T;return await A.setViewport({x:C/2-x*R,y:_/2-w*R,zoom:R},{duration:k?.duration,ease:k?.ease,interpolate:k?.interpolate}),Promise.resolve(!0)},cancelConnection:()=>{f({connection:{...zH}})},updateConnection:x=>{f({connection:x})},reset:()=>f({...Nq()})}},Object.is);function Ox({initialNodes:e,initialEdges:r,defaultNodes:n,defaultEdges:o,initialWidth:a,initialHeight:i,initialMinZoom:s,initialMaxZoom:l,initialFitViewOptions:c,fitView:d,nodeOrigin:u,nodeExtent:h,children:f}){const[g]=E.useState(()=>uRe({nodes:e,edges:r,defaultNodes:n,defaultEdges:o,width:a,height:i,fitView:d,minZoom:s,maxZoom:l,fitViewOptions:c,nodeOrigin:u,nodeExtent:h}));return y.jsx(NTe,{value:g,children:y.jsx(JTe,{children:f})})}function pRe({children:e,nodes:r,edges:n,defaultNodes:o,defaultEdges:a,width:i,height:s,fitView:l,fitViewOptions:c,minZoom:d,maxZoom:u,nodeOrigin:h,nodeExtent:f}){return E.useContext(Nx)?y.jsx(y.Fragment,{children:e}):y.jsx(Ox,{initialNodes:r,initialEdges:n,defaultNodes:o,defaultEdges:a,initialWidth:i,initialHeight:s,fitView:l,initialFitViewOptions:c,initialMinZoom:d,initialMaxZoom:u,nodeOrigin:h,nodeExtent:f,children:e})}const hRe={width:"100%",height:"100%",overflow:"hidden",position:"relative",zIndex:0};function fRe({nodes:e,edges:r,defaultNodes:n,defaultEdges:o,className:a,nodeTypes:i,edgeTypes:s,onNodeClick:l,onEdgeClick:c,onInit:d,onMove:u,onMoveStart:h,onMoveEnd:f,onConnect:g,onConnectStart:b,onConnectEnd:x,onClickConnectStart:w,onClickConnectEnd:k,onNodeMouseEnter:C,onNodeMouseMove:_,onNodeMouseLeave:T,onNodeContextMenu:A,onNodeDoubleClick:R,onNodeDragStart:D,onNodeDrag:N,onNodeDragStop:P,onNodesDelete:O,onEdgesDelete:F,onDelete:L,onSelectionChange:U,onSelectionDragStart:M,onSelectionDrag:V,onSelectionDragStop:I,onSelectionContextMenu:H,onSelectionStart:q,onSelectionEnd:Z,onBeforeDelete:W,connectionMode:G,connectionLineType:K=bd.Bezier,connectionLineStyle:j,connectionLineComponent:Y,connectionLineContainerStyle:Q,deleteKeyCode:J="Backspace",selectionKeyCode:ie="Shift",selectionOnDrag:ne=!1,selectionMode:re=y0.Full,panActivationKeyCode:ge="Space",multiSelectionKeyCode:De=zf()?"Meta":"Control",zoomActivationKeyCode:he=zf()?"Meta":"Control",snapToGrid:me,snapGrid:Te,onlyRenderVisibleElements:Ie=!1,selectNodesOnDrag:Ze,nodesDraggable:rt,autoPanOnNodeFocus:Rt,nodesConnectable:Qe,nodesFocusable:Mt,nodeOrigin:Ke=LV,edgesFocusable:Ge,edgesReconnectable:ct,elementsSelectable:dt=!0,defaultViewport:Ir=VTe,minZoom:Ee=.5,maxZoom:Se=2,translateExtent:it=g0,preventScrolling:xt=!0,nodeExtent:zt,defaultMarkerColor:Fr="#b1b1b7",zoomOnScroll:It=!0,zoomOnPinch:vr=!0,panOnScroll:fr=!1,panOnScrollSpeed:dn=.5,panOnScrollMode:ir=cp.Free,zoomOnDoubleClick:vn=!0,panOnDrag:xr=!0,onPaneClick:ea,onPaneMouseEnter:xa,onPaneMouseMove:Gs,onPaneMouseLeave:Vo,onPaneScroll:wa,onPaneContextMenu:Xs,paneClickDistance:fo=0,nodeClickDistance:Ol=0,children:jl,onReconnect:Bc,onReconnectStart:Ks,onReconnectEnd:Rh,onEdgeContextMenu:Ll,onEdgeDoubleClick:iu,onEdgeMouseEnter:ta,onEdgeMouseMove:Fc,onEdgeMouseLeave:Bl,reconnectRadius:su=10,onNodesChange:Fl,onEdgesChange:ra,noDragClassName:Wr="nodrag",noWheelClassName:Vn="nowheel",noPanClassName:qo="nopan",fitView:Zs,fitViewOptions:Hc,connectOnClick:Nh,attributionPosition:Za,proOptions:Oi,defaultEdgeOptions:Qs,elevateNodesOnSelect:ji,elevateEdgesOnSelect:Li,disableKeyboardA11y:ka=!1,autoPanOnConnect:So,autoPanOnNodeDrag:rn,autoPanSpeed:Vc,connectionRadius:qc,isValidConnection:Qa,onError:Bi,style:lu,id:Hl,nodeDragThreshold:cu,connectionDragThreshold:Dh,viewport:Vl,onViewportChange:ql,width:Uo,height:nn,colorMode:du="light",debug:$h,onScroll:Fi,ariaLabelConfig:uu,...Ul},pu){const ee=Hl||"1",te=YTe(du),ae=E.useCallback(le=>{le.currentTarget.scrollTo({top:0,left:0,behavior:"instant"}),Fi?.(le)},[Fi]);return y.jsx("div",{"data-testid":"rf__wrapper",...Ul,onScroll:ae,style:{...lu,...hRe},ref:pu,className:_n(["react-flow",a,te]),id:Hl,role:"application",children:y.jsxs(pRe,{nodes:e,edges:r,width:Uo,height:nn,fitView:Zs,fitViewOptions:Hc,minZoom:Ee,maxZoom:Se,nodeOrigin:Ke,nodeExtent:zt,children:[y.jsx(dRe,{onInit:d,onNodeClick:l,onEdgeClick:c,onNodeMouseEnter:C,onNodeMouseMove:_,onNodeMouseLeave:T,onNodeContextMenu:A,onNodeDoubleClick:R,nodeTypes:i,edgeTypes:s,connectionLineType:K,connectionLineStyle:j,connectionLineComponent:Y,connectionLineContainerStyle:Q,selectionKeyCode:ie,selectionOnDrag:ne,selectionMode:re,deleteKeyCode:J,multiSelectionKeyCode:De,panActivationKeyCode:ge,zoomActivationKeyCode:he,onlyRenderVisibleElements:Ie,defaultViewport:Ir,translateExtent:it,minZoom:Ee,maxZoom:Se,preventScrolling:xt,zoomOnScroll:It,zoomOnPinch:vr,zoomOnDoubleClick:vn,panOnScroll:fr,panOnScrollSpeed:dn,panOnScrollMode:ir,panOnDrag:xr,onPaneClick:ea,onPaneMouseEnter:xa,onPaneMouseMove:Gs,onPaneMouseLeave:Vo,onPaneScroll:wa,onPaneContextMenu:Xs,paneClickDistance:fo,nodeClickDistance:Ol,onSelectionContextMenu:H,onSelectionStart:q,onSelectionEnd:Z,onReconnect:Bc,onReconnectStart:Ks,onReconnectEnd:Rh,onEdgeContextMenu:Ll,onEdgeDoubleClick:iu,onEdgeMouseEnter:ta,onEdgeMouseMove:Fc,onEdgeMouseLeave:Bl,reconnectRadius:su,defaultMarkerColor:Fr,noDragClassName:Wr,noWheelClassName:Vn,noPanClassName:qo,rfId:ee,disableKeyboardA11y:ka,nodeExtent:zt,viewport:Vl,onViewportChange:ql}),y.jsx(WTe,{nodes:e,edges:r,defaultNodes:n,defaultEdges:o,onConnect:g,onConnectStart:b,onConnectEnd:x,onClickConnectStart:w,onClickConnectEnd:k,nodesDraggable:rt,autoPanOnNodeFocus:Rt,nodesConnectable:Qe,nodesFocusable:Mt,edgesFocusable:Ge,edgesReconnectable:ct,elementsSelectable:dt,elevateNodesOnSelect:ji,elevateEdgesOnSelect:Li,minZoom:Ee,maxZoom:Se,nodeExtent:zt,onNodesChange:Fl,onEdgesChange:ra,snapToGrid:me,snapGrid:Te,connectionMode:G,translateExtent:it,connectOnClick:Nh,defaultEdgeOptions:Qs,fitView:Zs,fitViewOptions:Hc,onNodesDelete:O,onEdgesDelete:F,onDelete:L,onNodeDragStart:D,onNodeDrag:N,onNodeDragStop:P,onSelectionDrag:V,onSelectionDragStart:M,onSelectionDragStop:I,onMove:u,onMoveStart:h,onMoveEnd:f,noPanClassName:qo,nodeOrigin:Ke,rfId:ee,autoPanOnConnect:So,autoPanOnNodeDrag:rn,autoPanSpeed:Vc,onError:Bi,connectionRadius:qc,isValidConnection:Qa,selectNodesOnDrag:Ze,nodeDragThreshold:cu,connectionDragThreshold:Dh,onBeforeDelete:W,paneClickDistance:fo,debug:$h,ariaLabelConfig:uu}),y.jsx(HTe,{onSelectionChange:U}),jl,y.jsx(OTe,{proOptions:Oi,position:Za}),y.jsx(ITe,{rfId:ee,disableKeyboardA11y:ka})]})})}var mRe=KV(fRe);const gRe=e=>e.domNode?.querySelector(".react-flow__edgelabel-renderer");function Dq({children:e}){const r=qt(gRe);return r?Ki.createPortal(e,r):null}function yRe({dimensions:e,lineWidth:r,variant:n,className:o}){return y.jsx("path",{strokeWidth:r,d:`M${e[0]/2} 0 V${e[1]} M0 ${e[1]/2} H${e[0]}`,className:_n(["react-flow__background-pattern",n,o])})}function bRe({radius:e,className:r}){return y.jsx("circle",{cx:e,cy:e,r:e,className:_n(["react-flow__background-pattern","dots",r])})}var cs;(function(e){e.Lines="lines",e.Dots="dots",e.Cross="cross"})(cs||(cs={}));const vRe={[cs.Dots]:1,[cs.Lines]:1,[cs.Cross]:6},xRe=e=>({transform:e.transform,patternId:`pattern-${e.rfId}`});function $q({id:e,variant:r=cs.Dots,gap:n=20,size:o,lineWidth:a=1,offset:i=0,color:s,bgColor:l,style:c,className:d,patternClassName:u}){const h=E.useRef(null),{transform:f,patternId:g}=qt(xRe,Kr),b=o||vRe[r],x=r===cs.Dots,w=r===cs.Cross,k=Array.isArray(n)?n:[n,n],C=[k[0]*f[2]||1,k[1]*f[2]||1],_=b*f[2],T=Array.isArray(i)?i:[i,i],A=w?[_,_]:C,R=[T[0]*f[2]||1+A[0]/2,T[1]*f[2]||1+A[1]/2],D=`${g}${e||""}`;return y.jsxs("svg",{className:_n(["react-flow__background",d]),style:{...c,...Mx,"--xy-background-color-props":l,"--xy-background-pattern-color-props":s},ref:h,"data-testid":"rf__background",children:[y.jsx("pattern",{id:D,x:f[0]%C[0],y:f[1]%C[1],width:C[0],height:C[1],patternUnits:"userSpaceOnUse",patternTransform:`translate(-${R[0]},-${R[1]})`,children:x?y.jsx(bRe,{radius:_/2,className:u}):y.jsx(yRe,{dimensions:A,lineWidth:a,variant:r,className:u})}),y.jsx("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:`url(#${D})`})]})}$q.displayName="Background";const Pq=E.memo($q);function wRe(){return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",children:y.jsx("path",{d:"M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"})})}function kRe(){return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 5",children:y.jsx("path",{d:"M0 0h32v4.2H0z"})})}function _Re(){return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 30",children:y.jsx("path",{d:"M3.692 4.63c0-.53.4-.938.939-.938h5.215V0H4.708C2.13 0 0 2.054 0 4.63v5.216h3.692V4.631zM27.354 0h-5.2v3.692h5.17c.53 0 .984.4.984.939v5.215H32V4.631A4.624 4.624 0 0027.354 0zm.954 24.83c0 .532-.4.94-.939.94h-5.215v3.768h5.215c2.577 0 4.631-2.13 4.631-4.707v-5.139h-3.692v5.139zm-23.677.94c-.531 0-.939-.4-.939-.94v-5.138H0v5.139c0 2.577 2.13 4.707 4.708 4.707h5.138V25.77H4.631z"})})}function ERe(){return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:y.jsx("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0 8 0 4.571 3.429 4.571 7.619v3.048H3.048A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047zm4.724-13.866H7.467V7.619c0-2.59 2.133-4.724 4.723-4.724 2.591 0 4.724 2.133 4.724 4.724v3.048z"})})}function SRe(){return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:y.jsx("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0c-4.114 1.828-1.37 2.133.305 2.438 1.676.305 4.42 2.59 4.42 5.181v3.048H3.047A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047z"})})}function jx({children:e,className:r,...n}){return y.jsx("button",{type:"button",className:_n(["react-flow__controls-button",r]),...n,children:e})}const CRe=e=>({isInteractive:e.nodesDraggable||e.nodesConnectable||e.elementsSelectable,minZoomReached:e.transform[2]<=e.minZoom,maxZoomReached:e.transform[2]>=e.maxZoom,ariaLabelConfig:e.ariaLabelConfig});function Mq({style:e,showZoom:r=!0,showFitView:n=!0,showInteractive:o=!0,fitViewOptions:a,onZoomIn:i,onZoomOut:s,onFitView:l,onInteractiveChange:c,className:d,children:u,position:h="bottom-left",orientation:f="vertical","aria-label":g}){const b=Ar(),{isInteractive:x,minZoomReached:w,maxZoomReached:k,ariaLabelConfig:C}=qt(CRe,Kr),{zoomIn:_,zoomOut:T,fitView:A}=Bf(),R=()=>{_(),i?.()},D=()=>{T(),s?.()},N=()=>{A(a),l?.()},P=()=>{b.setState({nodesDraggable:!x,nodesConnectable:!x,elementsSelectable:!x}),c?.(!x)};return y.jsxs(kd,{className:_n(["react-flow__controls",f==="horizontal"?"horizontal":"vertical",d]),position:h,style:e,"data-testid":"rf__controls","aria-label":g??C["controls.ariaLabel"],children:[r&&y.jsxs(y.Fragment,{children:[y.jsx(jx,{onClick:R,className:"react-flow__controls-zoomin",title:C["controls.zoomIn.ariaLabel"],"aria-label":C["controls.zoomIn.ariaLabel"],disabled:k,children:y.jsx(wRe,{})}),y.jsx(jx,{onClick:D,className:"react-flow__controls-zoomout",title:C["controls.zoomOut.ariaLabel"],"aria-label":C["controls.zoomOut.ariaLabel"],disabled:w,children:y.jsx(kRe,{})})]}),n&&y.jsx(jx,{className:"react-flow__controls-fitview",onClick:N,title:C["controls.fitView.ariaLabel"],"aria-label":C["controls.fitView.ariaLabel"],children:y.jsx(_Re,{})}),o&&y.jsx(jx,{className:"react-flow__controls-interactive",onClick:P,title:C["controls.interactive.ariaLabel"],"aria-label":C["controls.interactive.ariaLabel"],children:x?y.jsx(SRe,{}):y.jsx(ERe,{})}),u]})}Mq.displayName="Controls",E.memo(Mq);function TRe({id:e,x:r,y:n,width:o,height:a,style:i,color:s,strokeColor:l,strokeWidth:c,className:d,borderRadius:u,shapeRendering:h,selected:f,onClick:g}){const{background:b,backgroundColor:x}=i||{},w=s||b||x;return y.jsx("rect",{className:_n(["react-flow__minimap-node",{selected:f},d]),x:r,y:n,rx:u,ry:u,width:o,height:a,style:{fill:w,stroke:l,strokeWidth:c},shapeRendering:h,onClick:g?k=>g(k,e):void 0})}const ARe=E.memo(TRe),RRe=e=>e.nodes.map(r=>r.id),N7=e=>e instanceof Function?e:()=>e;function NRe({nodeStrokeColor:e,nodeColor:r,nodeClassName:n="",nodeBorderRadius:o=5,nodeStrokeWidth:a,nodeComponent:i=ARe,onClick:s}){const l=qt(RRe,Kr),c=N7(r),d=N7(e),u=N7(n),h=typeof window>"u"||window.chrome?"crispEdges":"geometricPrecision";return y.jsx(y.Fragment,{children:l.map(f=>y.jsx($Re,{id:f,nodeColorFunc:c,nodeStrokeColorFunc:d,nodeClassNameFunc:u,nodeBorderRadius:o,nodeStrokeWidth:a,NodeComponent:i,onClick:s,shapeRendering:h},f))})}function DRe({id:e,nodeColorFunc:r,nodeStrokeColorFunc:n,nodeClassNameFunc:o,nodeBorderRadius:a,nodeStrokeWidth:i,shapeRendering:s,NodeComponent:l,onClick:c}){const{node:d,x:u,y:h,width:f,height:g}=qt(b=>{const{internals:x}=b.nodeLookup.get(e),w=x.userNode,{x:k,y:C}=x.positionAbsolute,{width:_,height:T}=ao(w);return{node:w,x:k,y:C,width:_,height:T}},Kr);return!d||d.hidden||!WH(d)?null:y.jsx(l,{x:u,y:h,width:f,height:g,style:d.style,selected:!!d.selected,className:o(d),color:r(d),borderRadius:a,strokeColor:n(d),strokeWidth:i,shapeRendering:s,onClick:c,id:d.id})}const $Re=E.memo(DRe);var PRe=E.memo(NRe);const MRe=200,zRe=150,IRe=e=>!e.hidden,ORe=e=>{const r={x:-e.transform[0]/e.transform[2],y:-e.transform[1]/e.transform[2],width:e.width/e.transform[2],height:e.height/e.transform[2]};return{viewBB:r,boundingRect:e.nodeLookup.size>0?qH($f(e.nodeLookup,{filter:IRe}),r):r,rfId:e.rfId,panZoom:e.panZoom,translateExtent:e.translateExtent,flowWidth:e.width,flowHeight:e.height,ariaLabelConfig:e.ariaLabelConfig}},jRe="react-flow__minimap-desc";function zq({style:e,className:r,nodeStrokeColor:n,nodeColor:o,nodeClassName:a="",nodeBorderRadius:i=5,nodeStrokeWidth:s,nodeComponent:l,bgColor:c,maskColor:d,maskStrokeColor:u,maskStrokeWidth:h,position:f="bottom-right",onClick:g,onNodeClick:b,pannable:x=!1,zoomable:w=!1,ariaLabel:k,inversePan:C,zoomStep:_=1,offsetScale:T=5}){const A=Ar(),R=E.useRef(null),{boundingRect:D,viewBB:N,rfId:P,panZoom:O,translateExtent:F,flowWidth:L,flowHeight:U,ariaLabelConfig:M}=qt(ORe,Kr),V=e?.width??MRe,I=e?.height??zRe,H=D.width/V,q=D.height/I,Z=Math.max(H,q),W=Z*V,G=Z*I,K=T*Z,j=D.x-(W-D.width)/2-K,Y=D.y-(G-D.height)/2-K,Q=W+K*2,J=G+K*2,ie=`${jRe}-${P}`,ne=E.useRef(0),re=E.useRef();ne.current=Z,E.useEffect(()=>{if(R.current&&O)return re.current=aTe({domNode:R.current,panZoom:O,getTransform:()=>A.getState().transform,getViewScale:()=>ne.current}),()=>{re.current?.destroy()}},[O]),E.useEffect(()=>{re.current?.update({translateExtent:F,width:L,height:U,inversePan:C,pannable:x,zoomStep:_,zoomable:w})},[x,w,C,_,F,L,U]);const ge=g?me=>{const[Te,Ie]=re.current?.pointer(me)||[0,0];g(me,{x:Te,y:Ie})}:void 0,De=b?E.useCallback((me,Te)=>{const Ie=A.getState().nodeLookup.get(Te).internals.userNode;b(me,Ie)},[]):void 0,he=k??M["minimap.ariaLabel"];return y.jsx(kd,{position:f,style:{...e,"--xy-minimap-background-color-props":typeof c=="string"?c:void 0,"--xy-minimap-mask-background-color-props":typeof d=="string"?d:void 0,"--xy-minimap-mask-stroke-color-props":typeof u=="string"?u:void 0,"--xy-minimap-mask-stroke-width-props":typeof h=="number"?h*Z:void 0,"--xy-minimap-node-background-color-props":typeof o=="string"?o:void 0,"--xy-minimap-node-stroke-color-props":typeof n=="string"?n:void 0,"--xy-minimap-node-stroke-width-props":typeof s=="number"?s:void 0},className:_n(["react-flow__minimap",r]),"data-testid":"rf__minimap",children:y.jsxs("svg",{width:V,height:I,viewBox:`${j} ${Y} ${Q} ${J}`,className:"react-flow__minimap-svg",role:"img","aria-labelledby":ie,ref:R,onClick:ge,children:[he&&y.jsx("title",{id:ie,children:he}),y.jsx(PRe,{onClick:De,nodeColor:o,nodeStrokeColor:n,nodeBorderRadius:i,nodeClassName:a,nodeStrokeWidth:s,nodeComponent:l}),y.jsx("path",{className:"react-flow__minimap-mask",d:`M${j-K},${Y-K}h${Q+K*2}v${J+K*2}h${-Q-K*2}z - M${N.x},${N.y}h${N.width}v${N.height}h${-N.width}z`,fillRule:"evenodd",pointerEvents:"none"})]})})}zq.displayName="MiniMap",E.memo(zq);const LRe=e=>r=>e?`${Math.max(1/r.transform[2],1)}`:void 0,BRe={[jf.Line]:"right",[jf.Handle]:"bottom-right"};function FRe({nodeId:e,position:r,variant:n=jf.Handle,className:o,style:a=void 0,children:i,color:s,minWidth:l=10,minHeight:c=10,maxWidth:d=Number.MAX_VALUE,maxHeight:u=Number.MAX_VALUE,keepAspectRatio:h=!1,resizeDirection:f,autoScale:g=!0,shouldResize:b,onResizeStart:x,onResize:w,onResizeEnd:k}){const C=R7(),_=typeof e=="string"?e:C,T=Ar(),A=E.useRef(null),R=n===jf.Handle,D=qt(E.useCallback(LRe(R&&g),[R,g]),Kr),N=E.useRef(null),P=r??BRe[n];E.useEffect(()=>{if(!(!A.current||!_))return N.current||(N.current=vTe({domNode:A.current,nodeId:_,getStoreItems:()=>{const{nodeLookup:F,transform:L,snapGrid:U,snapToGrid:M,nodeOrigin:V,domNode:I}=T.getState();return{nodeLookup:F,transform:L,snapGrid:U,snapToGrid:M,nodeOrigin:V,paneDomNode:I}},onChange:(F,L)=>{const{triggerNodeChanges:U,nodeLookup:M,parentLookup:V,nodeOrigin:I}=T.getState(),H=[],q={x:F.x,y:F.y},Z=M.get(_);if(Z&&Z.expandParent&&Z.parentId){const W=Z.origin??I,G=F.width??Z.measured.width??0,K=F.height??Z.measured.height??0,j={id:Z.id,parentId:Z.parentId,rect:{width:G,height:K,...YH({x:F.x??Z.position.x,y:F.y??Z.position.y},{width:G,height:K},Z.parentId,M,W)}},Y=b7([j],M,V,I);H.push(...Y),q.x=F.x?Math.max(W[0]*G,F.x):void 0,q.y=F.y?Math.max(W[1]*K,F.y):void 0}if(q.x!==void 0&&q.y!==void 0){const W={id:_,type:"position",position:{...q}};H.push(W)}if(F.width!==void 0&&F.height!==void 0){const W={id:_,type:"dimensions",resizing:!0,setAttributes:f?f==="horizontal"?"width":"height":!0,dimensions:{width:F.width,height:F.height}};H.push(W)}for(const W of L){const G={...W,type:"position"};H.push(G)}U(H)},onEnd:({width:F,height:L})=>{const U={id:_,type:"dimensions",resizing:!1,dimensions:{width:F,height:L}};T.getState().triggerNodeChanges([U])}})),N.current.update({controlPosition:P,boundaries:{minWidth:l,minHeight:c,maxWidth:d,maxHeight:u},keepAspectRatio:h,resizeDirection:f,onResizeStart:x,onResize:w,onResizeEnd:k,shouldResize:b}),()=>{N.current?.destroy()}},[P,l,c,d,u,h,x,w,k,b]);const O=P.split("-");return y.jsx("div",{className:_n(["react-flow__resize-control","nodrag",...O,n,o]),ref:A,style:{...a,scale:D,...s&&{[R?"backgroundColor":"borderColor"]:s}},children:i})}E.memo(FRe);const HRe=e=>e.domNode?.querySelector(".react-flow__renderer");function VRe({children:e}){const r=qt(HRe);return r?Ki.createPortal(e,r):null}const qRe=(e,r)=>e?.internals.positionAbsolute.x!==r?.internals.positionAbsolute.x||e?.internals.positionAbsolute.y!==r?.internals.positionAbsolute.y||e?.measured.width!==r?.measured.width||e?.measured.height!==r?.measured.height||e?.selected!==r?.selected||e?.internals.z!==r?.internals.z,URe=(e,r)=>{if(e.size!==r.size)return!1;for(const[n,o]of e)if(qRe(o,r.get(n)))return!1;return!0},WRe=e=>({x:e.transform[0],y:e.transform[1],zoom:e.transform[2],selectedNodesCount:e.nodes.filter(r=>r.selected).length});function D7({nodeId:e,children:r,className:n,style:o,isVisible:a,position:i=tt.Top,offset:s=10,align:l="center",...c}){const d=R7(),u=E.useCallback(T=>(Array.isArray(e)?e:[e||d||""]).reduce((A,R)=>{const D=T.nodeLookup.get(R);return D&&A.set(D.id,D),A},new Map),[e,d]),h=qt(u,URe),{x:f,y:g,zoom:b,selectedNodesCount:x}=qt(WRe,Kr);if(!(typeof a=="boolean"?a:h.size===1&&h.values().next().value?.selected&&x===1)||!h.size)return null;const w=$f(h),k=Array.from(h.values()),C=Math.max(...k.map(T=>T.internals.z+1)),_={position:"absolute",transform:HCe(w,{x:f,y:g,zoom:b},i,s,l),zIndex:C,...o};return y.jsx(VRe,{children:y.jsx("div",{style:_,className:_n(["react-flow__node-toolbar",n]),...c,"data-id":k.reduce((T,A)=>`${T}${A.id} `,"").trim(),children:r})})}function YRe(e,r,n){let o=a=>e(a,...r);return n===void 0?o:Object.assign(o,{lazy:n,lazyArgs:r})}function hr(e,r,n){let o=e.length-r.length;if(o===0)return e(...r);if(o===1)return YRe(e,r,n);throw Error("Wrong number of arguments")}const GRe=e=>(r,n)=>{if(n===0)return e(r);if(!Number.isInteger(n))throw TypeError(`precision must be an integer: ${n.toString()}`);if(n>15||n<-15)throw RangeError("precision must be between -15 and 15");if(Number.isNaN(r)||!Number.isFinite(r))return e(r);let o=Iq(r,n),a=e(o);return Iq(a,-n)};function Iq(e,r){let[n,o]=e.toString().split("e"),a=(o===void 0?0:Number.parseInt(o,10))+r,i=`${n}e${a.toString()}`;return Number.parseFloat(i)}function XRe(...e){return hr(GRe(Math.ceil),e)}function ds(...e){return hr(KRe,e)}const KRe=(e,{min:r,max:n})=>r!==void 0&&en?n:e;function ZRe(...e){return hr(QRe,e)}const QRe=(e,r)=>[...e,...r],Lx={done:!1,hasNext:!1};function En(e,...r){let n=e,o=r.map(i=>"lazy"in i?JRe(i):void 0),a=0;for(;aEn(a,o),o)}throw Error("Wrong number of arguments")}function bo(...e){return hr(rNe,e)}const rNe=(e,r)=>e.length>=r,jq={asc:(e,r)=>e>r,desc:(e,r)=>ee(i,a)}function $7(e,r,...n){let o=typeof e=="function"?e:e[0],a=typeof e=="function"?"asc":e[1],{[a]:i}=jq,s=r===void 0?void 0:$7(r,...n);return(l,c)=>{let d=o(l),u=o(c);return i(d,u)?1:i(u,d)?-1:s?.(l,c)??0}}function oNe(e){if(Lq(e))return!0;if(typeof e!="object"||!Array.isArray(e))return!1;let[r,n,...o]=e;return Lq(r)&&typeof n=="string"&&n in jq&&o.length===0}const Lq=e=>typeof e=="function"&&e.length===1;function P7(...e){return hr(Object.entries,e)}function hp(...e){return hr(aNe,e,iNe)}const aNe=(e,r)=>e.filter(r),iNe=e=>(r,n,o)=>e(r,n,o)?{done:!1,hasNext:!0,next:r}:Lx,Bq=e=>Object.assign(e,{single:!0});function Bx(...e){return hr(sNe,e,Bq(lNe))}const sNe=(e,r)=>e.find(r),lNe=e=>(r,n,o)=>e(r,n,o)?{done:!0,hasNext:!0,next:r}:Lx;function Ff(...e){return hr(cNe,e,Bq(dNe))}const cNe=([e])=>e,dNe=()=>uNe,uNe=e=>({hasNext:!0,next:e,done:!0});function pNe(...e){return hr(hNe,e,fNe)}const hNe=(e,r)=>e.flatMap(r),fNe=e=>(r,n,o)=>{let a=e(r,n,o);return Array.isArray(a)?{done:!1,hasNext:!0,hasMany:!0,next:a}:{done:!1,hasNext:!0,next:a}};function mNe(...e){return hr(gNe,e,yNe)}function gNe(e,r){return e.forEach(r),e}const yNe=e=>(r,n,o)=>(e(r,n,o),{done:!1,hasNext:!0,next:r});function bNe(...e){return hr(vNe,e)}function vNe(e,r){for(let[n,o]of Object.entries(e))r(o,n,e);return e}function xNe(...e){return hr(wNe,e)}const wNe=(e,r)=>{let n=Object.create(null);for(let o=0;otypeof e=="function";function RNe(e){return e!==null}function Vq(e){return e!=null}function z7(e){return e==null}function _d(e){return typeof e=="number"&&!Number.isNaN(e)}function T0(e){if(typeof e!="object"||!e)return!1;let r=Object.getPrototypeOf(e);return r===null||r===Object.prototype}function Hx(e){return typeof e=="string"}function da(e){return!!e}function qq(...e){return hr(NNe,e)}const NNe=(e,r)=>e.join(r);function I7(...e){return hr(Object.keys,e)}function lc(...e){return hr(DNe,e)}const DNe=e=>e.at(-1);function Sn(...e){return hr($Ne,e,PNe)}const $Ne=(e,r)=>e.map(r),PNe=e=>(r,n,o)=>({done:!1,hasNext:!0,next:e(r,n,o)});function Vx(...e){return hr(MNe,e)}function MNe(e,r){let n={};for(let[o,a]of e.entries()){let[i,s]=r(a,o,e);n[i]=s}return n}function zNe(...e){return hr(INe,e)}function INe(e,r){let n={};for(let[o,a]of Object.entries(e))n[o]=r(a,o,e);return n}function Uq(...e){return hr(Wq,e)}function Wq(e,r){let n={...e,...r};for(let o in r){if(!(o in e))continue;let{[o]:a}=e;if(!T0(a))continue;let{[o]:i}=r;T0(i)&&(n[o]=Wq(a,i))}return n}function Ed(...e){return hr(ONe,e)}function ONe(e,r){if(!bo(r,1))return{...e};if(!bo(r,2)){let{[r[0]]:o,...a}=e;return a}let n={...e};for(let o of r)delete n[o];return n}function qx(...e){return hr(jNe,e)}const jNe=e=>e.length===1?e[0]:void 0;function Yq(...e){return hr(LNe,e)}const LNe=(e,r)=>{let n=[[],[]];for(let[o,a]of e.entries())r(a,o,e)?n[0].push(a):n[1].push(a);return n};function Gq(...e){return hr(BNe,e)}function BNe(e,r){let n={};for(let o of r)o in e&&(n[o]=e[o]);return n}function FNe(...e){return hr(HNe,e)}function HNe(e,r){let n={};for(let[o,a]of Object.entries(e))r(a,o,e)&&(n[o]=a);return n}function mp(e,...r){return typeof e=="string"||typeof e=="number"||typeof e=="symbol"?n=>Xq(n,e,...r):Xq(e,...r)}function Xq(e,...r){let n=e;for(let o of r){if(n==null)return;n=n[o]}return n}function VNe(...e){return hr(qNe,e)}function qNe(e,r){let n=[];for(let o=e;oe.reduce(r,n);function WNe(...e){return hr(YNe,e)}function YNe(e){return[...e].reverse()}function GNe(...e){return hr(XNe,e)}function XNe(e,r){let n=[...e];return n.sort(r),n}function Wx(...e){return nNe(KNe,e)}const KNe=(e,r)=>[...e].sort(r);function Kq(...e){return hr(ZNe,e)}function ZNe(e,r){return r(e),e}function O7(...e){return tNe(QNe,e)}function QNe(){let e=new Set;return r=>e.has(r)?Lx:(e.add(r),{done:!1,hasNext:!0,next:r})}let us=[],Sd=0;const Yx=4;let JNe=e=>{let r=[],n={get(){return n.lc||n.listen(()=>{})(),n.value},lc:0,listen(o){return n.lc=r.push(o),()=>{for(let i=Sd+Yx;i"u")return gDe;var r=yDe(e),n=document.documentElement.clientWidth,o=window.innerWidth;return{left:r[0],top:r[1],right:r[2],gap:Math.max(0,o-n+r[2]-r[0])}},vDe=tU(),Hf="data-scroll-locked",xDe=function(e,r,n,o){var a=e.left,i=e.top,s=e.right,l=e.gap;return n===void 0&&(n="margin"),` - .`.concat(tDe,` { +`)),d=c.reduce((u,p)=>u.concat(...p),[]);return[c,d]}return[[],[]]},[e]);return S.useEffect(()=>{const c=r?.target??zF,d=r?.actInsideInputWithModifier??!0;if(e!==null){const u=g=>{if(a.current=g.ctrlKey||g.metaKey||g.shiftKey||g.altKey,(!a.current||a.current&&!d)&&NL(g))return!1;const v=jF(g.code,s);if(i.current.add(g[v]),RF(l,i.current,!1)){const w=g.composedPath?.()?.[0]||g.target,x=w?.nodeName==="BUTTON"||w?.nodeName==="A";r.preventDefault!==!1&&(a.current||!x)&&g.preventDefault(),o(!0)}},p=g=>{const v=jF(g.code,s);RF(l,i.current,!0)?(o(!1),i.current.clear()):i.current.delete(g[v]),g.key==="Meta"&&i.current.clear(),a.current=!1},f=()=>{i.current.clear(),o(!1)};return c?.addEventListener("keydown",u),c?.addEventListener("keyup",p),window.addEventListener("blur",f),window.addEventListener("contextmenu",f),()=>{c?.removeEventListener("keydown",u),c?.removeEventListener("keyup",p),window.removeEventListener("blur",f),window.removeEventListener("contextmenu",f)}}},[e,o]),n}function RF(e,r,n){return e.filter(o=>n||o.length===r.size).some(o=>o.every(a=>r.has(a)))}function jF(e,r){return r.includes(e)?"code":"key"}const Q7e=()=>{const e=vr();return S.useMemo(()=>({zoomIn:r=>{const{panZoom:n}=e.getState();return n?n.scaleBy(1.2,{duration:r?.duration}):Promise.resolve(!1)},zoomOut:r=>{const{panZoom:n}=e.getState();return n?n.scaleBy(1/1.2,{duration:r?.duration}):Promise.resolve(!1)},zoomTo:(r,n)=>{const{panZoom:o}=e.getState();return o?o.scaleTo(r,{duration:n?.duration}):Promise.resolve(!1)},getZoom:()=>e.getState().transform[2],setViewport:async(r,n)=>{const{transform:[o,a,i],panZoom:l}=e.getState();return l?(await l.setViewport({x:r.x??o,y:r.y??a,zoom:r.zoom??i},n),Promise.resolve(!0)):Promise.resolve(!1)},getViewport:()=>{const[r,n,o]=e.getState().transform;return{x:r,y:n,zoom:o}},setCenter:async(r,n,o)=>e.getState().setCenter(r,n,o),fitBounds:async(r,n)=>{const{width:o,height:a,minZoom:i,maxZoom:l,panZoom:s}=e.getState(),c=qs(r,o,a,i,l,n?.padding??.1);return s?(await s.setViewport(c,{duration:n?.duration,ease:n?.ease,interpolate:n?.interpolate}),Promise.resolve(!0)):Promise.resolve(!1)},screenToFlowPosition:(r,n={})=>{const{transform:o,snapGrid:a,snapToGrid:i,domNode:l}=e.getState();if(!l)return r;const{x:s,y:c}=l.getBoundingClientRect(),d={x:r.x-s,y:r.y-c},u=n.snapGrid??a,p=n.snapToGrid??i;return P1(d,o,p,u)},flowToScreenPosition:r=>{const{transform:n,domNode:o}=e.getState();if(!o)return r;const{x:a,y:i}=o.getBoundingClientRect(),l=jx(r,n);return{x:l.x+a,y:l.y+i}}}),[])};function TF(e,r){const n=[],o=new Map,a=[];for(const i of e)if(i.type==="add"){a.push(i);continue}else if(i.type==="remove"||i.type==="replace")o.set(i.id,[i]);else{const l=o.get(i.id);l?l.push(i):o.set(i.id,[i])}for(const i of r){const l=o.get(i.id);if(!l){n.push(i);continue}if(l[0].type==="remove")continue;if(l[0].type==="replace"){n.push({...l[0].item});continue}const s={...i};for(const c of l)J7e(c,s);n.push(s)}return a.length&&a.forEach(i=>{i.index!==void 0?n.splice(i.index,0,{...i.item}):n.push({...i.item})}),n}function J7e(e,r){switch(e.type){case"select":{r.selected=e.selected;break}case"position":{typeof e.position<"u"&&(r.position=e.position),typeof e.dragging<"u"&&(r.dragging=e.dragging);break}case"dimensions":{typeof e.dimensions<"u"&&(r.measured={...e.dimensions},e.setAttributes&&((e.setAttributes===!0||e.setAttributes==="width")&&(r.width=e.dimensions.width),(e.setAttributes===!0||e.setAttributes==="height")&&(r.height=e.dimensions.height))),typeof e.resizing=="boolean"&&(r.resizing=e.resizing);break}}}function Ox(e,r){return TF(e,r)}function Ix(e,r){return TF(e,r)}function Hu(e,r){return{id:e,type:"select",selected:r}}function sf(e,r=new Set,n=!1){const o=[];for(const[a,i]of e){const l=r.has(a);!(i.selected===void 0&&!l)&&i.selected!==l&&(n&&(i.selected=l),o.push(Hu(i.id,l)))}return o}function AF({items:e=[],lookup:r}){const n=[],o=new Map(e.map(a=>[a.id,a]));for(const[a,i]of e.entries()){const l=r.get(i.id),s=l?.internals?.userNode??l;s!==void 0&&s!==i&&n.push({id:i.id,item:i,type:"replace"}),s===void 0&&n.push({item:i,type:"add",index:a})}for(const[a]of r)o.get(a)===void 0&&n.push({id:a,type:"remove"});return n}function DF(e){return{id:e.id,type:"remove"}}const MF=e=>C8e(e),e9e=e=>_L(e);function NF(e){return S.forwardRef(e)}const t9e=typeof window<"u"?S.useLayoutEffect:S.useEffect;function PF(e){const[r,n]=S.useState(BigInt(0)),[o]=S.useState(()=>r9e(()=>n(a=>a+BigInt(1))));return t9e(()=>{const a=o.get();a.length&&(e(a),o.reset())},[r]),o}function r9e(e){let r=[];return{get:()=>r,reset:()=>{r=[]},push:n=>{r.push(n),e()}}}const BF=S.createContext(null);function n9e({children:e}){const r=vr(),n=S.useCallback(s=>{const{nodes:c=[],setNodes:d,hasDefaultNodes:u,onNodesChange:p,nodeLookup:f,fitViewQueued:g,onNodesChangeMiddlewareMap:v}=r.getState();let w=c;for(const k of s)w=typeof k=="function"?k(w):k;let x=AF({items:w,lookup:f});for(const k of v.values())x=k(x);u&&d(w),x.length>0?p?.(x):g&&window.requestAnimationFrame(()=>{const{fitViewQueued:k,nodes:C,setNodes:_}=r.getState();k&&_(C)})},[]),o=PF(n),a=S.useCallback(s=>{const{edges:c=[],setEdges:d,hasDefaultEdges:u,onEdgesChange:p,edgeLookup:f}=r.getState();let g=c;for(const v of s)g=typeof v=="function"?v(g):v;u?d(g):p&&p(AF({items:g,lookup:f}))},[]),i=PF(a),l=S.useMemo(()=>({nodeQueue:o,edgeQueue:i}),[]);return y.jsx(BF.Provider,{value:l,children:e})}function o9e(){const e=S.useContext(BF);if(!e)throw new Error("useBatchContext must be used within a BatchProvider");return e}const a9e=e=>!!e.panZoom;function cf(){const e=Q7e(),r=vr(),n=o9e(),o=Dt(a9e),a=S.useMemo(()=>{const i=p=>r.getState().nodeLookup.get(p),l=p=>{n.nodeQueue.push(p)},s=p=>{n.edgeQueue.push(p)},c=p=>{const{nodeLookup:f,nodeOrigin:g}=r.getState(),v=MF(p)?p:f.get(p.id),w=v.parentId?AL(v.position,v.measured,v.parentId,f,g):v.position,x={...v,position:w,width:v.measured?.width??v.width,height:v.measured?.height??v.height};return Vu(x)},d=(p,f,g={replace:!1})=>{l(v=>v.map(w=>{if(w.id===p){const x=typeof f=="function"?f(w):f;return g.replace&&MF(x)?x:{...w,...x}}return w}))},u=(p,f,g={replace:!1})=>{s(v=>v.map(w=>{if(w.id===p){const x=typeof f=="function"?f(w):f;return g.replace&&e9e(x)?x:{...w,...x}}return w}))};return{getNodes:()=>r.getState().nodes.map(p=>({...p})),getNode:p=>i(p)?.internals.userNode,getInternalNode:i,getEdges:()=>{const{edges:p=[]}=r.getState();return p.map(f=>({...f}))},getEdge:p=>r.getState().edgeLookup.get(p),setNodes:l,setEdges:s,addNodes:p=>{const f=Array.isArray(p)?p:[p];n.nodeQueue.push(g=>[...g,...f])},addEdges:p=>{const f=Array.isArray(p)?p:[p];n.edgeQueue.push(g=>[...g,...f])},toObject:()=>{const{nodes:p=[],edges:f=[],transform:g}=r.getState(),[v,w,x]=g;return{nodes:p.map(k=>({...k})),edges:f.map(k=>({...k})),viewport:{x:v,y:w,zoom:x}}},deleteElements:async({nodes:p=[],edges:f=[]})=>{const{nodes:g,edges:v,onNodesDelete:w,onEdgesDelete:x,triggerNodeChanges:k,triggerEdgeChanges:C,onDelete:_,onBeforeDelete:$}=r.getState(),{nodes:z,edges:j}=await j8e({nodesToRemove:p,edgesToRemove:f,nodes:g,edges:v,onBeforeDelete:$}),A=j.length>0,R=z.length>0;if(A){const T=j.map(DF);x?.(j),C(T)}if(R){const T=z.map(DF);w?.(z),k(T)}return(R||A)&&_?.({nodes:z,edges:j}),{deletedNodes:z,deletedEdges:j}},getIntersectingNodes:(p,f=!0,g)=>{const v=jL(p),w=v?p:c(p),x=g!==void 0;return w?(g||r.getState().nodes).filter(k=>{const C=r.getState().nodeLookup.get(k.id);if(C&&!v&&(k.id===p.id||!C.internals.positionAbsolute))return!1;const _=Vu(x?k:C),$=M1(_,w);return f&&$>0||$>=_.width*_.height||$>=w.width*w.height}):[]},isNodeIntersecting:(p,f,g=!0)=>{const v=jL(p)?p:c(p);if(!v)return!1;const w=M1(v,f);return g&&w>0||w>=f.width*f.height||w>=v.width*v.height},updateNode:d,updateNodeData:(p,f,g={replace:!1})=>{d(p,v=>{const w=typeof f=="function"?f(v):f;return g.replace?{...v,data:w}:{...v,data:{...v.data,...w}}},g)},updateEdge:u,updateEdgeData:(p,f,g={replace:!1})=>{u(p,v=>{const w=typeof f=="function"?f(v):f;return g.replace?{...v,data:w}:{...v,data:{...v.data,...w}}},g)},getNodesBounds:p=>{const{nodeLookup:f,nodeOrigin:g}=r.getState();return SL(p,{nodeLookup:f,nodeOrigin:g})},getHandleConnections:({type:p,id:f,nodeId:g})=>Array.from(r.getState().connectionLookup.get(`${g}-${p}${f?`-${f}`:""}`)?.values()??[]),getNodeConnections:({type:p,handleId:f,nodeId:g})=>Array.from(r.getState().connectionLookup.get(`${g}${p?f?`-${p}-${f}`:`-${p}`:""}`)?.values()??[]),fitView:async p=>{const f=r.getState().fitViewResolver??M8e();return r.setState({fitViewQueued:!0,fitViewOptions:p,fitViewResolver:f}),n.nodeQueue.push(g=>[...g]),f.promise}}},[]);return S.useMemo(()=>({...a,...e,viewportInitialized:o}),[o])}const OF=e=>e.selected,i9e=typeof window<"u"?window:void 0;function l9e({deleteKeyCode:e,multiSelectionKeyCode:r}){const n=vr(),{deleteElements:o}=cf(),a=O1(e,{actInsideInputWithModifier:!1}),i=O1(r,{target:i9e});S.useEffect(()=>{if(a){const{edges:l,nodes:s}=n.getState();o({nodes:s.filter(OF),edges:l.filter(OF)}),n.setState({nodesSelectionActive:!1})}},[a]),S.useEffect(()=>{n.setState({multiSelectionActive:i})},[i])}function s9e(e){const r=vr();S.useEffect(()=>{const n=()=>{if(!e.current||!(e.current.checkVisibility?.()??!0))return!1;const o=Z8(e.current);(o.height===0||o.width===0)&&r.getState().onError?.("004",Wl.error004()),r.setState({width:o.width||500,height:o.height||500})};if(e.current){n(),window.addEventListener("resize",n);const o=new ResizeObserver(()=>n());return o.observe(e.current),()=>{window.removeEventListener("resize",n),o&&e.current&&o.unobserve(e.current)}}},[])}const Lx={position:"absolute",width:"100%",height:"100%",top:0,left:0},c9e=e=>({userSelectionActive:e.userSelectionActive,lib:e.lib,connectionInProgress:e.connection.inProgress});function d9e({onPaneContextMenu:e,zoomOnScroll:r=!0,zoomOnPinch:n=!0,panOnScroll:o=!1,panOnScrollSpeed:a=.5,panOnScrollMode:i=Lu.Free,zoomOnDoubleClick:l=!0,panOnDrag:s=!0,defaultViewport:c,translateExtent:d,minZoom:u,maxZoom:p,zoomActivationKeyCode:f,preventScrolling:g=!0,children:v,noWheelClassName:w,noPanClassName:x,onViewportChange:k,isControlledViewport:C,paneClickDistance:_,selectionOnDrag:$}){const z=vr(),j=S.useRef(null),{userSelectionActive:A,lib:R,connectionInProgress:T}=Dt(c9e,Tr),O=O1(f),P=S.useRef();s9e(j);const L=S.useCallback(H=>{k?.({x:H[0],y:H[1],zoom:H[2]}),C||z.setState({transform:H})},[k,C]);return S.useEffect(()=>{if(j.current){P.current=y7e({domNode:j.current,minZoom:u,maxZoom:p,translateExtent:d,viewport:c,onDraggingChange:B=>z.setState({paneDragging:B}),onPanZoomStart:(B,F)=>{const{onViewportChangeStart:q,onMoveStart:G}=z.getState();G?.(B,F),q?.(F)},onPanZoom:(B,F)=>{const{onViewportChange:q,onMove:G}=z.getState();G?.(B,F),q?.(F)},onPanZoomEnd:(B,F)=>{const{onViewportChangeEnd:q,onMoveEnd:G}=z.getState();G?.(B,F),q?.(F)}});const{x:H,y:M,zoom:V}=P.current.getViewport();return z.setState({panZoom:P.current,transform:[H,M,V],domNode:j.current.closest(".react-flow")}),()=>{P.current?.destroy()}}},[]),S.useEffect(()=>{P.current?.update({onPaneContextMenu:e,zoomOnScroll:r,zoomOnPinch:n,panOnScroll:o,panOnScrollSpeed:a,panOnScrollMode:i,zoomOnDoubleClick:l,panOnDrag:s,zoomActivationKeyPressed:O,preventScrolling:g,noPanClassName:x,userSelectionActive:A,noWheelClassName:w,lib:R,onTransformChange:L,connectionInProgress:T,selectionOnDrag:$,paneClickDistance:_})},[e,r,n,o,a,i,l,s,O,g,x,A,w,R,L,T,$,_]),y.jsx("div",{className:"react-flow__renderer",ref:j,style:Lx,children:v})}const u9e=e=>({userSelectionActive:e.userSelectionActive,userSelectionRect:e.userSelectionRect});function p9e(){const{userSelectionActive:e,userSelectionRect:r}=Dt(u9e,Tr);return e&&r?y.jsx("div",{className:"react-flow__selection react-flow__container",style:{width:r.width,height:r.height,transform:`translate(${r.x}px, ${r.y}px)`}}):null}const u7=(e,r)=>n=>{n.target===r.current&&e?.(n)},h9e=e=>({userSelectionActive:e.userSelectionActive,elementsSelectable:e.elementsSelectable,connectionInProgress:e.connection.inProgress,dragging:e.paneDragging});function f9e({isSelecting:e,selectionKeyPressed:r,selectionMode:n=A1.Full,panOnDrag:o,paneClickDistance:a,selectionOnDrag:i,onSelectionStart:l,onSelectionEnd:s,onPaneClick:c,onPaneContextMenu:d,onPaneScroll:u,onPaneMouseEnter:p,onPaneMouseMove:f,onPaneMouseLeave:g,children:v}){const w=vr(),{userSelectionActive:x,elementsSelectable:k,dragging:C,connectionInProgress:_}=Dt(h9e,Tr),$=k&&(e||x),z=S.useRef(null),j=S.useRef(),A=S.useRef(new Set),R=S.useRef(new Set),T=S.useRef(!1),O=q=>{if(T.current||_){T.current=!1;return}c?.(q),w.getState().resetSelectedElements(),w.setState({nodesSelectionActive:!1})},P=q=>{if(Array.isArray(o)&&o?.includes(2)){q.preventDefault();return}d?.(q)},L=u?q=>u(q):void 0,H=q=>{T.current&&(q.stopPropagation(),T.current=!1)},M=q=>{const{domNode:G}=w.getState();if(j.current=G?.getBoundingClientRect(),!j.current)return;const U=q.target===z.current;if(!U&&q.target.closest(".nokey")||!e||!(i&&U||r)||q.button!==0||!q.isPrimary)return;q.target?.setPointerCapture?.(q.pointerId),T.current=!1;const{x:Y,y:Z}=Yi(q.nativeEvent,j.current);w.setState({userSelectionRect:{width:0,height:0,startX:Y,startY:Z,x:Y,y:Z}}),U||(q.stopPropagation(),q.preventDefault())},V=q=>{const{userSelectionRect:G,transform:U,nodeLookup:Y,edgeLookup:Z,connectionLookup:I,triggerNodeChanges:W,triggerEdgeChanges:K,defaultEdgeOptions:Q,resetSelectedElements:ae}=w.getState();if(!j.current||!G)return;const{x:te,y:re}=Yi(q.nativeEvent,j.current),{startX:ue,startY:_e}=G;if(!T.current){const Be=r?0:a;if(Math.hypot(te-ue,re-_e)<=Be)return;ae(),l?.(q)}T.current=!0;const ce={startX:ue,startY:_e,x:teBe.id)),R.current=new Set;const De=Q?.selectable??!0;for(const Be of A.current){const Je=I.get(Be);if(Je)for(const{edgeId:st}of Je.values()){const Le=Z.get(st);Le&&(Le.selectable??De)&&R.current.add(st)}}if(!DL(pe,A.current)){const Be=sf(Y,A.current,!0);W(Be)}if(!DL(xe,R.current)){const Be=sf(Z,R.current);K(Be)}w.setState({userSelectionRect:ce,userSelectionActive:!0,nodesSelectionActive:!1})},B=q=>{q.button===0&&(q.target?.releasePointerCapture?.(q.pointerId),!x&&q.target===z.current&&w.getState().userSelectionRect&&O?.(q),w.setState({userSelectionActive:!1,userSelectionRect:null}),T.current&&(s?.(q),w.setState({nodesSelectionActive:A.current.size>0})))},F=o===!0||Array.isArray(o)&&o.includes(0);return y.jsxs("div",{className:dn(["react-flow__pane",{draggable:F,dragging:C,selection:e}]),onClick:$?void 0:u7(O,z),onContextMenu:u7(P,z),onWheel:u7(L,z),onPointerEnter:$?void 0:p,onPointerMove:$?V:f,onPointerUp:$?B:void 0,onPointerDownCapture:$?M:void 0,onClickCapture:$?H:void 0,onPointerLeave:g,ref:z,style:Lx,children:[v,y.jsx(p9e,{})]})}function p7({id:e,store:r,unselect:n=!1,nodeRef:o}){const{addSelectedNodes:a,unselectNodesAndEdges:i,multiSelectionActive:l,nodeLookup:s,onError:c}=r.getState(),d=s.get(e);if(!d){c?.("012",Wl.error012(e));return}r.setState({nodesSelectionActive:!1}),d.selected?(n||d.selected&&l)&&(i({nodes:[d],edges:[]}),requestAnimationFrame(()=>o?.current?.blur())):a([e])}function IF({nodeRef:e,disabled:r=!1,noDragClassName:n,handleSelector:o,nodeId:a,isSelectable:i,nodeClickDistance:l}){const s=vr(),[c,d]=S.useState(!1),u=S.useRef();return S.useEffect(()=>{u.current=n7e({getStoreItems:()=>s.getState(),onNodeMouseDown:p=>{p7({id:p,store:s,nodeRef:e})},onDragStart:()=>{d(!0)},onDragStop:()=>{d(!1)}})},[]),S.useEffect(()=>{if(r)u.current?.destroy();else if(e.current)return u.current?.update({noDragClassName:n,handleSelector:o,domNode:e.current,isSelectable:i,nodeId:a,nodeClickDistance:l}),()=>{u.current?.destroy()}},[n,o,r,i,e,a]),c}const m9e=e=>r=>r.selected&&(r.draggable||e&&typeof r.draggable>"u");function LF(){const e=vr();return S.useCallback(r=>{const{nodeExtent:n,snapToGrid:o,snapGrid:a,nodesDraggable:i,onError:l,updateNodePositions:s,nodeLookup:c,nodeOrigin:d}=e.getState(),u=new Map,p=m9e(i),f=o?a[0]:5,g=o?a[1]:5,v=r.direction.x*f*r.factor,w=r.direction.y*g*r.factor;for(const[,x]of c){if(!p(x))continue;let k={x:x.internals.positionAbsolute.x+v,y:x.internals.positionAbsolute.y+w};o&&(k=N1(k,a));const{position:C,positionAbsolute:_}=EL({nodeId:x.id,nextPosition:k,nodeLookup:c,nodeExtent:n,nodeOrigin:d,onError:l});x.position=C,x.internals.positionAbsolute=_,u.set(x.id,x)}s(u)},[])}const h7=S.createContext(null),g9e=h7.Provider;h7.Consumer;const f7=()=>S.useContext(h7),y9e=e=>({connectOnClick:e.connectOnClick,noPanClassName:e.noPanClassName,rfId:e.rfId}),v9e=(e,r,n)=>o=>{const{connectionClickStartHandle:a,connectionMode:i,connection:l}=o,{fromHandle:s,toHandle:c,isValid:d}=l,u=c?.nodeId===e&&c?.id===r&&c?.type===n;return{connectingFrom:s?.nodeId===e&&s?.id===r&&s?.type===n,connectingTo:u,clickConnecting:a?.nodeId===e&&a?.id===r&&a?.type===n,isPossibleEndHandle:i===Jh.Strict?s?.type!==n:e!==s?.nodeId||r!==s?.id,connectionInProcess:!!s,clickConnectionInProcess:!!a,valid:u&&d}};function b9e({type:e="source",position:r=Ue.Top,isValidConnection:n,isConnectable:o=!0,isConnectableStart:a=!0,isConnectableEnd:i=!0,id:l,onConnect:s,children:c,className:d,onMouseDown:u,onTouchStart:p,...f},g){const v=l||null,w=e==="target",x=vr(),k=f7(),{connectOnClick:C,noPanClassName:_,rfId:$}=Dt(y9e,Tr),{connectingFrom:z,connectingTo:j,clickConnecting:A,isPossibleEndHandle:R,connectionInProcess:T,clickConnectionInProcess:O,valid:P}=Dt(v9e(k,v,e),Tr);k||x.getState().onError?.("010",Wl.error010());const L=V=>{const{defaultEdgeOptions:B,onConnect:F,hasDefaultEdges:q}=x.getState(),G={...B,...V};if(q){const{edges:U,setEdges:Y}=x.getState();Y(F8e(G,U))}F?.(G),s?.(G)},H=V=>{if(!k)return;const B=PL(V.nativeEvent);if(a&&(B&&V.button===0||!B)){const F=x.getState();a7.onPointerDown(V.nativeEvent,{handleDomNode:V.currentTarget,autoPanOnConnect:F.autoPanOnConnect,connectionMode:F.connectionMode,connectionRadius:F.connectionRadius,domNode:F.domNode,nodeLookup:F.nodeLookup,lib:F.lib,isTarget:w,handleId:v,nodeId:k,flowId:F.rfId,panBy:F.panBy,cancelConnection:F.cancelConnection,onConnectStart:F.onConnectStart,onConnectEnd:F.onConnectEnd,updateConnection:F.updateConnection,onConnect:L,isValidConnection:n||F.isValidConnection,getTransform:()=>x.getState().transform,getFromHandle:()=>x.getState().connection.fromHandle,autoPanSpeed:F.autoPanSpeed,dragThreshold:F.connectionDragThreshold})}B?u?.(V):p?.(V)},M=V=>{const{onClickConnectStart:B,onClickConnectEnd:F,connectionClickStartHandle:q,connectionMode:G,isValidConnection:U,lib:Y,rfId:Z,nodeLookup:I,connection:W}=x.getState();if(!k||!q&&!a)return;if(!q){B?.(V.nativeEvent,{nodeId:k,handleId:v,handleType:e}),x.setState({connectionClickStartHandle:{nodeId:k,type:e,id:v}});return}const K=ML(V.target),Q=n||U,{connection:ae,isValid:te}=a7.isValid(V.nativeEvent,{handle:{nodeId:k,id:v,type:e},connectionMode:G,fromNodeId:q.nodeId,fromHandleId:q.id||null,fromType:q.type,isValidConnection:Q,flowId:Z,doc:K,lib:Y,nodeLookup:I});te&&ae&&L(ae);const re=structuredClone(W);delete re.inProgress,re.toPosition=re.toHandle?re.toHandle.position:null,F?.(V,re),x.setState({connectionClickStartHandle:null})};return y.jsx("div",{"data-handleid":v,"data-nodeid":k,"data-handlepos":r,"data-id":`${$}-${k}-${v}-${e}`,className:dn(["react-flow__handle",`react-flow__handle-${r}`,"nodrag",_,d,{source:!w,target:w,connectable:o,connectablestart:a,connectableend:i,clickconnecting:A,connectingfrom:z,connectingto:j,valid:P,connectionindicator:o&&(!T||R)&&(T||O?i:a)}]),onMouseDown:H,onTouchStart:H,onClick:C?M:void 0,ref:g,...f,children:c})}const Oo=S.memo(NF(b9e));function x9e({data:e,isConnectable:r,sourcePosition:n=Ue.Bottom}){return y.jsxs(y.Fragment,{children:[e?.label,y.jsx(Oo,{type:"source",position:n,isConnectable:r})]})}function w9e({data:e,isConnectable:r,targetPosition:n=Ue.Top,sourcePosition:o=Ue.Bottom}){return y.jsxs(y.Fragment,{children:[y.jsx(Oo,{type:"target",position:n,isConnectable:r}),e?.label,y.jsx(Oo,{type:"source",position:o,isConnectable:r})]})}function k9e(){return null}function _9e({data:e,isConnectable:r,targetPosition:n=Ue.Top}){return y.jsxs(y.Fragment,{children:[y.jsx(Oo,{type:"target",position:n,isConnectable:r}),e?.label]})}const Fx={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}},FF={input:x9e,default:w9e,output:_9e,group:k9e};function S9e(e){return e.internals.handleBounds===void 0?{width:e.width??e.initialWidth??e.style?.width,height:e.height??e.initialHeight??e.style?.height}:{width:e.width??e.style?.width,height:e.height??e.style?.height}}const E9e=e=>{const{width:r,height:n,x:o,y:a}=ef(e.nodeLookup,{filter:i=>!!i.selected});return{width:Gi(r)?r:null,height:Gi(n)?n:null,userSelectionActive:e.userSelectionActive,transformString:`translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]}) translate(${o}px,${a}px)`}};function C9e({onSelectionContextMenu:e,noPanClassName:r,disableKeyboardA11y:n}){const o=vr(),{width:a,height:i,transformString:l,userSelectionActive:s}=Dt(E9e,Tr),c=LF(),d=S.useRef(null);if(S.useEffect(()=>{n||d.current?.focus({preventScroll:!0})},[n]),IF({nodeRef:d}),s||!a||!i)return null;const u=e?f=>{const g=o.getState().nodes.filter(v=>v.selected);e(f,g)}:void 0,p=f=>{Object.prototype.hasOwnProperty.call(Fx,f.key)&&(f.preventDefault(),c({direction:Fx[f.key],factor:f.shiftKey?4:1}))};return y.jsx("div",{className:dn(["react-flow__nodesselection","react-flow__container",r]),style:{transform:l},children:y.jsx("div",{ref:d,className:"react-flow__nodesselection-rect",onContextMenu:u,tabIndex:n?void 0:-1,onKeyDown:n?void 0:p,style:{width:a,height:i}})})}const VF=typeof window<"u"?window:void 0,$9e=e=>({nodesSelectionActive:e.nodesSelectionActive,userSelectionActive:e.userSelectionActive});function qF({children:e,onPaneClick:r,onPaneMouseEnter:n,onPaneMouseMove:o,onPaneMouseLeave:a,onPaneContextMenu:i,onPaneScroll:l,paneClickDistance:s,deleteKeyCode:c,selectionKeyCode:d,selectionOnDrag:u,selectionMode:p,onSelectionStart:f,onSelectionEnd:g,multiSelectionKeyCode:v,panActivationKeyCode:w,zoomActivationKeyCode:x,elementsSelectable:k,zoomOnScroll:C,zoomOnPinch:_,panOnScroll:$,panOnScrollSpeed:z,panOnScrollMode:j,zoomOnDoubleClick:A,panOnDrag:R,defaultViewport:T,translateExtent:O,minZoom:P,maxZoom:L,preventScrolling:H,onSelectionContextMenu:M,noWheelClassName:V,noPanClassName:B,disableKeyboardA11y:F,onViewportChange:q,isControlledViewport:G}){const{nodesSelectionActive:U,userSelectionActive:Y}=Dt($9e,Tr),Z=O1(d,{target:VF}),I=O1(w,{target:VF}),W=I||R,K=I||$,Q=u&&W!==!0,ae=Z||Y||Q;return l9e({deleteKeyCode:c,multiSelectionKeyCode:v}),y.jsx(d9e,{onPaneContextMenu:i,elementsSelectable:k,zoomOnScroll:C,zoomOnPinch:_,panOnScroll:K,panOnScrollSpeed:z,panOnScrollMode:j,zoomOnDoubleClick:A,panOnDrag:!Z&&W,defaultViewport:T,translateExtent:O,minZoom:P,maxZoom:L,zoomActivationKeyCode:x,preventScrolling:H,noWheelClassName:V,noPanClassName:B,onViewportChange:q,isControlledViewport:G,paneClickDistance:s,selectionOnDrag:Q,children:y.jsxs(f9e,{onSelectionStart:f,onSelectionEnd:g,onPaneClick:r,onPaneMouseEnter:n,onPaneMouseMove:o,onPaneMouseLeave:a,onPaneContextMenu:i,onPaneScroll:l,panOnDrag:W,isSelecting:!!ae,selectionMode:p,selectionKeyPressed:Z,paneClickDistance:s,selectionOnDrag:Q,children:[e,U&&y.jsx(C9e,{onSelectionContextMenu:M,noPanClassName:B,disableKeyboardA11y:F})]})})}qF.displayName="FlowRenderer";const z9e=S.memo(qF),R9e=e=>r=>e?Y8(r.nodeLookup,{x:0,y:0,width:r.width,height:r.height},r.transform,!0).map(n=>n.id):Array.from(r.nodeLookup.keys());function j9e(e){return Dt(S.useCallback(R9e(e),[e]),Tr)}const T9e=e=>e.updateNodeInternals;function A9e(){const e=Dt(T9e),[r]=S.useState(()=>typeof ResizeObserver>"u"?null:new ResizeObserver(n=>{const o=new Map;n.forEach(a=>{const i=a.target.getAttribute("data-id");o.set(i,{id:i,nodeElement:a.target,force:!0})}),e(o)}));return S.useEffect(()=>()=>{r?.disconnect()},[r]),r}function D9e({node:e,nodeType:r,hasDimensions:n,resizeObserver:o}){const a=vr(),i=S.useRef(null),l=S.useRef(null),s=S.useRef(e.sourcePosition),c=S.useRef(e.targetPosition),d=S.useRef(r),u=n&&!!e.internals.handleBounds;return S.useEffect(()=>{i.current&&!e.hidden&&(!u||l.current!==i.current)&&(l.current&&o?.unobserve(l.current),o?.observe(i.current),l.current=i.current)},[u,e.hidden]),S.useEffect(()=>()=>{l.current&&(o?.unobserve(l.current),l.current=null)},[]),S.useEffect(()=>{if(i.current){const p=d.current!==r,f=s.current!==e.sourcePosition,g=c.current!==e.targetPosition;(p||f||g)&&(d.current=r,s.current=e.sourcePosition,c.current=e.targetPosition,a.getState().updateNodeInternals(new Map([[e.id,{id:e.id,nodeElement:i.current,force:!0}]])))}},[e.id,r,e.sourcePosition,e.targetPosition]),i}function M9e({id:e,onClick:r,onMouseEnter:n,onMouseMove:o,onMouseLeave:a,onContextMenu:i,onDoubleClick:l,nodesDraggable:s,elementsSelectable:c,nodesConnectable:d,nodesFocusable:u,resizeObserver:p,noDragClassName:f,noPanClassName:g,disableKeyboardA11y:v,rfId:w,nodeTypes:x,nodeClickDistance:k,onError:C}){const{node:_,internals:$,isParent:z}=Dt(te=>{const re=te.nodeLookup.get(e),ue=te.parentLookup.has(e);return{node:re,internals:re.internals,isParent:ue}},Tr);let j=_.type||"default",A=x?.[j]||FF[j];A===void 0&&(C?.("003",Wl.error003(j)),j="default",A=x?.default||FF.default);const R=!!(_.draggable||s&&typeof _.draggable>"u"),T=!!(_.selectable||c&&typeof _.selectable>"u"),O=!!(_.connectable||d&&typeof _.connectable>"u"),P=!!(_.focusable||u&&typeof _.focusable>"u"),L=vr(),H=TL(_),M=D9e({node:_,nodeType:j,hasDimensions:H,resizeObserver:p}),V=IF({nodeRef:M,disabled:_.hidden||!R,noDragClassName:f,handleSelector:_.dragHandle,nodeId:e,isSelectable:T,nodeClickDistance:k}),B=LF();if(_.hidden)return null;const F=_o(_),q=S9e(_),G=T||R||r||n||o||a,U=n?te=>n(te,{...$.userNode}):void 0,Y=o?te=>o(te,{...$.userNode}):void 0,Z=a?te=>a(te,{...$.userNode}):void 0,I=i?te=>i(te,{...$.userNode}):void 0,W=l?te=>l(te,{...$.userNode}):void 0,K=te=>{const{selectNodesOnDrag:re,nodeDragThreshold:ue}=L.getState();T&&(!re||!R||ue>0)&&p7({id:e,store:L,nodeRef:M}),r&&r(te,{...$.userNode})},Q=te=>{if(!(NL(te.nativeEvent)||v)){if(vL.includes(te.key)&&T){const re=te.key==="Escape";p7({id:e,store:L,unselect:re,nodeRef:M})}else if(R&&_.selected&&Object.prototype.hasOwnProperty.call(Fx,te.key)){te.preventDefault();const{ariaLabelConfig:re}=L.getState();L.setState({ariaLiveMessage:re["node.a11yDescription.ariaLiveMessage"]({direction:te.key.replace("Arrow","").toLowerCase(),x:~~$.positionAbsolute.x,y:~~$.positionAbsolute.y})}),B({direction:Fx[te.key],factor:te.shiftKey?4:1})}}},ae=()=>{if(v||!M.current?.matches(":focus-visible"))return;const{transform:te,width:re,height:ue,autoPanOnNodeFocus:_e,setCenter:ce}=L.getState();_e&&(Y8(new Map([[e,_]]),{x:0,y:0,width:re,height:ue},te,!0).length>0||ce(_.position.x+F.width/2,_.position.y+F.height/2,{zoom:te[2]}))};return y.jsx("div",{className:dn(["react-flow__node",`react-flow__node-${j}`,{[g]:R},_.className,{selected:_.selected,selectable:T,parent:z,draggable:R,dragging:V}]),ref:M,style:{zIndex:$.z,transform:`translate(${$.positionAbsolute.x}px,${$.positionAbsolute.y}px)`,pointerEvents:G?"all":"none",visibility:H?"visible":"hidden",..._.style,...q},"data-id":e,"data-testid":`rf__node-${e}`,onMouseEnter:U,onMouseMove:Y,onMouseLeave:Z,onContextMenu:I,onClick:K,onDoubleClick:W,onKeyDown:P?Q:void 0,tabIndex:P?0:void 0,onFocus:P?ae:void 0,role:_.ariaRole??(P?"group":void 0),"aria-roledescription":"node","aria-describedby":v?void 0:`${kF}-${w}`,"aria-label":_.ariaLabel,..._.domAttributes,children:y.jsx(g9e,{value:e,children:y.jsx(A,{id:e,data:_.data,type:j,positionAbsoluteX:$.positionAbsolute.x,positionAbsoluteY:$.positionAbsolute.y,selected:_.selected??!1,selectable:T,draggable:R,deletable:_.deletable??!0,isConnectable:O,sourcePosition:_.sourcePosition,targetPosition:_.targetPosition,dragging:V,dragHandle:_.dragHandle,zIndex:$.z,parentId:_.parentId,...F})})})}var N9e=S.memo(M9e);const P9e=e=>({nodesDraggable:e.nodesDraggable,nodesConnectable:e.nodesConnectable,nodesFocusable:e.nodesFocusable,elementsSelectable:e.elementsSelectable,onError:e.onError});function HF(e){const{nodesDraggable:r,nodesConnectable:n,nodesFocusable:o,elementsSelectable:a,onError:i}=Dt(P9e,Tr),l=j9e(e.onlyRenderVisibleElements),s=A9e();return y.jsx("div",{className:"react-flow__nodes",style:Lx,children:l.map(c=>y.jsx(N9e,{id:c,nodeTypes:e.nodeTypes,nodeExtent:e.nodeExtent,onClick:e.onNodeClick,onMouseEnter:e.onNodeMouseEnter,onMouseMove:e.onNodeMouseMove,onMouseLeave:e.onNodeMouseLeave,onContextMenu:e.onNodeContextMenu,onDoubleClick:e.onNodeDoubleClick,noDragClassName:e.noDragClassName,noPanClassName:e.noPanClassName,rfId:e.rfId,disableKeyboardA11y:e.disableKeyboardA11y,resizeObserver:s,nodesDraggable:r,nodesConnectable:n,nodesFocusable:o,elementsSelectable:a,nodeClickDistance:e.nodeClickDistance,onError:i},c))})}HF.displayName="NodeRenderer";const B9e=S.memo(HF);function O9e(e){return Dt(S.useCallback(r=>{if(!e)return r.edges.map(o=>o.id);const n=[];if(r.width&&r.height)for(const o of r.edges){const a=r.nodeLookup.get(o.source),i=r.nodeLookup.get(o.target);a&&i&&O8e({sourceNode:a,targetNode:i,width:r.width,height:r.height,transform:r.transform})&&n.push(o.id)}return n},[e]),Tr)}const I9e=({color:e="none",strokeWidth:r=1})=>{const n={strokeWidth:r,...e&&{stroke:e}};return y.jsx("polyline",{className:"arrow",style:n,strokeLinecap:"round",fill:"none",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4"})},L9e=({color:e="none",strokeWidth:r=1})=>{const n={strokeWidth:r,...e&&{stroke:e,fill:e}};return y.jsx("polyline",{className:"arrowclosed",style:n,strokeLinecap:"round",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4 -5,-4"})},UF={[Cx.Arrow]:I9e,[Cx.ArrowClosed]:L9e};function F9e(e){const r=vr();return S.useMemo(()=>Object.prototype.hasOwnProperty.call(UF,e)?UF[e]:(r.getState().onError?.("009",Wl.error009(e)),null),[e])}const V9e=({id:e,type:r,color:n,width:o=12.5,height:a=12.5,markerUnits:i="strokeWidth",strokeWidth:l,orient:s="auto-start-reverse"})=>{const c=F9e(r);return c?y.jsx("marker",{className:"react-flow__arrowhead",id:e,markerWidth:`${o}`,markerHeight:`${a}`,viewBox:"-10 -10 20 20",markerUnits:i,orient:s,refX:"0",refY:"0",children:y.jsx(c,{color:n,strokeWidth:l})}):null},WF=({defaultColor:e,rfId:r})=>{const n=Dt(i=>i.edges),o=Dt(i=>i.defaultEdgeOptions),a=S.useMemo(()=>U8e(n,{id:r,defaultColor:e,defaultMarkerStart:o?.markerStart,defaultMarkerEnd:o?.markerEnd}),[n,o,r,e]);return a.length?y.jsx("svg",{className:"react-flow__marker","aria-hidden":"true",children:y.jsx("defs",{children:a.map(i=>y.jsx(V9e,{id:i.id,type:i.type,color:i.color,width:i.width,height:i.height,markerUnits:i.markerUnits,strokeWidth:i.strokeWidth,orient:i.orient},i.id))})}):null};WF.displayName="MarkerDefinitions";var q9e=S.memo(WF);function GF({x:e,y:r,label:n,labelStyle:o,labelShowBg:a=!0,labelBgStyle:i,labelBgPadding:l=[2,4],labelBgBorderRadius:s=2,children:c,className:d,...u}){const[p,f]=S.useState({x:1,y:0,width:0,height:0}),g=dn(["react-flow__edge-textwrapper",d]),v=S.useRef(null);return S.useEffect(()=>{if(v.current){const w=v.current.getBBox();f({x:w.x,y:w.y,width:w.width,height:w.height})}},[n]),n?y.jsxs("g",{transform:`translate(${e-p.width/2} ${r-p.height/2})`,className:g,visibility:p.width?"visible":"hidden",...u,children:[a&&y.jsx("rect",{width:p.width+2*l[0],x:-l[0],y:-l[1],height:p.height+2*l[1],className:"react-flow__edge-textbg",style:i,rx:s,ry:s}),y.jsx("text",{className:"react-flow__edge-text",y:p.height/2,dy:"0.3em",ref:v,style:o,children:n}),c]}):null}GF.displayName="EdgeText";const H9e=S.memo(GF);function Vx({path:e,labelX:r,labelY:n,label:o,labelStyle:a,labelShowBg:i,labelBgStyle:l,labelBgPadding:s,labelBgBorderRadius:c,interactionWidth:d=20,...u}){return y.jsxs(y.Fragment,{children:[y.jsx("path",{...u,d:e,fill:"none",className:dn(["react-flow__edge-path",u.className])}),d?y.jsx("path",{d:e,fill:"none",strokeOpacity:0,strokeWidth:d,className:"react-flow__edge-interaction"}):null,o&&Gi(r)&&Gi(n)?y.jsx(H9e,{x:r,y:n,label:o,labelStyle:a,labelShowBg:i,labelBgStyle:l,labelBgPadding:s,labelBgBorderRadius:c}):null]})}function YF({pos:e,x1:r,y1:n,x2:o,y2:a}){return e===Ue.Left||e===Ue.Right?[.5*(r+o),n]:[r,.5*(n+a)]}function XF({sourceX:e,sourceY:r,sourcePosition:n=Ue.Bottom,targetX:o,targetY:a,targetPosition:i=Ue.Top}){const[l,s]=YF({pos:n,x1:e,y1:r,x2:o,y2:a}),[c,d]=YF({pos:i,x1:o,y1:a,x2:e,y2:r}),[u,p,f,g]=OL({sourceX:e,sourceY:r,targetX:o,targetY:a,sourceControlX:l,sourceControlY:s,targetControlX:c,targetControlY:d});return[`M${e},${r} C${l},${s} ${c},${d} ${o},${a}`,u,p,f,g]}function ZF(e){return S.memo(({id:r,sourceX:n,sourceY:o,targetX:a,targetY:i,sourcePosition:l,targetPosition:s,label:c,labelStyle:d,labelShowBg:u,labelBgStyle:p,labelBgPadding:f,labelBgBorderRadius:g,style:v,markerEnd:w,markerStart:x,interactionWidth:k})=>{const[C,_,$]=XF({sourceX:n,sourceY:o,sourcePosition:l,targetX:a,targetY:i,targetPosition:s}),z=e.isInternal?void 0:r;return y.jsx(Vx,{id:z,path:C,labelX:_,labelY:$,label:c,labelStyle:d,labelShowBg:u,labelBgStyle:p,labelBgPadding:f,labelBgBorderRadius:g,style:v,markerEnd:w,markerStart:x,interactionWidth:k})})}const U9e=ZF({isInternal:!1}),KF=ZF({isInternal:!0});U9e.displayName="SimpleBezierEdge",KF.displayName="SimpleBezierEdgeInternal";function QF(e){return S.memo(({id:r,sourceX:n,sourceY:o,targetX:a,targetY:i,label:l,labelStyle:s,labelShowBg:c,labelBgStyle:d,labelBgPadding:u,labelBgBorderRadius:p,style:f,sourcePosition:g=Ue.Bottom,targetPosition:v=Ue.Top,markerEnd:w,markerStart:x,pathOptions:k,interactionWidth:C})=>{const[_,$,z]=Dx({sourceX:n,sourceY:o,sourcePosition:g,targetX:a,targetY:i,targetPosition:v,borderRadius:k?.borderRadius,offset:k?.offset,stepPosition:k?.stepPosition}),j=e.isInternal?void 0:r;return y.jsx(Vx,{id:j,path:_,labelX:$,labelY:z,label:l,labelStyle:s,labelShowBg:c,labelBgStyle:d,labelBgPadding:u,labelBgBorderRadius:p,style:f,markerEnd:w,markerStart:x,interactionWidth:C})})}const JF=QF({isInternal:!1}),eV=QF({isInternal:!0});JF.displayName="SmoothStepEdge",eV.displayName="SmoothStepEdgeInternal";function tV(e){return S.memo(({id:r,...n})=>{const o=e.isInternal?void 0:r;return y.jsx(JF,{...n,id:o,pathOptions:S.useMemo(()=>({borderRadius:0,offset:n.pathOptions?.offset}),[n.pathOptions?.offset])})})}const W9e=tV({isInternal:!1}),rV=tV({isInternal:!0});W9e.displayName="StepEdge",rV.displayName="StepEdgeInternal";function nV(e){return S.memo(({id:r,sourceX:n,sourceY:o,targetX:a,targetY:i,label:l,labelStyle:s,labelShowBg:c,labelBgStyle:d,labelBgPadding:u,labelBgBorderRadius:p,style:f,markerEnd:g,markerStart:v,interactionWidth:w})=>{const[x,k,C]=FL({sourceX:n,sourceY:o,targetX:a,targetY:i}),_=e.isInternal?void 0:r;return y.jsx(Vx,{id:_,path:x,labelX:k,labelY:C,label:l,labelStyle:s,labelShowBg:c,labelBgStyle:d,labelBgPadding:u,labelBgBorderRadius:p,style:f,markerEnd:g,markerStart:v,interactionWidth:w})})}const G9e=nV({isInternal:!1}),oV=nV({isInternal:!0});G9e.displayName="StraightEdge",oV.displayName="StraightEdgeInternal";function aV(e){return S.memo(({id:r,sourceX:n,sourceY:o,targetX:a,targetY:i,sourcePosition:l=Ue.Bottom,targetPosition:s=Ue.Top,label:c,labelStyle:d,labelShowBg:u,labelBgStyle:p,labelBgPadding:f,labelBgBorderRadius:g,style:v,markerEnd:w,markerStart:x,pathOptions:k,interactionWidth:C})=>{const[_,$,z]=Ax({sourceX:n,sourceY:o,sourcePosition:l,targetX:a,targetY:i,targetPosition:s,curvature:k?.curvature}),j=e.isInternal?void 0:r;return y.jsx(Vx,{id:j,path:_,labelX:$,labelY:z,label:c,labelStyle:d,labelShowBg:u,labelBgStyle:p,labelBgPadding:f,labelBgBorderRadius:g,style:v,markerEnd:w,markerStart:x,interactionWidth:C})})}const Y9e=aV({isInternal:!1}),iV=aV({isInternal:!0});Y9e.displayName="BezierEdge",iV.displayName="BezierEdgeInternal";const lV={default:iV,straight:oV,step:rV,smoothstep:eV,simplebezier:KF},sV={sourceX:null,sourceY:null,targetX:null,targetY:null,sourcePosition:null,targetPosition:null},X9e=(e,r,n)=>n===Ue.Left?e-r:n===Ue.Right?e+r:e,Z9e=(e,r,n)=>n===Ue.Top?e-r:n===Ue.Bottom?e+r:e,cV="react-flow__edgeupdater";function dV({position:e,centerX:r,centerY:n,radius:o=10,onMouseDown:a,onMouseEnter:i,onMouseOut:l,type:s}){return y.jsx("circle",{onMouseDown:a,onMouseEnter:i,onMouseOut:l,className:dn([cV,`${cV}-${s}`]),cx:X9e(r,o,e),cy:Z9e(n,o,e),r:o,stroke:"transparent",fill:"transparent"})}function K9e({isReconnectable:e,reconnectRadius:r,edge:n,sourceX:o,sourceY:a,targetX:i,targetY:l,sourcePosition:s,targetPosition:c,onReconnect:d,onReconnectStart:u,onReconnectEnd:p,setReconnecting:f,setUpdateHover:g}){const v=vr(),w=($,z)=>{if($.button!==0)return;const{autoPanOnConnect:j,domNode:A,isValidConnection:R,connectionMode:T,connectionRadius:O,lib:P,onConnectStart:L,onConnectEnd:H,cancelConnection:M,nodeLookup:V,rfId:B,panBy:F,updateConnection:q}=v.getState(),G=z.type==="target",U=(I,W)=>{f(!1),p?.(I,n,z.type,W)},Y=I=>d?.(n,I),Z=(I,W)=>{f(!0),u?.($,n,z.type),L?.(I,W)};a7.onPointerDown($.nativeEvent,{autoPanOnConnect:j,connectionMode:T,connectionRadius:O,domNode:A,handleId:z.id,nodeId:z.nodeId,nodeLookup:V,isTarget:G,edgeUpdaterType:z.type,lib:P,flowId:B,cancelConnection:M,panBy:F,isValidConnection:R,onConnect:Y,onConnectStart:Z,onConnectEnd:H,onReconnectEnd:U,updateConnection:q,getTransform:()=>v.getState().transform,getFromHandle:()=>v.getState().connection.fromHandle,dragThreshold:v.getState().connectionDragThreshold,handleDomNode:$.currentTarget})},x=$=>w($,{nodeId:n.target,id:n.targetHandle??null,type:"target"}),k=$=>w($,{nodeId:n.source,id:n.sourceHandle??null,type:"source"}),C=()=>g(!0),_=()=>g(!1);return y.jsxs(y.Fragment,{children:[(e===!0||e==="source")&&y.jsx(dV,{position:s,centerX:o,centerY:a,radius:r,onMouseDown:x,onMouseEnter:C,onMouseOut:_,type:"source"}),(e===!0||e==="target")&&y.jsx(dV,{position:c,centerX:i,centerY:l,radius:r,onMouseDown:k,onMouseEnter:C,onMouseOut:_,type:"target"})]})}function Q9e({id:e,edgesFocusable:r,edgesReconnectable:n,elementsSelectable:o,onClick:a,onDoubleClick:i,onContextMenu:l,onMouseEnter:s,onMouseMove:c,onMouseLeave:d,reconnectRadius:u,onReconnect:p,onReconnectStart:f,onReconnectEnd:g,rfId:v,edgeTypes:w,noPanClassName:x,onError:k,disableKeyboardA11y:C}){let _=Dt(ce=>ce.edgeLookup.get(e));const $=Dt(ce=>ce.defaultEdgeOptions);_=$?{...$,..._}:_;let z=_.type||"default",j=w?.[z]||lV[z];j===void 0&&(k?.("011",Wl.error011(z)),z="default",j=w?.default||lV.default);const A=!!(_.focusable||r&&typeof _.focusable>"u"),R=typeof p<"u"&&(_.reconnectable||n&&typeof _.reconnectable>"u"),T=!!(_.selectable||o&&typeof _.selectable>"u"),O=S.useRef(null),[P,L]=S.useState(!1),[H,M]=S.useState(!1),V=vr(),{zIndex:B,sourceX:F,sourceY:q,targetX:G,targetY:U,sourcePosition:Y,targetPosition:Z}=Dt(S.useCallback(ce=>{const pe=ce.nodeLookup.get(_.source),xe=ce.nodeLookup.get(_.target);if(!pe||!xe)return{zIndex:_.zIndex,...sV};const De=UL({id:e,sourceNode:pe,targetNode:xe,sourceHandle:_.sourceHandle||null,targetHandle:_.targetHandle||null,connectionMode:ce.connectionMode,onError:k});return{zIndex:B8e({selected:_.selected,zIndex:_.zIndex,sourceNode:pe,targetNode:xe,elevateOnSelect:ce.elevateEdgesOnSelect,zIndexMode:ce.zIndexMode}),...De||sV}},[_.source,_.target,_.sourceHandle,_.targetHandle,_.selected,_.zIndex]),Tr),I=S.useMemo(()=>_.markerStart?`url('#${K8(_.markerStart,v)}')`:void 0,[_.markerStart,v]),W=S.useMemo(()=>_.markerEnd?`url('#${K8(_.markerEnd,v)}')`:void 0,[_.markerEnd,v]);if(_.hidden||F===null||q===null||G===null||U===null)return null;const K=ce=>{const{addSelectedEdges:pe,unselectNodesAndEdges:xe,multiSelectionActive:De}=V.getState();T&&(V.setState({nodesSelectionActive:!1}),_.selected&&De?(xe({nodes:[],edges:[_]}),O.current?.blur()):pe([e])),a&&a(ce,_)},Q=i?ce=>{i(ce,{..._})}:void 0,ae=l?ce=>{l(ce,{..._})}:void 0,te=s?ce=>{s(ce,{..._})}:void 0,re=c?ce=>{c(ce,{..._})}:void 0,ue=d?ce=>{d(ce,{..._})}:void 0,_e=ce=>{if(!C&&vL.includes(ce.key)&&T){const{unselectNodesAndEdges:pe,addSelectedEdges:xe}=V.getState();ce.key==="Escape"?(O.current?.blur(),pe({edges:[_]})):xe([e])}};return y.jsx("svg",{style:{zIndex:B},children:y.jsxs("g",{className:dn(["react-flow__edge",`react-flow__edge-${z}`,_.className,x,{selected:_.selected,animated:_.animated,inactive:!T&&!a,updating:P,selectable:T}]),onClick:K,onDoubleClick:Q,onContextMenu:ae,onMouseEnter:te,onMouseMove:re,onMouseLeave:ue,onKeyDown:A?_e:void 0,tabIndex:A?0:void 0,role:_.ariaRole??(A?"group":"img"),"aria-roledescription":"edge","data-id":e,"data-testid":`rf__edge-${e}`,"aria-label":_.ariaLabel===null?void 0:_.ariaLabel||`Edge from ${_.source} to ${_.target}`,"aria-describedby":A?`${_F}-${v}`:void 0,ref:O,..._.domAttributes,children:[!H&&y.jsx(j,{id:e,source:_.source,target:_.target,type:_.type,selected:_.selected,animated:_.animated,selectable:T,deletable:_.deletable??!0,label:_.label,labelStyle:_.labelStyle,labelShowBg:_.labelShowBg,labelBgStyle:_.labelBgStyle,labelBgPadding:_.labelBgPadding,labelBgBorderRadius:_.labelBgBorderRadius,sourceX:F,sourceY:q,targetX:G,targetY:U,sourcePosition:Y,targetPosition:Z,data:_.data,style:_.style,sourceHandleId:_.sourceHandle,targetHandleId:_.targetHandle,markerStart:I,markerEnd:W,pathOptions:"pathOptions"in _?_.pathOptions:void 0,interactionWidth:_.interactionWidth}),R&&y.jsx(K9e,{edge:_,isReconnectable:R,reconnectRadius:u,onReconnect:p,onReconnectStart:f,onReconnectEnd:g,sourceX:F,sourceY:q,targetX:G,targetY:U,sourcePosition:Y,targetPosition:Z,setUpdateHover:L,setReconnecting:M})]})})}var J9e=S.memo(Q9e);const eSe=e=>({edgesFocusable:e.edgesFocusable,edgesReconnectable:e.edgesReconnectable,elementsSelectable:e.elementsSelectable,connectionMode:e.connectionMode,onError:e.onError});function uV({defaultMarkerColor:e,onlyRenderVisibleElements:r,rfId:n,edgeTypes:o,noPanClassName:a,onReconnect:i,onEdgeContextMenu:l,onEdgeMouseEnter:s,onEdgeMouseMove:c,onEdgeMouseLeave:d,onEdgeClick:u,reconnectRadius:p,onEdgeDoubleClick:f,onReconnectStart:g,onReconnectEnd:v,disableKeyboardA11y:w}){const{edgesFocusable:x,edgesReconnectable:k,elementsSelectable:C,onError:_}=Dt(eSe,Tr),$=O9e(r);return y.jsxs("div",{className:"react-flow__edges",children:[y.jsx(q9e,{defaultColor:e,rfId:n}),$.map(z=>y.jsx(J9e,{id:z,edgesFocusable:x,edgesReconnectable:k,elementsSelectable:C,noPanClassName:a,onReconnect:i,onContextMenu:l,onMouseEnter:s,onMouseMove:c,onMouseLeave:d,onClick:u,reconnectRadius:p,onDoubleClick:f,onReconnectStart:g,onReconnectEnd:v,rfId:n,onError:_,edgeTypes:o,disableKeyboardA11y:w},z))]})}uV.displayName="EdgeRenderer";const tSe=S.memo(uV),rSe=e=>`translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]})`;function nSe({children:e}){const r=Dt(rSe);return y.jsx("div",{className:"react-flow__viewport xyflow__viewport react-flow__container",style:{transform:r},children:e})}function oSe(e){const r=cf(),n=S.useRef(!1);S.useEffect(()=>{!n.current&&r.viewportInitialized&&e&&(setTimeout(()=>e(r),1),n.current=!0)},[e,r.viewportInitialized])}const aSe=e=>e.panZoom?.syncViewport;function iSe(e){const r=Dt(aSe),n=vr();return S.useEffect(()=>{e&&(r?.(e),n.setState({transform:[e.x,e.y,e.zoom]}))},[e,r]),null}function lSe(e){return e.connection.inProgress?{...e.connection,to:P1(e.connection.to,e.transform)}:{...e.connection}}function sSe(e){return lSe}function cSe(e){const r=sSe();return Dt(r,Tr)}const dSe=e=>({nodesConnectable:e.nodesConnectable,isValid:e.connection.isValid,inProgress:e.connection.inProgress,width:e.width,height:e.height});function uSe({containerStyle:e,style:r,type:n,component:o}){const{nodesConnectable:a,width:i,height:l,isValid:s,inProgress:c}=Dt(dSe,Tr);return i&&a&&c?y.jsx("svg",{style:e,width:i,height:l,className:"react-flow__connectionline react-flow__container",children:y.jsx("g",{className:dn(["react-flow__connection",kL(s)]),children:y.jsx(pV,{style:r,type:n,CustomComponent:o,isValid:s})})}):null}const pV=({style:e,type:r=Kc.Bezier,CustomComponent:n,isValid:o})=>{const{inProgress:a,from:i,fromNode:l,fromHandle:s,fromPosition:c,to:d,toNode:u,toHandle:p,toPosition:f,pointer:g}=cSe();if(!a)return;if(n)return y.jsx(n,{connectionLineType:r,connectionLineStyle:e,fromNode:l,fromHandle:s,fromX:i.x,fromY:i.y,toX:d.x,toY:d.y,fromPosition:c,toPosition:f,connectionStatus:kL(o),toNode:u,toHandle:p,pointer:g});let v="";const w={sourceX:i.x,sourceY:i.y,sourcePosition:c,targetX:d.x,targetY:d.y,targetPosition:f};switch(r){case Kc.Bezier:[v]=Ax(w);break;case Kc.SimpleBezier:[v]=XF(w);break;case Kc.Step:[v]=Dx({...w,borderRadius:0});break;case Kc.SmoothStep:[v]=Dx(w);break;default:[v]=FL(w)}return y.jsx("path",{d:v,fill:"none",className:"react-flow__connection-path",style:e})};pV.displayName="ConnectionLine";const pSe={};function hV(e=pSe){S.useRef(e),vr(),S.useEffect(()=>{},[e])}function hSe(){vr(),S.useRef(!1),S.useEffect(()=>{},[])}function fV({nodeTypes:e,edgeTypes:r,onInit:n,onNodeClick:o,onEdgeClick:a,onNodeDoubleClick:i,onEdgeDoubleClick:l,onNodeMouseEnter:s,onNodeMouseMove:c,onNodeMouseLeave:d,onNodeContextMenu:u,onSelectionContextMenu:p,onSelectionStart:f,onSelectionEnd:g,connectionLineType:v,connectionLineStyle:w,connectionLineComponent:x,connectionLineContainerStyle:k,selectionKeyCode:C,selectionOnDrag:_,selectionMode:$,multiSelectionKeyCode:z,panActivationKeyCode:j,zoomActivationKeyCode:A,deleteKeyCode:R,onlyRenderVisibleElements:T,elementsSelectable:O,defaultViewport:P,translateExtent:L,minZoom:H,maxZoom:M,preventScrolling:V,defaultMarkerColor:B,zoomOnScroll:F,zoomOnPinch:q,panOnScroll:G,panOnScrollSpeed:U,panOnScrollMode:Y,zoomOnDoubleClick:Z,panOnDrag:I,onPaneClick:W,onPaneMouseEnter:K,onPaneMouseMove:Q,onPaneMouseLeave:ae,onPaneScroll:te,onPaneContextMenu:re,paneClickDistance:ue,nodeClickDistance:_e,onEdgeContextMenu:ce,onEdgeMouseEnter:pe,onEdgeMouseMove:xe,onEdgeMouseLeave:De,reconnectRadius:Be,onReconnect:Je,onReconnectStart:st,onReconnectEnd:Le,noDragClassName:St,noWheelClassName:Ve,noPanClassName:qe,disableKeyboardA11y:Xe,nodeExtent:Ot,rfId:Et,viewport:be,onViewportChange:ke}){return hV(e),hV(r),hSe(),oSe(n),iSe(be),y.jsx(z9e,{onPaneClick:W,onPaneMouseEnter:K,onPaneMouseMove:Q,onPaneMouseLeave:ae,onPaneContextMenu:re,onPaneScroll:te,paneClickDistance:ue,deleteKeyCode:R,selectionKeyCode:C,selectionOnDrag:_,selectionMode:$,onSelectionStart:f,onSelectionEnd:g,multiSelectionKeyCode:z,panActivationKeyCode:j,zoomActivationKeyCode:A,elementsSelectable:O,zoomOnScroll:F,zoomOnPinch:q,zoomOnDoubleClick:Z,panOnScroll:G,panOnScrollSpeed:U,panOnScrollMode:Y,panOnDrag:I,defaultViewport:P,translateExtent:L,minZoom:H,maxZoom:M,onSelectionContextMenu:p,preventScrolling:V,noDragClassName:St,noWheelClassName:Ve,noPanClassName:qe,disableKeyboardA11y:Xe,onViewportChange:ke,isControlledViewport:!!be,children:y.jsxs(nSe,{children:[y.jsx(tSe,{edgeTypes:r,onEdgeClick:a,onEdgeDoubleClick:l,onReconnect:Je,onReconnectStart:st,onReconnectEnd:Le,onlyRenderVisibleElements:T,onEdgeContextMenu:ce,onEdgeMouseEnter:pe,onEdgeMouseMove:xe,onEdgeMouseLeave:De,reconnectRadius:Be,defaultMarkerColor:B,noPanClassName:qe,disableKeyboardA11y:Xe,rfId:Et}),y.jsx(uSe,{style:w,type:v,component:x,containerStyle:k}),y.jsx("div",{className:"react-flow__edgelabel-renderer"}),y.jsx(B9e,{nodeTypes:e,onNodeClick:o,onNodeDoubleClick:i,onNodeMouseEnter:s,onNodeMouseMove:c,onNodeMouseLeave:d,onNodeContextMenu:u,nodeClickDistance:_e,onlyRenderVisibleElements:T,noPanClassName:qe,noDragClassName:St,disableKeyboardA11y:Xe,nodeExtent:Ot,rfId:Et}),y.jsx("div",{className:"react-flow__viewport-portal"})]})})}fV.displayName="GraphView";const fSe=S.memo(fV),mV=({nodes:e,edges:r,defaultNodes:n,defaultEdges:o,width:a,height:i,fitView:l,fitViewOptions:s,minZoom:c=.5,maxZoom:d=2,nodeOrigin:u,nodeExtent:p,zIndexMode:f="basic"}={})=>{const g=new Map,v=new Map,w=new Map,x=new Map,k=o??r??[],C=n??e??[],_=u??[0,0],$=p??T1;KL(w,x,k);const z=t7(C,g,v,{nodeOrigin:_,nodeExtent:$,zIndexMode:f});let j=[0,0,1];if(l&&a&&i){const A=ef(g,{filter:P=>!!((P.width||P.initialWidth)&&(P.height||P.initialHeight))}),{x:R,y:T,zoom:O}=qs(A,a,i,c,d,s?.padding??.1);j=[R,T,O]}return{rfId:"1",width:a??0,height:i??0,transform:j,nodes:C,nodesInitialized:z,nodeLookup:g,parentLookup:v,edges:k,edgeLookup:x,connectionLookup:w,onNodesChange:null,onEdgesChange:null,hasDefaultNodes:n!==void 0,hasDefaultEdges:o!==void 0,panZoom:null,minZoom:c,maxZoom:d,translateExtent:T1,nodeExtent:$,nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,connectionMode:Jh.Strict,domNode:null,paneDragging:!1,noPanClassName:"nopan",nodeOrigin:_,nodeDragThreshold:1,connectionDragThreshold:1,snapGrid:[15,15],snapToGrid:!1,nodesDraggable:!0,nodesConnectable:!0,nodesFocusable:!0,edgesFocusable:!0,edgesReconnectable:!0,elementsSelectable:!0,elevateNodesOnSelect:!0,elevateEdgesOnSelect:!0,selectNodesOnDrag:!0,multiSelectionActive:!1,fitViewQueued:l??!1,fitViewOptions:s,fitViewResolver:null,connection:{...xL},connectionClickStartHandle:null,connectOnClick:!0,ariaLiveMessage:"",autoPanOnConnect:!0,autoPanOnNodeDrag:!0,autoPanOnNodeFocus:!0,autoPanSpeed:15,connectionRadius:20,onError:T8e,isValidConnection:void 0,onSelectionChangeHandlers:[],lib:"react",debug:!1,ariaLabelConfig:bL,zIndexMode:f,onNodesChangeMiddlewareMap:new Map,onEdgesChangeMiddlewareMap:new Map}},mSe=({nodes:e,edges:r,defaultNodes:n,defaultEdges:o,width:a,height:i,fitView:l,fitViewOptions:s,minZoom:c,maxZoom:d,nodeOrigin:u,nodeExtent:p,zIndexMode:f})=>D7e((g,v)=>{async function w(){const{nodeLookup:x,panZoom:k,fitViewOptions:C,fitViewResolver:_,width:$,height:z,minZoom:j,maxZoom:A}=v();k&&(await R8e({nodes:x,width:$,height:z,panZoom:k,minZoom:j,maxZoom:A},C),_?.resolve(!0),g({fitViewResolver:null}))}return{...mV({nodes:e,edges:r,width:a,height:i,fitView:l,fitViewOptions:s,minZoom:c,maxZoom:d,nodeOrigin:u,nodeExtent:p,defaultNodes:n,defaultEdges:o,zIndexMode:f}),setNodes:x=>{const{nodeLookup:k,parentLookup:C,nodeOrigin:_,elevateNodesOnSelect:$,fitViewQueued:z,zIndexMode:j}=v(),A=t7(x,k,C,{nodeOrigin:_,nodeExtent:p,elevateNodesOnSelect:$,checkEquality:!0,zIndexMode:j});z&&A?(w(),g({nodes:x,nodesInitialized:A,fitViewQueued:!1,fitViewOptions:void 0})):g({nodes:x,nodesInitialized:A})},setEdges:x=>{const{connectionLookup:k,edgeLookup:C}=v();KL(k,C,x),g({edges:x})},setDefaultNodesAndEdges:(x,k)=>{if(x){const{setNodes:C}=v();C(x),g({hasDefaultNodes:!0})}if(k){const{setEdges:C}=v();C(k),g({hasDefaultEdges:!0})}},updateNodeInternals:x=>{const{triggerNodeChanges:k,nodeLookup:C,parentLookup:_,domNode:$,nodeOrigin:z,nodeExtent:j,debug:A,fitViewQueued:R,zIndexMode:T}=v(),{changes:O,updatedInternals:P}=J8e(x,C,_,$,z,j,T);P&&(X8e(C,_,{nodeOrigin:z,nodeExtent:j,zIndexMode:T}),R?(w(),g({fitViewQueued:!1,fitViewOptions:void 0})):g({}),O?.length>0&&(A&&console.log("React Flow: trigger node changes",O),k?.(O)))},updateNodePositions:(x,k=!1)=>{const C=[];let _=[];const{nodeLookup:$,triggerNodeChanges:z,connection:j,updateConnection:A,onNodesChangeMiddlewareMap:R}=v();for(const[T,O]of x){const P=$.get(T),L=!!(P?.expandParent&&P?.parentId&&O?.position),H={id:T,type:"position",position:L?{x:Math.max(0,O.position.x),y:Math.max(0,O.position.y)}:O.position,dragging:k};if(P&&j.inProgress&&j.fromNode.id===P.id){const M=qu(P,j.fromHandle,Ue.Left,!0);A({...j,from:M})}L&&P.parentId&&C.push({id:T,parentId:P.parentId,rect:{...O.internals.positionAbsolute,width:O.measured.width??0,height:O.measured.height??0}}),_.push(H)}if(C.length>0){const{parentLookup:T,nodeOrigin:O}=v(),P=n7(C,$,T,O);_.push(...P)}for(const T of R.values())_=T(_);z(_)},triggerNodeChanges:x=>{const{onNodesChange:k,setNodes:C,nodes:_,hasDefaultNodes:$,debug:z}=v();if(x?.length){if($){const j=Ox(x,_);C(j)}z&&console.log("React Flow: trigger node changes",x),k?.(x)}},triggerEdgeChanges:x=>{const{onEdgesChange:k,setEdges:C,edges:_,hasDefaultEdges:$,debug:z}=v();if(x?.length){if($){const j=Ix(x,_);C(j)}z&&console.log("React Flow: trigger edge changes",x),k?.(x)}},addSelectedNodes:x=>{const{multiSelectionActive:k,edgeLookup:C,nodeLookup:_,triggerNodeChanges:$,triggerEdgeChanges:z}=v();if(k){const j=x.map(A=>Hu(A,!0));$(j);return}$(sf(_,new Set([...x]),!0)),z(sf(C))},addSelectedEdges:x=>{const{multiSelectionActive:k,edgeLookup:C,nodeLookup:_,triggerNodeChanges:$,triggerEdgeChanges:z}=v();if(k){const j=x.map(A=>Hu(A,!0));z(j);return}z(sf(C,new Set([...x]))),$(sf(_,new Set,!0))},unselectNodesAndEdges:({nodes:x,edges:k}={})=>{const{edges:C,nodes:_,nodeLookup:$,triggerNodeChanges:z,triggerEdgeChanges:j}=v(),A=x||_,R=k||C,T=A.map(P=>{const L=$.get(P.id);return L&&(L.selected=!1),Hu(P.id,!1)}),O=R.map(P=>Hu(P.id,!1));z(T),j(O)},setMinZoom:x=>{const{panZoom:k,maxZoom:C}=v();k?.setScaleExtent([x,C]),g({minZoom:x})},setMaxZoom:x=>{const{panZoom:k,minZoom:C}=v();k?.setScaleExtent([C,x]),g({maxZoom:x})},setTranslateExtent:x=>{v().panZoom?.setTranslateExtent(x),g({translateExtent:x})},resetSelectedElements:()=>{const{edges:x,nodes:k,triggerNodeChanges:C,triggerEdgeChanges:_,elementsSelectable:$}=v();if(!$)return;const z=k.reduce((A,R)=>R.selected?[...A,Hu(R.id,!1)]:A,[]),j=x.reduce((A,R)=>R.selected?[...A,Hu(R.id,!1)]:A,[]);C(z),_(j)},setNodeExtent:x=>{const{nodes:k,nodeLookup:C,parentLookup:_,nodeOrigin:$,elevateNodesOnSelect:z,nodeExtent:j,zIndexMode:A}=v();x[0][0]===j[0][0]&&x[0][1]===j[0][1]&&x[1][0]===j[1][0]&&x[1][1]===j[1][1]||(t7(k,C,_,{nodeOrigin:$,nodeExtent:x,elevateNodesOnSelect:z,checkEquality:!1,zIndexMode:A}),g({nodeExtent:x}))},panBy:x=>{const{transform:k,width:C,height:_,panZoom:$,translateExtent:z}=v();return e7e({delta:x,panZoom:$,transform:k,translateExtent:z,width:C,height:_})},setCenter:async(x,k,C)=>{const{width:_,height:$,maxZoom:z,panZoom:j}=v();if(!j)return Promise.resolve(!1);const A=typeof C?.zoom<"u"?C.zoom:z;return await j.setViewport({x:_/2-x*A,y:$/2-k*A,zoom:A},{duration:C?.duration,ease:C?.ease,interpolate:C?.interpolate}),Promise.resolve(!0)},cancelConnection:()=>{g({connection:{...xL}})},updateConnection:x=>{g({connection:x})},reset:()=>g({...mV()})}},Object.is);function qx({initialNodes:e,initialEdges:r,defaultNodes:n,defaultEdges:o,initialWidth:a,initialHeight:i,initialMinZoom:l,initialMaxZoom:s,initialFitViewOptions:c,fitView:d,nodeOrigin:u,nodeExtent:p,zIndexMode:f,children:g}){const[v]=S.useState(()=>mSe({nodes:e,edges:r,defaultNodes:n,defaultEdges:o,width:a,height:i,fitView:d,minZoom:l,maxZoom:s,fitViewOptions:c,nodeOrigin:u,nodeExtent:p,zIndexMode:f}));return y.jsx(M7e,{value:v,children:y.jsx(n9e,{children:g})})}function gSe({children:e,nodes:r,edges:n,defaultNodes:o,defaultEdges:a,width:i,height:l,fitView:s,fitViewOptions:c,minZoom:d,maxZoom:u,nodeOrigin:p,nodeExtent:f,zIndexMode:g}){return S.useContext(Px)?y.jsx(y.Fragment,{children:e}):y.jsx(qx,{initialNodes:r,initialEdges:n,defaultNodes:o,defaultEdges:a,initialWidth:i,initialHeight:l,fitView:s,initialFitViewOptions:c,initialMinZoom:d,initialMaxZoom:u,nodeOrigin:p,nodeExtent:f,zIndexMode:g,children:e})}const ySe={width:"100%",height:"100%",overflow:"hidden",position:"relative",zIndex:0};function vSe({nodes:e,edges:r,defaultNodes:n,defaultEdges:o,className:a,nodeTypes:i,edgeTypes:l,onNodeClick:s,onEdgeClick:c,onInit:d,onMove:u,onMoveStart:p,onMoveEnd:f,onConnect:g,onConnectStart:v,onConnectEnd:w,onClickConnectStart:x,onClickConnectEnd:k,onNodeMouseEnter:C,onNodeMouseMove:_,onNodeMouseLeave:$,onNodeContextMenu:z,onNodeDoubleClick:j,onNodeDragStart:A,onNodeDrag:R,onNodeDragStop:T,onNodesDelete:O,onEdgesDelete:P,onDelete:L,onSelectionChange:H,onSelectionDragStart:M,onSelectionDrag:V,onSelectionDragStop:B,onSelectionContextMenu:F,onSelectionStart:q,onSelectionEnd:G,onBeforeDelete:U,connectionMode:Y,connectionLineType:Z=Kc.Bezier,connectionLineStyle:I,connectionLineComponent:W,connectionLineContainerStyle:K,deleteKeyCode:Q="Backspace",selectionKeyCode:ae="Shift",selectionOnDrag:te=!1,selectionMode:re=A1.Full,panActivationKeyCode:ue="Space",multiSelectionKeyCode:_e=nf()?"Meta":"Control",zoomActivationKeyCode:ce=nf()?"Meta":"Control",snapToGrid:pe,snapGrid:xe,onlyRenderVisibleElements:De=!1,selectNodesOnDrag:Be,nodesDraggable:Je,autoPanOnNodeFocus:st,nodesConnectable:Le,nodesFocusable:St,nodeOrigin:Ve=SF,edgesFocusable:qe,edgesReconnectable:Xe,elementsSelectable:Ot=!0,defaultViewport:Et=G7e,minZoom:be=.5,maxZoom:ke=2,translateExtent:Ye=T1,preventScrolling:yt=!0,nodeExtent:xt,defaultMarkerColor:jr="#b1b1b7",zoomOnScroll:er=!0,zoomOnPinch:qt=!0,panOnScroll:Ht=!1,panOnScrollSpeed:Zr=.5,panOnScrollMode:Gt=Lu.Free,zoomOnDoubleClick:ln=!0,panOnDrag:Wn=!0,onPaneClick:fn,onPaneMouseEnter:oo,onPaneMouseMove:Uo,onPaneMouseLeave:To,onPaneScroll:sa,onPaneContextMenu:Al,paneClickDistance:Ao=1,nodeClickDistance:bs=0,children:xs,onReconnect:kc,onReconnectStart:Dl,onReconnectEnd:ih,onEdgeContextMenu:ws,onEdgeDoubleClick:Hd,onEdgeMouseEnter:Wo,onEdgeMouseMove:_c,onEdgeMouseLeave:ks,reconnectRadius:Ud=10,onNodesChange:_s,onEdgesChange:Go,noDragClassName:Nr="nodrag",noWheelClassName:Mn="nowheel",noPanClassName:Do="nopan",fitView:Ml,fitViewOptions:Sc,connectOnClick:lh,attributionPosition:Ba,proOptions:Ei,defaultEdgeOptions:Nl,elevateNodesOnSelect:Ci=!0,elevateEdgesOnSelect:$i=!1,disableKeyboardA11y:ca=!1,autoPanOnConnect:ho,autoPanOnNodeDrag:Wr,autoPanSpeed:Ec,connectionRadius:Cc,isValidConnection:Oa,onError:zi,style:Wd,id:Ss,nodeDragThreshold:Gd,connectionDragThreshold:sh,viewport:Es,onViewportChange:Cs,width:Mo,height:Gr,colorMode:Yd="light",debug:ch,onScroll:Ri,ariaLabelConfig:Xd,zIndexMode:ji="basic",...Zd},J){const ee=Ss||"1",oe=K7e(Yd),ie=S.useCallback(le=>{le.currentTarget.scrollTo({top:0,left:0,behavior:"instant"}),Ri?.(le)},[Ri]);return y.jsx("div",{"data-testid":"rf__wrapper",...Zd,onScroll:ie,style:{...Wd,...ySe},ref:J,className:dn(["react-flow",a,oe]),id:Ss,role:"application",children:y.jsxs(gSe,{nodes:e,edges:r,width:Mo,height:Gr,fitView:Ml,fitViewOptions:Sc,minZoom:be,maxZoom:ke,nodeOrigin:Ve,nodeExtent:xt,zIndexMode:ji,children:[y.jsx(fSe,{onInit:d,onNodeClick:s,onEdgeClick:c,onNodeMouseEnter:C,onNodeMouseMove:_,onNodeMouseLeave:$,onNodeContextMenu:z,onNodeDoubleClick:j,nodeTypes:i,edgeTypes:l,connectionLineType:Z,connectionLineStyle:I,connectionLineComponent:W,connectionLineContainerStyle:K,selectionKeyCode:ae,selectionOnDrag:te,selectionMode:re,deleteKeyCode:Q,multiSelectionKeyCode:_e,panActivationKeyCode:ue,zoomActivationKeyCode:ce,onlyRenderVisibleElements:De,defaultViewport:Et,translateExtent:Ye,minZoom:be,maxZoom:ke,preventScrolling:yt,zoomOnScroll:er,zoomOnPinch:qt,zoomOnDoubleClick:ln,panOnScroll:Ht,panOnScrollSpeed:Zr,panOnScrollMode:Gt,panOnDrag:Wn,onPaneClick:fn,onPaneMouseEnter:oo,onPaneMouseMove:Uo,onPaneMouseLeave:To,onPaneScroll:sa,onPaneContextMenu:Al,paneClickDistance:Ao,nodeClickDistance:bs,onSelectionContextMenu:F,onSelectionStart:q,onSelectionEnd:G,onReconnect:kc,onReconnectStart:Dl,onReconnectEnd:ih,onEdgeContextMenu:ws,onEdgeDoubleClick:Hd,onEdgeMouseEnter:Wo,onEdgeMouseMove:_c,onEdgeMouseLeave:ks,reconnectRadius:Ud,defaultMarkerColor:jr,noDragClassName:Nr,noWheelClassName:Mn,noPanClassName:Do,rfId:ee,disableKeyboardA11y:ca,nodeExtent:xt,viewport:Es,onViewportChange:Cs}),y.jsx(Z7e,{nodes:e,edges:r,defaultNodes:n,defaultEdges:o,onConnect:g,onConnectStart:v,onConnectEnd:w,onClickConnectStart:x,onClickConnectEnd:k,nodesDraggable:Je,autoPanOnNodeFocus:st,nodesConnectable:Le,nodesFocusable:St,edgesFocusable:qe,edgesReconnectable:Xe,elementsSelectable:Ot,elevateNodesOnSelect:Ci,elevateEdgesOnSelect:$i,minZoom:be,maxZoom:ke,nodeExtent:xt,onNodesChange:_s,onEdgesChange:Go,snapToGrid:pe,snapGrid:xe,connectionMode:Y,translateExtent:Ye,connectOnClick:lh,defaultEdgeOptions:Nl,fitView:Ml,fitViewOptions:Sc,onNodesDelete:O,onEdgesDelete:P,onDelete:L,onNodeDragStart:A,onNodeDrag:R,onNodeDragStop:T,onSelectionDrag:V,onSelectionDragStart:M,onSelectionDragStop:B,onMove:u,onMoveStart:p,onMoveEnd:f,noPanClassName:Do,nodeOrigin:Ve,rfId:ee,autoPanOnConnect:ho,autoPanOnNodeDrag:Wr,autoPanSpeed:Ec,onError:zi,connectionRadius:Cc,isValidConnection:Oa,selectNodesOnDrag:Be,nodeDragThreshold:Gd,connectionDragThreshold:sh,onBeforeDelete:U,debug:ch,ariaLabelConfig:Xd,zIndexMode:ji}),y.jsx(W7e,{onSelectionChange:H}),xs,y.jsx(F7e,{proOptions:Ei,position:Ba}),y.jsx(L7e,{rfId:ee,disableKeyboardA11y:ca})]})})}var bSe=NF(vSe);const xSe=e=>e.domNode?.querySelector(".react-flow__edgelabel-renderer");function gV({children:e}){const r=Dt(xSe);return r?Ii.createPortal(e,r):null}function wSe({dimensions:e,lineWidth:r,variant:n,className:o}){return y.jsx("path",{strokeWidth:r,d:`M${e[0]/2} 0 V${e[1]} M0 ${e[1]/2} H${e[0]}`,className:dn(["react-flow__background-pattern",n,o])})}function kSe({radius:e,className:r}){return y.jsx("circle",{cx:e,cy:e,r:e,className:dn(["react-flow__background-pattern","dots",r])})}var Xi;(function(e){e.Lines="lines",e.Dots="dots",e.Cross="cross"})(Xi||(Xi={}));const _Se={[Xi.Dots]:1,[Xi.Lines]:1,[Xi.Cross]:6},SSe=e=>({transform:e.transform,patternId:`pattern-${e.rfId}`});function yV({id:e,variant:r=Xi.Dots,gap:n=20,size:o,lineWidth:a=1,offset:i=0,color:l,bgColor:s,style:c,className:d,patternClassName:u}){const p=S.useRef(null),{transform:f,patternId:g}=Dt(SSe,Tr),v=o||_Se[r],w=r===Xi.Dots,x=r===Xi.Cross,k=Array.isArray(n)?n:[n,n],C=[k[0]*f[2]||1,k[1]*f[2]||1],_=v*f[2],$=Array.isArray(i)?i:[i,i],z=x?[_,_]:C,j=[$[0]*f[2]||1+z[0]/2,$[1]*f[2]||1+z[1]/2],A=`${g}${e||""}`;return y.jsxs("svg",{className:dn(["react-flow__background",d]),style:{...c,...Lx,"--xy-background-color-props":s,"--xy-background-pattern-color-props":l},ref:p,"data-testid":"rf__background",children:[y.jsx("pattern",{id:A,x:f[0]%C[0],y:f[1]%C[1],width:C[0],height:C[1],patternUnits:"userSpaceOnUse",patternTransform:`translate(-${j[0]},-${j[1]})`,children:w?y.jsx(kSe,{radius:_/2,className:u}):y.jsx(wSe,{dimensions:z,lineWidth:a,variant:r,className:u})}),y.jsx("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:`url(#${A})`})]})}yV.displayName="Background";const vV=S.memo(yV);function ESe(){return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",children:y.jsx("path",{d:"M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"})})}function CSe(){return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 5",children:y.jsx("path",{d:"M0 0h32v4.2H0z"})})}function $Se(){return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 30",children:y.jsx("path",{d:"M3.692 4.63c0-.53.4-.938.939-.938h5.215V0H4.708C2.13 0 0 2.054 0 4.63v5.216h3.692V4.631zM27.354 0h-5.2v3.692h5.17c.53 0 .984.4.984.939v5.215H32V4.631A4.624 4.624 0 0027.354 0zm.954 24.83c0 .532-.4.94-.939.94h-5.215v3.768h5.215c2.577 0 4.631-2.13 4.631-4.707v-5.139h-3.692v5.139zm-23.677.94c-.531 0-.939-.4-.939-.94v-5.138H0v5.139c0 2.577 2.13 4.707 4.708 4.707h5.138V25.77H4.631z"})})}function zSe(){return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:y.jsx("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0 8 0 4.571 3.429 4.571 7.619v3.048H3.048A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047zm4.724-13.866H7.467V7.619c0-2.59 2.133-4.724 4.723-4.724 2.591 0 4.724 2.133 4.724 4.724v3.048z"})})}function RSe(){return y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:y.jsx("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0c-4.114 1.828-1.37 2.133.305 2.438 1.676.305 4.42 2.59 4.42 5.181v3.048H3.047A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047z"})})}function Hx({children:e,className:r,...n}){return y.jsx("button",{type:"button",className:dn(["react-flow__controls-button",r]),...n,children:e})}const jSe=e=>({isInteractive:e.nodesDraggable||e.nodesConnectable||e.elementsSelectable,minZoomReached:e.transform[2]<=e.minZoom,maxZoomReached:e.transform[2]>=e.maxZoom,ariaLabelConfig:e.ariaLabelConfig});function bV({style:e,showZoom:r=!0,showFitView:n=!0,showInteractive:o=!0,fitViewOptions:a,onZoomIn:i,onZoomOut:l,onFitView:s,onInteractiveChange:c,className:d,children:u,position:p="bottom-left",orientation:f="vertical","aria-label":g}){const v=vr(),{isInteractive:w,minZoomReached:x,maxZoomReached:k,ariaLabelConfig:C}=Dt(jSe,Tr),{zoomIn:_,zoomOut:$,fitView:z}=cf(),j=()=>{_(),i?.()},A=()=>{$(),l?.()},R=()=>{z(a),s?.()},T=()=>{v.setState({nodesDraggable:!w,nodesConnectable:!w,elementsSelectable:!w}),c?.(!w)};return y.jsxs(ed,{className:dn(["react-flow__controls",f==="horizontal"?"horizontal":"vertical",d]),position:p,style:e,"data-testid":"rf__controls","aria-label":g??C["controls.ariaLabel"],children:[r&&y.jsxs(y.Fragment,{children:[y.jsx(Hx,{onClick:j,className:"react-flow__controls-zoomin",title:C["controls.zoomIn.ariaLabel"],"aria-label":C["controls.zoomIn.ariaLabel"],disabled:k,children:y.jsx(ESe,{})}),y.jsx(Hx,{onClick:A,className:"react-flow__controls-zoomout",title:C["controls.zoomOut.ariaLabel"],"aria-label":C["controls.zoomOut.ariaLabel"],disabled:x,children:y.jsx(CSe,{})})]}),n&&y.jsx(Hx,{className:"react-flow__controls-fitview",onClick:R,title:C["controls.fitView.ariaLabel"],"aria-label":C["controls.fitView.ariaLabel"],children:y.jsx($Se,{})}),o&&y.jsx(Hx,{className:"react-flow__controls-interactive",onClick:T,title:C["controls.interactive.ariaLabel"],"aria-label":C["controls.interactive.ariaLabel"],children:w?y.jsx(RSe,{}):y.jsx(zSe,{})}),u]})}bV.displayName="Controls",S.memo(bV);function TSe({id:e,x:r,y:n,width:o,height:a,style:i,color:l,strokeColor:s,strokeWidth:c,className:d,borderRadius:u,shapeRendering:p,selected:f,onClick:g}){const{background:v,backgroundColor:w}=i||{},x=l||v||w;return y.jsx("rect",{className:dn(["react-flow__minimap-node",{selected:f},d]),x:r,y:n,rx:u,ry:u,width:o,height:a,style:{fill:x,stroke:s,strokeWidth:c},shapeRendering:p,onClick:g?k=>g(k,e):void 0})}const ASe=S.memo(TSe),DSe=e=>e.nodes.map(r=>r.id),m7=e=>e instanceof Function?e:()=>e;function MSe({nodeStrokeColor:e,nodeColor:r,nodeClassName:n="",nodeBorderRadius:o=5,nodeStrokeWidth:a,nodeComponent:i=ASe,onClick:l}){const s=Dt(DSe,Tr),c=m7(r),d=m7(e),u=m7(n),p=typeof window>"u"||window.chrome?"crispEdges":"geometricPrecision";return y.jsx(y.Fragment,{children:s.map(f=>y.jsx(PSe,{id:f,nodeColorFunc:c,nodeStrokeColorFunc:d,nodeClassNameFunc:u,nodeBorderRadius:o,nodeStrokeWidth:a,NodeComponent:i,onClick:l,shapeRendering:p},f))})}function NSe({id:e,nodeColorFunc:r,nodeStrokeColorFunc:n,nodeClassNameFunc:o,nodeBorderRadius:a,nodeStrokeWidth:i,shapeRendering:l,NodeComponent:s,onClick:c}){const{node:d,x:u,y:p,width:f,height:g}=Dt(v=>{const{internals:w}=v.nodeLookup.get(e),x=w.userNode,{x:k,y:C}=w.positionAbsolute,{width:_,height:$}=_o(x);return{node:x,x:k,y:C,width:_,height:$}},Tr);return!d||d.hidden||!TL(d)?null:y.jsx(s,{x:u,y:p,width:f,height:g,style:d.style,selected:!!d.selected,className:o(d),color:r(d),borderRadius:a,strokeColor:n(d),strokeWidth:i,shapeRendering:l,onClick:c,id:d.id})}const PSe=S.memo(NSe);var BSe=S.memo(MSe);const OSe=200,ISe=150,LSe=e=>!e.hidden,FSe=e=>{const r={x:-e.transform[0]/e.transform[2],y:-e.transform[1]/e.transform[2],width:e.width/e.transform[2],height:e.height/e.transform[2]};return{viewBB:r,boundingRect:e.nodeLookup.size>0?RL(ef(e.nodeLookup,{filter:LSe}),r):r,rfId:e.rfId,panZoom:e.panZoom,translateExtent:e.translateExtent,flowWidth:e.width,flowHeight:e.height,ariaLabelConfig:e.ariaLabelConfig}},VSe="react-flow__minimap-desc";function xV({style:e,className:r,nodeStrokeColor:n,nodeColor:o,nodeClassName:a="",nodeBorderRadius:i=5,nodeStrokeWidth:l,nodeComponent:s,bgColor:c,maskColor:d,maskStrokeColor:u,maskStrokeWidth:p,position:f="bottom-right",onClick:g,onNodeClick:v,pannable:w=!1,zoomable:x=!1,ariaLabel:k,inversePan:C,zoomStep:_=1,offsetScale:$=5}){const z=vr(),j=S.useRef(null),{boundingRect:A,viewBB:R,rfId:T,panZoom:O,translateExtent:P,flowWidth:L,flowHeight:H,ariaLabelConfig:M}=Dt(FSe,Tr),V=e?.width??OSe,B=e?.height??ISe,F=A.width/V,q=A.height/B,G=Math.max(F,q),U=G*V,Y=G*B,Z=$*G,I=A.x-(U-A.width)/2-Z,W=A.y-(Y-A.height)/2-Z,K=U+Z*2,Q=Y+Z*2,ae=`${VSe}-${T}`,te=S.useRef(0),re=S.useRef();te.current=G,S.useEffect(()=>{if(j.current&&O)return re.current=c7e({domNode:j.current,panZoom:O,getTransform:()=>z.getState().transform,getViewScale:()=>te.current}),()=>{re.current?.destroy()}},[O]),S.useEffect(()=>{re.current?.update({translateExtent:P,width:L,height:H,inversePan:C,pannable:w,zoomStep:_,zoomable:x})},[w,x,C,_,P,L,H]);const ue=g?pe=>{const[xe,De]=re.current?.pointer(pe)||[0,0];g(pe,{x:xe,y:De})}:void 0,_e=v?S.useCallback((pe,xe)=>{const De=z.getState().nodeLookup.get(xe).internals.userNode;v(pe,De)},[]):void 0,ce=k??M["minimap.ariaLabel"];return y.jsx(ed,{position:f,style:{...e,"--xy-minimap-background-color-props":typeof c=="string"?c:void 0,"--xy-minimap-mask-background-color-props":typeof d=="string"?d:void 0,"--xy-minimap-mask-stroke-color-props":typeof u=="string"?u:void 0,"--xy-minimap-mask-stroke-width-props":typeof p=="number"?p*G:void 0,"--xy-minimap-node-background-color-props":typeof o=="string"?o:void 0,"--xy-minimap-node-stroke-color-props":typeof n=="string"?n:void 0,"--xy-minimap-node-stroke-width-props":typeof l=="number"?l:void 0},className:dn(["react-flow__minimap",r]),"data-testid":"rf__minimap",children:y.jsxs("svg",{width:V,height:B,viewBox:`${I} ${W} ${K} ${Q}`,className:"react-flow__minimap-svg",role:"img","aria-labelledby":ae,ref:j,onClick:ue,children:[ce&&y.jsx("title",{id:ae,children:ce}),y.jsx(BSe,{onClick:_e,nodeColor:o,nodeStrokeColor:n,nodeBorderRadius:i,nodeClassName:a,nodeStrokeWidth:l,nodeComponent:s}),y.jsx("path",{className:"react-flow__minimap-mask",d:`M${I-Z},${W-Z}h${K+Z*2}v${Q+Z*2}h${-K-Z*2}z + M${R.x},${R.y}h${R.width}v${R.height}h${-R.width}z`,fillRule:"evenodd",pointerEvents:"none"})]})})}xV.displayName="MiniMap",S.memo(xV);const qSe=e=>r=>e?`${Math.max(1/r.transform[2],1)}`:void 0,HSe={[lf.Line]:"right",[lf.Handle]:"bottom-right"};function USe({nodeId:e,position:r,variant:n=lf.Handle,className:o,style:a=void 0,children:i,color:l,minWidth:s=10,minHeight:c=10,maxWidth:d=Number.MAX_VALUE,maxHeight:u=Number.MAX_VALUE,keepAspectRatio:p=!1,resizeDirection:f,autoScale:g=!0,shouldResize:v,onResizeStart:w,onResize:x,onResizeEnd:k}){const C=f7(),_=typeof e=="string"?e:C,$=vr(),z=S.useRef(null),j=n===lf.Handle,A=Dt(S.useCallback(qSe(j&&g),[j,g]),Tr),R=S.useRef(null),T=r??HSe[n];S.useEffect(()=>{if(!(!z.current||!_))return R.current||(R.current=_7e({domNode:z.current,nodeId:_,getStoreItems:()=>{const{nodeLookup:P,transform:L,snapGrid:H,snapToGrid:M,nodeOrigin:V,domNode:B}=$.getState();return{nodeLookup:P,transform:L,snapGrid:H,snapToGrid:M,nodeOrigin:V,paneDomNode:B}},onChange:(P,L)=>{const{triggerNodeChanges:H,nodeLookup:M,parentLookup:V,nodeOrigin:B}=$.getState(),F=[],q={x:P.x,y:P.y},G=M.get(_);if(G&&G.expandParent&&G.parentId){const U=G.origin??B,Y=P.width??G.measured.width??0,Z=P.height??G.measured.height??0,I={id:G.id,parentId:G.parentId,rect:{width:Y,height:Z,...AL({x:P.x??G.position.x,y:P.y??G.position.y},{width:Y,height:Z},G.parentId,M,U)}},W=n7([I],M,V,B);F.push(...W),q.x=P.x?Math.max(U[0]*Y,P.x):void 0,q.y=P.y?Math.max(U[1]*Z,P.y):void 0}if(q.x!==void 0&&q.y!==void 0){const U={id:_,type:"position",position:{...q}};F.push(U)}if(P.width!==void 0&&P.height!==void 0){const U={id:_,type:"dimensions",resizing:!0,setAttributes:f?f==="horizontal"?"width":"height":!0,dimensions:{width:P.width,height:P.height}};F.push(U)}for(const U of L){const Y={...U,type:"position"};F.push(Y)}H(F)},onEnd:({width:P,height:L})=>{const H={id:_,type:"dimensions",resizing:!1,dimensions:{width:P,height:L}};$.getState().triggerNodeChanges([H])}})),R.current.update({controlPosition:T,boundaries:{minWidth:s,minHeight:c,maxWidth:d,maxHeight:u},keepAspectRatio:p,resizeDirection:f,onResizeStart:w,onResize:x,onResizeEnd:k,shouldResize:v}),()=>{R.current?.destroy()}},[T,s,c,d,u,p,w,x,k,v]);const O=T.split("-");return y.jsx("div",{className:dn(["react-flow__resize-control","nodrag",...O,n,o]),ref:z,style:{...a,scale:A,...l&&{[j?"backgroundColor":"borderColor"]:l}},children:i})}S.memo(USe);const WSe=e=>e.domNode?.querySelector(".react-flow__renderer");function GSe({children:e}){const r=Dt(WSe);return r?Ii.createPortal(e,r):null}const YSe=(e,r)=>e?.internals.positionAbsolute.x!==r?.internals.positionAbsolute.x||e?.internals.positionAbsolute.y!==r?.internals.positionAbsolute.y||e?.measured.width!==r?.measured.width||e?.measured.height!==r?.measured.height||e?.selected!==r?.selected||e?.internals.z!==r?.internals.z,XSe=(e,r)=>{if(e.size!==r.size)return!1;for(const[n,o]of e)if(YSe(o,r.get(n)))return!1;return!0},ZSe=e=>({x:e.transform[0],y:e.transform[1],zoom:e.transform[2],selectedNodesCount:e.nodes.filter(r=>r.selected).length});function g7({nodeId:e,children:r,className:n,style:o,isVisible:a,position:i=Ue.Top,offset:l=10,align:s="center",...c}){const d=f7(),u=S.useCallback($=>(Array.isArray(e)?e:[e||d||""]).reduce((z,j)=>{const A=$.nodeLookup.get(j);return A&&z.set(A.id,A),z},new Map),[e,d]),p=Dt(u,XSe),{x:f,y:g,zoom:v,selectedNodesCount:w}=Dt(ZSe,Tr);if(!(typeof a=="boolean"?a:p.size===1&&p.values().next().value?.selected&&w===1)||!p.size)return null;const x=ef(p),k=Array.from(p.values()),C=Math.max(...k.map($=>$.internals.z+1)),_={position:"absolute",transform:W8e(x,{x:f,y:g,zoom:v},i,l,s),zIndex:C,...o};return y.jsx(GSe,{children:y.jsx("div",{style:_,className:dn(["react-flow__node-toolbar",n]),...c,"data-id":k.reduce(($,z)=>`${$}${z.id} `,"").trim(),children:r})})}var KSe=Object.getOwnPropertyNames,QSe=Object.getOwnPropertySymbols,JSe=Object.prototype.hasOwnProperty;function wV(e,r){return function(n,o,a){return e(n,o,a)&&r(n,o,a)}}function Ux(e){return function(r,n,o){if(!r||!n||typeof r!="object"||typeof n!="object")return e(r,n,o);var a=o.cache,i=a.get(r),l=a.get(n);if(i&&l)return i===n&&l===r;a.set(r,n),a.set(n,r);var s=e(r,n,o);return a.delete(r),a.delete(n),s}}function eEe(e){return e?.[Symbol.toStringTag]}function kV(e){return KSe(e).concat(QSe(e))}var tEe=Object.hasOwn||(function(e,r){return JSe.call(e,r)});function Uu(e,r){return e===r||!e&&!r&&e!==e&&r!==r}var rEe="__v",nEe="__o",oEe="_owner",_V=Object.getOwnPropertyDescriptor,SV=Object.keys;function aEe(e,r,n){var o=e.length;if(r.length!==o)return!1;for(;o-- >0;)if(!n.equals(e[o],r[o],o,o,e,r,n))return!1;return!0}function iEe(e,r){return Uu(e.getTime(),r.getTime())}function lEe(e,r){return e.name===r.name&&e.message===r.message&&e.cause===r.cause&&e.stack===r.stack}function sEe(e,r){return e===r}function EV(e,r,n){var o=e.size;if(o!==r.size)return!1;if(!o)return!0;for(var a=new Array(o),i=e.entries(),l,s,c=0;(l=i.next())&&!l.done;){for(var d=r.entries(),u=!1,p=0;(s=d.next())&&!s.done;){if(a[p]){p++;continue}var f=l.value,g=s.value;if(n.equals(f[0],g[0],c,p,e,r,n)&&n.equals(f[1],g[1],f[0],g[0],e,r,n)){u=a[p]=!0;break}p++}if(!u)return!1;c++}return!0}var cEe=Uu;function dEe(e,r,n){var o=SV(e),a=o.length;if(SV(r).length!==a)return!1;for(;a-- >0;)if(!$V(e,r,n,o[a]))return!1;return!0}function I1(e,r,n){var o=kV(e),a=o.length;if(kV(r).length!==a)return!1;for(var i,l,s;a-- >0;)if(i=o[a],!$V(e,r,n,i)||(l=_V(e,i),s=_V(r,i),(l||s)&&(!l||!s||l.configurable!==s.configurable||l.enumerable!==s.enumerable||l.writable!==s.writable)))return!1;return!0}function uEe(e,r){return Uu(e.valueOf(),r.valueOf())}function pEe(e,r){return e.source===r.source&&e.flags===r.flags}function CV(e,r,n){var o=e.size;if(o!==r.size)return!1;if(!o)return!0;for(var a=new Array(o),i=e.values(),l,s;(l=i.next())&&!l.done;){for(var c=r.values(),d=!1,u=0;(s=c.next())&&!s.done;){if(!a[u]&&n.equals(l.value,s.value,l.value,s.value,e,r,n)){d=a[u]=!0;break}u++}if(!d)return!1}return!0}function hEe(e,r){var n=e.length;if(r.length!==n)return!1;for(;n-- >0;)if(e[n]!==r[n])return!1;return!0}function fEe(e,r){return e.hostname===r.hostname&&e.pathname===r.pathname&&e.protocol===r.protocol&&e.port===r.port&&e.hash===r.hash&&e.username===r.username&&e.password===r.password}function $V(e,r,n,o){return(o===oEe||o===nEe||o===rEe)&&(e.$$typeof||r.$$typeof)?!0:tEe(r,o)&&n.equals(e[o],r[o],o,o,e,r,n)}var mEe="[object Arguments]",gEe="[object Boolean]",yEe="[object Date]",vEe="[object Error]",bEe="[object Map]",xEe="[object Number]",wEe="[object Object]",kEe="[object RegExp]",_Ee="[object Set]",SEe="[object String]",EEe="[object URL]",CEe=Array.isArray,zV=typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView:null,RV=Object.assign,$Ee=Object.prototype.toString.call.bind(Object.prototype.toString);function zEe(e){var r=e.areArraysEqual,n=e.areDatesEqual,o=e.areErrorsEqual,a=e.areFunctionsEqual,i=e.areMapsEqual,l=e.areNumbersEqual,s=e.areObjectsEqual,c=e.arePrimitiveWrappersEqual,d=e.areRegExpsEqual,u=e.areSetsEqual,p=e.areTypedArraysEqual,f=e.areUrlsEqual,g=e.unknownTagComparators;return function(v,w,x){if(v===w)return!0;if(v==null||w==null)return!1;var k=typeof v;if(k!==typeof w)return!1;if(k!=="object")return k==="number"?l(v,w,x):k==="function"?a(v,w,x):!1;var C=v.constructor;if(C!==w.constructor)return!1;if(C===Object)return s(v,w,x);if(CEe(v))return r(v,w,x);if(zV!=null&&zV(v))return p(v,w,x);if(C===Date)return n(v,w,x);if(C===RegExp)return d(v,w,x);if(C===Map)return i(v,w,x);if(C===Set)return u(v,w,x);var _=$Ee(v);if(_===yEe)return n(v,w,x);if(_===kEe)return d(v,w,x);if(_===bEe)return i(v,w,x);if(_===_Ee)return u(v,w,x);if(_===wEe)return typeof v.then!="function"&&typeof w.then!="function"&&s(v,w,x);if(_===EEe)return f(v,w,x);if(_===vEe)return o(v,w,x);if(_===mEe)return s(v,w,x);if(_===gEe||_===xEe||_===SEe)return c(v,w,x);if(g){var $=g[_];if(!$){var z=eEe(v);z&&($=g[z])}if($)return $(v,w,x)}return!1}}function REe(e){var r=e.circular,n=e.createCustomConfig,o=e.strict,a={areArraysEqual:o?I1:aEe,areDatesEqual:iEe,areErrorsEqual:lEe,areFunctionsEqual:sEe,areMapsEqual:o?wV(EV,I1):EV,areNumbersEqual:cEe,areObjectsEqual:o?I1:dEe,arePrimitiveWrappersEqual:uEe,areRegExpsEqual:pEe,areSetsEqual:o?wV(CV,I1):CV,areTypedArraysEqual:o?I1:hEe,areUrlsEqual:fEe,unknownTagComparators:void 0};if(n&&(a=RV({},a,n(a))),r){var i=Ux(a.areArraysEqual),l=Ux(a.areMapsEqual),s=Ux(a.areObjectsEqual),c=Ux(a.areSetsEqual);a=RV({},a,{areArraysEqual:i,areMapsEqual:l,areObjectsEqual:s,areSetsEqual:c})}return a}function jEe(e){return function(r,n,o,a,i,l,s){return e(r,n,s)}}function TEe(e){var r=e.circular,n=e.comparator,o=e.createState,a=e.equals,i=e.strict;if(o)return function(s,c){var d=o(),u=d.cache,p=u===void 0?r?new WeakMap:void 0:u,f=d.meta;return n(s,c,{cache:p,equals:a,meta:f,strict:i})};if(r)return function(s,c){return n(s,c,{cache:new WeakMap,equals:a,meta:void 0,strict:i})};var l={cache:void 0,equals:a,meta:void 0,strict:i};return function(s,c){return n(s,c,l)}}var tt=td();td({strict:!0}),td({circular:!0}),td({circular:!0,strict:!0});var Or=td({createInternalComparator:function(){return Uu}});td({strict:!0,createInternalComparator:function(){return Uu}}),td({circular:!0,createInternalComparator:function(){return Uu}}),td({circular:!0,createInternalComparator:function(){return Uu},strict:!0});function td(e){e===void 0&&(e={});var r=e.circular,n=r===void 0?!1:r,o=e.createInternalComparator,a=e.createState,i=e.strict,l=i===void 0?!1:i,s=REe(e),c=zEe(s),d=o?o(c):jEe(c);return TEe({circular:n,comparator:c,createState:a,equals:d,strict:l})}function AEe(e,r,n){let o=a=>e(a,...r);return n===void 0?o:Object.assign(o,{lazy:n,lazyArgs:r})}function nr(e,r,n){let o=e.length-r.length;if(o===0)return e(...r);if(o===1)return AEe(e,r,n);throw Error("Wrong number of arguments")}const DEe=e=>(r,n)=>{if(n===0)return e(r);if(!Number.isInteger(n))throw TypeError(`precision must be an integer: ${n.toString()}`);if(n>15||n<-15)throw RangeError("precision must be between -15 and 15");if(Number.isNaN(r)||!Number.isFinite(r))return e(r);let o=jV(r,n),a=e(o);return jV(a,-n)};function jV(e,r){let[n,o]=e.toString().split("e"),a=(o===void 0?0:Number.parseInt(o,10))+r,i=`${n}e${a.toString()}`;return Number.parseFloat(i)}function MEe(...e){return nr(DEe(Math.ceil),e)}function Qa(...e){return nr(NEe,e)}const NEe=(e,{min:r,max:n})=>r!==void 0&&en?n:e;function PEe(...e){return nr(BEe,e)}const BEe=(e,r)=>[...e,...r],L1={done:!1,hasNext:!1},OEe=e=>({hasNext:!0,next:e,done:!1});function Jr(e,...r){let n=e,o=r.map(i=>"lazy"in i?IEe(i):void 0),a=0;for(;aJr(a,o),o)}throw Error("Wrong number of arguments")}function FEe(...e){return AV(VEe,e)}function VEe(e){if(e.length===0)return OEe;let r=new Map;for(let n of e)r.set(n,(r.get(n)??0)+1);return n=>{let o=r.get(n);return o===void 0||o===0?{done:!1,hasNext:!0,next:n}:(r.set(n,o-1),L1)}}function xn(...e){return nr(qEe,e)}const qEe=(e,r)=>e.length>=r,DV={asc:(e,r)=>e>r,desc:(e,r)=>ee(i,a)}function y7(e,r,...n){let o=typeof e=="function"?e:e[0],a=typeof e=="function"?"asc":e[1],{[a]:i}=DV,l=r===void 0?void 0:y7(r,...n);return(s,c)=>{let d=o(s),u=o(c);return i(d,u)?1:i(u,d)?-1:l?.(s,c)??0}}function UEe(e){if(MV(e))return!0;if(typeof e!="object"||!Array.isArray(e))return!1;let[r,n,...o]=e;return MV(r)&&typeof n=="string"&&n in DV&&o.length===0}const MV=e=>typeof e=="function"&&e.length===1;function Wx(...e){return nr(Object.entries,e)}function Wu(...e){return nr(WEe,e,GEe)}const WEe=(e,r)=>e.filter(r),GEe=e=>(r,n,o)=>e(r,n,o)?{done:!1,hasNext:!0,next:r}:L1,NV=e=>Object.assign(e,{single:!0});function F1(...e){return nr(YEe,e,NV(XEe))}const YEe=(e,r)=>e.find(r),XEe=e=>(r,n,o)=>e(r,n,o)?{done:!0,hasNext:!0,next:r}:L1;function df(...e){return nr(ZEe,e,NV(KEe))}const ZEe=([e])=>e,KEe=()=>QEe,QEe=e=>({hasNext:!0,next:e,done:!0});function PV(...e){return nr(JEe,e,eCe)}const JEe=(e,r)=>e.flatMap(r),eCe=e=>(r,n,o)=>{let a=e(r,n,o);return Array.isArray(a)?{done:!1,hasNext:!0,hasMany:!0,next:a}:{done:!1,hasNext:!0,next:a}};function tCe(...e){return nr(rCe,e)}function rCe(e,r){for(let[n,o]of Object.entries(e))r(o,n,e);return e}function nCe(...e){return nr(oCe,e)}const oCe=(e,r)=>{let n=Object.create(null);for(let o=0;otypeof e=="function";function dCe(e){return e!==null}function IV(e){return e!=null}function uCe(e){return r=>!e(r)}function H1(e){return e==null}function LV(e){return typeof e=="number"&&!Number.isNaN(e)}function b7(e){if(typeof e!="object"||!e)return!1;let r=Object.getPrototypeOf(e);return r===null||r===Object.prototype}function FV(...e){return nr(pCe,e)}function pCe(e,r){if(e===r||Object.is(e,r))return!0;if(typeof e!="object"||!e||typeof r!="object"||!r)return!1;if(e instanceof Map&&r instanceof Map)return hCe(e,r);if(e instanceof Set&&r instanceof Set)return fCe(e,r);let n=Object.keys(e);if(n.length!==Object.keys(r).length)return!1;for(let o of n){if(!Object.hasOwn(r,o))return!1;let{[o]:a}=e,{[o]:i}=r;if(a!==i||!Object.is(a,i))return!1}return!0}function hCe(e,r){if(e.size!==r.size)return!1;for(let[n,o]of e){let a=r.get(n);if(o!==a||!Object.is(o,a))return!1}return!0}function fCe(e,r){if(e.size!==r.size)return!1;for(let n of e)if(!r.has(n))return!1;return!0}function Gx(e){return typeof e=="string"}function Kn(e){return!!e}function VV(...e){return nr(mCe,e)}const mCe=(e,r)=>e.join(r);function x7(...e){return nr(Object.keys,e)}function rd(...e){return nr(gCe,e)}const gCe=e=>e.at(-1);function un(...e){return nr(yCe,e,vCe)}const yCe=(e,r)=>e.map(r),vCe=e=>(r,n,o)=>({done:!1,hasNext:!0,next:e(r,n,o)});function Yx(...e){return nr(bCe,e)}function bCe(e,r){let n={};for(let[o,a]of e.entries()){let[i,l]=r(a,o,e);n[i]=l}return n}function xCe(...e){return nr(wCe,e)}function wCe(e,r){let n={};for(let[o,a]of Object.entries(e))n[o]=r(a,o,e);return n}function qV(...e){return nr(HV,e)}function HV(e,r){let n={...e,...r};for(let o in r){if(!(o in e))continue;let{[o]:a}=e;if(!b7(a))continue;let{[o]:i}=r;b7(i)&&(n[o]=HV(a,i))}return n}function nd(...e){return nr(kCe,e)}function kCe(e,r){if(!xn(r,1))return{...e};if(!xn(r,2)){let{[r[0]]:o,...a}=e;return a}let n={...e};for(let o of r)delete n[o];return n}function _Ce(...e){return nr(SCe,e)}function SCe(e,r){let n={...e};for(let[o,a]of Object.entries(n))r(a,o,e)&&delete n[o];return n}function Xx(...e){return nr(ECe,e)}const ECe=e=>e.length===1?e[0]:void 0;function UV(...e){return nr(CCe,e)}const CCe=(e,r)=>{let n=[[],[]];for(let[o,a]of e.entries())r(a,o,e)?n[0].push(a):n[1].push(a);return n};function WV(...e){return nr($Ce,e)}function $Ce(e,r){let n={};for(let o of r)o in e&&(n[o]=e[o]);return n}function U1(...e){return nr(zCe,e)}function zCe(e,r){let n={};for(let[o,a]of Object.entries(e))r(a,o,e)&&(n[o]=a);return n}function Yu(e,...r){return typeof e=="string"||typeof e=="number"||typeof e=="symbol"?n=>GV(n,e,...r):GV(e,...r)}function GV(e,...r){let n=e;for(let o of r){if(n==null)return;n=n[o]}return n}function RCe(...e){return nr(jCe,e)}function jCe(e,r){let n=[];for(let o=e;oe.reduce(r,n);function ACe(...e){return nr(DCe,e)}function DCe(e){return[...e].reverse()}function MCe(...e){return nr(NCe,e)}function NCe(e,r){let n=[...e];return n.sort(r),n}function Kx(...e){return HEe(PCe,e)}const PCe=(e,r)=>[...e].sort(r);function YV(...e){return nr(BCe,e)}function BCe(e,r){return r(e),e}function Qx(...e){return AV(OCe,e)}function OCe(){let e=new Set;return r=>e.has(r)?L1:(e.add(r),{done:!1,hasNext:!0,next:r})}let Zi=[],od=0;const Jx=4,ICe=e=>{let r=[],n={get(){return n.lc||n.listen(()=>{})(),n.value},lc:0,listen(o){return n.lc=r.push(o),()=>{for(let i=od+Jx;i"u")return r$e;var r=n$e(e),n=document.documentElement.clientWidth,o=window.innerWidth;return{left:r[0],top:r[1],right:r[2],gap:Math.max(0,o-n+r[2]-r[0])}},a$e=JV(),uf="data-scroll-locked",i$e=function(e,r,n,o){var a=e.left,i=e.top,l=e.right,s=e.gap;return n===void 0&&(n="margin"),` + .`.concat(FCe,` { overflow: hidden `).concat(o,`; - padding-right: `).concat(l,"px ").concat(o,`; + padding-right: `).concat(s,"px ").concat(o,`; } - body[`).concat(Hf,`] { + body[`).concat(uf,`] { overflow: hidden `).concat(o,`; overscroll-behavior: contain; `).concat([r&&"position: relative ".concat(o,";"),n==="margin"&&` padding-left: `.concat(a,`px; padding-top: `).concat(i,`px; - padding-right: `).concat(s,`px; + padding-right: `).concat(l,`px; margin-left:0; margin-top:0; - margin-right: `).concat(l,"px ").concat(o,`; - `),n==="padding"&&"padding-right: ".concat(l,"px ").concat(o,";")].filter(Boolean).join(""),` + margin-right: `).concat(s,"px ").concat(o,`; + `),n==="padding"&&"padding-right: ".concat(s,"px ").concat(o,";")].filter(Boolean).join(""),` } - .`).concat(Gx,` { - right: `).concat(l,"px ").concat(o,`; + .`).concat(ew,` { + right: `).concat(s,"px ").concat(o,`; } - .`).concat(Xx,` { - margin-right: `).concat(l,"px ").concat(o,`; + .`).concat(tw,` { + margin-right: `).concat(s,"px ").concat(o,`; } - .`).concat(Gx," .").concat(Gx,` { + .`).concat(ew," .").concat(ew,` { right: 0 `).concat(o,`; } - .`).concat(Xx," .").concat(Xx,` { + .`).concat(tw," .").concat(tw,` { margin-right: 0 `).concat(o,`; } - body[`).concat(Hf,`] { - `).concat(rDe,": ").concat(l,`px; + body[`).concat(uf,`] { + `).concat(VCe,": ").concat(s,`px; } -`)},rU=function(){var e=parseInt(document.body.getAttribute(Hf)||"0",10);return isFinite(e)?e:0},wDe=function(){E.useEffect(function(){return document.body.setAttribute(Hf,(rU()+1).toString()),function(){var e=rU()-1;e<=0?document.body.removeAttribute(Hf):document.body.setAttribute(Hf,e.toString())}},[])},kDe=function(e){var r=e.noRelative,n=e.noImportant,o=e.gapMode,a=o===void 0?"margin":o;wDe();var i=E.useMemo(function(){return bDe(a)},[a]);return E.createElement(vDe,{styles:xDe(i,!r,a,n?"":"!important")})},F7=!1;if(typeof window<"u")try{var Zx=Object.defineProperty({},"passive",{get:function(){return F7=!0,!0}});window.addEventListener("test",Zx,Zx),window.removeEventListener("test",Zx,Zx)}catch{F7=!1}var Vf=F7?{passive:!1}:!1,_De=function(e){return e.tagName==="TEXTAREA"},nU=function(e,r){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[r]!=="hidden"&&!(n.overflowY===n.overflowX&&!_De(e)&&n[r]==="visible")},EDe=function(e){return nU(e,"overflowY")},SDe=function(e){return nU(e,"overflowX")},oU=function(e,r){var n=r.ownerDocument,o=r;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var a=aU(e,o);if(a){var i=iU(e,o),s=i[1],l=i[2];if(s>l)return!0}o=o.parentNode}while(o&&o!==n.body);return!1},CDe=function(e){var r=e.scrollTop,n=e.scrollHeight,o=e.clientHeight;return[r,n,o]},TDe=function(e){var r=e.scrollLeft,n=e.scrollWidth,o=e.clientWidth;return[r,n,o]},aU=function(e,r){return e==="v"?EDe(r):SDe(r)},iU=function(e,r){return e==="v"?CDe(r):TDe(r)},ADe=function(e,r){return e==="h"&&r==="rtl"?-1:1},RDe=function(e,r,n,o,a){var i=ADe(e,window.getComputedStyle(r).direction),s=i*o,l=n.target,c=r.contains(l),d=!1,u=s>0,h=0,f=0;do{if(!l)break;var g=iU(e,l),b=g[0],x=g[1],w=g[2],k=x-w-i*b;(b||k)&&aU(e,l)&&(h+=k,f+=b);var C=l.parentNode;l=C&&C.nodeType===Node.DOCUMENT_FRAGMENT_NODE?C.host:C}while(!c&&l!==document.body||c&&(r.contains(l)||r===l));return(u&&Math.abs(h)<1||!u&&Math.abs(f)<1)&&(d=!0),d},Qx=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},sU=function(e){return[e.deltaX,e.deltaY]},lU=function(e){return e&&"current"in e?e.current:e},NDe=function(e,r){return e[0]===r[0]&&e[1]===r[1]},DDe=function(e){return` +`)},eq=function(){var e=parseInt(document.body.getAttribute(uf)||"0",10);return isFinite(e)?e:0},l$e=function(){S.useEffect(function(){return document.body.setAttribute(uf,(eq()+1).toString()),function(){var e=eq()-1;e<=0?document.body.removeAttribute(uf):document.body.setAttribute(uf,e.toString())}},[])},s$e=function(e){var r=e.noRelative,n=e.noImportant,o=e.gapMode,a=o===void 0?"margin":o;l$e();var i=S.useMemo(function(){return o$e(a)},[a]);return S.createElement(a$e,{styles:i$e(i,!r,a,n?"":"!important")})},S7=!1;if(typeof window<"u")try{var nw=Object.defineProperty({},"passive",{get:function(){return S7=!0,!0}});window.addEventListener("test",nw,nw),window.removeEventListener("test",nw,nw)}catch{S7=!1}var pf=S7?{passive:!1}:!1,c$e=function(e){return e.tagName==="TEXTAREA"},tq=function(e,r){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[r]!=="hidden"&&!(n.overflowY===n.overflowX&&!c$e(e)&&n[r]==="visible")},d$e=function(e){return tq(e,"overflowY")},u$e=function(e){return tq(e,"overflowX")},rq=function(e,r){var n=r.ownerDocument,o=r;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var a=nq(e,o);if(a){var i=oq(e,o),l=i[1],s=i[2];if(l>s)return!0}o=o.parentNode}while(o&&o!==n.body);return!1},p$e=function(e){var r=e.scrollTop,n=e.scrollHeight,o=e.clientHeight;return[r,n,o]},h$e=function(e){var r=e.scrollLeft,n=e.scrollWidth,o=e.clientWidth;return[r,n,o]},nq=function(e,r){return e==="v"?d$e(r):u$e(r)},oq=function(e,r){return e==="v"?p$e(r):h$e(r)},f$e=function(e,r){return e==="h"&&r==="rtl"?-1:1},m$e=function(e,r,n,o,a){var i=f$e(e,window.getComputedStyle(r).direction),l=i*o,s=n.target,c=r.contains(s),d=!1,u=l>0,p=0,f=0;do{if(!s)break;var g=oq(e,s),v=g[0],w=g[1],x=g[2],k=w-x-i*v;(v||k)&&nq(e,s)&&(p+=k,f+=v);var C=s.parentNode;s=C&&C.nodeType===Node.DOCUMENT_FRAGMENT_NODE?C.host:C}while(!c&&s!==document.body||c&&(r.contains(s)||r===s));return(u&&Math.abs(p)<1||!u&&Math.abs(f)<1)&&(d=!0),d},ow=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},aq=function(e){return[e.deltaX,e.deltaY]},iq=function(e){return e&&"current"in e?e.current:e},g$e=function(e,r){return e[0]===r[0]&&e[1]===r[1]},y$e=function(e){return` .block-interactivity-`.concat(e,` {pointer-events: none;} .allow-interactivity-`).concat(e,` {pointer-events: all;} -`)},$De=0,qf=[];function PDe(e){var r=E.useRef([]),n=E.useRef([0,0]),o=E.useRef(),a=E.useState($De++)[0],i=E.useState(tU)[0],s=E.useRef(e);E.useEffect(function(){s.current=e},[e]),E.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var x=eDe([e.lockRef.current],(e.shards||[]).map(lU)).filter(Boolean);return x.forEach(function(w){return w.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),x.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var l=E.useCallback(function(x,w){if("touches"in x&&x.touches.length===2||x.type==="wheel"&&x.ctrlKey)return!s.current.allowPinchZoom;var k=Qx(x),C=n.current,_="deltaX"in x?x.deltaX:C[0]-k[0],T="deltaY"in x?x.deltaY:C[1]-k[1],A,R=x.target,D=Math.abs(_)>Math.abs(T)?"h":"v";if("touches"in x&&D==="h"&&R.type==="range")return!1;var N=oU(D,R);if(!N)return!0;if(N?A=D:(A=D==="v"?"h":"v",N=oU(D,R)),!N)return!1;if(!o.current&&"changedTouches"in x&&(_||T)&&(o.current=A),!A)return!0;var P=o.current||A;return RDe(P,w,x,P==="h"?_:T)},[]),c=E.useCallback(function(x){var w=x;if(!(!qf.length||qf[qf.length-1]!==i)){var k="deltaY"in w?sU(w):Qx(w),C=r.current.filter(function(A){return A.name===w.type&&(A.target===w.target||w.target===A.shadowParent)&&NDe(A.delta,k)})[0];if(C&&C.should){w.cancelable&&w.preventDefault();return}if(!C){var _=(s.current.shards||[]).map(lU).filter(Boolean).filter(function(A){return A.contains(w.target)}),T=_.length>0?l(w,_[0]):!s.current.noIsolation;T&&w.cancelable&&w.preventDefault()}}},[]),d=E.useCallback(function(x,w,k,C){var _={name:x,delta:w,target:k,should:C,shadowParent:MDe(k)};r.current.push(_),setTimeout(function(){r.current=r.current.filter(function(T){return T!==_})},1)},[]),u=E.useCallback(function(x){n.current=Qx(x),o.current=void 0},[]),h=E.useCallback(function(x){d(x.type,sU(x),x.target,l(x,e.lockRef.current))},[]),f=E.useCallback(function(x){d(x.type,Qx(x),x.target,l(x,e.lockRef.current))},[]);E.useEffect(function(){return qf.push(i),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:f}),document.addEventListener("wheel",c,Vf),document.addEventListener("touchmove",c,Vf),document.addEventListener("touchstart",u,Vf),function(){qf=qf.filter(function(x){return x!==i}),document.removeEventListener("wheel",c,Vf),document.removeEventListener("touchmove",c,Vf),document.removeEventListener("touchstart",u,Vf)}},[]);var g=e.removeScrollBar,b=e.inert;return E.createElement(E.Fragment,null,b?E.createElement(i,{styles:DDe(a)}):null,g?E.createElement(kDe,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function MDe(e){for(var r=null;e!==null;)e instanceof ShadowRoot&&(r=e.host,e=e.host),e=e.parentNode;return r}const zDe=cDe(eU,PDe);var A0=E.forwardRef(function(e,r){return E.createElement(Kx,pl({},e,{ref:r,sideCar:zDe}))});A0.classNames=Kx.classNames;function zo(e){return Object.keys(e)}function H7(e){return e&&typeof e=="object"&&!Array.isArray(e)}function V7(e,r){const n={...e},o=r;return H7(e)&&H7(r)&&Object.keys(r).forEach(a=>{H7(o[a])&&a in e?n[a]=V7(n[a],o[a]):n[a]=o[a]}),n}function IDe(e){return e.replace(/[A-Z]/g,r=>`-${r.toLowerCase()}`)}function ODe(e){return typeof e!="string"||!e.includes("var(--mantine-scale)")?e:e.match(/^calc\((.*?)\)$/)?.[1].split("*")[0].trim()}function q7(e){const r=ODe(e);return typeof r=="number"?r:typeof r=="string"?r.includes("calc")||r.includes("var")?r:r.includes("px")?Number(r.replace("px","")):r.includes("rem")?Number(r.replace("rem",""))*16:r.includes("em")?Number(r.replace("em",""))*16:Number(r):NaN}function cU(e){return e==="0rem"?"0rem":`calc(${e} * var(--mantine-scale))`}function dU(e,{shouldScale:r=!1}={}){function n(o){if(o===0||o==="0")return`0${e}`;if(typeof o=="number"){const a=`${o/16}${e}`;return r?cU(a):a}if(typeof o=="string"){if(o===""||o.startsWith("calc(")||o.startsWith("clamp(")||o.includes("rgba("))return o;if(o.includes(","))return o.split(",").map(i=>n(i)).join(",");if(o.includes(" "))return o.split(" ").map(i=>n(i)).join(" ");const a=o.replace("px","");if(!Number.isNaN(Number(a))){const i=`${Number(a)/16}${e}`;return r?cU(i):i}}return o}return n}const Pe=dU("rem",{shouldScale:!0}),uU=dU("em");function Uf(e){return Object.keys(e).reduce((r,n)=>(e[n]!==void 0&&(r[n]=e[n]),r),{})}function pU(e){if(typeof e=="number")return!0;if(typeof e=="string"){if(e.startsWith("calc(")||e.startsWith("var(")||e.includes(" ")&&e.trim()!=="")return!0;const r=/^[+-]?[0-9]+(\.[0-9]+)?(px|em|rem|ex|ch|lh|rlh|vw|vh|vmin|vmax|vb|vi|svw|svh|lvw|lvh|dvw|dvh|cm|mm|in|pt|pc|q|cqw|cqh|cqi|cqb|cqmin|cqmax|%)?$/;return e.trim().split(/\s+/).every(n=>r.test(n))}return!1}function ps(e){return Array.isArray(e)||e===null?!1:typeof e=="object"?e.type!==E.Fragment:!1}function hi(e){const r=E.createContext(null);return[({children:n,value:o})=>y.jsx(r.Provider,{value:o,children:n}),()=>{const n=E.useContext(r);if(n===null)throw new Error(e);return n}]}function R0(e=null){const r=E.createContext(e);return[({children:n,value:o})=>y.jsx(r.Provider,{value:o,children:n}),()=>E.useContext(r)]}function hU(e,r){return n=>{if(typeof n!="string"||n.trim().length===0)throw new Error(r);return`${e}-${n}`}}function Wf(e,r){let n=e;for(;(n=n.parentElement)&&!n.matches(r););return n}function jDe(e,r,n){for(let o=e-1;o>=0;o-=1)if(!r[o].disabled)return o;if(n){for(let o=r.length-1;o>-1;o-=1)if(!r[o].disabled)return o}return e}function LDe(e,r,n){for(let o=e+1;o{n?.(l);const c=Array.from(Wf(l.currentTarget,e)?.querySelectorAll(r)||[]).filter(b=>BDe(l.currentTarget,b,e)),d=c.findIndex(b=>l.currentTarget===b),u=LDe(d,c,o),h=jDe(d,c,o),f=i==="rtl"?h:u,g=i==="rtl"?u:h;switch(l.key){case"ArrowRight":{s==="horizontal"&&(l.stopPropagation(),l.preventDefault(),c[f].focus(),a&&c[f].click());break}case"ArrowLeft":{s==="horizontal"&&(l.stopPropagation(),l.preventDefault(),c[g].focus(),a&&c[g].click());break}case"ArrowUp":{s==="vertical"&&(l.stopPropagation(),l.preventDefault(),c[h].focus(),a&&c[h].click());break}case"ArrowDown":{s==="vertical"&&(l.stopPropagation(),l.preventDefault(),c[u].focus(),a&&c[u].click());break}case"Home":{l.stopPropagation(),l.preventDefault(),!c[0].disabled&&c[0].focus();break}case"End":{l.stopPropagation(),l.preventDefault();const b=c.length-1;!c[b].disabled&&c[b].focus();break}}}}const FDe={app:100,modal:200,popover:300,overlay:400,max:9999};function Jx(e){return FDe[e]}const fU=()=>{};function HDe(e,r={active:!0}){return typeof e!="function"||!r.active?r.onKeyDown||fU:n=>{n.key==="Escape"&&(e(n),r.onTrigger?.())}}function kr(e,r="size",n=!0){if(e!==void 0)return pU(e)?n?Pe(e):e:`var(--${r}-${e})`}function cc(e){return kr(e,"mantine-spacing")}function Mn(e){return e===void 0?"var(--mantine-radius-default)":kr(e,"mantine-radius")}function Io(e){return kr(e,"mantine-font-size")}function VDe(e){return kr(e,"mantine-line-height",!1)}function mU(e){if(e)return kr(e,"mantine-shadow",!1)}function zn(e,r){return n=>{e?.(n),r?.(n)}}function qDe(e,r){return e in r?q7(r[e]):q7(e)}function gU(e,r){const n=e.map(o=>({value:o,px:qDe(o,r)}));return n.sort((o,a)=>o.px-a.px),n}function D0(e){return typeof e=="object"&&e!==null?"base"in e?e.base:void 0:e}function UDe(e,r,n){return n?Array.from(Wf(n,r)?.querySelectorAll(e)||[]).findIndex(o=>o===n):null}function Cd(e,r,n){return r===void 0&&n===void 0?e:r!==void 0&&n===void 0?Math.max(e,r):Math.min(r===void 0&&n!==void 0?e:Math.max(e,r),n)}function U7(e="mantine-"){return`${e}${Math.random().toString(36).slice(2,11)}`}function WDe(e,r){if(e===r||Number.isNaN(e)&&Number.isNaN(r))return!0;if(!(e instanceof Object)||!(r instanceof Object))return!1;const n=Object.keys(e),{length:o}=n;if(o!==Object.keys(r).length)return!1;for(let a=0;a{r.current=e}),E.useMemo(()=>((...n)=>r.current?.(...n)),[])}function Yf(e,r){const{delay:n,flushOnUnmount:o,leading:a}=typeof r=="number"?{delay:r,flushOnUnmount:!1,leading:!1}:r,i=io(e),s=E.useRef(0),l=E.useMemo(()=>{const c=Object.assign((...d)=>{window.clearTimeout(s.current);const u=c._isFirstCall;c._isFirstCall=!1;function h(){window.clearTimeout(s.current),s.current=0,c._isFirstCall=!0}if(a&&u){i(...d);const b=()=>{h()},x=()=>{s.current!==0&&(h(),i(...d))},w=()=>{h()};c.flush=x,c.cancel=w,s.current=window.setTimeout(b,n);return}if(a&&!u){const b=()=>{s.current!==0&&(h(),i(...d))},x=()=>{h()};c.flush=b,c.cancel=x;const w=()=>{h()};s.current=window.setTimeout(w,n);return}const f=()=>{s.current!==0&&(h(),i(...d))},g=()=>{h()};c.flush=f,c.cancel=g,s.current=window.setTimeout(f,n)},{flush:()=>{},cancel:()=>{},_isFirstCall:!0});return c},[i,n,a]);return E.useEffect(()=>()=>{o?l.flush():l.cancel()},[l,o]),l}const YDe=["mousedown","touchstart"];function yU(e,r,n){const o=E.useRef(null),a=r||YDe;return E.useEffect(()=>{const i=s=>{const{target:l}=s??{};if(Array.isArray(n)){const c=!document.body.contains(l)&&l?.tagName!=="HTML";n.every(d=>!!d&&!s.composedPath().includes(d))&&!c&&e(s)}else o.current&&!o.current.contains(l)&&e(s)};return a.forEach(s=>document.addEventListener(s,i)),()=>{a.forEach(s=>document.removeEventListener(s,i))}},[o,e,n]),o}function GDe(e={timeout:2e3}){const[r,n]=E.useState(null),[o,a]=E.useState(!1),[i,s]=E.useState(null),l=c=>{window.clearTimeout(i),s(window.setTimeout(()=>a(!1),e.timeout)),a(c)};return{copy:c=>{"clipboard"in navigator?navigator.clipboard.writeText(c).then(()=>l(!0)).catch(d=>n(d)):n(new Error("useClipboard: navigator.clipboard is not supported"))},reset:()=>{a(!1),n(null),window.clearTimeout(i)},error:r,copied:o}}function XDe(e,r){try{return e.addEventListener("change",r),()=>e.removeEventListener("change",r)}catch{return e.addListener(r),()=>e.removeListener(r)}}function KDe(e,r){return typeof window<"u"&&"matchMedia"in window?window.matchMedia(e).matches:!1}function bU(e,r,{getInitialValueInEffect:n}={getInitialValueInEffect:!0}){const[o,a]=E.useState(n?r:KDe(e));return E.useEffect(()=>{try{const i=window.matchMedia(e);return a(i.matches),XDe(i,s=>a(s.matches))}catch{return}},[e]),o||!1}function vU(e,r){return bU("(prefers-color-scheme: dark)",e==="dark",r)?"dark":"light"}function ZDe(e,r,n={leading:!1}){const[o,a]=E.useState(e),i=E.useRef(null),s=E.useRef(!0),l=()=>window.clearTimeout(i.current);E.useEffect(()=>l,[]);const c=E.useCallback(d=>{l(),s.current&&n.leading?a(d):i.current=window.setTimeout(()=>{s.current=!0,a(d)},r),s.current=!1},[n.leading]);return[o,c]}function W7(e,r,n={leading:!1}){const[o,a]=E.useState(e),i=E.useRef(!1),s=E.useRef(null),l=E.useRef(!1),c=E.useCallback(()=>window.clearTimeout(s.current),[]);return E.useEffect(()=>{i.current&&(!l.current&&n.leading?(l.current=!0,a(e)):(c(),s.current=window.setTimeout(()=>{l.current=!1,a(e)},r)))},[e,n.leading,r]),E.useEffect(()=>(i.current=!0,c),[]),[o,c]}const $0=typeof document<"u"?E.useLayoutEffect:E.useEffect;function gp(e,r){const n=E.useRef(!1);E.useEffect(()=>()=>{n.current=!1},[]),E.useEffect(()=>{if(n.current)return e();n.current=!0},r)}function QDe({opened:e,shouldReturnFocus:r=!0}){const n=E.useRef(null),o=()=>{n.current&&"focus"in n.current&&typeof n.current.focus=="function"&&n.current?.focus({preventScroll:!0})};return gp(()=>{let a=-1;const i=s=>{s.key==="Tab"&&window.clearTimeout(a)};return document.addEventListener("keydown",i),e?n.current=document.activeElement:r&&(a=window.setTimeout(o,10)),()=>{window.clearTimeout(a),document.removeEventListener("keydown",i)}},[e,r]),o}const JDe=/input|select|textarea|button|object/,xU="a, input, select, textarea, button, object, [tabindex]";function e$e(e){return e.style.display==="none"}function t$e(e){if(e.getAttribute("aria-hidden")||e.getAttribute("hidden")||e.getAttribute("type")==="hidden")return!1;let r=e;for(;r&&!(r===document.body||r.nodeType===11);){if(e$e(r))return!1;r=r.parentNode}return!0}function wU(e){let r=e.getAttribute("tabindex");return r===null&&(r=void 0),parseInt(r,10)}function Y7(e){const r=e.nodeName.toLowerCase(),n=!Number.isNaN(wU(e));return(JDe.test(r)&&!e.disabled||e instanceof HTMLAnchorElement&&e.href||n)&&t$e(e)}function kU(e){const r=wU(e);return(Number.isNaN(r)||r>=0)&&Y7(e)}function r$e(e){return Array.from(e.querySelectorAll(xU)).filter(kU)}function n$e(e,r){const n=r$e(e);if(!n.length){r.preventDefault();return}const o=n[r.shiftKey?0:n.length-1],a=e.getRootNode();let i=o===a.activeElement||e===a.activeElement;const s=a.activeElement;if(s.tagName==="INPUT"&&s.getAttribute("type")==="radio"&&(i=n.filter(c=>c.getAttribute("type")==="radio"&&c.getAttribute("name")===s.getAttribute("name")).includes(o)),!i)return;r.preventDefault();const l=n[r.shiftKey?n.length-1:0];l&&l.focus()}function _U(e=!0){const r=E.useRef(null),n=a=>{let i=a.querySelector("[data-autofocus]");if(!i){const s=Array.from(a.querySelectorAll(xU));i=s.find(kU)||s.find(Y7)||null,!i&&Y7(a)&&(i=a)}i&&i.focus({preventScroll:!0})},o=E.useCallback(a=>{e&&a!==null&&r.current!==a&&(a?(setTimeout(()=>{a.getRootNode()&&n(a)}),r.current=a):r.current=null)},[e]);return E.useEffect(()=>{if(!e)return;r.current&&setTimeout(()=>n(r.current));const a=i=>{i.key==="Tab"&&r.current&&n$e(r.current,i)};return document.addEventListener("keydown",a),()=>document.removeEventListener("keydown",a)},[e]),o}const o$e=un.useId||(()=>{});function a$e(){const e=o$e();return e?`mantine-${e.replace(/:/g,"")}`:""}function fi(e){const r=a$e(),[n,o]=E.useState(r);return $0(()=>{o(U7())},[]),typeof e=="string"?e:typeof window>"u"?r:n}function Gf(e,r,n){E.useEffect(()=>(window.addEventListener(e,r,n),()=>window.removeEventListener(e,r,n)),[e,r])}function i$e(e,r="use-local-storage"){try{return JSON.stringify(e)}catch{throw new Error(`@mantine/hooks ${r}: Failed to serialize the value`)}}function s$e(e){try{return e&&JSON.parse(e)}catch{return e}}function l$e(e){return{getItem:r=>{try{return window[e].getItem(r)}catch{return console.warn("use-local-storage: Failed to get value from storage, localStorage is blocked"),null}},setItem:(r,n)=>{try{window[e].setItem(r,n)}catch{console.warn("use-local-storage: Failed to set value to storage, localStorage is blocked")}},removeItem:r=>{try{window[e].removeItem(r)}catch{console.warn("use-local-storage: Failed to remove value from storage, localStorage is blocked")}}}}function EU(e,r){const n=e==="localStorage"?"mantine-local-storage":"mantine-session-storage",{getItem:o,setItem:a,removeItem:i}=l$e(e);return function({key:s,defaultValue:l,getInitialValueInEffect:c=!0,sync:d=!0,deserialize:u=s$e,serialize:h=f=>i$e(f,r)}){const f=E.useCallback(k=>{let C;try{C=typeof window>"u"||!(e in window)||window[e]===null||!!k}catch{C=!0}if(C)return l;const _=o(s);return _!==null?u(_):l},[s,l]),[g,b]=E.useState(f(c)),x=E.useCallback(k=>{k instanceof Function?b(C=>{const _=k(C);return a(s,h(_)),queueMicrotask(()=>{window.dispatchEvent(new CustomEvent(n,{detail:{key:s,value:k(C)}}))}),_}):(a(s,h(k)),window.dispatchEvent(new CustomEvent(n,{detail:{key:s,value:k}})),b(k))},[s]),w=E.useCallback(()=>{i(s),b(l),window.dispatchEvent(new CustomEvent(n,{detail:{key:s,value:l}}))},[s,l]);return Gf("storage",k=>{d&&k.storageArea===window[e]&&k.key===s&&b(u(k.newValue??void 0))}),Gf(n,k=>{d&&k.detail.key===s&&b(k.detail.value)}),E.useEffect(()=>{l!==void 0&&g===void 0&&x(l)},[l,g,x]),E.useEffect(()=>{const k=f();k!==void 0&&x(k)},[s]),[g===void 0?l:g,x,w]}}function c$e(e){return EU("localStorage","use-local-storage")(e)}function d$e(e){return EU("sessionStorage","use-session-storage")(e)}function G7(e,r){if(typeof e=="function")return e(r);typeof e=="object"&&e!==null&&"current"in e&&(e.current=r)}function SU(...e){const r=new Map;return n=>{if(e.forEach(o=>{const a=G7(o,n);a&&r.set(o,a)}),r.size>0)return()=>{e.forEach(o=>{const a=r.get(o);a&&typeof a=="function"?a():G7(o,null)}),r.clear()}}}function Hr(...e){return E.useCallback(SU(...e),e)}function u$e(e){return{x:Cd(e.x,0,1),y:Cd(e.y,0,1)}}function CU(e,r,n="ltr"){const o=E.useRef(!1),a=E.useRef(!1),i=E.useRef(0),[s,l]=E.useState(!1),c=E.useRef(null);return E.useEffect(()=>{o.current=!0},[]),{ref:E.useCallback(d=>{if(c.current&&(c.current(),c.current=null),!d)return;const u=({x:_,y:T})=>{cancelAnimationFrame(i.current),i.current=requestAnimationFrame(()=>{if(o.current&&d){d.style.userSelect="none";const A=d.getBoundingClientRect();if(A.width&&A.height){const R=Cd((_-A.left)/A.width,0,1);e({x:n==="ltr"?R:1-R,y:Cd((T-A.top)/A.height,0,1)})}}})},h=()=>{document.addEventListener("mousemove",w),document.addEventListener("mouseup",b),document.addEventListener("touchmove",C,{passive:!1}),document.addEventListener("touchend",b)},f=()=>{document.removeEventListener("mousemove",w),document.removeEventListener("mouseup",b),document.removeEventListener("touchmove",C),document.removeEventListener("touchend",b)},g=()=>{!a.current&&o.current&&(a.current=!0,typeof r?.onScrubStart=="function"&&r.onScrubStart(),l(!0),h())},b=()=>{a.current&&o.current&&(a.current=!1,l(!1),f(),setTimeout(()=>{typeof r?.onScrubEnd=="function"&&r.onScrubEnd()},0))},x=_=>{g(),_.preventDefault(),w(_)},w=_=>u({x:_.clientX,y:_.clientY}),k=_=>{_.cancelable&&_.preventDefault(),g(),C(_)},C=_=>{_.cancelable&&_.preventDefault(),u({x:_.changedTouches[0].clientX,y:_.changedTouches[0].clientY})};d.addEventListener("mousedown",x),d.addEventListener("touchstart",k,{passive:!1}),c.current=()=>{d.removeEventListener("mousedown",x),d.removeEventListener("touchstart",k)}},[n,e]),active:s}}function dc({value:e,defaultValue:r,finalValue:n,onChange:o=()=>{}}){const[a,i]=E.useState(r!==void 0?r:n);return e!==void 0?[e,o,!0]:[a,(l,...c)=>{i(l),o?.(l,...c)},!1]}function TU(e,r){return bU("(prefers-reduced-motion: reduce)",e,r)}function p$e(e,r){if(!e||!r)return!1;if(e===r)return!0;if(e.length!==r.length)return!1;for(let n=0;n{r({width:window.innerWidth||0,height:window.innerHeight||0})},[]);return Gf("resize",n,AU),Gf("orientationchange",n,AU),E.useEffect(n,[]),e}const g$e={" ":"space",ArrowLeft:"arrowleft",ArrowRight:"arrowright",ArrowUp:"arrowup",ArrowDown:"arrowdown",Escape:"escape",Esc:"escape",esc:"escape",Enter:"enter",Tab:"tab",Backspace:"backspace",Delete:"delete",Insert:"insert",Home:"home",End:"end",PageUp:"pageup",PageDown:"pagedown","+":"plus","-":"minus","*":"asterisk","/":"slash"};function e2(e){const r=e.replace("Key","").toLowerCase();return g$e[e]||r}function y$e(e){const r=e.toLowerCase().split("+").map(i=>i.trim()),n={alt:r.includes("alt"),ctrl:r.includes("ctrl"),meta:r.includes("meta"),mod:r.includes("mod"),shift:r.includes("shift"),plus:r.includes("[plus]")},o=["alt","ctrl","meta","shift","mod"],a=r.find(i=>!o.includes(i));return{...n,key:a==="[plus]"?"+":a}}function b$e(e,r,n){const{alt:o,ctrl:a,meta:i,mod:s,shift:l,key:c}=e,{altKey:d,ctrlKey:u,metaKey:h,shiftKey:f,key:g,code:b}=r;if(o!==d)return!1;if(s){if(!u&&!h)return!1}else if(a!==u||i!==h)return!1;return l!==f?!1:!!(c&&(n?e2(b)===e2(c):e2(g??b)===e2(c)))}function RU(e,r){return n=>b$e(y$e(e),n,r)}function t2(e){return r=>{const n="nativeEvent"in r?r.nativeEvent:r;e.forEach(([o,a,i={preventDefault:!0,usePhysicalKeys:!1}])=>{RU(o,i.usePhysicalKeys)(n)&&(i.preventDefault&&r.preventDefault(),a(n))})}}function v$e(e,r,n=!1){return e.target instanceof HTMLElement?(n||!e.target.isContentEditable)&&!r.includes(e.target.tagName):!0}function x$e(e,r=["INPUT","TEXTAREA","SELECT"],n=!1){E.useEffect(()=>{const o=a=>{e.forEach(([i,s,l={preventDefault:!0,usePhysicalKeys:!1}])=>{RU(i,l.usePhysicalKeys)(a)&&v$e(a,r,n)&&(l.preventDefault&&a.preventDefault(),s(a))})};return document.documentElement.addEventListener("keydown",o),()=>document.documentElement.removeEventListener("keydown",o)},[e])}function X7(){const[e,r]=E.useState(!1),n=E.useRef(null),o=E.useCallback(()=>{r(!0)},[]),a=E.useCallback(()=>{r(!1)},[]);return{ref:E.useCallback(i=>{n.current&&(n.current.removeEventListener("mouseenter",o),n.current.removeEventListener("mouseleave",a)),i&&(i.addEventListener("mouseenter",o),i.addEventListener("mouseleave",a)),n.current=i},[o,a]),hovered:e}}function w$e(e=!1,r={}){const[n,o]=E.useState(e),a=E.useCallback(()=>{o(l=>l||(r.onOpen?.(),!0))},[r.onOpen]),i=E.useCallback(()=>{o(l=>l&&(r.onClose?.(),!1))},[r.onClose]),s=E.useCallback(()=>{n?i():a()},[i,a,n]);return[n,{open:a,close:i,toggle:s}]}function k$e(e){return e.currentTarget instanceof HTMLElement&&e.relatedTarget instanceof HTMLElement?e.currentTarget.contains(e.relatedTarget):!1}function _$e({onBlur:e,onFocus:r}={}){const[n,o]=E.useState(!1),a=E.useRef(!1),i=E.useRef(null),s=E.useCallback(u=>{o(u),a.current=u},[]),l=E.useCallback(u=>{a.current||(s(!0),r?.(u))},[r]),c=E.useCallback(u=>{a.current&&!k$e(u)&&(s(!1),e?.(u))},[e]),d=E.useCallback(u=>{u&&(i.current&&(i.current.removeEventListener("focusin",l),i.current.removeEventListener("focusout",c)),u.addEventListener("focusin",l),u.addEventListener("focusout",c))},[l,c]);return E.useEffect(()=>()=>{i.current&&(i.current.removeEventListener("focusin",l),i.current.removeEventListener("focusout",c))},[]),{ref:d,focused:n}}function NU(e,r,n={autoInvoke:!1}){const o=E.useRef(null),a=E.useCallback((...s)=>{o.current||(o.current=window.setTimeout(()=>{e(s),o.current=null},r))},[r]),i=E.useCallback(()=>{o.current&&(window.clearTimeout(o.current),o.current=null)},[]);return E.useEffect(()=>(n.autoInvoke&&a(),i),[i,a]),{start:a,clear:i}}function DU(e,r,n){const o=E.useRef(null),a=E.useRef(null);return E.useEffect(()=>{const i=typeof n=="function"?n():n;return(i||a.current)&&(o.current=new MutationObserver(e),o.current.observe(i||a.current,r)),()=>{o.current?.disconnect()}},[e,r]),a}function E$e(){const[e,r]=E.useState(!1);return E.useEffect(()=>r(!0),[]),e}function $U(e){const[r,n]=E.useState({history:[e],current:0}),o=E.useCallback(c=>n(d=>{const u=[...d.history.slice(0,d.current+1),c];return{history:u,current:u.length-1}}),[]),a=E.useCallback((c=1)=>n(d=>({history:d.history,current:Math.max(0,d.current-c)})),[]),i=E.useCallback((c=1)=>n(d=>({history:d.history,current:Math.min(d.history.length-1,d.current+c)})),[]),s=E.useCallback(()=>{n({history:[e],current:0})},[e]),l=E.useMemo(()=>({back:a,forward:i,reset:s,set:o}),[a,i,s,o]);return[r.history[r.current],l,r]}function S$e(e,r){const n=io(e),o=E.useRef(null),a=E.useRef(null),i=E.useRef(!0),s=E.useRef(r),l=E.useRef(-1),c=()=>window.clearTimeout(l.current),d=E.useCallback((...f)=>{n(...f),o.current=f,a.current=f,i.current=!1},[n]),u=E.useCallback(()=>{o.current&&o.current!==a.current?(d(...o.current),l.current=window.setTimeout(u,s.current)):i.current=!0},[d]),h=E.useCallback((...f)=>{i.current?(d(...f),l.current=window.setTimeout(u,s.current)):o.current=f},[d,u]);return E.useEffect(()=>{s.current=r},[r]),[h,c]}function C$e(e,r){return S$e(e,r)[0]}function T$e(){return typeof process<"u"&&process.env?"production":"development"}function PU(e){const r=new Map;return(...n)=>{const o=JSON.stringify(n);if(r.has(o))return r.get(o);const a=e(...n);return r.set(o,a),a}}function MU(e,r){return r.length===0?e:r.reduce((n,o)=>Math.abs(o-e){Object.entries(n).forEach(([o,a])=>{r[o]?r[o]=hs(r[o],a):r[o]=a})}),r}function n2({theme:e,classNames:r,props:n,stylesCtx:o}){const a=(Array.isArray(r)?r:[r]).map(i=>typeof i=="function"?i(e,n,o):i||A$e);return R$e(a)}function o2({theme:e,styles:r,props:n,stylesCtx:o}){return(Array.isArray(r)?r:[r]).reduce((a,i)=>typeof i=="function"?{...a,...i(e,n,o)}:{...a,...i},{})}const a2=E.createContext(null);function Td(){const e=E.useContext(a2);if(!e)throw new Error("[@mantine/core] MantineProvider was not found in tree");return e}function N$e(){return Td().cssVariablesResolver}function D$e(){return Td().classNamesPrefix}function yp(){return Td().getStyleNonce}function $$e(){return Td().withStaticClasses}function P$e(){return Td().headless}function M$e(){return Td().stylesTransform?.sx}function z$e(){return Td().stylesTransform?.styles}function i2(){return Td().env||"default"}function I$e(e){return/^#?([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(e)}function O$e(e){let r=e.replace("#","");if(r.length===3){const s=r.split("");r=[s[0],s[0],s[1],s[1],s[2],s[2]].join("")}if(r.length===8){const s=parseInt(r.slice(6,8),16)/255;return{r:parseInt(r.slice(0,2),16),g:parseInt(r.slice(2,4),16),b:parseInt(r.slice(4,6),16),a:s}}const n=parseInt(r,16),o=n>>16&255,a=n>>8&255,i=n&255;return{r:o,g:a,b:i,a:1}}function j$e(e){const[r,n,o,a]=e.replace(/[^0-9,./]/g,"").split(/[/,]/).map(Number);return{r,g:n,b:o,a:a===void 0?1:a}}function L$e(e){const r=/^hsla?\(\s*(\d+)\s*,\s*(\d+%)\s*,\s*(\d+%)\s*(,\s*(0?\.\d+|\d+(\.\d+)?))?\s*\)$/i,n=e.match(r);if(!n)return{r:0,g:0,b:0,a:1};const o=parseInt(n[1],10),a=parseInt(n[2],10)/100,i=parseInt(n[3],10)/100,s=n[5]?parseFloat(n[5]):void 0,l=(1-Math.abs(2*i-1))*a,c=o/60,d=l*(1-Math.abs(c%2-1)),u=i-l/2;let h,f,g;return c>=0&&c<1?(h=l,f=d,g=0):c>=1&&c<2?(h=d,f=l,g=0):c>=2&&c<3?(h=0,f=l,g=d):c>=3&&c<4?(h=0,f=d,g=l):c>=4&&c<5?(h=d,f=0,g=l):(h=l,f=0,g=d),{r:Math.round((h+u)*255),g:Math.round((f+u)*255),b:Math.round((g+u)*255),a:s||1}}function K7(e){return I$e(e)?O$e(e):e.startsWith("rgb")?j$e(e):e.startsWith("hsl")?L$e(e):{r:0,g:0,b:0,a:1}}function s2(e,r){if(e.startsWith("var("))return`color-mix(in srgb, ${e}, black ${r*100}%)`;const{r:n,g:o,b:a,a:i}=K7(e),s=1-r,l=c=>Math.round(c*s);return`rgba(${l(n)}, ${l(o)}, ${l(a)}, ${i})`}function P0(e,r){return typeof e.primaryShade=="number"?e.primaryShade:r==="dark"?e.primaryShade.dark:e.primaryShade.light}function Z7(e){return e<=.03928?e/12.92:((e+.055)/1.055)**2.4}function B$e(e){const r=e.match(/oklch\((.*?)%\s/);return r?parseFloat(r[1]):null}function F$e(e){if(e.startsWith("oklch("))return(B$e(e)||0)/100;const{r,g:n,b:o}=K7(e),a=r/255,i=n/255,s=o/255,l=Z7(a),c=Z7(i),d=Z7(s);return .2126*l+.7152*c+.0722*d}function M0(e,r=.179){return e.startsWith("var(")?!1:F$e(e)>r}function Ad({color:e,theme:r,colorScheme:n}){if(typeof e!="string")throw new Error(`[@mantine/core] Failed to parse color. Expected color to be a string, instead got ${typeof e}`);if(e==="bright")return{color:e,value:n==="dark"?r.white:r.black,shade:void 0,isThemeColor:!1,isLight:M0(n==="dark"?r.white:r.black,r.luminanceThreshold),variable:"--mantine-color-bright"};if(e==="dimmed")return{color:e,value:n==="dark"?r.colors.dark[2]:r.colors.gray[7],shade:void 0,isThemeColor:!1,isLight:M0(n==="dark"?r.colors.dark[2]:r.colors.gray[6],r.luminanceThreshold),variable:"--mantine-color-dimmed"};if(e==="white"||e==="black")return{color:e,value:e==="white"?r.white:r.black,shade:void 0,isThemeColor:!1,isLight:M0(e==="white"?r.white:r.black,r.luminanceThreshold),variable:`--mantine-color-${e}`};const[o,a]=e.split("."),i=a?Number(a):void 0,s=o in r.colors;if(s){const l=i!==void 0?r.colors[o][i]:r.colors[o][P0(r,n||"light")];return{color:o,value:l,shade:i,isThemeColor:s,isLight:M0(l,r.luminanceThreshold),variable:a?`--mantine-color-${o}-${i}`:`--mantine-color-${o}-filled`}}return{color:e,value:e,isThemeColor:s,isLight:M0(e,r.luminanceThreshold),shade:i,variable:void 0}}function Ia(e,r){const n=Ad({color:e||r.primaryColor,theme:r});return n.variable?`var(${n.variable})`:e}function Q7(e,r){const n={from:e?.from||r.defaultGradient.from,to:e?.to||r.defaultGradient.to,deg:e?.deg??r.defaultGradient.deg??0},o=Ia(n.from,r),a=Ia(n.to,r);return`linear-gradient(${n.deg}deg, ${o} 0%, ${a} 100%)`}function hl(e,r){if(typeof e!="string"||r>1||r<0)return"rgba(0, 0, 0, 1)";if(e.startsWith("var(")){const i=(1-r)*100;return`color-mix(in srgb, ${e}, transparent ${i}%)`}if(e.startsWith("oklch"))return e.includes("/")?e.replace(/\/\s*[\d.]+\s*\)/,`/ ${r})`):e.replace(")",` / ${r})`);const{r:n,g:o,b:a}=K7(e);return`rgba(${n}, ${o}, ${a}, ${r})`}const Xf=hl,H$e=({color:e,theme:r,variant:n,gradient:o,autoContrast:a})=>{const i=Ad({color:e,theme:r}),s=typeof a=="boolean"?a:r.autoContrast;if(n==="none")return{background:"transparent",hover:"transparent",color:"inherit",border:"none"};if(n==="filled"){const l=s&&i.isLight?"var(--mantine-color-black)":"var(--mantine-color-white)";return i.isThemeColor?i.shade===void 0?{background:`var(--mantine-color-${e}-filled)`,hover:`var(--mantine-color-${e}-filled-hover)`,color:l,border:`${Pe(1)} solid transparent`}:{background:`var(--mantine-color-${i.color}-${i.shade})`,hover:`var(--mantine-color-${i.color}-${i.shade===9?8:i.shade+1})`,color:l,border:`${Pe(1)} solid transparent`}:{background:e,hover:s2(e,.1),color:l,border:`${Pe(1)} solid transparent`}}if(n==="light"){if(i.isThemeColor){if(i.shade===void 0)return{background:`var(--mantine-color-${e}-light)`,hover:`var(--mantine-color-${e}-light-hover)`,color:`var(--mantine-color-${e}-light-color)`,border:`${Pe(1)} solid transparent`};const l=r.colors[i.color][i.shade];return{background:hl(l,.1),hover:hl(l,.12),color:`var(--mantine-color-${i.color}-${Math.min(i.shade,6)})`,border:`${Pe(1)} solid transparent`}}return{background:hl(e,.1),hover:hl(e,.12),color:e,border:`${Pe(1)} solid transparent`}}if(n==="outline")return i.isThemeColor?i.shade===void 0?{background:"transparent",hover:`var(--mantine-color-${e}-outline-hover)`,color:`var(--mantine-color-${e}-outline)`,border:`${Pe(1)} solid var(--mantine-color-${e}-outline)`}:{background:"transparent",hover:hl(r.colors[i.color][i.shade],.05),color:`var(--mantine-color-${i.color}-${i.shade})`,border:`${Pe(1)} solid var(--mantine-color-${i.color}-${i.shade})`}:{background:"transparent",hover:hl(e,.05),color:e,border:`${Pe(1)} solid ${e}`};if(n==="subtle"){if(i.isThemeColor){if(i.shade===void 0)return{background:"transparent",hover:`var(--mantine-color-${e}-light-hover)`,color:`var(--mantine-color-${e}-light-color)`,border:`${Pe(1)} solid transparent`};const l=r.colors[i.color][i.shade];return{background:"transparent",hover:hl(l,.12),color:`var(--mantine-color-${i.color}-${Math.min(i.shade,6)})`,border:`${Pe(1)} solid transparent`}}return{background:"transparent",hover:hl(e,.12),color:e,border:`${Pe(1)} solid transparent`}}return n==="transparent"?i.isThemeColor?i.shade===void 0?{background:"transparent",hover:"transparent",color:`var(--mantine-color-${e}-light-color)`,border:`${Pe(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:`var(--mantine-color-${i.color}-${Math.min(i.shade,6)})`,border:`${Pe(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:e,border:`${Pe(1)} solid transparent`}:n==="white"?i.isThemeColor?i.shade===void 0?{background:"var(--mantine-color-white)",hover:s2(r.white,.01),color:`var(--mantine-color-${e}-filled)`,border:`${Pe(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:s2(r.white,.01),color:`var(--mantine-color-${i.color}-${i.shade})`,border:`${Pe(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:s2(r.white,.01),color:e,border:`${Pe(1)} solid transparent`}:n==="gradient"?{background:Q7(o,r),hover:Q7(o,r),color:"var(--mantine-color-white)",border:"none"}:n==="default"?{background:"var(--mantine-color-default)",hover:"var(--mantine-color-default-hover)",color:"var(--mantine-color-default-color)",border:`${Pe(1)} solid var(--mantine-color-default-border)`}:{}},V$e={dark:["#C9C9C9","#b8b8b8","#828282","#696969","#424242","#3b3b3b","#2e2e2e","#242424","#1f1f1f","#141414"],gray:["#f8f9fa","#f1f3f5","#e9ecef","#dee2e6","#ced4da","#adb5bd","#868e96","#495057","#343a40","#212529"],red:["#fff5f5","#ffe3e3","#ffc9c9","#ffa8a8","#ff8787","#ff6b6b","#fa5252","#f03e3e","#e03131","#c92a2a"],pink:["#fff0f6","#ffdeeb","#fcc2d7","#faa2c1","#f783ac","#f06595","#e64980","#d6336c","#c2255c","#a61e4d"],grape:["#f8f0fc","#f3d9fa","#eebefa","#e599f7","#da77f2","#cc5de8","#be4bdb","#ae3ec9","#9c36b5","#862e9c"],violet:["#f3f0ff","#e5dbff","#d0bfff","#b197fc","#9775fa","#845ef7","#7950f2","#7048e8","#6741d9","#5f3dc4"],indigo:["#edf2ff","#dbe4ff","#bac8ff","#91a7ff","#748ffc","#5c7cfa","#4c6ef5","#4263eb","#3b5bdb","#364fc7"],blue:["#e7f5ff","#d0ebff","#a5d8ff","#74c0fc","#4dabf7","#339af0","#228be6","#1c7ed6","#1971c2","#1864ab"],cyan:["#e3fafc","#c5f6fa","#99e9f2","#66d9e8","#3bc9db","#22b8cf","#15aabf","#1098ad","#0c8599","#0b7285"],teal:["#e6fcf5","#c3fae8","#96f2d7","#63e6be","#38d9a9","#20c997","#12b886","#0ca678","#099268","#087f5b"],green:["#ebfbee","#d3f9d8","#b2f2bb","#8ce99a","#69db7c","#51cf66","#40c057","#37b24d","#2f9e44","#2b8a3e"],lime:["#f4fce3","#e9fac8","#d8f5a2","#c0eb75","#a9e34b","#94d82d","#82c91e","#74b816","#66a80f","#5c940d"],yellow:["#fff9db","#fff3bf","#ffec99","#ffe066","#ffd43b","#fcc419","#fab005","#f59f00","#f08c00","#e67700"],orange:["#fff4e6","#ffe8cc","#ffd8a8","#ffc078","#ffa94d","#ff922b","#fd7e14","#f76707","#e8590c","#d9480f"]},IU="-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji",J7={scale:1,fontSmoothing:!0,focusRing:"auto",white:"#fff",black:"#000",colors:V$e,primaryShade:{light:6,dark:8},primaryColor:"blue",variantColorResolver:H$e,autoContrast:!1,luminanceThreshold:.3,fontFamily:IU,fontFamilyMonospace:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace",respectReducedMotion:!1,cursorType:"default",defaultGradient:{from:"blue",to:"cyan",deg:45},defaultRadius:"sm",activeClassName:"mantine-active",focusClassName:"",headings:{fontFamily:IU,fontWeight:"700",textWrap:"wrap",sizes:{h1:{fontSize:Pe(34),lineHeight:"1.3"},h2:{fontSize:Pe(26),lineHeight:"1.35"},h3:{fontSize:Pe(22),lineHeight:"1.4"},h4:{fontSize:Pe(18),lineHeight:"1.45"},h5:{fontSize:Pe(16),lineHeight:"1.5"},h6:{fontSize:Pe(14),lineHeight:"1.5"}}},fontSizes:{xs:Pe(12),sm:Pe(14),md:Pe(16),lg:Pe(18),xl:Pe(20)},lineHeights:{xs:"1.4",sm:"1.45",md:"1.55",lg:"1.6",xl:"1.65"},radius:{xs:Pe(2),sm:Pe(4),md:Pe(8),lg:Pe(16),xl:Pe(32)},spacing:{xs:Pe(10),sm:Pe(12),md:Pe(16),lg:Pe(20),xl:Pe(32)},breakpoints:{xs:"36em",sm:"48em",md:"62em",lg:"75em",xl:"88em"},shadows:{xs:`0 ${Pe(1)} ${Pe(3)} rgba(0, 0, 0, 0.05), 0 ${Pe(1)} ${Pe(2)} rgba(0, 0, 0, 0.1)`,sm:`0 ${Pe(1)} ${Pe(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${Pe(10)} ${Pe(15)} ${Pe(-5)}, rgba(0, 0, 0, 0.04) 0 ${Pe(7)} ${Pe(7)} ${Pe(-5)}`,md:`0 ${Pe(1)} ${Pe(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${Pe(20)} ${Pe(25)} ${Pe(-5)}, rgba(0, 0, 0, 0.04) 0 ${Pe(10)} ${Pe(10)} ${Pe(-5)}`,lg:`0 ${Pe(1)} ${Pe(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${Pe(28)} ${Pe(23)} ${Pe(-7)}, rgba(0, 0, 0, 0.04) 0 ${Pe(12)} ${Pe(12)} ${Pe(-7)}`,xl:`0 ${Pe(1)} ${Pe(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${Pe(36)} ${Pe(28)} ${Pe(-7)}, rgba(0, 0, 0, 0.04) 0 ${Pe(17)} ${Pe(17)} ${Pe(-7)}`},other:{},components:{}};function OU(e){return e==="auto"||e==="dark"||e==="light"}function q$e({key:e="mantine-color-scheme-value"}={}){let r;return{get:n=>{if(typeof window>"u")return n;try{const o=window.localStorage.getItem(e);return OU(o)?o:n}catch{return n}},set:n=>{try{window.localStorage.setItem(e,n)}catch(o){console.warn("[@mantine/core] Local storage color scheme manager was unable to save color scheme.",o)}},subscribe:n=>{r=o=>{o.storageArea===window.localStorage&&o.key===e&&OU(o.newValue)&&n(o.newValue)},window.addEventListener("storage",r)},unsubscribe:()=>{window.removeEventListener("storage",r)},clear:()=>{window.localStorage.removeItem(e)}}}const U$e="[@mantine/core] MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more – https://mantine.dev/theming/colors/#primary-color",jU="[@mantine/core] MantineProvider: Invalid theme.primaryShade, it accepts only 0-9 integers or an object { light: 0-9, dark: 0-9 }";function e9(e){return e<0||e>9?!1:parseInt(e.toString(),10)===e}function LU(e){if(!(e.primaryColor in e.colors))throw new Error(U$e);if(typeof e.primaryShade=="object"&&(!e9(e.primaryShade.dark)||!e9(e.primaryShade.light)))throw new Error(jU);if(typeof e.primaryShade=="number"&&!e9(e.primaryShade))throw new Error(jU)}function W$e(e,r){if(!r)return LU(e),e;const n=V7(e,r);return r.fontFamily&&!r.headings?.fontFamily&&(n.headings.fontFamily=r.fontFamily),LU(n),n}const t9=E.createContext(null),Y$e=()=>E.useContext(t9)||J7;function vo(){const e=E.useContext(t9);if(!e)throw new Error("@mantine/core: MantineProvider was not found in component tree, make sure you have it in your app");return e}function BU({theme:e,children:r,inherit:n=!0}){const o=Y$e(),a=E.useMemo(()=>W$e(n?o:J7,e),[e,o,n]);return y.jsx(t9.Provider,{value:a,children:r})}BU.displayName="@mantine/core/MantineThemeProvider";function G$e(){const e=vo(),r=yp(),n=zo(e.breakpoints).reduce((o,a)=>{const i=e.breakpoints[a].includes("px"),s=q7(e.breakpoints[a]),l=i?`${s-.1}px`:uU(s-.1),c=i?`${s}px`:uU(s);return`${o}@media (max-width: ${l}) {.mantine-visible-from-${a} {display: none !important;}}@media (min-width: ${c}) {.mantine-hidden-from-${a} {display: none !important;}}`},"");return y.jsx("style",{"data-mantine-styles":"classes",nonce:r?.(),dangerouslySetInnerHTML:{__html:n}})}function r9(e){return Object.entries(e).map(([r,n])=>`${r}: ${n};`).join("")}function n9(e,r){return(Array.isArray(e)?e:[e]).reduce((n,o)=>`${o}{${n}}`,r)}function X$e(e,r){const n=r9(e.variables),o=n?n9(r,n):"",a=r9(e.dark),i=r9(e.light),s=a?n9(r===":host"?`${r}([data-mantine-color-scheme="dark"])`:`${r}[data-mantine-color-scheme="dark"]`,a):"",l=i?n9(r===":host"?`${r}([data-mantine-color-scheme="light"])`:`${r}[data-mantine-color-scheme="light"]`,i):"";return`${o} +`)},v$e=0,hf=[];function b$e(e){var r=S.useRef([]),n=S.useRef([0,0]),o=S.useRef(),a=S.useState(v$e++)[0],i=S.useState(JV)[0],l=S.useRef(e);S.useEffect(function(){l.current=e},[e]),S.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var w=LCe([e.lockRef.current],(e.shards||[]).map(iq)).filter(Boolean);return w.forEach(function(x){return x.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),w.forEach(function(x){return x.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var s=S.useCallback(function(w,x){if("touches"in w&&w.touches.length===2||w.type==="wheel"&&w.ctrlKey)return!l.current.allowPinchZoom;var k=ow(w),C=n.current,_="deltaX"in w?w.deltaX:C[0]-k[0],$="deltaY"in w?w.deltaY:C[1]-k[1],z,j=w.target,A=Math.abs(_)>Math.abs($)?"h":"v";if("touches"in w&&A==="h"&&j.type==="range")return!1;var R=rq(A,j);if(!R)return!0;if(R?z=A:(z=A==="v"?"h":"v",R=rq(A,j)),!R)return!1;if(!o.current&&"changedTouches"in w&&(_||$)&&(o.current=z),!z)return!0;var T=o.current||z;return m$e(T,x,w,T==="h"?_:$)},[]),c=S.useCallback(function(w){var x=w;if(!(!hf.length||hf[hf.length-1]!==i)){var k="deltaY"in x?aq(x):ow(x),C=r.current.filter(function(z){return z.name===x.type&&(z.target===x.target||x.target===z.shadowParent)&&g$e(z.delta,k)})[0];if(C&&C.should){x.cancelable&&x.preventDefault();return}if(!C){var _=(l.current.shards||[]).map(iq).filter(Boolean).filter(function(z){return z.contains(x.target)}),$=_.length>0?s(x,_[0]):!l.current.noIsolation;$&&x.cancelable&&x.preventDefault()}}},[]),d=S.useCallback(function(w,x,k,C){var _={name:w,delta:x,target:k,should:C,shadowParent:x$e(k)};r.current.push(_),setTimeout(function(){r.current=r.current.filter(function($){return $!==_})},1)},[]),u=S.useCallback(function(w){n.current=ow(w),o.current=void 0},[]),p=S.useCallback(function(w){d(w.type,aq(w),w.target,s(w,e.lockRef.current))},[]),f=S.useCallback(function(w){d(w.type,ow(w),w.target,s(w,e.lockRef.current))},[]);S.useEffect(function(){return hf.push(i),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:f}),document.addEventListener("wheel",c,pf),document.addEventListener("touchmove",c,pf),document.addEventListener("touchstart",u,pf),function(){hf=hf.filter(function(w){return w!==i}),document.removeEventListener("wheel",c,pf),document.removeEventListener("touchmove",c,pf),document.removeEventListener("touchstart",u,pf)}},[]);var g=e.removeScrollBar,v=e.inert;return S.createElement(S.Fragment,null,v?S.createElement(i,{styles:y$e(a)}):null,g?S.createElement(s$e,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function x$e(e){for(var r=null;e!==null;)e instanceof ShadowRoot&&(r=e.host,e=e.host),e=e.parentNode;return r}const w$e=XCe(QV,b$e);var W1=S.forwardRef(function(e,r){return S.createElement(rw,Gl({},e,{ref:r,sideCar:w$e}))});W1.classNames=rw.classNames;function So(e){return Object.keys(e)}function E7(e){return e&&typeof e=="object"&&!Array.isArray(e)}function C7(e,r){const n={...e},o=r;return E7(e)&&E7(r)&&Object.keys(r).forEach(a=>{E7(o[a])&&a in e?n[a]=C7(n[a],o[a]):n[a]=o[a]}),n}function k$e(e){return e.replace(/[A-Z]/g,r=>`-${r.toLowerCase()}`)}function _$e(e){return typeof e!="string"||!e.includes("var(--mantine-scale)")?e:e.match(/^calc\((.*?)\)$/)?.[1].split("*")[0].trim()}function $7(e){const r=_$e(e);return typeof r=="number"?r:typeof r=="string"?r.includes("calc")||r.includes("var")?r:r.includes("px")?Number(r.replace("px","")):r.includes("rem")?Number(r.replace("rem",""))*16:r.includes("em")?Number(r.replace("em",""))*16:Number(r):NaN}function lq(e){return e==="0rem"?"0rem":`calc(${e} * var(--mantine-scale))`}function sq(e,{shouldScale:r=!1}={}){function n(o){if(o===0||o==="0")return`0${e}`;if(typeof o=="number"){const a=`${o/16}${e}`;return r?lq(a):a}if(typeof o=="string"){if(o===""||o.startsWith("calc(")||o.startsWith("clamp(")||o.includes("rgba("))return o;if(o.includes(","))return o.split(",").map(i=>n(i)).join(",");if(o.includes(" "))return o.split(" ").map(i=>n(i)).join(" ");const a=o.replace("px","");if(!Number.isNaN(Number(a))){const i=`${Number(a)/16}${e}`;return r?lq(i):i}}return o}return n}const $e=sq("rem",{shouldScale:!0}),cq=sq("em");function ff(e){return Object.keys(e).reduce((r,n)=>(e[n]!==void 0&&(r[n]=e[n]),r),{})}function dq(e){if(typeof e=="number")return!0;if(typeof e=="string"){if(e.startsWith("calc(")||e.startsWith("var(")||e.includes(" ")&&e.trim()!=="")return!0;const r=/^[+-]?[0-9]+(\.[0-9]+)?(px|em|rem|ex|ch|lh|rlh|vw|vh|vmin|vmax|vb|vi|svw|svh|lvw|lvh|dvw|dvh|cm|mm|in|pt|pc|q|cqw|cqh|cqi|cqb|cqmin|cqmax|%)?$/;return e.trim().split(/\s+/).every(n=>r.test(n))}return!1}function Ki(e){return Array.isArray(e)||e===null?!1:typeof e=="object"?e.type!==S.Fragment:!1}function ei(e){const r=S.createContext(null);return[({children:n,value:o})=>y.jsx(r.Provider,{value:o,children:n}),()=>{const n=S.useContext(r);if(n===null)throw new Error(e);return n}]}function G1(e=null){const r=S.createContext(e);return[({children:n,value:o})=>y.jsx(r.Provider,{value:o,children:n}),()=>S.useContext(r)]}function uq(e,r){return n=>{if(typeof n!="string"||n.trim().length===0)throw new Error(r);return`${e}-${n}`}}function mf(e,r){let n=e;for(;(n=n.parentElement)&&!n.matches(r););return n}function S$e(e,r,n){for(let o=e-1;o>=0;o-=1)if(!r[o].disabled)return o;if(n){for(let o=r.length-1;o>-1;o-=1)if(!r[o].disabled)return o}return e}function E$e(e,r,n){for(let o=e+1;o{n?.(s);const c=Array.from(mf(s.currentTarget,e)?.querySelectorAll(r)||[]).filter(v=>C$e(s.currentTarget,v,e)),d=c.findIndex(v=>s.currentTarget===v),u=E$e(d,c,o),p=S$e(d,c,o),f=i==="rtl"?p:u,g=i==="rtl"?u:p;switch(s.key){case"ArrowRight":{l==="horizontal"&&(s.stopPropagation(),s.preventDefault(),c[f].focus(),a&&c[f].click());break}case"ArrowLeft":{l==="horizontal"&&(s.stopPropagation(),s.preventDefault(),c[g].focus(),a&&c[g].click());break}case"ArrowUp":{l==="vertical"&&(s.stopPropagation(),s.preventDefault(),c[p].focus(),a&&c[p].click());break}case"ArrowDown":{l==="vertical"&&(s.stopPropagation(),s.preventDefault(),c[u].focus(),a&&c[u].click());break}case"Home":{s.stopPropagation(),s.preventDefault(),!c[0].disabled&&c[0].focus();break}case"End":{s.stopPropagation(),s.preventDefault();const v=c.length-1;!c[v].disabled&&c[v].focus();break}}}}const $$e={app:100,modal:200,popover:300,overlay:400,max:9999};function aw(e){return $$e[e]}const pq=()=>{};function z$e(e,r={active:!0}){return typeof e!="function"||!r.active?r.onKeyDown||pq:n=>{n.key==="Escape"&&(e(n),r.onTrigger?.())}}function dr(e,r="size",n=!0){if(e!==void 0)return dq(e)?n?$e(e):e:`var(--${r}-${e})`}function Hs(e){return dr(e,"mantine-spacing")}function wn(e){return e===void 0?"var(--mantine-radius-default)":dr(e,"mantine-radius")}function Eo(e){return dr(e,"mantine-font-size")}function R$e(e){return dr(e,"mantine-line-height",!1)}function hq(e){if(e)return dr(e,"mantine-shadow",!1)}function kn(e,r){return n=>{e?.(n),r?.(n)}}function j$e(e,r){return e in r?$7(r[e]):$7(e)}function fq(e,r){const n=e.map(o=>({value:o,px:j$e(o,r)}));return n.sort((o,a)=>o.px-a.px),n}function X1(e){return typeof e=="object"&&e!==null?"base"in e?e.base:void 0:e}function T$e(e,r,n){return n?Array.from(mf(n,r)?.querySelectorAll(e)||[]).findIndex(o=>o===n):null}function ad(e,r,n){return r===void 0&&n===void 0?e:r!==void 0&&n===void 0?Math.max(e,r):Math.min(r===void 0&&n!==void 0?e:Math.max(e,r),n)}function z7(e="mantine-"){return`${e}${Math.random().toString(36).slice(2,11)}`}function A$e(e,r){if(e===r||Number.isNaN(e)&&Number.isNaN(r))return!0;if(!(e instanceof Object)||!(r instanceof Object))return!1;const n=Object.keys(e),{length:o}=n;if(o!==Object.keys(r).length)return!1;for(let a=0;a{r.current=e}),S.useMemo(()=>((...n)=>r.current?.(...n)),[])}function gf(e,r){const{delay:n,flushOnUnmount:o,leading:a}=typeof r=="number"?{delay:r,flushOnUnmount:!1,leading:!1}:r,i=Qn(e),l=S.useRef(0),s=S.useMemo(()=>{const c=Object.assign((...d)=>{window.clearTimeout(l.current);const u=c._isFirstCall;c._isFirstCall=!1;function p(){window.clearTimeout(l.current),l.current=0,c._isFirstCall=!0}if(a&&u){i(...d);const v=()=>{p()},w=()=>{l.current!==0&&(p(),i(...d))},x=()=>{p()};c.flush=w,c.cancel=x,l.current=window.setTimeout(v,n);return}if(a&&!u){const v=()=>{l.current!==0&&(p(),i(...d))},w=()=>{p()};c.flush=v,c.cancel=w;const x=()=>{p()};l.current=window.setTimeout(x,n);return}const f=()=>{l.current!==0&&(p(),i(...d))},g=()=>{p()};c.flush=f,c.cancel=g,l.current=window.setTimeout(f,n)},{flush:()=>{},cancel:()=>{},_isFirstCall:!0});return c},[i,n,a]);return S.useEffect(()=>()=>{o?s.flush():s.cancel()},[s,o]),s}const D$e=["mousedown","touchstart"];function mq(e,r,n){const o=S.useRef(null),a=r||D$e;return S.useEffect(()=>{const i=l=>{const{target:s}=l??{};if(Array.isArray(n)){const c=!document.body.contains(s)&&s?.tagName!=="HTML";n.every(d=>!!d&&!l.composedPath().includes(d))&&!c&&e(l)}else o.current&&!o.current.contains(s)&&e(l)};return a.forEach(l=>document.addEventListener(l,i)),()=>{a.forEach(l=>document.removeEventListener(l,i))}},[o,e,n]),o}function M$e(e={timeout:2e3}){const[r,n]=S.useState(null),[o,a]=S.useState(!1),[i,l]=S.useState(null),s=c=>{window.clearTimeout(i),l(window.setTimeout(()=>a(!1),e.timeout)),a(c)};return{copy:c=>{"clipboard"in navigator?navigator.clipboard.writeText(c).then(()=>s(!0)).catch(d=>n(d)):n(new Error("useClipboard: navigator.clipboard is not supported"))},reset:()=>{a(!1),n(null),window.clearTimeout(i)},error:r,copied:o}}function N$e(e,r){try{return e.addEventListener("change",r),()=>e.removeEventListener("change",r)}catch{return e.addListener(r),()=>e.removeListener(r)}}function P$e(e,r){return typeof window<"u"&&"matchMedia"in window?window.matchMedia(e).matches:!1}function gq(e,r,{getInitialValueInEffect:n}={getInitialValueInEffect:!0}){const[o,a]=S.useState(n?r:P$e(e));return S.useEffect(()=>{try{const i=window.matchMedia(e);return a(i.matches),N$e(i,l=>a(l.matches))}catch{return}},[e]),o||!1}function yq(e,r){return gq("(prefers-color-scheme: dark)",e==="dark",r)?"dark":"light"}function B$e(e,r,n={leading:!1}){const[o,a]=S.useState(e),i=S.useRef(null),l=S.useRef(!0),s=()=>window.clearTimeout(i.current);S.useEffect(()=>s,[]);const c=S.useCallback(d=>{s(),l.current&&n.leading?a(d):i.current=window.setTimeout(()=>{l.current=!0,a(d)},r),l.current=!1},[n.leading]);return[o,c]}function R7(e,r,n={leading:!1}){const[o,a]=S.useState(e),i=S.useRef(!1),l=S.useRef(null),s=S.useRef(!1),c=S.useCallback(()=>window.clearTimeout(l.current),[]);return S.useEffect(()=>{i.current&&(!s.current&&n.leading?(s.current=!0,a(e)):(c(),l.current=window.setTimeout(()=>{s.current=!1,a(e)},r)))},[e,n.leading,r]),S.useEffect(()=>(i.current=!0,c),[]),[o,c]}const Z1=typeof document<"u"?S.useLayoutEffect:S.useEffect;function Xu(e,r){const n=S.useRef(!1);S.useEffect(()=>()=>{n.current=!1},[]),S.useEffect(()=>{if(n.current)return e();n.current=!0},r)}function O$e({opened:e,shouldReturnFocus:r=!0}){const n=S.useRef(null),o=()=>{n.current&&"focus"in n.current&&typeof n.current.focus=="function"&&n.current?.focus({preventScroll:!0})};return Xu(()=>{let a=-1;const i=l=>{l.key==="Tab"&&window.clearTimeout(a)};return document.addEventListener("keydown",i),e?n.current=document.activeElement:r&&(a=window.setTimeout(o,10)),()=>{window.clearTimeout(a),document.removeEventListener("keydown",i)}},[e,r]),o}const I$e=/input|select|textarea|button|object/,vq="a, input, select, textarea, button, object, [tabindex]";function L$e(e){return e.style.display==="none"}function F$e(e){if(e.getAttribute("aria-hidden")||e.getAttribute("hidden")||e.getAttribute("type")==="hidden")return!1;let r=e;for(;r&&!(r===document.body||r.nodeType===11);){if(L$e(r))return!1;r=r.parentNode}return!0}function bq(e){let r=e.getAttribute("tabindex");return r===null&&(r=void 0),parseInt(r,10)}function j7(e){const r=e.nodeName.toLowerCase(),n=!Number.isNaN(bq(e));return(I$e.test(r)&&!e.disabled||e instanceof HTMLAnchorElement&&e.href||n)&&F$e(e)}function xq(e){const r=bq(e);return(Number.isNaN(r)||r>=0)&&j7(e)}function V$e(e){return Array.from(e.querySelectorAll(vq)).filter(xq)}function q$e(e,r){const n=V$e(e);if(!n.length){r.preventDefault();return}const o=n[r.shiftKey?0:n.length-1],a=e.getRootNode();let i=o===a.activeElement||e===a.activeElement;const l=a.activeElement;if(l.tagName==="INPUT"&&l.getAttribute("type")==="radio"&&(i=n.filter(c=>c.getAttribute("type")==="radio"&&c.getAttribute("name")===l.getAttribute("name")).includes(o)),!i)return;r.preventDefault();const s=n[r.shiftKey?n.length-1:0];s&&s.focus()}function wq(e=!0){const r=S.useRef(null),n=a=>{let i=a.querySelector("[data-autofocus]");if(!i){const l=Array.from(a.querySelectorAll(vq));i=l.find(xq)||l.find(j7)||null,!i&&j7(a)&&(i=a)}i&&i.focus({preventScroll:!0})},o=S.useCallback(a=>{e&&a!==null&&r.current!==a&&(a?(setTimeout(()=>{a.getRootNode()&&n(a)}),r.current=a):r.current=null)},[e]);return S.useEffect(()=>{if(!e)return;r.current&&setTimeout(()=>n(r.current));const a=i=>{i.key==="Tab"&&r.current&&q$e(r.current,i)};return document.addEventListener("keydown",a),()=>document.removeEventListener("keydown",a)},[e]),o}const H$e=Kr.useId||(()=>{});function U$e(){const e=H$e();return e?`mantine-${e.replace(/:/g,"")}`:""}function ti(e){const r=U$e(),[n,o]=S.useState(r);return Z1(()=>{o(z7())},[]),typeof e=="string"?e:typeof window>"u"?r:n}function yf(e,r,n){S.useEffect(()=>(window.addEventListener(e,r,n),()=>window.removeEventListener(e,r,n)),[e,r])}function W$e(e,r="use-local-storage"){try{return JSON.stringify(e)}catch{throw new Error(`@mantine/hooks ${r}: Failed to serialize the value`)}}function G$e(e){try{return e&&JSON.parse(e)}catch{return e}}function Y$e(e){return{getItem:r=>{try{return window[e].getItem(r)}catch{return console.warn("use-local-storage: Failed to get value from storage, localStorage is blocked"),null}},setItem:(r,n)=>{try{window[e].setItem(r,n)}catch{console.warn("use-local-storage: Failed to set value to storage, localStorage is blocked")}},removeItem:r=>{try{window[e].removeItem(r)}catch{console.warn("use-local-storage: Failed to remove value from storage, localStorage is blocked")}}}}function kq(e,r){const n=e==="localStorage"?"mantine-local-storage":"mantine-session-storage",{getItem:o,setItem:a,removeItem:i}=Y$e(e);return function({key:l,defaultValue:s,getInitialValueInEffect:c=!0,sync:d=!0,deserialize:u=G$e,serialize:p=f=>W$e(f,r)}){const f=S.useCallback(k=>{let C;try{C=typeof window>"u"||!(e in window)||window[e]===null||!!k}catch{C=!0}if(C)return s;const _=o(l);return _!==null?u(_):s},[l,s]),[g,v]=S.useState(f(c)),w=S.useCallback(k=>{k instanceof Function?v(C=>{const _=k(C);return a(l,p(_)),queueMicrotask(()=>{window.dispatchEvent(new CustomEvent(n,{detail:{key:l,value:k(C)}}))}),_}):(a(l,p(k)),window.dispatchEvent(new CustomEvent(n,{detail:{key:l,value:k}})),v(k))},[l]),x=S.useCallback(()=>{i(l),v(s),window.dispatchEvent(new CustomEvent(n,{detail:{key:l,value:s}}))},[l,s]);return yf("storage",k=>{d&&k.storageArea===window[e]&&k.key===l&&v(u(k.newValue??void 0))}),yf(n,k=>{d&&k.detail.key===l&&v(k.detail.value)}),S.useEffect(()=>{s!==void 0&&g===void 0&&w(s)},[s,g,w]),S.useEffect(()=>{const k=f();k!==void 0&&w(k)},[l]),[g===void 0?s:g,w,x]}}function X$e(e){return kq("localStorage","use-local-storage")(e)}function Z$e(e){return kq("sessionStorage","use-session-storage")(e)}function T7(e,r){if(typeof e=="function")return e(r);typeof e=="object"&&e!==null&&"current"in e&&(e.current=r)}function _q(...e){const r=new Map;return n=>{if(e.forEach(o=>{const a=T7(o,n);a&&r.set(o,a)}),r.size>0)return()=>{e.forEach(o=>{const a=r.get(o);a&&typeof a=="function"?a():T7(o,null)}),r.clear()}}}function $r(...e){return S.useCallback(_q(...e),e)}function K$e(e){return{x:ad(e.x,0,1),y:ad(e.y,0,1)}}function Sq(e,r,n="ltr"){const o=S.useRef(!1),a=S.useRef(!1),i=S.useRef(0),[l,s]=S.useState(!1),c=S.useRef(null);return S.useEffect(()=>{o.current=!0},[]),{ref:S.useCallback(d=>{if(c.current&&(c.current(),c.current=null),!d)return;const u=({x:_,y:$})=>{cancelAnimationFrame(i.current),i.current=requestAnimationFrame(()=>{if(o.current&&d){d.style.userSelect="none";const z=d.getBoundingClientRect();if(z.width&&z.height){const j=ad((_-z.left)/z.width,0,1);e({x:n==="ltr"?j:1-j,y:ad(($-z.top)/z.height,0,1)})}}})},p=()=>{document.addEventListener("mousemove",x),document.addEventListener("mouseup",v),document.addEventListener("touchmove",C,{passive:!1}),document.addEventListener("touchend",v)},f=()=>{document.removeEventListener("mousemove",x),document.removeEventListener("mouseup",v),document.removeEventListener("touchmove",C),document.removeEventListener("touchend",v)},g=()=>{!a.current&&o.current&&(a.current=!0,typeof r?.onScrubStart=="function"&&r.onScrubStart(),s(!0),p())},v=()=>{a.current&&o.current&&(a.current=!1,s(!1),f(),setTimeout(()=>{typeof r?.onScrubEnd=="function"&&r.onScrubEnd()},0))},w=_=>{g(),_.preventDefault(),x(_)},x=_=>u({x:_.clientX,y:_.clientY}),k=_=>{_.cancelable&&_.preventDefault(),g(),C(_)},C=_=>{_.cancelable&&_.preventDefault(),u({x:_.changedTouches[0].clientX,y:_.changedTouches[0].clientY})};d.addEventListener("mousedown",w),d.addEventListener("touchstart",k,{passive:!1}),c.current=()=>{d.removeEventListener("mousedown",w),d.removeEventListener("touchstart",k)}},[n,e]),active:l}}function Us({value:e,defaultValue:r,finalValue:n,onChange:o=()=>{}}){const[a,i]=S.useState(r!==void 0?r:n);return e!==void 0?[e,o,!0]:[a,(s,...c)=>{i(s),o?.(s,...c)},!1]}function Eq(e,r){return gq("(prefers-reduced-motion: reduce)",e,r)}function Q$e(e,r){if(!e||!r)return!1;if(e===r)return!0;if(e.length!==r.length)return!1;for(let n=0;n{r({width:window.innerWidth||0,height:window.innerHeight||0})},[]);return yf("resize",n,Cq),yf("orientationchange",n,Cq),S.useEffect(n,[]),e}const rze={" ":"space",ArrowLeft:"arrowleft",ArrowRight:"arrowright",ArrowUp:"arrowup",ArrowDown:"arrowdown",Escape:"escape",Esc:"escape",esc:"escape",Enter:"enter",Tab:"tab",Backspace:"backspace",Delete:"delete",Insert:"insert",Home:"home",End:"end",PageUp:"pageup",PageDown:"pagedown","+":"plus","-":"minus","*":"asterisk","/":"slash"};function iw(e){const r=e.replace("Key","").toLowerCase();return rze[e]||r}function nze(e){const r=e.toLowerCase().split("+").map(i=>i.trim()),n={alt:r.includes("alt"),ctrl:r.includes("ctrl"),meta:r.includes("meta"),mod:r.includes("mod"),shift:r.includes("shift"),plus:r.includes("[plus]")},o=["alt","ctrl","meta","shift","mod"],a=r.find(i=>!o.includes(i));return{...n,key:a==="[plus]"?"+":a}}function oze(e,r,n){const{alt:o,ctrl:a,meta:i,mod:l,shift:s,key:c}=e,{altKey:d,ctrlKey:u,metaKey:p,shiftKey:f,key:g,code:v}=r;if(o!==d)return!1;if(l){if(!u&&!p)return!1}else if(a!==u||i!==p)return!1;return s!==f?!1:!!(c&&(n?iw(v)===iw(c):iw(g??v)===iw(c)))}function $q(e,r){return n=>oze(nze(e),n,r)}function lw(e){return r=>{const n="nativeEvent"in r?r.nativeEvent:r;e.forEach(([o,a,i={preventDefault:!0,usePhysicalKeys:!1}])=>{$q(o,i.usePhysicalKeys)(n)&&(i.preventDefault&&r.preventDefault(),a(n))})}}function aze(e,r,n=!1){return e.target instanceof HTMLElement?(n||!e.target.isContentEditable)&&!r.includes(e.target.tagName):!0}function ize(e,r=["INPUT","TEXTAREA","SELECT"],n=!1){S.useEffect(()=>{const o=a=>{e.forEach(([i,l,s={preventDefault:!0,usePhysicalKeys:!1}])=>{$q(i,s.usePhysicalKeys)(a)&&aze(a,r,n)&&(s.preventDefault&&a.preventDefault(),l(a))})};return document.documentElement.addEventListener("keydown",o),()=>document.documentElement.removeEventListener("keydown",o)},[e])}function A7(){const[e,r]=S.useState(!1),n=S.useRef(null),o=S.useCallback(()=>{r(!0)},[]),a=S.useCallback(()=>{r(!1)},[]);return{ref:S.useCallback(i=>{n.current&&(n.current.removeEventListener("mouseenter",o),n.current.removeEventListener("mouseleave",a)),i&&(i.addEventListener("mouseenter",o),i.addEventListener("mouseleave",a)),n.current=i},[o,a]),hovered:e}}function lze(e=!1,r={}){const[n,o]=S.useState(e),a=S.useCallback(()=>{o(s=>s||(r.onOpen?.(),!0))},[r.onOpen]),i=S.useCallback(()=>{o(s=>s&&(r.onClose?.(),!1))},[r.onClose]),l=S.useCallback(()=>{n?i():a()},[i,a,n]);return[n,{open:a,close:i,toggle:l}]}function sze(e){return e.currentTarget instanceof HTMLElement&&e.relatedTarget instanceof HTMLElement?e.currentTarget.contains(e.relatedTarget):!1}function cze({onBlur:e,onFocus:r}={}){const[n,o]=S.useState(!1),a=S.useRef(!1),i=S.useRef(null),l=S.useCallback(u=>{o(u),a.current=u},[]),s=S.useCallback(u=>{a.current||(l(!0),r?.(u))},[r]),c=S.useCallback(u=>{a.current&&!sze(u)&&(l(!1),e?.(u))},[e]),d=S.useCallback(u=>{u&&(i.current&&(i.current.removeEventListener("focusin",s),i.current.removeEventListener("focusout",c)),u.addEventListener("focusin",s),u.addEventListener("focusout",c))},[s,c]);return S.useEffect(()=>()=>{i.current&&(i.current.removeEventListener("focusin",s),i.current.removeEventListener("focusout",c))},[]),{ref:d,focused:n}}function zq(e,r,n={autoInvoke:!1}){const o=S.useRef(null),a=S.useCallback((...l)=>{o.current||(o.current=window.setTimeout(()=>{e(l),o.current=null},r))},[r]),i=S.useCallback(()=>{o.current&&(window.clearTimeout(o.current),o.current=null)},[]);return S.useEffect(()=>(n.autoInvoke&&a(),i),[i,a]),{start:a,clear:i}}function Rq(e,r,n){const o=S.useRef(null),a=S.useRef(null);return S.useEffect(()=>{const i=typeof n=="function"?n():n;return(i||a.current)&&(o.current=new MutationObserver(e),o.current.observe(i||a.current,r)),()=>{o.current?.disconnect()}},[e,r]),a}function dze(){const[e,r]=S.useState(!1);return S.useEffect(()=>r(!0),[]),e}function jq(e){const[r,n]=S.useState({history:[e],current:0}),o=S.useCallback(c=>n(d=>{const u=[...d.history.slice(0,d.current+1),c];return{history:u,current:u.length-1}}),[]),a=S.useCallback((c=1)=>n(d=>({history:d.history,current:Math.max(0,d.current-c)})),[]),i=S.useCallback((c=1)=>n(d=>({history:d.history,current:Math.min(d.history.length-1,d.current+c)})),[]),l=S.useCallback(()=>{n({history:[e],current:0})},[e]),s=S.useMemo(()=>({back:a,forward:i,reset:l,set:o}),[a,i,l,o]);return[r.history[r.current],s,r]}function uze(e,r){const n=Qn(e),o=S.useRef(null),a=S.useRef(null),i=S.useRef(!0),l=S.useRef(r),s=S.useRef(-1),c=()=>window.clearTimeout(s.current),d=S.useCallback((...f)=>{n(...f),o.current=f,a.current=f,i.current=!1},[n]),u=S.useCallback(()=>{o.current&&o.current!==a.current?(d(...o.current),s.current=window.setTimeout(u,l.current)):i.current=!0},[d]),p=S.useCallback((...f)=>{i.current?(d(...f),s.current=window.setTimeout(u,l.current)):o.current=f},[d,u]);return S.useEffect(()=>{l.current=r},[r]),[p,c]}function pze(e,r){return uze(e,r)[0]}function hze(){return typeof process<"u"&&process.env?"production":"development"}function Tq(e){const r=new Map;return(...n)=>{const o=JSON.stringify(n);if(r.has(o))return r.get(o);const a=e(...n);return r.set(o,a),a}}function Aq(e,r){return r.length===0?e:r.reduce((n,o)=>Math.abs(o-e){Object.entries(n).forEach(([o,a])=>{r[o]?r[o]=Qi(r[o],a):r[o]=a})}),r}function dw({theme:e,classNames:r,props:n,stylesCtx:o}){const a=(Array.isArray(r)?r:[r]).map(i=>typeof i=="function"?i(e,n,o):i||fze);return mze(a)}function uw({theme:e,styles:r,props:n,stylesCtx:o}){return(Array.isArray(r)?r:[r]).reduce((a,i)=>typeof i=="function"?{...a,...i(e,n,o)}:{...a,...i},{})}const pw=S.createContext(null);function sd(){const e=S.useContext(pw);if(!e)throw new Error("[@mantine/core] MantineProvider was not found in tree");return e}function gze(){return sd().cssVariablesResolver}function yze(){return sd().classNamesPrefix}function Zu(){return sd().getStyleNonce}function vze(){return sd().withStaticClasses}function bze(){return sd().headless}function xze(){return sd().stylesTransform?.sx}function wze(){return sd().stylesTransform?.styles}function hw(){return sd().env||"default"}function kze(e){return/^#?([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(e)}function _ze(e){let r=e.replace("#","");if(r.length===3){const l=r.split("");r=[l[0],l[0],l[1],l[1],l[2],l[2]].join("")}if(r.length===8){const l=parseInt(r.slice(6,8),16)/255;return{r:parseInt(r.slice(0,2),16),g:parseInt(r.slice(2,4),16),b:parseInt(r.slice(4,6),16),a:l}}const n=parseInt(r,16),o=n>>16&255,a=n>>8&255,i=n&255;return{r:o,g:a,b:i,a:1}}function Sze(e){const[r,n,o,a]=e.replace(/[^0-9,./]/g,"").split(/[/,]/).map(Number);return{r,g:n,b:o,a:a===void 0?1:a}}function Eze(e){const r=/^hsla?\(\s*(\d+)\s*,\s*(\d+%)\s*,\s*(\d+%)\s*(,\s*(0?\.\d+|\d+(\.\d+)?))?\s*\)$/i,n=e.match(r);if(!n)return{r:0,g:0,b:0,a:1};const o=parseInt(n[1],10),a=parseInt(n[2],10)/100,i=parseInt(n[3],10)/100,l=n[5]?parseFloat(n[5]):void 0,s=(1-Math.abs(2*i-1))*a,c=o/60,d=s*(1-Math.abs(c%2-1)),u=i-s/2;let p,f,g;return c>=0&&c<1?(p=s,f=d,g=0):c>=1&&c<2?(p=d,f=s,g=0):c>=2&&c<3?(p=0,f=s,g=d):c>=3&&c<4?(p=0,f=d,g=s):c>=4&&c<5?(p=d,f=0,g=s):(p=s,f=0,g=d),{r:Math.round((p+u)*255),g:Math.round((f+u)*255),b:Math.round((g+u)*255),a:l||1}}function D7(e){return kze(e)?_ze(e):e.startsWith("rgb")?Sze(e):e.startsWith("hsl")?Eze(e):{r:0,g:0,b:0,a:1}}function fw(e,r){if(e.startsWith("var("))return`color-mix(in srgb, ${e}, black ${r*100}%)`;const{r:n,g:o,b:a,a:i}=D7(e),l=1-r,s=c=>Math.round(c*l);return`rgba(${s(n)}, ${s(o)}, ${s(a)}, ${i})`}function K1(e,r){return typeof e.primaryShade=="number"?e.primaryShade:r==="dark"?e.primaryShade.dark:e.primaryShade.light}function M7(e){return e<=.03928?e/12.92:((e+.055)/1.055)**2.4}function Cze(e){const r=e.match(/oklch\((.*?)%\s/);return r?parseFloat(r[1]):null}function $ze(e){if(e.startsWith("oklch("))return(Cze(e)||0)/100;const{r,g:n,b:o}=D7(e),a=r/255,i=n/255,l=o/255,s=M7(a),c=M7(i),d=M7(l);return .2126*s+.7152*c+.0722*d}function Q1(e,r=.179){return e.startsWith("var(")?!1:$ze(e)>r}function cd({color:e,theme:r,colorScheme:n}){if(typeof e!="string")throw new Error(`[@mantine/core] Failed to parse color. Expected color to be a string, instead got ${typeof e}`);if(e==="bright")return{color:e,value:n==="dark"?r.white:r.black,shade:void 0,isThemeColor:!1,isLight:Q1(n==="dark"?r.white:r.black,r.luminanceThreshold),variable:"--mantine-color-bright"};if(e==="dimmed")return{color:e,value:n==="dark"?r.colors.dark[2]:r.colors.gray[7],shade:void 0,isThemeColor:!1,isLight:Q1(n==="dark"?r.colors.dark[2]:r.colors.gray[6],r.luminanceThreshold),variable:"--mantine-color-dimmed"};if(e==="white"||e==="black")return{color:e,value:e==="white"?r.white:r.black,shade:void 0,isThemeColor:!1,isLight:Q1(e==="white"?r.white:r.black,r.luminanceThreshold),variable:`--mantine-color-${e}`};const[o,a]=e.split("."),i=a?Number(a):void 0,l=o in r.colors;if(l){const s=i!==void 0?r.colors[o][i]:r.colors[o][K1(r,n||"light")];return{color:o,value:s,shade:i,isThemeColor:l,isLight:Q1(s,r.luminanceThreshold),variable:a?`--mantine-color-${o}-${i}`:`--mantine-color-${o}-filled`}}return{color:e,value:e,isThemeColor:l,isLight:Q1(e,r.luminanceThreshold),shade:i,variable:void 0}}function _a(e,r){const n=cd({color:e||r.primaryColor,theme:r});return n.variable?`var(${n.variable})`:e}function N7(e,r){const n={from:e?.from||r.defaultGradient.from,to:e?.to||r.defaultGradient.to,deg:e?.deg??r.defaultGradient.deg??0},o=_a(n.from,r),a=_a(n.to,r);return`linear-gradient(${n.deg}deg, ${o} 0%, ${a} 100%)`}function Yl(e,r){if(typeof e!="string"||r>1||r<0)return"rgba(0, 0, 0, 1)";if(e.startsWith("var(")){const i=(1-r)*100;return`color-mix(in srgb, ${e}, transparent ${i}%)`}if(e.startsWith("oklch"))return e.includes("/")?e.replace(/\/\s*[\d.]+\s*\)/,`/ ${r})`):e.replace(")",` / ${r})`);const{r:n,g:o,b:a}=D7(e);return`rgba(${n}, ${o}, ${a}, ${r})`}const vf=Yl,zze=({color:e,theme:r,variant:n,gradient:o,autoContrast:a})=>{const i=cd({color:e,theme:r}),l=typeof a=="boolean"?a:r.autoContrast;if(n==="none")return{background:"transparent",hover:"transparent",color:"inherit",border:"none"};if(n==="filled"){const s=l&&i.isLight?"var(--mantine-color-black)":"var(--mantine-color-white)";return i.isThemeColor?i.shade===void 0?{background:`var(--mantine-color-${e}-filled)`,hover:`var(--mantine-color-${e}-filled-hover)`,color:s,border:`${$e(1)} solid transparent`}:{background:`var(--mantine-color-${i.color}-${i.shade})`,hover:`var(--mantine-color-${i.color}-${i.shade===9?8:i.shade+1})`,color:s,border:`${$e(1)} solid transparent`}:{background:e,hover:fw(e,.1),color:s,border:`${$e(1)} solid transparent`}}if(n==="light"){if(i.isThemeColor){if(i.shade===void 0)return{background:`var(--mantine-color-${e}-light)`,hover:`var(--mantine-color-${e}-light-hover)`,color:`var(--mantine-color-${e}-light-color)`,border:`${$e(1)} solid transparent`};const s=r.colors[i.color][i.shade];return{background:Yl(s,.1),hover:Yl(s,.12),color:`var(--mantine-color-${i.color}-${Math.min(i.shade,6)})`,border:`${$e(1)} solid transparent`}}return{background:Yl(e,.1),hover:Yl(e,.12),color:e,border:`${$e(1)} solid transparent`}}if(n==="outline")return i.isThemeColor?i.shade===void 0?{background:"transparent",hover:`var(--mantine-color-${e}-outline-hover)`,color:`var(--mantine-color-${e}-outline)`,border:`${$e(1)} solid var(--mantine-color-${e}-outline)`}:{background:"transparent",hover:Yl(r.colors[i.color][i.shade],.05),color:`var(--mantine-color-${i.color}-${i.shade})`,border:`${$e(1)} solid var(--mantine-color-${i.color}-${i.shade})`}:{background:"transparent",hover:Yl(e,.05),color:e,border:`${$e(1)} solid ${e}`};if(n==="subtle"){if(i.isThemeColor){if(i.shade===void 0)return{background:"transparent",hover:`var(--mantine-color-${e}-light-hover)`,color:`var(--mantine-color-${e}-light-color)`,border:`${$e(1)} solid transparent`};const s=r.colors[i.color][i.shade];return{background:"transparent",hover:Yl(s,.12),color:`var(--mantine-color-${i.color}-${Math.min(i.shade,6)})`,border:`${$e(1)} solid transparent`}}return{background:"transparent",hover:Yl(e,.12),color:e,border:`${$e(1)} solid transparent`}}return n==="transparent"?i.isThemeColor?i.shade===void 0?{background:"transparent",hover:"transparent",color:`var(--mantine-color-${e}-light-color)`,border:`${$e(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:`var(--mantine-color-${i.color}-${Math.min(i.shade,6)})`,border:`${$e(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:e,border:`${$e(1)} solid transparent`}:n==="white"?i.isThemeColor?i.shade===void 0?{background:"var(--mantine-color-white)",hover:fw(r.white,.01),color:`var(--mantine-color-${e}-filled)`,border:`${$e(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:fw(r.white,.01),color:`var(--mantine-color-${i.color}-${i.shade})`,border:`${$e(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:fw(r.white,.01),color:e,border:`${$e(1)} solid transparent`}:n==="gradient"?{background:N7(o,r),hover:N7(o,r),color:"var(--mantine-color-white)",border:"none"}:n==="default"?{background:"var(--mantine-color-default)",hover:"var(--mantine-color-default-hover)",color:"var(--mantine-color-default-color)",border:`${$e(1)} solid var(--mantine-color-default-border)`}:{}},Rze={dark:["#C9C9C9","#b8b8b8","#828282","#696969","#424242","#3b3b3b","#2e2e2e","#242424","#1f1f1f","#141414"],gray:["#f8f9fa","#f1f3f5","#e9ecef","#dee2e6","#ced4da","#adb5bd","#868e96","#495057","#343a40","#212529"],red:["#fff5f5","#ffe3e3","#ffc9c9","#ffa8a8","#ff8787","#ff6b6b","#fa5252","#f03e3e","#e03131","#c92a2a"],pink:["#fff0f6","#ffdeeb","#fcc2d7","#faa2c1","#f783ac","#f06595","#e64980","#d6336c","#c2255c","#a61e4d"],grape:["#f8f0fc","#f3d9fa","#eebefa","#e599f7","#da77f2","#cc5de8","#be4bdb","#ae3ec9","#9c36b5","#862e9c"],violet:["#f3f0ff","#e5dbff","#d0bfff","#b197fc","#9775fa","#845ef7","#7950f2","#7048e8","#6741d9","#5f3dc4"],indigo:["#edf2ff","#dbe4ff","#bac8ff","#91a7ff","#748ffc","#5c7cfa","#4c6ef5","#4263eb","#3b5bdb","#364fc7"],blue:["#e7f5ff","#d0ebff","#a5d8ff","#74c0fc","#4dabf7","#339af0","#228be6","#1c7ed6","#1971c2","#1864ab"],cyan:["#e3fafc","#c5f6fa","#99e9f2","#66d9e8","#3bc9db","#22b8cf","#15aabf","#1098ad","#0c8599","#0b7285"],teal:["#e6fcf5","#c3fae8","#96f2d7","#63e6be","#38d9a9","#20c997","#12b886","#0ca678","#099268","#087f5b"],green:["#ebfbee","#d3f9d8","#b2f2bb","#8ce99a","#69db7c","#51cf66","#40c057","#37b24d","#2f9e44","#2b8a3e"],lime:["#f4fce3","#e9fac8","#d8f5a2","#c0eb75","#a9e34b","#94d82d","#82c91e","#74b816","#66a80f","#5c940d"],yellow:["#fff9db","#fff3bf","#ffec99","#ffe066","#ffd43b","#fcc419","#fab005","#f59f00","#f08c00","#e67700"],orange:["#fff4e6","#ffe8cc","#ffd8a8","#ffc078","#ffa94d","#ff922b","#fd7e14","#f76707","#e8590c","#d9480f"]},Mq="-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji",P7={scale:1,fontSmoothing:!0,focusRing:"auto",white:"#fff",black:"#000",colors:Rze,primaryShade:{light:6,dark:8},primaryColor:"blue",variantColorResolver:zze,autoContrast:!1,luminanceThreshold:.3,fontFamily:Mq,fontFamilyMonospace:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace",respectReducedMotion:!1,cursorType:"default",defaultGradient:{from:"blue",to:"cyan",deg:45},defaultRadius:"sm",activeClassName:"mantine-active",focusClassName:"",headings:{fontFamily:Mq,fontWeight:"700",textWrap:"wrap",sizes:{h1:{fontSize:$e(34),lineHeight:"1.3"},h2:{fontSize:$e(26),lineHeight:"1.35"},h3:{fontSize:$e(22),lineHeight:"1.4"},h4:{fontSize:$e(18),lineHeight:"1.45"},h5:{fontSize:$e(16),lineHeight:"1.5"},h6:{fontSize:$e(14),lineHeight:"1.5"}}},fontSizes:{xs:$e(12),sm:$e(14),md:$e(16),lg:$e(18),xl:$e(20)},lineHeights:{xs:"1.4",sm:"1.45",md:"1.55",lg:"1.6",xl:"1.65"},radius:{xs:$e(2),sm:$e(4),md:$e(8),lg:$e(16),xl:$e(32)},spacing:{xs:$e(10),sm:$e(12),md:$e(16),lg:$e(20),xl:$e(32)},breakpoints:{xs:"36em",sm:"48em",md:"62em",lg:"75em",xl:"88em"},shadows:{xs:`0 ${$e(1)} ${$e(3)} rgba(0, 0, 0, 0.05), 0 ${$e(1)} ${$e(2)} rgba(0, 0, 0, 0.1)`,sm:`0 ${$e(1)} ${$e(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${$e(10)} ${$e(15)} ${$e(-5)}, rgba(0, 0, 0, 0.04) 0 ${$e(7)} ${$e(7)} ${$e(-5)}`,md:`0 ${$e(1)} ${$e(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${$e(20)} ${$e(25)} ${$e(-5)}, rgba(0, 0, 0, 0.04) 0 ${$e(10)} ${$e(10)} ${$e(-5)}`,lg:`0 ${$e(1)} ${$e(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${$e(28)} ${$e(23)} ${$e(-7)}, rgba(0, 0, 0, 0.04) 0 ${$e(12)} ${$e(12)} ${$e(-7)}`,xl:`0 ${$e(1)} ${$e(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${$e(36)} ${$e(28)} ${$e(-7)}, rgba(0, 0, 0, 0.04) 0 ${$e(17)} ${$e(17)} ${$e(-7)}`},other:{},components:{}};function Nq(e){return e==="auto"||e==="dark"||e==="light"}function jze({key:e="mantine-color-scheme-value"}={}){let r;return{get:n=>{if(typeof window>"u")return n;try{const o=window.localStorage.getItem(e);return Nq(o)?o:n}catch{return n}},set:n=>{try{window.localStorage.setItem(e,n)}catch(o){console.warn("[@mantine/core] Local storage color scheme manager was unable to save color scheme.",o)}},subscribe:n=>{r=o=>{o.storageArea===window.localStorage&&o.key===e&&Nq(o.newValue)&&n(o.newValue)},window.addEventListener("storage",r)},unsubscribe:()=>{window.removeEventListener("storage",r)},clear:()=>{window.localStorage.removeItem(e)}}}const Tze="[@mantine/core] MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more – https://mantine.dev/theming/colors/#primary-color",Pq="[@mantine/core] MantineProvider: Invalid theme.primaryShade, it accepts only 0-9 integers or an object { light: 0-9, dark: 0-9 }";function B7(e){return e<0||e>9?!1:parseInt(e.toString(),10)===e}function Bq(e){if(!(e.primaryColor in e.colors))throw new Error(Tze);if(typeof e.primaryShade=="object"&&(!B7(e.primaryShade.dark)||!B7(e.primaryShade.light)))throw new Error(Pq);if(typeof e.primaryShade=="number"&&!B7(e.primaryShade))throw new Error(Pq)}function Aze(e,r){if(!r)return Bq(e),e;const n=C7(e,r);return r.fontFamily&&!r.headings?.fontFamily&&(n.headings.fontFamily=r.fontFamily),Bq(n),n}const O7=S.createContext(null),Dze=()=>S.useContext(O7)||P7;function lo(){const e=S.useContext(O7);if(!e)throw new Error("@mantine/core: MantineProvider was not found in component tree, make sure you have it in your app");return e}function Oq({theme:e,children:r,inherit:n=!0}){const o=Dze(),a=S.useMemo(()=>Aze(n?o:P7,e),[e,o,n]);return y.jsx(O7.Provider,{value:a,children:r})}Oq.displayName="@mantine/core/MantineThemeProvider";function Mze(){const e=lo(),r=Zu(),n=So(e.breakpoints).reduce((o,a)=>{const i=e.breakpoints[a].includes("px"),l=$7(e.breakpoints[a]),s=i?`${l-.1}px`:cq(l-.1),c=i?`${l}px`:cq(l);return`${o}@media (max-width: ${s}) {.mantine-visible-from-${a} {display: none !important;}}@media (min-width: ${c}) {.mantine-hidden-from-${a} {display: none !important;}}`},"");return y.jsx("style",{"data-mantine-styles":"classes",nonce:r?.(),dangerouslySetInnerHTML:{__html:n}})}function I7(e){return Object.entries(e).map(([r,n])=>`${r}: ${n};`).join("")}function L7(e,r){return(Array.isArray(e)?e:[e]).reduce((n,o)=>`${o}{${n}}`,r)}function Nze(e,r){const n=I7(e.variables),o=n?L7(r,n):"",a=I7(e.dark),i=I7(e.light),l=a?L7(r===":host"?`${r}([data-mantine-color-scheme="dark"])`:`${r}[data-mantine-color-scheme="dark"]`,a):"",s=i?L7(r===":host"?`${r}([data-mantine-color-scheme="light"])`:`${r}[data-mantine-color-scheme="light"]`,i):"";return`${o} -${s} +${l} -${l}`}function o9({color:e,theme:r,autoContrast:n}){return(typeof n=="boolean"?n:r.autoContrast)&&Ad({color:e||r.primaryColor,theme:r}).isLight?"var(--mantine-color-black)":"var(--mantine-color-white)"}function FU(e,r){return o9({color:e.colors[e.primaryColor][P0(e,r)],theme:e,autoContrast:null})}function l2({theme:e,color:r,colorScheme:n,name:o=r,withColorValues:a=!0}){if(!e.colors[r])return{};if(n==="light"){const l=P0(e,"light"),c={[`--mantine-color-${o}-text`]:`var(--mantine-color-${o}-filled)`,[`--mantine-color-${o}-filled`]:`var(--mantine-color-${o}-${l})`,[`--mantine-color-${o}-filled-hover`]:`var(--mantine-color-${o}-${l===9?8:l+1})`,[`--mantine-color-${o}-light`]:Xf(e.colors[r][l],.1),[`--mantine-color-${o}-light-hover`]:Xf(e.colors[r][l],.12),[`--mantine-color-${o}-light-color`]:`var(--mantine-color-${o}-${l})`,[`--mantine-color-${o}-outline`]:`var(--mantine-color-${o}-${l})`,[`--mantine-color-${o}-outline-hover`]:Xf(e.colors[r][l],.05)};return a?{[`--mantine-color-${o}-0`]:e.colors[r][0],[`--mantine-color-${o}-1`]:e.colors[r][1],[`--mantine-color-${o}-2`]:e.colors[r][2],[`--mantine-color-${o}-3`]:e.colors[r][3],[`--mantine-color-${o}-4`]:e.colors[r][4],[`--mantine-color-${o}-5`]:e.colors[r][5],[`--mantine-color-${o}-6`]:e.colors[r][6],[`--mantine-color-${o}-7`]:e.colors[r][7],[`--mantine-color-${o}-8`]:e.colors[r][8],[`--mantine-color-${o}-9`]:e.colors[r][9],...c}:c}const i=P0(e,"dark"),s={[`--mantine-color-${o}-text`]:`var(--mantine-color-${o}-4)`,[`--mantine-color-${o}-filled`]:`var(--mantine-color-${o}-${i})`,[`--mantine-color-${o}-filled-hover`]:`var(--mantine-color-${o}-${i===9?8:i+1})`,[`--mantine-color-${o}-light`]:Xf(e.colors[r][Math.max(0,i-2)],.15),[`--mantine-color-${o}-light-hover`]:Xf(e.colors[r][Math.max(0,i-2)],.2),[`--mantine-color-${o}-light-color`]:`var(--mantine-color-${o}-${Math.max(i-5,0)})`,[`--mantine-color-${o}-outline`]:`var(--mantine-color-${o}-${Math.max(i-4,0)})`,[`--mantine-color-${o}-outline-hover`]:Xf(e.colors[r][Math.max(i-4,0)],.05)};return a?{[`--mantine-color-${o}-0`]:e.colors[r][0],[`--mantine-color-${o}-1`]:e.colors[r][1],[`--mantine-color-${o}-2`]:e.colors[r][2],[`--mantine-color-${o}-3`]:e.colors[r][3],[`--mantine-color-${o}-4`]:e.colors[r][4],[`--mantine-color-${o}-5`]:e.colors[r][5],[`--mantine-color-${o}-6`]:e.colors[r][6],[`--mantine-color-${o}-7`]:e.colors[r][7],[`--mantine-color-${o}-8`]:e.colors[r][8],[`--mantine-color-${o}-9`]:e.colors[r][9],...s}:s}function K$e(e){return!!e&&typeof e=="object"&&"mantine-virtual-color"in e}function Kf(e,r,n){zo(r).forEach(o=>Object.assign(e,{[`--mantine-${n}-${o}`]:r[o]}))}const HU=e=>{const r=P0(e,"light"),n=e.defaultRadius in e.radius?e.radius[e.defaultRadius]:Pe(e.defaultRadius),o={variables:{"--mantine-z-index-app":"100","--mantine-z-index-modal":"200","--mantine-z-index-popover":"300","--mantine-z-index-overlay":"400","--mantine-z-index-max":"9999","--mantine-scale":e.scale.toString(),"--mantine-cursor-type":e.cursorType,"--mantine-webkit-font-smoothing":e.fontSmoothing?"antialiased":"unset","--mantine-moz-font-smoothing":e.fontSmoothing?"grayscale":"unset","--mantine-color-white":e.white,"--mantine-color-black":e.black,"--mantine-line-height":e.lineHeights.md,"--mantine-font-family":e.fontFamily,"--mantine-font-family-monospace":e.fontFamilyMonospace,"--mantine-font-family-headings":e.headings.fontFamily,"--mantine-heading-font-weight":e.headings.fontWeight,"--mantine-heading-text-wrap":e.headings.textWrap,"--mantine-radius-default":n,"--mantine-primary-color-filled":`var(--mantine-color-${e.primaryColor}-filled)`,"--mantine-primary-color-filled-hover":`var(--mantine-color-${e.primaryColor}-filled-hover)`,"--mantine-primary-color-light":`var(--mantine-color-${e.primaryColor}-light)`,"--mantine-primary-color-light-hover":`var(--mantine-color-${e.primaryColor}-light-hover)`,"--mantine-primary-color-light-color":`var(--mantine-color-${e.primaryColor}-light-color)`},light:{"--mantine-color-scheme":"light","--mantine-primary-color-contrast":FU(e,"light"),"--mantine-color-bright":"var(--mantine-color-black)","--mantine-color-text":e.black,"--mantine-color-body":e.white,"--mantine-color-error":"var(--mantine-color-red-6)","--mantine-color-placeholder":"var(--mantine-color-gray-5)","--mantine-color-anchor":`var(--mantine-color-${e.primaryColor}-${r})`,"--mantine-color-default":"var(--mantine-color-white)","--mantine-color-default-hover":"var(--mantine-color-gray-0)","--mantine-color-default-color":"var(--mantine-color-black)","--mantine-color-default-border":"var(--mantine-color-gray-4)","--mantine-color-dimmed":"var(--mantine-color-gray-6)","--mantine-color-disabled":"var(--mantine-color-gray-2)","--mantine-color-disabled-color":"var(--mantine-color-gray-5)","--mantine-color-disabled-border":"var(--mantine-color-gray-3)"},dark:{"--mantine-color-scheme":"dark","--mantine-primary-color-contrast":FU(e,"dark"),"--mantine-color-bright":"var(--mantine-color-white)","--mantine-color-text":"var(--mantine-color-dark-0)","--mantine-color-body":"var(--mantine-color-dark-7)","--mantine-color-error":"var(--mantine-color-red-8)","--mantine-color-placeholder":"var(--mantine-color-dark-3)","--mantine-color-anchor":`var(--mantine-color-${e.primaryColor}-4)`,"--mantine-color-default":"var(--mantine-color-dark-6)","--mantine-color-default-hover":"var(--mantine-color-dark-5)","--mantine-color-default-color":"var(--mantine-color-white)","--mantine-color-default-border":"var(--mantine-color-dark-4)","--mantine-color-dimmed":"var(--mantine-color-dark-2)","--mantine-color-disabled":"var(--mantine-color-dark-6)","--mantine-color-disabled-color":"var(--mantine-color-dark-3)","--mantine-color-disabled-border":"var(--mantine-color-dark-4)"}};Kf(o.variables,e.breakpoints,"breakpoint"),Kf(o.variables,e.spacing,"spacing"),Kf(o.variables,e.fontSizes,"font-size"),Kf(o.variables,e.lineHeights,"line-height"),Kf(o.variables,e.shadows,"shadow"),Kf(o.variables,e.radius,"radius"),e.colors[e.primaryColor].forEach((i,s)=>{o.variables[`--mantine-primary-color-${s}`]=`var(--mantine-color-${e.primaryColor}-${s})`}),zo(e.colors).forEach(i=>{const s=e.colors[i];if(K$e(s)){Object.assign(o.light,l2({theme:e,name:s.name,color:s.light,colorScheme:"light",withColorValues:!0})),Object.assign(o.dark,l2({theme:e,name:s.name,color:s.dark,colorScheme:"dark",withColorValues:!0}));return}s.forEach((l,c)=>{o.variables[`--mantine-color-${i}-${c}`]=l}),Object.assign(o.light,l2({theme:e,color:i,colorScheme:"light",withColorValues:!1})),Object.assign(o.dark,l2({theme:e,color:i,colorScheme:"dark",withColorValues:!1}))});const a=e.headings.sizes;return zo(a).forEach(i=>{o.variables[`--mantine-${i}-font-size`]=a[i].fontSize,o.variables[`--mantine-${i}-line-height`]=a[i].lineHeight,o.variables[`--mantine-${i}-font-weight`]=a[i].fontWeight||e.headings.fontWeight}),o};function Z$e({theme:e,generator:r}){const n=HU(e),o=r?.(e);return o?V7(n,o):n}const a9=HU(J7);function Q$e(e){const r={variables:{},light:{},dark:{}};return zo(e.variables).forEach(n=>{a9.variables[n]!==e.variables[n]&&(r.variables[n]=e.variables[n])}),zo(e.light).forEach(n=>{a9.light[n]!==e.light[n]&&(r.light[n]=e.light[n])}),zo(e.dark).forEach(n=>{a9.dark[n]!==e.dark[n]&&(r.dark[n]=e.dark[n])}),r}function J$e(e){return` +${s}`}function F7({color:e,theme:r,autoContrast:n}){return(typeof n=="boolean"?n:r.autoContrast)&&cd({color:e||r.primaryColor,theme:r}).isLight?"var(--mantine-color-black)":"var(--mantine-color-white)"}function Iq(e,r){return F7({color:e.colors[e.primaryColor][K1(e,r)],theme:e,autoContrast:null})}function mw({theme:e,color:r,colorScheme:n,name:o=r,withColorValues:a=!0}){if(!e.colors[r])return{};if(n==="light"){const s=K1(e,"light"),c={[`--mantine-color-${o}-text`]:`var(--mantine-color-${o}-filled)`,[`--mantine-color-${o}-filled`]:`var(--mantine-color-${o}-${s})`,[`--mantine-color-${o}-filled-hover`]:`var(--mantine-color-${o}-${s===9?8:s+1})`,[`--mantine-color-${o}-light`]:vf(e.colors[r][s],.1),[`--mantine-color-${o}-light-hover`]:vf(e.colors[r][s],.12),[`--mantine-color-${o}-light-color`]:`var(--mantine-color-${o}-${s})`,[`--mantine-color-${o}-outline`]:`var(--mantine-color-${o}-${s})`,[`--mantine-color-${o}-outline-hover`]:vf(e.colors[r][s],.05)};return a?{[`--mantine-color-${o}-0`]:e.colors[r][0],[`--mantine-color-${o}-1`]:e.colors[r][1],[`--mantine-color-${o}-2`]:e.colors[r][2],[`--mantine-color-${o}-3`]:e.colors[r][3],[`--mantine-color-${o}-4`]:e.colors[r][4],[`--mantine-color-${o}-5`]:e.colors[r][5],[`--mantine-color-${o}-6`]:e.colors[r][6],[`--mantine-color-${o}-7`]:e.colors[r][7],[`--mantine-color-${o}-8`]:e.colors[r][8],[`--mantine-color-${o}-9`]:e.colors[r][9],...c}:c}const i=K1(e,"dark"),l={[`--mantine-color-${o}-text`]:`var(--mantine-color-${o}-4)`,[`--mantine-color-${o}-filled`]:`var(--mantine-color-${o}-${i})`,[`--mantine-color-${o}-filled-hover`]:`var(--mantine-color-${o}-${i===9?8:i+1})`,[`--mantine-color-${o}-light`]:vf(e.colors[r][Math.max(0,i-2)],.15),[`--mantine-color-${o}-light-hover`]:vf(e.colors[r][Math.max(0,i-2)],.2),[`--mantine-color-${o}-light-color`]:`var(--mantine-color-${o}-${Math.max(i-5,0)})`,[`--mantine-color-${o}-outline`]:`var(--mantine-color-${o}-${Math.max(i-4,0)})`,[`--mantine-color-${o}-outline-hover`]:vf(e.colors[r][Math.max(i-4,0)],.05)};return a?{[`--mantine-color-${o}-0`]:e.colors[r][0],[`--mantine-color-${o}-1`]:e.colors[r][1],[`--mantine-color-${o}-2`]:e.colors[r][2],[`--mantine-color-${o}-3`]:e.colors[r][3],[`--mantine-color-${o}-4`]:e.colors[r][4],[`--mantine-color-${o}-5`]:e.colors[r][5],[`--mantine-color-${o}-6`]:e.colors[r][6],[`--mantine-color-${o}-7`]:e.colors[r][7],[`--mantine-color-${o}-8`]:e.colors[r][8],[`--mantine-color-${o}-9`]:e.colors[r][9],...l}:l}function Pze(e){return!!e&&typeof e=="object"&&"mantine-virtual-color"in e}function bf(e,r,n){So(r).forEach(o=>Object.assign(e,{[`--mantine-${n}-${o}`]:r[o]}))}const Lq=e=>{const r=K1(e,"light"),n=e.defaultRadius in e.radius?e.radius[e.defaultRadius]:$e(e.defaultRadius),o={variables:{"--mantine-z-index-app":"100","--mantine-z-index-modal":"200","--mantine-z-index-popover":"300","--mantine-z-index-overlay":"400","--mantine-z-index-max":"9999","--mantine-scale":e.scale.toString(),"--mantine-cursor-type":e.cursorType,"--mantine-webkit-font-smoothing":e.fontSmoothing?"antialiased":"unset","--mantine-moz-font-smoothing":e.fontSmoothing?"grayscale":"unset","--mantine-color-white":e.white,"--mantine-color-black":e.black,"--mantine-line-height":e.lineHeights.md,"--mantine-font-family":e.fontFamily,"--mantine-font-family-monospace":e.fontFamilyMonospace,"--mantine-font-family-headings":e.headings.fontFamily,"--mantine-heading-font-weight":e.headings.fontWeight,"--mantine-heading-text-wrap":e.headings.textWrap,"--mantine-radius-default":n,"--mantine-primary-color-filled":`var(--mantine-color-${e.primaryColor}-filled)`,"--mantine-primary-color-filled-hover":`var(--mantine-color-${e.primaryColor}-filled-hover)`,"--mantine-primary-color-light":`var(--mantine-color-${e.primaryColor}-light)`,"--mantine-primary-color-light-hover":`var(--mantine-color-${e.primaryColor}-light-hover)`,"--mantine-primary-color-light-color":`var(--mantine-color-${e.primaryColor}-light-color)`},light:{"--mantine-color-scheme":"light","--mantine-primary-color-contrast":Iq(e,"light"),"--mantine-color-bright":"var(--mantine-color-black)","--mantine-color-text":e.black,"--mantine-color-body":e.white,"--mantine-color-error":"var(--mantine-color-red-6)","--mantine-color-placeholder":"var(--mantine-color-gray-5)","--mantine-color-anchor":`var(--mantine-color-${e.primaryColor}-${r})`,"--mantine-color-default":"var(--mantine-color-white)","--mantine-color-default-hover":"var(--mantine-color-gray-0)","--mantine-color-default-color":"var(--mantine-color-black)","--mantine-color-default-border":"var(--mantine-color-gray-4)","--mantine-color-dimmed":"var(--mantine-color-gray-6)","--mantine-color-disabled":"var(--mantine-color-gray-2)","--mantine-color-disabled-color":"var(--mantine-color-gray-5)","--mantine-color-disabled-border":"var(--mantine-color-gray-3)"},dark:{"--mantine-color-scheme":"dark","--mantine-primary-color-contrast":Iq(e,"dark"),"--mantine-color-bright":"var(--mantine-color-white)","--mantine-color-text":"var(--mantine-color-dark-0)","--mantine-color-body":"var(--mantine-color-dark-7)","--mantine-color-error":"var(--mantine-color-red-8)","--mantine-color-placeholder":"var(--mantine-color-dark-3)","--mantine-color-anchor":`var(--mantine-color-${e.primaryColor}-4)`,"--mantine-color-default":"var(--mantine-color-dark-6)","--mantine-color-default-hover":"var(--mantine-color-dark-5)","--mantine-color-default-color":"var(--mantine-color-white)","--mantine-color-default-border":"var(--mantine-color-dark-4)","--mantine-color-dimmed":"var(--mantine-color-dark-2)","--mantine-color-disabled":"var(--mantine-color-dark-6)","--mantine-color-disabled-color":"var(--mantine-color-dark-3)","--mantine-color-disabled-border":"var(--mantine-color-dark-4)"}};bf(o.variables,e.breakpoints,"breakpoint"),bf(o.variables,e.spacing,"spacing"),bf(o.variables,e.fontSizes,"font-size"),bf(o.variables,e.lineHeights,"line-height"),bf(o.variables,e.shadows,"shadow"),bf(o.variables,e.radius,"radius"),e.colors[e.primaryColor].forEach((i,l)=>{o.variables[`--mantine-primary-color-${l}`]=`var(--mantine-color-${e.primaryColor}-${l})`}),So(e.colors).forEach(i=>{const l=e.colors[i];if(Pze(l)){Object.assign(o.light,mw({theme:e,name:l.name,color:l.light,colorScheme:"light",withColorValues:!0})),Object.assign(o.dark,mw({theme:e,name:l.name,color:l.dark,colorScheme:"dark",withColorValues:!0}));return}l.forEach((s,c)=>{o.variables[`--mantine-color-${i}-${c}`]=s}),Object.assign(o.light,mw({theme:e,color:i,colorScheme:"light",withColorValues:!1})),Object.assign(o.dark,mw({theme:e,color:i,colorScheme:"dark",withColorValues:!1}))});const a=e.headings.sizes;return So(a).forEach(i=>{o.variables[`--mantine-${i}-font-size`]=a[i].fontSize,o.variables[`--mantine-${i}-line-height`]=a[i].lineHeight,o.variables[`--mantine-${i}-font-weight`]=a[i].fontWeight||e.headings.fontWeight}),o};function Bze({theme:e,generator:r}){const n=Lq(e),o=r?.(e);return o?C7(n,o):n}const V7=Lq(P7);function Oze(e){const r={variables:{},light:{},dark:{}};return So(e.variables).forEach(n=>{V7.variables[n]!==e.variables[n]&&(r.variables[n]=e.variables[n])}),So(e.light).forEach(n=>{V7.light[n]!==e.light[n]&&(r.light[n]=e.light[n])}),So(e.dark).forEach(n=>{V7.dark[n]!==e.dark[n]&&(r.dark[n]=e.dark[n])}),r}function Ize(e){return` ${e}[data-mantine-color-scheme="dark"] { --mantine-color-scheme: dark; } ${e}[data-mantine-color-scheme="light"] { --mantine-color-scheme: light; } -`}function VU({cssVariablesSelector:e,deduplicateCssVariables:r}){const n=vo(),o=yp(),a=N$e(),i=Z$e({theme:n,generator:a}),s=e===":root"&&r,l=s?Q$e(i):i,c=X$e(l,e);return c?y.jsx("style",{"data-mantine-styles":!0,nonce:o?.(),dangerouslySetInnerHTML:{__html:`${c}${s?"":J$e(e)}`}}):null}VU.displayName="@mantine/CssVariables";function Zf(e,r){const n=typeof window<"u"&&"matchMedia"in window&&window.matchMedia("(prefers-color-scheme: dark)")?.matches,o=e!=="auto"?e:n?"dark":"light";r()?.setAttribute("data-mantine-color-scheme",o)}function ePe({manager:e,defaultColorScheme:r,getRootElement:n,forceColorScheme:o}){const a=E.useRef(null),[i,s]=E.useState(()=>e.get(r)),l=o||i,c=E.useCallback(u=>{o||(Zf(u,n),s(u),e.set(u))},[e.set,l,o]),d=E.useCallback(()=>{s(r),Zf(r,n),e.clear()},[e.clear,r]);return E.useEffect(()=>(e.subscribe(c),e.unsubscribe),[e.subscribe,e.unsubscribe]),$0(()=>{Zf(e.get(r),n)},[]),E.useEffect(()=>{if(o)return Zf(o,n),()=>{};o===void 0&&Zf(i,n),typeof window<"u"&&"matchMedia"in window&&(a.current=window.matchMedia("(prefers-color-scheme: dark)"));const u=h=>{i==="auto"&&Zf(h.matches?"dark":"light",n)};return a.current?.addEventListener("change",u),()=>a.current?.removeEventListener("change",u)},[i,o]),{colorScheme:l,setColorScheme:c,clearColorScheme:d}}function tPe({respectReducedMotion:e,getRootElement:r}){$0(()=>{e&&r()?.setAttribute("data-respect-reduced-motion","true")},[e])}function i9({theme:e,children:r,getStyleNonce:n,withStaticClasses:o=!0,withGlobalClasses:a=!0,deduplicateCssVariables:i=!0,withCssVariables:s=!0,cssVariablesSelector:l=":root",classNamesPrefix:c="mantine",colorSchemeManager:d=q$e(),defaultColorScheme:u="light",getRootElement:h=()=>document.documentElement,cssVariablesResolver:f,forceColorScheme:g,stylesTransform:b,env:x}){const{colorScheme:w,setColorScheme:k,clearColorScheme:C}=ePe({defaultColorScheme:u,forceColorScheme:g,manager:d,getRootElement:h});return tPe({respectReducedMotion:e?.respectReducedMotion||!1,getRootElement:h}),y.jsx(a2.Provider,{value:{colorScheme:w,setColorScheme:k,clearColorScheme:C,getRootElement:h,classNamesPrefix:c,getStyleNonce:n,cssVariablesResolver:f,cssVariablesSelector:l,withStaticClasses:o,stylesTransform:b,env:x},children:y.jsxs(BU,{theme:e,children:[s&&y.jsx(VU,{cssVariablesSelector:l,deduplicateCssVariables:i}),a&&y.jsx(G$e,{}),r]})})}i9.displayName="@mantine/core/MantineProvider";function s9({classNames:e,styles:r,props:n,stylesCtx:o}){const a=vo();return{resolvedClassNames:n2({theme:a,classNames:e,props:n,stylesCtx:o||void 0}),resolvedStyles:o2({theme:a,styles:r,props:n,stylesCtx:o||void 0})}}const rPe={always:"mantine-focus-always",auto:"mantine-focus-auto",never:"mantine-focus-never"};function nPe({theme:e,options:r,unstyled:n}){return hs(r?.focusable&&!n&&(e.focusClassName||rPe[e.focusRing]),r?.active&&!n&&e.activeClassName)}function oPe({selector:e,stylesCtx:r,options:n,props:o,theme:a}){return n2({theme:a,classNames:n?.classNames,props:n?.props||o,stylesCtx:r})[e]}function qU({selector:e,stylesCtx:r,theme:n,classNames:o,props:a}){return n2({theme:n,classNames:o,props:a,stylesCtx:r})[e]}function aPe({rootSelector:e,selector:r,className:n}){return e===r?n:void 0}function iPe({selector:e,classes:r,unstyled:n}){return n?void 0:r[e]}function sPe({themeName:e,classNamesPrefix:r,selector:n,withStaticClass:o}){return o===!1?[]:e.map(a=>`${r}-${a}-${n}`)}function lPe({themeName:e,theme:r,selector:n,props:o,stylesCtx:a}){return e.map(i=>n2({theme:r,classNames:r.components[i]?.classNames,props:o,stylesCtx:a})?.[n])}function cPe({options:e,classes:r,selector:n,unstyled:o}){return e?.variant&&!o?r[`${n}--${e.variant}`]:void 0}function dPe({theme:e,options:r,themeName:n,selector:o,classNamesPrefix:a,classNames:i,classes:s,unstyled:l,className:c,rootSelector:d,props:u,stylesCtx:h,withStaticClasses:f,headless:g,transformedStyles:b}){return hs(nPe({theme:e,options:r,unstyled:l||g}),lPe({theme:e,themeName:n,selector:o,props:u,stylesCtx:h}),cPe({options:r,classes:s,selector:o,unstyled:l}),qU({selector:o,stylesCtx:h,theme:e,classNames:i,props:u}),qU({selector:o,stylesCtx:h,theme:e,classNames:b,props:u}),oPe({selector:o,stylesCtx:h,options:r,props:u,theme:e}),aPe({rootSelector:d,selector:o,className:c}),iPe({selector:o,classes:s,unstyled:l||g}),f&&!g&&sPe({themeName:n,classNamesPrefix:a,selector:o,withStaticClass:r?.withStaticClass}),r?.className)}function uPe({theme:e,themeName:r,props:n,stylesCtx:o,selector:a}){return r.map(i=>o2({theme:e,styles:e.components[i]?.styles,props:n,stylesCtx:o})[a]).reduce((i,s)=>({...i,...s}),{})}function l9({style:e,theme:r}){return Array.isArray(e)?[...e].reduce((n,o)=>({...n,...l9({style:o,theme:r})}),{}):typeof e=="function"?e(r):e??{}}function pPe(e){return e.reduce((r,n)=>(n&&Object.keys(n).forEach(o=>{r[o]={...r[o],...Uf(n[o])}}),r),{})}function hPe({vars:e,varsResolver:r,theme:n,props:o,stylesCtx:a,selector:i,themeName:s,headless:l}){return pPe([l?{}:r?.(n,o,a),...s.map(c=>n.components?.[c]?.vars?.(n,o,a)),e?.(n,o,a)])?.[i]}function fPe({theme:e,themeName:r,selector:n,options:o,props:a,stylesCtx:i,rootSelector:s,styles:l,style:c,vars:d,varsResolver:u,headless:h,withStylesTransform:f}){return{...!f&&uPe({theme:e,themeName:r,props:a,stylesCtx:i,selector:n}),...!f&&o2({theme:e,styles:l,props:a,stylesCtx:i})[n],...!f&&o2({theme:e,styles:o?.styles,props:o?.props||a,stylesCtx:i})[n],...hPe({theme:e,props:a,stylesCtx:i,vars:d,varsResolver:u,selector:n,themeName:r,headless:h}),...s===n?l9({style:c,theme:e}):null,...l9({style:o?.style,theme:e})}}function mPe({props:e,stylesCtx:r,themeName:n}){const o=vo(),a=z$e()?.();return{getTransformedStyles:i=>a?[...i.map(s=>a(s,{props:e,theme:o,ctx:r})),...n.map(s=>a(o.components[s]?.styles,{props:e,theme:o,ctx:r}))].filter(Boolean):[],withStylesTransform:!!a}}function Dt({name:e,classes:r,props:n,stylesCtx:o,className:a,style:i,rootSelector:s="root",unstyled:l,classNames:c,styles:d,vars:u,varsResolver:h,attributes:f}){const g=vo(),b=D$e(),x=$$e(),w=P$e(),k=(Array.isArray(e)?e:[e]).filter(T=>T),{withStylesTransform:C,getTransformedStyles:_}=mPe({props:n,stylesCtx:o,themeName:k});return(T,A)=>({className:dPe({theme:g,options:A,themeName:k,selector:T,classNamesPrefix:b,classNames:c,classes:r,unstyled:l,className:a,rootSelector:s,props:n,stylesCtx:o,withStaticClasses:x,headless:w,transformedStyles:_([A?.styles,d])}),style:fPe({theme:g,themeName:k,selector:T,options:A,props:n,stylesCtx:o,rootSelector:s,styles:d,style:i,vars:u,varsResolver:h,headless:w,withStylesTransform:C}),...f?.[T]})}function gPe(e,r){return typeof e=="boolean"?e:r.autoContrast}function UU(e){const r=document.createElement("style");return r.setAttribute("data-mantine-styles","inline"),r.innerHTML="*, *::before, *::after {transition: none !important;}",r.setAttribute("data-mantine-disable-transition","true"),e&&r.setAttribute("nonce",e),document.head.appendChild(r),()=>document.querySelectorAll("[data-mantine-disable-transition]").forEach(n=>n.remove())}function yPe({keepTransitions:e}={}){const r=E.useRef(fU),n=E.useRef(-1),o=E.useContext(a2),a=yp(),i=E.useRef(a?.());if(!o)throw new Error("[@mantine/core] MantineProvider was not found in tree");const s=h=>{o.setColorScheme(h),r.current=e?()=>{}:UU(i.current),window.clearTimeout(n.current),n.current=window.setTimeout(()=>{r.current?.()},10)},l=()=>{o.clearColorScheme(),r.current=e?()=>{}:UU(i.current),window.clearTimeout(n.current),n.current=window.setTimeout(()=>{r.current?.()},10)},c=vU("light",{getInitialValueInEffect:!1}),d=o.colorScheme==="auto"?c:o.colorScheme,u=E.useCallback(()=>s(d==="light"?"dark":"light"),[s,d]);return E.useEffect(()=>()=>{r.current?.(),window.clearTimeout(n.current)},[]),{colorScheme:o.colorScheme,setColorScheme:s,clearColorScheme:l,toggleColorScheme:u}}function He(e,r,n){const o=vo(),a=o.components[e]?.defaultProps,i=typeof a=="function"?a(o):a;return{...r,...i,...Uf(n)}}function c9(e){return zo(e).reduce((r,n)=>e[n]!==void 0?`${r}${IDe(n)}:${e[n]};`:r,"").trim()}function bPe({selector:e,styles:r,media:n,container:o}){const a=r?c9(r):"",i=Array.isArray(n)?n.map(l=>`@media${l.query}{${e}{${c9(l.styles)}}}`):[],s=Array.isArray(o)?o.map(l=>`@container ${l.query}{${e}{${c9(l.styles)}}}`):[];return`${a?`${e}{${a}}`:""}${i.join("")}${s.join("")}`.trim()}function c2(e){const r=yp();return y.jsx("style",{"data-mantine-styles":"inline",nonce:r?.(),dangerouslySetInnerHTML:{__html:bPe(e)}})}function WU(e){const{m:r,mx:n,my:o,mt:a,mb:i,ml:s,mr:l,me:c,ms:d,p:u,px:h,py:f,pt:g,pb:b,pl:x,pr:w,pe:k,ps:C,bd:_,bdrs:T,bg:A,c:R,opacity:D,ff:N,fz:P,fw:O,lts:F,ta:L,lh:U,fs:M,tt:V,td:I,w:H,miw:q,maw:Z,h:W,mih:G,mah:K,bgsz:j,bgp:Y,bgr:Q,bga:J,pos:ie,top:ne,left:re,bottom:ge,right:De,inset:he,display:me,flex:Te,hiddenFrom:Ie,visibleFrom:Ze,lightHidden:rt,darkHidden:Rt,sx:Qe,...Mt}=e;return{styleProps:Uf({m:r,mx:n,my:o,mt:a,mb:i,ml:s,mr:l,me:c,ms:d,p:u,px:h,py:f,pt:g,pb:b,pl:x,pr:w,pe:k,ps:C,bd:_,bg:A,c:R,opacity:D,ff:N,fz:P,fw:O,lts:F,ta:L,lh:U,fs:M,tt:V,td:I,w:H,miw:q,maw:Z,h:W,mih:G,mah:K,bgsz:j,bgp:Y,bgr:Q,bga:J,pos:ie,top:ne,left:re,bottom:ge,right:De,inset:he,display:me,flex:Te,bdrs:T,hiddenFrom:Ie,visibleFrom:Ze,lightHidden:rt,darkHidden:Rt,sx:Qe}),rest:Mt}}const vPe={m:{type:"spacing",property:"margin"},mt:{type:"spacing",property:"marginTop"},mb:{type:"spacing",property:"marginBottom"},ml:{type:"spacing",property:"marginLeft"},mr:{type:"spacing",property:"marginRight"},ms:{type:"spacing",property:"marginInlineStart"},me:{type:"spacing",property:"marginInlineEnd"},mx:{type:"spacing",property:"marginInline"},my:{type:"spacing",property:"marginBlock"},p:{type:"spacing",property:"padding"},pt:{type:"spacing",property:"paddingTop"},pb:{type:"spacing",property:"paddingBottom"},pl:{type:"spacing",property:"paddingLeft"},pr:{type:"spacing",property:"paddingRight"},ps:{type:"spacing",property:"paddingInlineStart"},pe:{type:"spacing",property:"paddingInlineEnd"},px:{type:"spacing",property:"paddingInline"},py:{type:"spacing",property:"paddingBlock"},bd:{type:"border",property:"border"},bdrs:{type:"radius",property:"borderRadius"},bg:{type:"color",property:"background"},c:{type:"textColor",property:"color"},opacity:{type:"identity",property:"opacity"},ff:{type:"fontFamily",property:"fontFamily"},fz:{type:"fontSize",property:"fontSize"},fw:{type:"identity",property:"fontWeight"},lts:{type:"size",property:"letterSpacing"},ta:{type:"identity",property:"textAlign"},lh:{type:"lineHeight",property:"lineHeight"},fs:{type:"identity",property:"fontStyle"},tt:{type:"identity",property:"textTransform"},td:{type:"identity",property:"textDecoration"},w:{type:"spacing",property:"width"},miw:{type:"spacing",property:"minWidth"},maw:{type:"spacing",property:"maxWidth"},h:{type:"spacing",property:"height"},mih:{type:"spacing",property:"minHeight"},mah:{type:"spacing",property:"maxHeight"},bgsz:{type:"size",property:"backgroundSize"},bgp:{type:"identity",property:"backgroundPosition"},bgr:{type:"identity",property:"backgroundRepeat"},bga:{type:"identity",property:"backgroundAttachment"},pos:{type:"identity",property:"position"},top:{type:"size",property:"top"},left:{type:"size",property:"left"},bottom:{type:"size",property:"bottom"},right:{type:"size",property:"right"},inset:{type:"size",property:"inset"},display:{type:"identity",property:"display"},flex:{type:"identity",property:"flex"}};function d9(e,r){const n=Ad({color:e,theme:r});return n.color==="dimmed"?"var(--mantine-color-dimmed)":n.color==="bright"?"var(--mantine-color-bright)":n.variable?`var(${n.variable})`:n.color}function xPe(e,r){const n=Ad({color:e,theme:r});return n.isThemeColor&&n.shade===void 0?`var(--mantine-color-${n.color}-text)`:d9(e,r)}function wPe(e,r){if(typeof e=="number")return Pe(e);if(typeof e=="string"){const[n,o,...a]=e.split(" ").filter(s=>s.trim()!=="");let i=`${Pe(n)}`;return o&&(i+=` ${o}`),a.length>0&&(i+=` ${d9(a.join(" "),r)}`),i.trim()}return e}const YU={text:"var(--mantine-font-family)",mono:"var(--mantine-font-family-monospace)",monospace:"var(--mantine-font-family-monospace)",heading:"var(--mantine-font-family-headings)",headings:"var(--mantine-font-family-headings)"};function kPe(e){return typeof e=="string"&&e in YU?YU[e]:e}const _Pe=["h1","h2","h3","h4","h5","h6"];function EPe(e,r){return typeof e=="string"&&e in r.fontSizes?`var(--mantine-font-size-${e})`:typeof e=="string"&&_Pe.includes(e)?`var(--mantine-${e}-font-size)`:typeof e=="number"||typeof e=="string"?Pe(e):e}function SPe(e){return e}const CPe=["h1","h2","h3","h4","h5","h6"];function TPe(e,r){return typeof e=="string"&&e in r.lineHeights?`var(--mantine-line-height-${e})`:typeof e=="string"&&CPe.includes(e)?`var(--mantine-${e}-line-height)`:e}function APe(e,r){return typeof e=="string"&&e in r.radius?`var(--mantine-radius-${e})`:typeof e=="number"||typeof e=="string"?Pe(e):e}function RPe(e){return typeof e=="number"?Pe(e):e}function NPe(e,r){if(typeof e=="number")return Pe(e);if(typeof e=="string"){const n=e.replace("-","");if(!(n in r.spacing))return Pe(e);const o=`--mantine-spacing-${n}`;return e.startsWith("-")?`calc(var(${o}) * -1)`:`var(${o})`}return e}const u9={color:d9,textColor:xPe,fontSize:EPe,spacing:NPe,radius:APe,identity:SPe,size:RPe,lineHeight:TPe,fontFamily:kPe,border:wPe};function GU(e){return e.replace("(min-width: ","").replace("em)","")}function DPe({media:e,...r}){const n=Object.keys(e).sort((o,a)=>Number(GU(o))-Number(GU(a))).map(o=>({query:o,styles:e[o]}));return{...r,media:n}}function $Pe(e){if(typeof e!="object"||e===null)return!1;const r=Object.keys(e);return!(r.length===1&&r[0]==="base")}function PPe(e){return typeof e=="object"&&e!==null?"base"in e?e.base:void 0:e}function MPe(e){return typeof e=="object"&&e!==null?zo(e).filter(r=>r!=="base"):[]}function zPe(e,r){return typeof e=="object"&&e!==null&&r in e?e[r]:e}function XU({styleProps:e,data:r,theme:n}){return DPe(zo(e).reduce((o,a)=>{if(a==="hiddenFrom"||a==="visibleFrom"||a==="sx")return o;const i=r[a],s=Array.isArray(i.property)?i.property:[i.property],l=PPe(e[a]);if(!$Pe(e[a]))return s.forEach(d=>{o.inlineStyles[d]=u9[i.type](l,n)}),o;o.hasResponsiveStyles=!0;const c=MPe(e[a]);return s.forEach(d=>{l!=null&&(o.styles[d]=u9[i.type](l,n)),c.forEach(u=>{const h=`(min-width: ${n.breakpoints[u]})`;o.media[h]={...o.media[h],[d]:u9[i.type](zPe(e[a],u),n)}})}),o},{hasResponsiveStyles:!1,styles:{},inlineStyles:{},media:{}}))}function d2(){return`__m__-${E.useId().replace(/[:«»]/g,"")}`}function p9(e,r){return Array.isArray(e)?[...e].reduce((n,o)=>({...n,...p9(o,r)}),{}):typeof e=="function"?e(r):e??{}}function KU(e){return e.startsWith("data-")?e:`data-${e}`}function IPe(e){return Object.keys(e).reduce((r,n)=>{const o=e[n];return o===void 0||o===""||o===!1||o===null||(r[KU(n)]=e[n]),r},{})}function ZU(e){return e?typeof e=="string"?{[KU(e)]:!0}:Array.isArray(e)?[...e].reduce((r,n)=>({...r,...ZU(n)}),{}):IPe(e):null}function h9(e,r){return Array.isArray(e)?[...e].reduce((n,o)=>({...n,...h9(o,r)}),{}):typeof e=="function"?e(r):e??{}}function OPe({theme:e,style:r,vars:n,styleProps:o}){const a=h9(r,e),i=h9(n,e);return{...a,...i,...o}}const QU=E.forwardRef(({component:e,style:r,__vars:n,className:o,variant:a,mod:i,size:s,hiddenFrom:l,visibleFrom:c,lightHidden:d,darkHidden:u,renderRoot:h,__size:f,...g},b)=>{const x=vo(),w=e||"div",{styleProps:k,rest:C}=WU(g),_=M$e()?.()?.(k.sx),T=d2(),A=XU({styleProps:k,theme:x,data:vPe}),R={ref:b,style:OPe({theme:x,style:r,vars:n,styleProps:A.inlineStyles}),className:hs(o,_,{[T]:A.hasResponsiveStyles,"mantine-light-hidden":d,"mantine-dark-hidden":u,[`mantine-hidden-from-${l}`]:l,[`mantine-visible-from-${c}`]:c}),"data-variant":a,"data-size":pU(s)?void 0:s||void 0,size:f,...ZU(i),...C};return y.jsxs(y.Fragment,{children:[A.hasResponsiveStyles&&y.jsx(c2,{selector:`.${T}`,styles:A.styles,media:A.media}),typeof h=="function"?h(R):y.jsx(w,{...R})]})});QU.displayName="@mantine/core/Box";const Re=QU;function JU(e){return e}function jPe(e){const r=e;return n=>{const o=E.forwardRef((a,i)=>y.jsx(r,{...n,...a,ref:i}));return o.extend=r.extend,o.displayName=`WithProps(${r.displayName})`,o}}function ht(e){const r=E.forwardRef(e);return r.extend=JU,r.withProps=n=>{const o=E.forwardRef((a,i)=>y.jsx(r,{...n,...a,ref:i}));return o.extend=r.extend,o.displayName=`WithProps(${r.displayName})`,o},r}function so(e){const r=E.forwardRef(e);return r.withProps=n=>{const o=E.forwardRef((a,i)=>y.jsx(r,{...n,...a,ref:i}));return o.extend=r.extend,o.displayName=`WithProps(${r.displayName})`,o},r.extend=JU,r}const LPe=E.createContext({dir:"ltr",toggleDirection:()=>{},setDirection:()=>{}});function Rd(){return E.useContext(LPe)}function BPe(e){if(!e||typeof e=="string")return 0;const r=e/36;return Math.round((4+15*r**.25+r/5)*10)}function f9(e){return e?.current?e.current.scrollHeight:"auto"}const u2=typeof window<"u"&&window.requestAnimationFrame,eW=0,FPe=e=>({height:0,overflow:"hidden",...e?{}:{display:"none"}});function HPe({transitionDuration:e,transitionTimingFunction:r="ease",onTransitionEnd:n=()=>{},opened:o,keepMounted:a=!1}){const i=E.useRef(null),s=FPe(a),[l,c]=E.useState(o?{}:s),d=b=>{Ki.flushSync(()=>c(b))},u=b=>{d(x=>({...x,...b}))};function h(b){const x=e||BPe(b);return{transition:`height ${x}ms ${r}, opacity ${x}ms ${r}`}}gp(()=>{typeof u2=="function"&&u2(o?()=>{u({willChange:"height",display:"block",overflow:"hidden"}),u2(()=>{const b=f9(i);u({...h(b),height:b})})}:()=>{const b=f9(i);u({...h(b),willChange:"height",height:b}),u2(()=>u({height:eW,overflow:"hidden"}))})},[o]);const f=b=>{if(!(b.target!==i.current||b.propertyName!=="height"))if(o){const x=f9(i);x===l.height?d({}):u({height:x}),n()}else l.height===eW&&(d(s),n())};function g({style:b={},refKey:x="ref",...w}={}){const k=w[x],C={"aria-hidden":!o,...w,[x]:SU(i,k),onTransitionEnd:f,style:{boxSizing:"border-box",...b,...l}};return un.version.startsWith("18")?o||(C.inert=""):C.inert=!o,C}return g}const VPe={transitionDuration:200,transitionTimingFunction:"ease",animateOpacity:!0},tW=ht((e,r)=>{const{children:n,in:o,transitionDuration:a,transitionTimingFunction:i,style:s,onTransitionEnd:l,animateOpacity:c,keepMounted:d,...u}=He("Collapse",VPe,e),h=vo(),f=TU(),g=h.respectReducedMotion&&f?0:a,b=HPe({opened:o,transitionDuration:g,transitionTimingFunction:i,onTransitionEnd:l,keepMounted:d});return g===0?o?y.jsx(Re,{...u,children:n}):null:y.jsx(Re,{...b({style:{opacity:o||!c?1:0,transition:c?`opacity ${g}ms ${i}`:"none",...p9(s,h)},ref:r,...u}),children:n})});tW.displayName="@mantine/core/Collapse";function p2(){return typeof window<"u"}function Qf(e){return rW(e)?(e.nodeName||"").toLowerCase():"#document"}function ua(e){var r;return(e==null||(r=e.ownerDocument)==null?void 0:r.defaultView)||window}function fl(e){var r;return(r=(rW(e)?e.ownerDocument:e.document)||window.document)==null?void 0:r.documentElement}function rW(e){return p2()?e instanceof Node||e instanceof ua(e).Node:!1}function Vr(e){return p2()?e instanceof Element||e instanceof ua(e).Element:!1}function Oa(e){return p2()?e instanceof HTMLElement||e instanceof ua(e).HTMLElement:!1}function m9(e){return!p2()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ua(e).ShadowRoot}const qPe=new Set(["inline","contents"]);function z0(e){const{overflow:r,overflowX:n,overflowY:o,display:a}=mi(e);return/auto|scroll|overlay|hidden|clip/.test(r+o+n)&&!qPe.has(a)}const UPe=new Set(["table","td","th"]);function WPe(e){return UPe.has(Qf(e))}const YPe=[":popover-open",":modal"];function h2(e){return YPe.some(r=>{try{return e.matches(r)}catch{return!1}})}const GPe=["transform","translate","scale","rotate","perspective"],XPe=["transform","translate","scale","rotate","perspective","filter"],KPe=["paint","layout","strict","content"];function g9(e){const r=f2(),n=Vr(e)?mi(e):e;return GPe.some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!r&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!r&&(n.filter?n.filter!=="none":!1)||XPe.some(o=>(n.willChange||"").includes(o))||KPe.some(o=>(n.contain||"").includes(o))}function ZPe(e){let r=pc(e);for(;Oa(r)&&!uc(r);){if(g9(r))return r;if(h2(r))return null;r=pc(r)}return null}function f2(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const QPe=new Set(["html","body","#document"]);function uc(e){return QPe.has(Qf(e))}function mi(e){return ua(e).getComputedStyle(e)}function m2(e){return Vr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function pc(e){if(Qf(e)==="html")return e;const r=e.assignedSlot||e.parentNode||m9(e)&&e.host||fl(e);return m9(r)?r.host:r}function nW(e){const r=pc(e);return uc(r)?e.ownerDocument?e.ownerDocument.body:e.body:Oa(r)&&z0(r)?r:nW(r)}function hc(e,r,n){var o;r===void 0&&(r=[]),n===void 0&&(n=!0);const a=nW(e),i=a===((o=e.ownerDocument)==null?void 0:o.body),s=ua(a);if(i){const l=y9(s);return r.concat(s,s.visualViewport||[],z0(a)?a:[],l&&n?hc(l):[])}return r.concat(a,hc(a,[],n))}function y9(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const oW=["top","right","bottom","left"],aW=["start","end"],iW=oW.reduce((e,r)=>e.concat(r,r+"-"+aW[0],r+"-"+aW[1]),[]),fs=Math.min,Oo=Math.max,g2=Math.round,y2=Math.floor,ml=e=>({x:e,y:e}),JPe={left:"right",right:"left",bottom:"top",top:"bottom"},eMe={start:"end",end:"start"};function b9(e,r,n){return Oo(e,fs(r,n))}function ms(e,r){return typeof e=="function"?e(r):e}function ja(e){return e.split("-")[0]}function gs(e){return e.split("-")[1]}function v9(e){return e==="x"?"y":"x"}function x9(e){return e==="y"?"height":"width"}const tMe=new Set(["top","bottom"]);function ys(e){return tMe.has(ja(e))?"y":"x"}function w9(e){return v9(ys(e))}function sW(e,r,n){n===void 0&&(n=!1);const o=gs(e),a=w9(e),i=x9(a);let s=a==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return r.reference[i]>r.floating[i]&&(s=v2(s)),[s,v2(s)]}function rMe(e){const r=v2(e);return[b2(e),r,b2(r)]}function b2(e){return e.replace(/start|end/g,r=>eMe[r])}const lW=["left","right"],cW=["right","left"],nMe=["top","bottom"],oMe=["bottom","top"];function aMe(e,r,n){switch(e){case"top":case"bottom":return n?r?cW:lW:r?lW:cW;case"left":case"right":return r?nMe:oMe;default:return[]}}function iMe(e,r,n,o){const a=gs(e);let i=aMe(ja(e),n==="start",o);return a&&(i=i.map(s=>s+"-"+a),r&&(i=i.concat(i.map(b2)))),i}function v2(e){return e.replace(/left|right|bottom|top/g,r=>JPe[r])}function sMe(e){return{top:0,right:0,bottom:0,left:0,...e}}function k9(e){return typeof e!="number"?sMe(e):{top:e,right:e,bottom:e,left:e}}function Jf(e){const{x:r,y:n,width:o,height:a}=e;return{width:o,height:a,top:n,left:r,right:r+o,bottom:n+a,x:r,y:n}}function lMe(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function cMe(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(r=>{let{brand:n,version:o}=r;return n+"/"+o}).join(" "):navigator.userAgent}function dMe(){return/apple/i.test(navigator.vendor)}function uMe(){return lMe().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function pMe(){return cMe().includes("jsdom/")}const dW="data-floating-ui-focusable",hMe="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function uW(e){let r=e.activeElement;for(;((n=r)==null||(n=n.shadowRoot)==null?void 0:n.activeElement)!=null;){var n;r=r.shadowRoot.activeElement}return r}function I0(e,r){if(!e||!r)return!1;const n=r.getRootNode==null?void 0:r.getRootNode();if(e.contains(r))return!0;if(n&&m9(n)){let o=r;for(;o;){if(e===o)return!0;o=o.parentNode||o.host}}return!1}function em(e){return"composedPath"in e?e.composedPath()[0]:e.target}function _9(e,r){if(r==null)return!1;if("composedPath"in e)return e.composedPath().includes(r);const n=e;return n.target!=null&&r.contains(n.target)}function fMe(e){return e.matches("html,body")}function bp(e){return e?.ownerDocument||document}function mMe(e){return Oa(e)&&e.matches(hMe)}function gMe(e){if(!e||pMe())return!0;try{return e.matches(":focus-visible")}catch{return!0}}function yMe(e){return e?e.hasAttribute(dW)?e:e.querySelector("["+dW+"]")||e:null}function x2(e,r,n){return n===void 0&&(n=!0),e.filter(o=>{var a;return o.parentId===r&&(!n||((a=o.context)==null?void 0:a.open))}).flatMap(o=>[o,...x2(e,o.id,n)])}function bMe(e){return"nativeEvent"in e}function E9(e,r){const n=["mouse","pen"];return n.push("",void 0),n.includes(e)}var vMe=typeof document<"u",xMe=function(){},gl=vMe?E.useLayoutEffect:xMe;const wMe={...Hv};function w2(e){const r=E.useRef(e);return gl(()=>{r.current=e}),r}const kMe=wMe.useInsertionEffect,_Me=kMe||(e=>e());function yl(e){const r=E.useRef(()=>{});return _Me(()=>{r.current=e}),E.useCallback(function(){for(var n=arguments.length,o=new Array(n),a=0;a{const{placement:o="bottom",strategy:a="absolute",middleware:i=[],platform:s}=n,l=i.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(r));let d=await s.getElementRects({reference:e,floating:r,strategy:a}),{x:u,y:h}=pW(d,o,c),f=o,g={},b=0;for(let x=0;x({name:"arrow",options:e,async fn(r){const{x:n,y:o,placement:a,rects:i,platform:s,elements:l,middlewareData:c}=r,{element:d,padding:u=0}=ms(e,r)||{};if(d==null)return{};const h=k9(u),f={x:n,y:o},g=w9(a),b=x9(g),x=await s.getDimensions(d),w=g==="y",k=w?"top":"left",C=w?"bottom":"right",_=w?"clientHeight":"clientWidth",T=i.reference[b]+i.reference[g]-f[g]-i.floating[b],A=f[g]-i.reference[g],R=await(s.getOffsetParent==null?void 0:s.getOffsetParent(d));let D=R?R[_]:0;(!D||!await(s.isElement==null?void 0:s.isElement(R)))&&(D=l.floating[_]||i.floating[b]);const N=T/2-A/2,P=D/2-x[b]/2-1,O=fs(h[k],P),F=fs(h[C],P),L=O,U=D-x[b]-F,M=D/2-x[b]/2+N,V=b9(L,M,U),I=!c.arrow&&gs(a)!=null&&M!==V&&i.reference[b]/2-(Mgs(o)===e),...n.filter(o=>gs(o)!==e)]:n.filter(o=>ja(o)===o)).filter(o=>e?gs(o)===e||(r?b2(o)!==o:!1):!0)}const TMe=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(r){var n,o,a;const{rects:i,middlewareData:s,placement:l,platform:c,elements:d}=r,{crossAxis:u=!1,alignment:h,allowedPlacements:f=iW,autoAlignment:g=!0,...b}=ms(e,r),x=h!==void 0||f===iW?CMe(h||null,g,f):f,w=await tm(r,b),k=((n=s.autoPlacement)==null?void 0:n.index)||0,C=x[k];if(C==null)return{};const _=sW(C,i,await(c.isRTL==null?void 0:c.isRTL(d.floating)));if(l!==C)return{reset:{placement:x[0]}};const T=[w[ja(C)],w[_[0]],w[_[1]]],A=[...((o=s.autoPlacement)==null?void 0:o.overflows)||[],{placement:C,overflows:T}],R=x[k+1];if(R)return{data:{index:k+1,overflows:A},reset:{placement:R}};const D=A.map(P=>{const O=gs(P.placement);return[P.placement,O&&u?P.overflows.slice(0,2).reduce((F,L)=>F+L,0):P.overflows[0],P.overflows]}).sort((P,O)=>P[1]-O[1]),N=((a=D.filter(P=>P[2].slice(0,gs(P[0])?2:3).every(O=>O<=0))[0])==null?void 0:a[0])||D[0][0];return N!==l?{data:{index:k+1,overflows:A},reset:{placement:N}}:{}}}},AMe=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(r){var n,o;const{placement:a,middlewareData:i,rects:s,initialPlacement:l,platform:c,elements:d}=r,{mainAxis:u=!0,crossAxis:h=!0,fallbackPlacements:f,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:x=!0,...w}=ms(e,r);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const k=ja(a),C=ys(l),_=ja(l)===l,T=await(c.isRTL==null?void 0:c.isRTL(d.floating)),A=f||(_||!x?[v2(l)]:rMe(l)),R=b!=="none";!f&&R&&A.push(...iMe(l,x,b,T));const D=[l,...A],N=await tm(r,w),P=[];let O=((o=i.flip)==null?void 0:o.overflows)||[];if(u&&P.push(N[k]),h){const M=sW(a,s,T);P.push(N[M[0]],N[M[1]])}if(O=[...O,{placement:a,overflows:P}],!P.every(M=>M<=0)){var F,L;const M=(((F=i.flip)==null?void 0:F.index)||0)+1,V=D[M];if(V&&(!(h==="alignment"&&C!==ys(V))||O.every(H=>ys(H.placement)===C?H.overflows[0]>0:!0)))return{data:{index:M,overflows:O},reset:{placement:V}};let I=(L=O.filter(H=>H.overflows[0]<=0).sort((H,q)=>H.overflows[1]-q.overflows[1])[0])==null?void 0:L.placement;if(!I)switch(g){case"bestFit":{var U;const H=(U=O.filter(q=>{if(R){const Z=ys(q.placement);return Z===C||Z==="y"}return!0}).map(q=>[q.placement,q.overflows.filter(Z=>Z>0).reduce((Z,W)=>Z+W,0)]).sort((q,Z)=>q[1]-Z[1])[0])==null?void 0:U[0];H&&(I=H);break}case"initialPlacement":I=l;break}if(a!==I)return{reset:{placement:I}}}return{}}}};function hW(e,r){return{top:e.top-r.height,right:e.right-r.width,bottom:e.bottom-r.height,left:e.left-r.width}}function fW(e){return oW.some(r=>e[r]>=0)}const RMe=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(r){const{rects:n}=r,{strategy:o="referenceHidden",...a}=ms(e,r);switch(o){case"referenceHidden":{const i=await tm(r,{...a,elementContext:"reference"}),s=hW(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:fW(s)}}}case"escaped":{const i=await tm(r,{...a,altBoundary:!0}),s=hW(i,n.floating);return{data:{escapedOffsets:s,escaped:fW(s)}}}default:return{}}}}};function mW(e){const r=fs(...e.map(i=>i.left)),n=fs(...e.map(i=>i.top)),o=Oo(...e.map(i=>i.right)),a=Oo(...e.map(i=>i.bottom));return{x:r,y:n,width:o-r,height:a-n}}function NMe(e){const r=e.slice().sort((a,i)=>a.y-i.y),n=[];let o=null;for(let a=0;ao.height/2?n.push([i]):n[n.length-1].push(i),o=i}return n.map(a=>Jf(mW(a)))}const DMe=function(e){return e===void 0&&(e={}),{name:"inline",options:e,async fn(r){const{placement:n,elements:o,rects:a,platform:i,strategy:s}=r,{padding:l=2,x:c,y:d}=ms(e,r),u=Array.from(await(i.getClientRects==null?void 0:i.getClientRects(o.reference))||[]),h=NMe(u),f=Jf(mW(u)),g=k9(l);function b(){if(h.length===2&&h[0].left>h[1].right&&c!=null&&d!=null)return h.find(w=>c>w.left-g.left&&cw.top-g.top&&d=2){if(ys(n)==="y"){const O=h[0],F=h[h.length-1],L=ja(n)==="top",U=O.top,M=F.bottom,V=L?O.left:F.left,I=L?O.right:F.right,H=I-V,q=M-U;return{top:U,bottom:M,left:V,right:I,width:H,height:q,x:V,y:U}}const w=ja(n)==="left",k=Oo(...h.map(O=>O.right)),C=fs(...h.map(O=>O.left)),_=h.filter(O=>w?O.left===C:O.right===k),T=_[0].top,A=_[_.length-1].bottom,R=C,D=k,N=D-R,P=A-T;return{top:T,bottom:A,left:R,right:D,width:N,height:P,x:R,y:T}}return f}const x=await i.getElementRects({reference:{getBoundingClientRect:b},floating:o.floating,strategy:s});return a.reference.x!==x.reference.x||a.reference.y!==x.reference.y||a.reference.width!==x.reference.width||a.reference.height!==x.reference.height?{reset:{rects:x}}:{}}}},gW=new Set(["left","top"]);async function $Me(e,r){const{placement:n,platform:o,elements:a}=e,i=await(o.isRTL==null?void 0:o.isRTL(a.floating)),s=ja(n),l=gs(n),c=ys(n)==="y",d=gW.has(s)?-1:1,u=i&&c?-1:1,h=ms(r,e);let{mainAxis:f,crossAxis:g,alignmentAxis:b}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return l&&typeof b=="number"&&(g=l==="end"?b*-1:b),c?{x:g*u,y:f*d}:{x:f*d,y:g*u}}const PMe=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(r){var n,o;const{x:a,y:i,placement:s,middlewareData:l}=r,c=await $Me(r,e);return s===((n=l.offset)==null?void 0:n.placement)&&(o=l.arrow)!=null&&o.alignmentOffset?{}:{x:a+c.x,y:i+c.y,data:{...c,placement:s}}}}},MMe=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(r){const{x:n,y:o,placement:a}=r,{mainAxis:i=!0,crossAxis:s=!1,limiter:l={fn:w=>{let{x:k,y:C}=w;return{x:k,y:C}}},...c}=ms(e,r),d={x:n,y:o},u=await tm(r,c),h=ys(ja(a)),f=v9(h);let g=d[f],b=d[h];if(i){const w=f==="y"?"top":"left",k=f==="y"?"bottom":"right",C=g+u[w],_=g-u[k];g=b9(C,g,_)}if(s){const w=h==="y"?"top":"left",k=h==="y"?"bottom":"right",C=b+u[w],_=b-u[k];b=b9(C,b,_)}const x=l.fn({...r,[f]:g,[h]:b});return{...x,data:{x:x.x-n,y:x.y-o,enabled:{[f]:i,[h]:s}}}}}},zMe=function(e){return e===void 0&&(e={}),{options:e,fn(r){const{x:n,y:o,placement:a,rects:i,middlewareData:s}=r,{offset:l=0,mainAxis:c=!0,crossAxis:d=!0}=ms(e,r),u={x:n,y:o},h=ys(a),f=v9(h);let g=u[f],b=u[h];const x=ms(l,r),w=typeof x=="number"?{mainAxis:x,crossAxis:0}:{mainAxis:0,crossAxis:0,...x};if(c){const _=f==="y"?"height":"width",T=i.reference[f]-i.floating[_]+w.mainAxis,A=i.reference[f]+i.reference[_]-w.mainAxis;gA&&(g=A)}if(d){var k,C;const _=f==="y"?"width":"height",T=gW.has(ja(a)),A=i.reference[h]-i.floating[_]+(T&&((k=s.offset)==null?void 0:k[h])||0)+(T?0:w.crossAxis),R=i.reference[h]+i.reference[_]+(T?0:((C=s.offset)==null?void 0:C[h])||0)-(T?w.crossAxis:0);bR&&(b=R)}return{[f]:g,[h]:b}}}},IMe=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(r){var n,o;const{placement:a,rects:i,platform:s,elements:l}=r,{apply:c=()=>{},...d}=ms(e,r),u=await tm(r,d),h=ja(a),f=gs(a),g=ys(a)==="y",{width:b,height:x}=i.floating;let w,k;h==="top"||h==="bottom"?(w=h,k=f===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(k=h,w=f==="end"?"top":"bottom");const C=x-u.top-u.bottom,_=b-u.left-u.right,T=fs(x-u[w],C),A=fs(b-u[k],_),R=!r.middlewareData.shift;let D=T,N=A;if((n=r.middlewareData.shift)!=null&&n.enabled.x&&(N=_),(o=r.middlewareData.shift)!=null&&o.enabled.y&&(D=C),R&&!f){const O=Oo(u.left,0),F=Oo(u.right,0),L=Oo(u.top,0),U=Oo(u.bottom,0);g?N=b-2*(O!==0||F!==0?O+F:Oo(u.left,u.right)):D=x-2*(L!==0||U!==0?L+U:Oo(u.top,u.bottom))}await c({...r,availableWidth:N,availableHeight:D});const P=await s.getDimensions(l.floating);return b!==P.width||x!==P.height?{reset:{rects:!0}}:{}}}};function yW(e){const r=mi(e);let n=parseFloat(r.width)||0,o=parseFloat(r.height)||0;const a=Oa(e),i=a?e.offsetWidth:n,s=a?e.offsetHeight:o,l=g2(n)!==i||g2(o)!==s;return l&&(n=i,o=s),{width:n,height:o,$:l}}function S9(e){return Vr(e)?e:e.contextElement}function rm(e){const r=S9(e);if(!Oa(r))return ml(1);const n=r.getBoundingClientRect(),{width:o,height:a,$:i}=yW(r);let s=(i?g2(n.width):n.width)/o,l=(i?g2(n.height):n.height)/a;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const OMe=ml(0);function bW(e){const r=ua(e);return!f2()||!r.visualViewport?OMe:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function jMe(e,r,n){return r===void 0&&(r=!1),!n||r&&n!==ua(e)?!1:r}function vp(e,r,n,o){r===void 0&&(r=!1),n===void 0&&(n=!1);const a=e.getBoundingClientRect(),i=S9(e);let s=ml(1);r&&(o?Vr(o)&&(s=rm(o)):s=rm(e));const l=jMe(i,n,o)?bW(i):ml(0);let c=(a.left+l.x)/s.x,d=(a.top+l.y)/s.y,u=a.width/s.x,h=a.height/s.y;if(i){const f=ua(i),g=o&&Vr(o)?ua(o):o;let b=f,x=y9(b);for(;x&&o&&g!==b;){const w=rm(x),k=x.getBoundingClientRect(),C=mi(x),_=k.left+(x.clientLeft+parseFloat(C.paddingLeft))*w.x,T=k.top+(x.clientTop+parseFloat(C.paddingTop))*w.y;c*=w.x,d*=w.y,u*=w.x,h*=w.y,c+=_,d+=T,b=ua(x),x=y9(b)}}return Jf({width:u,height:h,x:c,y:d})}function k2(e,r){const n=m2(e).scrollLeft;return r?r.left+n:vp(fl(e)).left+n}function vW(e,r){const n=e.getBoundingClientRect(),o=n.left+r.scrollLeft-k2(e,n),a=n.top+r.scrollTop;return{x:o,y:a}}function LMe(e){let{elements:r,rect:n,offsetParent:o,strategy:a}=e;const i=a==="fixed",s=fl(o),l=r?h2(r.floating):!1;if(o===s||l&&i)return n;let c={scrollLeft:0,scrollTop:0},d=ml(1);const u=ml(0),h=Oa(o);if((h||!h&&!i)&&((Qf(o)!=="body"||z0(s))&&(c=m2(o)),Oa(o))){const g=vp(o);d=rm(o),u.x=g.x+o.clientLeft,u.y=g.y+o.clientTop}const f=s&&!h&&!i?vW(s,c):ml(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-c.scrollLeft*d.x+u.x+f.x,y:n.y*d.y-c.scrollTop*d.y+u.y+f.y}}function BMe(e){return Array.from(e.getClientRects())}function FMe(e){const r=fl(e),n=m2(e),o=e.ownerDocument.body,a=Oo(r.scrollWidth,r.clientWidth,o.scrollWidth,o.clientWidth),i=Oo(r.scrollHeight,r.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+k2(e);const l=-n.scrollTop;return mi(o).direction==="rtl"&&(s+=Oo(r.clientWidth,o.clientWidth)-a),{width:a,height:i,x:s,y:l}}const xW=25;function HMe(e,r){const n=ua(e),o=fl(e),a=n.visualViewport;let i=o.clientWidth,s=o.clientHeight,l=0,c=0;if(a){i=a.width,s=a.height;const u=f2();(!u||u&&r==="fixed")&&(l=a.offsetLeft,c=a.offsetTop)}const d=k2(o);if(d<=0){const u=o.ownerDocument,h=u.body,f=getComputedStyle(h),g=u.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,b=Math.abs(o.clientWidth-h.clientWidth-g);b<=xW&&(i-=b)}else d<=xW&&(i+=d);return{width:i,height:s,x:l,y:c}}const VMe=new Set(["absolute","fixed"]);function qMe(e,r){const n=vp(e,!0,r==="fixed"),o=n.top+e.clientTop,a=n.left+e.clientLeft,i=Oa(e)?rm(e):ml(1),s=e.clientWidth*i.x,l=e.clientHeight*i.y,c=a*i.x,d=o*i.y;return{width:s,height:l,x:c,y:d}}function wW(e,r,n){let o;if(r==="viewport")o=HMe(e,n);else if(r==="document")o=FMe(fl(e));else if(Vr(r))o=qMe(r,n);else{const a=bW(e);o={x:r.x-a.x,y:r.y-a.y,width:r.width,height:r.height}}return Jf(o)}function kW(e,r){const n=pc(e);return n===r||!Vr(n)||uc(n)?!1:mi(n).position==="fixed"||kW(n,r)}function UMe(e,r){const n=r.get(e);if(n)return n;let o=hc(e,[],!1).filter(l=>Vr(l)&&Qf(l)!=="body"),a=null;const i=mi(e).position==="fixed";let s=i?pc(e):e;for(;Vr(s)&&!uc(s);){const l=mi(s),c=g9(s);!c&&l.position==="fixed"&&(a=null),(i?!c&&!a:!c&&l.position==="static"&&a&&VMe.has(a.position)||z0(s)&&!c&&kW(e,s))?o=o.filter(d=>d!==s):a=l,s=pc(s)}return r.set(e,o),o}function WMe(e){let{element:r,boundary:n,rootBoundary:o,strategy:a}=e;const i=[...n==="clippingAncestors"?h2(r)?[]:UMe(r,this._c):[].concat(n),o],s=i[0],l=i.reduce((c,d)=>{const u=wW(r,d,a);return c.top=Oo(u.top,c.top),c.right=fs(u.right,c.right),c.bottom=fs(u.bottom,c.bottom),c.left=Oo(u.left,c.left),c},wW(r,s,a));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function YMe(e){const{width:r,height:n}=yW(e);return{width:r,height:n}}function GMe(e,r,n){const o=Oa(r),a=fl(r),i=n==="fixed",s=vp(e,!0,i,r);let l={scrollLeft:0,scrollTop:0};const c=ml(0);function d(){c.x=k2(a)}if(o||!o&&!i)if((Qf(r)!=="body"||z0(a))&&(l=m2(r)),o){const g=vp(r,!0,i,r);c.x=g.x+r.clientLeft,c.y=g.y+r.clientTop}else a&&d();i&&!o&&a&&d();const u=a&&!o&&!i?vW(a,l):ml(0),h=s.left+l.scrollLeft-c.x-u.x,f=s.top+l.scrollTop-c.y-u.y;return{x:h,y:f,width:s.width,height:s.height}}function C9(e){return mi(e).position==="static"}function _W(e,r){if(!Oa(e)||mi(e).position==="fixed")return null;if(r)return r(e);let n=e.offsetParent;return fl(e)===n&&(n=n.ownerDocument.body),n}function EW(e,r){const n=ua(e);if(h2(e))return n;if(!Oa(e)){let a=pc(e);for(;a&&!uc(a);){if(Vr(a)&&!C9(a))return a;a=pc(a)}return n}let o=_W(e,r);for(;o&&WPe(o)&&C9(o);)o=_W(o,r);return o&&uc(o)&&C9(o)&&!g9(o)?n:o||ZPe(e)||n}const XMe=async function(e){const r=this.getOffsetParent||EW,n=this.getDimensions,o=await n(e.floating);return{reference:GMe(e.reference,await r(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function KMe(e){return mi(e).direction==="rtl"}const ZMe={convertOffsetParentRelativeRectToViewportRelativeRect:LMe,getDocumentElement:fl,getClippingRect:WMe,getOffsetParent:EW,getElementRects:XMe,getClientRects:BMe,getDimensions:YMe,getScale:rm,isElement:Vr,isRTL:KMe};function SW(e,r){return e.x===r.x&&e.y===r.y&&e.width===r.width&&e.height===r.height}function QMe(e,r){let n=null,o;const a=fl(e);function i(){var l;clearTimeout(o),(l=n)==null||l.disconnect(),n=null}function s(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),i();const d=e.getBoundingClientRect(),{left:u,top:h,width:f,height:g}=d;if(l||r(),!f||!g)return;const b=y2(h),x=y2(a.clientWidth-(u+f)),w=y2(a.clientHeight-(h+g)),k=y2(u),C={rootMargin:-b+"px "+-x+"px "+-w+"px "+-k+"px",threshold:Oo(0,fs(1,c))||1};let _=!0;function T(A){const R=A[0].intersectionRatio;if(R!==c){if(!_)return s();R?s(!1,R):o=setTimeout(()=>{s(!1,1e-7)},1e3)}R===1&&!SW(d,e.getBoundingClientRect())&&s(),_=!1}try{n=new IntersectionObserver(T,{...C,root:a.ownerDocument})}catch{n=new IntersectionObserver(T,C)}n.observe(e)}return s(!0),i}function _2(e,r,n,o){o===void 0&&(o={});const{ancestorScroll:a=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=o,d=S9(e),u=a||i?[...d?hc(d):[],...hc(r)]:[];u.forEach(k=>{a&&k.addEventListener("scroll",n,{passive:!0}),i&&k.addEventListener("resize",n)});const h=d&&l?QMe(d,n):null;let f=-1,g=null;s&&(g=new ResizeObserver(k=>{let[C]=k;C&&C.target===d&&g&&(g.unobserve(r),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var _;(_=g)==null||_.observe(r)})),n()}),d&&!c&&g.observe(d),g.observe(r));let b,x=c?vp(e):null;c&&w();function w(){const k=vp(e);x&&!SW(x,k)&&n(),x=k,b=requestAnimationFrame(w)}return n(),()=>{var k;u.forEach(C=>{a&&C.removeEventListener("scroll",n),i&&C.removeEventListener("resize",n)}),h?.(),(k=g)==null||k.disconnect(),g=null,c&&cancelAnimationFrame(b)}}const CW=PMe,JMe=TMe,eze=MMe,tze=AMe,TW=IMe,AW=RMe,RW=SMe,rze=DMe,nze=zMe,NW=(e,r,n)=>{const o=new Map,a={platform:ZMe,...n},i={...a.platform,_c:o};return EMe(e,r,{...a,platform:i})};var oze=typeof document<"u",aze=function(){},E2=oze?E.useLayoutEffect:aze;function S2(e,r){if(e===r)return!0;if(typeof e!=typeof r)return!1;if(typeof e=="function"&&e.toString()===r.toString())return!0;let n,o,a;if(e&&r&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==r.length)return!1;for(o=n;o--!==0;)if(!S2(e[o],r[o]))return!1;return!0}if(a=Object.keys(e),n=a.length,n!==Object.keys(r).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(r,a[o]))return!1;for(o=n;o--!==0;){const i=a[o];if(!(i==="_owner"&&e.$$typeof)&&!S2(e[i],r[i]))return!1}return!0}return e!==e&&r!==r}function DW(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function $W(e,r){const n=DW(e);return Math.round(r*n)/n}function T9(e){const r=E.useRef(e);return E2(()=>{r.current=e}),r}function ize(e){e===void 0&&(e={});const{placement:r="bottom",strategy:n="absolute",middleware:o=[],platform:a,elements:{reference:i,floating:s}={},transform:l=!0,whileElementsMounted:c,open:d}=e,[u,h]=E.useState({x:0,y:0,strategy:n,placement:r,middlewareData:{},isPositioned:!1}),[f,g]=E.useState(o);S2(f,o)||g(o);const[b,x]=E.useState(null),[w,k]=E.useState(null),C=E.useCallback(q=>{q!==R.current&&(R.current=q,x(q))},[]),_=E.useCallback(q=>{q!==D.current&&(D.current=q,k(q))},[]),T=i||b,A=s||w,R=E.useRef(null),D=E.useRef(null),N=E.useRef(u),P=c!=null,O=T9(c),F=T9(a),L=T9(d),U=E.useCallback(()=>{if(!R.current||!D.current)return;const q={placement:r,strategy:n,middleware:f};F.current&&(q.platform=F.current),NW(R.current,D.current,q).then(Z=>{const W={...Z,isPositioned:L.current!==!1};M.current&&!S2(N.current,W)&&(N.current=W,Ki.flushSync(()=>{h(W)}))})},[f,r,n,F,L]);E2(()=>{d===!1&&N.current.isPositioned&&(N.current.isPositioned=!1,h(q=>({...q,isPositioned:!1})))},[d]);const M=E.useRef(!1);E2(()=>(M.current=!0,()=>{M.current=!1}),[]),E2(()=>{if(T&&(R.current=T),A&&(D.current=A),T&&A){if(O.current)return O.current(T,A,U);U()}},[T,A,U,O,P]);const V=E.useMemo(()=>({reference:R,floating:D,setReference:C,setFloating:_}),[C,_]),I=E.useMemo(()=>({reference:T,floating:A}),[T,A]),H=E.useMemo(()=>{const q={position:n,left:0,top:0};if(!I.floating)return q;const Z=$W(I.floating,u.x),W=$W(I.floating,u.y);return l?{...q,transform:"translate("+Z+"px, "+W+"px)",...DW(I.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:Z,top:W}},[n,l,I.floating,u.x,u.y]);return E.useMemo(()=>({...u,update:U,refs:V,elements:I,floatingStyles:H}),[u,U,V,I,H])}const sze=e=>{function r(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:o,padding:a}=typeof e=="function"?e(n):e;return o&&r(o)?o.current!=null?RW({element:o.current,padding:a}).fn(n):{}:o?RW({element:o,padding:a}).fn(n):{}}}},PW=(e,r)=>({...CW(e),options:[e,r]}),A9=(e,r)=>({...eze(e),options:[e,r]}),MW=(e,r)=>({...nze(e),options:[e,r]}),C2=(e,r)=>({...tze(e),options:[e,r]}),lze=(e,r)=>({...TW(e),options:[e,r]}),cze=(e,r)=>({...AW(e),options:[e,r]}),O0=(e,r)=>({...rze(e),options:[e,r]}),zW=(e,r)=>({...sze(e),options:[e,r]});function IW(e){const r=E.useRef(void 0),n=E.useCallback(o=>{const a=e.map(i=>{if(i!=null){if(typeof i=="function"){const s=i,l=s(o);return typeof l=="function"?l:()=>{s(null)}}return i.current=o,()=>{i.current=null}}});return()=>{a.forEach(i=>i?.())}},e);return E.useMemo(()=>e.every(o=>o==null)?null:o=>{r.current&&(r.current(),r.current=void 0),o!=null&&(r.current=n(o))},e)}const dze="data-floating-ui-focusable",OW="active",jW="selected",uze={...Hv};let LW=!1,pze=0;const BW=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+pze++;function hze(){const[e,r]=E.useState(()=>LW?BW():void 0);return gl(()=>{e==null&&r(BW())},[]),E.useEffect(()=>{LW=!0},[]),e}const fze=uze.useId,FW=fze||hze;function mze(){const e=new Map;return{emit(r,n){var o;(o=e.get(r))==null||o.forEach(a=>a(n))},on(r,n){e.has(r)||e.set(r,new Set),e.get(r).add(n)},off(r,n){var o;(o=e.get(r))==null||o.delete(n)}}}const gze=E.createContext(null),yze=E.createContext(null),R9=()=>{var e;return((e=E.useContext(gze))==null?void 0:e.id)||null},N9=()=>E.useContext(yze);function D9(e){return"data-floating-ui-"+e}function gi(e){e.current!==-1&&(clearTimeout(e.current),e.current=-1)}const HW=D9("safe-polygon");function T2(e,r,n){if(n&&!E9(n))return 0;if(typeof e=="number")return e;if(typeof e=="function"){const o=e();return typeof o=="number"?o:o?.[r]}return e?.[r]}function $9(e){return typeof e=="function"?e():e}function VW(e,r){r===void 0&&(r={});const{open:n,onOpenChange:o,dataRef:a,events:i,elements:s}=e,{enabled:l=!0,delay:c=0,handleClose:d=null,mouseOnly:u=!1,restMs:h=0,move:f=!0}=r,g=N9(),b=R9(),x=w2(d),w=w2(c),k=w2(n),C=w2(h),_=E.useRef(),T=E.useRef(-1),A=E.useRef(),R=E.useRef(-1),D=E.useRef(!0),N=E.useRef(!1),P=E.useRef(()=>{}),O=E.useRef(!1),F=yl(()=>{var H;const q=(H=a.current.openEvent)==null?void 0:H.type;return q?.includes("mouse")&&q!=="mousedown"});E.useEffect(()=>{if(!l)return;function H(q){let{open:Z}=q;Z||(gi(T),gi(R),D.current=!0,O.current=!1)}return i.on("openchange",H),()=>{i.off("openchange",H)}},[l,i]),E.useEffect(()=>{if(!l||!x.current||!n)return;function H(Z){F()&&o(!1,Z,"hover")}const q=bp(s.floating).documentElement;return q.addEventListener("mouseleave",H),()=>{q.removeEventListener("mouseleave",H)}},[s.floating,n,o,l,x,F]);const L=E.useCallback(function(H,q,Z){q===void 0&&(q=!0),Z===void 0&&(Z="hover");const W=T2(w.current,"close",_.current);W&&!A.current?(gi(T),T.current=window.setTimeout(()=>o(!1,H,Z),W)):q&&(gi(T),o(!1,H,Z))},[w,o]),U=yl(()=>{P.current(),A.current=void 0}),M=yl(()=>{if(N.current){const H=bp(s.floating).body;H.style.pointerEvents="",H.removeAttribute(HW),N.current=!1}}),V=yl(()=>a.current.openEvent?["click","mousedown"].includes(a.current.openEvent.type):!1);E.useEffect(()=>{if(!l)return;function H(K){if(gi(T),D.current=!1,u&&!E9(_.current)||$9(C.current)>0&&!T2(w.current,"open"))return;const j=T2(w.current,"open",_.current);j?T.current=window.setTimeout(()=>{k.current||o(!0,K,"hover")},j):n||o(!0,K,"hover")}function q(K){if(V()){M();return}P.current();const j=bp(s.floating);if(gi(R),O.current=!1,x.current&&a.current.floatingContext){n||gi(T),A.current=x.current({...a.current.floatingContext,tree:g,x:K.clientX,y:K.clientY,onClose(){M(),U(),V()||L(K,!0,"safe-polygon")}});const Y=A.current;j.addEventListener("mousemove",Y),P.current=()=>{j.removeEventListener("mousemove",Y)};return}(_.current!=="touch"||!I0(s.floating,K.relatedTarget))&&L(K)}function Z(K){V()||a.current.floatingContext&&(x.current==null||x.current({...a.current.floatingContext,tree:g,x:K.clientX,y:K.clientY,onClose(){M(),U(),V()||L(K)}})(K))}function W(){gi(T)}function G(K){V()||L(K,!1)}if(Vr(s.domReference)){const K=s.domReference,j=s.floating;return n&&K.addEventListener("mouseleave",Z),f&&K.addEventListener("mousemove",H,{once:!0}),K.addEventListener("mouseenter",H),K.addEventListener("mouseleave",q),j&&(j.addEventListener("mouseleave",Z),j.addEventListener("mouseenter",W),j.addEventListener("mouseleave",G)),()=>{n&&K.removeEventListener("mouseleave",Z),f&&K.removeEventListener("mousemove",H),K.removeEventListener("mouseenter",H),K.removeEventListener("mouseleave",q),j&&(j.removeEventListener("mouseleave",Z),j.removeEventListener("mouseenter",W),j.removeEventListener("mouseleave",G))}}},[s,l,e,u,f,L,U,M,o,n,k,g,w,x,a,V,C]),gl(()=>{var H;if(l&&n&&(H=x.current)!=null&&(H=H.__options)!=null&&H.blockPointerEvents&&F()){N.current=!0;const Z=s.floating;if(Vr(s.domReference)&&Z){var q;const W=bp(s.floating).body;W.setAttribute(HW,"");const G=s.domReference,K=g==null||(q=g.nodesRef.current.find(j=>j.id===b))==null||(q=q.context)==null?void 0:q.elements.floating;return K&&(K.style.pointerEvents=""),W.style.pointerEvents="none",G.style.pointerEvents="auto",Z.style.pointerEvents="auto",()=>{W.style.pointerEvents="",G.style.pointerEvents="",Z.style.pointerEvents=""}}}},[l,n,b,s,g,x,F]),gl(()=>{n||(_.current=void 0,O.current=!1,U(),M())},[n,U,M]),E.useEffect(()=>()=>{U(),gi(T),gi(R),M()},[l,s.domReference,U,M]);const I=E.useMemo(()=>{function H(q){_.current=q.pointerType}return{onPointerDown:H,onPointerEnter:H,onMouseMove(q){const{nativeEvent:Z}=q;function W(){!D.current&&!k.current&&o(!0,Z,"hover")}u&&!E9(_.current)||n||$9(C.current)===0||O.current&&q.movementX**2+q.movementY**2<2||(gi(R),_.current==="touch"?W():(O.current=!0,R.current=window.setTimeout(W,$9(C.current))))}}},[u,o,n,k,C]);return E.useMemo(()=>l?{reference:I}:{},[l,I])}const P9=()=>{},qW=E.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:P9,setState:P9,isInstantPhase:!1}),bze=()=>E.useContext(qW);function UW(e){const{children:r,delay:n,timeoutMs:o=0}=e,[a,i]=E.useReducer((c,d)=>({...c,...d}),{delay:n,timeoutMs:o,initialDelay:n,currentId:null,isInstantPhase:!1}),s=E.useRef(null),l=E.useCallback(c=>{i({currentId:c})},[]);return gl(()=>{a.currentId?s.current===null?s.current=a.currentId:a.isInstantPhase||i({isInstantPhase:!0}):(a.isInstantPhase&&i({isInstantPhase:!1}),s.current=null)},[a.currentId,a.isInstantPhase]),y.jsx(qW.Provider,{value:E.useMemo(()=>({...a,setState:i,setCurrentId:l}),[a,l]),children:r})}function WW(e,r){r===void 0&&(r={});const{open:n,onOpenChange:o,floatingId:a}=e,{id:i,enabled:s=!0}=r,l=i??a,c=bze(),{currentId:d,setCurrentId:u,initialDelay:h,setState:f,timeoutMs:g}=c;return gl(()=>{s&&d&&(f({delay:{open:1,close:T2(h,"close")}}),d!==l&&o(!1))},[s,l,o,f,d,h]),gl(()=>{function b(){o(!1),f({delay:h,currentId:null})}if(s&&d&&!n&&d===l){if(g){const x=window.setTimeout(b,g);return()=>{clearTimeout(x)}}b()}},[s,n,f,d,l,o,h,g]),gl(()=>{s&&(u===P9||!n||u(l))},[s,n,u,l]),c}const vze={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},xze={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},YW=e=>{var r,n;return{escapeKey:typeof e=="boolean"?e:(r=e?.escapeKey)!=null?r:!1,outsidePress:typeof e=="boolean"?e:(n=e?.outsidePress)!=null?n:!0}};function GW(e,r){r===void 0&&(r={});const{open:n,onOpenChange:o,elements:a,dataRef:i}=e,{enabled:s=!0,escapeKey:l=!0,outsidePress:c=!0,outsidePressEvent:d="pointerdown",referencePress:u=!1,referencePressEvent:h="pointerdown",ancestorScroll:f=!1,bubbles:g,capture:b}=r,x=N9(),w=yl(typeof c=="function"?c:()=>!1),k=typeof c=="function"?w:c,C=E.useRef(!1),{escapeKey:_,outsidePress:T}=YW(g),{escapeKey:A,outsidePress:R}=YW(b),D=E.useRef(!1),N=yl(M=>{var V;if(!n||!s||!l||M.key!=="Escape"||D.current)return;const I=(V=i.current.floatingContext)==null?void 0:V.nodeId,H=x?x2(x.nodesRef.current,I):[];if(!_&&(M.stopPropagation(),H.length>0)){let q=!0;if(H.forEach(Z=>{var W;if((W=Z.context)!=null&&W.open&&!Z.context.dataRef.current.__escapeKeyBubbles){q=!1;return}}),!q)return}o(!1,bMe(M)?M.nativeEvent:M,"escape-key")}),P=yl(M=>{var V;const I=()=>{var H;N(M),(H=em(M))==null||H.removeEventListener("keydown",I)};(V=em(M))==null||V.addEventListener("keydown",I)}),O=yl(M=>{var V;const I=i.current.insideReactTree;i.current.insideReactTree=!1;const H=C.current;if(C.current=!1,d==="click"&&H||I||typeof k=="function"&&!k(M))return;const q=em(M),Z="["+D9("inert")+"]",W=bp(a.floating).querySelectorAll(Z);let G=Vr(q)?q:null;for(;G&&!uc(G);){const Q=pc(G);if(uc(Q)||!Vr(Q))break;G=Q}if(W.length&&Vr(q)&&!fMe(q)&&!I0(q,a.floating)&&Array.from(W).every(Q=>!I0(G,Q)))return;if(Oa(q)&&U){const Q=uc(q),J=mi(q),ie=/auto|scroll/,ne=Q||ie.test(J.overflowX),re=Q||ie.test(J.overflowY),ge=ne&&q.clientWidth>0&&q.scrollWidth>q.clientWidth,De=re&&q.clientHeight>0&&q.scrollHeight>q.clientHeight,he=J.direction==="rtl",me=De&&(he?M.offsetX<=q.offsetWidth-q.clientWidth:M.offsetX>q.clientWidth),Te=ge&&M.offsetY>q.clientHeight;if(me||Te)return}const K=(V=i.current.floatingContext)==null?void 0:V.nodeId,j=x&&x2(x.nodesRef.current,K).some(Q=>{var J;return _9(M,(J=Q.context)==null?void 0:J.elements.floating)});if(_9(M,a.floating)||_9(M,a.domReference)||j)return;const Y=x?x2(x.nodesRef.current,K):[];if(Y.length>0){let Q=!0;if(Y.forEach(J=>{var ie;if((ie=J.context)!=null&&ie.open&&!J.context.dataRef.current.__outsidePressBubbles){Q=!1;return}}),!Q)return}o(!1,M,"outside-press")}),F=yl(M=>{var V;const I=()=>{var H;O(M),(H=em(M))==null||H.removeEventListener(d,I)};(V=em(M))==null||V.addEventListener(d,I)});E.useEffect(()=>{if(!n||!s)return;i.current.__escapeKeyBubbles=_,i.current.__outsidePressBubbles=T;let M=-1;function V(W){o(!1,W,"ancestor-scroll")}function I(){window.clearTimeout(M),D.current=!0}function H(){M=window.setTimeout(()=>{D.current=!1},f2()?5:0)}const q=bp(a.floating);l&&(q.addEventListener("keydown",A?P:N,A),q.addEventListener("compositionstart",I),q.addEventListener("compositionend",H)),k&&q.addEventListener(d,R?F:O,R);let Z=[];return f&&(Vr(a.domReference)&&(Z=hc(a.domReference)),Vr(a.floating)&&(Z=Z.concat(hc(a.floating))),!Vr(a.reference)&&a.reference&&a.reference.contextElement&&(Z=Z.concat(hc(a.reference.contextElement)))),Z=Z.filter(W=>{var G;return W!==((G=q.defaultView)==null?void 0:G.visualViewport)}),Z.forEach(W=>{W.addEventListener("scroll",V,{passive:!0})}),()=>{l&&(q.removeEventListener("keydown",A?P:N,A),q.removeEventListener("compositionstart",I),q.removeEventListener("compositionend",H)),k&&q.removeEventListener(d,R?F:O,R),Z.forEach(W=>{W.removeEventListener("scroll",V)}),window.clearTimeout(M)}},[i,a,l,k,d,n,o,f,s,_,T,N,A,P,O,R,F]),E.useEffect(()=>{i.current.insideReactTree=!1},[i,k,d]);const L=E.useMemo(()=>({onKeyDown:N,...u&&{[vze[h]]:M=>{o(!1,M.nativeEvent,"reference-press")},...h!=="click"&&{onClick(M){o(!1,M.nativeEvent,"reference-press")}}}}),[N,o,u,h]),U=E.useMemo(()=>({onKeyDown:N,onMouseDown(){C.current=!0},onMouseUp(){C.current=!0},[xze[d]]:()=>{i.current.insideReactTree=!0}}),[N,d,i]);return E.useMemo(()=>s?{reference:L,floating:U}:{},[s,L,U])}function wze(e){const{open:r=!1,onOpenChange:n,elements:o}=e,a=FW(),i=E.useRef({}),[s]=E.useState(()=>mze()),l=R9()!=null,[c,d]=E.useState(o.reference),u=yl((g,b,x)=>{i.current.openEvent=g?b:void 0,s.emit("openchange",{open:g,event:b,reason:x,nested:l}),n?.(g,b,x)}),h=E.useMemo(()=>({setPositionReference:d}),[]),f=E.useMemo(()=>({reference:c||o.reference||null,floating:o.floating||null,domReference:o.reference}),[c,o.reference,o.floating]);return E.useMemo(()=>({dataRef:i,open:r,onOpenChange:u,elements:f,events:s,floatingId:a,refs:h}),[r,u,f,s,a,h])}function A2(e){e===void 0&&(e={});const{nodeId:r}=e,n=wze({...e,elements:{reference:null,floating:null,...e.elements}}),o=e.rootContext||n,a=o.elements,[i,s]=E.useState(null),[l,c]=E.useState(null),d=a?.domReference||i,u=E.useRef(null),h=N9();gl(()=>{d&&(u.current=d)},[d]);const f=ize({...e,elements:{...a,...l&&{reference:l}}}),g=E.useCallback(C=>{const _=Vr(C)?{getBoundingClientRect:()=>C.getBoundingClientRect(),getClientRects:()=>C.getClientRects(),contextElement:C}:C;c(_),f.refs.setReference(_)},[f.refs]),b=E.useCallback(C=>{(Vr(C)||C===null)&&(u.current=C,s(C)),(Vr(f.refs.reference.current)||f.refs.reference.current===null||C!==null&&!Vr(C))&&f.refs.setReference(C)},[f.refs]),x=E.useMemo(()=>({...f.refs,setReference:b,setPositionReference:g,domReference:u}),[f.refs,b,g]),w=E.useMemo(()=>({...f.elements,domReference:d}),[f.elements,d]),k=E.useMemo(()=>({...f,...o,refs:x,elements:w,nodeId:r}),[f,x,w,r,o]);return gl(()=>{o.dataRef.current.floatingContext=k;const C=h?.nodesRef.current.find(_=>_.id===r);C&&(C.context=k)}),E.useMemo(()=>({...f,context:k,refs:x,elements:w}),[f,x,w,k])}function M9(){return uMe()&&dMe()}function kze(e,r){r===void 0&&(r={});const{open:n,onOpenChange:o,events:a,dataRef:i,elements:s}=e,{enabled:l=!0,visibleOnly:c=!0}=r,d=E.useRef(!1),u=E.useRef(-1),h=E.useRef(!0);E.useEffect(()=>{if(!l)return;const g=ua(s.domReference);function b(){!n&&Oa(s.domReference)&&s.domReference===uW(bp(s.domReference))&&(d.current=!0)}function x(){h.current=!0}function w(){h.current=!1}return g.addEventListener("blur",b),M9()&&(g.addEventListener("keydown",x,!0),g.addEventListener("pointerdown",w,!0)),()=>{g.removeEventListener("blur",b),M9()&&(g.removeEventListener("keydown",x,!0),g.removeEventListener("pointerdown",w,!0))}},[s.domReference,n,l]),E.useEffect(()=>{if(!l)return;function g(b){let{reason:x}=b;(x==="reference-press"||x==="escape-key")&&(d.current=!0)}return a.on("openchange",g),()=>{a.off("openchange",g)}},[a,l]),E.useEffect(()=>()=>{gi(u)},[]);const f=E.useMemo(()=>({onMouseLeave(){d.current=!1},onFocus(g){if(d.current)return;const b=em(g.nativeEvent);if(c&&Vr(b)){if(M9()&&!g.relatedTarget){if(!h.current&&!mMe(b))return}else if(!gMe(b))return}o(!0,g.nativeEvent,"focus")},onBlur(g){d.current=!1;const b=g.relatedTarget,x=g.nativeEvent,w=Vr(b)&&b.hasAttribute(D9("focus-guard"))&&b.getAttribute("data-type")==="outside";u.current=window.setTimeout(()=>{var k;const C=uW(s.domReference?s.domReference.ownerDocument:document);!b&&C===s.domReference||I0((k=i.current.floatingContext)==null?void 0:k.refs.floating.current,C)||I0(s.domReference,C)||w||o(!1,x,"focus")})}}),[i,s.domReference,o,c]);return E.useMemo(()=>l?{reference:f}:{},[l,f])}function z9(e,r,n){const o=new Map,a=n==="item";let i=e;if(a&&e){const{[OW]:s,[jW]:l,...c}=e;i=c}return{...n==="floating"&&{tabIndex:-1,[dze]:""},...i,...r.map(s=>{const l=s?s[n]:null;return typeof l=="function"?e?l(e):null:l}).concat(e).reduce((s,l)=>(l&&Object.entries(l).forEach(c=>{let[d,u]=c;if(!(a&&[OW,jW].includes(d)))if(d.indexOf("on")===0){if(o.has(d)||o.set(d,[]),typeof u=="function"){var h;(h=o.get(d))==null||h.push(u),s[d]=function(){for(var f,g=arguments.length,b=new Array(g),x=0;xw(...b)).find(w=>w!==void 0)}}}else s[d]=u}),s),{})}}function XW(e){e===void 0&&(e=[]);const r=e.map(l=>l?.reference),n=e.map(l=>l?.floating),o=e.map(l=>l?.item),a=E.useCallback(l=>z9(l,e,"reference"),r),i=E.useCallback(l=>z9(l,e,"floating"),n),s=E.useCallback(l=>z9(l,e,"item"),o);return E.useMemo(()=>({getReferenceProps:a,getFloatingProps:i,getItemProps:s}),[a,i,s])}const _ze=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function KW(e,r){var n,o;r===void 0&&(r={});const{open:a,elements:i,floatingId:s}=e,{enabled:l=!0,role:c="dialog"}=r,d=FW(),u=((n=i.domReference)==null?void 0:n.id)||d,h=E.useMemo(()=>{var k;return((k=yMe(i.floating))==null?void 0:k.id)||s},[i.floating,s]),f=(o=_ze.get(c))!=null?o:c,g=R9()!=null,b=E.useMemo(()=>f==="tooltip"||c==="label"?{["aria-"+(c==="label"?"labelledby":"describedby")]:a?h:void 0}:{"aria-expanded":a?"true":"false","aria-haspopup":f==="alertdialog"?"dialog":f,"aria-controls":a?h:void 0,...f==="listbox"&&{role:"combobox"},...f==="menu"&&{id:u},...f==="menu"&&g&&{role:"menuitem"},...c==="select"&&{"aria-autocomplete":"none"},...c==="combobox"&&{"aria-autocomplete":"list"}},[f,h,g,a,u,c]),x=E.useMemo(()=>{const k={id:h,...f&&{role:f}};return f==="tooltip"||c==="label"?k:{...k,...f==="menu"&&{"aria-labelledby":u}}},[f,h,u,c]),w=E.useCallback(k=>{let{active:C,selected:_}=k;const T={role:"option",...C&&{id:h+"-fui-option"}};switch(c){case"select":case"combobox":return{...T,"aria-selected":_}}return{}},[h,c]);return E.useMemo(()=>l?{reference:b,floating:x,item:w}:{},[l,b,x,w])}const[Eze,yi]=hi("ScrollArea.Root component was not found in tree");function nm(e,r){const n=io(r);$0(()=>{let o=0;if(e){const a=new ResizeObserver(()=>{cancelAnimationFrame(o),o=window.requestAnimationFrame(n)});return a.observe(e),()=>{window.cancelAnimationFrame(o),a.unobserve(e)}}},[e,n])}const Sze=E.forwardRef((e,r)=>{const{style:n,...o}=e,a=yi(),[i,s]=E.useState(0),[l,c]=E.useState(0),d=!!(i&&l);return nm(a.scrollbarX,()=>{const u=a.scrollbarX?.offsetHeight||0;a.onCornerHeightChange(u),c(u)}),nm(a.scrollbarY,()=>{const u=a.scrollbarY?.offsetWidth||0;a.onCornerWidthChange(u),s(u)}),d?y.jsx("div",{...o,ref:r,style:{...n,width:i,height:l}}):null}),Cze=E.forwardRef((e,r)=>{const n=yi(),o=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&o?y.jsx(Sze,{...e,ref:r}):null}),Tze={scrollHideDelay:1e3,type:"hover"},ZW=E.forwardRef((e,r)=>{const{type:n,scrollHideDelay:o,scrollbars:a,getStyles:i,...s}=He("ScrollAreaRoot",Tze,e),[l,c]=E.useState(null),[d,u]=E.useState(null),[h,f]=E.useState(null),[g,b]=E.useState(null),[x,w]=E.useState(null),[k,C]=E.useState(0),[_,T]=E.useState(0),[A,R]=E.useState(!1),[D,N]=E.useState(!1),P=Hr(r,O=>c(O));return y.jsx(Eze,{value:{type:n,scrollHideDelay:o,scrollArea:l,viewport:d,onViewportChange:u,content:h,onContentChange:f,scrollbarX:g,onScrollbarXChange:b,scrollbarXEnabled:A,onScrollbarXEnabledChange:R,scrollbarY:x,onScrollbarYChange:w,scrollbarYEnabled:D,onScrollbarYEnabledChange:N,onCornerWidthChange:C,onCornerHeightChange:T,getStyles:i},children:y.jsx(Re,{...s,ref:P,__vars:{"--sa-corner-width":a!=="xy"?"0px":`${k}px`,"--sa-corner-height":a!=="xy"?"0px":`${_}px`}})})});ZW.displayName="@mantine/core/ScrollAreaRoot";function QW(e,r){const n=e/r;return Number.isNaN(n)?0:n}function R2(e){const r=QW(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,o=(e.scrollbar.size-n)*r;return Math.max(o,18)}function JW(e,r){return n=>{if(e[0]===e[1]||r[0]===r[1])return r[0];const o=(r[1]-r[0])/(e[1]-e[0]);return r[0]+o*(n-e[0])}}function Aze(e,[r,n]){return Math.min(n,Math.max(r,e))}function eY(e,r,n="ltr"){const o=R2(r),a=r.scrollbar.paddingStart+r.scrollbar.paddingEnd,i=r.scrollbar.size-a,s=r.content-r.viewport,l=i-o,c=n==="ltr"?[0,s]:[s*-1,0],d=Aze(e,c);return JW([0,s],[0,l])(d)}function Rze(e,r,n,o="ltr"){const a=R2(n),i=a/2,s=r||i,l=a-s,c=n.scrollbar.paddingStart+s,d=n.scrollbar.size-n.scrollbar.paddingEnd-l,u=n.content-n.viewport,h=o==="ltr"?[0,u]:[u*-1,0];return JW([c,d],h)(e)}function tY(e,r){return e>0&&e{e?.(o),(n===!1||!o.defaultPrevented)&&r?.(o)}}const[Nze,rY]=hi("ScrollAreaScrollbar was not found in tree"),nY=E.forwardRef((e,r)=>{const{sizes:n,hasThumb:o,onThumbChange:a,onThumbPointerUp:i,onThumbPointerDown:s,onThumbPositionChange:l,onDragScroll:c,onWheelScroll:d,onResize:u,...h}=e,f=yi(),[g,b]=E.useState(null),x=Hr(r,N=>b(N)),w=E.useRef(null),k=E.useRef(""),{viewport:C}=f,_=n.content-n.viewport,T=io(d),A=io(l),R=Yf(u,10),D=N=>{if(w.current){const P=N.clientX-w.current.left,O=N.clientY-w.current.top;c({x:P,y:O})}};return E.useEffect(()=>{const N=P=>{const O=P.target;g?.contains(O)&&T(P,_)};return document.addEventListener("wheel",N,{passive:!1}),()=>document.removeEventListener("wheel",N,{passive:!1})},[C,g,_,T]),E.useEffect(A,[n,A]),nm(g,R),nm(f.content,R),y.jsx(Nze,{value:{scrollbar:g,hasThumb:o,onThumbChange:io(a),onThumbPointerUp:io(i),onThumbPositionChange:A,onThumbPointerDown:io(s)},children:y.jsx("div",{...h,ref:x,"data-mantine-scrollbar":!0,style:{position:"absolute",...h.style},onPointerDown:xp(e.onPointerDown,N=>{N.preventDefault(),N.button===0&&(N.target.setPointerCapture(N.pointerId),w.current=g.getBoundingClientRect(),k.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",D(N))}),onPointerMove:xp(e.onPointerMove,D),onPointerUp:xp(e.onPointerUp,N=>{const P=N.target;P.hasPointerCapture(N.pointerId)&&(N.preventDefault(),P.releasePointerCapture(N.pointerId))}),onLostPointerCapture:()=>{document.body.style.webkitUserSelect=k.current,w.current=null}})})}),oY=E.forwardRef((e,r)=>{const{sizes:n,onSizesChange:o,style:a,...i}=e,s=yi(),[l,c]=E.useState(),d=E.useRef(null),u=Hr(r,d,s.onScrollbarXChange);return E.useEffect(()=>{d.current&&c(getComputedStyle(d.current))},[d]),y.jsx(nY,{"data-orientation":"horizontal",...i,ref:u,sizes:n,style:{...a,"--sa-thumb-width":`${R2(n)}px`},onThumbPointerDown:h=>e.onThumbPointerDown(h.x),onDragScroll:h=>e.onDragScroll(h.x),onWheelScroll:(h,f)=>{if(s.viewport){const g=s.viewport.scrollLeft+h.deltaX;e.onWheelScroll(g),tY(g,f)&&h.preventDefault()}},onResize:()=>{d.current&&s.viewport&&l&&o({content:s.viewport.scrollWidth,viewport:s.viewport.offsetWidth,scrollbar:{size:d.current.clientWidth,paddingStart:Nd(l.paddingLeft),paddingEnd:Nd(l.paddingRight)}})}})});oY.displayName="@mantine/core/ScrollAreaScrollbarX";const aY=E.forwardRef((e,r)=>{const{sizes:n,onSizesChange:o,style:a,...i}=e,s=yi(),[l,c]=E.useState(),d=E.useRef(null),u=Hr(r,d,s.onScrollbarYChange);return E.useEffect(()=>{d.current&&c(window.getComputedStyle(d.current))},[]),y.jsx(nY,{...i,"data-orientation":"vertical",ref:u,sizes:n,style:{"--sa-thumb-height":`${R2(n)}px`,...a},onThumbPointerDown:h=>e.onThumbPointerDown(h.y),onDragScroll:h=>e.onDragScroll(h.y),onWheelScroll:(h,f)=>{if(s.viewport){const g=s.viewport.scrollTop+h.deltaY;e.onWheelScroll(g),tY(g,f)&&h.preventDefault()}},onResize:()=>{d.current&&s.viewport&&l&&o({content:s.viewport.scrollHeight,viewport:s.viewport.offsetHeight,scrollbar:{size:d.current.clientHeight,paddingStart:Nd(l.paddingTop),paddingEnd:Nd(l.paddingBottom)}})}})});aY.displayName="@mantine/core/ScrollAreaScrollbarY";const N2=E.forwardRef((e,r)=>{const{orientation:n="vertical",...o}=e,{dir:a}=Rd(),i=yi(),s=E.useRef(null),l=E.useRef(0),[c,d]=E.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=QW(c.viewport,c.content),h={...o,sizes:c,onSizesChange:d,hasThumb:u>0&&u<1,onThumbChange:g=>{s.current=g},onThumbPointerUp:()=>{l.current=0},onThumbPointerDown:g=>{l.current=g}},f=(g,b)=>Rze(g,l.current,c,b);return n==="horizontal"?y.jsx(oY,{...h,ref:r,onThumbPositionChange:()=>{if(i.viewport&&s.current){const g=i.viewport.scrollLeft,b=eY(g,c,a);s.current.style.transform=`translate3d(${b}px, 0, 0)`}},onWheelScroll:g=>{i.viewport&&(i.viewport.scrollLeft=g)},onDragScroll:g=>{i.viewport&&(i.viewport.scrollLeft=f(g,a))}}):n==="vertical"?y.jsx(aY,{...h,ref:r,onThumbPositionChange:()=>{if(i.viewport&&s.current){const g=i.viewport.scrollTop,b=eY(g,c);c.scrollbar.size===0?s.current.style.setProperty("--thumb-opacity","0"):s.current.style.setProperty("--thumb-opacity","1"),s.current.style.transform=`translate3d(0, ${b}px, 0)`}},onWheelScroll:g=>{i.viewport&&(i.viewport.scrollTop=g)},onDragScroll:g=>{i.viewport&&(i.viewport.scrollTop=f(g))}}):null});N2.displayName="@mantine/core/ScrollAreaScrollbarVisible";const I9=E.forwardRef((e,r)=>{const n=yi(),{forceMount:o,...a}=e,[i,s]=E.useState(!1),l=e.orientation==="horizontal",c=Yf(()=>{if(n.viewport){const d=n.viewport.offsetWidth{const{forceMount:n,...o}=e,a=yi(),[i,s]=E.useState(!1);return E.useEffect(()=>{const{scrollArea:l}=a;let c=0;if(l){const d=()=>{window.clearTimeout(c),s(!0)},u=()=>{c=window.setTimeout(()=>s(!1),a.scrollHideDelay)};return l.addEventListener("pointerenter",d),l.addEventListener("pointerleave",u),()=>{window.clearTimeout(c),l.removeEventListener("pointerenter",d),l.removeEventListener("pointerleave",u)}}},[a.scrollArea,a.scrollHideDelay]),n||i?y.jsx(I9,{"data-state":i?"visible":"hidden",...o,ref:r}):null});iY.displayName="@mantine/core/ScrollAreaScrollbarHover";const Dze=E.forwardRef((e,r)=>{const{forceMount:n,...o}=e,a=yi(),i=e.orientation==="horizontal",[s,l]=E.useState("hidden"),c=Yf(()=>l("idle"),100);return E.useEffect(()=>{if(s==="idle"){const d=window.setTimeout(()=>l("hidden"),a.scrollHideDelay);return()=>window.clearTimeout(d)}},[s,a.scrollHideDelay]),E.useEffect(()=>{const{viewport:d}=a,u=i?"scrollLeft":"scrollTop";if(d){let h=d[u];const f=()=>{const g=d[u];h!==g&&(l("scrolling"),c()),h=g};return d.addEventListener("scroll",f),()=>d.removeEventListener("scroll",f)}},[a.viewport,i,c]),n||s!=="hidden"?y.jsx(N2,{"data-state":s==="hidden"?"hidden":"visible",...o,ref:r,onPointerEnter:xp(e.onPointerEnter,()=>l("interacting")),onPointerLeave:xp(e.onPointerLeave,()=>l("idle"))}):null}),O9=E.forwardRef((e,r)=>{const{forceMount:n,...o}=e,a=yi(),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:s}=a,l=e.orientation==="horizontal";return E.useEffect(()=>(l?i(!0):s(!0),()=>{l?i(!1):s(!1)}),[l,i,s]),a.type==="hover"?y.jsx(iY,{...o,ref:r,forceMount:n}):a.type==="scroll"?y.jsx(Dze,{...o,ref:r,forceMount:n}):a.type==="auto"?y.jsx(I9,{...o,ref:r,forceMount:n}):a.type==="always"?y.jsx(N2,{...o,ref:r}):null});O9.displayName="@mantine/core/ScrollAreaScrollbar";function $ze(e,r=()=>{}){let n={left:e.scrollLeft,top:e.scrollTop},o=0;return(function a(){const i={left:e.scrollLeft,top:e.scrollTop},s=n.left!==i.left,l=n.top!==i.top;(s||l)&&r(),n=i,o=window.requestAnimationFrame(a)})(),()=>window.cancelAnimationFrame(o)}const sY=E.forwardRef((e,r)=>{const{style:n,...o}=e,a=yi(),i=rY(),{onThumbPositionChange:s}=i,l=Hr(r,u=>i.onThumbChange(u)),c=E.useRef(void 0),d=Yf(()=>{c.current&&(c.current(),c.current=void 0)},100);return E.useEffect(()=>{const{viewport:u}=a;if(u){const h=()=>{if(d(),!c.current){const f=$ze(u,s);c.current=f,s()}};return s(),u.addEventListener("scroll",h),()=>u.removeEventListener("scroll",h)}},[a.viewport,d,s]),y.jsx("div",{"data-state":i.hasThumb?"visible":"hidden",...o,ref:l,style:{width:"var(--sa-thumb-width)",height:"var(--sa-thumb-height)",...n},onPointerDownCapture:xp(e.onPointerDownCapture,u=>{const h=u.target.getBoundingClientRect(),f=u.clientX-h.left,g=u.clientY-h.top;i.onThumbPointerDown({x:f,y:g})}),onPointerUp:xp(e.onPointerUp,i.onThumbPointerUp)})});sY.displayName="@mantine/core/ScrollAreaThumb";const j9=E.forwardRef((e,r)=>{const{forceMount:n,...o}=e,a=rY();return n||a.hasThumb?y.jsx(sY,{ref:r,...o}):null});j9.displayName="@mantine/core/ScrollAreaThumb";const lY=E.forwardRef(({children:e,style:r,...n},o)=>{const a=yi(),i=Hr(o,a.onViewportChange);return y.jsx(Re,{...n,ref:i,style:{overflowX:a.scrollbarXEnabled?"scroll":"hidden",overflowY:a.scrollbarYEnabled?"scroll":"hidden",...r},children:y.jsx("div",{...a.getStyles("content"),ref:a.onContentChange,children:e})})});lY.displayName="@mantine/core/ScrollAreaViewport";var L9={root:"m_d57069b5",content:"m_b1336c6",viewport:"m_c0783ff9",viewportInner:"m_f8f631dd",scrollbar:"m_c44ba933",thumb:"m_d8b5e363",corner:"m_21657268"};const cY={scrollHideDelay:1e3,type:"hover",scrollbars:"xy"},Pze=(e,{scrollbarSize:r,overscrollBehavior:n})=>({root:{"--scrollarea-scrollbar-size":Pe(r),"--scrollarea-over-scroll-behavior":n}}),bl=ht((e,r)=>{const n=He("ScrollArea",cY,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,scrollbarSize:c,vars:d,type:u,scrollHideDelay:h,viewportProps:f,viewportRef:g,onScrollPositionChange:b,children:x,offsetScrollbars:w,scrollbars:k,onBottomReached:C,onTopReached:_,overscrollBehavior:T,attributes:A,...R}=n,[D,N]=E.useState(!1),[P,O]=E.useState(!1),[F,L]=E.useState(!1),U=Dt({name:"ScrollArea",props:n,classes:L9,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:A,vars:d,varsResolver:Pze}),M=E.useRef(null),V=IW([g,M]);return E.useEffect(()=>{if(!M.current||w!=="present")return;const I=M.current,H=new ResizeObserver(()=>{const{scrollHeight:q,clientHeight:Z,scrollWidth:W,clientWidth:G}=I;O(q>Z),L(W>G)});return H.observe(I),()=>H.disconnect()},[M,w]),y.jsxs(ZW,{getStyles:U,type:u==="never"?"always":u,scrollHideDelay:h,ref:r,scrollbars:k,...U("root"),...R,children:[y.jsx(lY,{...f,...U("viewport",{style:f?.style}),ref:V,"data-offset-scrollbars":w===!0?"xy":w||void 0,"data-scrollbars":k||void 0,"data-horizontal-hidden":w==="present"&&!F?"true":void 0,"data-vertical-hidden":w==="present"&&!P?"true":void 0,onScroll:I=>{f?.onScroll?.(I),b?.({x:I.currentTarget.scrollLeft,y:I.currentTarget.scrollTop});const{scrollTop:H,scrollHeight:q,clientHeight:Z}=I.currentTarget;H-(q-Z)>=-.6&&C?.(),H===0&&_?.()},children:x}),(k==="xy"||k==="x")&&y.jsx(O9,{...U("scrollbar"),orientation:"horizontal","data-hidden":u==="never"||w==="present"&&!F?!0:void 0,forceMount:!0,onMouseEnter:()=>N(!0),onMouseLeave:()=>N(!1),children:y.jsx(j9,{...U("thumb")})}),(k==="xy"||k==="y")&&y.jsx(O9,{...U("scrollbar"),orientation:"vertical","data-hidden":u==="never"||w==="present"&&!P?!0:void 0,forceMount:!0,onMouseEnter:()=>N(!0),onMouseLeave:()=>N(!1),children:y.jsx(j9,{...U("thumb")})}),y.jsx(Cze,{...U("corner"),"data-hovered":D||void 0,"data-hidden":u==="never"||void 0})]})});bl.displayName="@mantine/core/ScrollArea";const pa=ht((e,r)=>{const{children:n,classNames:o,styles:a,scrollbarSize:i,scrollHideDelay:s,type:l,dir:c,offsetScrollbars:d,viewportRef:u,onScrollPositionChange:h,unstyled:f,variant:g,viewportProps:b,scrollbars:x,style:w,vars:k,onBottomReached:C,onTopReached:_,onOverflowChange:T,...A}=He("ScrollAreaAutosize",cY,e),R=E.useRef(null),D=IW([u,R]),[N,P]=E.useState(!1),O=E.useRef(!1);return E.useEffect(()=>{if(!T)return;const F=R.current;if(!F)return;const L=()=>{const M=F.scrollHeight>F.clientHeight;M!==N&&(O.current?T?.(M):(O.current=!0,M&&T?.(!0)),P(M))};L();const U=new ResizeObserver(L);return U.observe(F),()=>U.disconnect()},[T,N]),y.jsx(Re,{...A,ref:r,style:[{display:"flex",overflow:"hidden"},w],children:y.jsx(Re,{style:{display:"flex",flexDirection:"column",flex:1,overflow:"hidden",...x==="y"&&{minWidth:0},...x==="x"&&{minHeight:0},...x==="xy"&&{minWidth:0,minHeight:0},...x===!1&&{minWidth:0,minHeight:0}},children:y.jsx(bl,{classNames:o,styles:a,scrollHideDelay:s,scrollbarSize:i,type:l,dir:c,offsetScrollbars:d,viewportRef:D,onScrollPositionChange:h,unstyled:f,variant:g,viewportProps:b,vars:k,scrollbars:x,onBottomReached:C,onTopReached:_,"data-autosize":"true",children:n})})})});bl.classes=L9,pa.displayName="@mantine/core/ScrollAreaAutosize",pa.classes=L9,bl.Autosize=pa;var dY={root:"m_87cf2631"};const Mze={__staticSelector:"UnstyledButton"},Er=so((e,r)=>{const n=He("UnstyledButton",Mze,e),{className:o,component:a="button",__staticSelector:i,unstyled:s,classNames:l,styles:c,style:d,attributes:u,...h}=n,f=Dt({name:i,props:n,classes:dY,className:o,style:d,classNames:l,styles:c,unstyled:s,attributes:u});return y.jsx(Re,{...f("root",{focusable:!0}),component:a,ref:r,type:a==="button"?"button":void 0,...h})});Er.classes=dY,Er.displayName="@mantine/core/UnstyledButton";var uY={root:"m_515a97f8"};const D2=ht((e,r)=>{const n=He("VisuallyHidden",null,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,attributes:d,...u}=n,h=Dt({name:"VisuallyHidden",classes:uY,props:n,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:d});return y.jsx(Re,{component:"span",ref:r,...h("root"),...u})});D2.classes=uY,D2.displayName="@mantine/core/VisuallyHidden";var pY={root:"m_1b7284a3"};const zze=(e,{radius:r,shadow:n})=>({root:{"--paper-radius":r===void 0?void 0:Mn(r),"--paper-shadow":mU(n)}}),om=so((e,r)=>{const n=He("Paper",null,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,withBorder:c,vars:d,radius:u,shadow:h,variant:f,mod:g,attributes:b,...x}=n,w=Dt({name:"Paper",props:n,classes:pY,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:b,vars:d,varsResolver:zze});return y.jsx(Re,{ref:r,mod:[{"data-with-border":c},g],...w("root"),variant:f,...x})});om.classes=pY,om.displayName="@mantine/core/Paper";function hY(e,r,n,o){return e==="center"||o==="center"?{top:r}:e==="end"?{bottom:n}:e==="start"?{top:n}:{}}function fY(e,r,n,o,a){return e==="center"||o==="center"?{left:r}:e==="end"?{[a==="ltr"?"right":"left"]:n}:e==="start"?{[a==="ltr"?"left":"right"]:n}:{}}const Ize={bottom:"borderTopLeftRadius",left:"borderTopRightRadius",right:"borderBottomLeftRadius",top:"borderBottomRightRadius"};function Oze({position:e,arrowSize:r,arrowOffset:n,arrowRadius:o,arrowPosition:a,arrowX:i,arrowY:s,dir:l}){const[c,d="center"]=e.split("-"),u={width:r,height:r,transform:"rotate(45deg)",position:"absolute",[Ize[c]]:o},h=-r/2;return c==="left"?{...u,...hY(d,s,n,a),right:h,borderLeftColor:"transparent",borderBottomColor:"transparent",clipPath:"polygon(100% 0, 0 0, 100% 100%)"}:c==="right"?{...u,...hY(d,s,n,a),left:h,borderRightColor:"transparent",borderTopColor:"transparent",clipPath:"polygon(0 100%, 0 0, 100% 100%)"}:c==="top"?{...u,...fY(d,i,n,a,l),bottom:h,borderTopColor:"transparent",borderLeftColor:"transparent",clipPath:"polygon(0 100%, 100% 100%, 100% 0)"}:c==="bottom"?{...u,...fY(d,i,n,a,l),top:h,borderBottomColor:"transparent",borderRightColor:"transparent",clipPath:"polygon(0 100%, 0 0, 100% 0)"}:{}}const $2=E.forwardRef(({position:e,arrowSize:r,arrowOffset:n,arrowRadius:o,arrowPosition:a,visible:i,arrowX:s,arrowY:l,style:c,...d},u)=>{const{dir:h}=Rd();return i?y.jsx("div",{...d,ref:u,style:{...c,...Oze({position:e,arrowSize:r,arrowOffset:n,arrowRadius:o,arrowPosition:a,dir:h,arrowX:s,arrowY:l})}}):null});$2.displayName="@mantine/core/FloatingArrow";function mY(e,r){if(e==="rtl"&&(r.includes("right")||r.includes("left"))){const[n,o]=r.split("-"),a=n==="right"?"left":"right";return o===void 0?a:`${a}-${o}`}return r}var gY={root:"m_9814e45f"};const jze={zIndex:Jx("modal")},Lze=(e,{gradient:r,color:n,backgroundOpacity:o,blur:a,radius:i,zIndex:s})=>({root:{"--overlay-bg":r||(n!==void 0||o!==void 0)&&hl(n||"#000",o??.6)||void 0,"--overlay-filter":a?`blur(${Pe(a)})`:void 0,"--overlay-radius":i===void 0?void 0:Mn(i),"--overlay-z-index":s?.toString()}}),B9=so((e,r)=>{const n=He("Overlay",jze,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,fixed:d,center:u,children:h,radius:f,zIndex:g,gradient:b,blur:x,color:w,backgroundOpacity:k,mod:C,attributes:_,...T}=n,A=Dt({name:"Overlay",props:n,classes:gY,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:_,vars:c,varsResolver:Lze});return y.jsx(Re,{ref:r,...A("root"),mod:[{center:u,fixed:d},C],...T,children:h})});B9.classes=gY,B9.displayName="@mantine/core/Overlay";function F9(e){const r=document.createElement("div");return r.setAttribute("data-portal","true"),typeof e.className=="string"&&r.classList.add(...e.className.split(" ").filter(Boolean)),typeof e.style=="object"&&Object.assign(r.style,e.style),typeof e.id=="string"&&r.setAttribute("id",e.id),r}function Bze({target:e,reuseTargetNode:r,...n}){if(e)return typeof e=="string"?document.querySelector(e)||F9(n):e;if(r){const o=document.querySelector("[data-mantine-shared-portal-node]");if(o)return o;const a=F9(n);return a.setAttribute("data-mantine-shared-portal-node","true"),document.body.appendChild(a),a}return F9(n)}const Fze={reuseTargetNode:!0},j0=ht((e,r)=>{const{children:n,target:o,reuseTargetNode:a,...i}=He("Portal",Fze,e),[s,l]=E.useState(!1),c=E.useRef(null);return $0(()=>(l(!0),c.current=Bze({target:o,reuseTargetNode:a,...i}),G7(r,c.current),!o&&!a&&c.current&&document.body.appendChild(c.current),()=>{!o&&!a&&c.current&&document.body.removeChild(c.current)}),[o]),!s||!c.current?null:Ki.createPortal(y.jsx(y.Fragment,{children:n}),c.current)});j0.displayName="@mantine/core/Portal";const am=ht(({withinPortal:e=!0,children:r,...n},o)=>i2()==="test"||!e?y.jsx(y.Fragment,{children:r}):y.jsx(j0,{ref:o,...n,children:r}));am.displayName="@mantine/core/OptionalPortal";const L0=e=>({in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:`scale(.9) translateY(${e==="bottom"?10:-10}px)`},transitionProperty:"transform, opacity"}),P2={fade:{in:{opacity:1},out:{opacity:0},transitionProperty:"opacity"},"fade-up":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(30px)"},transitionProperty:"opacity, transform"},"fade-down":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(-30px)"},transitionProperty:"opacity, transform"},"fade-left":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(30px)"},transitionProperty:"opacity, transform"},"fade-right":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(-30px)"},transitionProperty:"opacity, transform"},scale:{in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:"scale(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-y":{in:{opacity:1,transform:"scaleY(1)"},out:{opacity:0,transform:"scaleY(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-x":{in:{opacity:1,transform:"scaleX(1)"},out:{opacity:0,transform:"scaleX(0)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"skew-up":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:"translateY(-20px) skew(-10deg, -5deg)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"skew-down":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:"translateY(20px) skew(-10deg, -5deg)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-left":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:"translateY(20px) rotate(-5deg)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-right":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:"translateY(20px) rotate(5deg)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-down":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(-100%)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-up":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(100%)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"slide-left":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(100%)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"slide-right":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(-100%)"},common:{transformOrigin:"right"},transitionProperty:"transform, opacity"},pop:{...L0("bottom"),common:{transformOrigin:"center center"}},"pop-bottom-left":{...L0("bottom"),common:{transformOrigin:"bottom left"}},"pop-bottom-right":{...L0("bottom"),common:{transformOrigin:"bottom right"}},"pop-top-left":{...L0("top"),common:{transformOrigin:"top left"}},"pop-top-right":{...L0("top"),common:{transformOrigin:"top right"}}},yY={entering:"in",entered:"in",exiting:"out",exited:"out","pre-exiting":"out","pre-entering":"out"};function Hze({transition:e,state:r,duration:n,timingFunction:o}){const a={WebkitBackfaceVisibility:"hidden",transitionDuration:`${n}ms`,transitionTimingFunction:o};return typeof e=="string"?e in P2?{transitionProperty:P2[e].transitionProperty,...a,...P2[e].common,...P2[e][yY[r]]}:{}:{transitionProperty:e.transitionProperty,...a,...e.common,...e[yY[r]]}}function Vze({duration:e,exitDuration:r,timingFunction:n,mounted:o,onEnter:a,onExit:i,onEntered:s,onExited:l,enterDelay:c,exitDelay:d}){const u=vo(),h=TU(),f=u.respectReducedMotion?h:!1,[g,b]=E.useState(f?0:e),[x,w]=E.useState(o?"entered":"exited"),k=E.useRef(-1),C=E.useRef(-1),_=E.useRef(-1);function T(){window.clearTimeout(k.current),window.clearTimeout(C.current),cancelAnimationFrame(_.current)}const A=D=>{T();const N=D?a:i,P=D?s:l,O=f?0:D?e:r;b(O),O===0?(typeof N=="function"&&N(),typeof P=="function"&&P(),w(D?"entered":"exited")):_.current=requestAnimationFrame(()=>{Zz.flushSync(()=>{w(D?"pre-entering":"pre-exiting")}),_.current=requestAnimationFrame(()=>{typeof N=="function"&&N(),w(D?"entering":"exiting"),k.current=window.setTimeout(()=>{typeof P=="function"&&P(),w(D?"entered":"exited")},O)})})},R=D=>{if(T(),typeof(D?c:d)!="number"){A(D);return}C.current=window.setTimeout(()=>{A(D)},D?c:d)};return gp(()=>{R(o)},[o]),E.useEffect(()=>()=>{T()},[]),{transitionDuration:g,transitionStatus:x,transitionTimingFunction:n||"ease"}}function Dd({keepMounted:e,transition:r="fade",duration:n=250,exitDuration:o=n,mounted:a,children:i,timingFunction:s="ease",onExit:l,onEntered:c,onEnter:d,onExited:u,enterDelay:h,exitDelay:f}){const g=i2(),{transitionDuration:b,transitionStatus:x,transitionTimingFunction:w}=Vze({mounted:a,exitDuration:o,duration:n,timingFunction:s,onExit:l,onEntered:c,onEnter:d,onExited:u,enterDelay:h,exitDelay:f});return b===0||g==="test"?a?y.jsx(y.Fragment,{children:i({})}):e?i({display:"none"}):null:x==="exited"?e?i({display:"none"}):null:y.jsx(y.Fragment,{children:i(Hze({transition:r,duration:b,state:x,timingFunction:w}))})}Dd.displayName="@mantine/core/Transition";const[qze,bY]=hi("Popover component was not found in the tree");function M2({children:e,active:r=!0,refProp:n="ref",innerRef:o}){const a=_U(r),i=Hr(a,o);return ps(e)?E.cloneElement(e,{[n]:i}):e}function vY(e){return y.jsx(D2,{tabIndex:-1,"data-autofocus":!0,...e})}M2.displayName="@mantine/core/FocusTrap",vY.displayName="@mantine/core/FocusTrapInitialFocus",M2.InitialFocus=vY;var xY={dropdown:"m_38a85659",arrow:"m_a31dc6c1",overlay:"m_3d7bc908"};const fc=ht((e,r)=>{const n=He("PopoverDropdown",null,e),{className:o,style:a,vars:i,children:s,onKeyDownCapture:l,variant:c,classNames:d,styles:u,...h}=n,f=bY(),g=QDe({opened:f.opened,shouldReturnFocus:f.returnFocus}),b=f.withRoles?{"aria-labelledby":f.getTargetId(),id:f.getDropdownId(),role:"dialog",tabIndex:-1}:{},x=Hr(r,f.floating);return f.disabled?null:y.jsx(am,{...f.portalProps,withinPortal:f.withinPortal,children:y.jsx(Dd,{mounted:f.opened,...f.transitionProps,transition:f.transitionProps?.transition||"fade",duration:f.transitionProps?.duration??150,keepMounted:f.keepMounted,exitDuration:typeof f.transitionProps?.exitDuration=="number"?f.transitionProps.exitDuration:f.transitionProps?.duration,children:w=>y.jsx(M2,{active:f.trapFocus&&f.opened,innerRef:x,children:y.jsxs(Re,{...b,...h,variant:c,onKeyDownCapture:HDe(()=>{f.onClose?.(),f.onDismiss?.()},{active:f.closeOnEscape,onTrigger:g,onKeyDown:l}),"data-position":f.placement,"data-fixed":f.floatingStrategy==="fixed"||void 0,...f.getStyles("dropdown",{className:o,props:n,classNames:d,styles:u,style:[{...w,zIndex:f.zIndex,top:f.y??0,left:f.x??0,width:f.width==="target"?void 0:Pe(f.width),...f.referenceHidden?{display:"none"}:null},f.resolvedStyles.dropdown,u?.dropdown,a]}),children:[s,y.jsx($2,{ref:f.arrowRef,arrowX:f.arrowX,arrowY:f.arrowY,visible:f.withArrow,position:f.placement,arrowSize:f.arrowSize,arrowRadius:f.arrowRadius,arrowOffset:f.arrowOffset,arrowPosition:f.arrowPosition,...f.getStyles("arrow",{props:n,classNames:d,styles:u})})]})})})})});fc.classes=xY,fc.displayName="@mantine/core/PopoverDropdown";const Uze={refProp:"ref",popupType:"dialog"},$d=ht((e,r)=>{const{children:n,refProp:o,popupType:a,...i}=He("PopoverTarget",Uze,e);if(!ps(n))throw new Error("Popover.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const s=i,l=bY(),c=Hr(l.reference,r2(n),r),d=l.withRoles?{"aria-haspopup":a,"aria-expanded":l.opened,"aria-controls":l.getDropdownId(),id:l.getTargetId()}:{};return E.cloneElement(n,{...s,...d,...l.targetProps,className:hs(l.targetProps.className,s.className,n.props.className),[o]:c,...l.controlled?null:{onClick:()=>{l.onToggle(),n.props.onClick?.()}}})});$d.displayName="@mantine/core/PopoverTarget";function Wze(e){if(e===void 0)return{shift:!0,flip:!0};const r={...e};return e.shift===void 0&&(r.shift=!0),e.flip===void 0&&(r.flip=!0),r}function Yze(e,r,n){const o=Wze(e.middlewares),a=[PW(e.offset),cze()];return e.dropdownVisible&&n!=="test"&&e.preventPositionChangeWhenVisible&&(o.flip=!1),o.shift&&a.push(A9(typeof o.shift=="boolean"?{limiter:MW(),padding:5}:{limiter:MW(),padding:5,...o.shift})),o.flip&&a.push(typeof o.flip=="boolean"?C2():C2(o.flip)),o.inline&&a.push(typeof o.inline=="boolean"?O0():O0(o.inline)),a.push(zW({element:e.arrowRef,padding:e.arrowOffset})),(o.size||e.width==="target")&&a.push(lze({...typeof o.size=="boolean"?{}:o.size,apply({rects:i,availableWidth:s,availableHeight:l,...c}){const d=r().refs.floating.current?.style??{};o.size&&(typeof o.size=="object"&&o.size.apply?o.size.apply({rects:i,availableWidth:s,availableHeight:l,...c}):Object.assign(d,{maxWidth:`${s}px`,maxHeight:`${l}px`})),e.width==="target"&&Object.assign(d,{width:`${i.reference.width}px`})}})),a}function Gze(e){const r=i2(),[n,o]=dc({value:e.opened,defaultValue:e.defaultOpened,finalValue:!1,onChange:e.onChange}),a=E.useRef(n),i=()=>{n&&!e.disabled&&o(!1)},s=()=>{e.disabled||o(!n)},l=A2({strategy:e.strategy,placement:e.preventPositionChangeWhenVisible?e.positionRef.current:e.position,middleware:Yze(e,()=>l,r),whileElementsMounted:e.keepMounted?void 0:_2});return E.useEffect(()=>{if(!(!l.refs.reference.current||!l.refs.floating.current)&&n)return _2(l.refs.reference.current,l.refs.floating.current,l.update)},[n,l.update]),gp(()=>{e.onPositionChange?.(l.placement),e.positionRef.current=l.placement},[l.placement,e.preventPositionChangeWhenVisible]),gp(()=>{n!==a.current&&(n?e.onOpen?.():e.onClose?.()),a.current=n},[n,e.onClose,e.onOpen]),gp(()=>{let c=-1;return n&&(c=window.setTimeout(()=>e.setDropdownVisible(!0),4)),()=>{window.clearTimeout(c)}},[n,e.position]),{floating:l,controlled:typeof e.opened=="boolean",opened:n,onClose:i,onToggle:s}}const Xze={position:"bottom",offset:8,positionDependencies:[],transitionProps:{transition:"fade",duration:150},middlewares:{flip:!0,shift:!0,inline:!1},arrowSize:7,arrowOffset:5,arrowRadius:0,arrowPosition:"side",closeOnClickOutside:!0,withinPortal:!0,closeOnEscape:!0,trapFocus:!1,withRoles:!0,returnFocus:!1,withOverlay:!1,hideDetached:!0,clickOutsideEvents:["mousedown","touchstart"],zIndex:Jx("popover"),__staticSelector:"Popover",width:"max-content"},Kze=(e,{radius:r,shadow:n})=>({dropdown:{"--popover-radius":r===void 0?void 0:Mn(r),"--popover-shadow":mU(n)}});function Rr(e){const r=He("Popover",Xze,e),{children:n,position:o,offset:a,onPositionChange:i,positionDependencies:s,opened:l,transitionProps:c,onExitTransitionEnd:d,onEnterTransitionEnd:u,width:h,middlewares:f,withArrow:g,arrowSize:b,arrowOffset:x,arrowRadius:w,arrowPosition:k,unstyled:C,classNames:_,styles:T,closeOnClickOutside:A,withinPortal:R,portalProps:D,closeOnEscape:N,clickOutsideEvents:P,trapFocus:O,onClose:F,onDismiss:L,onOpen:U,onChange:M,zIndex:V,radius:I,shadow:H,id:q,defaultOpened:Z,__staticSelector:W,withRoles:G,disabled:K,returnFocus:j,variant:Y,keepMounted:Q,vars:J,floatingStrategy:ie,withOverlay:ne,overlayProps:re,hideDetached:ge,attributes:De,preventPositionChangeWhenVisible:he,...me}=r,Te=Dt({name:W,props:r,classes:xY,classNames:_,styles:T,unstyled:C,attributes:De,rootSelector:"dropdown",vars:J,varsResolver:Kze}),{resolvedStyles:Ie}=s9({classNames:_,styles:T,props:r}),[Ze,rt]=E.useState(l??Z??!1),Rt=E.useRef(o),Qe=E.useRef(null),[Mt,Ke]=E.useState(null),[Ge,ct]=E.useState(null),{dir:dt}=Rd(),Ir=i2(),Ee=fi(q),Se=Gze({middlewares:f,width:h,position:mY(dt,o),offset:typeof a=="number"?a+(g?b/2:0):a,arrowRef:Qe,arrowOffset:x,onPositionChange:i,positionDependencies:s,opened:l,defaultOpened:Z,onChange:M,onOpen:U,onClose:F,onDismiss:L,strategy:ie,dropdownVisible:Ze,setDropdownVisible:rt,positionRef:Rt,disabled:K,preventPositionChangeWhenVisible:he,keepMounted:Q});yU(()=>{A&&(Se.onClose(),L?.())},P,[Mt,Ge]);const it=E.useCallback(It=>{Ke(It),Se.floating.refs.setReference(It)},[Se.floating.refs.setReference]),xt=E.useCallback(It=>{ct(It),Se.floating.refs.setFloating(It)},[Se.floating.refs.setFloating]),zt=E.useCallback(()=>{c?.onExited?.(),d?.(),rt(!1),he||(Rt.current=o)},[c?.onExited,d,he,o]),Fr=E.useCallback(()=>{c?.onEntered?.(),u?.()},[c?.onEntered,u]);return y.jsxs(qze,{value:{returnFocus:j,disabled:K,controlled:Se.controlled,reference:it,floating:xt,x:Se.floating.x,y:Se.floating.y,arrowX:Se.floating?.middlewareData?.arrow?.x,arrowY:Se.floating?.middlewareData?.arrow?.y,opened:Se.opened,arrowRef:Qe,transitionProps:{...c,onExited:zt,onEntered:Fr},width:h,withArrow:g,arrowSize:b,arrowOffset:x,arrowRadius:w,arrowPosition:k,placement:Se.floating.placement,trapFocus:O,withinPortal:R,portalProps:D,zIndex:V,radius:I,shadow:H,closeOnEscape:N,onDismiss:L,onClose:Se.onClose,onToggle:Se.onToggle,getTargetId:()=>`${Ee}-target`,getDropdownId:()=>`${Ee}-dropdown`,withRoles:G,targetProps:me,__staticSelector:W,classNames:_,styles:T,unstyled:C,variant:Y,keepMounted:Q,getStyles:Te,resolvedStyles:Ie,floatingStrategy:ie,referenceHidden:ge&&Ir!=="test"?Se.floating.middlewareData.hide?.referenceHidden:!1},children:[n,ne&&y.jsx(Dd,{transition:"fade",mounted:Se.opened,duration:c?.duration||250,exitDuration:c?.exitDuration||250,children:It=>y.jsx(am,{withinPortal:R,children:y.jsx(B9,{...re,...Te("overlay",{className:re?.className,style:[It,re?.style]})})})})]})}Rr.Target=$d,Rr.Dropdown=fc,Rr.displayName="@mantine/core/Popover",Rr.extend=e=>e;var bs={root:"m_5ae2e3c",barsLoader:"m_7a2bd4cd",bar:"m_870bb79","bars-loader-animation":"m_5d2b3b9d",dotsLoader:"m_4e3f22d7",dot:"m_870c4af","loader-dots-animation":"m_aac34a1",ovalLoader:"m_b34414df","oval-loader-animation":"m_f8e89c4b"};const wY=E.forwardRef(({className:e,...r},n)=>y.jsxs(Re,{component:"span",className:hs(bs.barsLoader,e),...r,ref:n,children:[y.jsx("span",{className:bs.bar}),y.jsx("span",{className:bs.bar}),y.jsx("span",{className:bs.bar})]}));wY.displayName="@mantine/core/Bars";const kY=E.forwardRef(({className:e,...r},n)=>y.jsxs(Re,{component:"span",className:hs(bs.dotsLoader,e),...r,ref:n,children:[y.jsx("span",{className:bs.dot}),y.jsx("span",{className:bs.dot}),y.jsx("span",{className:bs.dot})]}));kY.displayName="@mantine/core/Dots";const _Y=E.forwardRef(({className:e,...r},n)=>y.jsx(Re,{component:"span",className:hs(bs.ovalLoader,e),...r,ref:n}));_Y.displayName="@mantine/core/Oval";const EY={bars:wY,oval:_Y,dots:kY},Zze={loaders:EY,type:"oval"},Qze=(e,{size:r,color:n})=>({root:{"--loader-size":kr(r,"loader-size"),"--loader-color":n?Ia(n,e):void 0}}),im=ht((e,r)=>{const n=He("Loader",Zze,e),{size:o,color:a,type:i,vars:s,className:l,style:c,classNames:d,styles:u,unstyled:h,loaders:f,variant:g,children:b,attributes:x,...w}=n,k=Dt({name:"Loader",props:n,classes:bs,className:l,style:c,classNames:d,styles:u,unstyled:h,attributes:x,vars:s,varsResolver:Qze});return b?y.jsx(Re,{...k("root"),ref:r,...w,children:b}):y.jsx(Re,{...k("root"),ref:r,component:f[i],variant:g,size:o,...w})});im.defaultLoaders=EY,im.classes=bs,im.displayName="@mantine/core/Loader";var sm={root:"m_8d3f4000",icon:"m_8d3afb97",loader:"m_302b9fb1",group:"m_1a0f1b21",groupSection:"m_437b6484"};const SY={orientation:"horizontal"},Jze=(e,{borderWidth:r})=>({group:{"--ai-border-width":Pe(r)}}),z2=ht((e,r)=>{const n=He("ActionIconGroup",SY,e),{className:o,style:a,classNames:i,styles:s,unstyled:l,orientation:c,vars:d,borderWidth:u,variant:h,mod:f,attributes:g,...b}=He("ActionIconGroup",SY,e),x=Dt({name:"ActionIconGroup",props:n,classes:sm,className:o,style:a,classNames:i,styles:s,unstyled:l,attributes:g,vars:d,varsResolver:Jze,rootSelector:"group"});return y.jsx(Re,{...x("group"),ref:r,variant:h,mod:[{"data-orientation":c},f],role:"group",...b})});z2.classes=sm,z2.displayName="@mantine/core/ActionIconGroup";const eIe=(e,{radius:r,color:n,gradient:o,variant:a,autoContrast:i,size:s})=>{const l=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:o,variant:a||"filled",autoContrast:i});return{groupSection:{"--section-height":kr(s,"section-height"),"--section-padding-x":kr(s,"section-padding-x"),"--section-fz":Io(s),"--section-radius":r===void 0?void 0:Mn(r),"--section-bg":n||a?l.background:void 0,"--section-color":l.color,"--section-bd":n||a?l.border:void 0}}},H9=ht((e,r)=>{const n=He("ActionIconGroupSection",null,e),{className:o,style:a,classNames:i,styles:s,unstyled:l,vars:c,variant:d,gradient:u,radius:h,autoContrast:f,attributes:g,...b}=n,x=Dt({name:"ActionIconGroupSection",props:n,classes:sm,className:o,style:a,classNames:i,styles:s,unstyled:l,attributes:g,vars:c,varsResolver:eIe,rootSelector:"groupSection"});return y.jsx(Re,{...x("groupSection"),ref:r,variant:d,...b})});H9.classes=sm,H9.displayName="@mantine/core/ActionIconGroupSection";const tIe=(e,{size:r,radius:n,variant:o,gradient:a,color:i,autoContrast:s})=>{const l=e.variantColorResolver({color:i||e.primaryColor,theme:e,gradient:a,variant:o||"filled",autoContrast:s});return{root:{"--ai-size":kr(r,"ai-size"),"--ai-radius":n===void 0?void 0:Mn(n),"--ai-bg":i||o?l.background:void 0,"--ai-hover":i||o?l.hover:void 0,"--ai-hover-color":i||o?l.hoverColor:void 0,"--ai-color":l.color,"--ai-bd":i||o?l.border:void 0}}},br=so((e,r)=>{const n=He("ActionIcon",null,e),{className:o,unstyled:a,variant:i,classNames:s,styles:l,style:c,loading:d,loaderProps:u,size:h,color:f,radius:g,__staticSelector:b,gradient:x,vars:w,children:k,disabled:C,"data-disabled":_,autoContrast:T,mod:A,attributes:R,...D}=n,N=Dt({name:["ActionIcon",b],props:n,className:o,style:c,classes:sm,classNames:s,styles:l,unstyled:a,attributes:R,vars:w,varsResolver:tIe});return y.jsxs(Er,{...N("root",{active:!C&&!d&&!_}),...D,unstyled:a,variant:i,size:h,disabled:C||d,ref:r,mod:[{loading:d,disabled:C||_},A],children:[typeof d=="boolean"&&y.jsx(Dd,{mounted:d,transition:"slide-down",duration:150,children:P=>y.jsx(Re,{component:"span",...N("loader",{style:P}),"aria-hidden":!0,children:y.jsx(im,{color:"var(--ai-color)",size:"calc(var(--ai-size) * 0.55)",...u})})}),y.jsx(Re,{component:"span",mod:{loading:d},...N("icon"),children:k})]})});br.classes=sm,br.displayName="@mantine/core/ActionIcon",br.Group=z2,br.GroupSection=H9;const CY=E.forwardRef(({size:e="var(--cb-icon-size, 70%)",style:r,...n},o)=>y.jsx("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{...r,width:e,height:e},ref:o,...n,children:y.jsx("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})}));CY.displayName="@mantine/core/CloseIcon";var TY={root:"m_86a44da5","root--subtle":"m_220c80f2"};const rIe={variant:"subtle"},nIe=(e,{size:r,radius:n,iconSize:o})=>({root:{"--cb-size":kr(r,"cb-size"),"--cb-radius":n===void 0?void 0:Mn(n),"--cb-icon-size":Pe(o)}}),wp=so((e,r)=>{const n=He("CloseButton",rIe,e),{iconSize:o,children:a,vars:i,radius:s,className:l,classNames:c,style:d,styles:u,unstyled:h,"data-disabled":f,disabled:g,variant:b,icon:x,mod:w,attributes:k,__staticSelector:C,..._}=n,T=Dt({name:C||"CloseButton",props:n,className:l,style:d,classes:TY,classNames:c,styles:u,unstyled:h,attributes:k,vars:i,varsResolver:nIe});return y.jsxs(Er,{ref:r,..._,unstyled:h,variant:b,disabled:g,mod:[{disabled:g||f},w],...T("root",{variant:b,active:!g&&!f}),children:[x||y.jsx(CY,{}),a]})});wp.classes=TY,wp.displayName="@mantine/core/CloseButton";function oIe(e){return E.Children.toArray(e).filter(Boolean)}var AY={root:"m_4081bf90"};const aIe={preventGrowOverflow:!0,gap:"md",align:"center",justify:"flex-start",wrap:"wrap"},iIe=(e,{grow:r,preventGrowOverflow:n,gap:o,align:a,justify:i,wrap:s},{childWidth:l})=>({root:{"--group-child-width":r&&n?l:void 0,"--group-gap":cc(o),"--group-align":a,"--group-justify":i,"--group-wrap":s}}),pn=ht((e,r)=>{const n=He("Group",aIe,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,children:c,gap:d,align:u,justify:h,wrap:f,grow:g,preventGrowOverflow:b,vars:x,variant:w,__size:k,mod:C,attributes:_,...T}=n,A=oIe(c),R=A.length,D=cc(d??"md"),N={childWidth:`calc(${100/R}% - (${D} - ${D} / ${R}))`},P=Dt({name:"Group",props:n,stylesCtx:N,className:a,style:i,classes:AY,classNames:o,styles:s,unstyled:l,attributes:_,vars:x,varsResolver:iIe});return y.jsx(Re,{...P("root"),ref:r,variant:w,mod:[{grow:g},C],size:k,...T,children:A})});pn.classes=AY,pn.displayName="@mantine/core/Group";const[sIe,lIe]=R0({size:"sm"}),RY=ht((e,r)=>{const n=He("InputClearButton",null,e),{size:o,variant:a,vars:i,classNames:s,styles:l,...c}=n,d=lIe(),{resolvedClassNames:u,resolvedStyles:h}=s9({classNames:s,styles:l,props:n});return y.jsx(wp,{variant:a||"transparent",ref:r,size:o||d?.size||"sm",classNames:u,styles:h,__staticSelector:"InputClearButton",style:{pointerEvents:"all",background:"var(--input-bg)",...c.style},...c})});RY.displayName="@mantine/core/InputClearButton";const cIe={xs:7,sm:8,md:10,lg:12,xl:15};function dIe({__clearable:e,__clearSection:r,rightSection:n,__defaultRightSection:o,size:a="sm"}){const i=e&&r;return i&&(n||o)?y.jsxs("div",{"data-combined-clear-section":!0,style:{display:"flex",gap:2,alignItems:"center",paddingInlineEnd:cIe[a]},children:[i,n||o]}):n===null?null:n||i||o}const[uIe,I2]=R0({offsetBottom:!1,offsetTop:!1,describedBy:void 0,getStyles:null,inputId:void 0,labelId:void 0});var bi={wrapper:"m_6c018570",input:"m_8fb7ebe7",section:"m_82577fc2",placeholder:"m_88bacfd0",root:"m_46b77525",label:"m_8fdc1311",required:"m_78a94662",error:"m_8f816625",description:"m_fe47ce59"};const pIe=(e,{size:r})=>({description:{"--input-description-size":r===void 0?void 0:`calc(${Io(r)} - ${Pe(2)})`}}),O2=ht((e,r)=>{const n=He("InputDescription",null,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,size:d,__staticSelector:u,__inheritStyles:h=!0,attributes:f,variant:g,...b}=He("InputDescription",null,n),x=I2(),w=Dt({name:["InputWrapper",u],props:n,classes:bi,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:f,rootSelector:"description",vars:c,varsResolver:pIe}),k=h&&x?.getStyles||w;return y.jsx(Re,{component:"p",ref:r,variant:g,size:d,...k("description",x?.getStyles?{className:a,style:i}:void 0),...b})});O2.classes=bi,O2.displayName="@mantine/core/InputDescription";const hIe=(e,{size:r})=>({error:{"--input-error-size":r===void 0?void 0:`calc(${Io(r)} - ${Pe(2)})`}}),j2=ht((e,r)=>{const n=He("InputError",null,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,size:d,attributes:u,__staticSelector:h,__inheritStyles:f=!0,variant:g,...b}=n,x=Dt({name:["InputWrapper",h],props:n,classes:bi,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:u,rootSelector:"error",vars:c,varsResolver:hIe}),w=I2(),k=f&&w?.getStyles||x;return y.jsx(Re,{component:"p",ref:r,variant:g,size:d,...k("error",w?.getStyles?{className:a,style:i}:void 0),...b})});j2.classes=bi,j2.displayName="@mantine/core/InputError";const NY={labelElement:"label"},fIe=(e,{size:r})=>({label:{"--input-label-size":Io(r),"--input-asterisk-color":void 0}}),L2=ht((e,r)=>{const n=He("InputLabel",NY,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,labelElement:d,size:u,required:h,htmlFor:f,onMouseDown:g,children:b,__staticSelector:x,variant:w,mod:k,attributes:C,..._}=He("InputLabel",NY,n),T=Dt({name:["InputWrapper",x],props:n,classes:bi,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:C,rootSelector:"label",vars:c,varsResolver:fIe}),A=I2(),R=A?.getStyles||T;return y.jsxs(Re,{...R("label",A?.getStyles?{className:a,style:i}:void 0),component:d,variant:w,size:u,ref:r,htmlFor:d==="label"?f:void 0,mod:[{required:h},k],onMouseDown:D=>{g?.(D),!D.defaultPrevented&&D.detail>1&&D.preventDefault()},..._,children:[b,h&&y.jsx("span",{...R("required"),"aria-hidden":!0,children:" *"})]})});L2.classes=bi,L2.displayName="@mantine/core/InputLabel";const V9=ht((e,r)=>{const n=He("InputPlaceholder",null,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,__staticSelector:d,variant:u,error:h,mod:f,attributes:g,...b}=n,x=Dt({name:["InputPlaceholder",d],props:n,classes:bi,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:g,rootSelector:"placeholder"});return y.jsx(Re,{...x("placeholder"),mod:[{error:!!h},f],component:"span",variant:u,ref:r,...b})});V9.classes=bi,V9.displayName="@mantine/core/InputPlaceholder";function mIe(e,{hasDescription:r,hasError:n}){const o=e.findIndex(l=>l==="input"),a=e.slice(0,o),i=e.slice(o+1),s=r&&a.includes("description")||n&&a.includes("error");return{offsetBottom:r&&i.includes("description")||n&&i.includes("error"),offsetTop:s}}const gIe={labelElement:"label",inputContainer:e=>e,inputWrapperOrder:["label","description","input","error"]},yIe=(e,{size:r})=>({label:{"--input-label-size":Io(r),"--input-asterisk-color":void 0},error:{"--input-error-size":r===void 0?void 0:`calc(${Io(r)} - ${Pe(2)})`},description:{"--input-description-size":r===void 0?void 0:`calc(${Io(r)} - ${Pe(2)})`}}),q9=ht((e,r)=>{const n=He("InputWrapper",gIe,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,size:d,variant:u,__staticSelector:h,inputContainer:f,inputWrapperOrder:g,label:b,error:x,description:w,labelProps:k,descriptionProps:C,errorProps:_,labelElement:T,children:A,withAsterisk:R,id:D,required:N,__stylesApiProps:P,mod:O,attributes:F,...L}=n,U=Dt({name:["InputWrapper",h],props:P||n,classes:bi,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:F,vars:c,varsResolver:yIe}),M={size:d,variant:u,__staticSelector:h},V=fi(D),I=typeof R=="boolean"?R:N,H=_?.id||`${V}-error`,q=C?.id||`${V}-description`,Z=V,W=!!x&&typeof x!="boolean",G=!!w,K=`${W?H:""} ${G?q:""}`,j=K.trim().length>0?K.trim():void 0,Y=k?.id||`${V}-label`,Q=b&&y.jsx(L2,{labelElement:T,id:Y,htmlFor:Z,required:I,...M,...k,children:b},"label"),J=G&&y.jsx(O2,{...C,...M,size:C?.size||M.size,id:C?.id||q,children:w},"description"),ie=y.jsx(E.Fragment,{children:f(A)},"input"),ne=W&&E.createElement(j2,{..._,...M,size:_?.size||M.size,key:"error",id:_?.id||H},x),re=g.map(ge=>{switch(ge){case"label":return Q;case"input":return ie;case"description":return J;case"error":return ne;default:return null}});return y.jsx(uIe,{value:{getStyles:U,describedBy:j,inputId:Z,labelId:Y,...mIe(g,{hasDescription:G,hasError:W})},children:y.jsx(Re,{ref:r,variant:u,size:d,mod:[{error:!!x},O],...U("root"),...L,children:re})})});q9.classes=bi,q9.displayName="@mantine/core/InputWrapper";const bIe={variant:"default",leftSectionPointerEvents:"none",rightSectionPointerEvents:"none",withAria:!0,withErrorStyles:!0,size:"sm"},vIe=(e,r,n)=>({wrapper:{"--input-margin-top":n.offsetTop?"calc(var(--mantine-spacing-xs) / 2)":void 0,"--input-margin-bottom":n.offsetBottom?"calc(var(--mantine-spacing-xs) / 2)":void 0,"--input-height":kr(r.size,"input-height"),"--input-fz":Io(r.size),"--input-radius":r.radius===void 0?void 0:Mn(r.radius),"--input-left-section-width":r.leftSectionWidth!==void 0?Pe(r.leftSectionWidth):void 0,"--input-right-section-width":r.rightSectionWidth!==void 0?Pe(r.rightSectionWidth):void 0,"--input-padding-y":r.multiline?kr(r.size,"input-padding-y"):void 0,"--input-left-section-pointer-events":r.leftSectionPointerEvents,"--input-right-section-pointer-events":r.rightSectionPointerEvents}}),La=so((e,r)=>{const n=He("Input",bIe,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,required:c,__staticSelector:d,__stylesApiProps:u,size:h,wrapperProps:f,error:g,disabled:b,leftSection:x,leftSectionProps:w,leftSectionWidth:k,rightSection:C,rightSectionProps:_,rightSectionWidth:T,rightSectionPointerEvents:A,leftSectionPointerEvents:R,variant:D,vars:N,pointer:P,multiline:O,radius:F,id:L,withAria:U,withErrorStyles:M,mod:V,inputSize:I,attributes:H,__clearSection:q,__clearable:Z,__defaultRightSection:W,...G}=n,{styleProps:K,rest:j}=WU(G),Y=I2(),Q={offsetBottom:Y?.offsetBottom,offsetTop:Y?.offsetTop},J=Dt({name:["Input",d],props:u||n,classes:bi,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:H,stylesCtx:Q,rootSelector:"wrapper",vars:N,varsResolver:vIe}),ie=U?{required:c,disabled:b,"aria-invalid":!!g,"aria-describedby":Y?.describedBy,id:Y?.inputId||L}:{},ne=dIe({__clearable:Z,__clearSection:q,rightSection:C,__defaultRightSection:W,size:h});return y.jsx(sIe,{value:{size:h||"sm"},children:y.jsxs(Re,{...J("wrapper"),...K,...f,mod:[{error:!!g&&M,pointer:P,disabled:b,multiline:O,"data-with-right-section":!!ne,"data-with-left-section":!!x},V],variant:D,size:h,children:[x&&y.jsx("div",{...w,"data-position":"left",...J("section",{className:w?.className,style:w?.style}),children:x}),y.jsx(Re,{component:"input",...j,...ie,ref:r,required:c,mod:{disabled:b,error:!!g&&M},variant:D,__size:I,...J("input")}),ne&&y.jsx("div",{..._,"data-position":"right",...J("section",{className:_?.className,style:_?.style}),children:ne})]})})});La.classes=bi,La.Wrapper=q9,La.Label=L2,La.Error=j2,La.Description=O2,La.Placeholder=V9,La.ClearButton=RY,La.displayName="@mantine/core/Input";const xIe={gap:{type:"spacing",property:"gap"},rowGap:{type:"spacing",property:"rowGap"},columnGap:{type:"spacing",property:"columnGap"},align:{type:"identity",property:"alignItems"},justify:{type:"identity",property:"justifyContent"},wrap:{type:"identity",property:"flexWrap"},direction:{type:"identity",property:"flexDirection"}};var DY={root:"m_8bffd616"};const mc=so((e,r)=>{const n=He("Flex",null,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,gap:d,rowGap:u,columnGap:h,align:f,justify:g,wrap:b,direction:x,attributes:w,...k}=n,C=Dt({name:"Flex",classes:DY,props:n,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:w,vars:c}),_=vo(),T=d2(),A=XU({styleProps:{gap:d,rowGap:u,columnGap:h,align:f,justify:g,wrap:b,direction:x},theme:_,data:xIe});return y.jsxs(y.Fragment,{children:[A.hasResponsiveStyles&&y.jsx(c2,{selector:`.${T}`,styles:A.styles,media:A.media}),y.jsx(Re,{ref:r,...C("root",{className:T,style:Uf(A.inlineStyles)}),...k})]})});mc.classes=DY,mc.displayName="@mantine/core/Flex";function wIe(e,r){if(!r||!e)return!1;let n=r.parentNode;for(;n!=null;){if(n===e)return!0;n=n.parentNode}return!1}function kIe({target:e,parent:r,ref:n,displayAfterTransitionEnd:o}){const a=E.useRef(-1),[i,s]=E.useState(!1),[l,c]=E.useState(typeof o=="boolean"?o:!1),d=()=>{if(!e||!r||!n.current)return;const g=e.getBoundingClientRect(),b=r.getBoundingClientRect(),x=window.getComputedStyle(e),w=window.getComputedStyle(r),k=Nd(x.borderTopWidth)+Nd(w.borderTopWidth),C=Nd(x.borderLeftWidth)+Nd(w.borderLeftWidth),_={top:g.top-b.top-k,left:g.left-b.left-C,width:g.width,height:g.height};n.current.style.transform=`translateY(${_.top}px) translateX(${_.left}px)`,n.current.style.width=`${_.width}px`,n.current.style.height=`${_.height}px`},u=()=>{window.clearTimeout(a.current),n.current&&(n.current.style.transitionDuration="0ms"),d(),a.current=window.setTimeout(()=>{n.current&&(n.current.style.transitionDuration="")},30)},h=E.useRef(null),f=E.useRef(null);return E.useEffect(()=>{if(d(),e)return h.current=new ResizeObserver(u),h.current.observe(e),r&&(f.current=new ResizeObserver(u),f.current.observe(r)),()=>{h.current?.disconnect(),f.current?.disconnect()}},[r,e]),E.useEffect(()=>{if(r){const g=b=>{wIe(b.target,r)&&(u(),c(!1))};return r.addEventListener("transitionend",g),()=>{r.removeEventListener("transitionend",g)}}},[r]),NU(()=>{T$e()!=="test"&&s(!0)},20,{autoInvoke:!0}),DU(g=>{g.forEach(b=>{b.type==="attributes"&&b.attributeName==="dir"&&u()})},{attributes:!0,attributeFilter:["dir"]},()=>document.documentElement),{initialized:i,hidden:l}}var $Y={root:"m_96b553a6"};const _Ie=(e,{transitionDuration:r})=>({root:{"--transition-duration":typeof r=="number"?`${r}ms`:r}}),B2=ht((e,r)=>{const n=He("FloatingIndicator",null,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,target:d,parent:u,transitionDuration:h,mod:f,displayAfterTransitionEnd:g,attributes:b,...x}=n,w=Dt({name:"FloatingIndicator",classes:$Y,props:n,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:b,vars:c,varsResolver:_Ie}),k=E.useRef(null),{initialized:C,hidden:_}=kIe({target:d,parent:u,ref:k,displayAfterTransitionEnd:g}),T=Hr(r,k);return!d||!u?null:y.jsx(Re,{ref:T,mod:[{initialized:C,hidden:_},f],...w("root"),...x})});B2.displayName="@mantine/core/FloatingIndicator",B2.classes=$Y;function PY({open:e,close:r,openDelay:n,closeDelay:o}){const a=E.useRef(-1),i=E.useRef(-1),s=()=>{window.clearTimeout(a.current),window.clearTimeout(i.current)},l=()=>{s(),n===0||n===void 0?e():a.current=window.setTimeout(e,n)},c=()=>{s(),o===0||o===void 0?r():i.current=window.setTimeout(r,o)};return E.useEffect(()=>s,[]),{openDropdown:l,closeDropdown:c}}function U9({style:e,size:r=16,...n}){return y.jsx("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{...e,width:Pe(r),height:Pe(r),display:"block"},...n,children:y.jsx("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}U9.displayName="@mantine/core/AccordionChevron";var MY={root:"m_66836ed3",wrapper:"m_a5d60502",body:"m_667c2793",title:"m_6a03f287",label:"m_698f4f23",icon:"m_667f2a6a",message:"m_7fa78076",closeButton:"m_87f54839"};const EIe=(e,{radius:r,color:n,variant:o,autoContrast:a})=>{const i=e.variantColorResolver({color:n||e.primaryColor,theme:e,variant:o||"light",autoContrast:a});return{root:{"--alert-radius":r===void 0?void 0:Mn(r),"--alert-bg":n||o?i.background:void 0,"--alert-color":i.color,"--alert-bd":n||o?i.border:void 0}}},F2=ht((e,r)=>{const n=He("Alert",null,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,radius:d,color:u,title:h,children:f,id:g,icon:b,withCloseButton:x,onClose:w,closeButtonLabel:k,variant:C,autoContrast:_,attributes:T,...A}=n,R=Dt({name:"Alert",classes:MY,props:n,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:T,vars:c,varsResolver:EIe}),D=fi(g),N=h&&`${D}-title`||void 0,P=`${D}-body`;return y.jsx(Re,{id:D,...R("root",{variant:C}),variant:C,ref:r,...A,role:"alert","aria-describedby":f?P:void 0,"aria-labelledby":h?N:void 0,children:y.jsxs("div",{...R("wrapper"),children:[b&&y.jsx("div",{...R("icon"),children:b}),y.jsxs("div",{...R("body"),children:[h&&y.jsx("div",{...R("title"),"data-with-close-button":x||void 0,children:y.jsx("span",{id:N,...R("label"),children:h})}),f&&y.jsx("div",{id:P,...R("message"),"data-variant":C,children:f})]}),x&&y.jsx(wp,{...R("closeButton"),onClick:w,variant:"transparent",size:16,iconSize:16,"aria-label":k,unstyled:l})]})})});F2.classes=MY,F2.displayName="@mantine/core/Alert";var zY={root:"m_b6d8b162"};function SIe(e){if(e==="start")return"start";if(e==="end"||e)return"end"}const CIe={inherit:!1},TIe=(e,{variant:r,lineClamp:n,gradient:o,size:a,color:i})=>({root:{"--text-fz":Io(a),"--text-lh":VDe(a),"--text-gradient":r==="gradient"?Q7(o,e):void 0,"--text-line-clamp":typeof n=="number"?n.toString():void 0,"--text-color":i?Ia(i,e):void 0}}),ft=so((e,r)=>{const n=He("Text",CIe,e),{lineClamp:o,truncate:a,inline:i,inherit:s,gradient:l,span:c,__staticSelector:d,vars:u,className:h,style:f,classNames:g,styles:b,unstyled:x,variant:w,mod:k,size:C,attributes:_,...T}=n,A=Dt({name:["Text",d],props:n,classes:zY,className:h,style:f,classNames:g,styles:b,unstyled:x,attributes:_,vars:u,varsResolver:TIe});return y.jsx(Re,{...A("root",{focusable:!0}),ref:r,component:c?"span":"p",variant:w,mod:[{"data-truncate":SIe(a),"data-line-clamp":typeof o=="number","data-inline":i,"data-inherit":s},k],size:C,...T})});ft.classes=zY,ft.displayName="@mantine/core/Text";var IY={root:"m_849cf0da"};const AIe={underline:"hover"},W9=so((e,r)=>{const{underline:n,className:o,unstyled:a,mod:i,...s}=He("Anchor",AIe,e);return y.jsx(ft,{component:"a",ref:r,className:hs({[IY.root]:!a},o),...s,mod:[{underline:n},i],__staticSelector:"Anchor",unstyled:a})});W9.classes=IY,W9.displayName="@mantine/core/Anchor";var vi={dropdown:"m_88b62a41",search:"m_985517d8",options:"m_b2821a6e",option:"m_92253aa5",empty:"m_2530cd1d",header:"m_858f94bd",footer:"m_82b967cb",group:"m_254f3e4f",groupLabel:"m_2bb2e9e5",chevron:"m_2943220b",optionsDropdownOption:"m_390b5f4",optionsDropdownCheckIcon:"m_8ee53fc2"};const RIe={error:null},NIe=(e,{size:r,color:n})=>({chevron:{"--combobox-chevron-size":kr(r,"combobox-chevron-size"),"--combobox-chevron-color":n?Ia(n,e):void 0}}),Y9=ht((e,r)=>{const n=He("ComboboxChevron",RIe,e),{size:o,error:a,style:i,className:s,classNames:l,styles:c,unstyled:d,vars:u,mod:h,...f}=n,g=Dt({name:"ComboboxChevron",classes:vi,props:n,style:i,className:s,classNames:l,styles:c,unstyled:d,vars:u,varsResolver:NIe,rootSelector:"chevron"});return y.jsx(Re,{component:"svg",...f,...g("chevron"),size:o,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",mod:["combobox-chevron",{error:a},h],ref:r,children:y.jsx("path",{d:"M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})});Y9.classes=vi,Y9.displayName="@mantine/core/ComboboxChevron";const[DIe,xi]=hi("Combobox component was not found in tree"),OY=E.forwardRef(({size:e,onMouseDown:r,onClick:n,onClear:o,...a},i)=>y.jsx(La.ClearButton,{ref:i,tabIndex:-1,"aria-hidden":!0,...a,onMouseDown:s=>{s.preventDefault(),r?.(s)},onClick:s=>{o(),n?.(s)}}));OY.displayName="@mantine/core/ComboboxClearButton";const H2=ht((e,r)=>{const{classNames:n,styles:o,className:a,style:i,hidden:s,...l}=He("ComboboxDropdown",null,e),c=xi();return y.jsx(Rr.Dropdown,{...l,ref:r,role:"presentation","data-hidden":s||void 0,...c.getStyles("dropdown",{className:a,style:i,classNames:n,styles:o})})});H2.classes=vi,H2.displayName="@mantine/core/ComboboxDropdown";const $Ie={refProp:"ref"},jY=ht((e,r)=>{const{children:n,refProp:o}=He("ComboboxDropdownTarget",$Ie,e);if(xi(),!ps(n))throw new Error("Combobox.DropdownTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");return y.jsx(Rr.Target,{ref:r,refProp:o,children:n})});jY.displayName="@mantine/core/ComboboxDropdownTarget";const B0=ht((e,r)=>{const{classNames:n,className:o,style:a,styles:i,vars:s,...l}=He("ComboboxEmpty",null,e),c=xi();return y.jsx(Re,{ref:r,...c.getStyles("empty",{className:o,classNames:n,styles:i,style:a}),...l})});B0.classes=vi,B0.displayName="@mantine/core/ComboboxEmpty";function G9({onKeyDown:e,withKeyboardNavigation:r,withAriaAttributes:n,withExpandedAttribute:o,targetType:a,autoComplete:i}){const s=xi(),[l,c]=E.useState(null),d=u=>{if(e?.(u),!s.readOnly&&r){if(u.nativeEvent.isComposing)return;if(u.nativeEvent.code==="ArrowDown"&&(u.preventDefault(),s.store.dropdownOpened?c(s.store.selectNextOption()):(s.store.openDropdown("keyboard"),c(s.store.selectActiveOption()),s.store.updateSelectedOptionIndex("selected",{scrollIntoView:!0}))),u.nativeEvent.code==="ArrowUp"&&(u.preventDefault(),s.store.dropdownOpened?c(s.store.selectPreviousOption()):(s.store.openDropdown("keyboard"),c(s.store.selectActiveOption()),s.store.updateSelectedOptionIndex("selected",{scrollIntoView:!0}))),u.nativeEvent.code==="Enter"||u.nativeEvent.code==="NumpadEnter"){if(u.nativeEvent.keyCode===229)return;const h=s.store.getSelectedOptionIndex();s.store.dropdownOpened&&h!==-1?(u.preventDefault(),s.store.clickSelectedOption()):a==="button"&&(u.preventDefault(),s.store.openDropdown("keyboard"))}u.key==="Escape"&&s.store.closeDropdown("keyboard"),u.nativeEvent.code==="Space"&&a==="button"&&(u.preventDefault(),s.store.toggleDropdown("keyboard"))}};return{...n?{"aria-haspopup":"listbox","aria-expanded":o?!!(s.store.listId&&s.store.dropdownOpened):void 0,"aria-controls":s.store.dropdownOpened&&s.store.listId?s.store.listId:void 0,"aria-activedescendant":s.store.dropdownOpened&&l||void 0,autoComplete:i,"data-expanded":s.store.dropdownOpened||void 0,"data-mantine-stop-propagation":s.store.dropdownOpened||void 0}:{},onKeyDown:d}}const PIe={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},LY=ht((e,r)=>{const{children:n,refProp:o,withKeyboardNavigation:a,withAriaAttributes:i,withExpandedAttribute:s,targetType:l,autoComplete:c,...d}=He("ComboboxEventsTarget",PIe,e);if(!ps(n))throw new Error("Combobox.EventsTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const u=xi(),h=G9({targetType:l,withAriaAttributes:i,withKeyboardNavigation:a,withExpandedAttribute:s,onKeyDown:n.props.onKeyDown,autoComplete:c});return E.cloneElement(n,{...h,...d,[o]:Hr(r,u.store.targetRef,r2(n))})});LY.displayName="@mantine/core/ComboboxEventsTarget";const X9=ht((e,r)=>{const{classNames:n,className:o,style:a,styles:i,vars:s,...l}=He("ComboboxFooter",null,e),c=xi();return y.jsx(Re,{ref:r,...c.getStyles("footer",{className:o,classNames:n,style:a,styles:i}),...l,onMouseDown:d=>{d.preventDefault()}})});X9.classes=vi,X9.displayName="@mantine/core/ComboboxFooter";const K9=ht((e,r)=>{const{classNames:n,className:o,style:a,styles:i,vars:s,children:l,label:c,id:d,...u}=He("ComboboxGroup",null,e),h=xi(),f=fi(d);return y.jsxs(Re,{ref:r,role:"group","aria-labelledby":c?f:void 0,...h.getStyles("group",{className:o,classNames:n,style:a,styles:i}),...u,children:[c&&y.jsx("div",{id:f,...h.getStyles("groupLabel",{classNames:n,styles:i}),children:c}),l]})});K9.classes=vi,K9.displayName="@mantine/core/ComboboxGroup";const Z9=ht((e,r)=>{const{classNames:n,className:o,style:a,styles:i,vars:s,...l}=He("ComboboxHeader",null,e),c=xi();return y.jsx(Re,{ref:r,...c.getStyles("header",{className:o,classNames:n,style:a,styles:i}),...l,onMouseDown:d=>{d.preventDefault()}})});Z9.classes=vi,Z9.displayName="@mantine/core/ComboboxHeader";function BY({value:e,valuesDivider:r=",",...n}){return y.jsx("input",{type:"hidden",value:Array.isArray(e)?e.join(r):e||"",...n})}BY.displayName="@mantine/core/ComboboxHiddenInput";const F0=ht((e,r)=>{const n=He("ComboboxOption",null,e),{classNames:o,className:a,style:i,styles:s,vars:l,onClick:c,id:d,active:u,onMouseDown:h,onMouseOver:f,disabled:g,selected:b,mod:x,...w}=n,k=xi(),C=E.useId(),_=d||C;return y.jsx(Re,{...k.getStyles("option",{className:a,classNames:o,styles:s,style:i}),...w,ref:r,id:_,mod:["combobox-option",{"combobox-active":u,"combobox-disabled":g,"combobox-selected":b},x],role:"option",onClick:T=>{g?T.preventDefault():(k.onOptionSubmit?.(n.value,n),c?.(T))},onMouseDown:T=>{T.preventDefault(),h?.(T)},onMouseOver:T=>{k.resetSelectionOnOptionHover&&k.store.resetSelectedOption(),f?.(T)}})});F0.classes=vi,F0.displayName="@mantine/core/ComboboxOption";const V2=ht((e,r)=>{const n=He("ComboboxOptions",null,e),{classNames:o,className:a,style:i,styles:s,id:l,onMouseDown:c,labelledBy:d,...u}=n,h=xi(),f=fi(l);return E.useEffect(()=>{h.store.setListId(f)},[f]),y.jsx(Re,{ref:r,...h.getStyles("options",{className:a,style:i,classNames:o,styles:s}),...u,id:f,role:"listbox","aria-labelledby":d,onMouseDown:g=>{g.preventDefault(),c?.(g)}})});V2.classes=vi,V2.displayName="@mantine/core/ComboboxOptions";const MIe={withAriaAttributes:!0,withKeyboardNavigation:!0},Q9=ht((e,r)=>{const n=He("ComboboxSearch",MIe,e),{classNames:o,styles:a,unstyled:i,vars:s,withAriaAttributes:l,onKeyDown:c,withKeyboardNavigation:d,size:u,...h}=n,f=xi(),g=f.getStyles("search"),b=G9({targetType:"input",withAriaAttributes:l,withKeyboardNavigation:d,withExpandedAttribute:!1,onKeyDown:c,autoComplete:"off"});return y.jsx(La,{ref:Hr(r,f.store.searchRef),classNames:[{input:g.className},o],styles:[{input:g.style},a],size:u||f.size,...b,...h,__staticSelector:"Combobox"})});Q9.classes=vi,Q9.displayName="@mantine/core/ComboboxSearch";const zIe={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},J9=ht((e,r)=>{const{children:n,refProp:o,withKeyboardNavigation:a,withAriaAttributes:i,withExpandedAttribute:s,targetType:l,autoComplete:c,...d}=He("ComboboxTarget",zIe,e);if(!ps(n))throw new Error("Combobox.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const u=xi(),h=G9({targetType:l,withAriaAttributes:i,withKeyboardNavigation:a,withExpandedAttribute:s,onKeyDown:n.props.onKeyDown,autoComplete:c}),f=E.cloneElement(n,{...h,...d});return y.jsx(Rr.Target,{ref:Hr(r,u.store.targetRef),children:f})});J9.displayName="@mantine/core/ComboboxTarget";function IIe(e,r,n){for(let o=e-1;o>=0;o-=1)if(!r[o].hasAttribute("data-combobox-disabled"))return o;if(n){for(let o=r.length-1;o>-1;o-=1)if(!r[o].hasAttribute("data-combobox-disabled"))return o}return e}function OIe(e,r,n){for(let o=e+1;o{l||(c(!0),a?.(I))},[c,a,l]),k=E.useCallback((I="unknown")=>{l&&(c(!1),o?.(I))},[c,o,l]),C=E.useCallback((I="unknown")=>{l?k(I):w(I)},[k,w,l]),_=E.useCallback(()=>{const I=document.querySelector(`#${d.current} [data-combobox-selected]`);I?.removeAttribute("data-combobox-selected"),I?.removeAttribute("aria-selected")},[]),T=E.useCallback(I=>{const H=document.getElementById(d.current)?.querySelectorAll("[data-combobox-option]");if(!H)return null;const q=I>=H.length?0:I<0?H.length-1:I;return u.current=q,H?.[q]&&!H[q].hasAttribute("data-combobox-disabled")?(_(),H[q].setAttribute("data-combobox-selected","true"),H[q].setAttribute("aria-selected","true"),H[q].scrollIntoView({block:"nearest",behavior:s}),H[q].id):null},[s,_]),A=E.useCallback(()=>{const I=document.querySelector(`#${d.current} [data-combobox-active]`);if(I){const H=document.querySelectorAll(`#${d.current} [data-combobox-option]`),q=Array.from(H).findIndex(Z=>Z===I);return T(q)}return T(0)},[T]),R=E.useCallback(()=>T(OIe(u.current,document.querySelectorAll(`#${d.current} [data-combobox-option]`),i)),[T,i]),D=E.useCallback(()=>T(IIe(u.current,document.querySelectorAll(`#${d.current} [data-combobox-option]`),i)),[T,i]),N=E.useCallback(()=>T(jIe(document.querySelectorAll(`#${d.current} [data-combobox-option]`))),[T]),P=E.useCallback((I="selected",H)=>{x.current=window.setTimeout(()=>{const q=document.querySelectorAll(`#${d.current} [data-combobox-option]`),Z=Array.from(q).findIndex(W=>W.hasAttribute(`data-combobox-${I}`));u.current=Z,H?.scrollIntoView&&q[Z]?.scrollIntoView({block:"nearest",behavior:s})},0)},[]),O=E.useCallback(()=>{u.current=-1,_()},[_]),F=E.useCallback(()=>{document.querySelectorAll(`#${d.current} [data-combobox-option]`)?.[u.current]?.click()},[]),L=E.useCallback(I=>{d.current=I},[]),U=E.useCallback(()=>{g.current=window.setTimeout(()=>h.current?.focus(),0)},[]),M=E.useCallback(()=>{b.current=window.setTimeout(()=>f.current?.focus(),0)},[]),V=E.useCallback(()=>u.current,[]);return E.useEffect(()=>()=>{window.clearTimeout(g.current),window.clearTimeout(b.current),window.clearTimeout(x.current)},[]),{dropdownOpened:l,openDropdown:w,closeDropdown:k,toggleDropdown:C,selectedOptionIndex:u.current,getSelectedOptionIndex:V,selectOption:T,selectFirstOption:N,selectActiveOption:A,selectNextOption:R,selectPreviousOption:D,resetSelectedOption:O,updateSelectedOptionIndex:P,listId:d.current,setListId:L,clickSelectedOption:F,searchRef:h,focusSearchInput:U,targetRef:f,focusTarget:M}}const LIe={keepMounted:!0,withinPortal:!0,resetSelectionOnOptionHover:!1,width:"target",transitionProps:{transition:"fade",duration:0},size:"sm"},BIe=(e,{size:r,dropdownPadding:n})=>({options:{"--combobox-option-fz":Io(r),"--combobox-option-padding":kr(r,"combobox-option-padding")},dropdown:{"--combobox-padding":n===void 0?void 0:Pe(n),"--combobox-option-fz":Io(r),"--combobox-option-padding":kr(r,"combobox-option-padding")}});function lo(e){const r=He("Combobox",LIe,e),{classNames:n,styles:o,unstyled:a,children:i,store:s,vars:l,onOptionSubmit:c,onClose:d,size:u,dropdownPadding:h,resetSelectionOnOptionHover:f,__staticSelector:g,readOnly:b,attributes:x,...w}=r,k=FY(),C=s||k,_=Dt({name:g||"Combobox",classes:vi,props:r,classNames:n,styles:o,unstyled:a,attributes:x,vars:l,varsResolver:BIe}),T=()=>{d?.(),C.closeDropdown()};return y.jsx(DIe,{value:{getStyles:_,store:C,onOptionSubmit:c,size:u,resetSelectionOnOptionHover:f,readOnly:b},children:y.jsx(Rr,{opened:C.dropdownOpened,preventPositionChangeWhenVisible:!0,...w,onChange:A=>!A&&T(),withRoles:!1,unstyled:a,children:i})})}const FIe=e=>e;lo.extend=FIe,lo.classes=vi,lo.displayName="@mantine/core/Combobox",lo.Target=J9,lo.Dropdown=H2,lo.Options=V2,lo.Option=F0,lo.Search=Q9,lo.Empty=B0,lo.Chevron=Y9,lo.Footer=X9,lo.Header=Z9,lo.EventsTarget=LY,lo.DropdownTarget=jY,lo.Group=K9,lo.ClearButton=OY,lo.HiddenInput=BY;function HY({size:e,style:r,...n}){const o=e!==void 0?{width:Pe(e),height:Pe(e),...r}:r;return y.jsx("svg",{viewBox:"0 0 10 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:o,"aria-hidden":!0,...n,children:y.jsx("path",{d:"M4 4.586L1.707 2.293A1 1 0 1 0 .293 3.707l3 3a.997.997 0 0 0 1.414 0l5-5A1 1 0 1 0 8.293.293L4 4.586z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}var VY={root:"m_347db0ec","root--dot":"m_fbd81e3d",label:"m_5add502a",section:"m_91fdda9b"};const HIe=(e,{radius:r,color:n,gradient:o,variant:a,size:i,autoContrast:s})=>{const l=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:o,variant:a||"filled",autoContrast:s});return{root:{"--badge-height":kr(i,"badge-height"),"--badge-padding-x":kr(i,"badge-padding-x"),"--badge-fz":kr(i,"badge-fz"),"--badge-radius":r===void 0?void 0:Mn(r),"--badge-bg":n||a?l.background:void 0,"--badge-color":n||a?l.color:void 0,"--badge-bd":n||a?l.border:void 0,"--badge-dot-color":a==="dot"?Ia(n,e):void 0}}},vl=so((e,r)=>{const n=He("Badge",null,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,radius:d,color:u,gradient:h,leftSection:f,rightSection:g,children:b,variant:x,fullWidth:w,autoContrast:k,circle:C,mod:_,attributes:T,...A}=n,R=Dt({name:"Badge",props:n,classes:VY,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:T,vars:c,varsResolver:HIe});return y.jsxs(Re,{variant:x,mod:[{block:w,circle:C,"with-right-section":!!g,"with-left-section":!!f},_],...R("root",{variant:x}),ref:r,...A,children:[f&&y.jsx("span",{...R("section"),"data-position":"left",children:f}),y.jsx("span",{...R("label"),children:b}),g&&y.jsx("span",{...R("section"),"data-position":"right",children:g})]})});vl.classes=VY,vl.displayName="@mantine/core/Badge";var qY={root:"m_8b3717df",breadcrumb:"m_f678d540",separator:"m_3b8f2208"};const VIe={separator:"/"},qIe=(e,{separatorMargin:r})=>({root:{"--bc-separator-margin":cc(r)}}),q2=ht((e,r)=>{const n=He("Breadcrumbs",VIe,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,children:d,separator:u,separatorMargin:h,attributes:f,...g}=n,b=Dt({name:"Breadcrumbs",classes:qY,props:n,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:f,vars:c,varsResolver:qIe}),x=E.Children.toArray(d).reduce((w,k,C,_)=>{const T=ps(k)?E.cloneElement(k,{...b("breadcrumb",{className:k.props?.className}),key:C}):E.createElement("div",{...b("breadcrumb"),key:C},k);return w.push(T),C!==_.length-1&&w.push(E.createElement(Re,{...b("separator"),key:`separator-${C}`},u)),w},[]);return y.jsx(Re,{ref:r,...b("root"),...g,children:x})});q2.classes=qY,q2.displayName="@mantine/core/Breadcrumbs";var lm={root:"m_77c9d27d",inner:"m_80f1301b",label:"m_811560b9",section:"m_a74036a",loader:"m_a25b86ee",group:"m_80d6d844",groupSection:"m_70be2a01"};const UY={orientation:"horizontal"},UIe=(e,{borderWidth:r})=>({group:{"--button-border-width":Pe(r)}}),eS=ht((e,r)=>{const n=He("ButtonGroup",UY,e),{className:o,style:a,classNames:i,styles:s,unstyled:l,orientation:c,vars:d,borderWidth:u,variant:h,mod:f,attributes:g,...b}=He("ButtonGroup",UY,e),x=Dt({name:"ButtonGroup",props:n,classes:lm,className:o,style:a,classNames:i,styles:s,unstyled:l,attributes:g,vars:d,varsResolver:UIe,rootSelector:"group"});return y.jsx(Re,{...x("group"),ref:r,variant:h,mod:[{"data-orientation":c},f],role:"group",...b})});eS.classes=lm,eS.displayName="@mantine/core/ButtonGroup";const WIe=(e,{radius:r,color:n,gradient:o,variant:a,autoContrast:i,size:s})=>{const l=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:o,variant:a||"filled",autoContrast:i});return{groupSection:{"--section-height":kr(s,"section-height"),"--section-padding-x":kr(s,"section-padding-x"),"--section-fz":s?.includes("compact")?Io(s.replace("compact-","")):Io(s),"--section-radius":r===void 0?void 0:Mn(r),"--section-bg":n||a?l.background:void 0,"--section-color":l.color,"--section-bd":n||a?l.border:void 0}}},tS=ht((e,r)=>{const n=He("ButtonGroupSection",null,e),{className:o,style:a,classNames:i,styles:s,unstyled:l,vars:c,variant:d,gradient:u,radius:h,autoContrast:f,attributes:g,...b}=n,x=Dt({name:"ButtonGroupSection",props:n,classes:lm,className:o,style:a,classNames:i,styles:s,unstyled:l,attributes:g,vars:c,varsResolver:WIe,rootSelector:"groupSection"});return y.jsx(Re,{...x("groupSection"),ref:r,variant:d,...b})});tS.classes=lm,tS.displayName="@mantine/core/ButtonGroupSection";const YIe={in:{opacity:1,transform:`translate(-50%, calc(-50% + ${Pe(1)}))`},out:{opacity:0,transform:"translate(-50%, -200%)"},common:{transformOrigin:"center"},transitionProperty:"transform, opacity"},GIe=(e,{radius:r,color:n,gradient:o,variant:a,size:i,justify:s,autoContrast:l})=>{const c=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:o,variant:a||"filled",autoContrast:l});return{root:{"--button-justify":s,"--button-height":kr(i,"button-height"),"--button-padding-x":kr(i,"button-padding-x"),"--button-fz":i?.includes("compact")?Io(i.replace("compact-","")):Io(i),"--button-radius":r===void 0?void 0:Mn(r),"--button-bg":n||a?c.background:void 0,"--button-hover":n||a?c.hover:void 0,"--button-color":c.color,"--button-bd":n||a?c.border:void 0,"--button-hover-color":n||a?c.hoverColor:void 0}}},Kn=so((e,r)=>{const n=He("Button",null,e),{style:o,vars:a,className:i,color:s,disabled:l,children:c,leftSection:d,rightSection:u,fullWidth:h,variant:f,radius:g,loading:b,loaderProps:x,gradient:w,classNames:k,styles:C,unstyled:_,"data-disabled":T,autoContrast:A,mod:R,attributes:D,...N}=n,P=Dt({name:"Button",props:n,classes:lm,className:i,style:o,classNames:k,styles:C,unstyled:_,attributes:D,vars:a,varsResolver:GIe}),O=!!d,F=!!u;return y.jsxs(Er,{ref:r,...P("root",{active:!l&&!b&&!T}),unstyled:_,variant:f,disabled:l||b,mod:[{disabled:l||T,loading:b,block:h,"with-left-section":O,"with-right-section":F},R],...N,children:[typeof b=="boolean"&&y.jsx(Dd,{mounted:b,transition:YIe,duration:150,children:L=>y.jsx(Re,{component:"span",...P("loader",{style:L}),"aria-hidden":!0,children:y.jsx(im,{color:"var(--button-color)",size:"calc(var(--button-height) / 1.8)",...x})})}),y.jsxs("span",{...P("inner"),children:[d&&y.jsx(Re,{component:"span",...P("section"),mod:{position:"left"},children:d}),y.jsx(Re,{component:"span",mod:{loading:b},...P("label"),children:c}),u&&y.jsx(Re,{component:"span",...P("section"),mod:{position:"right"},children:u})]})]})});Kn.classes=lm,Kn.displayName="@mantine/core/Button",Kn.Group=eS,Kn.GroupSection=tS;const[XIe,KIe]=hi("Card component was not found in tree");var rS={root:"m_e615b15f",section:"m_599a2148"};const U2=so((e,r)=>{const n=He("CardSection",null,e),{classNames:o,className:a,style:i,styles:s,vars:l,withBorder:c,inheritPadding:d,mod:u,...h}=n,f=KIe();return y.jsx(Re,{ref:r,mod:[{"with-border":c,"inherit-padding":d},u],...f.getStyles("section",{className:a,style:i,styles:s,classNames:o}),...h})});U2.classes=rS,U2.displayName="@mantine/core/CardSection";const ZIe=(e,{padding:r})=>({root:{"--card-padding":cc(r)}}),W2=so((e,r)=>{const n=He("Card",null,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,children:d,padding:u,attributes:h,...f}=n,g=Dt({name:"Card",props:n,classes:rS,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:h,vars:c,varsResolver:ZIe}),b=E.Children.toArray(d),x=b.map((w,k)=>typeof w=="object"&&w&&"type"in w&&w.type===U2?E.cloneElement(w,{"data-first-section":k===0||void 0,"data-last-section":k===b.length-1||void 0}):w);return y.jsx(XIe,{value:{getStyles:g},children:y.jsx(om,{ref:r,unstyled:l,...g("root"),...f,children:x})})});W2.classes=rS,W2.displayName="@mantine/core/Card",W2.Section=U2;var WY={root:"m_de3d2490",colorOverlay:"m_862f3d1b",shadowOverlay:"m_98ae7f22",alphaOverlay:"m_95709ac0",childrenOverlay:"m_93e74e3"};const YY={withShadow:!0},QIe=(e,{radius:r,size:n})=>({root:{"--cs-radius":r===void 0?void 0:Mn(r),"--cs-size":Pe(n)}}),H0=so((e,r)=>{const n=He("ColorSwatch",YY,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,color:d,size:u,radius:h,withShadow:f,children:g,variant:b,attributes:x,...w}=He("ColorSwatch",YY,n),k=Dt({name:"ColorSwatch",props:n,classes:WY,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:x,vars:c,varsResolver:QIe});return y.jsxs(Re,{ref:r,variant:b,size:u,...k("root",{focusable:!0}),...w,children:[y.jsx("span",{...k("alphaOverlay")}),f&&y.jsx("span",{...k("shadowOverlay")}),y.jsx("span",{...k("colorOverlay",{style:{backgroundColor:d}})}),y.jsx("span",{...k("childrenOverlay"),children:g})]})});H0.classes=WY,H0.displayName="@mantine/core/ColorSwatch";const JIe={timeout:1e3};function GY(e){const{children:r,timeout:n,value:o,...a}=He("CopyButton",JIe,e),i=GDe({timeout:n});return y.jsx(y.Fragment,{children:r({copy:()=>i.copy(o),copied:i.copied,...a})})}GY.displayName="@mantine/core/CopyButton";var XY={root:"m_3eebeb36",label:"m_9e365f20"};const eOe={orientation:"horizontal"},tOe=(e,{color:r,variant:n,size:o})=>({root:{"--divider-color":r?Ia(r,e):void 0,"--divider-border-style":n,"--divider-size":kr(o,"divider-size")}}),kp=ht((e,r)=>{const n=He("Divider",eOe,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,color:d,orientation:u,label:h,labelPosition:f,mod:g,attributes:b,...x}=n,w=Dt({name:"Divider",classes:XY,props:n,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:b,vars:c,varsResolver:tOe});return y.jsx(Re,{ref:r,mod:[{orientation:u,"with-label":!!h},g],...w("root"),...x,role:"separator",children:h&&y.jsx(Re,{component:"span",mod:{position:f},...w("label"),children:h})})});kp.classes=XY,kp.displayName="@mantine/core/Divider";const[KY,ZY]=hi("Grid component was not found in tree"),nS=(e,r)=>e==="content"?"auto":e==="auto"?"0rem":e?`${100/(r/e)}%`:void 0,QY=(e,r,n)=>n||e==="auto"?"100%":e==="content"?"unset":nS(e,r),JY=(e,r)=>{if(e)return e==="auto"||r?"1":"auto"},eG=(e,r)=>e===0?"0":e?`${100/(r/e)}%`:void 0;function rOe({span:e,order:r,offset:n,selector:o}){const a=vo(),i=ZY(),s=i.breakpoints||a.breakpoints,l=D0(e)===void 0?12:D0(e),c=Uf({"--col-order":D0(r)?.toString(),"--col-flex-grow":JY(l,i.grow),"--col-flex-basis":nS(l,i.columns),"--col-width":l==="content"?"auto":void 0,"--col-max-width":QY(l,i.columns,i.grow),"--col-offset":eG(D0(n),i.columns)}),d=zo(s).reduce((h,f)=>(h[f]||(h[f]={}),typeof r=="object"&&r[f]!==void 0&&(h[f]["--col-order"]=r[f]?.toString()),typeof e=="object"&&e[f]!==void 0&&(h[f]["--col-flex-grow"]=JY(e[f],i.grow),h[f]["--col-flex-basis"]=nS(e[f],i.columns),h[f]["--col-width"]=e[f]==="content"?"auto":void 0,h[f]["--col-max-width"]=QY(e[f],i.columns,i.grow)),typeof n=="object"&&n[f]!==void 0&&(h[f]["--col-offset"]=eG(n[f],i.columns)),h),{}),u=gU(zo(d),s).filter(h=>zo(d[h.value]).length>0).map(h=>({query:i.type==="container"?`mantine-grid (min-width: ${s[h.value]})`:`(min-width: ${s[h.value]})`,styles:d[h.value]}));return y.jsx(c2,{styles:c,media:i.type==="container"?void 0:u,container:i.type==="container"?u:void 0,selector:o})}var oS={container:"m_8478a6da",root:"m_410352e9",inner:"m_dee7bd2f",col:"m_96bdd299"};const nOe={span:12},_p=ht((e,r)=>{const n=He("GridCol",nOe,e),{classNames:o,className:a,style:i,styles:s,vars:l,span:c,order:d,offset:u,...h}=n,f=ZY(),g=d2();return y.jsxs(y.Fragment,{children:[y.jsx(rOe,{selector:`.${g}`,span:c,order:d,offset:u}),y.jsx(Re,{ref:r,...f.getStyles("col",{className:hs(a,g),style:i,classNames:o,styles:s}),...h})]})});_p.classes=oS,_p.displayName="@mantine/core/GridCol";function tG({gutter:e,selector:r,breakpoints:n,type:o}){const a=vo(),i=n||a.breakpoints,s=Uf({"--grid-gutter":cc(D0(e))}),l=zo(i).reduce((d,u)=>(d[u]||(d[u]={}),typeof e=="object"&&e[u]!==void 0&&(d[u]["--grid-gutter"]=cc(e[u])),d),{}),c=gU(zo(l),i).filter(d=>zo(l[d.value]).length>0).map(d=>({query:o==="container"?`mantine-grid (min-width: ${i[d.value]})`:`(min-width: ${i[d.value]})`,styles:l[d.value]}));return y.jsx(c2,{styles:s,media:o==="container"?void 0:c,container:o==="container"?c:void 0,selector:r})}const oOe={gutter:"md",grow:!1,columns:12},aOe=(e,{justify:r,align:n,overflow:o})=>({root:{"--grid-justify":r,"--grid-align":n,"--grid-overflow":o}}),V0=ht((e,r)=>{const n=He("Grid",oOe,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,grow:d,gutter:u,columns:h,align:f,justify:g,children:b,breakpoints:x,type:w,attributes:k,...C}=n,_=Dt({name:"Grid",classes:oS,props:n,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:k,vars:c,varsResolver:aOe}),T=d2();return w==="container"&&x?y.jsxs(KY,{value:{getStyles:_,grow:d,columns:h,breakpoints:x,type:w},children:[y.jsx(tG,{selector:`.${T}`,...n}),y.jsx("div",{..._("container"),children:y.jsx(Re,{ref:r,..._("root",{className:T}),...C,children:y.jsx("div",{..._("inner"),children:b})})})]}):y.jsxs(KY,{value:{getStyles:_,grow:d,columns:h,breakpoints:x,type:w},children:[y.jsx(tG,{selector:`.${T}`,...n}),y.jsx(Re,{ref:r,..._("root",{className:T}),...C,children:y.jsx("div",{..._("inner"),children:b})})]})});V0.classes=oS,V0.displayName="@mantine/core/Grid",V0.Col=_p;function rG({color:e,theme:r,defaultShade:n}){const o=Ad({color:e,theme:r});return o.isThemeColor?o.shade===void 0?`var(--mantine-color-${o.color}-${n})`:`var(${o.variable})`:e}var nG={root:"m_bcb3f3c2"};const iOe={color:"yellow"},sOe=(e,{color:r})=>({root:{"--mark-bg-dark":rG({color:r,theme:e,defaultShade:5}),"--mark-bg-light":rG({color:r,theme:e,defaultShade:2})}}),aS=ht((e,r)=>{const n=He("Mark",iOe,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,color:d,variant:u,attributes:h,...f}=n,g=Dt({name:"Mark",props:n,className:a,style:i,classes:nG,classNames:o,styles:s,unstyled:l,attributes:h,vars:c,varsResolver:sOe});return y.jsx(Re,{component:"mark",ref:r,variant:u,...g("root"),...f})});aS.classes=nG,aS.displayName="@mantine/core/Mark";function oG(e){return e.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&")}function lOe(e,r){if(r==null)return[{chunk:e,highlighted:!1}];const n=Array.isArray(r)?r.map(oG):oG(r);if(!(Array.isArray(n)?n.filter(i=>i.trim().length>0).length>0:n.trim()!==""))return[{chunk:e,highlighted:!1}];const o=typeof n=="string"?n.trim():n.filter(i=>i.trim().length!==0).map(i=>i.trim()).sort((i,s)=>s.length-i.length).join("|"),a=new RegExp(`(${o})`,"gi");return e.split(a).map(i=>({chunk:i,highlighted:a.test(i)})).filter(({chunk:i})=>i)}const gc=so((e,r)=>{const{unstyled:n,children:o,highlight:a,highlightStyles:i,color:s,...l}=He("Highlight",null,e),c=lOe(o,a);return y.jsx(ft,{unstyled:n,ref:r,...l,__staticSelector:"Highlight",children:c.map(({chunk:d,highlighted:u},h)=>u?y.jsx(aS,{unstyled:n,color:s,style:i,"data-highlight":d,children:d},h):y.jsx("span",{children:d},h))})});gc.classes=ft.classes,gc.displayName="@mantine/core/Highlight";const[cOe,aG]=hi("HoverCard component was not found in the tree"),iG=E.createContext(!1),dOe=iG.Provider,iS=()=>E.useContext(iG);function sS(e){const{children:r,onMouseEnter:n,onMouseLeave:o,...a}=He("HoverCardDropdown",null,e),i=aG();if(iS()&&i.getFloatingProps&&i.floating){const c=i.getFloatingProps();return y.jsx(Rr.Dropdown,{ref:i.floating,...c,onMouseEnter:zn(n,c.onMouseEnter),onMouseLeave:zn(o,c.onMouseLeave),...a,children:r})}const s=zn(n,i.openDropdown),l=zn(o,i.closeDropdown);return y.jsx(Rr.Dropdown,{onMouseEnter:s,onMouseLeave:l,...a,children:r})}sS.displayName="@mantine/core/HoverCardDropdown";const uOe={openDelay:0,closeDelay:0};function lS(e){const{openDelay:r,closeDelay:n,children:o}=He("HoverCardGroup",uOe,e);return y.jsx(dOe,{value:!0,children:y.jsx(UW,{delay:{open:r,close:n},children:o})})}lS.displayName="@mantine/core/HoverCardGroup",lS.extend=e=>e;const pOe={refProp:"ref"},cS=E.forwardRef((e,r)=>{const{children:n,refProp:o,eventPropsWrapperName:a,...i}=He("HoverCardTarget",pOe,e);if(!ps(n))throw new Error("HoverCard.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const s=aG();if(iS()&&s.getReferenceProps&&s.reference){const u=s.getReferenceProps();return y.jsx(Rr.Target,{refProp:o,ref:r,...i,children:E.cloneElement(n,a?{[a]:{...u,ref:s.reference}}:{...u,ref:s.reference})})}const l=zn(n.props.onMouseEnter,s.openDropdown),c=zn(n.props.onMouseLeave,s.closeDropdown),d={onMouseEnter:l,onMouseLeave:c};return y.jsx(Rr.Target,{refProp:o,ref:r,...i,children:E.cloneElement(n,a?{[a]:d}:d)})});cS.displayName="@mantine/core/HoverCardTarget";function hOe(e){const[r,n]=E.useState(e.defaultOpened),o=typeof e.opened=="boolean"?e.opened:r,a=iS(),i=fi(),s=E.useRef(-1),l=E.useRef(-1),c=E.useCallback(()=>{window.clearTimeout(s.current),window.clearTimeout(l.current)},[]),d=E.useCallback(C=>{n(C),C?(g(i),e.onOpen?.()):e.onClose?.()},[i,e.onOpen,e.onClose]),{context:u,refs:h}=A2({open:o,onOpenChange:d}),{delay:f,setCurrentId:g}=WW(u,{id:i}),{getReferenceProps:b,getFloatingProps:x}=XW([VW(u,{enabled:!0,delay:a?f:{open:e.openDelay,close:e.closeDelay}}),KW(u,{role:"dialog"}),GW(u,{enabled:a})]),w=E.useCallback(()=>{a||(c(),e.openDelay===0||e.openDelay===void 0?d(!0):s.current=window.setTimeout(()=>d(!0),e.openDelay))},[a,c,e.openDelay,d]),k=E.useCallback(()=>{a||(c(),e.closeDelay===0||e.closeDelay===void 0?d(!1):l.current=window.setTimeout(()=>d(!1),e.closeDelay))},[a,c,e.closeDelay,d]);return E.useEffect(()=>()=>c(),[c]),{opened:o,reference:h.setReference,floating:h.setFloating,getReferenceProps:b,getFloatingProps:x,openDropdown:w,closeDropdown:k}}const fOe={openDelay:0,closeDelay:150,initiallyOpened:!1};function cm(e){const{children:r,onOpen:n,onClose:o,openDelay:a,closeDelay:i,initiallyOpened:s,...l}=He("HoverCard",fOe,e),c=hOe({openDelay:a,closeDelay:i,defaultOpened:s,onOpen:n,onClose:o});return y.jsx(cOe,{value:{openDropdown:c.openDropdown,closeDropdown:c.closeDropdown,getReferenceProps:c.getReferenceProps,getFloatingProps:c.getFloatingProps,reference:c.reference,floating:c.floating},children:y.jsx(Rr,{...l,opened:c.opened,__staticSelector:"HoverCard",children:r})})}cm.displayName="@mantine/core/HoverCard",cm.Target=cS,cm.Dropdown=sS,cm.Group=lS,cm.extend=e=>e;var mOe=E.useLayoutEffect;const[gOe,Pd]=hi("Menu component was not found in the tree");var Md={dropdown:"m_dc9b7c9f",label:"m_9bfac126",divider:"m_efdf90cb",item:"m_99ac2aa1",itemLabel:"m_5476e0d3",itemSection:"m_8b75e504",chevron:"m_b85b0bed"};const dS=ht((e,r)=>{const{classNames:n,className:o,style:a,styles:i,vars:s,...l}=He("MenuDivider",null,e),c=Pd();return y.jsx(Re,{ref:r,...c.getStyles("divider",{className:o,style:a,styles:i,classNames:n}),...l})});dS.classes=Md,dS.displayName="@mantine/core/MenuDivider";const q0=ht((e,r)=>{const{classNames:n,className:o,style:a,styles:i,vars:s,onMouseEnter:l,onMouseLeave:c,onKeyDown:d,children:u,...h}=He("MenuDropdown",null,e),f=E.useRef(null),g=Pd(),b=zn(d,k=>{(k.key==="ArrowUp"||k.key==="ArrowDown")&&(k.preventDefault(),f.current?.querySelectorAll("[data-menu-item]:not(:disabled)")[0]?.focus())}),x=zn(l,()=>(g.trigger==="hover"||g.trigger==="click-hover")&&g.openDropdown()),w=zn(c,()=>(g.trigger==="hover"||g.trigger==="click-hover")&&g.closeDropdown());return y.jsxs(Rr.Dropdown,{...h,onMouseEnter:x,onMouseLeave:w,role:"menu","aria-orientation":"vertical",ref:Hr(r,f),...g.getStyles("dropdown",{className:o,style:a,styles:i,classNames:n,withStaticClass:!1}),tabIndex:-1,"data-menu-dropdown":!0,onKeyDown:b,children:[g.withInitialFocusPlaceholder&&y.jsx("div",{tabIndex:-1,"data-autofocus":!0,"data-mantine-stop-propagation":!0,style:{outline:0}}),u]})});q0.classes=Md,q0.displayName="@mantine/core/MenuDropdown";const[yOe,Y2]=R0(),U0=so((e,r)=>{const{classNames:n,className:o,style:a,styles:i,vars:s,color:l,closeMenuOnClick:c,leftSection:d,rightSection:u,children:h,disabled:f,"data-disabled":g,...b}=He("MenuItem",null,e),x=Pd(),w=Y2(),k=vo(),{dir:C}=Rd(),_=E.useRef(null),T=b,A=zn(T.onClick,()=>{g||(typeof c=="boolean"?c&&x.closeDropdownImmediately():x.closeOnItemClick&&x.closeDropdownImmediately())}),R=l?k.variantColorResolver({color:l,theme:k,variant:"light"}):void 0,D=l?Ad({color:l,theme:k}):null,N=zn(T.onKeyDown,P=>{P.key==="ArrowLeft"&&w&&(w.close(),w.focusParentItem())});return y.jsxs(Er,{onMouseDown:P=>P.preventDefault(),...b,unstyled:x.unstyled,tabIndex:x.menuItemTabIndex,...x.getStyles("item",{className:o,style:a,styles:i,classNames:n}),ref:Hr(_,r),role:"menuitem",disabled:f,"data-menu-item":!0,"data-disabled":f||g||void 0,"data-mantine-stop-propagation":!0,onClick:A,onKeyDown:N0({siblingSelector:"[data-menu-item]:not([data-disabled])",parentSelector:"[data-menu-dropdown]",activateOnFocus:!1,loop:x.loop,dir:C,orientation:"vertical",onKeyDown:N}),__vars:{"--menu-item-color":D?.isThemeColor&&D?.shade===void 0?`var(--mantine-color-${D.color}-6)`:R?.color,"--menu-item-hover":R?.hover},children:[d&&y.jsx("div",{...x.getStyles("itemSection",{styles:i,classNames:n}),"data-position":"left",children:d}),h&&y.jsx("div",{...x.getStyles("itemLabel",{styles:i,classNames:n}),children:h}),u&&y.jsx("div",{...x.getStyles("itemSection",{styles:i,classNames:n}),"data-position":"right",children:u})]})});U0.classes=Md,U0.displayName="@mantine/core/MenuItem";const uS=ht((e,r)=>{const{classNames:n,className:o,style:a,styles:i,vars:s,...l}=He("MenuLabel",null,e),c=Pd();return y.jsx(Re,{ref:r,...c.getStyles("label",{className:o,style:a,styles:i,classNames:n}),...l})});uS.classes=Md,uS.displayName="@mantine/core/MenuLabel";const pS=ht((e,r)=>{const{classNames:n,className:o,style:a,styles:i,vars:s,onMouseEnter:l,onMouseLeave:c,onKeyDown:d,children:u,...h}=He("MenuSubDropdown",null,e),f=E.useRef(null),g=Pd(),b=Y2(),x=zn(l,b?.open),w=zn(c,b?.close);return y.jsx(Rr.Dropdown,{...h,onMouseEnter:x,onMouseLeave:w,role:"menu","aria-orientation":"vertical",ref:Hr(r,f),...g.getStyles("dropdown",{className:o,style:a,styles:i,classNames:n,withStaticClass:!1}),tabIndex:-1,"data-menu-dropdown":!0,children:u})});pS.classes=Md,pS.displayName="@mantine/core/MenuSubDropdown";const hS=so((e,r)=>{const{classNames:n,className:o,style:a,styles:i,vars:s,color:l,leftSection:c,rightSection:d,children:u,disabled:h,"data-disabled":f,closeMenuOnClick:g,...b}=He("MenuSubItem",null,e),x=Pd(),w=Y2(),k=vo(),{dir:C}=Rd(),_=E.useRef(null),T=b,A=l?k.variantColorResolver({color:l,theme:k,variant:"light"}):void 0,R=l?Ad({color:l,theme:k}):null,D=zn(T.onKeyDown,F=>{F.key==="ArrowRight"&&(w?.open(),w?.focusFirstItem()),F.key==="ArrowLeft"&&w?.parentContext&&(w.parentContext.close(),w.parentContext.focusParentItem())}),N=zn(T.onClick,()=>{!f&&g&&x.closeDropdownImmediately()}),P=zn(T.onMouseEnter,w?.open),O=zn(T.onMouseLeave,w?.close);return y.jsxs(Er,{onMouseDown:F=>F.preventDefault(),...b,unstyled:x.unstyled,tabIndex:x.menuItemTabIndex,...x.getStyles("item",{className:o,style:a,styles:i,classNames:n}),ref:Hr(_,r),role:"menuitem",disabled:h,"data-menu-item":!0,"data-sub-menu-item":!0,"data-disabled":h||f||void 0,"data-mantine-stop-propagation":!0,onMouseEnter:P,onMouseLeave:O,onClick:N,onKeyDown:N0({siblingSelector:"[data-menu-item]:not([data-disabled])",parentSelector:"[data-menu-dropdown]",activateOnFocus:!1,loop:x.loop,dir:C,orientation:"vertical",onKeyDown:D}),__vars:{"--menu-item-color":R?.isThemeColor&&R?.shade===void 0?`var(--mantine-color-${R.color}-6)`:A?.color,"--menu-item-hover":A?.hover},children:[c&&y.jsx("div",{...x.getStyles("itemSection",{styles:i,classNames:n}),"data-position":"left",children:c}),u&&y.jsx("div",{...x.getStyles("itemLabel",{styles:i,classNames:n}),children:u}),y.jsx("div",{...x.getStyles("itemSection",{styles:i,classNames:n}),"data-position":"right",children:d||y.jsx(U9,{...x.getStyles("chevron"),size:14})})]})});hS.classes=Md,hS.displayName="@mantine/core/MenuSubItem";function sG({children:e,refProp:r}){if(!ps(e))throw new Error("Menu.Sub.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");return Pd(),y.jsx(Rr.Target,{refProp:r,popupType:"menu",children:e})}sG.displayName="@mantine/core/MenuSubTarget";const bOe={offset:0,position:"right-start",transitionProps:{duration:0},middlewares:{shift:{crossAxis:!0}}};function dm(e){const{children:r,closeDelay:n,...o}=He("MenuSub",bOe,e),a=fi(),[i,{open:s,close:l}]=w$e(!1),c=Y2(),{openDropdown:d,closeDropdown:u}=PY({open:s,close:l,closeDelay:n,openDelay:0});return y.jsx(yOe,{value:{opened:i,close:u,open:d,focusFirstItem:()=>window.setTimeout(()=>{document.getElementById(`${a}-dropdown`)?.querySelectorAll("[data-menu-item]:not([data-disabled])")[0]?.focus()},16),focusParentItem:()=>window.setTimeout(()=>{document.getElementById(`${a}-target`)?.focus()},16),parentContext:c},children:y.jsx(Rr,{opened:i,withinPortal:!1,withArrow:!1,id:a,...o,children:r})})}dm.extend=e=>e,dm.displayName="@mantine/core/MenuSub",dm.Target=sG,dm.Dropdown=pS,dm.Item=hS;const vOe={refProp:"ref"},G2=E.forwardRef((e,r)=>{const{children:n,refProp:o,...a}=He("MenuTarget",vOe,e);if(!ps(n))throw new Error("Menu.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const i=Pd(),s=n.props,l=zn(s.onClick,()=>{i.trigger==="click"?i.toggleDropdown():i.trigger==="click-hover"&&(i.setOpenedViaClick(!0),i.opened||i.openDropdown())}),c=zn(s.onMouseEnter,()=>(i.trigger==="hover"||i.trigger==="click-hover")&&i.openDropdown()),d=zn(s.onMouseLeave,()=>{(i.trigger==="hover"||i.trigger==="click-hover"&&!i.openedViaClick)&&i.closeDropdown()});return y.jsx(Rr.Target,{refProp:o,popupType:"menu",ref:r,...a,children:E.cloneElement(n,{onClick:l,onMouseEnter:c,onMouseLeave:d,"data-expanded":i.opened?!0:void 0})})});G2.displayName="@mantine/core/MenuTarget";const xOe={trapFocus:!0,closeOnItemClick:!0,withInitialFocusPlaceholder:!0,clickOutsideEvents:["mousedown","touchstart","keydown"],loop:!0,trigger:"click",openDelay:0,closeDelay:100,menuItemTabIndex:-1};function hn(e){const r=He("Menu",xOe,e),{children:n,onOpen:o,onClose:a,opened:i,defaultOpened:s,trapFocus:l,onChange:c,closeOnItemClick:d,loop:u,closeOnEscape:h,trigger:f,openDelay:g,closeDelay:b,classNames:x,styles:w,unstyled:k,variant:C,vars:_,menuItemTabIndex:T,keepMounted:A,withInitialFocusPlaceholder:R,attributes:D,...N}=r,P=Dt({name:"Menu",classes:Md,props:r,classNames:x,styles:w,unstyled:k,attributes:D}),[O,F]=dc({value:i,defaultValue:s,finalValue:!1,onChange:c}),[L,U]=E.useState(!1),M=()=>{F(!1),U(!1),O&&a?.()},V=()=>{F(!0),!O&&o?.()},I=()=>{O?M():V()},{openDropdown:H,closeDropdown:q}=PY({open:V,close:M,closeDelay:b,openDelay:g}),Z=K=>UDe("[data-menu-item]","[data-menu-dropdown]",K),{resolvedClassNames:W,resolvedStyles:G}=s9({classNames:x,styles:w,props:r});return y.jsx(gOe,{value:{getStyles:P,opened:O,toggleDropdown:I,getItemIndex:Z,openedViaClick:L,setOpenedViaClick:U,closeOnItemClick:d,closeDropdown:f==="click"?M:q,openDropdown:f==="click"?V:H,closeDropdownImmediately:M,loop:u,trigger:f,unstyled:k,menuItemTabIndex:T,withInitialFocusPlaceholder:R},children:y.jsx(Rr,{...N,opened:O,onChange:I,defaultOpened:s,trapFocus:A?!1:l,closeOnEscape:h,__staticSelector:"Menu",classNames:W,styles:G,unstyled:k,variant:C,keepMounted:A,children:n})})}hn.extend=e=>e,hn.withProps=jPe(hn),hn.classes=Md,hn.displayName="@mantine/core/Menu",hn.Item=U0,hn.Label=uS,hn.Dropdown=q0,hn.Target=G2,hn.Divider=dS,hn.Sub=dm;const[pkt,lG]=R0(),[wOe,kOe]=R0();var X2={root:"m_7cda1cd6","root--default":"m_44da308b","root--contrast":"m_e3a01f8",label:"m_1e0e6180",remove:"m_ae386778",group:"m_1dcfd90b"};const _Oe=(e,{gap:r},{size:n})=>({group:{"--pg-gap":r!==void 0?kr(r):kr(n,"pg-gap")}}),fS=ht((e,r)=>{const n=He("PillGroup",null,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,size:d,disabled:u,attributes:h,...f}=n,g=lG()?.size||d||void 0,b=Dt({name:"PillGroup",classes:X2,props:n,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:h,vars:c,varsResolver:_Oe,stylesCtx:{size:g},rootSelector:"group"});return y.jsx(wOe,{value:{size:g,disabled:u},children:y.jsx(Re,{ref:r,size:g,...b("group"),...f})})});fS.classes=X2,fS.displayName="@mantine/core/PillGroup";const EOe={variant:"default"},SOe=(e,{radius:r},{size:n})=>({root:{"--pill-fz":kr(n,"pill-fz"),"--pill-height":kr(n,"pill-height"),"--pill-radius":r===void 0?void 0:Mn(r)}}),K2=ht((e,r)=>{const n=He("Pill",EOe,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,variant:d,children:u,withRemoveButton:h,onRemove:f,removeButtonProps:g,radius:b,size:x,disabled:w,mod:k,attributes:C,..._}=n,T=kOe(),A=lG(),R=x||T?.size||void 0,D=A?.variant==="filled"?"contrast":d||"default",N=Dt({name:"Pill",classes:X2,props:n,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:C,vars:c,varsResolver:SOe,stylesCtx:{size:R}});return y.jsxs(Re,{component:"span",ref:r,variant:D,size:R,...N("root",{variant:D}),mod:[{"with-remove":h&&!w,disabled:w||T?.disabled},k],..._,children:[y.jsx("span",{...N("label"),children:u}),h&&y.jsx(wp,{variant:"transparent",radius:b,tabIndex:-1,"aria-hidden":!0,unstyled:l,...g,...N("remove",{className:g?.className,style:g?.style}),onMouseDown:P=>{P.preventDefault(),P.stopPropagation(),g?.onMouseDown?.(P)},onClick:P=>{P.stopPropagation(),f?.(),g?.onClick?.(P)}})]})});K2.classes=X2,K2.displayName="@mantine/core/Pill",K2.Group=fS;var cG={root:"m_f0824112",description:"m_57492dcc",section:"m_690090b5",label:"m_1f6ac4c4",body:"m_f07af9d2",children:"m_e17b862f",chevron:"m_1fd8a00b"};const COe=(e,{variant:r,color:n,childrenOffset:o,autoContrast:a})=>{const i=e.variantColorResolver({color:n||e.primaryColor,theme:e,variant:r||"light",autoContrast:a});return{root:{"--nl-bg":n||r?i.background:void 0,"--nl-hover":n||r?i.hover:void 0,"--nl-color":n||r?i.color:void 0},children:{"--nl-offset":cc(o)}}},mS=so((e,r)=>{const n=He("NavLink",null,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,opened:d,defaultOpened:u,onChange:h,children:f,active:g,disabled:b,leftSection:x,rightSection:w,label:k,description:C,disableRightSectionRotation:_,noWrap:T,childrenOffset:A,autoContrast:R,mod:D,attributes:N,onClick:P,onKeyDown:O,...F}=n,L=Dt({name:"NavLink",props:n,classes:cG,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:N,vars:c,varsResolver:COe}),[U,M]=dc({value:d,defaultValue:u,finalValue:!1,onChange:h}),V=!!f,I=H=>{P?.(H),V&&(H.preventDefault(),M(!U))};return y.jsxs(y.Fragment,{children:[y.jsxs(Er,{...L("root"),component:"a",ref:r,onClick:I,onKeyDown:H=>{O?.(H),H.nativeEvent.code==="Space"&&V&&(H.preventDefault(),M(!U))},unstyled:l,mod:[{disabled:b,active:g,expanded:U},D],...F,children:[x&&y.jsx(Re,{component:"span",...L("section"),mod:{position:"left"},children:x}),y.jsxs(Re,{...L("body"),mod:{"no-wrap":T},children:[y.jsx(Re,{component:"span",...L("label"),children:k}),y.jsx(Re,{component:"span",mod:{active:g},...L("description"),children:C})]}),(V||w!==void 0)&&y.jsx(Re,{...L("section"),component:"span",mod:{rotate:U&&!_,position:"right"},children:V?w!==void 0?w:y.jsx(U9,{...L("chevron")}):w})]}),V&&y.jsx(tW,{in:U,...L("collapse"),children:y.jsx("div",{...L("children"),children:f})})]})});mS.classes=cG,mS.displayName="@mantine/core/NavLink";var dG={root:"m_a513464",icon:"m_a4ceffb",loader:"m_b0920b15",body:"m_a49ed24",title:"m_3feedf16",description:"m_3d733a3a",closeButton:"m_919a4d88"};const TOe={withCloseButton:!0},AOe=(e,{radius:r,color:n})=>({root:{"--notification-radius":r===void 0?void 0:Mn(r),"--notification-color":n?Ia(n,e):void 0}}),Z2=ht((e,r)=>{const n=He("Notification",TOe,e),{className:o,color:a,radius:i,loading:s,withCloseButton:l,withBorder:c,title:d,icon:u,children:h,onClose:f,closeButtonProps:g,classNames:b,style:x,styles:w,unstyled:k,variant:C,vars:_,mod:T,loaderProps:A,role:R,attributes:D,...N}=n,P=Dt({name:"Notification",classes:dG,props:n,className:o,style:x,classNames:b,styles:w,unstyled:k,attributes:D,vars:_,varsResolver:AOe});return y.jsxs(Re,{...P("root"),mod:[{"data-with-icon":!!u||s,"data-with-border":c},T],ref:r,variant:C,role:R||"alert",...N,children:[u&&!s&&y.jsx("div",{...P("icon"),children:u}),s&&y.jsx(im,{size:28,color:a,...A,...P("loader")}),y.jsxs("div",{...P("body"),children:[d&&y.jsx("div",{...P("title"),children:d}),y.jsx(Re,{...P("description"),mod:{"data-with-title":!!d},children:h})]}),l&&y.jsx(wp,{iconSize:16,color:"gray",...g,unstyled:k,onClick:f,...P("closeButton")})]})});Z2.classes=dG,Z2.displayName="@mantine/core/Notification";const ROe={duration:100,transition:"fade"};function uG(e,r){return{...ROe,...r,...e}}function NOe({offset:e,position:r,defaultOpened:n}){const[o,a]=E.useState(n),i=E.useRef(null),{x:s,y:l,elements:c,refs:d,update:u,placement:h}=A2({placement:r,middleware:[A9({crossAxis:!0,padding:5,rootBoundary:"document"})]}),f=h.includes("right")?e:r.includes("left")?e*-1:0,g=h.includes("bottom")?e:r.includes("top")?e*-1:0,b=E.useCallback(({clientX:x,clientY:w})=>{d.setPositionReference({getBoundingClientRect(){return{width:0,height:0,x,y:w,left:x+f,top:w+g,right:x,bottom:w}}})},[c.reference]);return E.useEffect(()=>{if(d.floating.current){const x=i.current;x.addEventListener("mousemove",b);const w=hc(d.floating.current);return w.forEach(k=>{k.addEventListener("scroll",u)}),()=>{x.removeEventListener("mousemove",b),w.forEach(k=>{k.removeEventListener("scroll",u)})}}},[c.reference,d.floating.current,u,b,o]),{handleMouseMove:b,x:s,y:l,opened:o,setOpened:a,boundaryRef:i,floating:d.setFloating}}var Q2={tooltip:"m_1b3c8819",arrow:"m_f898399f"};const DOe={refProp:"ref",withinPortal:!0,offset:10,position:"right",zIndex:Jx("popover")},$Oe=(e,{radius:r,color:n})=>({tooltip:{"--tooltip-radius":r===void 0?void 0:Mn(r),"--tooltip-bg":n?Ia(n,e):void 0,"--tooltip-color":n?"var(--mantine-color-white)":void 0}}),gS=ht((e,r)=>{const n=He("TooltipFloating",DOe,e),{children:o,refProp:a,withinPortal:i,style:s,className:l,classNames:c,styles:d,unstyled:u,radius:h,color:f,label:g,offset:b,position:x,multiline:w,zIndex:k,disabled:C,defaultOpened:_,variant:T,vars:A,portalProps:R,attributes:D,...N}=n,P=vo(),O=Dt({name:"TooltipFloating",props:n,classes:Q2,className:l,style:s,classNames:c,styles:d,unstyled:u,attributes:D,rootSelector:"tooltip",vars:A,varsResolver:$Oe}),{handleMouseMove:F,x:L,y:U,opened:M,boundaryRef:V,floating:I,setOpened:H}=NOe({offset:b,position:x,defaultOpened:_});if(!ps(o))throw new Error("[@mantine/core] Tooltip.Floating component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported");const q=Hr(V,r2(o),r),Z=o.props,W=K=>{Z.onMouseEnter?.(K),F(K),H(!0)},G=K=>{Z.onMouseLeave?.(K),H(!1)};return y.jsxs(y.Fragment,{children:[y.jsx(am,{...R,withinPortal:i,children:y.jsx(Re,{...N,...O("tooltip",{style:{...p9(s,P),zIndex:k,display:!C&&M?"block":"none",top:(U&&Math.round(U))??"",left:(L&&Math.round(L))??""}}),variant:T,ref:I,mod:{multiline:w},children:g})}),E.cloneElement(o,{...Z,[a]:q,onMouseEnter:W,onMouseLeave:G})]})});gS.classes=Q2,gS.displayName="@mantine/core/TooltipFloating";const pG=E.createContext(!1),POe=pG.Provider,MOe=()=>E.useContext(pG),zOe={openDelay:0,closeDelay:0};function Ep(e){const{openDelay:r,closeDelay:n,children:o}=He("TooltipGroup",zOe,e);return y.jsx(POe,{value:!0,children:y.jsx(UW,{delay:{open:r,close:n},children:o})})}Ep.displayName="@mantine/core/TooltipGroup",Ep.extend=e=>e;function IOe(e){if(e===void 0)return{shift:!0,flip:!0};const r={...e};return e.shift===void 0&&(r.shift=!0),e.flip===void 0&&(r.flip=!0),r}function OOe(e){const r=IOe(e.middlewares),n=[PW(e.offset)];return r.shift&&n.push(A9(typeof r.shift=="boolean"?{padding:8}:{padding:8,...r.shift})),r.flip&&n.push(typeof r.flip=="boolean"?C2():C2(r.flip)),n.push(zW({element:e.arrowRef,padding:e.arrowOffset})),r.inline?n.push(typeof r.inline=="boolean"?O0():O0(r.inline)):e.inline&&n.push(O0()),n}function jOe(e){const[r,n]=E.useState(e.defaultOpened),o=typeof e.opened=="boolean"?e.opened:r,a=MOe(),i=fi(),s=E.useCallback(T=>{n(T),T&&w(i)},[i]),{x:l,y:c,context:d,refs:u,placement:h,middlewareData:{arrow:{x:f,y:g}={}}}=A2({strategy:e.strategy,placement:e.position,open:o,onOpenChange:s,middleware:OOe(e),whileElementsMounted:_2}),{delay:b,currentId:x,setCurrentId:w}=WW(d,{id:i}),{getReferenceProps:k,getFloatingProps:C}=XW([VW(d,{enabled:e.events?.hover,delay:a?b:{open:e.openDelay,close:e.closeDelay},mouseOnly:!e.events?.touch}),kze(d,{enabled:e.events?.focus,visibleOnly:!0}),KW(d,{role:"tooltip"}),GW(d,{enabled:typeof e.opened>"u"})]);gp(()=>{e.onPositionChange?.(h)},[h]);const _=o&&x&&x!==i;return{x:l,y:c,arrowX:f,arrowY:g,reference:u.setReference,floating:u.setFloating,getFloatingProps:C,getReferenceProps:k,isGroupPhase:_,opened:o,placement:h}}const hG={position:"top",refProp:"ref",withinPortal:!0,arrowSize:4,arrowOffset:5,arrowRadius:0,arrowPosition:"side",offset:5,transitionProps:{duration:100,transition:"fade"},events:{hover:!0,focus:!1,touch:!1},zIndex:Jx("popover"),positionDependencies:[],middlewares:{flip:!0,shift:!0,inline:!1}},LOe=(e,{radius:r,color:n,variant:o,autoContrast:a})=>{const i=e.variantColorResolver({theme:e,color:n||e.primaryColor,autoContrast:a,variant:o||"filled"});return{tooltip:{"--tooltip-radius":r===void 0?void 0:Mn(r),"--tooltip-bg":n?i.background:void 0,"--tooltip-color":n?i.color:void 0}}},co=ht((e,r)=>{const n=He("Tooltip",hG,e),{children:o,position:a,refProp:i,label:s,openDelay:l,closeDelay:c,onPositionChange:d,opened:u,defaultOpened:h,withinPortal:f,radius:g,color:b,classNames:x,styles:w,unstyled:k,style:C,className:_,withArrow:T,arrowSize:A,arrowOffset:R,arrowRadius:D,arrowPosition:N,offset:P,transitionProps:O,multiline:F,events:L,zIndex:U,disabled:M,positionDependencies:V,onClick:I,onMouseEnter:H,onMouseLeave:q,inline:Z,variant:W,keepMounted:G,vars:K,portalProps:j,mod:Y,floatingStrategy:Q,middlewares:J,autoContrast:ie,attributes:ne,target:re,...ge}=He("Tooltip",hG,n),{dir:De}=Rd(),he=E.useRef(null),me=jOe({position:mY(De,a),closeDelay:c,openDelay:l,onPositionChange:d,opened:u,defaultOpened:h,events:L,arrowRef:he,arrowOffset:R,offset:typeof P=="number"?P+(T?A/2:0):P,positionDependencies:[...V,re??o],inline:Z,strategy:Q,middlewares:J});E.useEffect(()=>{const Qe=re instanceof HTMLElement?re:typeof re=="string"?document.querySelector(re):re?.current||null;Qe&&me.reference(Qe)},[re,me]);const Te=Dt({name:"Tooltip",props:n,classes:Q2,className:_,style:C,classNames:x,styles:w,unstyled:k,attributes:ne,rootSelector:"tooltip",vars:K,varsResolver:LOe});if(!re&&!ps(o))return null;if(re){const Qe=uG(O,{duration:100,transition:"fade"});return y.jsx(y.Fragment,{children:y.jsx(am,{...j,withinPortal:f,children:y.jsx(Dd,{...Qe,keepMounted:G,mounted:!M&&!!me.opened,duration:me.isGroupPhase?10:Qe.duration,children:Mt=>y.jsxs(Re,{...ge,"data-fixed":Q==="fixed"||void 0,variant:W,mod:[{multiline:F},Y],...me.getFloatingProps({ref:me.floating,className:Te("tooltip").className,style:{...Te("tooltip").style,...Mt,zIndex:U,top:me.y??0,left:me.x??0}}),children:[s,y.jsx($2,{ref:he,arrowX:me.arrowX,arrowY:me.arrowY,visible:T,position:me.placement,arrowSize:A,arrowOffset:R,arrowRadius:D,arrowPosition:N,...Te("arrow")})]})})})})}const Ie=o,Ze=Ie.props,rt=Hr(me.reference,r2(Ie),r),Rt=uG(O,{duration:100,transition:"fade"});return y.jsxs(y.Fragment,{children:[y.jsx(am,{...j,withinPortal:f,children:y.jsx(Dd,{...Rt,keepMounted:G,mounted:!M&&!!me.opened,duration:me.isGroupPhase?10:Rt.duration,children:Qe=>y.jsxs(Re,{...ge,"data-fixed":Q==="fixed"||void 0,variant:W,mod:[{multiline:F},Y],...me.getFloatingProps({ref:me.floating,className:Te("tooltip").className,style:{...Te("tooltip").style,...Qe,zIndex:U,top:me.y??0,left:me.x??0}}),children:[s,y.jsx($2,{ref:he,arrowX:me.arrowX,arrowY:me.arrowY,visible:T,position:me.placement,arrowSize:A,arrowOffset:R,arrowRadius:D,arrowPosition:N,...Te("arrow")})]})})}),E.cloneElement(Ie,me.getReferenceProps({onClick:I,onMouseEnter:H,onMouseLeave:q,onMouseMove:n.onMouseMove,onPointerDown:n.onPointerDown,onPointerEnter:n.onPointerEnter,className:hs(_,Ze.className),...Ze,[i]:rt}))]})});co.classes=Q2,co.displayName="@mantine/core/Tooltip",co.Floating=gS,co.Group=Ep;var fG={root:"m_cf365364",indicator:"m_9e182ccd",label:"m_1738fcb2",input:"m_1714d588",control:"m_69686b9b",innerLabel:"m_78882f40"};const BOe={withItemsBorders:!0},FOe=(e,{radius:r,color:n,transitionDuration:o,size:a,transitionTimingFunction:i})=>({root:{"--sc-radius":r===void 0?void 0:Mn(r),"--sc-color":n?Ia(n,e):void 0,"--sc-shadow":n?void 0:"var(--mantine-shadow-xs)","--sc-transition-duration":o===void 0?void 0:`${o}ms`,"--sc-transition-timing-function":i,"--sc-padding":kr(a,"sc-padding"),"--sc-font-size":Io(a)}}),um=ht((e,r)=>{const n=He("SegmentedControl",BOe,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,data:d,value:u,defaultValue:h,onChange:f,size:g,name:b,disabled:x,readOnly:w,fullWidth:k,orientation:C,radius:_,color:T,transitionDuration:A,transitionTimingFunction:R,variant:D,autoContrast:N,withItemsBorders:P,mod:O,attributes:F,...L}=n,U=Dt({name:"SegmentedControl",props:n,classes:fG,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:F,vars:c,varsResolver:FOe}),M=vo(),V=d.map(re=>typeof re=="string"?{label:re,value:re}:re),I=E$e(),[H,q]=E.useState(U7()),[Z,W]=E.useState(null),[G,K]=E.useState({}),j=(re,ge)=>{G[ge]=re,K(G)},[Y,Q]=dc({value:u,defaultValue:h,finalValue:Array.isArray(d)?V.find(re=>!re.disabled)?.value??d[0]?.value??null:null,onChange:f}),J=fi(b),ie=V.map(re=>E.createElement(Re,{...U("control"),mod:{active:Y===re.value,orientation:C},key:re.value},E.createElement("input",{...U("input"),disabled:x||re.disabled,type:"radio",name:J,value:re.value,id:`${J}-${re.value}`,checked:Y===re.value,onChange:()=>!w&&Q(re.value),"data-focus-ring":M.focusRing,key:`${re.value}-input`}),E.createElement(Re,{component:"label",...U("label"),mod:{active:Y===re.value&&!(x||re.disabled),disabled:x||re.disabled,"read-only":w},htmlFor:`${J}-${re.value}`,ref:ge=>j(ge,re.value),__vars:{"--sc-label-color":T!==void 0?o9({color:T,theme:M,autoContrast:N}):void 0},key:`${re.value}-label`},y.jsx("span",{...U("innerLabel"),children:re.label})))),ne=Hr(r,re=>W(re));return f$e(()=>{q(U7())},[d.length]),d.length===0?null:y.jsxs(Re,{...U("root"),variant:D,size:g,ref:ne,mod:[{"full-width":k,orientation:C,initialized:I,"with-items-borders":P},O],...L,role:"radiogroup","data-disabled":x,children:[typeof Y=="string"&&y.jsx(B2,{target:G[Y],parent:Z,component:"span",transitionDuration:"var(--sc-transition-duration)",...U("indicator")},H),ie]})});um.classes=fG,um.displayName="@mantine/core/SegmentedControl";const[HOe,J2]=hi("SliderProvider was not found in tree"),mG=E.forwardRef(({size:e,disabled:r,variant:n,color:o,thumbSize:a,radius:i,...s},l)=>{const{getStyles:c}=J2();return y.jsx(Re,{tabIndex:-1,variant:n,size:e,ref:l,...c("root"),...s})});mG.displayName="@mantine/core/SliderRoot";const gG=E.forwardRef(({max:e,min:r,value:n,position:o,label:a,dragging:i,onMouseDown:s,onKeyDownCapture:l,labelTransitionProps:c,labelAlwaysOn:d,thumbLabel:u,onFocus:h,onBlur:f,showLabelOnHover:g,isHovered:b,children:x=null,disabled:w},k)=>{const{getStyles:C}=J2(),[_,T]=E.useState(!1),A=d||i||_||g&&b;return y.jsxs(Re,{tabIndex:0,role:"slider","aria-label":u,"aria-valuemax":e,"aria-valuemin":r,"aria-valuenow":n,ref:k,__vars:{"--slider-thumb-offset":`${o}%`},...C("thumb",{focusable:!0}),mod:{dragging:i,disabled:w},onFocus:R=>{T(!0),typeof h=="function"&&h(R)},onBlur:R=>{T(!1),typeof f=="function"&&f(R)},onTouchStart:s,onMouseDown:s,onKeyDownCapture:l,onClick:R=>R.stopPropagation(),children:[x,y.jsx(Dd,{mounted:a!=null&&!!A,transition:"fade",duration:0,...c,children:R=>y.jsx("div",{...C("label",{style:R}),children:a})})]})});gG.displayName="@mantine/core/SliderThumb";function yG({value:e,min:r,max:n}){const o=(e-r)/(n-r)*100;return Math.min(Math.max(o,0),100)}function VOe({mark:e,offset:r,value:n,inverted:o=!1}){return o?typeof r=="number"&&e.value<=r||e.value>=n:typeof r=="number"?e.value>=r&&e.value<=n:e.value<=n}function bG({marks:e,min:r,max:n,disabled:o,value:a,offset:i,inverted:s}){const{getStyles:l}=J2();if(!e)return null;const c=e.map((d,u)=>E.createElement(Re,{...l("markWrapper"),__vars:{"--mark-offset":`${yG({value:d.value,min:r,max:n})}%`},key:u},y.jsx(Re,{...l("mark"),mod:{filled:VOe({mark:d,value:a,offset:i,inverted:s}),disabled:o}}),d.label&&y.jsx("div",{...l("markLabel"),children:d.label})));return y.jsx("div",{children:c})}bG.displayName="@mantine/core/SliderMarks";function vG({filled:e,children:r,offset:n,disabled:o,marksOffset:a,inverted:i,containerProps:s,...l}){const{getStyles:c}=J2();return y.jsx(Re,{...c("trackContainer"),mod:{disabled:o},...s,children:y.jsxs(Re,{...c("track"),mod:{inverted:i,disabled:o},children:[y.jsx(Re,{mod:{inverted:i,disabled:o},__vars:{"--slider-bar-width":`calc(${e}% + 2 * var(--slider-size))`,"--slider-bar-offset":`calc(${n}% - var(--slider-size))`},...c("bar")}),r,y.jsx(bG,{...l,offset:a,disabled:o,inverted:i})]})})}vG.displayName="@mantine/core/SliderTrack";function qOe({value:e,containerWidth:r,min:n,max:o,step:a,precision:i}){const s=(r?Math.min(Math.max(e,0),r)/r:e)*(o-n),l=(s!==0?Math.round(s/a)*a:0)+n,c=Math.max(l,n);return i!==void 0?Number(c.toFixed(i)):c}function ew(e,r){return parseFloat(e.toFixed(r))}function UOe(e){if(!e)return 0;const r=e.toString().split(".");return r.length>1?r[1].length:0}function yS(e,r){const n=[...r].sort((o,a)=>o.value-a.value).find(o=>o.value>e);return n?n.value:e}function bS(e,r){const n=[...r].sort((o,a)=>a.value-o.value).find(o=>o.valuen.value-o.value);return r.length>0?r[0].value:0}function wG(e){const r=[...e].sort((n,o)=>n.value-o.value);return r.length>0?r[r.length-1].value:100}var kG={root:"m_dd36362e",label:"m_c9357328",thumb:"m_c9a9a60a",trackContainer:"m_a8645c2",track:"m_c9ade57f",bar:"m_38aeed47",markWrapper:"m_b7b0423a",mark:"m_dd33bc19",markLabel:"m_68c77a5b"};const WOe={radius:"xl",min:0,max:100,step:1,marks:[],label:e=>e,labelTransitionProps:{transition:"fade",duration:0},thumbLabel:"",showLabelOnHover:!0,scale:e=>e,size:"md"},YOe=(e,{size:r,color:n,thumbSize:o,radius:a})=>({root:{"--slider-size":kr(r,"slider-size"),"--slider-color":n?Ia(n,e):void 0,"--slider-radius":a===void 0?void 0:Mn(a),"--slider-thumb-size":o!==void 0?Pe(o):"calc(var(--slider-size) * 2)"}}),vS=ht((e,r)=>{const n=He("Slider",WOe,e),{classNames:o,styles:a,value:i,onChange:s,onChangeEnd:l,size:c,min:d,max:u,domain:h,step:f,precision:g,defaultValue:b,name:x,marks:w,label:k,labelTransitionProps:C,labelAlwaysOn:_,thumbLabel:T,showLabelOnHover:A,thumbChildren:R,disabled:D,unstyled:N,scale:P,inverted:O,className:F,style:L,vars:U,hiddenInputProps:M,restrictToMarks:V,thumbProps:I,attributes:H,...q}=n,Z=Dt({name:"Slider",props:n,classes:kG,classNames:o,className:F,styles:a,style:L,attributes:H,vars:U,varsResolver:YOe,unstyled:N}),{dir:W}=Rd(),[G,K]=E.useState(!1),[j,Y]=dc({value:typeof i=="number"?Cd(i,d,u):i,defaultValue:typeof b=="number"?Cd(b,d,u):b,finalValue:Cd(0,d,u),onChange:s}),Q=E.useRef(j),J=E.useRef(l);E.useEffect(()=>{J.current=l},[l]);const ie=E.useRef(null),ne=E.useRef(null),[re,ge]=h||[d,u],De=yG({value:j,min:re,max:ge}),he=P(j),me=typeof k=="function"?k(he):k,Te=g??UOe(f),Ie=E.useCallback(({x:Ke})=>{if(!D){const Ge=qOe({value:Ke,min:re,max:ge,step:f,precision:Te}),ct=Cd(Ge,d,u);Y(V&&w?.length?MU(ct,w.map(dt=>dt.value)):ct),Q.current=ct}},[D,d,u,re,ge,f,Te,Y,w,V]),Ze=E.useCallback(()=>{if(!D&&J.current){const Ke=V&&w?.length?MU(Q.current,w.map(Ge=>Ge.value)):Q.current;J.current(Ke)}},[D,w,V]),{ref:rt,active:Rt}=CU(Ie,{onScrubEnd:Ze},W),Qe=E.useCallback(Ke=>{!D&&J.current&&J.current(Ke)},[D]),Mt=Ke=>{if(!D)switch(Ke.key){case"ArrowUp":{if(Ke.preventDefault(),ne.current?.focus(),V&&w){const ct=yS(j,w);Y(ct),Qe(ct);break}const Ge=ew(Math.min(Math.max(j+f,d),u),Te);Y(Ge),Qe(Ge);break}case"ArrowRight":{if(Ke.preventDefault(),ne.current?.focus(),V&&w){const ct=W==="rtl"?bS(j,w):yS(j,w);Y(ct),Qe(ct);break}const Ge=ew(Math.min(Math.max(W==="rtl"?j-f:j+f,d),u),Te);Y(Ge),Qe(Ge);break}case"ArrowDown":{if(Ke.preventDefault(),ne.current?.focus(),V&&w){const ct=bS(j,w);Y(ct),Qe(ct);break}const Ge=ew(Math.min(Math.max(j-f,d),u),Te);Y(Ge),Qe(Ge);break}case"ArrowLeft":{if(Ke.preventDefault(),ne.current?.focus(),V&&w){const ct=W==="rtl"?yS(j,w):bS(j,w);Y(ct),Qe(ct);break}const Ge=ew(Math.min(Math.max(W==="rtl"?j+f:j-f,d),u),Te);Y(Ge),Qe(Ge);break}case"Home":{if(Ke.preventDefault(),ne.current?.focus(),V&&w){Y(xG(w)),Qe(xG(w));break}Y(d),Qe(d);break}case"End":{if(Ke.preventDefault(),ne.current?.focus(),V&&w){Y(wG(w)),Qe(wG(w));break}Y(u),Qe(u);break}}};return y.jsx(HOe,{value:{getStyles:Z},children:y.jsxs(mG,{...q,ref:Hr(r,ie),onKeyDownCapture:Mt,onMouseDownCapture:()=>ie.current?.focus(),size:c,disabled:D,children:[y.jsx(vG,{inverted:O,offset:0,filled:De,marks:w,min:re,max:ge,value:he,disabled:D,containerProps:{ref:rt,onMouseEnter:A?()=>K(!0):void 0,onMouseLeave:A?()=>K(!1):void 0},children:y.jsx(gG,{max:ge,min:re,value:he,position:De,dragging:Rt,label:me,ref:ne,labelTransitionProps:C,labelAlwaysOn:_,thumbLabel:T,showLabelOnHover:A,isHovered:G,disabled:D,...I,children:R})}),y.jsx("input",{type:"hidden",name:x,value:he,...M})]})})});vS.classes=kG,vS.displayName="@mantine/core/Slider";const xS=ht((e,r)=>{const{w:n,h:o,miw:a,mih:i,...s}=He("Space",null,e);return y.jsx(Re,{ref:r,...s,w:n,miw:a??n,h:o,mih:i??o})});xS.displayName="@mantine/core/Space";var _G={root:"m_6d731127"};const GOe={gap:"md",align:"stretch",justify:"flex-start"},XOe=(e,{gap:r,align:n,justify:o})=>({root:{"--stack-gap":cc(r),"--stack-align":n,"--stack-justify":o}}),Xo=ht((e,r)=>{const n=He("Stack",GOe,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,align:d,justify:u,gap:h,variant:f,attributes:g,...b}=n,x=Dt({name:"Stack",props:n,classes:_G,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:g,vars:c,varsResolver:XOe});return y.jsx(Re,{ref:r,...x("root"),variant:f,...b})});Xo.classes=_G,Xo.displayName="@mantine/core/Stack";const[KOe,wS]=hi("Tabs component was not found in the tree");var W0={root:"m_89d60db1","list--default":"m_576c9d4",list:"m_89d33d6d",tab:"m_4ec4dce6",panel:"m_b0c91715",tabSection:"m_fc420b1f",tabLabel:"m_42bbd1ae","tab--default":"m_539e827b","list--outline":"m_6772fbd5","tab--outline":"m_b59ab47c","tab--pills":"m_c3381914"};const Y0=ht((e,r)=>{const n=He("TabsList",null,e),{children:o,className:a,grow:i,justify:s,classNames:l,styles:c,style:d,mod:u,...h}=n,f=wS();return y.jsx(Re,{...h,...f.getStyles("list",{className:a,style:d,classNames:l,styles:c,props:n,variant:f.variant}),ref:r,role:"tablist",variant:f.variant,mod:[{grow:i,orientation:f.orientation,placement:f.orientation==="vertical"&&f.placement,inverted:f.inverted},u],"aria-orientation":f.orientation,__vars:{"--tabs-justify":s},children:o})});Y0.classes=W0,Y0.displayName="@mantine/core/TabsList";const yc=ht((e,r)=>{const n=He("TabsPanel",null,e),{children:o,className:a,value:i,classNames:s,styles:l,style:c,mod:d,keepMounted:u,...h}=n,f=wS(),g=f.value===i,b=f.keepMounted||u||g?o:null;return y.jsx(Re,{...f.getStyles("panel",{className:a,classNames:s,styles:l,style:[c,g?void 0:{display:"none"}],props:n}),ref:r,mod:[{orientation:f.orientation},d],role:"tabpanel",id:f.getPanelId(i),"aria-labelledby":f.getTabId(i),...h,children:b})});yc.classes=W0,yc.displayName="@mantine/core/TabsPanel";const pm=ht((e,r)=>{const n=He("TabsTab",null,e),{className:o,children:a,rightSection:i,leftSection:s,value:l,onClick:c,onKeyDown:d,disabled:u,color:h,style:f,classNames:g,styles:b,vars:x,mod:w,tabIndex:k,...C}=n,_=vo(),{dir:T}=Rd(),A=wS(),R=l===A.value,D=P=>{A.onChange(A.allowTabDeactivation&&l===A.value?null:l),c?.(P)},N={classNames:g,styles:b,props:n};return y.jsxs(Er,{...A.getStyles("tab",{className:o,style:f,variant:A.variant,...N}),disabled:u,unstyled:A.unstyled,variant:A.variant,mod:[{active:R,disabled:u,orientation:A.orientation,inverted:A.inverted,placement:A.orientation==="vertical"&&A.placement},w],ref:r,role:"tab",id:A.getTabId(l),"aria-selected":R,tabIndex:k!==void 0?k:R||A.value===null?0:-1,"aria-controls":A.getPanelId(l),onClick:D,__vars:{"--tabs-color":h?Ia(h,_):void 0},onKeyDown:N0({siblingSelector:'[role="tab"]',parentSelector:'[role="tablist"]',activateOnFocus:A.activateTabWithKeyboard,loop:A.loop,orientation:A.orientation||"horizontal",dir:T,onKeyDown:d}),...C,children:[s&&y.jsx("span",{...A.getStyles("tabSection",N),"data-position":"left",children:s}),a&&y.jsx("span",{...A.getStyles("tabLabel",N),children:a}),i&&y.jsx("span",{...A.getStyles("tabSection",N),"data-position":"right",children:i})]})});pm.classes=W0,pm.displayName="@mantine/core/TabsTab";const EG="Tabs.Tab or Tabs.Panel component was rendered with invalid value or without value",ZOe={keepMounted:!0,orientation:"horizontal",loop:!0,activateTabWithKeyboard:!0,variant:"default",placement:"left"},QOe=(e,{radius:r,color:n,autoContrast:o})=>({root:{"--tabs-radius":Mn(r),"--tabs-color":Ia(n,e),"--tabs-text-color":gPe(o,e)?o9({color:n,theme:e,autoContrast:o}):void 0}}),Sp=ht((e,r)=>{const n=He("Tabs",ZOe,e),{defaultValue:o,value:a,onChange:i,orientation:s,children:l,loop:c,id:d,activateTabWithKeyboard:u,allowTabDeactivation:h,variant:f,color:g,radius:b,inverted:x,placement:w,keepMounted:k,classNames:C,styles:_,unstyled:T,className:A,style:R,vars:D,autoContrast:N,mod:P,attributes:O,...F}=n,L=fi(d),[U,M]=dc({value:a,defaultValue:o,finalValue:null,onChange:i}),V=Dt({name:"Tabs",props:n,classes:W0,className:A,style:R,classNames:C,styles:_,unstyled:T,attributes:O,vars:D,varsResolver:QOe});return y.jsx(KOe,{value:{placement:w,value:U,orientation:s,id:L,loop:c,activateTabWithKeyboard:u,getTabId:hU(`${L}-tab`,EG),getPanelId:hU(`${L}-panel`,EG),onChange:M,allowTabDeactivation:h,variant:f,color:g,radius:b,inverted:x,keepMounted:k,unstyled:T,getStyles:V},children:y.jsx(Re,{ref:r,id:L,variant:f,mod:[{orientation:s,inverted:s==="horizontal"&&x,placement:s==="vertical"&&w},P],...V("root"),...F,children:l})})});Sp.classes=W0,Sp.displayName="@mantine/core/Tabs",Sp.Tab=pm,Sp.Panel=yc,Sp.List=Y0;var SG={root:"m_7341320d"};const JOe=(e,{size:r,radius:n,variant:o,gradient:a,color:i,autoContrast:s})=>{const l=e.variantColorResolver({color:i||e.primaryColor,theme:e,gradient:a,variant:o||"filled",autoContrast:s});return{root:{"--ti-size":kr(r,"ti-size"),"--ti-radius":n===void 0?void 0:Mn(n),"--ti-bg":i||o?l.background:void 0,"--ti-color":i||o?l.color:void 0,"--ti-bd":i||o?l.border:void 0}}},Ba=ht((e,r)=>{const n=He("ThemeIcon",null,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,autoContrast:d,attributes:u,...h}=n,f=Dt({name:"ThemeIcon",classes:SG,props:n,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:u,vars:c,varsResolver:JOe});return y.jsx(Re,{ref:r,...f("root"),...h})});Ba.classes=SG,Ba.displayName="@mantine/core/ThemeIcon";const eje=["h1","h2","h3","h4","h5","h6"],tje=["xs","sm","md","lg","xl"];function rje(e,r){const n=r!==void 0?r:`h${e}`;return eje.includes(n)?{fontSize:`var(--mantine-${n}-font-size)`,fontWeight:`var(--mantine-${n}-font-weight)`,lineHeight:`var(--mantine-${n}-line-height)`}:tje.includes(n)?{fontSize:`var(--mantine-font-size-${n})`,fontWeight:`var(--mantine-h${e}-font-weight)`,lineHeight:`var(--mantine-h${e}-line-height)`}:{fontSize:Pe(n),fontWeight:`var(--mantine-h${e}-font-weight)`,lineHeight:`var(--mantine-h${e}-line-height)`}}var CG={root:"m_8a5d1357"};const nje={order:1},oje=(e,{order:r,size:n,lineClamp:o,textWrap:a})=>{const i=rje(r||1,n);return{root:{"--title-fw":i.fontWeight,"--title-lh":i.lineHeight,"--title-fz":i.fontSize,"--title-line-clamp":typeof o=="number"?o.toString():void 0,"--title-text-wrap":a}}},Cp=ht((e,r)=>{const n=He("Title",nje,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,order:c,vars:d,size:u,variant:h,lineClamp:f,textWrap:g,mod:b,attributes:x,...w}=n,k=Dt({name:"Title",props:n,classes:CG,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:x,vars:d,varsResolver:oje});return[1,2,3,4,5,6].includes(c)?y.jsx(Re,{...k("root"),component:`h${c}`,variant:h,ref:r,mod:[{order:c,"data-line-clamp":typeof f=="number"},b],size:u,...w}):null});Cp.classes=CG,Cp.displayName="@mantine/core/Title";function TG(e,r,n){if(!e||!r)return[];const o=n.indexOf(e),a=n.indexOf(r),i=Math.min(o,a),s=Math.max(o,a);return n.slice(i,s+1)}function kS({node:e,getStyles:r,rootIndex:n,controller:o,expandOnClick:a,selectOnClick:i,isSubtree:s,level:l=1,renderNode:c,flatValues:d,allowRangeSelection:u,expandOnSpace:h,checkOnSpace:f}){const g=E.useRef(null),b=(e.children||[]).map(_=>y.jsx(kS,{node:_,flatValues:d,getStyles:r,rootIndex:void 0,level:l+1,controller:o,expandOnClick:a,isSubtree:!0,renderNode:c,selectOnClick:i,allowRangeSelection:u,expandOnSpace:h,checkOnSpace:f},_.value)),x=_=>{if(_.nativeEvent.code==="ArrowRight"&&(_.stopPropagation(),_.preventDefault(),o.expandedState[e.value]?_.currentTarget.querySelector("[role=treeitem]")?.focus():o.expand(e.value)),_.nativeEvent.code==="ArrowLeft"&&(_.stopPropagation(),_.preventDefault(),o.expandedState[e.value]&&(e.children||[]).length>0?o.collapse(e.value):s&&Wf(_.currentTarget,"[role=treeitem]")?.focus()),_.nativeEvent.code==="ArrowDown"||_.nativeEvent.code==="ArrowUp"){const T=Wf(_.currentTarget,"[data-tree-root]");if(!T)return;_.stopPropagation(),_.preventDefault();const A=Array.from(T.querySelectorAll("[role=treeitem]")),R=A.indexOf(_.currentTarget);if(R===-1)return;const D=_.nativeEvent.code==="ArrowDown"?R+1:R-1;if(A[D]?.focus(),_.shiftKey){const N=A[D];N&&o.setSelectedState(TG(o.anchorNode,N.dataset.value,d))}}_.nativeEvent.code==="Space"&&(h&&(_.stopPropagation(),_.preventDefault(),o.toggleExpanded(e.value)),f&&(_.stopPropagation(),_.preventDefault(),o.isNodeChecked(e.value)?o.uncheckNode(e.value):o.checkNode(e.value)))},w=_=>{_.stopPropagation(),u&&_.shiftKey&&o.anchorNode?(o.setSelectedState(TG(o.anchorNode,e.value,d)),g.current?.focus()):(a&&o.toggleExpanded(e.value),i&&o.select(e.value),g.current?.focus())},k=o.selectedState.includes(e.value),C={...r("label"),onClick:w,"data-selected":k||void 0,"data-value":e.value,"data-hovered":o.hoveredNode===e.value||void 0};return y.jsxs("li",{...r("node",{style:{"--label-offset":`calc(var(--level-offset) * ${l-1})`}}),role:"treeitem","aria-selected":k,"data-value":e.value,"data-selected":k||void 0,"data-hovered":o.hoveredNode===e.value||void 0,"data-level":l,tabIndex:n===0?0:-1,onKeyDown:x,ref:g,onMouseOver:_=>{_.stopPropagation(),o.setHoveredNode(e.value)},onMouseLeave:_=>{_.stopPropagation(),o.setHoveredNode(null)},children:[typeof c=="function"?c({node:e,level:l,selected:k,tree:o,expanded:o.expandedState[e.value]||!1,hasChildren:Array.isArray(e.children)&&e.children.length>0,elementProps:C}):y.jsx("div",{...C,children:e.label}),o.expandedState[e.value]&&b.length>0&&y.jsx(Re,{component:"ul",role:"group",...r("subtree"),"data-level":l,children:b})]})}kS.displayName="@mantine/core/TreeNode";function tw(e,r,n=[]){const o=[];for(const a of e)if(Array.isArray(a.children)&&a.children.length>0){const i=tw(a.children,r,n);if(i.currentTreeChecked.length===a.children.length){const s=i.currentTreeChecked.every(c=>c.checked),l={checked:s,indeterminate:!s,value:a.value,hasChildren:!0};o.push(l),n.push(l)}else if(i.currentTreeChecked.length>0){const s={checked:!1,indeterminate:!0,value:a.value,hasChildren:!0};o.push(s),n.push(s)}}else if(r.includes(a.value)){const i={checked:!0,indeterminate:!1,value:a.value,hasChildren:!1};o.push(i),n.push(i)}return{result:n,currentTreeChecked:o}}function AG(e,r){for(const n of r){if(n.value===e)return n;if(Array.isArray(n.children)){const o=AG(e,n.children);if(o)return o}}return null}function rw(e,r,n=[]){const o=AG(e,r);return o?!Array.isArray(o.children)||o.children.length===0?[o.value]:(o.children.forEach(a=>{Array.isArray(a.children)&&a.children.length>0?rw(a.value,r,n):n.push(a.value)}),n):n}function RG(e){return e.reduce((r,n)=>(Array.isArray(n.children)&&n.children.length>0?r.push(...RG(n.children)):r.push(n.value),r),[])}function aje(e,r,n){return n.length===0?!1:n.includes(e)?!0:tw(r,n).result.some(o=>o.value===e&&o.checked)}const ije=PU(aje);function sje(e,r,n){return n.length===0?!1:tw(r,n).result.some(o=>o.value===e&&o.indeterminate)}const lje=PU(sje);function NG(e,r,n,o={}){return r.forEach(a=>{o[a.value]=a.value in e?e[a.value]:a.value===n,Array.isArray(a.children)&&NG(e,a.children,n,o)}),o}function cje(e,r){const n=[];return e.forEach(o=>n.push(...rw(o,r))),Array.from(new Set(n))}function G0({initialSelectedState:e=[],initialCheckedState:r=[],initialExpandedState:n={},multiple:o=!1,onNodeCollapse:a,onNodeExpand:i}={}){const[s,l]=E.useState([]),[c,d]=E.useState(n),[u,h]=E.useState(e),[f,g]=E.useState(r),[b,x]=E.useState(null),[w,k]=E.useState(null),C=E.useCallback(I=>{d(H=>NG(H,I,u)),g(H=>cje(H,I)),l(I)},[u,f]),_=E.useCallback(I=>{d(H=>{const q={...H,[I]:!H[I]};return q[I]?i?.(I):a?.(I),q})},[a,i]),T=E.useCallback(I=>{d(H=>(H[I]!==!1&&a?.(I),{...H,[I]:!1}))},[a]),A=E.useCallback(I=>{d(H=>(H[I]!==!0&&i?.(I),{...H,[I]:!0}))},[i]),R=E.useCallback(()=>{d(I=>{const H={...I};return Object.keys(H).forEach(q=>{H[q]=!0}),H})},[]),D=E.useCallback(()=>{d(I=>{const H={...I};return Object.keys(H).forEach(q=>{H[q]=!1}),H})},[]),N=E.useCallback(I=>h(H=>o?H.includes(I)?(x(null),H.filter(q=>q!==I)):(x(I),[...H,I]):H.includes(I)?(x(null),[]):(x(I),[I])),[]),P=E.useCallback(I=>{x(I),h(H=>o?H.includes(I)?H:[...H,I]:[I])},[]),O=E.useCallback(I=>{b===I&&x(null),h(H=>H.filter(q=>q!==I))},[]),F=E.useCallback(()=>{h([]),x(null)},[]),L=E.useCallback(I=>{const H=rw(I,s);g(q=>Array.from(new Set([...q,...H])))},[s]),U=E.useCallback(I=>{const H=rw(I,s);g(q=>q.filter(Z=>!H.includes(Z)))},[s]),M=E.useCallback(()=>{g(()=>RG(s))},[s]),V=E.useCallback(()=>{g([])},[]);return{multiple:o,expandedState:c,selectedState:u,checkedState:f,anchorNode:b,initialize:C,toggleExpanded:_,collapse:T,expand:A,expandAllNodes:R,collapseAllNodes:D,setExpandedState:d,checkNode:L,uncheckNode:U,checkAllNodes:M,uncheckAllNodes:V,setCheckedState:g,toggleSelected:N,select:P,deselect:O,clearSelected:F,setSelectedState:h,hoveredNode:w,setHoveredNode:k,getCheckedNodes:()=>tw(s,f).result,isNodeChecked:I=>ije(I,s,f),isNodeIndeterminate:I=>lje(I,s,f)}}var DG={root:"m_f698e191",subtree:"m_75f3ecf",node:"m_f6970eb1",label:"m_dc283425"};function $G(e){return e.reduce((r,n)=>(r.push(n.value),n.children&&r.push(...$G(n.children)),r),[])}const dje={expandOnClick:!0,allowRangeSelection:!0,expandOnSpace:!0},uje=(e,{levelOffset:r})=>({root:{"--level-offset":cc(r)}}),hm=ht((e,r)=>{const n=He("Tree",dje,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,data:d,expandOnClick:u,tree:h,renderNode:f,selectOnClick:g,clearSelectionOnOutsideClick:b,allowRangeSelection:x,expandOnSpace:w,levelOffset:k,checkOnSpace:C,attributes:_,...T}=n,A=G0(),R=h||A,D=Dt({name:"Tree",classes:DG,props:n,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:_,vars:c,varsResolver:uje}),N=yU(()=>b&&R.clearSelected()),P=Hr(r,N),O=E.useMemo(()=>$G(d),[d]);E.useEffect(()=>{R.initialize(d)},[d]);const F=d.map((L,U)=>y.jsx(kS,{node:L,getStyles:D,rootIndex:U,expandOnClick:u,selectOnClick:g,controller:R,renderNode:f,flatValues:O,allowRangeSelection:x,expandOnSpace:w,checkOnSpace:C},L.value));return y.jsx(Re,{component:"ul",ref:P,...D("root"),...T,role:"tree","aria-multiselectable":R.multiple,"data-tree-root":!0,children:F})});hm.displayName="@mantine/core/Tree",hm.classes=DG;const _S=E.createContext(null);function PG(){const e=E.useContext(_S);if(!e)throw new Error("useRootContainer must be used within a RootContainer");return e}function pje(){return PG().ref}function hje(){return PG().ref.current}const MG=E.createContext(null);function fje(){const e=E.useContext(MG);return e===null&&console.warn("ReduceGraphicsMode is not provided"),e??!1}const[mje,gje]=hi("PanningAtomSafeCtx is not provided");function yje({id:e,className:r,reduceGraphics:n=!1,children:o}){const[a,i]=E.useState(!1),s=E.useRef(null),l=E.useRef(null);l.current||(l.current=JNe(!1)),VE(()=>{i(!0)},[]),E.useEffect(()=>l.current?.subscribe(d=>{s.current?.setAttribute("data-likec4-diagram-panning",d?"true":"false")}),[]);const c=E.useMemo(()=>({id:e,ref:s}),[e,s]);return y.jsx(mje,{value:l.current,children:y.jsx(MG.Provider,{value:n,children:y.jsx("div",{id:e,className:et("likec4-root",r),ref:s,...n&&{"data-likec4-reduced-graphics":!0},children:a&&!!c.ref.current&&y.jsx(_S.Provider,{value:c,children:o})})})})}var bje=Object.getOwnPropertyNames,vje=Object.getOwnPropertySymbols,xje=Object.prototype.hasOwnProperty;function zG(e,r){return function(n,o,a){return e(n,o,a)&&r(n,o,a)}}function nw(e){return function(r,n,o){if(!r||!n||typeof r!="object"||typeof n!="object")return e(r,n,o);var a=o.cache,i=a.get(r),s=a.get(n);if(i&&s)return i===n&&s===r;a.set(r,n),a.set(n,r);var l=e(r,n,o);return a.delete(r),a.delete(n),l}}function wje(e){return e?.[Symbol.toStringTag]}function IG(e){return bje(e).concat(vje(e))}var kje=Object.hasOwn||(function(e,r){return xje.call(e,r)});function Tp(e,r){return e===r||!e&&!r&&e!==e&&r!==r}var _je="__v",Eje="__o",Sje="_owner",OG=Object.getOwnPropertyDescriptor,jG=Object.keys;function Cje(e,r,n){var o=e.length;if(r.length!==o)return!1;for(;o-- >0;)if(!n.equals(e[o],r[o],o,o,e,r,n))return!1;return!0}function Tje(e,r){return Tp(e.getTime(),r.getTime())}function Aje(e,r){return e.name===r.name&&e.message===r.message&&e.cause===r.cause&&e.stack===r.stack}function Rje(e,r){return e===r}function LG(e,r,n){var o=e.size;if(o!==r.size)return!1;if(!o)return!0;for(var a=new Array(o),i=e.entries(),s,l,c=0;(s=i.next())&&!s.done;){for(var d=r.entries(),u=!1,h=0;(l=d.next())&&!l.done;){if(a[h]){h++;continue}var f=s.value,g=l.value;if(n.equals(f[0],g[0],c,h,e,r,n)&&n.equals(f[1],g[1],f[0],g[0],e,r,n)){u=a[h]=!0;break}h++}if(!u)return!1;c++}return!0}var Nje=Tp;function Dje(e,r,n){var o=jG(e),a=o.length;if(jG(r).length!==a)return!1;for(;a-- >0;)if(!FG(e,r,n,o[a]))return!1;return!0}function X0(e,r,n){var o=IG(e),a=o.length;if(IG(r).length!==a)return!1;for(var i,s,l;a-- >0;)if(i=o[a],!FG(e,r,n,i)||(s=OG(e,i),l=OG(r,i),(s||l)&&(!s||!l||s.configurable!==l.configurable||s.enumerable!==l.enumerable||s.writable!==l.writable)))return!1;return!0}function $je(e,r){return Tp(e.valueOf(),r.valueOf())}function Pje(e,r){return e.source===r.source&&e.flags===r.flags}function BG(e,r,n){var o=e.size;if(o!==r.size)return!1;if(!o)return!0;for(var a=new Array(o),i=e.values(),s,l;(s=i.next())&&!s.done;){for(var c=r.values(),d=!1,u=0;(l=c.next())&&!l.done;){if(!a[u]&&n.equals(s.value,l.value,s.value,l.value,e,r,n)){d=a[u]=!0;break}u++}if(!d)return!1}return!0}function Mje(e,r){var n=e.length;if(r.length!==n)return!1;for(;n-- >0;)if(e[n]!==r[n])return!1;return!0}function zje(e,r){return e.hostname===r.hostname&&e.pathname===r.pathname&&e.protocol===r.protocol&&e.port===r.port&&e.hash===r.hash&&e.username===r.username&&e.password===r.password}function FG(e,r,n,o){return(o===Sje||o===Eje||o===_je)&&(e.$$typeof||r.$$typeof)?!0:kje(r,o)&&n.equals(e[o],r[o],o,o,e,r,n)}var Ije="[object Arguments]",Oje="[object Boolean]",jje="[object Date]",Lje="[object Error]",Bje="[object Map]",Fje="[object Number]",Hje="[object Object]",Vje="[object RegExp]",qje="[object Set]",Uje="[object String]",Wje="[object URL]",Yje=Array.isArray,HG=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,VG=Object.assign,Gje=Object.prototype.toString.call.bind(Object.prototype.toString);function Xje(e){var r=e.areArraysEqual,n=e.areDatesEqual,o=e.areErrorsEqual,a=e.areFunctionsEqual,i=e.areMapsEqual,s=e.areNumbersEqual,l=e.areObjectsEqual,c=e.arePrimitiveWrappersEqual,d=e.areRegExpsEqual,u=e.areSetsEqual,h=e.areTypedArraysEqual,f=e.areUrlsEqual,g=e.unknownTagComparators;return function(b,x,w){if(b===x)return!0;if(b==null||x==null)return!1;var k=typeof b;if(k!==typeof x)return!1;if(k!=="object")return k==="number"?s(b,x,w):k==="function"?a(b,x,w):!1;var C=b.constructor;if(C!==x.constructor)return!1;if(C===Object)return l(b,x,w);if(Yje(b))return r(b,x,w);if(HG!=null&&HG(b))return h(b,x,w);if(C===Date)return n(b,x,w);if(C===RegExp)return d(b,x,w);if(C===Map)return i(b,x,w);if(C===Set)return u(b,x,w);var _=Gje(b);if(_===jje)return n(b,x,w);if(_===Vje)return d(b,x,w);if(_===Bje)return i(b,x,w);if(_===qje)return u(b,x,w);if(_===Hje)return typeof b.then!="function"&&typeof x.then!="function"&&l(b,x,w);if(_===Wje)return f(b,x,w);if(_===Lje)return o(b,x,w);if(_===Ije)return l(b,x,w);if(_===Oje||_===Fje||_===Uje)return c(b,x,w);if(g){var T=g[_];if(!T){var A=wje(b);A&&(T=g[A])}if(T)return T(b,x,w)}return!1}}function Kje(e){var r=e.circular,n=e.createCustomConfig,o=e.strict,a={areArraysEqual:o?X0:Cje,areDatesEqual:Tje,areErrorsEqual:Aje,areFunctionsEqual:Rje,areMapsEqual:o?zG(LG,X0):LG,areNumbersEqual:Nje,areObjectsEqual:o?X0:Dje,arePrimitiveWrappersEqual:$je,areRegExpsEqual:Pje,areSetsEqual:o?zG(BG,X0):BG,areTypedArraysEqual:o?X0:Mje,areUrlsEqual:zje,unknownTagComparators:void 0};if(n&&(a=VG({},a,n(a))),r){var i=nw(a.areArraysEqual),s=nw(a.areMapsEqual),l=nw(a.areObjectsEqual),c=nw(a.areSetsEqual);a=VG({},a,{areArraysEqual:i,areMapsEqual:s,areObjectsEqual:l,areSetsEqual:c})}return a}function Zje(e){return function(r,n,o,a,i,s,l){return e(r,n,l)}}function Qje(e){var r=e.circular,n=e.comparator,o=e.createState,a=e.equals,i=e.strict;if(o)return function(l,c){var d=o(),u=d.cache,h=u===void 0?r?new WeakMap:void 0:u,f=d.meta;return n(l,c,{cache:h,equals:a,meta:f,strict:i})};if(r)return function(l,c){return n(l,c,{cache:new WeakMap,equals:a,meta:void 0,strict:i})};var s={cache:void 0,equals:a,meta:void 0,strict:i};return function(l,c){return n(l,c,s)}}var lt=zd();zd({strict:!0}),zd({circular:!0}),zd({circular:!0,strict:!0});var an=zd({createInternalComparator:function(){return Tp}});zd({strict:!0,createInternalComparator:function(){return Tp}}),zd({circular:!0,createInternalComparator:function(){return Tp}}),zd({circular:!0,createInternalComparator:function(){return Tp},strict:!0});function zd(e){e===void 0&&(e={});var r=e.circular,n=r===void 0?!1:r,o=e.createInternalComparator,a=e.createState,i=e.strict,s=i===void 0?!1:i,l=Kje(e),c=Xje(l),d=o?o(c):Zje(c);return Qje({circular:n,comparator:c,createState:a,equals:d,strict:s})}const K0=E.createContext(null),ES=E.createContext(null);function Jje(){return E.useContext(K0)}function Ko(){const e=E.useContext(K0);if(!e)throw new Error("LikeC4Model not found. Make sure you have LikeC4ModelProvider.");return e}function eLe(){const e=Ko(),[r,n]=E.useState(e.$data.specification);return E.useEffect(()=>{n(o=>lt(o,e.$data.specification)?o:e.$data.specification)},[e]),r}const qG=E.createContext({}),tLe=I6e,rLe=e=>{const r=e.color;if(OB(e))return` +`}function Fq({cssVariablesSelector:e,deduplicateCssVariables:r}){const n=lo(),o=Zu(),a=gze(),i=Bze({theme:n,generator:a}),l=e===":root"&&r,s=l?Oze(i):i,c=Nze(s,e);return c?y.jsx("style",{"data-mantine-styles":!0,nonce:o?.(),dangerouslySetInnerHTML:{__html:`${c}${l?"":Ize(e)}`}}):null}Fq.displayName="@mantine/CssVariables";function xf(e,r){const n=typeof window<"u"&&"matchMedia"in window&&window.matchMedia("(prefers-color-scheme: dark)")?.matches,o=e!=="auto"?e:n?"dark":"light";r()?.setAttribute("data-mantine-color-scheme",o)}function Lze({manager:e,defaultColorScheme:r,getRootElement:n,forceColorScheme:o}){const a=S.useRef(null),[i,l]=S.useState(()=>e.get(r)),s=o||i,c=S.useCallback(u=>{o||(xf(u,n),l(u),e.set(u))},[e.set,s,o]),d=S.useCallback(()=>{l(r),xf(r,n),e.clear()},[e.clear,r]);return S.useEffect(()=>(e.subscribe(c),e.unsubscribe),[e.subscribe,e.unsubscribe]),Z1(()=>{xf(e.get(r),n)},[]),S.useEffect(()=>{if(o)return xf(o,n),()=>{};o===void 0&&xf(i,n),typeof window<"u"&&"matchMedia"in window&&(a.current=window.matchMedia("(prefers-color-scheme: dark)"));const u=p=>{i==="auto"&&xf(p.matches?"dark":"light",n)};return a.current?.addEventListener("change",u),()=>a.current?.removeEventListener("change",u)},[i,o]),{colorScheme:s,setColorScheme:c,clearColorScheme:d}}function Fze({respectReducedMotion:e,getRootElement:r}){Z1(()=>{e&&r()?.setAttribute("data-respect-reduced-motion","true")},[e])}function q7({theme:e,children:r,getStyleNonce:n,withStaticClasses:o=!0,withGlobalClasses:a=!0,deduplicateCssVariables:i=!0,withCssVariables:l=!0,cssVariablesSelector:s=":root",classNamesPrefix:c="mantine",colorSchemeManager:d=jze(),defaultColorScheme:u="light",getRootElement:p=()=>document.documentElement,cssVariablesResolver:f,forceColorScheme:g,stylesTransform:v,env:w}){const{colorScheme:x,setColorScheme:k,clearColorScheme:C}=Lze({defaultColorScheme:u,forceColorScheme:g,manager:d,getRootElement:p});return Fze({respectReducedMotion:e?.respectReducedMotion||!1,getRootElement:p}),y.jsx(pw.Provider,{value:{colorScheme:x,setColorScheme:k,clearColorScheme:C,getRootElement:p,classNamesPrefix:c,getStyleNonce:n,cssVariablesResolver:f,cssVariablesSelector:s,withStaticClasses:o,stylesTransform:v,env:w},children:y.jsxs(Oq,{theme:e,children:[l&&y.jsx(Fq,{cssVariablesSelector:s,deduplicateCssVariables:i}),a&&y.jsx(Mze,{}),r]})})}q7.displayName="@mantine/core/MantineProvider";function H7({classNames:e,styles:r,props:n,stylesCtx:o}){const a=lo();return{resolvedClassNames:dw({theme:a,classNames:e,props:n,stylesCtx:o||void 0}),resolvedStyles:uw({theme:a,styles:r,props:n,stylesCtx:o||void 0})}}const Vze={always:"mantine-focus-always",auto:"mantine-focus-auto",never:"mantine-focus-never"};function qze({theme:e,options:r,unstyled:n}){return Qi(r?.focusable&&!n&&(e.focusClassName||Vze[e.focusRing]),r?.active&&!n&&e.activeClassName)}function Hze({selector:e,stylesCtx:r,options:n,props:o,theme:a}){return dw({theme:a,classNames:n?.classNames,props:n?.props||o,stylesCtx:r})[e]}function Vq({selector:e,stylesCtx:r,theme:n,classNames:o,props:a}){return dw({theme:n,classNames:o,props:a,stylesCtx:r})[e]}function Uze({rootSelector:e,selector:r,className:n}){return e===r?n:void 0}function Wze({selector:e,classes:r,unstyled:n}){return n?void 0:r[e]}function Gze({themeName:e,classNamesPrefix:r,selector:n,withStaticClass:o}){return o===!1?[]:e.map(a=>`${r}-${a}-${n}`)}function Yze({themeName:e,theme:r,selector:n,props:o,stylesCtx:a}){return e.map(i=>dw({theme:r,classNames:r.components[i]?.classNames,props:o,stylesCtx:a})?.[n])}function Xze({options:e,classes:r,selector:n,unstyled:o}){return e?.variant&&!o?r[`${n}--${e.variant}`]:void 0}function Zze({theme:e,options:r,themeName:n,selector:o,classNamesPrefix:a,classNames:i,classes:l,unstyled:s,className:c,rootSelector:d,props:u,stylesCtx:p,withStaticClasses:f,headless:g,transformedStyles:v}){return Qi(qze({theme:e,options:r,unstyled:s||g}),Yze({theme:e,themeName:n,selector:o,props:u,stylesCtx:p}),Xze({options:r,classes:l,selector:o,unstyled:s}),Vq({selector:o,stylesCtx:p,theme:e,classNames:i,props:u}),Vq({selector:o,stylesCtx:p,theme:e,classNames:v,props:u}),Hze({selector:o,stylesCtx:p,options:r,props:u,theme:e}),Uze({rootSelector:d,selector:o,className:c}),Wze({selector:o,classes:l,unstyled:s||g}),f&&!g&&Gze({themeName:n,classNamesPrefix:a,selector:o,withStaticClass:r?.withStaticClass}),r?.className)}function Kze({theme:e,themeName:r,props:n,stylesCtx:o,selector:a}){return r.map(i=>uw({theme:e,styles:e.components[i]?.styles,props:n,stylesCtx:o})[a]).reduce((i,l)=>({...i,...l}),{})}function U7({style:e,theme:r}){return Array.isArray(e)?[...e].reduce((n,o)=>({...n,...U7({style:o,theme:r})}),{}):typeof e=="function"?e(r):e??{}}function Qze(e){return e.reduce((r,n)=>(n&&Object.keys(n).forEach(o=>{r[o]={...r[o],...ff(n[o])}}),r),{})}function Jze({vars:e,varsResolver:r,theme:n,props:o,stylesCtx:a,selector:i,themeName:l,headless:s}){return Qze([s?{}:r?.(n,o,a),...l.map(c=>n.components?.[c]?.vars?.(n,o,a)),e?.(n,o,a)])?.[i]}function eRe({theme:e,themeName:r,selector:n,options:o,props:a,stylesCtx:i,rootSelector:l,styles:s,style:c,vars:d,varsResolver:u,headless:p,withStylesTransform:f}){return{...!f&&Kze({theme:e,themeName:r,props:a,stylesCtx:i,selector:n}),...!f&&uw({theme:e,styles:s,props:a,stylesCtx:i})[n],...!f&&uw({theme:e,styles:o?.styles,props:o?.props||a,stylesCtx:i})[n],...Jze({theme:e,props:a,stylesCtx:i,vars:d,varsResolver:u,selector:n,themeName:r,headless:p}),...l===n?U7({style:c,theme:e}):null,...U7({style:o?.style,theme:e})}}function tRe({props:e,stylesCtx:r,themeName:n}){const o=lo(),a=wze()?.();return{getTransformedStyles:i=>a?[...i.map(l=>a(l,{props:e,theme:o,ctx:r})),...n.map(l=>a(o.components[l]?.styles,{props:e,theme:o,ctx:r}))].filter(Boolean):[],withStylesTransform:!!a}}function kt({name:e,classes:r,props:n,stylesCtx:o,className:a,style:i,rootSelector:l="root",unstyled:s,classNames:c,styles:d,vars:u,varsResolver:p,attributes:f}){const g=lo(),v=yze(),w=vze(),x=bze(),k=(Array.isArray(e)?e:[e]).filter($=>$),{withStylesTransform:C,getTransformedStyles:_}=tRe({props:n,stylesCtx:o,themeName:k});return($,z)=>({className:Zze({theme:g,options:z,themeName:k,selector:$,classNamesPrefix:v,classNames:c,classes:r,unstyled:s,className:a,rootSelector:l,props:n,stylesCtx:o,withStaticClasses:w,headless:x,transformedStyles:_([z?.styles,d])}),style:eRe({theme:g,themeName:k,selector:$,options:z,props:n,stylesCtx:o,rootSelector:l,styles:d,style:i,vars:u,varsResolver:p,headless:x,withStylesTransform:C}),...f?.[$]})}function rRe(e,r){return typeof e=="boolean"?e:r.autoContrast}function qq(e){const r=document.createElement("style");return r.setAttribute("data-mantine-styles","inline"),r.innerHTML="*, *::before, *::after {transition: none !important;}",r.setAttribute("data-mantine-disable-transition","true"),e&&r.setAttribute("nonce",e),document.head.appendChild(r),()=>document.querySelectorAll("[data-mantine-disable-transition]").forEach(n=>n.remove())}function nRe({keepTransitions:e}={}){const r=S.useRef(pq),n=S.useRef(-1),o=S.useContext(pw),a=Zu(),i=S.useRef(a?.());if(!o)throw new Error("[@mantine/core] MantineProvider was not found in tree");const l=p=>{o.setColorScheme(p),r.current=e?()=>{}:qq(i.current),window.clearTimeout(n.current),n.current=window.setTimeout(()=>{r.current?.()},10)},s=()=>{o.clearColorScheme(),r.current=e?()=>{}:qq(i.current),window.clearTimeout(n.current),n.current=window.setTimeout(()=>{r.current?.()},10)},c=yq("light",{getInitialValueInEffect:!1}),d=o.colorScheme==="auto"?c:o.colorScheme,u=S.useCallback(()=>l(d==="light"?"dark":"light"),[l,d]);return S.useEffect(()=>()=>{r.current?.(),window.clearTimeout(n.current)},[]),{colorScheme:o.colorScheme,setColorScheme:l,clearColorScheme:s,toggleColorScheme:u}}function Me(e,r,n){const o=lo(),a=o.components[e]?.defaultProps,i=typeof a=="function"?a(o):a;return{...r,...i,...ff(n)}}function W7(e){return So(e).reduce((r,n)=>e[n]!==void 0?`${r}${k$e(n)}:${e[n]};`:r,"").trim()}function oRe({selector:e,styles:r,media:n,container:o}){const a=r?W7(r):"",i=Array.isArray(n)?n.map(s=>`@media${s.query}{${e}{${W7(s.styles)}}}`):[],l=Array.isArray(o)?o.map(s=>`@container ${s.query}{${e}{${W7(s.styles)}}}`):[];return`${a?`${e}{${a}}`:""}${i.join("")}${l.join("")}`.trim()}function gw(e){const r=Zu();return y.jsx("style",{"data-mantine-styles":"inline",nonce:r?.(),dangerouslySetInnerHTML:{__html:oRe(e)}})}function Hq(e){const{m:r,mx:n,my:o,mt:a,mb:i,ml:l,mr:s,me:c,ms:d,p:u,px:p,py:f,pt:g,pb:v,pl:w,pr:x,pe:k,ps:C,bd:_,bdrs:$,bg:z,c:j,opacity:A,ff:R,fz:T,fw:O,lts:P,ta:L,lh:H,fs:M,tt:V,td:B,w:F,miw:q,maw:G,h:U,mih:Y,mah:Z,bgsz:I,bgp:W,bgr:K,bga:Q,pos:ae,top:te,left:re,bottom:ue,right:_e,inset:ce,display:pe,flex:xe,hiddenFrom:De,visibleFrom:Be,lightHidden:Je,darkHidden:st,sx:Le,...St}=e;return{styleProps:ff({m:r,mx:n,my:o,mt:a,mb:i,ml:l,mr:s,me:c,ms:d,p:u,px:p,py:f,pt:g,pb:v,pl:w,pr:x,pe:k,ps:C,bd:_,bg:z,c:j,opacity:A,ff:R,fz:T,fw:O,lts:P,ta:L,lh:H,fs:M,tt:V,td:B,w:F,miw:q,maw:G,h:U,mih:Y,mah:Z,bgsz:I,bgp:W,bgr:K,bga:Q,pos:ae,top:te,left:re,bottom:ue,right:_e,inset:ce,display:pe,flex:xe,bdrs:$,hiddenFrom:De,visibleFrom:Be,lightHidden:Je,darkHidden:st,sx:Le}),rest:St}}const aRe={m:{type:"spacing",property:"margin"},mt:{type:"spacing",property:"marginTop"},mb:{type:"spacing",property:"marginBottom"},ml:{type:"spacing",property:"marginLeft"},mr:{type:"spacing",property:"marginRight"},ms:{type:"spacing",property:"marginInlineStart"},me:{type:"spacing",property:"marginInlineEnd"},mx:{type:"spacing",property:"marginInline"},my:{type:"spacing",property:"marginBlock"},p:{type:"spacing",property:"padding"},pt:{type:"spacing",property:"paddingTop"},pb:{type:"spacing",property:"paddingBottom"},pl:{type:"spacing",property:"paddingLeft"},pr:{type:"spacing",property:"paddingRight"},ps:{type:"spacing",property:"paddingInlineStart"},pe:{type:"spacing",property:"paddingInlineEnd"},px:{type:"spacing",property:"paddingInline"},py:{type:"spacing",property:"paddingBlock"},bd:{type:"border",property:"border"},bdrs:{type:"radius",property:"borderRadius"},bg:{type:"color",property:"background"},c:{type:"textColor",property:"color"},opacity:{type:"identity",property:"opacity"},ff:{type:"fontFamily",property:"fontFamily"},fz:{type:"fontSize",property:"fontSize"},fw:{type:"identity",property:"fontWeight"},lts:{type:"size",property:"letterSpacing"},ta:{type:"identity",property:"textAlign"},lh:{type:"lineHeight",property:"lineHeight"},fs:{type:"identity",property:"fontStyle"},tt:{type:"identity",property:"textTransform"},td:{type:"identity",property:"textDecoration"},w:{type:"spacing",property:"width"},miw:{type:"spacing",property:"minWidth"},maw:{type:"spacing",property:"maxWidth"},h:{type:"spacing",property:"height"},mih:{type:"spacing",property:"minHeight"},mah:{type:"spacing",property:"maxHeight"},bgsz:{type:"size",property:"backgroundSize"},bgp:{type:"identity",property:"backgroundPosition"},bgr:{type:"identity",property:"backgroundRepeat"},bga:{type:"identity",property:"backgroundAttachment"},pos:{type:"identity",property:"position"},top:{type:"size",property:"top"},left:{type:"size",property:"left"},bottom:{type:"size",property:"bottom"},right:{type:"size",property:"right"},inset:{type:"size",property:"inset"},display:{type:"identity",property:"display"},flex:{type:"identity",property:"flex"}};function G7(e,r){const n=cd({color:e,theme:r});return n.color==="dimmed"?"var(--mantine-color-dimmed)":n.color==="bright"?"var(--mantine-color-bright)":n.variable?`var(${n.variable})`:n.color}function iRe(e,r){const n=cd({color:e,theme:r});return n.isThemeColor&&n.shade===void 0?`var(--mantine-color-${n.color}-text)`:G7(e,r)}function lRe(e,r){if(typeof e=="number")return $e(e);if(typeof e=="string"){const[n,o,...a]=e.split(" ").filter(l=>l.trim()!=="");let i=`${$e(n)}`;return o&&(i+=` ${o}`),a.length>0&&(i+=` ${G7(a.join(" "),r)}`),i.trim()}return e}const Uq={text:"var(--mantine-font-family)",mono:"var(--mantine-font-family-monospace)",monospace:"var(--mantine-font-family-monospace)",heading:"var(--mantine-font-family-headings)",headings:"var(--mantine-font-family-headings)"};function sRe(e){return typeof e=="string"&&e in Uq?Uq[e]:e}const cRe=["h1","h2","h3","h4","h5","h6"];function dRe(e,r){return typeof e=="string"&&e in r.fontSizes?`var(--mantine-font-size-${e})`:typeof e=="string"&&cRe.includes(e)?`var(--mantine-${e}-font-size)`:typeof e=="number"||typeof e=="string"?$e(e):e}function uRe(e){return e}const pRe=["h1","h2","h3","h4","h5","h6"];function hRe(e,r){return typeof e=="string"&&e in r.lineHeights?`var(--mantine-line-height-${e})`:typeof e=="string"&&pRe.includes(e)?`var(--mantine-${e}-line-height)`:e}function fRe(e,r){return typeof e=="string"&&e in r.radius?`var(--mantine-radius-${e})`:typeof e=="number"||typeof e=="string"?$e(e):e}function mRe(e){return typeof e=="number"?$e(e):e}function gRe(e,r){if(typeof e=="number")return $e(e);if(typeof e=="string"){const n=e.replace("-","");if(!(n in r.spacing))return $e(e);const o=`--mantine-spacing-${n}`;return e.startsWith("-")?`calc(var(${o}) * -1)`:`var(${o})`}return e}const Y7={color:G7,textColor:iRe,fontSize:dRe,spacing:gRe,radius:fRe,identity:uRe,size:mRe,lineHeight:hRe,fontFamily:sRe,border:lRe};function Wq(e){return e.replace("(min-width: ","").replace("em)","")}function yRe({media:e,...r}){const n=Object.keys(e).sort((o,a)=>Number(Wq(o))-Number(Wq(a))).map(o=>({query:o,styles:e[o]}));return{...r,media:n}}function vRe(e){if(typeof e!="object"||e===null)return!1;const r=Object.keys(e);return!(r.length===1&&r[0]==="base")}function bRe(e){return typeof e=="object"&&e!==null?"base"in e?e.base:void 0:e}function xRe(e){return typeof e=="object"&&e!==null?So(e).filter(r=>r!=="base"):[]}function wRe(e,r){return typeof e=="object"&&e!==null&&r in e?e[r]:e}function Gq({styleProps:e,data:r,theme:n}){return yRe(So(e).reduce((o,a)=>{if(a==="hiddenFrom"||a==="visibleFrom"||a==="sx")return o;const i=r[a],l=Array.isArray(i.property)?i.property:[i.property],s=bRe(e[a]);if(!vRe(e[a]))return l.forEach(d=>{o.inlineStyles[d]=Y7[i.type](s,n)}),o;o.hasResponsiveStyles=!0;const c=xRe(e[a]);return l.forEach(d=>{s!=null&&(o.styles[d]=Y7[i.type](s,n)),c.forEach(u=>{const p=`(min-width: ${n.breakpoints[u]})`;o.media[p]={...o.media[p],[d]:Y7[i.type](wRe(e[a],u),n)}})}),o},{hasResponsiveStyles:!1,styles:{},inlineStyles:{},media:{}}))}function yw(){return`__m__-${S.useId().replace(/[:«»]/g,"")}`}function X7(e,r){return Array.isArray(e)?[...e].reduce((n,o)=>({...n,...X7(o,r)}),{}):typeof e=="function"?e(r):e??{}}function Yq(e){return e.startsWith("data-")?e:`data-${e}`}function kRe(e){return Object.keys(e).reduce((r,n)=>{const o=e[n];return o===void 0||o===""||o===!1||o===null||(r[Yq(n)]=e[n]),r},{})}function Xq(e){return e?typeof e=="string"?{[Yq(e)]:!0}:Array.isArray(e)?[...e].reduce((r,n)=>({...r,...Xq(n)}),{}):kRe(e):null}function Z7(e,r){return Array.isArray(e)?[...e].reduce((n,o)=>({...n,...Z7(o,r)}),{}):typeof e=="function"?e(r):e??{}}function _Re({theme:e,style:r,vars:n,styleProps:o}){const a=Z7(r,e),i=Z7(n,e);return{...a,...i,...o}}const Zq=S.forwardRef(({component:e,style:r,__vars:n,className:o,variant:a,mod:i,size:l,hiddenFrom:s,visibleFrom:c,lightHidden:d,darkHidden:u,renderRoot:p,__size:f,...g},v)=>{const w=lo(),x=e||"div",{styleProps:k,rest:C}=Hq(g),_=xze()?.()?.(k.sx),$=yw(),z=Gq({styleProps:k,theme:w,data:aRe}),j={ref:v,style:_Re({theme:w,style:r,vars:n,styleProps:z.inlineStyles}),className:Qi(o,_,{[$]:z.hasResponsiveStyles,"mantine-light-hidden":d,"mantine-dark-hidden":u,[`mantine-hidden-from-${s}`]:s,[`mantine-visible-from-${c}`]:c}),"data-variant":a,"data-size":dq(l)?void 0:l||void 0,size:f,...Xq(i),...C};return y.jsxs(y.Fragment,{children:[z.hasResponsiveStyles&&y.jsx(gw,{selector:`.${$}`,styles:z.styles,media:z.media}),typeof p=="function"?p(j):y.jsx(x,{...j})]})});Zq.displayName="@mantine/core/Box";const Se=Zq;function Kq(e){return e}function SRe(e){const r=e;return n=>{const o=S.forwardRef((a,i)=>y.jsx(r,{...n,...a,ref:i}));return o.extend=r.extend,o.displayName=`WithProps(${r.displayName})`,o}}function ot(e){const r=S.forwardRef(e);return r.extend=Kq,r.withProps=n=>{const o=S.forwardRef((a,i)=>y.jsx(r,{...n,...a,ref:i}));return o.extend=r.extend,o.displayName=`WithProps(${r.displayName})`,o},r}function Jn(e){const r=S.forwardRef(e);return r.withProps=n=>{const o=S.forwardRef((a,i)=>y.jsx(r,{...n,...a,ref:i}));return o.extend=r.extend,o.displayName=`WithProps(${r.displayName})`,o},r.extend=Kq,r}const ERe=S.createContext({dir:"ltr",toggleDirection:()=>{},setDirection:()=>{}});function dd(){return S.useContext(ERe)}function CRe(e){if(!e||typeof e=="string")return 0;const r=e/36;return Math.round((4+15*r**.25+r/5)*10)}function K7(e){return e?.current?e.current.scrollHeight:"auto"}const vw=typeof window<"u"&&window.requestAnimationFrame,Qq=0,$Re=e=>({height:0,overflow:"hidden",...e?{}:{display:"none"}});function zRe({transitionDuration:e,transitionTimingFunction:r="ease",onTransitionEnd:n=()=>{},opened:o,keepMounted:a=!1}){const i=S.useRef(null),l=$Re(a),[s,c]=S.useState(o?{}:l),d=v=>{Ii.flushSync(()=>c(v))},u=v=>{d(w=>({...w,...v}))};function p(v){const w=e||CRe(v);return{transition:`height ${w}ms ${r}, opacity ${w}ms ${r}`}}Xu(()=>{typeof vw=="function"&&vw(o?()=>{u({willChange:"height",display:"block",overflow:"hidden"}),vw(()=>{const v=K7(i);u({...p(v),height:v})})}:()=>{const v=K7(i);u({...p(v),willChange:"height",height:v}),vw(()=>u({height:Qq,overflow:"hidden"}))})},[o]);const f=v=>{if(!(v.target!==i.current||v.propertyName!=="height"))if(o){const w=K7(i);w===s.height?d({}):u({height:w}),n()}else s.height===Qq&&(d(l),n())};function g({style:v={},refKey:w="ref",...x}={}){const k=x[w],C={"aria-hidden":!o,...x,[w]:_q(i,k),onTransitionEnd:f,style:{boxSizing:"border-box",...v,...s}};return Kr.version.startsWith("18")?o||(C.inert=""):C.inert=!o,C}return g}const RRe={transitionDuration:200,transitionTimingFunction:"ease",animateOpacity:!0},Jq=ot((e,r)=>{const{children:n,in:o,transitionDuration:a,transitionTimingFunction:i,style:l,onTransitionEnd:s,animateOpacity:c,keepMounted:d,...u}=Me("Collapse",RRe,e),p=lo(),f=Eq(),g=p.respectReducedMotion&&f?0:a,v=zRe({opened:o,transitionDuration:g,transitionTimingFunction:i,onTransitionEnd:s,keepMounted:d});return g===0?o?y.jsx(Se,{...u,children:n}):null:y.jsx(Se,{...v({style:{opacity:o||!c?1:0,transition:c?`opacity ${g}ms ${i}`:"none",...X7(l,p)},ref:r,...u}),children:n})});Jq.displayName="@mantine/core/Collapse";function bw(){return typeof window<"u"}function wf(e){return eH(e)?(e.nodeName||"").toLowerCase():"#document"}function ea(e){var r;return(e==null||(r=e.ownerDocument)==null?void 0:r.defaultView)||window}function Xl(e){var r;return(r=(eH(e)?e.ownerDocument:e.document)||window.document)==null?void 0:r.documentElement}function eH(e){return bw()?e instanceof Node||e instanceof ea(e).Node:!1}function Ar(e){return bw()?e instanceof Element||e instanceof ea(e).Element:!1}function Sa(e){return bw()?e instanceof HTMLElement||e instanceof ea(e).HTMLElement:!1}function Q7(e){return!bw()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ea(e).ShadowRoot}const jRe=new Set(["inline","contents"]);function J1(e){const{overflow:r,overflowX:n,overflowY:o,display:a}=ri(e);return/auto|scroll|overlay|hidden|clip/.test(r+o+n)&&!jRe.has(a)}const TRe=new Set(["table","td","th"]);function ARe(e){return TRe.has(wf(e))}const DRe=[":popover-open",":modal"];function xw(e){return DRe.some(r=>{try{return e.matches(r)}catch{return!1}})}const MRe=["transform","translate","scale","rotate","perspective"],NRe=["transform","translate","scale","rotate","perspective","filter"],PRe=["paint","layout","strict","content"];function J7(e){const r=ww(),n=Ar(e)?ri(e):e;return MRe.some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!r&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!r&&(n.filter?n.filter!=="none":!1)||NRe.some(o=>(n.willChange||"").includes(o))||PRe.some(o=>(n.contain||"").includes(o))}function BRe(e){let r=Gs(e);for(;Sa(r)&&!Ws(r);){if(J7(r))return r;if(xw(r))return null;r=Gs(r)}return null}function ww(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const ORe=new Set(["html","body","#document"]);function Ws(e){return ORe.has(wf(e))}function ri(e){return ea(e).getComputedStyle(e)}function kw(e){return Ar(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Gs(e){if(wf(e)==="html")return e;const r=e.assignedSlot||e.parentNode||Q7(e)&&e.host||Xl(e);return Q7(r)?r.host:r}function tH(e){const r=Gs(e);return Ws(r)?e.ownerDocument?e.ownerDocument.body:e.body:Sa(r)&&J1(r)?r:tH(r)}function Ys(e,r,n){var o;r===void 0&&(r=[]),n===void 0&&(n=!0);const a=tH(e),i=a===((o=e.ownerDocument)==null?void 0:o.body),l=ea(a);if(i){const s=e9(l);return r.concat(l,l.visualViewport||[],J1(a)?a:[],s&&n?Ys(s):[])}return r.concat(a,Ys(a,[],n))}function e9(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const rH=["top","right","bottom","left"],nH=["start","end"],oH=rH.reduce((e,r)=>e.concat(r,r+"-"+nH[0],r+"-"+nH[1]),[]),Ji=Math.min,Co=Math.max,_w=Math.round,Sw=Math.floor,Zl=e=>({x:e,y:e}),IRe={left:"right",right:"left",bottom:"top",top:"bottom"},LRe={start:"end",end:"start"};function t9(e,r,n){return Co(e,Ji(r,n))}function el(e,r){return typeof e=="function"?e(r):e}function Ea(e){return e.split("-")[0]}function tl(e){return e.split("-")[1]}function r9(e){return e==="x"?"y":"x"}function n9(e){return e==="y"?"height":"width"}const FRe=new Set(["top","bottom"]);function rl(e){return FRe.has(Ea(e))?"y":"x"}function o9(e){return r9(rl(e))}function aH(e,r,n){n===void 0&&(n=!1);const o=tl(e),a=o9(e),i=n9(a);let l=a==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return r.reference[i]>r.floating[i]&&(l=Cw(l)),[l,Cw(l)]}function VRe(e){const r=Cw(e);return[Ew(e),r,Ew(r)]}function Ew(e){return e.replace(/start|end/g,r=>LRe[r])}const iH=["left","right"],lH=["right","left"],qRe=["top","bottom"],HRe=["bottom","top"];function URe(e,r,n){switch(e){case"top":case"bottom":return n?r?lH:iH:r?iH:lH;case"left":case"right":return r?qRe:HRe;default:return[]}}function WRe(e,r,n,o){const a=tl(e);let i=URe(Ea(e),n==="start",o);return a&&(i=i.map(l=>l+"-"+a),r&&(i=i.concat(i.map(Ew)))),i}function Cw(e){return e.replace(/left|right|bottom|top/g,r=>IRe[r])}function GRe(e){return{top:0,right:0,bottom:0,left:0,...e}}function a9(e){return typeof e!="number"?GRe(e):{top:e,right:e,bottom:e,left:e}}function kf(e){const{x:r,y:n,width:o,height:a}=e;return{width:o,height:a,top:n,left:r,right:r+o,bottom:n+a,x:r,y:n}}function YRe(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function XRe(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(r=>{let{brand:n,version:o}=r;return n+"/"+o}).join(" "):navigator.userAgent}function ZRe(){return/apple/i.test(navigator.vendor)}function KRe(){return YRe().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function QRe(){return XRe().includes("jsdom/")}const sH="data-floating-ui-focusable",JRe="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function cH(e){let r=e.activeElement;for(;((n=r)==null||(n=n.shadowRoot)==null?void 0:n.activeElement)!=null;){var n;r=r.shadowRoot.activeElement}return r}function ey(e,r){if(!e||!r)return!1;const n=r.getRootNode==null?void 0:r.getRootNode();if(e.contains(r))return!0;if(n&&Q7(n)){let o=r;for(;o;){if(e===o)return!0;o=o.parentNode||o.host}}return!1}function _f(e){return"composedPath"in e?e.composedPath()[0]:e.target}function i9(e,r){if(r==null)return!1;if("composedPath"in e)return e.composedPath().includes(r);const n=e;return n.target!=null&&r.contains(n.target)}function eje(e){return e.matches("html,body")}function Ku(e){return e?.ownerDocument||document}function tje(e){return Sa(e)&&e.matches(JRe)}function rje(e){if(!e||QRe())return!0;try{return e.matches(":focus-visible")}catch{return!0}}function nje(e){return e?e.hasAttribute(sH)?e:e.querySelector("["+sH+"]")||e:null}function $w(e,r,n){return n===void 0&&(n=!0),e.filter(o=>{var a;return o.parentId===r&&(!n||((a=o.context)==null?void 0:a.open))}).flatMap(o=>[o,...$w(e,o.id,n)])}function oje(e){return"nativeEvent"in e}function l9(e,r){const n=["mouse","pen"];return n.push("",void 0),n.includes(e)}var aje=typeof document<"u",ije=function(){},Kl=aje?S.useLayoutEffect:ije;const lje={...ob};function zw(e){const r=S.useRef(e);return Kl(()=>{r.current=e}),r}const sje=lje.useInsertionEffect,cje=sje||(e=>e());function Ql(e){const r=S.useRef(()=>{});return cje(()=>{r.current=e}),S.useCallback(function(){for(var n=arguments.length,o=new Array(n),a=0;a{const{placement:o="bottom",strategy:a="absolute",middleware:i=[],platform:l}=n,s=i.filter(Boolean),c=await(l.isRTL==null?void 0:l.isRTL(r));let d=await l.getElementRects({reference:e,floating:r,strategy:a}),{x:u,y:p}=dH(d,o,c),f=o,g={},v=0;for(let w=0;w({name:"arrow",options:e,async fn(r){const{x:n,y:o,placement:a,rects:i,platform:l,elements:s,middlewareData:c}=r,{element:d,padding:u=0}=el(e,r)||{};if(d==null)return{};const p=a9(u),f={x:n,y:o},g=o9(a),v=n9(g),w=await l.getDimensions(d),x=g==="y",k=x?"top":"left",C=x?"bottom":"right",_=x?"clientHeight":"clientWidth",$=i.reference[v]+i.reference[g]-f[g]-i.floating[v],z=f[g]-i.reference[g],j=await(l.getOffsetParent==null?void 0:l.getOffsetParent(d));let A=j?j[_]:0;(!A||!await(l.isElement==null?void 0:l.isElement(j)))&&(A=s.floating[_]||i.floating[v]);const R=$/2-z/2,T=A/2-w[v]/2-1,O=Ji(p[k],T),P=Ji(p[C],T),L=O,H=A-w[v]-P,M=A/2-w[v]/2+R,V=t9(L,M,H),B=!c.arrow&&tl(a)!=null&&M!==V&&i.reference[v]/2-(Mtl(o)===e),...n.filter(o=>tl(o)!==e)]:n.filter(o=>Ea(o)===o)).filter(o=>e?tl(o)===e||(r?Ew(o)!==o:!1):!0)}const hje=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(r){var n,o,a;const{rects:i,middlewareData:l,placement:s,platform:c,elements:d}=r,{crossAxis:u=!1,alignment:p,allowedPlacements:f=oH,autoAlignment:g=!0,...v}=el(e,r),w=p!==void 0||f===oH?pje(p||null,g,f):f,x=await Sf(r,v),k=((n=l.autoPlacement)==null?void 0:n.index)||0,C=w[k];if(C==null)return{};const _=aH(C,i,await(c.isRTL==null?void 0:c.isRTL(d.floating)));if(s!==C)return{reset:{placement:w[0]}};const $=[x[Ea(C)],x[_[0]],x[_[1]]],z=[...((o=l.autoPlacement)==null?void 0:o.overflows)||[],{placement:C,overflows:$}],j=w[k+1];if(j)return{data:{index:k+1,overflows:z},reset:{placement:j}};const A=z.map(T=>{const O=tl(T.placement);return[T.placement,O&&u?T.overflows.slice(0,2).reduce((P,L)=>P+L,0):T.overflows[0],T.overflows]}).sort((T,O)=>T[1]-O[1]),R=((a=A.filter(T=>T[2].slice(0,tl(T[0])?2:3).every(O=>O<=0))[0])==null?void 0:a[0])||A[0][0];return R!==s?{data:{index:k+1,overflows:z},reset:{placement:R}}:{}}}},fje=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(r){var n,o;const{placement:a,middlewareData:i,rects:l,initialPlacement:s,platform:c,elements:d}=r,{mainAxis:u=!0,crossAxis:p=!0,fallbackPlacements:f,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:w=!0,...x}=el(e,r);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const k=Ea(a),C=rl(s),_=Ea(s)===s,$=await(c.isRTL==null?void 0:c.isRTL(d.floating)),z=f||(_||!w?[Cw(s)]:VRe(s)),j=v!=="none";!f&&j&&z.push(...WRe(s,w,v,$));const A=[s,...z],R=await Sf(r,x),T=[];let O=((o=i.flip)==null?void 0:o.overflows)||[];if(u&&T.push(R[k]),p){const M=aH(a,l,$);T.push(R[M[0]],R[M[1]])}if(O=[...O,{placement:a,overflows:T}],!T.every(M=>M<=0)){var P,L;const M=(((P=i.flip)==null?void 0:P.index)||0)+1,V=A[M];if(V&&(!(p==="alignment"&&C!==rl(V))||O.every(F=>rl(F.placement)===C?F.overflows[0]>0:!0)))return{data:{index:M,overflows:O},reset:{placement:V}};let B=(L=O.filter(F=>F.overflows[0]<=0).sort((F,q)=>F.overflows[1]-q.overflows[1])[0])==null?void 0:L.placement;if(!B)switch(g){case"bestFit":{var H;const F=(H=O.filter(q=>{if(j){const G=rl(q.placement);return G===C||G==="y"}return!0}).map(q=>[q.placement,q.overflows.filter(G=>G>0).reduce((G,U)=>G+U,0)]).sort((q,G)=>q[1]-G[1])[0])==null?void 0:H[0];F&&(B=F);break}case"initialPlacement":B=s;break}if(a!==B)return{reset:{placement:B}}}return{}}}};function uH(e,r){return{top:e.top-r.height,right:e.right-r.width,bottom:e.bottom-r.height,left:e.left-r.width}}function pH(e){return rH.some(r=>e[r]>=0)}const mje=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(r){const{rects:n}=r,{strategy:o="referenceHidden",...a}=el(e,r);switch(o){case"referenceHidden":{const i=await Sf(r,{...a,elementContext:"reference"}),l=uH(i,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:pH(l)}}}case"escaped":{const i=await Sf(r,{...a,altBoundary:!0}),l=uH(i,n.floating);return{data:{escapedOffsets:l,escaped:pH(l)}}}default:return{}}}}};function hH(e){const r=Ji(...e.map(i=>i.left)),n=Ji(...e.map(i=>i.top)),o=Co(...e.map(i=>i.right)),a=Co(...e.map(i=>i.bottom));return{x:r,y:n,width:o-r,height:a-n}}function gje(e){const r=e.slice().sort((a,i)=>a.y-i.y),n=[];let o=null;for(let a=0;ao.height/2?n.push([i]):n[n.length-1].push(i),o=i}return n.map(a=>kf(hH(a)))}const yje=function(e){return e===void 0&&(e={}),{name:"inline",options:e,async fn(r){const{placement:n,elements:o,rects:a,platform:i,strategy:l}=r,{padding:s=2,x:c,y:d}=el(e,r),u=Array.from(await(i.getClientRects==null?void 0:i.getClientRects(o.reference))||[]),p=gje(u),f=kf(hH(u)),g=a9(s);function v(){if(p.length===2&&p[0].left>p[1].right&&c!=null&&d!=null)return p.find(x=>c>x.left-g.left&&cx.top-g.top&&d=2){if(rl(n)==="y"){const O=p[0],P=p[p.length-1],L=Ea(n)==="top",H=O.top,M=P.bottom,V=L?O.left:P.left,B=L?O.right:P.right,F=B-V,q=M-H;return{top:H,bottom:M,left:V,right:B,width:F,height:q,x:V,y:H}}const x=Ea(n)==="left",k=Co(...p.map(O=>O.right)),C=Ji(...p.map(O=>O.left)),_=p.filter(O=>x?O.left===C:O.right===k),$=_[0].top,z=_[_.length-1].bottom,j=C,A=k,R=A-j,T=z-$;return{top:$,bottom:z,left:j,right:A,width:R,height:T,x:j,y:$}}return f}const w=await i.getElementRects({reference:{getBoundingClientRect:v},floating:o.floating,strategy:l});return a.reference.x!==w.reference.x||a.reference.y!==w.reference.y||a.reference.width!==w.reference.width||a.reference.height!==w.reference.height?{reset:{rects:w}}:{}}}},fH=new Set(["left","top"]);async function vje(e,r){const{placement:n,platform:o,elements:a}=e,i=await(o.isRTL==null?void 0:o.isRTL(a.floating)),l=Ea(n),s=tl(n),c=rl(n)==="y",d=fH.has(l)?-1:1,u=i&&c?-1:1,p=el(r,e);let{mainAxis:f,crossAxis:g,alignmentAxis:v}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return s&&typeof v=="number"&&(g=s==="end"?v*-1:v),c?{x:g*u,y:f*d}:{x:f*d,y:g*u}}const bje=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(r){var n,o;const{x:a,y:i,placement:l,middlewareData:s}=r,c=await vje(r,e);return l===((n=s.offset)==null?void 0:n.placement)&&(o=s.arrow)!=null&&o.alignmentOffset?{}:{x:a+c.x,y:i+c.y,data:{...c,placement:l}}}}},xje=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(r){const{x:n,y:o,placement:a}=r,{mainAxis:i=!0,crossAxis:l=!1,limiter:s={fn:x=>{let{x:k,y:C}=x;return{x:k,y:C}}},...c}=el(e,r),d={x:n,y:o},u=await Sf(r,c),p=rl(Ea(a)),f=r9(p);let g=d[f],v=d[p];if(i){const x=f==="y"?"top":"left",k=f==="y"?"bottom":"right",C=g+u[x],_=g-u[k];g=t9(C,g,_)}if(l){const x=p==="y"?"top":"left",k=p==="y"?"bottom":"right",C=v+u[x],_=v-u[k];v=t9(C,v,_)}const w=s.fn({...r,[f]:g,[p]:v});return{...w,data:{x:w.x-n,y:w.y-o,enabled:{[f]:i,[p]:l}}}}}},wje=function(e){return e===void 0&&(e={}),{options:e,fn(r){const{x:n,y:o,placement:a,rects:i,middlewareData:l}=r,{offset:s=0,mainAxis:c=!0,crossAxis:d=!0}=el(e,r),u={x:n,y:o},p=rl(a),f=r9(p);let g=u[f],v=u[p];const w=el(s,r),x=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(c){const _=f==="y"?"height":"width",$=i.reference[f]-i.floating[_]+x.mainAxis,z=i.reference[f]+i.reference[_]-x.mainAxis;g<$?g=$:g>z&&(g=z)}if(d){var k,C;const _=f==="y"?"width":"height",$=fH.has(Ea(a)),z=i.reference[p]-i.floating[_]+($&&((k=l.offset)==null?void 0:k[p])||0)+($?0:x.crossAxis),j=i.reference[p]+i.reference[_]+($?0:((C=l.offset)==null?void 0:C[p])||0)-($?x.crossAxis:0);vj&&(v=j)}return{[f]:g,[p]:v}}}},kje=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(r){var n,o;const{placement:a,rects:i,platform:l,elements:s}=r,{apply:c=()=>{},...d}=el(e,r),u=await Sf(r,d),p=Ea(a),f=tl(a),g=rl(a)==="y",{width:v,height:w}=i.floating;let x,k;p==="top"||p==="bottom"?(x=p,k=f===(await(l.isRTL==null?void 0:l.isRTL(s.floating))?"start":"end")?"left":"right"):(k=p,x=f==="end"?"top":"bottom");const C=w-u.top-u.bottom,_=v-u.left-u.right,$=Ji(w-u[x],C),z=Ji(v-u[k],_),j=!r.middlewareData.shift;let A=$,R=z;if((n=r.middlewareData.shift)!=null&&n.enabled.x&&(R=_),(o=r.middlewareData.shift)!=null&&o.enabled.y&&(A=C),j&&!f){const O=Co(u.left,0),P=Co(u.right,0),L=Co(u.top,0),H=Co(u.bottom,0);g?R=v-2*(O!==0||P!==0?O+P:Co(u.left,u.right)):A=w-2*(L!==0||H!==0?L+H:Co(u.top,u.bottom))}await c({...r,availableWidth:R,availableHeight:A});const T=await l.getDimensions(s.floating);return v!==T.width||w!==T.height?{reset:{rects:!0}}:{}}}};function mH(e){const r=ri(e);let n=parseFloat(r.width)||0,o=parseFloat(r.height)||0;const a=Sa(e),i=a?e.offsetWidth:n,l=a?e.offsetHeight:o,s=_w(n)!==i||_w(o)!==l;return s&&(n=i,o=l),{width:n,height:o,$:s}}function s9(e){return Ar(e)?e:e.contextElement}function Ef(e){const r=s9(e);if(!Sa(r))return Zl(1);const n=r.getBoundingClientRect(),{width:o,height:a,$:i}=mH(r);let l=(i?_w(n.width):n.width)/o,s=(i?_w(n.height):n.height)/a;return(!l||!Number.isFinite(l))&&(l=1),(!s||!Number.isFinite(s))&&(s=1),{x:l,y:s}}const _je=Zl(0);function gH(e){const r=ea(e);return!ww()||!r.visualViewport?_je:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function Sje(e,r,n){return r===void 0&&(r=!1),!n||r&&n!==ea(e)?!1:r}function Qu(e,r,n,o){r===void 0&&(r=!1),n===void 0&&(n=!1);const a=e.getBoundingClientRect(),i=s9(e);let l=Zl(1);r&&(o?Ar(o)&&(l=Ef(o)):l=Ef(e));const s=Sje(i,n,o)?gH(i):Zl(0);let c=(a.left+s.x)/l.x,d=(a.top+s.y)/l.y,u=a.width/l.x,p=a.height/l.y;if(i){const f=ea(i),g=o&&Ar(o)?ea(o):o;let v=f,w=e9(v);for(;w&&o&&g!==v;){const x=Ef(w),k=w.getBoundingClientRect(),C=ri(w),_=k.left+(w.clientLeft+parseFloat(C.paddingLeft))*x.x,$=k.top+(w.clientTop+parseFloat(C.paddingTop))*x.y;c*=x.x,d*=x.y,u*=x.x,p*=x.y,c+=_,d+=$,v=ea(w),w=e9(v)}}return kf({width:u,height:p,x:c,y:d})}function Rw(e,r){const n=kw(e).scrollLeft;return r?r.left+n:Qu(Xl(e)).left+n}function yH(e,r){const n=e.getBoundingClientRect(),o=n.left+r.scrollLeft-Rw(e,n),a=n.top+r.scrollTop;return{x:o,y:a}}function Eje(e){let{elements:r,rect:n,offsetParent:o,strategy:a}=e;const i=a==="fixed",l=Xl(o),s=r?xw(r.floating):!1;if(o===l||s&&i)return n;let c={scrollLeft:0,scrollTop:0},d=Zl(1);const u=Zl(0),p=Sa(o);if((p||!p&&!i)&&((wf(o)!=="body"||J1(l))&&(c=kw(o)),Sa(o))){const g=Qu(o);d=Ef(o),u.x=g.x+o.clientLeft,u.y=g.y+o.clientTop}const f=l&&!p&&!i?yH(l,c):Zl(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-c.scrollLeft*d.x+u.x+f.x,y:n.y*d.y-c.scrollTop*d.y+u.y+f.y}}function Cje(e){return Array.from(e.getClientRects())}function $je(e){const r=Xl(e),n=kw(e),o=e.ownerDocument.body,a=Co(r.scrollWidth,r.clientWidth,o.scrollWidth,o.clientWidth),i=Co(r.scrollHeight,r.clientHeight,o.scrollHeight,o.clientHeight);let l=-n.scrollLeft+Rw(e);const s=-n.scrollTop;return ri(o).direction==="rtl"&&(l+=Co(r.clientWidth,o.clientWidth)-a),{width:a,height:i,x:l,y:s}}const vH=25;function zje(e,r){const n=ea(e),o=Xl(e),a=n.visualViewport;let i=o.clientWidth,l=o.clientHeight,s=0,c=0;if(a){i=a.width,l=a.height;const u=ww();(!u||u&&r==="fixed")&&(s=a.offsetLeft,c=a.offsetTop)}const d=Rw(o);if(d<=0){const u=o.ownerDocument,p=u.body,f=getComputedStyle(p),g=u.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,v=Math.abs(o.clientWidth-p.clientWidth-g);v<=vH&&(i-=v)}else d<=vH&&(i+=d);return{width:i,height:l,x:s,y:c}}const Rje=new Set(["absolute","fixed"]);function jje(e,r){const n=Qu(e,!0,r==="fixed"),o=n.top+e.clientTop,a=n.left+e.clientLeft,i=Sa(e)?Ef(e):Zl(1),l=e.clientWidth*i.x,s=e.clientHeight*i.y,c=a*i.x,d=o*i.y;return{width:l,height:s,x:c,y:d}}function bH(e,r,n){let o;if(r==="viewport")o=zje(e,n);else if(r==="document")o=$je(Xl(e));else if(Ar(r))o=jje(r,n);else{const a=gH(e);o={x:r.x-a.x,y:r.y-a.y,width:r.width,height:r.height}}return kf(o)}function xH(e,r){const n=Gs(e);return n===r||!Ar(n)||Ws(n)?!1:ri(n).position==="fixed"||xH(n,r)}function Tje(e,r){const n=r.get(e);if(n)return n;let o=Ys(e,[],!1).filter(s=>Ar(s)&&wf(s)!=="body"),a=null;const i=ri(e).position==="fixed";let l=i?Gs(e):e;for(;Ar(l)&&!Ws(l);){const s=ri(l),c=J7(l);!c&&s.position==="fixed"&&(a=null),(i?!c&&!a:!c&&s.position==="static"&&a&&Rje.has(a.position)||J1(l)&&!c&&xH(e,l))?o=o.filter(d=>d!==l):a=s,l=Gs(l)}return r.set(e,o),o}function Aje(e){let{element:r,boundary:n,rootBoundary:o,strategy:a}=e;const i=[...n==="clippingAncestors"?xw(r)?[]:Tje(r,this._c):[].concat(n),o],l=i[0],s=i.reduce((c,d)=>{const u=bH(r,d,a);return c.top=Co(u.top,c.top),c.right=Ji(u.right,c.right),c.bottom=Ji(u.bottom,c.bottom),c.left=Co(u.left,c.left),c},bH(r,l,a));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function Dje(e){const{width:r,height:n}=mH(e);return{width:r,height:n}}function Mje(e,r,n){const o=Sa(r),a=Xl(r),i=n==="fixed",l=Qu(e,!0,i,r);let s={scrollLeft:0,scrollTop:0};const c=Zl(0);function d(){c.x=Rw(a)}if(o||!o&&!i)if((wf(r)!=="body"||J1(a))&&(s=kw(r)),o){const g=Qu(r,!0,i,r);c.x=g.x+r.clientLeft,c.y=g.y+r.clientTop}else a&&d();i&&!o&&a&&d();const u=a&&!o&&!i?yH(a,s):Zl(0),p=l.left+s.scrollLeft-c.x-u.x,f=l.top+s.scrollTop-c.y-u.y;return{x:p,y:f,width:l.width,height:l.height}}function c9(e){return ri(e).position==="static"}function wH(e,r){if(!Sa(e)||ri(e).position==="fixed")return null;if(r)return r(e);let n=e.offsetParent;return Xl(e)===n&&(n=n.ownerDocument.body),n}function kH(e,r){const n=ea(e);if(xw(e))return n;if(!Sa(e)){let a=Gs(e);for(;a&&!Ws(a);){if(Ar(a)&&!c9(a))return a;a=Gs(a)}return n}let o=wH(e,r);for(;o&&ARe(o)&&c9(o);)o=wH(o,r);return o&&Ws(o)&&c9(o)&&!J7(o)?n:o||BRe(e)||n}const Nje=async function(e){const r=this.getOffsetParent||kH,n=this.getDimensions,o=await n(e.floating);return{reference:Mje(e.reference,await r(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Pje(e){return ri(e).direction==="rtl"}const Bje={convertOffsetParentRelativeRectToViewportRelativeRect:Eje,getDocumentElement:Xl,getClippingRect:Aje,getOffsetParent:kH,getElementRects:Nje,getClientRects:Cje,getDimensions:Dje,getScale:Ef,isElement:Ar,isRTL:Pje};function _H(e,r){return e.x===r.x&&e.y===r.y&&e.width===r.width&&e.height===r.height}function Oje(e,r){let n=null,o;const a=Xl(e);function i(){var s;clearTimeout(o),(s=n)==null||s.disconnect(),n=null}function l(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),i();const d=e.getBoundingClientRect(),{left:u,top:p,width:f,height:g}=d;if(s||r(),!f||!g)return;const v=Sw(p),w=Sw(a.clientWidth-(u+f)),x=Sw(a.clientHeight-(p+g)),k=Sw(u),C={rootMargin:-v+"px "+-w+"px "+-x+"px "+-k+"px",threshold:Co(0,Ji(1,c))||1};let _=!0;function $(z){const j=z[0].intersectionRatio;if(j!==c){if(!_)return l();j?l(!1,j):o=setTimeout(()=>{l(!1,1e-7)},1e3)}j===1&&!_H(d,e.getBoundingClientRect())&&l(),_=!1}try{n=new IntersectionObserver($,{...C,root:a.ownerDocument})}catch{n=new IntersectionObserver($,C)}n.observe(e)}return l(!0),i}function jw(e,r,n,o){o===void 0&&(o={});const{ancestorScroll:a=!0,ancestorResize:i=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:c=!1}=o,d=s9(e),u=a||i?[...d?Ys(d):[],...Ys(r)]:[];u.forEach(k=>{a&&k.addEventListener("scroll",n,{passive:!0}),i&&k.addEventListener("resize",n)});const p=d&&s?Oje(d,n):null;let f=-1,g=null;l&&(g=new ResizeObserver(k=>{let[C]=k;C&&C.target===d&&g&&(g.unobserve(r),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var _;(_=g)==null||_.observe(r)})),n()}),d&&!c&&g.observe(d),g.observe(r));let v,w=c?Qu(e):null;c&&x();function x(){const k=Qu(e);w&&!_H(w,k)&&n(),w=k,v=requestAnimationFrame(x)}return n(),()=>{var k;u.forEach(C=>{a&&C.removeEventListener("scroll",n),i&&C.removeEventListener("resize",n)}),p?.(),(k=g)==null||k.disconnect(),g=null,c&&cancelAnimationFrame(v)}}const SH=bje,Ije=hje,Lje=xje,Fje=fje,EH=kje,CH=mje,$H=uje,Vje=yje,qje=wje,zH=(e,r,n)=>{const o=new Map,a={platform:Bje,...n},i={...a.platform,_c:o};return dje(e,r,{...a,platform:i})};var Hje=typeof document<"u",Uje=function(){},Tw=Hje?S.useLayoutEffect:Uje;function Aw(e,r){if(e===r)return!0;if(typeof e!=typeof r)return!1;if(typeof e=="function"&&e.toString()===r.toString())return!0;let n,o,a;if(e&&r&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==r.length)return!1;for(o=n;o--!==0;)if(!Aw(e[o],r[o]))return!1;return!0}if(a=Object.keys(e),n=a.length,n!==Object.keys(r).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(r,a[o]))return!1;for(o=n;o--!==0;){const i=a[o];if(!(i==="_owner"&&e.$$typeof)&&!Aw(e[i],r[i]))return!1}return!0}return e!==e&&r!==r}function RH(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function jH(e,r){const n=RH(e);return Math.round(r*n)/n}function d9(e){const r=S.useRef(e);return Tw(()=>{r.current=e}),r}function Wje(e){e===void 0&&(e={});const{placement:r="bottom",strategy:n="absolute",middleware:o=[],platform:a,elements:{reference:i,floating:l}={},transform:s=!0,whileElementsMounted:c,open:d}=e,[u,p]=S.useState({x:0,y:0,strategy:n,placement:r,middlewareData:{},isPositioned:!1}),[f,g]=S.useState(o);Aw(f,o)||g(o);const[v,w]=S.useState(null),[x,k]=S.useState(null),C=S.useCallback(q=>{q!==j.current&&(j.current=q,w(q))},[]),_=S.useCallback(q=>{q!==A.current&&(A.current=q,k(q))},[]),$=i||v,z=l||x,j=S.useRef(null),A=S.useRef(null),R=S.useRef(u),T=c!=null,O=d9(c),P=d9(a),L=d9(d),H=S.useCallback(()=>{if(!j.current||!A.current)return;const q={placement:r,strategy:n,middleware:f};P.current&&(q.platform=P.current),zH(j.current,A.current,q).then(G=>{const U={...G,isPositioned:L.current!==!1};M.current&&!Aw(R.current,U)&&(R.current=U,Ii.flushSync(()=>{p(U)}))})},[f,r,n,P,L]);Tw(()=>{d===!1&&R.current.isPositioned&&(R.current.isPositioned=!1,p(q=>({...q,isPositioned:!1})))},[d]);const M=S.useRef(!1);Tw(()=>(M.current=!0,()=>{M.current=!1}),[]),Tw(()=>{if($&&(j.current=$),z&&(A.current=z),$&&z){if(O.current)return O.current($,z,H);H()}},[$,z,H,O,T]);const V=S.useMemo(()=>({reference:j,floating:A,setReference:C,setFloating:_}),[C,_]),B=S.useMemo(()=>({reference:$,floating:z}),[$,z]),F=S.useMemo(()=>{const q={position:n,left:0,top:0};if(!B.floating)return q;const G=jH(B.floating,u.x),U=jH(B.floating,u.y);return s?{...q,transform:"translate("+G+"px, "+U+"px)",...RH(B.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:G,top:U}},[n,s,B.floating,u.x,u.y]);return S.useMemo(()=>({...u,update:H,refs:V,elements:B,floatingStyles:F}),[u,H,V,B,F])}const Gje=e=>{function r(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:o,padding:a}=typeof e=="function"?e(n):e;return o&&r(o)?o.current!=null?$H({element:o.current,padding:a}).fn(n):{}:o?$H({element:o,padding:a}).fn(n):{}}}},TH=(e,r)=>({...SH(e),options:[e,r]}),u9=(e,r)=>({...Lje(e),options:[e,r]}),AH=(e,r)=>({...qje(e),options:[e,r]}),Dw=(e,r)=>({...Fje(e),options:[e,r]}),Yje=(e,r)=>({...EH(e),options:[e,r]}),Xje=(e,r)=>({...CH(e),options:[e,r]}),ty=(e,r)=>({...Vje(e),options:[e,r]}),DH=(e,r)=>({...Gje(e),options:[e,r]});function MH(e){const r=S.useRef(void 0),n=S.useCallback(o=>{const a=e.map(i=>{if(i!=null){if(typeof i=="function"){const l=i,s=l(o);return typeof s=="function"?s:()=>{l(null)}}return i.current=o,()=>{i.current=null}}});return()=>{a.forEach(i=>i?.())}},e);return S.useMemo(()=>e.every(o=>o==null)?null:o=>{r.current&&(r.current(),r.current=void 0),o!=null&&(r.current=n(o))},e)}const Zje="data-floating-ui-focusable",NH="active",PH="selected",Kje={...ob};let BH=!1,Qje=0;const OH=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Qje++;function Jje(){const[e,r]=S.useState(()=>BH?OH():void 0);return Kl(()=>{e==null&&r(OH())},[]),S.useEffect(()=>{BH=!0},[]),e}const eTe=Kje.useId,IH=eTe||Jje;function tTe(){const e=new Map;return{emit(r,n){var o;(o=e.get(r))==null||o.forEach(a=>a(n))},on(r,n){e.has(r)||e.set(r,new Set),e.get(r).add(n)},off(r,n){var o;(o=e.get(r))==null||o.delete(n)}}}const rTe=S.createContext(null),nTe=S.createContext(null),p9=()=>{var e;return((e=S.useContext(rTe))==null?void 0:e.id)||null},h9=()=>S.useContext(nTe);function f9(e){return"data-floating-ui-"+e}function ni(e){e.current!==-1&&(clearTimeout(e.current),e.current=-1)}const LH=f9("safe-polygon");function Mw(e,r,n){if(n&&!l9(n))return 0;if(typeof e=="number")return e;if(typeof e=="function"){const o=e();return typeof o=="number"?o:o?.[r]}return e?.[r]}function m9(e){return typeof e=="function"?e():e}function FH(e,r){r===void 0&&(r={});const{open:n,onOpenChange:o,dataRef:a,events:i,elements:l}=e,{enabled:s=!0,delay:c=0,handleClose:d=null,mouseOnly:u=!1,restMs:p=0,move:f=!0}=r,g=h9(),v=p9(),w=zw(d),x=zw(c),k=zw(n),C=zw(p),_=S.useRef(),$=S.useRef(-1),z=S.useRef(),j=S.useRef(-1),A=S.useRef(!0),R=S.useRef(!1),T=S.useRef(()=>{}),O=S.useRef(!1),P=Ql(()=>{var F;const q=(F=a.current.openEvent)==null?void 0:F.type;return q?.includes("mouse")&&q!=="mousedown"});S.useEffect(()=>{if(!s)return;function F(q){let{open:G}=q;G||(ni($),ni(j),A.current=!0,O.current=!1)}return i.on("openchange",F),()=>{i.off("openchange",F)}},[s,i]),S.useEffect(()=>{if(!s||!w.current||!n)return;function F(G){P()&&o(!1,G,"hover")}const q=Ku(l.floating).documentElement;return q.addEventListener("mouseleave",F),()=>{q.removeEventListener("mouseleave",F)}},[l.floating,n,o,s,w,P]);const L=S.useCallback(function(F,q,G){q===void 0&&(q=!0),G===void 0&&(G="hover");const U=Mw(x.current,"close",_.current);U&&!z.current?(ni($),$.current=window.setTimeout(()=>o(!1,F,G),U)):q&&(ni($),o(!1,F,G))},[x,o]),H=Ql(()=>{T.current(),z.current=void 0}),M=Ql(()=>{if(R.current){const F=Ku(l.floating).body;F.style.pointerEvents="",F.removeAttribute(LH),R.current=!1}}),V=Ql(()=>a.current.openEvent?["click","mousedown"].includes(a.current.openEvent.type):!1);S.useEffect(()=>{if(!s)return;function F(Z){if(ni($),A.current=!1,u&&!l9(_.current)||m9(C.current)>0&&!Mw(x.current,"open"))return;const I=Mw(x.current,"open",_.current);I?$.current=window.setTimeout(()=>{k.current||o(!0,Z,"hover")},I):n||o(!0,Z,"hover")}function q(Z){if(V()){M();return}T.current();const I=Ku(l.floating);if(ni(j),O.current=!1,w.current&&a.current.floatingContext){n||ni($),z.current=w.current({...a.current.floatingContext,tree:g,x:Z.clientX,y:Z.clientY,onClose(){M(),H(),V()||L(Z,!0,"safe-polygon")}});const W=z.current;I.addEventListener("mousemove",W),T.current=()=>{I.removeEventListener("mousemove",W)};return}(_.current!=="touch"||!ey(l.floating,Z.relatedTarget))&&L(Z)}function G(Z){V()||a.current.floatingContext&&(w.current==null||w.current({...a.current.floatingContext,tree:g,x:Z.clientX,y:Z.clientY,onClose(){M(),H(),V()||L(Z)}})(Z))}function U(){ni($)}function Y(Z){V()||L(Z,!1)}if(Ar(l.domReference)){const Z=l.domReference,I=l.floating;return n&&Z.addEventListener("mouseleave",G),f&&Z.addEventListener("mousemove",F,{once:!0}),Z.addEventListener("mouseenter",F),Z.addEventListener("mouseleave",q),I&&(I.addEventListener("mouseleave",G),I.addEventListener("mouseenter",U),I.addEventListener("mouseleave",Y)),()=>{n&&Z.removeEventListener("mouseleave",G),f&&Z.removeEventListener("mousemove",F),Z.removeEventListener("mouseenter",F),Z.removeEventListener("mouseleave",q),I&&(I.removeEventListener("mouseleave",G),I.removeEventListener("mouseenter",U),I.removeEventListener("mouseleave",Y))}}},[l,s,e,u,f,L,H,M,o,n,k,g,x,w,a,V,C]),Kl(()=>{var F;if(s&&n&&(F=w.current)!=null&&(F=F.__options)!=null&&F.blockPointerEvents&&P()){R.current=!0;const G=l.floating;if(Ar(l.domReference)&&G){var q;const U=Ku(l.floating).body;U.setAttribute(LH,"");const Y=l.domReference,Z=g==null||(q=g.nodesRef.current.find(I=>I.id===v))==null||(q=q.context)==null?void 0:q.elements.floating;return Z&&(Z.style.pointerEvents=""),U.style.pointerEvents="none",Y.style.pointerEvents="auto",G.style.pointerEvents="auto",()=>{U.style.pointerEvents="",Y.style.pointerEvents="",G.style.pointerEvents=""}}}},[s,n,v,l,g,w,P]),Kl(()=>{n||(_.current=void 0,O.current=!1,H(),M())},[n,H,M]),S.useEffect(()=>()=>{H(),ni($),ni(j),M()},[s,l.domReference,H,M]);const B=S.useMemo(()=>{function F(q){_.current=q.pointerType}return{onPointerDown:F,onPointerEnter:F,onMouseMove(q){const{nativeEvent:G}=q;function U(){!A.current&&!k.current&&o(!0,G,"hover")}u&&!l9(_.current)||n||m9(C.current)===0||O.current&&q.movementX**2+q.movementY**2<2||(ni(j),_.current==="touch"?U():(O.current=!0,j.current=window.setTimeout(U,m9(C.current))))}}},[u,o,n,k,C]);return S.useMemo(()=>s?{reference:B}:{},[s,B])}const g9=()=>{},VH=S.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:g9,setState:g9,isInstantPhase:!1}),oTe=()=>S.useContext(VH);function qH(e){const{children:r,delay:n,timeoutMs:o=0}=e,[a,i]=S.useReducer((c,d)=>({...c,...d}),{delay:n,timeoutMs:o,initialDelay:n,currentId:null,isInstantPhase:!1}),l=S.useRef(null),s=S.useCallback(c=>{i({currentId:c})},[]);return Kl(()=>{a.currentId?l.current===null?l.current=a.currentId:a.isInstantPhase||i({isInstantPhase:!0}):(a.isInstantPhase&&i({isInstantPhase:!1}),l.current=null)},[a.currentId,a.isInstantPhase]),y.jsx(VH.Provider,{value:S.useMemo(()=>({...a,setState:i,setCurrentId:s}),[a,s]),children:r})}function HH(e,r){r===void 0&&(r={});const{open:n,onOpenChange:o,floatingId:a}=e,{id:i,enabled:l=!0}=r,s=i??a,c=oTe(),{currentId:d,setCurrentId:u,initialDelay:p,setState:f,timeoutMs:g}=c;return Kl(()=>{l&&d&&(f({delay:{open:1,close:Mw(p,"close")}}),d!==s&&o(!1))},[l,s,o,f,d,p]),Kl(()=>{function v(){o(!1),f({delay:p,currentId:null})}if(l&&d&&!n&&d===s){if(g){const w=window.setTimeout(v,g);return()=>{clearTimeout(w)}}v()}},[l,n,f,d,s,o,p,g]),Kl(()=>{l&&(u===g9||!n||u(s))},[l,n,u,s]),c}const aTe={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},iTe={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},UH=e=>{var r,n;return{escapeKey:typeof e=="boolean"?e:(r=e?.escapeKey)!=null?r:!1,outsidePress:typeof e=="boolean"?e:(n=e?.outsidePress)!=null?n:!0}};function WH(e,r){r===void 0&&(r={});const{open:n,onOpenChange:o,elements:a,dataRef:i}=e,{enabled:l=!0,escapeKey:s=!0,outsidePress:c=!0,outsidePressEvent:d="pointerdown",referencePress:u=!1,referencePressEvent:p="pointerdown",ancestorScroll:f=!1,bubbles:g,capture:v}=r,w=h9(),x=Ql(typeof c=="function"?c:()=>!1),k=typeof c=="function"?x:c,C=S.useRef(!1),{escapeKey:_,outsidePress:$}=UH(g),{escapeKey:z,outsidePress:j}=UH(v),A=S.useRef(!1),R=Ql(M=>{var V;if(!n||!l||!s||M.key!=="Escape"||A.current)return;const B=(V=i.current.floatingContext)==null?void 0:V.nodeId,F=w?$w(w.nodesRef.current,B):[];if(!_&&(M.stopPropagation(),F.length>0)){let q=!0;if(F.forEach(G=>{var U;if((U=G.context)!=null&&U.open&&!G.context.dataRef.current.__escapeKeyBubbles){q=!1;return}}),!q)return}o(!1,oje(M)?M.nativeEvent:M,"escape-key")}),T=Ql(M=>{var V;const B=()=>{var F;R(M),(F=_f(M))==null||F.removeEventListener("keydown",B)};(V=_f(M))==null||V.addEventListener("keydown",B)}),O=Ql(M=>{var V;const B=i.current.insideReactTree;i.current.insideReactTree=!1;const F=C.current;if(C.current=!1,d==="click"&&F||B||typeof k=="function"&&!k(M))return;const q=_f(M),G="["+f9("inert")+"]",U=Ku(a.floating).querySelectorAll(G);let Y=Ar(q)?q:null;for(;Y&&!Ws(Y);){const K=Gs(Y);if(Ws(K)||!Ar(K))break;Y=K}if(U.length&&Ar(q)&&!eje(q)&&!ey(q,a.floating)&&Array.from(U).every(K=>!ey(Y,K)))return;if(Sa(q)&&H){const K=Ws(q),Q=ri(q),ae=/auto|scroll/,te=K||ae.test(Q.overflowX),re=K||ae.test(Q.overflowY),ue=te&&q.clientWidth>0&&q.scrollWidth>q.clientWidth,_e=re&&q.clientHeight>0&&q.scrollHeight>q.clientHeight,ce=Q.direction==="rtl",pe=_e&&(ce?M.offsetX<=q.offsetWidth-q.clientWidth:M.offsetX>q.clientWidth),xe=ue&&M.offsetY>q.clientHeight;if(pe||xe)return}const Z=(V=i.current.floatingContext)==null?void 0:V.nodeId,I=w&&$w(w.nodesRef.current,Z).some(K=>{var Q;return i9(M,(Q=K.context)==null?void 0:Q.elements.floating)});if(i9(M,a.floating)||i9(M,a.domReference)||I)return;const W=w?$w(w.nodesRef.current,Z):[];if(W.length>0){let K=!0;if(W.forEach(Q=>{var ae;if((ae=Q.context)!=null&&ae.open&&!Q.context.dataRef.current.__outsidePressBubbles){K=!1;return}}),!K)return}o(!1,M,"outside-press")}),P=Ql(M=>{var V;const B=()=>{var F;O(M),(F=_f(M))==null||F.removeEventListener(d,B)};(V=_f(M))==null||V.addEventListener(d,B)});S.useEffect(()=>{if(!n||!l)return;i.current.__escapeKeyBubbles=_,i.current.__outsidePressBubbles=$;let M=-1;function V(U){o(!1,U,"ancestor-scroll")}function B(){window.clearTimeout(M),A.current=!0}function F(){M=window.setTimeout(()=>{A.current=!1},ww()?5:0)}const q=Ku(a.floating);s&&(q.addEventListener("keydown",z?T:R,z),q.addEventListener("compositionstart",B),q.addEventListener("compositionend",F)),k&&q.addEventListener(d,j?P:O,j);let G=[];return f&&(Ar(a.domReference)&&(G=Ys(a.domReference)),Ar(a.floating)&&(G=G.concat(Ys(a.floating))),!Ar(a.reference)&&a.reference&&a.reference.contextElement&&(G=G.concat(Ys(a.reference.contextElement)))),G=G.filter(U=>{var Y;return U!==((Y=q.defaultView)==null?void 0:Y.visualViewport)}),G.forEach(U=>{U.addEventListener("scroll",V,{passive:!0})}),()=>{s&&(q.removeEventListener("keydown",z?T:R,z),q.removeEventListener("compositionstart",B),q.removeEventListener("compositionend",F)),k&&q.removeEventListener(d,j?P:O,j),G.forEach(U=>{U.removeEventListener("scroll",V)}),window.clearTimeout(M)}},[i,a,s,k,d,n,o,f,l,_,$,R,z,T,O,j,P]),S.useEffect(()=>{i.current.insideReactTree=!1},[i,k,d]);const L=S.useMemo(()=>({onKeyDown:R,...u&&{[aTe[p]]:M=>{o(!1,M.nativeEvent,"reference-press")},...p!=="click"&&{onClick(M){o(!1,M.nativeEvent,"reference-press")}}}}),[R,o,u,p]),H=S.useMemo(()=>({onKeyDown:R,onMouseDown(){C.current=!0},onMouseUp(){C.current=!0},[iTe[d]]:()=>{i.current.insideReactTree=!0}}),[R,d,i]);return S.useMemo(()=>l?{reference:L,floating:H}:{},[l,L,H])}function lTe(e){const{open:r=!1,onOpenChange:n,elements:o}=e,a=IH(),i=S.useRef({}),[l]=S.useState(()=>tTe()),s=p9()!=null,[c,d]=S.useState(o.reference),u=Ql((g,v,w)=>{i.current.openEvent=g?v:void 0,l.emit("openchange",{open:g,event:v,reason:w,nested:s}),n?.(g,v,w)}),p=S.useMemo(()=>({setPositionReference:d}),[]),f=S.useMemo(()=>({reference:c||o.reference||null,floating:o.floating||null,domReference:o.reference}),[c,o.reference,o.floating]);return S.useMemo(()=>({dataRef:i,open:r,onOpenChange:u,elements:f,events:l,floatingId:a,refs:p}),[r,u,f,l,a,p])}function Nw(e){e===void 0&&(e={});const{nodeId:r}=e,n=lTe({...e,elements:{reference:null,floating:null,...e.elements}}),o=e.rootContext||n,a=o.elements,[i,l]=S.useState(null),[s,c]=S.useState(null),d=a?.domReference||i,u=S.useRef(null),p=h9();Kl(()=>{d&&(u.current=d)},[d]);const f=Wje({...e,elements:{...a,...s&&{reference:s}}}),g=S.useCallback(C=>{const _=Ar(C)?{getBoundingClientRect:()=>C.getBoundingClientRect(),getClientRects:()=>C.getClientRects(),contextElement:C}:C;c(_),f.refs.setReference(_)},[f.refs]),v=S.useCallback(C=>{(Ar(C)||C===null)&&(u.current=C,l(C)),(Ar(f.refs.reference.current)||f.refs.reference.current===null||C!==null&&!Ar(C))&&f.refs.setReference(C)},[f.refs]),w=S.useMemo(()=>({...f.refs,setReference:v,setPositionReference:g,domReference:u}),[f.refs,v,g]),x=S.useMemo(()=>({...f.elements,domReference:d}),[f.elements,d]),k=S.useMemo(()=>({...f,...o,refs:w,elements:x,nodeId:r}),[f,w,x,r,o]);return Kl(()=>{o.dataRef.current.floatingContext=k;const C=p?.nodesRef.current.find(_=>_.id===r);C&&(C.context=k)}),S.useMemo(()=>({...f,context:k,refs:w,elements:x}),[f,w,x,k])}function y9(){return KRe()&&ZRe()}function sTe(e,r){r===void 0&&(r={});const{open:n,onOpenChange:o,events:a,dataRef:i,elements:l}=e,{enabled:s=!0,visibleOnly:c=!0}=r,d=S.useRef(!1),u=S.useRef(-1),p=S.useRef(!0);S.useEffect(()=>{if(!s)return;const g=ea(l.domReference);function v(){!n&&Sa(l.domReference)&&l.domReference===cH(Ku(l.domReference))&&(d.current=!0)}function w(){p.current=!0}function x(){p.current=!1}return g.addEventListener("blur",v),y9()&&(g.addEventListener("keydown",w,!0),g.addEventListener("pointerdown",x,!0)),()=>{g.removeEventListener("blur",v),y9()&&(g.removeEventListener("keydown",w,!0),g.removeEventListener("pointerdown",x,!0))}},[l.domReference,n,s]),S.useEffect(()=>{if(!s)return;function g(v){let{reason:w}=v;(w==="reference-press"||w==="escape-key")&&(d.current=!0)}return a.on("openchange",g),()=>{a.off("openchange",g)}},[a,s]),S.useEffect(()=>()=>{ni(u)},[]);const f=S.useMemo(()=>({onMouseLeave(){d.current=!1},onFocus(g){if(d.current)return;const v=_f(g.nativeEvent);if(c&&Ar(v)){if(y9()&&!g.relatedTarget){if(!p.current&&!tje(v))return}else if(!rje(v))return}o(!0,g.nativeEvent,"focus")},onBlur(g){d.current=!1;const v=g.relatedTarget,w=g.nativeEvent,x=Ar(v)&&v.hasAttribute(f9("focus-guard"))&&v.getAttribute("data-type")==="outside";u.current=window.setTimeout(()=>{var k;const C=cH(l.domReference?l.domReference.ownerDocument:document);!v&&C===l.domReference||ey((k=i.current.floatingContext)==null?void 0:k.refs.floating.current,C)||ey(l.domReference,C)||x||o(!1,w,"focus")})}}),[i,l.domReference,o,c]);return S.useMemo(()=>s?{reference:f}:{},[s,f])}function v9(e,r,n){const o=new Map,a=n==="item";let i=e;if(a&&e){const{[NH]:l,[PH]:s,...c}=e;i=c}return{...n==="floating"&&{tabIndex:-1,[Zje]:""},...i,...r.map(l=>{const s=l?l[n]:null;return typeof s=="function"?e?s(e):null:s}).concat(e).reduce((l,s)=>(s&&Object.entries(s).forEach(c=>{let[d,u]=c;if(!(a&&[NH,PH].includes(d)))if(d.indexOf("on")===0){if(o.has(d)||o.set(d,[]),typeof u=="function"){var p;(p=o.get(d))==null||p.push(u),l[d]=function(){for(var f,g=arguments.length,v=new Array(g),w=0;wx(...v)).find(x=>x!==void 0)}}}else l[d]=u}),l),{})}}function GH(e){e===void 0&&(e=[]);const r=e.map(s=>s?.reference),n=e.map(s=>s?.floating),o=e.map(s=>s?.item),a=S.useCallback(s=>v9(s,e,"reference"),r),i=S.useCallback(s=>v9(s,e,"floating"),n),l=S.useCallback(s=>v9(s,e,"item"),o);return S.useMemo(()=>({getReferenceProps:a,getFloatingProps:i,getItemProps:l}),[a,i,l])}const cTe=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function YH(e,r){var n,o;r===void 0&&(r={});const{open:a,elements:i,floatingId:l}=e,{enabled:s=!0,role:c="dialog"}=r,d=IH(),u=((n=i.domReference)==null?void 0:n.id)||d,p=S.useMemo(()=>{var k;return((k=nje(i.floating))==null?void 0:k.id)||l},[i.floating,l]),f=(o=cTe.get(c))!=null?o:c,g=p9()!=null,v=S.useMemo(()=>f==="tooltip"||c==="label"?{["aria-"+(c==="label"?"labelledby":"describedby")]:a?p:void 0}:{"aria-expanded":a?"true":"false","aria-haspopup":f==="alertdialog"?"dialog":f,"aria-controls":a?p:void 0,...f==="listbox"&&{role:"combobox"},...f==="menu"&&{id:u},...f==="menu"&&g&&{role:"menuitem"},...c==="select"&&{"aria-autocomplete":"none"},...c==="combobox"&&{"aria-autocomplete":"list"}},[f,p,g,a,u,c]),w=S.useMemo(()=>{const k={id:p,...f&&{role:f}};return f==="tooltip"||c==="label"?k:{...k,...f==="menu"&&{"aria-labelledby":u}}},[f,p,u,c]),x=S.useCallback(k=>{let{active:C,selected:_}=k;const $={role:"option",...C&&{id:p+"-fui-option"}};switch(c){case"select":case"combobox":return{...$,"aria-selected":_}}return{}},[p,c]);return S.useMemo(()=>s?{reference:v,floating:w,item:x}:{},[s,v,w,x])}const[dTe,oi]=ei("ScrollArea.Root component was not found in tree");function Cf(e,r){const n=Qn(r);Z1(()=>{let o=0;if(e){const a=new ResizeObserver(()=>{cancelAnimationFrame(o),o=window.requestAnimationFrame(n)});return a.observe(e),()=>{window.cancelAnimationFrame(o),a.unobserve(e)}}},[e,n])}const uTe=S.forwardRef((e,r)=>{const{style:n,...o}=e,a=oi(),[i,l]=S.useState(0),[s,c]=S.useState(0),d=!!(i&&s);return Cf(a.scrollbarX,()=>{const u=a.scrollbarX?.offsetHeight||0;a.onCornerHeightChange(u),c(u)}),Cf(a.scrollbarY,()=>{const u=a.scrollbarY?.offsetWidth||0;a.onCornerWidthChange(u),l(u)}),d?y.jsx("div",{...o,ref:r,style:{...n,width:i,height:s}}):null}),pTe=S.forwardRef((e,r)=>{const n=oi(),o=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&o?y.jsx(uTe,{...e,ref:r}):null}),hTe={scrollHideDelay:1e3,type:"hover"},XH=S.forwardRef((e,r)=>{const{type:n,scrollHideDelay:o,scrollbars:a,getStyles:i,...l}=Me("ScrollAreaRoot",hTe,e),[s,c]=S.useState(null),[d,u]=S.useState(null),[p,f]=S.useState(null),[g,v]=S.useState(null),[w,x]=S.useState(null),[k,C]=S.useState(0),[_,$]=S.useState(0),[z,j]=S.useState(!1),[A,R]=S.useState(!1),T=$r(r,O=>c(O));return y.jsx(dTe,{value:{type:n,scrollHideDelay:o,scrollArea:s,viewport:d,onViewportChange:u,content:p,onContentChange:f,scrollbarX:g,onScrollbarXChange:v,scrollbarXEnabled:z,onScrollbarXEnabledChange:j,scrollbarY:w,onScrollbarYChange:x,scrollbarYEnabled:A,onScrollbarYEnabledChange:R,onCornerWidthChange:C,onCornerHeightChange:$,getStyles:i},children:y.jsx(Se,{...l,ref:T,__vars:{"--sa-corner-width":a!=="xy"?"0px":`${k}px`,"--sa-corner-height":a!=="xy"?"0px":`${_}px`}})})});XH.displayName="@mantine/core/ScrollAreaRoot";function ZH(e,r){const n=e/r;return Number.isNaN(n)?0:n}function Pw(e){const r=ZH(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,o=(e.scrollbar.size-n)*r;return Math.max(o,18)}function KH(e,r){return n=>{if(e[0]===e[1]||r[0]===r[1])return r[0];const o=(r[1]-r[0])/(e[1]-e[0]);return r[0]+o*(n-e[0])}}function fTe(e,[r,n]){return Math.min(n,Math.max(r,e))}function QH(e,r,n="ltr"){const o=Pw(r),a=r.scrollbar.paddingStart+r.scrollbar.paddingEnd,i=r.scrollbar.size-a,l=r.content-r.viewport,s=i-o,c=n==="ltr"?[0,l]:[l*-1,0],d=fTe(e,c);return KH([0,l],[0,s])(d)}function mTe(e,r,n,o="ltr"){const a=Pw(n),i=a/2,l=r||i,s=a-l,c=n.scrollbar.paddingStart+l,d=n.scrollbar.size-n.scrollbar.paddingEnd-s,u=n.content-n.viewport,p=o==="ltr"?[0,u]:[u*-1,0];return KH([c,d],p)(e)}function JH(e,r){return e>0&&e{e?.(o),(n===!1||!o.defaultPrevented)&&r?.(o)}}const[gTe,eU]=ei("ScrollAreaScrollbar was not found in tree"),tU=S.forwardRef((e,r)=>{const{sizes:n,hasThumb:o,onThumbChange:a,onThumbPointerUp:i,onThumbPointerDown:l,onThumbPositionChange:s,onDragScroll:c,onWheelScroll:d,onResize:u,...p}=e,f=oi(),[g,v]=S.useState(null),w=$r(r,R=>v(R)),x=S.useRef(null),k=S.useRef(""),{viewport:C}=f,_=n.content-n.viewport,$=Qn(d),z=Qn(s),j=gf(u,10),A=R=>{if(x.current){const T=R.clientX-x.current.left,O=R.clientY-x.current.top;c({x:T,y:O})}};return S.useEffect(()=>{const R=T=>{const O=T.target;g?.contains(O)&&$(T,_)};return document.addEventListener("wheel",R,{passive:!1}),()=>document.removeEventListener("wheel",R,{passive:!1})},[C,g,_,$]),S.useEffect(z,[n,z]),Cf(g,j),Cf(f.content,j),y.jsx(gTe,{value:{scrollbar:g,hasThumb:o,onThumbChange:Qn(a),onThumbPointerUp:Qn(i),onThumbPositionChange:z,onThumbPointerDown:Qn(l)},children:y.jsx("div",{...p,ref:w,"data-mantine-scrollbar":!0,style:{position:"absolute",...p.style},onPointerDown:Ju(e.onPointerDown,R=>{R.preventDefault(),R.button===0&&(R.target.setPointerCapture(R.pointerId),x.current=g.getBoundingClientRect(),k.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",A(R))}),onPointerMove:Ju(e.onPointerMove,A),onPointerUp:Ju(e.onPointerUp,R=>{const T=R.target;T.hasPointerCapture(R.pointerId)&&(R.preventDefault(),T.releasePointerCapture(R.pointerId))}),onLostPointerCapture:()=>{document.body.style.webkitUserSelect=k.current,x.current=null}})})}),rU=S.forwardRef((e,r)=>{const{sizes:n,onSizesChange:o,style:a,...i}=e,l=oi(),[s,c]=S.useState(),d=S.useRef(null),u=$r(r,d,l.onScrollbarXChange);return S.useEffect(()=>{d.current&&c(getComputedStyle(d.current))},[d]),y.jsx(tU,{"data-orientation":"horizontal",...i,ref:u,sizes:n,style:{...a,"--sa-thumb-width":`${Pw(n)}px`},onThumbPointerDown:p=>e.onThumbPointerDown(p.x),onDragScroll:p=>e.onDragScroll(p.x),onWheelScroll:(p,f)=>{if(l.viewport){const g=l.viewport.scrollLeft+p.deltaX;e.onWheelScroll(g),JH(g,f)&&p.preventDefault()}},onResize:()=>{d.current&&l.viewport&&s&&o({content:l.viewport.scrollWidth,viewport:l.viewport.offsetWidth,scrollbar:{size:d.current.clientWidth,paddingStart:ud(s.paddingLeft),paddingEnd:ud(s.paddingRight)}})}})});rU.displayName="@mantine/core/ScrollAreaScrollbarX";const nU=S.forwardRef((e,r)=>{const{sizes:n,onSizesChange:o,style:a,...i}=e,l=oi(),[s,c]=S.useState(),d=S.useRef(null),u=$r(r,d,l.onScrollbarYChange);return S.useEffect(()=>{d.current&&c(window.getComputedStyle(d.current))},[]),y.jsx(tU,{...i,"data-orientation":"vertical",ref:u,sizes:n,style:{"--sa-thumb-height":`${Pw(n)}px`,...a},onThumbPointerDown:p=>e.onThumbPointerDown(p.y),onDragScroll:p=>e.onDragScroll(p.y),onWheelScroll:(p,f)=>{if(l.viewport){const g=l.viewport.scrollTop+p.deltaY;e.onWheelScroll(g),JH(g,f)&&p.preventDefault()}},onResize:()=>{d.current&&l.viewport&&s&&o({content:l.viewport.scrollHeight,viewport:l.viewport.offsetHeight,scrollbar:{size:d.current.clientHeight,paddingStart:ud(s.paddingTop),paddingEnd:ud(s.paddingBottom)}})}})});nU.displayName="@mantine/core/ScrollAreaScrollbarY";const Bw=S.forwardRef((e,r)=>{const{orientation:n="vertical",...o}=e,{dir:a}=dd(),i=oi(),l=S.useRef(null),s=S.useRef(0),[c,d]=S.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=ZH(c.viewport,c.content),p={...o,sizes:c,onSizesChange:d,hasThumb:u>0&&u<1,onThumbChange:g=>{l.current=g},onThumbPointerUp:()=>{s.current=0},onThumbPointerDown:g=>{s.current=g}},f=(g,v)=>mTe(g,s.current,c,v);return n==="horizontal"?y.jsx(rU,{...p,ref:r,onThumbPositionChange:()=>{if(i.viewport&&l.current){const g=i.viewport.scrollLeft,v=QH(g,c,a);l.current.style.transform=`translate3d(${v}px, 0, 0)`}},onWheelScroll:g=>{i.viewport&&(i.viewport.scrollLeft=g)},onDragScroll:g=>{i.viewport&&(i.viewport.scrollLeft=f(g,a))}}):n==="vertical"?y.jsx(nU,{...p,ref:r,onThumbPositionChange:()=>{if(i.viewport&&l.current){const g=i.viewport.scrollTop,v=QH(g,c);c.scrollbar.size===0?l.current.style.setProperty("--thumb-opacity","0"):l.current.style.setProperty("--thumb-opacity","1"),l.current.style.transform=`translate3d(0, ${v}px, 0)`}},onWheelScroll:g=>{i.viewport&&(i.viewport.scrollTop=g)},onDragScroll:g=>{i.viewport&&(i.viewport.scrollTop=f(g))}}):null});Bw.displayName="@mantine/core/ScrollAreaScrollbarVisible";const b9=S.forwardRef((e,r)=>{const n=oi(),{forceMount:o,...a}=e,[i,l]=S.useState(!1),s=e.orientation==="horizontal",c=gf(()=>{if(n.viewport){const d=n.viewport.offsetWidth{const{forceMount:n,...o}=e,a=oi(),[i,l]=S.useState(!1);return S.useEffect(()=>{const{scrollArea:s}=a;let c=0;if(s){const d=()=>{window.clearTimeout(c),l(!0)},u=()=>{c=window.setTimeout(()=>l(!1),a.scrollHideDelay)};return s.addEventListener("pointerenter",d),s.addEventListener("pointerleave",u),()=>{window.clearTimeout(c),s.removeEventListener("pointerenter",d),s.removeEventListener("pointerleave",u)}}},[a.scrollArea,a.scrollHideDelay]),n||i?y.jsx(b9,{"data-state":i?"visible":"hidden",...o,ref:r}):null});oU.displayName="@mantine/core/ScrollAreaScrollbarHover";const yTe=S.forwardRef((e,r)=>{const{forceMount:n,...o}=e,a=oi(),i=e.orientation==="horizontal",[l,s]=S.useState("hidden"),c=gf(()=>s("idle"),100);return S.useEffect(()=>{if(l==="idle"){const d=window.setTimeout(()=>s("hidden"),a.scrollHideDelay);return()=>window.clearTimeout(d)}},[l,a.scrollHideDelay]),S.useEffect(()=>{const{viewport:d}=a,u=i?"scrollLeft":"scrollTop";if(d){let p=d[u];const f=()=>{const g=d[u];p!==g&&(s("scrolling"),c()),p=g};return d.addEventListener("scroll",f),()=>d.removeEventListener("scroll",f)}},[a.viewport,i,c]),n||l!=="hidden"?y.jsx(Bw,{"data-state":l==="hidden"?"hidden":"visible",...o,ref:r,onPointerEnter:Ju(e.onPointerEnter,()=>s("interacting")),onPointerLeave:Ju(e.onPointerLeave,()=>s("idle"))}):null}),x9=S.forwardRef((e,r)=>{const{forceMount:n,...o}=e,a=oi(),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:l}=a,s=e.orientation==="horizontal";return S.useEffect(()=>(s?i(!0):l(!0),()=>{s?i(!1):l(!1)}),[s,i,l]),a.type==="hover"?y.jsx(oU,{...o,ref:r,forceMount:n}):a.type==="scroll"?y.jsx(yTe,{...o,ref:r,forceMount:n}):a.type==="auto"?y.jsx(b9,{...o,ref:r,forceMount:n}):a.type==="always"?y.jsx(Bw,{...o,ref:r}):null});x9.displayName="@mantine/core/ScrollAreaScrollbar";function vTe(e,r=()=>{}){let n={left:e.scrollLeft,top:e.scrollTop},o=0;return(function a(){const i={left:e.scrollLeft,top:e.scrollTop},l=n.left!==i.left,s=n.top!==i.top;(l||s)&&r(),n=i,o=window.requestAnimationFrame(a)})(),()=>window.cancelAnimationFrame(o)}const aU=S.forwardRef((e,r)=>{const{style:n,...o}=e,a=oi(),i=eU(),{onThumbPositionChange:l}=i,s=$r(r,u=>i.onThumbChange(u)),c=S.useRef(void 0),d=gf(()=>{c.current&&(c.current(),c.current=void 0)},100);return S.useEffect(()=>{const{viewport:u}=a;if(u){const p=()=>{if(d(),!c.current){const f=vTe(u,l);c.current=f,l()}};return l(),u.addEventListener("scroll",p),()=>u.removeEventListener("scroll",p)}},[a.viewport,d,l]),y.jsx("div",{"data-state":i.hasThumb?"visible":"hidden",...o,ref:s,style:{width:"var(--sa-thumb-width)",height:"var(--sa-thumb-height)",...n},onPointerDownCapture:Ju(e.onPointerDownCapture,u=>{const p=u.target.getBoundingClientRect(),f=u.clientX-p.left,g=u.clientY-p.top;i.onThumbPointerDown({x:f,y:g})}),onPointerUp:Ju(e.onPointerUp,i.onThumbPointerUp)})});aU.displayName="@mantine/core/ScrollAreaThumb";const w9=S.forwardRef((e,r)=>{const{forceMount:n,...o}=e,a=eU();return n||a.hasThumb?y.jsx(aU,{ref:r,...o}):null});w9.displayName="@mantine/core/ScrollAreaThumb";const iU=S.forwardRef(({children:e,style:r,...n},o)=>{const a=oi(),i=$r(o,a.onViewportChange);return y.jsx(Se,{...n,ref:i,style:{overflowX:a.scrollbarXEnabled?"scroll":"hidden",overflowY:a.scrollbarYEnabled?"scroll":"hidden",...r},children:y.jsx("div",{...a.getStyles("content"),ref:a.onContentChange,children:e})})});iU.displayName="@mantine/core/ScrollAreaViewport";var k9={root:"m_d57069b5",content:"m_b1336c6",viewport:"m_c0783ff9",viewportInner:"m_f8f631dd",scrollbar:"m_c44ba933",thumb:"m_d8b5e363",corner:"m_21657268"};const lU={scrollHideDelay:1e3,type:"hover",scrollbars:"xy"},bTe=(e,{scrollbarSize:r,overscrollBehavior:n})=>({root:{"--scrollarea-scrollbar-size":$e(r),"--scrollarea-over-scroll-behavior":n}}),Jl=ot((e,r)=>{const n=Me("ScrollArea",lU,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,scrollbarSize:c,vars:d,type:u,scrollHideDelay:p,viewportProps:f,viewportRef:g,onScrollPositionChange:v,children:w,offsetScrollbars:x,scrollbars:k,onBottomReached:C,onTopReached:_,overscrollBehavior:$,attributes:z,...j}=n,[A,R]=S.useState(!1),[T,O]=S.useState(!1),[P,L]=S.useState(!1),H=kt({name:"ScrollArea",props:n,classes:k9,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:z,vars:d,varsResolver:bTe}),M=S.useRef(null),V=MH([g,M]);return S.useEffect(()=>{if(!M.current||x!=="present")return;const B=M.current,F=new ResizeObserver(()=>{const{scrollHeight:q,clientHeight:G,scrollWidth:U,clientWidth:Y}=B;O(q>G),L(U>Y)});return F.observe(B),()=>F.disconnect()},[M,x]),y.jsxs(XH,{getStyles:H,type:u==="never"?"always":u,scrollHideDelay:p,ref:r,scrollbars:k,...H("root"),...j,children:[y.jsx(iU,{...f,...H("viewport",{style:f?.style}),ref:V,"data-offset-scrollbars":x===!0?"xy":x||void 0,"data-scrollbars":k||void 0,"data-horizontal-hidden":x==="present"&&!P?"true":void 0,"data-vertical-hidden":x==="present"&&!T?"true":void 0,onScroll:B=>{f?.onScroll?.(B),v?.({x:B.currentTarget.scrollLeft,y:B.currentTarget.scrollTop});const{scrollTop:F,scrollHeight:q,clientHeight:G}=B.currentTarget;F-(q-G)>=-.6&&C?.(),F===0&&_?.()},children:w}),(k==="xy"||k==="x")&&y.jsx(x9,{...H("scrollbar"),orientation:"horizontal","data-hidden":u==="never"||x==="present"&&!P?!0:void 0,forceMount:!0,onMouseEnter:()=>R(!0),onMouseLeave:()=>R(!1),children:y.jsx(w9,{...H("thumb")})}),(k==="xy"||k==="y")&&y.jsx(x9,{...H("scrollbar"),orientation:"vertical","data-hidden":u==="never"||x==="present"&&!T?!0:void 0,forceMount:!0,onMouseEnter:()=>R(!0),onMouseLeave:()=>R(!1),children:y.jsx(w9,{...H("thumb")})}),y.jsx(pTe,{...H("corner"),"data-hovered":A||void 0,"data-hidden":u==="never"||void 0})]})});Jl.displayName="@mantine/core/ScrollArea";const ta=ot((e,r)=>{const{children:n,classNames:o,styles:a,scrollbarSize:i,scrollHideDelay:l,type:s,dir:c,offsetScrollbars:d,viewportRef:u,onScrollPositionChange:p,unstyled:f,variant:g,viewportProps:v,scrollbars:w,style:x,vars:k,onBottomReached:C,onTopReached:_,onOverflowChange:$,...z}=Me("ScrollAreaAutosize",lU,e),j=S.useRef(null),A=MH([u,j]),[R,T]=S.useState(!1),O=S.useRef(!1);return S.useEffect(()=>{if(!$)return;const P=j.current;if(!P)return;const L=()=>{const M=P.scrollHeight>P.clientHeight;M!==R&&(O.current?$?.(M):(O.current=!0,M&&$?.(!0)),T(M))};L();const H=new ResizeObserver(L);return H.observe(P),()=>H.disconnect()},[$,R]),y.jsx(Se,{...z,ref:r,style:[{display:"flex",overflow:"hidden"},x],children:y.jsx(Se,{style:{display:"flex",flexDirection:"column",flex:1,overflow:"hidden",...w==="y"&&{minWidth:0},...w==="x"&&{minHeight:0},...w==="xy"&&{minWidth:0,minHeight:0},...w===!1&&{minWidth:0,minHeight:0}},children:y.jsx(Jl,{classNames:o,styles:a,scrollHideDelay:l,scrollbarSize:i,type:s,dir:c,offsetScrollbars:d,viewportRef:A,onScrollPositionChange:p,unstyled:f,variant:g,viewportProps:v,vars:k,scrollbars:w,onBottomReached:C,onTopReached:_,"data-autosize":"true",children:n})})})});Jl.classes=k9,ta.displayName="@mantine/core/ScrollAreaAutosize",ta.classes=k9,Jl.Autosize=ta;var sU={root:"m_87cf2631"};const xTe={__staticSelector:"UnstyledButton"},pr=Jn((e,r)=>{const n=Me("UnstyledButton",xTe,e),{className:o,component:a="button",__staticSelector:i,unstyled:l,classNames:s,styles:c,style:d,attributes:u,...p}=n,f=kt({name:i,props:n,classes:sU,className:o,style:d,classNames:s,styles:c,unstyled:l,attributes:u});return y.jsx(Se,{...f("root",{focusable:!0}),component:a,ref:r,type:a==="button"?"button":void 0,...p})});pr.classes=sU,pr.displayName="@mantine/core/UnstyledButton";var cU={root:"m_515a97f8"};const Ow=ot((e,r)=>{const n=Me("VisuallyHidden",null,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,vars:c,attributes:d,...u}=n,p=kt({name:"VisuallyHidden",classes:cU,props:n,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:d});return y.jsx(Se,{component:"span",ref:r,...p("root"),...u})});Ow.classes=cU,Ow.displayName="@mantine/core/VisuallyHidden";var dU={root:"m_1b7284a3"};const wTe=(e,{radius:r,shadow:n})=>({root:{"--paper-radius":r===void 0?void 0:wn(r),"--paper-shadow":hq(n)}}),$f=Jn((e,r)=>{const n=Me("Paper",null,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,withBorder:c,vars:d,radius:u,shadow:p,variant:f,mod:g,attributes:v,...w}=n,x=kt({name:"Paper",props:n,classes:dU,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:v,vars:d,varsResolver:wTe});return y.jsx(Se,{ref:r,mod:[{"data-with-border":c},g],...x("root"),variant:f,...w})});$f.classes=dU,$f.displayName="@mantine/core/Paper";function uU(e,r,n,o){return e==="center"||o==="center"?{top:r}:e==="end"?{bottom:n}:e==="start"?{top:n}:{}}function pU(e,r,n,o,a){return e==="center"||o==="center"?{left:r}:e==="end"?{[a==="ltr"?"right":"left"]:n}:e==="start"?{[a==="ltr"?"left":"right"]:n}:{}}const kTe={bottom:"borderTopLeftRadius",left:"borderTopRightRadius",right:"borderBottomLeftRadius",top:"borderBottomRightRadius"};function _Te({position:e,arrowSize:r,arrowOffset:n,arrowRadius:o,arrowPosition:a,arrowX:i,arrowY:l,dir:s}){const[c,d="center"]=e.split("-"),u={width:r,height:r,transform:"rotate(45deg)",position:"absolute",[kTe[c]]:o},p=-r/2;return c==="left"?{...u,...uU(d,l,n,a),right:p,borderLeftColor:"transparent",borderBottomColor:"transparent",clipPath:"polygon(100% 0, 0 0, 100% 100%)"}:c==="right"?{...u,...uU(d,l,n,a),left:p,borderRightColor:"transparent",borderTopColor:"transparent",clipPath:"polygon(0 100%, 0 0, 100% 100%)"}:c==="top"?{...u,...pU(d,i,n,a,s),bottom:p,borderTopColor:"transparent",borderLeftColor:"transparent",clipPath:"polygon(0 100%, 100% 100%, 100% 0)"}:c==="bottom"?{...u,...pU(d,i,n,a,s),top:p,borderBottomColor:"transparent",borderRightColor:"transparent",clipPath:"polygon(0 100%, 0 0, 100% 0)"}:{}}const Iw=S.forwardRef(({position:e,arrowSize:r,arrowOffset:n,arrowRadius:o,arrowPosition:a,visible:i,arrowX:l,arrowY:s,style:c,...d},u)=>{const{dir:p}=dd();return i?y.jsx("div",{...d,ref:u,style:{...c,..._Te({position:e,arrowSize:r,arrowOffset:n,arrowRadius:o,arrowPosition:a,dir:p,arrowX:l,arrowY:s})}}):null});Iw.displayName="@mantine/core/FloatingArrow";function hU(e,r){if(e==="rtl"&&(r.includes("right")||r.includes("left"))){const[n,o]=r.split("-"),a=n==="right"?"left":"right";return o===void 0?a:`${a}-${o}`}return r}var fU={root:"m_9814e45f"};const STe={zIndex:aw("modal")},ETe=(e,{gradient:r,color:n,backgroundOpacity:o,blur:a,radius:i,zIndex:l})=>({root:{"--overlay-bg":r||(n!==void 0||o!==void 0)&&Yl(n||"#000",o??.6)||void 0,"--overlay-filter":a?`blur(${$e(a)})`:void 0,"--overlay-radius":i===void 0?void 0:wn(i),"--overlay-z-index":l?.toString()}}),_9=Jn((e,r)=>{const n=Me("Overlay",STe,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,vars:c,fixed:d,center:u,children:p,radius:f,zIndex:g,gradient:v,blur:w,color:x,backgroundOpacity:k,mod:C,attributes:_,...$}=n,z=kt({name:"Overlay",props:n,classes:fU,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:_,vars:c,varsResolver:ETe});return y.jsx(Se,{ref:r,...z("root"),mod:[{center:u,fixed:d},C],...$,children:p})});_9.classes=fU,_9.displayName="@mantine/core/Overlay";function S9(e){const r=document.createElement("div");return r.setAttribute("data-portal","true"),typeof e.className=="string"&&r.classList.add(...e.className.split(" ").filter(Boolean)),typeof e.style=="object"&&Object.assign(r.style,e.style),typeof e.id=="string"&&r.setAttribute("id",e.id),r}function CTe({target:e,reuseTargetNode:r,...n}){if(e)return typeof e=="string"?document.querySelector(e)||S9(n):e;if(r){const o=document.querySelector("[data-mantine-shared-portal-node]");if(o)return o;const a=S9(n);return a.setAttribute("data-mantine-shared-portal-node","true"),document.body.appendChild(a),a}return S9(n)}const $Te={reuseTargetNode:!0},ry=ot((e,r)=>{const{children:n,target:o,reuseTargetNode:a,...i}=Me("Portal",$Te,e),[l,s]=S.useState(!1),c=S.useRef(null);return Z1(()=>(s(!0),c.current=CTe({target:o,reuseTargetNode:a,...i}),T7(r,c.current),!o&&!a&&c.current&&document.body.appendChild(c.current),()=>{!o&&!a&&c.current&&document.body.removeChild(c.current)}),[o]),!l||!c.current?null:Ii.createPortal(y.jsx(y.Fragment,{children:n}),c.current)});ry.displayName="@mantine/core/Portal";const zf=ot(({withinPortal:e=!0,children:r,...n},o)=>hw()==="test"||!e?y.jsx(y.Fragment,{children:r}):y.jsx(ry,{ref:o,...n,children:r}));zf.displayName="@mantine/core/OptionalPortal";const ny=e=>({in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:`scale(.9) translateY(${e==="bottom"?10:-10}px)`},transitionProperty:"transform, opacity"}),Lw={fade:{in:{opacity:1},out:{opacity:0},transitionProperty:"opacity"},"fade-up":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(30px)"},transitionProperty:"opacity, transform"},"fade-down":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(-30px)"},transitionProperty:"opacity, transform"},"fade-left":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(30px)"},transitionProperty:"opacity, transform"},"fade-right":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(-30px)"},transitionProperty:"opacity, transform"},scale:{in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:"scale(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-y":{in:{opacity:1,transform:"scaleY(1)"},out:{opacity:0,transform:"scaleY(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-x":{in:{opacity:1,transform:"scaleX(1)"},out:{opacity:0,transform:"scaleX(0)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"skew-up":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:"translateY(-20px) skew(-10deg, -5deg)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"skew-down":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:"translateY(20px) skew(-10deg, -5deg)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-left":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:"translateY(20px) rotate(-5deg)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-right":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:"translateY(20px) rotate(5deg)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-down":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(-100%)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-up":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(100%)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"slide-left":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(100%)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"slide-right":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(-100%)"},common:{transformOrigin:"right"},transitionProperty:"transform, opacity"},pop:{...ny("bottom"),common:{transformOrigin:"center center"}},"pop-bottom-left":{...ny("bottom"),common:{transformOrigin:"bottom left"}},"pop-bottom-right":{...ny("bottom"),common:{transformOrigin:"bottom right"}},"pop-top-left":{...ny("top"),common:{transformOrigin:"top left"}},"pop-top-right":{...ny("top"),common:{transformOrigin:"top right"}}},mU={entering:"in",entered:"in",exiting:"out",exited:"out","pre-exiting":"out","pre-entering":"out"};function zTe({transition:e,state:r,duration:n,timingFunction:o}){const a={WebkitBackfaceVisibility:"hidden",transitionDuration:`${n}ms`,transitionTimingFunction:o};return typeof e=="string"?e in Lw?{transitionProperty:Lw[e].transitionProperty,...a,...Lw[e].common,...Lw[e][mU[r]]}:{}:{transitionProperty:e.transitionProperty,...a,...e.common,...e[mU[r]]}}function RTe({duration:e,exitDuration:r,timingFunction:n,mounted:o,onEnter:a,onExit:i,onEntered:l,onExited:s,enterDelay:c,exitDelay:d}){const u=lo(),p=Eq(),f=u.respectReducedMotion?p:!1,[g,v]=S.useState(f?0:e),[w,x]=S.useState(o?"entered":"exited"),k=S.useRef(-1),C=S.useRef(-1),_=S.useRef(-1);function $(){window.clearTimeout(k.current),window.clearTimeout(C.current),cancelAnimationFrame(_.current)}const z=A=>{$();const R=A?a:i,T=A?l:s,O=f?0:A?e:r;v(O),O===0?(typeof R=="function"&&R(),typeof T=="function"&&T(),x(A?"entered":"exited")):_.current=requestAnimationFrame(()=>{QM.flushSync(()=>{x(A?"pre-entering":"pre-exiting")}),_.current=requestAnimationFrame(()=>{typeof R=="function"&&R(),x(A?"entering":"exiting"),k.current=window.setTimeout(()=>{typeof T=="function"&&T(),x(A?"entered":"exited")},O)})})},j=A=>{if($(),typeof(A?c:d)!="number"){z(A);return}C.current=window.setTimeout(()=>{z(A)},A?c:d)};return Xu(()=>{j(o)},[o]),S.useEffect(()=>()=>{$()},[]),{transitionDuration:g,transitionStatus:w,transitionTimingFunction:n||"ease"}}function pd({keepMounted:e,transition:r="fade",duration:n=250,exitDuration:o=n,mounted:a,children:i,timingFunction:l="ease",onExit:s,onEntered:c,onEnter:d,onExited:u,enterDelay:p,exitDelay:f}){const g=hw(),{transitionDuration:v,transitionStatus:w,transitionTimingFunction:x}=RTe({mounted:a,exitDuration:o,duration:n,timingFunction:l,onExit:s,onEntered:c,onEnter:d,onExited:u,enterDelay:p,exitDelay:f});return v===0||g==="test"?a?y.jsx(y.Fragment,{children:i({})}):e?i({display:"none"}):null:w==="exited"?e?i({display:"none"}):null:y.jsx(y.Fragment,{children:i(zTe({transition:r,duration:v,state:w,timingFunction:x}))})}pd.displayName="@mantine/core/Transition";const[jTe,gU]=ei("Popover component was not found in the tree");function Fw({children:e,active:r=!0,refProp:n="ref",innerRef:o}){const a=wq(r),i=$r(a,o);return Ki(e)?S.cloneElement(e,{[n]:i}):e}function yU(e){return y.jsx(Ow,{tabIndex:-1,"data-autofocus":!0,...e})}Fw.displayName="@mantine/core/FocusTrap",yU.displayName="@mantine/core/FocusTrapInitialFocus",Fw.InitialFocus=yU;var vU={dropdown:"m_38a85659",arrow:"m_a31dc6c1",overlay:"m_3d7bc908"};const Xs=ot((e,r)=>{const n=Me("PopoverDropdown",null,e),{className:o,style:a,vars:i,children:l,onKeyDownCapture:s,variant:c,classNames:d,styles:u,...p}=n,f=gU(),g=O$e({opened:f.opened,shouldReturnFocus:f.returnFocus}),v=f.withRoles?{"aria-labelledby":f.getTargetId(),id:f.getDropdownId(),role:"dialog",tabIndex:-1}:{},w=$r(r,f.floating);return f.disabled?null:y.jsx(zf,{...f.portalProps,withinPortal:f.withinPortal,children:y.jsx(pd,{mounted:f.opened,...f.transitionProps,transition:f.transitionProps?.transition||"fade",duration:f.transitionProps?.duration??150,keepMounted:f.keepMounted,exitDuration:typeof f.transitionProps?.exitDuration=="number"?f.transitionProps.exitDuration:f.transitionProps?.duration,children:x=>y.jsx(Fw,{active:f.trapFocus&&f.opened,innerRef:w,children:y.jsxs(Se,{...v,...p,variant:c,onKeyDownCapture:z$e(()=>{f.onClose?.(),f.onDismiss?.()},{active:f.closeOnEscape,onTrigger:g,onKeyDown:s}),"data-position":f.placement,"data-fixed":f.floatingStrategy==="fixed"||void 0,...f.getStyles("dropdown",{className:o,props:n,classNames:d,styles:u,style:[{...x,zIndex:f.zIndex,top:f.y??0,left:f.x??0,width:f.width==="target"?void 0:$e(f.width),...f.referenceHidden?{display:"none"}:null},f.resolvedStyles.dropdown,u?.dropdown,a]}),children:[l,y.jsx(Iw,{ref:f.arrowRef,arrowX:f.arrowX,arrowY:f.arrowY,visible:f.withArrow,position:f.placement,arrowSize:f.arrowSize,arrowRadius:f.arrowRadius,arrowOffset:f.arrowOffset,arrowPosition:f.arrowPosition,...f.getStyles("arrow",{props:n,classNames:d,styles:u})})]})})})})});Xs.classes=vU,Xs.displayName="@mantine/core/PopoverDropdown";const TTe={refProp:"ref",popupType:"dialog"},hd=ot((e,r)=>{const{children:n,refProp:o,popupType:a,...i}=Me("PopoverTarget",TTe,e);if(!Ki(n))throw new Error("Popover.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const l=i,s=gU(),c=$r(s.reference,sw(n),r),d=s.withRoles?{"aria-haspopup":a,"aria-expanded":s.opened,"aria-controls":s.getDropdownId(),id:s.getTargetId()}:{};return S.cloneElement(n,{...l,...d,...s.targetProps,className:Qi(s.targetProps.className,l.className,n.props.className),[o]:c,...s.controlled?null:{onClick:()=>{s.onToggle(),n.props.onClick?.()}}})});hd.displayName="@mantine/core/PopoverTarget";function ATe(e){if(e===void 0)return{shift:!0,flip:!0};const r={...e};return e.shift===void 0&&(r.shift=!0),e.flip===void 0&&(r.flip=!0),r}function DTe(e,r,n){const o=ATe(e.middlewares),a=[TH(e.offset),Xje()];return e.dropdownVisible&&n!=="test"&&e.preventPositionChangeWhenVisible&&(o.flip=!1),o.shift&&a.push(u9(typeof o.shift=="boolean"?{limiter:AH(),padding:5}:{limiter:AH(),padding:5,...o.shift})),o.flip&&a.push(typeof o.flip=="boolean"?Dw():Dw(o.flip)),o.inline&&a.push(typeof o.inline=="boolean"?ty():ty(o.inline)),a.push(DH({element:e.arrowRef,padding:e.arrowOffset})),(o.size||e.width==="target")&&a.push(Yje({...typeof o.size=="boolean"?{}:o.size,apply({rects:i,availableWidth:l,availableHeight:s,...c}){const d=r().refs.floating.current?.style??{};o.size&&(typeof o.size=="object"&&o.size.apply?o.size.apply({rects:i,availableWidth:l,availableHeight:s,...c}):Object.assign(d,{maxWidth:`${l}px`,maxHeight:`${s}px`})),e.width==="target"&&Object.assign(d,{width:`${i.reference.width}px`})}})),a}function MTe(e){const r=hw(),[n,o]=Us({value:e.opened,defaultValue:e.defaultOpened,finalValue:!1,onChange:e.onChange}),a=S.useRef(n),i=()=>{n&&!e.disabled&&o(!1)},l=()=>{e.disabled||o(!n)},s=Nw({strategy:e.strategy,placement:e.preventPositionChangeWhenVisible?e.positionRef.current:e.position,middleware:DTe(e,()=>s,r),whileElementsMounted:e.keepMounted?void 0:jw});return S.useEffect(()=>{if(!(!s.refs.reference.current||!s.refs.floating.current)&&n)return jw(s.refs.reference.current,s.refs.floating.current,s.update)},[n,s.update]),Xu(()=>{e.onPositionChange?.(s.placement),e.positionRef.current=s.placement},[s.placement,e.preventPositionChangeWhenVisible]),Xu(()=>{n!==a.current&&(n?e.onOpen?.():e.onClose?.()),a.current=n},[n,e.onClose,e.onOpen]),Xu(()=>{let c=-1;return n&&(c=window.setTimeout(()=>e.setDropdownVisible(!0),4)),()=>{window.clearTimeout(c)}},[n,e.position]),{floating:s,controlled:typeof e.opened=="boolean",opened:n,onClose:i,onToggle:l}}const NTe={position:"bottom",offset:8,positionDependencies:[],transitionProps:{transition:"fade",duration:150},middlewares:{flip:!0,shift:!0,inline:!1},arrowSize:7,arrowOffset:5,arrowRadius:0,arrowPosition:"side",closeOnClickOutside:!0,withinPortal:!0,closeOnEscape:!0,trapFocus:!1,withRoles:!0,returnFocus:!1,withOverlay:!1,hideDetached:!0,clickOutsideEvents:["mousedown","touchstart"],zIndex:aw("popover"),__staticSelector:"Popover",width:"max-content"},PTe=(e,{radius:r,shadow:n})=>({dropdown:{"--popover-radius":r===void 0?void 0:wn(r),"--popover-shadow":hq(n)}});function br(e){const r=Me("Popover",NTe,e),{children:n,position:o,offset:a,onPositionChange:i,positionDependencies:l,opened:s,transitionProps:c,onExitTransitionEnd:d,onEnterTransitionEnd:u,width:p,middlewares:f,withArrow:g,arrowSize:v,arrowOffset:w,arrowRadius:x,arrowPosition:k,unstyled:C,classNames:_,styles:$,closeOnClickOutside:z,withinPortal:j,portalProps:A,closeOnEscape:R,clickOutsideEvents:T,trapFocus:O,onClose:P,onDismiss:L,onOpen:H,onChange:M,zIndex:V,radius:B,shadow:F,id:q,defaultOpened:G,__staticSelector:U,withRoles:Y,disabled:Z,returnFocus:I,variant:W,keepMounted:K,vars:Q,floatingStrategy:ae,withOverlay:te,overlayProps:re,hideDetached:ue,attributes:_e,preventPositionChangeWhenVisible:ce,...pe}=r,xe=kt({name:U,props:r,classes:vU,classNames:_,styles:$,unstyled:C,attributes:_e,rootSelector:"dropdown",vars:Q,varsResolver:PTe}),{resolvedStyles:De}=H7({classNames:_,styles:$,props:r}),[Be,Je]=S.useState(s??G??!1),st=S.useRef(o),Le=S.useRef(null),[St,Ve]=S.useState(null),[qe,Xe]=S.useState(null),{dir:Ot}=dd(),Et=hw(),be=ti(q),ke=MTe({middlewares:f,width:p,position:hU(Ot,o),offset:typeof a=="number"?a+(g?v/2:0):a,arrowRef:Le,arrowOffset:w,onPositionChange:i,positionDependencies:l,opened:s,defaultOpened:G,onChange:M,onOpen:H,onClose:P,onDismiss:L,strategy:ae,dropdownVisible:Be,setDropdownVisible:Je,positionRef:st,disabled:Z,preventPositionChangeWhenVisible:ce,keepMounted:K});mq(()=>{z&&(ke.onClose(),L?.())},T,[St,qe]);const Ye=S.useCallback(er=>{Ve(er),ke.floating.refs.setReference(er)},[ke.floating.refs.setReference]),yt=S.useCallback(er=>{Xe(er),ke.floating.refs.setFloating(er)},[ke.floating.refs.setFloating]),xt=S.useCallback(()=>{c?.onExited?.(),d?.(),Je(!1),ce||(st.current=o)},[c?.onExited,d,ce,o]),jr=S.useCallback(()=>{c?.onEntered?.(),u?.()},[c?.onEntered,u]);return y.jsxs(jTe,{value:{returnFocus:I,disabled:Z,controlled:ke.controlled,reference:Ye,floating:yt,x:ke.floating.x,y:ke.floating.y,arrowX:ke.floating?.middlewareData?.arrow?.x,arrowY:ke.floating?.middlewareData?.arrow?.y,opened:ke.opened,arrowRef:Le,transitionProps:{...c,onExited:xt,onEntered:jr},width:p,withArrow:g,arrowSize:v,arrowOffset:w,arrowRadius:x,arrowPosition:k,placement:ke.floating.placement,trapFocus:O,withinPortal:j,portalProps:A,zIndex:V,radius:B,shadow:F,closeOnEscape:R,onDismiss:L,onClose:ke.onClose,onToggle:ke.onToggle,getTargetId:()=>`${be}-target`,getDropdownId:()=>`${be}-dropdown`,withRoles:Y,targetProps:pe,__staticSelector:U,classNames:_,styles:$,unstyled:C,variant:W,keepMounted:K,getStyles:xe,resolvedStyles:De,floatingStrategy:ae,referenceHidden:ue&&Et!=="test"?ke.floating.middlewareData.hide?.referenceHidden:!1},children:[n,te&&y.jsx(pd,{transition:"fade",mounted:ke.opened,duration:c?.duration||250,exitDuration:c?.exitDuration||250,children:er=>y.jsx(zf,{withinPortal:j,children:y.jsx(_9,{...re,...xe("overlay",{className:re?.className,style:[er,re?.style]})})})})]})}br.Target=hd,br.Dropdown=Xs,br.displayName="@mantine/core/Popover",br.extend=e=>e;var nl={root:"m_5ae2e3c",barsLoader:"m_7a2bd4cd",bar:"m_870bb79","bars-loader-animation":"m_5d2b3b9d",dotsLoader:"m_4e3f22d7",dot:"m_870c4af","loader-dots-animation":"m_aac34a1",ovalLoader:"m_b34414df","oval-loader-animation":"m_f8e89c4b"};const bU=S.forwardRef(({className:e,...r},n)=>y.jsxs(Se,{component:"span",className:Qi(nl.barsLoader,e),...r,ref:n,children:[y.jsx("span",{className:nl.bar}),y.jsx("span",{className:nl.bar}),y.jsx("span",{className:nl.bar})]}));bU.displayName="@mantine/core/Bars";const xU=S.forwardRef(({className:e,...r},n)=>y.jsxs(Se,{component:"span",className:Qi(nl.dotsLoader,e),...r,ref:n,children:[y.jsx("span",{className:nl.dot}),y.jsx("span",{className:nl.dot}),y.jsx("span",{className:nl.dot})]}));xU.displayName="@mantine/core/Dots";const wU=S.forwardRef(({className:e,...r},n)=>y.jsx(Se,{component:"span",className:Qi(nl.ovalLoader,e),...r,ref:n}));wU.displayName="@mantine/core/Oval";const kU={bars:bU,oval:wU,dots:xU},BTe={loaders:kU,type:"oval"},OTe=(e,{size:r,color:n})=>({root:{"--loader-size":dr(r,"loader-size"),"--loader-color":n?_a(n,e):void 0}}),Rf=ot((e,r)=>{const n=Me("Loader",BTe,e),{size:o,color:a,type:i,vars:l,className:s,style:c,classNames:d,styles:u,unstyled:p,loaders:f,variant:g,children:v,attributes:w,...x}=n,k=kt({name:"Loader",props:n,classes:nl,className:s,style:c,classNames:d,styles:u,unstyled:p,attributes:w,vars:l,varsResolver:OTe});return v?y.jsx(Se,{...k("root"),ref:r,...x,children:v}):y.jsx(Se,{...k("root"),ref:r,component:f[i],variant:g,size:o,...x})});Rf.defaultLoaders=kU,Rf.classes=nl,Rf.displayName="@mantine/core/Loader";var jf={root:"m_8d3f4000",icon:"m_8d3afb97",loader:"m_302b9fb1",group:"m_1a0f1b21",groupSection:"m_437b6484"};const _U={orientation:"horizontal"},ITe=(e,{borderWidth:r})=>({group:{"--ai-border-width":$e(r)}}),Vw=ot((e,r)=>{const n=Me("ActionIconGroup",_U,e),{className:o,style:a,classNames:i,styles:l,unstyled:s,orientation:c,vars:d,borderWidth:u,variant:p,mod:f,attributes:g,...v}=Me("ActionIconGroup",_U,e),w=kt({name:"ActionIconGroup",props:n,classes:jf,className:o,style:a,classNames:i,styles:l,unstyled:s,attributes:g,vars:d,varsResolver:ITe,rootSelector:"group"});return y.jsx(Se,{...w("group"),ref:r,variant:p,mod:[{"data-orientation":c},f],role:"group",...v})});Vw.classes=jf,Vw.displayName="@mantine/core/ActionIconGroup";const LTe=(e,{radius:r,color:n,gradient:o,variant:a,autoContrast:i,size:l})=>{const s=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:o,variant:a||"filled",autoContrast:i});return{groupSection:{"--section-height":dr(l,"section-height"),"--section-padding-x":dr(l,"section-padding-x"),"--section-fz":Eo(l),"--section-radius":r===void 0?void 0:wn(r),"--section-bg":n||a?s.background:void 0,"--section-color":s.color,"--section-bd":n||a?s.border:void 0}}},E9=ot((e,r)=>{const n=Me("ActionIconGroupSection",null,e),{className:o,style:a,classNames:i,styles:l,unstyled:s,vars:c,variant:d,gradient:u,radius:p,autoContrast:f,attributes:g,...v}=n,w=kt({name:"ActionIconGroupSection",props:n,classes:jf,className:o,style:a,classNames:i,styles:l,unstyled:s,attributes:g,vars:c,varsResolver:LTe,rootSelector:"groupSection"});return y.jsx(Se,{...w("groupSection"),ref:r,variant:d,...v})});E9.classes=jf,E9.displayName="@mantine/core/ActionIconGroupSection";const FTe=(e,{size:r,radius:n,variant:o,gradient:a,color:i,autoContrast:l})=>{const s=e.variantColorResolver({color:i||e.primaryColor,theme:e,gradient:a,variant:o||"filled",autoContrast:l});return{root:{"--ai-size":dr(r,"ai-size"),"--ai-radius":n===void 0?void 0:wn(n),"--ai-bg":i||o?s.background:void 0,"--ai-hover":i||o?s.hover:void 0,"--ai-hover-color":i||o?s.hoverColor:void 0,"--ai-color":s.color,"--ai-bd":i||o?s.border:void 0}}},lr=Jn((e,r)=>{const n=Me("ActionIcon",null,e),{className:o,unstyled:a,variant:i,classNames:l,styles:s,style:c,loading:d,loaderProps:u,size:p,color:f,radius:g,__staticSelector:v,gradient:w,vars:x,children:k,disabled:C,"data-disabled":_,autoContrast:$,mod:z,attributes:j,...A}=n,R=kt({name:["ActionIcon",v],props:n,className:o,style:c,classes:jf,classNames:l,styles:s,unstyled:a,attributes:j,vars:x,varsResolver:FTe});return y.jsxs(pr,{...R("root",{active:!C&&!d&&!_}),...A,unstyled:a,variant:i,size:p,disabled:C||d,ref:r,mod:[{loading:d,disabled:C||_},z],children:[typeof d=="boolean"&&y.jsx(pd,{mounted:d,transition:"slide-down",duration:150,children:T=>y.jsx(Se,{component:"span",...R("loader",{style:T}),"aria-hidden":!0,children:y.jsx(Rf,{color:"var(--ai-color)",size:"calc(var(--ai-size) * 0.55)",...u})})}),y.jsx(Se,{component:"span",mod:{loading:d},...R("icon"),children:k})]})});lr.classes=jf,lr.displayName="@mantine/core/ActionIcon",lr.Group=Vw,lr.GroupSection=E9;const SU=S.forwardRef(({size:e="var(--cb-icon-size, 70%)",style:r,...n},o)=>y.jsx("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{...r,width:e,height:e},ref:o,...n,children:y.jsx("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})}));SU.displayName="@mantine/core/CloseIcon";var EU={root:"m_86a44da5","root--subtle":"m_220c80f2"};const VTe={variant:"subtle"},qTe=(e,{size:r,radius:n,iconSize:o})=>({root:{"--cb-size":dr(r,"cb-size"),"--cb-radius":n===void 0?void 0:wn(n),"--cb-icon-size":$e(o)}}),ep=Jn((e,r)=>{const n=Me("CloseButton",VTe,e),{iconSize:o,children:a,vars:i,radius:l,className:s,classNames:c,style:d,styles:u,unstyled:p,"data-disabled":f,disabled:g,variant:v,icon:w,mod:x,attributes:k,__staticSelector:C,..._}=n,$=kt({name:C||"CloseButton",props:n,className:s,style:d,classes:EU,classNames:c,styles:u,unstyled:p,attributes:k,vars:i,varsResolver:qTe});return y.jsxs(pr,{ref:r,..._,unstyled:p,variant:v,disabled:g,mod:[{disabled:g||f},x],...$("root",{variant:v,active:!g&&!f}),children:[w||y.jsx(SU,{}),a]})});ep.classes=EU,ep.displayName="@mantine/core/CloseButton";function HTe(e){return S.Children.toArray(e).filter(Boolean)}var CU={root:"m_4081bf90"};const UTe={preventGrowOverflow:!0,gap:"md",align:"center",justify:"flex-start",wrap:"wrap"},WTe=(e,{grow:r,preventGrowOverflow:n,gap:o,align:a,justify:i,wrap:l},{childWidth:s})=>({root:{"--group-child-width":r&&n?s:void 0,"--group-gap":Hs(o),"--group-align":a,"--group-justify":i,"--group-wrap":l}}),en=ot((e,r)=>{const n=Me("Group",UTe,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,children:c,gap:d,align:u,justify:p,wrap:f,grow:g,preventGrowOverflow:v,vars:w,variant:x,__size:k,mod:C,attributes:_,...$}=n,z=HTe(c),j=z.length,A=Hs(d??"md"),R={childWidth:`calc(${100/j}% - (${A} - ${A} / ${j}))`},T=kt({name:"Group",props:n,stylesCtx:R,className:a,style:i,classes:CU,classNames:o,styles:l,unstyled:s,attributes:_,vars:w,varsResolver:WTe});return y.jsx(Se,{...T("root"),ref:r,variant:x,mod:[{grow:g},C],size:k,...$,children:z})});en.classes=CU,en.displayName="@mantine/core/Group";const[GTe,YTe]=G1({size:"sm"}),$U=ot((e,r)=>{const n=Me("InputClearButton",null,e),{size:o,variant:a,vars:i,classNames:l,styles:s,...c}=n,d=YTe(),{resolvedClassNames:u,resolvedStyles:p}=H7({classNames:l,styles:s,props:n});return y.jsx(ep,{variant:a||"transparent",ref:r,size:o||d?.size||"sm",classNames:u,styles:p,__staticSelector:"InputClearButton",style:{pointerEvents:"all",background:"var(--input-bg)",...c.style},...c})});$U.displayName="@mantine/core/InputClearButton";const XTe={xs:7,sm:8,md:10,lg:12,xl:15};function ZTe({__clearable:e,__clearSection:r,rightSection:n,__defaultRightSection:o,size:a="sm"}){const i=e&&r;return i&&(n||o)?y.jsxs("div",{"data-combined-clear-section":!0,style:{display:"flex",gap:2,alignItems:"center",paddingInlineEnd:XTe[a]},children:[i,n||o]}):n===null?null:n||i||o}const[KTe,qw]=G1({offsetBottom:!1,offsetTop:!1,describedBy:void 0,getStyles:null,inputId:void 0,labelId:void 0});var ai={wrapper:"m_6c018570",input:"m_8fb7ebe7",section:"m_82577fc2",placeholder:"m_88bacfd0",root:"m_46b77525",label:"m_8fdc1311",required:"m_78a94662",error:"m_8f816625",description:"m_fe47ce59"};const QTe=(e,{size:r})=>({description:{"--input-description-size":r===void 0?void 0:`calc(${Eo(r)} - ${$e(2)})`}}),Hw=ot((e,r)=>{const n=Me("InputDescription",null,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,vars:c,size:d,__staticSelector:u,__inheritStyles:p=!0,attributes:f,variant:g,...v}=Me("InputDescription",null,n),w=qw(),x=kt({name:["InputWrapper",u],props:n,classes:ai,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:f,rootSelector:"description",vars:c,varsResolver:QTe}),k=p&&w?.getStyles||x;return y.jsx(Se,{component:"p",ref:r,variant:g,size:d,...k("description",w?.getStyles?{className:a,style:i}:void 0),...v})});Hw.classes=ai,Hw.displayName="@mantine/core/InputDescription";const JTe=(e,{size:r})=>({error:{"--input-error-size":r===void 0?void 0:`calc(${Eo(r)} - ${$e(2)})`}}),Uw=ot((e,r)=>{const n=Me("InputError",null,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,vars:c,size:d,attributes:u,__staticSelector:p,__inheritStyles:f=!0,variant:g,...v}=n,w=kt({name:["InputWrapper",p],props:n,classes:ai,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:u,rootSelector:"error",vars:c,varsResolver:JTe}),x=qw(),k=f&&x?.getStyles||w;return y.jsx(Se,{component:"p",ref:r,variant:g,size:d,...k("error",x?.getStyles?{className:a,style:i}:void 0),...v})});Uw.classes=ai,Uw.displayName="@mantine/core/InputError";const zU={labelElement:"label"},eAe=(e,{size:r})=>({label:{"--input-label-size":Eo(r),"--input-asterisk-color":void 0}}),Ww=ot((e,r)=>{const n=Me("InputLabel",zU,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,vars:c,labelElement:d,size:u,required:p,htmlFor:f,onMouseDown:g,children:v,__staticSelector:w,variant:x,mod:k,attributes:C,..._}=Me("InputLabel",zU,n),$=kt({name:["InputWrapper",w],props:n,classes:ai,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:C,rootSelector:"label",vars:c,varsResolver:eAe}),z=qw(),j=z?.getStyles||$;return y.jsxs(Se,{...j("label",z?.getStyles?{className:a,style:i}:void 0),component:d,variant:x,size:u,ref:r,htmlFor:d==="label"?f:void 0,mod:[{required:p},k],onMouseDown:A=>{g?.(A),!A.defaultPrevented&&A.detail>1&&A.preventDefault()},..._,children:[v,p&&y.jsx("span",{...j("required"),"aria-hidden":!0,children:" *"})]})});Ww.classes=ai,Ww.displayName="@mantine/core/InputLabel";const C9=ot((e,r)=>{const n=Me("InputPlaceholder",null,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,vars:c,__staticSelector:d,variant:u,error:p,mod:f,attributes:g,...v}=n,w=kt({name:["InputPlaceholder",d],props:n,classes:ai,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:g,rootSelector:"placeholder"});return y.jsx(Se,{...w("placeholder"),mod:[{error:!!p},f],component:"span",variant:u,ref:r,...v})});C9.classes=ai,C9.displayName="@mantine/core/InputPlaceholder";function tAe(e,{hasDescription:r,hasError:n}){const o=e.findIndex(s=>s==="input"),a=e.slice(0,o),i=e.slice(o+1),l=r&&a.includes("description")||n&&a.includes("error");return{offsetBottom:r&&i.includes("description")||n&&i.includes("error"),offsetTop:l}}const rAe={labelElement:"label",inputContainer:e=>e,inputWrapperOrder:["label","description","input","error"]},nAe=(e,{size:r})=>({label:{"--input-label-size":Eo(r),"--input-asterisk-color":void 0},error:{"--input-error-size":r===void 0?void 0:`calc(${Eo(r)} - ${$e(2)})`},description:{"--input-description-size":r===void 0?void 0:`calc(${Eo(r)} - ${$e(2)})`}}),$9=ot((e,r)=>{const n=Me("InputWrapper",rAe,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,vars:c,size:d,variant:u,__staticSelector:p,inputContainer:f,inputWrapperOrder:g,label:v,error:w,description:x,labelProps:k,descriptionProps:C,errorProps:_,labelElement:$,children:z,withAsterisk:j,id:A,required:R,__stylesApiProps:T,mod:O,attributes:P,...L}=n,H=kt({name:["InputWrapper",p],props:T||n,classes:ai,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:P,vars:c,varsResolver:nAe}),M={size:d,variant:u,__staticSelector:p},V=ti(A),B=typeof j=="boolean"?j:R,F=_?.id||`${V}-error`,q=C?.id||`${V}-description`,G=V,U=!!w&&typeof w!="boolean",Y=!!x,Z=`${U?F:""} ${Y?q:""}`,I=Z.trim().length>0?Z.trim():void 0,W=k?.id||`${V}-label`,K=v&&y.jsx(Ww,{labelElement:$,id:W,htmlFor:G,required:B,...M,...k,children:v},"label"),Q=Y&&y.jsx(Hw,{...C,...M,size:C?.size||M.size,id:C?.id||q,children:x},"description"),ae=y.jsx(S.Fragment,{children:f(z)},"input"),te=U&&S.createElement(Uw,{..._,...M,size:_?.size||M.size,key:"error",id:_?.id||F},w),re=g.map(ue=>{switch(ue){case"label":return K;case"input":return ae;case"description":return Q;case"error":return te;default:return null}});return y.jsx(KTe,{value:{getStyles:H,describedBy:I,inputId:G,labelId:W,...tAe(g,{hasDescription:Y,hasError:U})},children:y.jsx(Se,{ref:r,variant:u,size:d,mod:[{error:!!w},O],...H("root"),...L,children:re})})});$9.classes=ai,$9.displayName="@mantine/core/InputWrapper";const oAe={variant:"default",leftSectionPointerEvents:"none",rightSectionPointerEvents:"none",withAria:!0,withErrorStyles:!0,size:"sm"},aAe=(e,r,n)=>({wrapper:{"--input-margin-top":n.offsetTop?"calc(var(--mantine-spacing-xs) / 2)":void 0,"--input-margin-bottom":n.offsetBottom?"calc(var(--mantine-spacing-xs) / 2)":void 0,"--input-height":dr(r.size,"input-height"),"--input-fz":Eo(r.size),"--input-radius":r.radius===void 0?void 0:wn(r.radius),"--input-left-section-width":r.leftSectionWidth!==void 0?$e(r.leftSectionWidth):void 0,"--input-right-section-width":r.rightSectionWidth!==void 0?$e(r.rightSectionWidth):void 0,"--input-padding-y":r.multiline?dr(r.size,"input-padding-y"):void 0,"--input-left-section-pointer-events":r.leftSectionPointerEvents,"--input-right-section-pointer-events":r.rightSectionPointerEvents}}),Ca=Jn((e,r)=>{const n=Me("Input",oAe,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,required:c,__staticSelector:d,__stylesApiProps:u,size:p,wrapperProps:f,error:g,disabled:v,leftSection:w,leftSectionProps:x,leftSectionWidth:k,rightSection:C,rightSectionProps:_,rightSectionWidth:$,rightSectionPointerEvents:z,leftSectionPointerEvents:j,variant:A,vars:R,pointer:T,multiline:O,radius:P,id:L,withAria:H,withErrorStyles:M,mod:V,inputSize:B,attributes:F,__clearSection:q,__clearable:G,__defaultRightSection:U,...Y}=n,{styleProps:Z,rest:I}=Hq(Y),W=qw(),K={offsetBottom:W?.offsetBottom,offsetTop:W?.offsetTop},Q=kt({name:["Input",d],props:u||n,classes:ai,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:F,stylesCtx:K,rootSelector:"wrapper",vars:R,varsResolver:aAe}),ae=H?{required:c,disabled:v,"aria-invalid":!!g,"aria-describedby":W?.describedBy,id:W?.inputId||L}:{},te=ZTe({__clearable:G,__clearSection:q,rightSection:C,__defaultRightSection:U,size:p});return y.jsx(GTe,{value:{size:p||"sm"},children:y.jsxs(Se,{...Q("wrapper"),...Z,...f,mod:[{error:!!g&&M,pointer:T,disabled:v,multiline:O,"data-with-right-section":!!te,"data-with-left-section":!!w},V],variant:A,size:p,children:[w&&y.jsx("div",{...x,"data-position":"left",...Q("section",{className:x?.className,style:x?.style}),children:w}),y.jsx(Se,{component:"input",...I,...ae,ref:r,required:c,mod:{disabled:v,error:!!g&&M},variant:A,__size:B,...Q("input")}),te&&y.jsx("div",{..._,"data-position":"right",...Q("section",{className:_?.className,style:_?.style}),children:te})]})})});Ca.classes=ai,Ca.Wrapper=$9,Ca.Label=Ww,Ca.Error=Uw,Ca.Description=Hw,Ca.Placeholder=C9,Ca.ClearButton=$U,Ca.displayName="@mantine/core/Input";const iAe={gap:{type:"spacing",property:"gap"},rowGap:{type:"spacing",property:"rowGap"},columnGap:{type:"spacing",property:"columnGap"},align:{type:"identity",property:"alignItems"},justify:{type:"identity",property:"justifyContent"},wrap:{type:"identity",property:"flexWrap"},direction:{type:"identity",property:"flexDirection"}};var RU={root:"m_8bffd616"};const Zs=Jn((e,r)=>{const n=Me("Flex",null,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,vars:c,gap:d,rowGap:u,columnGap:p,align:f,justify:g,wrap:v,direction:w,attributes:x,...k}=n,C=kt({name:"Flex",classes:RU,props:n,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:x,vars:c}),_=lo(),$=yw(),z=Gq({styleProps:{gap:d,rowGap:u,columnGap:p,align:f,justify:g,wrap:v,direction:w},theme:_,data:iAe});return y.jsxs(y.Fragment,{children:[z.hasResponsiveStyles&&y.jsx(gw,{selector:`.${$}`,styles:z.styles,media:z.media}),y.jsx(Se,{ref:r,...C("root",{className:$,style:ff(z.inlineStyles)}),...k})]})});Zs.classes=RU,Zs.displayName="@mantine/core/Flex";function lAe(e,r){if(!r||!e)return!1;let n=r.parentNode;for(;n!=null;){if(n===e)return!0;n=n.parentNode}return!1}function sAe({target:e,parent:r,ref:n,displayAfterTransitionEnd:o}){const a=S.useRef(-1),[i,l]=S.useState(!1),[s,c]=S.useState(typeof o=="boolean"?o:!1),d=()=>{if(!e||!r||!n.current)return;const g=e.getBoundingClientRect(),v=r.getBoundingClientRect(),w=window.getComputedStyle(e),x=window.getComputedStyle(r),k=ud(w.borderTopWidth)+ud(x.borderTopWidth),C=ud(w.borderLeftWidth)+ud(x.borderLeftWidth),_={top:g.top-v.top-k,left:g.left-v.left-C,width:g.width,height:g.height};n.current.style.transform=`translateY(${_.top}px) translateX(${_.left}px)`,n.current.style.width=`${_.width}px`,n.current.style.height=`${_.height}px`},u=()=>{window.clearTimeout(a.current),n.current&&(n.current.style.transitionDuration="0ms"),d(),a.current=window.setTimeout(()=>{n.current&&(n.current.style.transitionDuration="")},30)},p=S.useRef(null),f=S.useRef(null);return S.useEffect(()=>{if(d(),e)return p.current=new ResizeObserver(u),p.current.observe(e),r&&(f.current=new ResizeObserver(u),f.current.observe(r)),()=>{p.current?.disconnect(),f.current?.disconnect()}},[r,e]),S.useEffect(()=>{if(r){const g=v=>{lAe(v.target,r)&&(u(),c(!1))};return r.addEventListener("transitionend",g),()=>{r.removeEventListener("transitionend",g)}}},[r]),zq(()=>{hze()!=="test"&&l(!0)},20,{autoInvoke:!0}),Rq(g=>{g.forEach(v=>{v.type==="attributes"&&v.attributeName==="dir"&&u()})},{attributes:!0,attributeFilter:["dir"]},()=>document.documentElement),{initialized:i,hidden:s}}var jU={root:"m_96b553a6"};const cAe=(e,{transitionDuration:r})=>({root:{"--transition-duration":typeof r=="number"?`${r}ms`:r}}),Gw=ot((e,r)=>{const n=Me("FloatingIndicator",null,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,vars:c,target:d,parent:u,transitionDuration:p,mod:f,displayAfterTransitionEnd:g,attributes:v,...w}=n,x=kt({name:"FloatingIndicator",classes:jU,props:n,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:v,vars:c,varsResolver:cAe}),k=S.useRef(null),{initialized:C,hidden:_}=sAe({target:d,parent:u,ref:k,displayAfterTransitionEnd:g}),$=$r(r,k);return!d||!u?null:y.jsx(Se,{ref:$,mod:[{initialized:C,hidden:_},f],...x("root"),...w})});Gw.displayName="@mantine/core/FloatingIndicator",Gw.classes=jU;function TU({open:e,close:r,openDelay:n,closeDelay:o}){const a=S.useRef(-1),i=S.useRef(-1),l=()=>{window.clearTimeout(a.current),window.clearTimeout(i.current)},s=()=>{l(),n===0||n===void 0?e():a.current=window.setTimeout(e,n)},c=()=>{l(),o===0||o===void 0?r():i.current=window.setTimeout(r,o)};return S.useEffect(()=>l,[]),{openDropdown:s,closeDropdown:c}}function z9({style:e,size:r=16,...n}){return y.jsx("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{...e,width:$e(r),height:$e(r),display:"block"},...n,children:y.jsx("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}z9.displayName="@mantine/core/AccordionChevron";var AU={root:"m_66836ed3",wrapper:"m_a5d60502",body:"m_667c2793",title:"m_6a03f287",label:"m_698f4f23",icon:"m_667f2a6a",message:"m_7fa78076",closeButton:"m_87f54839"};const dAe=(e,{radius:r,color:n,variant:o,autoContrast:a})=>{const i=e.variantColorResolver({color:n||e.primaryColor,theme:e,variant:o||"light",autoContrast:a});return{root:{"--alert-radius":r===void 0?void 0:wn(r),"--alert-bg":n||o?i.background:void 0,"--alert-color":i.color,"--alert-bd":n||o?i.border:void 0}}},Yw=ot((e,r)=>{const n=Me("Alert",null,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,vars:c,radius:d,color:u,title:p,children:f,id:g,icon:v,withCloseButton:w,onClose:x,closeButtonLabel:k,variant:C,autoContrast:_,role:$,attributes:z,...j}=n,A=kt({name:"Alert",classes:AU,props:n,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:z,vars:c,varsResolver:dAe}),R=ti(g),T=p&&`${R}-title`||void 0,O=`${R}-body`;return y.jsx(Se,{id:R,...A("root",{variant:C}),variant:C,ref:r,role:$||"alert",...j,"aria-describedby":f?O:void 0,"aria-labelledby":p?T:void 0,children:y.jsxs("div",{...A("wrapper"),children:[v&&y.jsx("div",{...A("icon"),children:v}),y.jsxs("div",{...A("body"),children:[p&&y.jsx("div",{...A("title"),"data-with-close-button":w||void 0,children:y.jsx("span",{id:T,...A("label"),children:p})}),f&&y.jsx("div",{id:O,...A("message"),"data-variant":C,children:f})]}),w&&y.jsx(ep,{...A("closeButton"),onClick:x,variant:"transparent",size:16,iconSize:16,"aria-label":k,unstyled:s})]})})});Yw.classes=AU,Yw.displayName="@mantine/core/Alert";var DU={root:"m_b6d8b162"};function uAe(e){if(e==="start")return"start";if(e==="end"||e)return"end"}const pAe={inherit:!1},hAe=(e,{variant:r,lineClamp:n,gradient:o,size:a,color:i})=>({root:{"--text-fz":Eo(a),"--text-lh":R$e(a),"--text-gradient":r==="gradient"?N7(o,e):void 0,"--text-line-clamp":typeof n=="number"?n.toString():void 0,"--text-color":i?_a(i,e):void 0}}),at=Jn((e,r)=>{const n=Me("Text",pAe,e),{lineClamp:o,truncate:a,inline:i,inherit:l,gradient:s,span:c,__staticSelector:d,vars:u,className:p,style:f,classNames:g,styles:v,unstyled:w,variant:x,mod:k,size:C,attributes:_,...$}=n,z=kt({name:["Text",d],props:n,classes:DU,className:p,style:f,classNames:g,styles:v,unstyled:w,attributes:_,vars:u,varsResolver:hAe});return y.jsx(Se,{...z("root",{focusable:!0}),ref:r,component:c?"span":"p",variant:x,mod:[{"data-truncate":uAe(a),"data-line-clamp":typeof o=="number","data-inline":i,"data-inherit":l},k],size:C,...$})});at.classes=DU,at.displayName="@mantine/core/Text";var MU={root:"m_849cf0da"};const fAe={underline:"hover"},R9=Jn((e,r)=>{const{underline:n,className:o,unstyled:a,mod:i,...l}=Me("Anchor",fAe,e);return y.jsx(at,{component:"a",ref:r,className:Qi({[MU.root]:!a},o),...l,mod:[{underline:n},i],__staticSelector:"Anchor",unstyled:a})});R9.classes=MU,R9.displayName="@mantine/core/Anchor";var ii={dropdown:"m_88b62a41",search:"m_985517d8",options:"m_b2821a6e",option:"m_92253aa5",empty:"m_2530cd1d",header:"m_858f94bd",footer:"m_82b967cb",group:"m_254f3e4f",groupLabel:"m_2bb2e9e5",chevron:"m_2943220b",optionsDropdownOption:"m_390b5f4",optionsDropdownCheckIcon:"m_8ee53fc2",optionsDropdownCheckPlaceholder:"m_a530ee0a"};const mAe={error:null},gAe=(e,{size:r,color:n})=>({chevron:{"--combobox-chevron-size":dr(r,"combobox-chevron-size"),"--combobox-chevron-color":n?_a(n,e):void 0}}),j9=ot((e,r)=>{const n=Me("ComboboxChevron",mAe,e),{size:o,error:a,style:i,className:l,classNames:s,styles:c,unstyled:d,vars:u,mod:p,...f}=n,g=kt({name:"ComboboxChevron",classes:ii,props:n,style:i,className:l,classNames:s,styles:c,unstyled:d,vars:u,varsResolver:gAe,rootSelector:"chevron"});return y.jsx(Se,{component:"svg",...f,...g("chevron"),size:o,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",mod:["combobox-chevron",{error:a},p],ref:r,children:y.jsx("path",{d:"M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})});j9.classes=ii,j9.displayName="@mantine/core/ComboboxChevron";const[yAe,li]=ei("Combobox component was not found in tree"),NU=S.forwardRef(({size:e,onMouseDown:r,onClick:n,onClear:o,...a},i)=>y.jsx(Ca.ClearButton,{ref:i,tabIndex:-1,"aria-hidden":!0,...a,onMouseDown:l=>{l.preventDefault(),r?.(l)},onClick:l=>{o(),n?.(l)}}));NU.displayName="@mantine/core/ComboboxClearButton";const Xw=ot((e,r)=>{const{classNames:n,styles:o,className:a,style:i,hidden:l,...s}=Me("ComboboxDropdown",null,e),c=li();return y.jsx(br.Dropdown,{...s,ref:r,role:"presentation","data-hidden":l||void 0,...c.getStyles("dropdown",{className:a,style:i,classNames:n,styles:o})})});Xw.classes=ii,Xw.displayName="@mantine/core/ComboboxDropdown";const vAe={refProp:"ref"},PU=ot((e,r)=>{const{children:n,refProp:o}=Me("ComboboxDropdownTarget",vAe,e);if(li(),!Ki(n))throw new Error("Combobox.DropdownTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");return y.jsx(br.Target,{ref:r,refProp:o,children:n})});PU.displayName="@mantine/core/ComboboxDropdownTarget";const oy=ot((e,r)=>{const{classNames:n,className:o,style:a,styles:i,vars:l,...s}=Me("ComboboxEmpty",null,e),c=li();return y.jsx(Se,{ref:r,...c.getStyles("empty",{className:o,classNames:n,styles:i,style:a}),...s})});oy.classes=ii,oy.displayName="@mantine/core/ComboboxEmpty";function T9({onKeyDown:e,withKeyboardNavigation:r,withAriaAttributes:n,withExpandedAttribute:o,targetType:a,autoComplete:i}){const l=li(),[s,c]=S.useState(null),d=u=>{if(e?.(u),!l.readOnly&&r){if(u.nativeEvent.isComposing)return;if(u.nativeEvent.code==="ArrowDown"&&(u.preventDefault(),l.store.dropdownOpened?c(l.store.selectNextOption()):(l.store.openDropdown("keyboard"),c(l.store.selectActiveOption()),l.store.updateSelectedOptionIndex("selected",{scrollIntoView:!0}))),u.nativeEvent.code==="ArrowUp"&&(u.preventDefault(),l.store.dropdownOpened?c(l.store.selectPreviousOption()):(l.store.openDropdown("keyboard"),c(l.store.selectActiveOption()),l.store.updateSelectedOptionIndex("selected",{scrollIntoView:!0}))),u.nativeEvent.code==="Enter"||u.nativeEvent.code==="NumpadEnter"){if(u.nativeEvent.keyCode===229)return;const p=l.store.getSelectedOptionIndex();l.store.dropdownOpened&&p!==-1?(u.preventDefault(),l.store.clickSelectedOption()):a==="button"&&(u.preventDefault(),l.store.openDropdown("keyboard"))}u.key==="Escape"&&l.store.closeDropdown("keyboard"),u.nativeEvent.code==="Space"&&a==="button"&&(u.preventDefault(),l.store.toggleDropdown("keyboard"))}};return{...n?{"aria-haspopup":"listbox","aria-expanded":o?!!(l.store.listId&&l.store.dropdownOpened):void 0,"aria-controls":l.store.dropdownOpened&&l.store.listId?l.store.listId:void 0,"aria-activedescendant":l.store.dropdownOpened&&s||void 0,autoComplete:i,"data-expanded":l.store.dropdownOpened||void 0,"data-mantine-stop-propagation":l.store.dropdownOpened||void 0}:{},onKeyDown:d}}const bAe={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},BU=ot((e,r)=>{const{children:n,refProp:o,withKeyboardNavigation:a,withAriaAttributes:i,withExpandedAttribute:l,targetType:s,autoComplete:c,...d}=Me("ComboboxEventsTarget",bAe,e);if(!Ki(n))throw new Error("Combobox.EventsTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const u=li(),p=T9({targetType:s,withAriaAttributes:i,withKeyboardNavigation:a,withExpandedAttribute:l,onKeyDown:n.props.onKeyDown,autoComplete:c});return S.cloneElement(n,{...p,...d,[o]:$r(r,u.store.targetRef,sw(n))})});BU.displayName="@mantine/core/ComboboxEventsTarget";const A9=ot((e,r)=>{const{classNames:n,className:o,style:a,styles:i,vars:l,...s}=Me("ComboboxFooter",null,e),c=li();return y.jsx(Se,{ref:r,...c.getStyles("footer",{className:o,classNames:n,style:a,styles:i}),...s,onMouseDown:d=>{d.preventDefault()}})});A9.classes=ii,A9.displayName="@mantine/core/ComboboxFooter";const D9=ot((e,r)=>{const{classNames:n,className:o,style:a,styles:i,vars:l,children:s,label:c,id:d,...u}=Me("ComboboxGroup",null,e),p=li(),f=ti(d);return y.jsxs(Se,{ref:r,role:"group","aria-labelledby":c?f:void 0,...p.getStyles("group",{className:o,classNames:n,style:a,styles:i}),...u,children:[c&&y.jsx("div",{id:f,...p.getStyles("groupLabel",{classNames:n,styles:i}),children:c}),s]})});D9.classes=ii,D9.displayName="@mantine/core/ComboboxGroup";const M9=ot((e,r)=>{const{classNames:n,className:o,style:a,styles:i,vars:l,...s}=Me("ComboboxHeader",null,e),c=li();return y.jsx(Se,{ref:r,...c.getStyles("header",{className:o,classNames:n,style:a,styles:i}),...s,onMouseDown:d=>{d.preventDefault()}})});M9.classes=ii,M9.displayName="@mantine/core/ComboboxHeader";function OU({value:e,valuesDivider:r=",",...n}){return y.jsx("input",{type:"hidden",value:Array.isArray(e)?e.join(r):e||"",...n})}OU.displayName="@mantine/core/ComboboxHiddenInput";const ay=ot((e,r)=>{const n=Me("ComboboxOption",null,e),{classNames:o,className:a,style:i,styles:l,vars:s,onClick:c,id:d,active:u,onMouseDown:p,onMouseOver:f,disabled:g,selected:v,mod:w,...x}=n,k=li(),C=S.useId(),_=d||C;return y.jsx(Se,{...k.getStyles("option",{className:a,classNames:o,styles:l,style:i}),...x,ref:r,id:_,mod:["combobox-option",{"combobox-active":u,"combobox-disabled":g,"combobox-selected":v},w],role:"option",onClick:$=>{g?$.preventDefault():(k.onOptionSubmit?.(n.value,n),c?.($))},onMouseDown:$=>{$.preventDefault(),p?.($)},onMouseOver:$=>{k.resetSelectionOnOptionHover&&k.store.resetSelectedOption(),f?.($)}})});ay.classes=ii,ay.displayName="@mantine/core/ComboboxOption";const Zw=ot((e,r)=>{const n=Me("ComboboxOptions",null,e),{classNames:o,className:a,style:i,styles:l,id:s,onMouseDown:c,labelledBy:d,...u}=n,p=li(),f=ti(s);return S.useEffect(()=>{p.store.setListId(f)},[f]),y.jsx(Se,{ref:r,...p.getStyles("options",{className:a,style:i,classNames:o,styles:l}),...u,id:f,role:"listbox","aria-labelledby":d,onMouseDown:g=>{g.preventDefault(),c?.(g)}})});Zw.classes=ii,Zw.displayName="@mantine/core/ComboboxOptions";const xAe={withAriaAttributes:!0,withKeyboardNavigation:!0},N9=ot((e,r)=>{const n=Me("ComboboxSearch",xAe,e),{classNames:o,styles:a,unstyled:i,vars:l,withAriaAttributes:s,onKeyDown:c,withKeyboardNavigation:d,size:u,...p}=n,f=li(),g=f.getStyles("search"),v=T9({targetType:"input",withAriaAttributes:s,withKeyboardNavigation:d,withExpandedAttribute:!1,onKeyDown:c,autoComplete:"off"});return y.jsx(Ca,{ref:$r(r,f.store.searchRef),classNames:[{input:g.className},o],styles:[{input:g.style},a],size:u||f.size,...v,...p,__staticSelector:"Combobox"})});N9.classes=ii,N9.displayName="@mantine/core/ComboboxSearch";const wAe={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},P9=ot((e,r)=>{const{children:n,refProp:o,withKeyboardNavigation:a,withAriaAttributes:i,withExpandedAttribute:l,targetType:s,autoComplete:c,...d}=Me("ComboboxTarget",wAe,e);if(!Ki(n))throw new Error("Combobox.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const u=li(),p=T9({targetType:s,withAriaAttributes:i,withKeyboardNavigation:a,withExpandedAttribute:l,onKeyDown:n.props.onKeyDown,autoComplete:c}),f=S.cloneElement(n,{...p,...d});return y.jsx(br.Target,{ref:$r(r,u.store.targetRef),children:f})});P9.displayName="@mantine/core/ComboboxTarget";function kAe(e,r,n){for(let o=e-1;o>=0;o-=1)if(!r[o].hasAttribute("data-combobox-disabled"))return o;if(n){for(let o=r.length-1;o>-1;o-=1)if(!r[o].hasAttribute("data-combobox-disabled"))return o}return e}function _Ae(e,r,n){for(let o=e+1;o{s||(c(!0),a?.(B))},[c,a,s]),k=S.useCallback((B="unknown")=>{s&&(c(!1),o?.(B))},[c,o,s]),C=S.useCallback((B="unknown")=>{s?k(B):x(B)},[k,x,s]),_=S.useCallback(()=>{const B=ld(f.current),F=cw(`#${d.current} [data-combobox-selected]`,B);F?.removeAttribute("data-combobox-selected"),F?.removeAttribute("aria-selected")},[]),$=S.useCallback(B=>{const F=ld(f.current),q=cw(`#${d.current}`,F),G=q?id("[data-combobox-option]",q):null;if(!G)return null;const U=B>=G.length?0:B<0?G.length-1:B;return u.current=U,G?.[U]&&!G[U].hasAttribute("data-combobox-disabled")?(_(),G[U].setAttribute("data-combobox-selected","true"),G[U].setAttribute("aria-selected","true"),G[U].scrollIntoView({block:"nearest",behavior:l}),G[U].id):null},[l,_]),z=S.useCallback(()=>{const B=ld(f.current),F=cw(`#${d.current} [data-combobox-active]`,B);if(F){const q=id(`#${d.current} [data-combobox-option]`,B).findIndex(G=>G===F);return $(q)}return $(0)},[$]),j=S.useCallback(()=>{const B=ld(f.current),F=id(`#${d.current} [data-combobox-option]`,B);return $(_Ae(u.current,F,i))},[$,i]),A=S.useCallback(()=>{const B=ld(f.current),F=id(`#${d.current} [data-combobox-option]`,B);return $(kAe(u.current,F,i))},[$,i]),R=S.useCallback(()=>{const B=ld(f.current),F=id(`#${d.current} [data-combobox-option]`,B);return $(SAe(F))},[$]),T=S.useCallback((B="selected",F)=>{w.current=window.setTimeout(()=>{const q=ld(f.current),G=id(`#${d.current} [data-combobox-option]`,q),U=G.findIndex(Y=>Y.hasAttribute(`data-combobox-${B}`));u.current=U,F?.scrollIntoView&&G[U]?.scrollIntoView({block:"nearest",behavior:l})},0)},[]),O=S.useCallback(()=>{u.current=-1,_()},[_]),P=S.useCallback(()=>{const B=ld(f.current);id(`#${d.current} [data-combobox-option]`,B)?.[u.current]?.click()},[]),L=S.useCallback(B=>{d.current=B},[]),H=S.useCallback(()=>{g.current=window.setTimeout(()=>p.current?.focus(),0)},[]),M=S.useCallback(()=>{v.current=window.setTimeout(()=>f.current?.focus(),0)},[]),V=S.useCallback(()=>u.current,[]);return S.useEffect(()=>()=>{window.clearTimeout(g.current),window.clearTimeout(v.current),window.clearTimeout(w.current)},[]),{dropdownOpened:s,openDropdown:x,closeDropdown:k,toggleDropdown:C,selectedOptionIndex:u.current,getSelectedOptionIndex:V,selectOption:$,selectFirstOption:R,selectActiveOption:z,selectNextOption:j,selectPreviousOption:A,resetSelectedOption:O,updateSelectedOptionIndex:T,listId:d.current,setListId:L,clickSelectedOption:P,searchRef:p,focusSearchInput:H,targetRef:f,focusTarget:M}}const EAe={keepMounted:!0,withinPortal:!0,resetSelectionOnOptionHover:!1,width:"target",transitionProps:{transition:"fade",duration:0},size:"sm"},CAe=(e,{size:r,dropdownPadding:n})=>({options:{"--combobox-option-fz":Eo(r),"--combobox-option-padding":dr(r,"combobox-option-padding")},dropdown:{"--combobox-padding":n===void 0?void 0:$e(n),"--combobox-option-fz":Eo(r),"--combobox-option-padding":dr(r,"combobox-option-padding")}});function eo(e){const r=Me("Combobox",EAe,e),{classNames:n,styles:o,unstyled:a,children:i,store:l,vars:s,onOptionSubmit:c,onClose:d,size:u,dropdownPadding:p,resetSelectionOnOptionHover:f,__staticSelector:g,readOnly:v,attributes:w,...x}=r,k=IU(),C=l||k,_=kt({name:g||"Combobox",classes:ii,props:r,classNames:n,styles:o,unstyled:a,attributes:w,vars:s,varsResolver:CAe}),$=()=>{d?.(),C.closeDropdown()};return y.jsx(yAe,{value:{getStyles:_,store:C,onOptionSubmit:c,size:u,resetSelectionOnOptionHover:f,readOnly:v},children:y.jsx(br,{opened:C.dropdownOpened,preventPositionChangeWhenVisible:!0,...x,onChange:z=>!z&&$(),withRoles:!1,unstyled:a,children:i})})}const $Ae=e=>e;eo.extend=$Ae,eo.classes=ii,eo.displayName="@mantine/core/Combobox",eo.Target=P9,eo.Dropdown=Xw,eo.Options=Zw,eo.Option=ay,eo.Search=N9,eo.Empty=oy,eo.Chevron=j9,eo.Footer=A9,eo.Header=M9,eo.EventsTarget=BU,eo.DropdownTarget=PU,eo.Group=D9,eo.ClearButton=NU,eo.HiddenInput=OU;function LU({size:e,style:r,...n}){const o=e!==void 0?{width:$e(e),height:$e(e),...r}:r;return y.jsx("svg",{viewBox:"0 0 10 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:o,"aria-hidden":!0,...n,children:y.jsx("path",{d:"M4 4.586L1.707 2.293A1 1 0 1 0 .293 3.707l3 3a.997.997 0 0 0 1.414 0l5-5A1 1 0 1 0 8.293.293L4 4.586z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}var FU={root:"m_347db0ec","root--dot":"m_fbd81e3d",label:"m_5add502a",section:"m_91fdda9b"};const zAe=(e,{radius:r,color:n,gradient:o,variant:a,size:i,autoContrast:l,circle:s})=>{const c=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:o,variant:a||"filled",autoContrast:l});return{root:{"--badge-height":dr(i,"badge-height"),"--badge-padding-x":dr(i,"badge-padding-x"),"--badge-fz":dr(i,"badge-fz"),"--badge-radius":s||r===void 0?void 0:wn(r),"--badge-bg":n||a?c.background:void 0,"--badge-color":n||a?c.color:void 0,"--badge-bd":n||a?c.border:void 0,"--badge-dot-color":a==="dot"?_a(n,e):void 0}}},Ks=Jn((e,r)=>{const n=Me("Badge",null,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,vars:c,radius:d,color:u,gradient:p,leftSection:f,rightSection:g,children:v,variant:w,fullWidth:x,autoContrast:k,circle:C,mod:_,attributes:$,...z}=n,j=kt({name:"Badge",props:n,classes:FU,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:$,vars:c,varsResolver:zAe});return y.jsxs(Se,{variant:w,mod:[{block:x,circle:C,"with-right-section":!!g,"with-left-section":!!f},_],...j("root",{variant:w}),ref:r,...z,children:[f&&y.jsx("span",{...j("section"),"data-position":"left",children:f}),y.jsx("span",{...j("label"),children:v}),g&&y.jsx("span",{...j("section"),"data-position":"right",children:g})]})});Ks.classes=FU,Ks.displayName="@mantine/core/Badge";var VU={root:"m_8b3717df",breadcrumb:"m_f678d540",separator:"m_3b8f2208"};const RAe={separator:"/"},jAe=(e,{separatorMargin:r})=>({root:{"--bc-separator-margin":Hs(r)}}),Kw=ot((e,r)=>{const n=Me("Breadcrumbs",RAe,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,vars:c,children:d,separator:u,separatorMargin:p,attributes:f,...g}=n,v=kt({name:"Breadcrumbs",classes:VU,props:n,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:f,vars:c,varsResolver:jAe}),w=S.Children.toArray(d).reduce((x,k,C,_)=>{const $=Ki(k)?S.cloneElement(k,{...v("breadcrumb",{className:k.props?.className}),key:C}):S.createElement("div",{...v("breadcrumb"),key:C},k);return x.push($),C!==_.length-1&&x.push(S.createElement(Se,{...v("separator"),key:`separator-${C}`},u)),x},[]);return y.jsx(Se,{ref:r,...v("root"),...g,children:w})});Kw.classes=VU,Kw.displayName="@mantine/core/Breadcrumbs";var Tf={root:"m_77c9d27d",inner:"m_80f1301b",label:"m_811560b9",section:"m_a74036a",loader:"m_a25b86ee",group:"m_80d6d844",groupSection:"m_70be2a01"};const qU={orientation:"horizontal"},TAe=(e,{borderWidth:r})=>({group:{"--button-border-width":$e(r)}}),B9=ot((e,r)=>{const n=Me("ButtonGroup",qU,e),{className:o,style:a,classNames:i,styles:l,unstyled:s,orientation:c,vars:d,borderWidth:u,variant:p,mod:f,attributes:g,...v}=Me("ButtonGroup",qU,e),w=kt({name:"ButtonGroup",props:n,classes:Tf,className:o,style:a,classNames:i,styles:l,unstyled:s,attributes:g,vars:d,varsResolver:TAe,rootSelector:"group"});return y.jsx(Se,{...w("group"),ref:r,variant:p,mod:[{"data-orientation":c},f],role:"group",...v})});B9.classes=Tf,B9.displayName="@mantine/core/ButtonGroup";const AAe=(e,{radius:r,color:n,gradient:o,variant:a,autoContrast:i,size:l})=>{const s=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:o,variant:a||"filled",autoContrast:i});return{groupSection:{"--section-height":dr(l,"section-height"),"--section-padding-x":dr(l,"section-padding-x"),"--section-fz":l?.includes("compact")?Eo(l.replace("compact-","")):Eo(l),"--section-radius":r===void 0?void 0:wn(r),"--section-bg":n||a?s.background:void 0,"--section-color":s.color,"--section-bd":n||a?s.border:void 0}}},O9=ot((e,r)=>{const n=Me("ButtonGroupSection",null,e),{className:o,style:a,classNames:i,styles:l,unstyled:s,vars:c,variant:d,gradient:u,radius:p,autoContrast:f,attributes:g,...v}=n,w=kt({name:"ButtonGroupSection",props:n,classes:Tf,className:o,style:a,classNames:i,styles:l,unstyled:s,attributes:g,vars:c,varsResolver:AAe,rootSelector:"groupSection"});return y.jsx(Se,{...w("groupSection"),ref:r,variant:d,...v})});O9.classes=Tf,O9.displayName="@mantine/core/ButtonGroupSection";const DAe={in:{opacity:1,transform:`translate(-50%, calc(-50% + ${$e(1)}))`},out:{opacity:0,transform:"translate(-50%, -200%)"},common:{transformOrigin:"center"},transitionProperty:"transform, opacity"},MAe=(e,{radius:r,color:n,gradient:o,variant:a,size:i,justify:l,autoContrast:s})=>{const c=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:o,variant:a||"filled",autoContrast:s});return{root:{"--button-justify":l,"--button-height":dr(i,"button-height"),"--button-padding-x":dr(i,"button-padding-x"),"--button-fz":i?.includes("compact")?Eo(i.replace("compact-","")):Eo(i),"--button-radius":r===void 0?void 0:wn(r),"--button-bg":n||a?c.background:void 0,"--button-hover":n||a?c.hover:void 0,"--button-color":c.color,"--button-bd":n||a?c.border:void 0,"--button-hover-color":n||a?c.hoverColor:void 0}}},Vn=Jn((e,r)=>{const n=Me("Button",null,e),{style:o,vars:a,className:i,color:l,disabled:s,children:c,leftSection:d,rightSection:u,fullWidth:p,variant:f,radius:g,loading:v,loaderProps:w,gradient:x,classNames:k,styles:C,unstyled:_,"data-disabled":$,autoContrast:z,mod:j,attributes:A,...R}=n,T=kt({name:"Button",props:n,classes:Tf,className:i,style:o,classNames:k,styles:C,unstyled:_,attributes:A,vars:a,varsResolver:MAe}),O=!!d,P=!!u;return y.jsxs(pr,{ref:r,...T("root",{active:!s&&!v&&!$}),unstyled:_,variant:f,disabled:s||v,mod:[{disabled:s||$,loading:v,block:p,"with-left-section":O,"with-right-section":P},j],...R,children:[typeof v=="boolean"&&y.jsx(pd,{mounted:v,transition:DAe,duration:150,children:L=>y.jsx(Se,{component:"span",...T("loader",{style:L}),"aria-hidden":!0,children:y.jsx(Rf,{color:"var(--button-color)",size:"calc(var(--button-height) / 1.8)",...w})})}),y.jsxs("span",{...T("inner"),children:[d&&y.jsx(Se,{component:"span",...T("section"),mod:{position:"left"},children:d}),y.jsx(Se,{component:"span",mod:{loading:v},...T("label"),children:c}),u&&y.jsx(Se,{component:"span",...T("section"),mod:{position:"right"},children:u})]})]})});Vn.classes=Tf,Vn.displayName="@mantine/core/Button",Vn.Group=B9,Vn.GroupSection=O9;const[NAe,PAe]=ei("Card component was not found in tree");var I9={root:"m_e615b15f",section:"m_599a2148"};const Qw=Jn((e,r)=>{const n=Me("CardSection",null,e),{classNames:o,className:a,style:i,styles:l,vars:s,withBorder:c,inheritPadding:d,mod:u,...p}=n,f=PAe();return y.jsx(Se,{ref:r,mod:[{"with-border":c,"inherit-padding":d},u],...f.getStyles("section",{className:a,style:i,styles:l,classNames:o}),...p})});Qw.classes=I9,Qw.displayName="@mantine/core/CardSection";const BAe=(e,{padding:r})=>({root:{"--card-padding":Hs(r)}}),Jw=Jn((e,r)=>{const n=Me("Card",null,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,vars:c,children:d,padding:u,attributes:p,...f}=n,g=kt({name:"Card",props:n,classes:I9,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:p,vars:c,varsResolver:BAe}),v=S.Children.toArray(d),w=v.map((x,k)=>typeof x=="object"&&x&&"type"in x&&x.type===Qw?S.cloneElement(x,{"data-first-section":k===0||void 0,"data-last-section":k===v.length-1||void 0}):x);return y.jsx(NAe,{value:{getStyles:g},children:y.jsx($f,{ref:r,unstyled:s,...g("root"),...f,children:w})})});Jw.classes=I9,Jw.displayName="@mantine/core/Card",Jw.Section=Qw;var HU={root:"m_de3d2490",colorOverlay:"m_862f3d1b",shadowOverlay:"m_98ae7f22",alphaOverlay:"m_95709ac0",childrenOverlay:"m_93e74e3"};const UU={withShadow:!0},OAe=(e,{radius:r,size:n})=>({root:{"--cs-radius":r===void 0?void 0:wn(r),"--cs-size":$e(n)}}),iy=Jn((e,r)=>{const n=Me("ColorSwatch",UU,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,vars:c,color:d,size:u,radius:p,withShadow:f,children:g,variant:v,attributes:w,...x}=Me("ColorSwatch",UU,n),k=kt({name:"ColorSwatch",props:n,classes:HU,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:w,vars:c,varsResolver:OAe});return y.jsxs(Se,{ref:r,variant:v,size:u,...k("root",{focusable:!0}),...x,children:[y.jsx("span",{...k("alphaOverlay")}),f&&y.jsx("span",{...k("shadowOverlay")}),y.jsx("span",{...k("colorOverlay",{style:{backgroundColor:d}})}),y.jsx("span",{...k("childrenOverlay"),children:g})]})});iy.classes=HU,iy.displayName="@mantine/core/ColorSwatch";const IAe={timeout:1e3};function WU(e){const{children:r,timeout:n,value:o,...a}=Me("CopyButton",IAe,e),i=M$e({timeout:n});return y.jsx(y.Fragment,{children:r({copy:()=>i.copy(o),copied:i.copied,...a})})}WU.displayName="@mantine/core/CopyButton";var GU={root:"m_3eebeb36",label:"m_9e365f20"};const LAe={orientation:"horizontal"},FAe=(e,{color:r,variant:n,size:o})=>({root:{"--divider-color":r?_a(r,e):void 0,"--divider-border-style":n,"--divider-size":dr(o,"divider-size")}}),tp=ot((e,r)=>{const n=Me("Divider",LAe,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,vars:c,color:d,orientation:u,label:p,labelPosition:f,mod:g,attributes:v,...w}=n,x=kt({name:"Divider",classes:GU,props:n,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:v,vars:c,varsResolver:FAe});return y.jsx(Se,{ref:r,mod:[{orientation:u,"with-label":!!p},g],...x("root"),...w,role:"separator",children:p&&y.jsx(Se,{component:"span",mod:{position:f},...x("label"),children:p})})});tp.classes=GU,tp.displayName="@mantine/core/Divider";const[YU,XU]=ei("Grid component was not found in tree"),L9=(e,r)=>e==="content"?"auto":e==="auto"?"0rem":e?`${100/(r/e)}%`:void 0,ZU=(e,r,n)=>n||e==="auto"?"100%":e==="content"?"unset":L9(e,r),KU=(e,r)=>{if(e)return e==="auto"||r?"1":"auto"},QU=(e,r)=>e===0?"0":e?`${100/(r/e)}%`:void 0;function VAe({span:e,order:r,offset:n,selector:o}){const a=lo(),i=XU(),l=i.breakpoints||a.breakpoints,s=X1(e)===void 0?12:X1(e),c=ff({"--col-order":X1(r)?.toString(),"--col-flex-grow":KU(s,i.grow),"--col-flex-basis":L9(s,i.columns),"--col-width":s==="content"?"auto":void 0,"--col-max-width":ZU(s,i.columns,i.grow),"--col-offset":QU(X1(n),i.columns)}),d=So(l).reduce((p,f)=>(p[f]||(p[f]={}),typeof r=="object"&&r[f]!==void 0&&(p[f]["--col-order"]=r[f]?.toString()),typeof e=="object"&&e[f]!==void 0&&(p[f]["--col-flex-grow"]=KU(e[f],i.grow),p[f]["--col-flex-basis"]=L9(e[f],i.columns),p[f]["--col-width"]=e[f]==="content"?"auto":void 0,p[f]["--col-max-width"]=ZU(e[f],i.columns,i.grow)),typeof n=="object"&&n[f]!==void 0&&(p[f]["--col-offset"]=QU(n[f],i.columns)),p),{}),u=fq(So(d),l).filter(p=>So(d[p.value]).length>0).map(p=>({query:i.type==="container"?`mantine-grid (min-width: ${l[p.value]})`:`(min-width: ${l[p.value]})`,styles:d[p.value]}));return y.jsx(gw,{styles:c,media:i.type==="container"?void 0:u,container:i.type==="container"?u:void 0,selector:o})}var F9={container:"m_8478a6da",root:"m_410352e9",inner:"m_dee7bd2f",col:"m_96bdd299"};const qAe={span:12},rp=ot((e,r)=>{const n=Me("GridCol",qAe,e),{classNames:o,className:a,style:i,styles:l,vars:s,span:c,order:d,offset:u,...p}=n,f=XU(),g=yw();return y.jsxs(y.Fragment,{children:[y.jsx(VAe,{selector:`.${g}`,span:c,order:d,offset:u}),y.jsx(Se,{ref:r,...f.getStyles("col",{className:Qi(a,g),style:i,classNames:o,styles:l}),...p})]})});rp.classes=F9,rp.displayName="@mantine/core/GridCol";function JU({gutter:e,selector:r,breakpoints:n,type:o}){const a=lo(),i=n||a.breakpoints,l=ff({"--grid-gutter":Hs(X1(e))}),s=So(i).reduce((d,u)=>(d[u]||(d[u]={}),typeof e=="object"&&e[u]!==void 0&&(d[u]["--grid-gutter"]=Hs(e[u])),d),{}),c=fq(So(s),i).filter(d=>So(s[d.value]).length>0).map(d=>({query:o==="container"?`mantine-grid (min-width: ${i[d.value]})`:`(min-width: ${i[d.value]})`,styles:s[d.value]}));return y.jsx(gw,{styles:l,media:o==="container"?void 0:c,container:o==="container"?c:void 0,selector:r})}const HAe={gutter:"md",grow:!1,columns:12},UAe=(e,{justify:r,align:n,overflow:o})=>({root:{"--grid-justify":r,"--grid-align":n,"--grid-overflow":o}}),ly=ot((e,r)=>{const n=Me("Grid",HAe,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,vars:c,grow:d,gutter:u,columns:p,align:f,justify:g,children:v,breakpoints:w,type:x,attributes:k,...C}=n,_=kt({name:"Grid",classes:F9,props:n,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:k,vars:c,varsResolver:UAe}),$=yw();return x==="container"&&w?y.jsxs(YU,{value:{getStyles:_,grow:d,columns:p,breakpoints:w,type:x},children:[y.jsx(JU,{selector:`.${$}`,...n}),y.jsx("div",{..._("container"),children:y.jsx(Se,{ref:r,..._("root",{className:$}),...C,children:y.jsx("div",{..._("inner"),children:v})})})]}):y.jsxs(YU,{value:{getStyles:_,grow:d,columns:p,breakpoints:w,type:x},children:[y.jsx(JU,{selector:`.${$}`,...n}),y.jsx(Se,{ref:r,..._("root",{className:$}),...C,children:y.jsx("div",{..._("inner"),children:v})})]})});ly.classes=F9,ly.displayName="@mantine/core/Grid",ly.Col=rp;function eW({color:e,theme:r,defaultShade:n}){const o=cd({color:e,theme:r});return o.isThemeColor?o.shade===void 0?`var(--mantine-color-${o.color}-${n})`:`var(${o.variable})`:e}var tW={root:"m_bcb3f3c2"};const WAe={color:"yellow"},GAe=(e,{color:r})=>({root:{"--mark-bg-dark":eW({color:r,theme:e,defaultShade:5}),"--mark-bg-light":eW({color:r,theme:e,defaultShade:2})}}),V9=ot((e,r)=>{const n=Me("Mark",WAe,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,vars:c,color:d,variant:u,attributes:p,...f}=n,g=kt({name:"Mark",props:n,className:a,style:i,classes:tW,classNames:o,styles:l,unstyled:s,attributes:p,vars:c,varsResolver:GAe});return y.jsx(Se,{component:"mark",ref:r,variant:u,...g("root"),...f})});V9.classes=tW,V9.displayName="@mantine/core/Mark";function rW(e){return e.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&")}function YAe(e,r){if(r==null)return[{chunk:e,highlighted:!1}];const n=Array.isArray(r)?r.map(rW):rW(r);if(!(Array.isArray(n)?n.filter(i=>i.trim().length>0).length>0:n.trim()!==""))return[{chunk:e,highlighted:!1}];const o=typeof n=="string"?n.trim():n.filter(i=>i.trim().length!==0).map(i=>i.trim()).sort((i,l)=>l.length-i.length).join("|"),a=new RegExp(`(${o})`,"gi");return e.split(a).map(i=>({chunk:i,highlighted:a.test(i)})).filter(({chunk:i})=>i)}const Qs=Jn((e,r)=>{const{unstyled:n,children:o,highlight:a,highlightStyles:i,color:l,...s}=Me("Highlight",null,e),c=YAe(o,a);return y.jsx(at,{unstyled:n,ref:r,...s,__staticSelector:"Highlight",children:c.map(({chunk:d,highlighted:u},p)=>u?y.jsx(V9,{unstyled:n,color:l,style:i,"data-highlight":d,children:d},p):y.jsx("span",{children:d},p))})});Qs.classes=at.classes,Qs.displayName="@mantine/core/Highlight";const[XAe,nW]=ei("HoverCard component was not found in the tree"),oW=S.createContext(!1),ZAe=oW.Provider,q9=()=>S.useContext(oW);function H9(e){const{children:r,onMouseEnter:n,onMouseLeave:o,...a}=Me("HoverCardDropdown",null,e),i=nW();if(q9()&&i.getFloatingProps&&i.floating){const c=i.getFloatingProps();return y.jsx(br.Dropdown,{ref:i.floating,...c,onMouseEnter:kn(n,c.onMouseEnter),onMouseLeave:kn(o,c.onMouseLeave),...a,children:r})}const l=kn(n,i.openDropdown),s=kn(o,i.closeDropdown);return y.jsx(br.Dropdown,{onMouseEnter:l,onMouseLeave:s,...a,children:r})}H9.displayName="@mantine/core/HoverCardDropdown";const KAe={openDelay:0,closeDelay:0};function U9(e){const{openDelay:r,closeDelay:n,children:o}=Me("HoverCardGroup",KAe,e);return y.jsx(ZAe,{value:!0,children:y.jsx(qH,{delay:{open:r,close:n},children:o})})}U9.displayName="@mantine/core/HoverCardGroup",U9.extend=e=>e;const QAe={refProp:"ref"},W9=S.forwardRef((e,r)=>{const{children:n,refProp:o,eventPropsWrapperName:a,...i}=Me("HoverCardTarget",QAe,e);if(!Ki(n))throw new Error("HoverCard.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const l=nW();if(q9()&&l.getReferenceProps&&l.reference){const u=l.getReferenceProps();return y.jsx(br.Target,{refProp:o,ref:r,...i,children:S.cloneElement(n,a?{[a]:{...u,ref:l.reference}}:{...u,ref:l.reference})})}const s=kn(n.props.onMouseEnter,l.openDropdown),c=kn(n.props.onMouseLeave,l.closeDropdown),d={onMouseEnter:s,onMouseLeave:c};return y.jsx(br.Target,{refProp:o,ref:r,...i,children:S.cloneElement(n,a?{[a]:d}:d)})});W9.displayName="@mantine/core/HoverCardTarget";function JAe(e){const[r,n]=S.useState(e.defaultOpened),o=typeof e.opened=="boolean"?e.opened:r,a=q9(),i=ti(),l=S.useRef(-1),s=S.useRef(-1),c=S.useCallback(()=>{window.clearTimeout(l.current),window.clearTimeout(s.current)},[]),d=S.useCallback(C=>{n(C),C?(g(i),e.onOpen?.()):e.onClose?.()},[i,e.onOpen,e.onClose]),{context:u,refs:p}=Nw({open:o,onOpenChange:d}),{delay:f,setCurrentId:g}=HH(u,{id:i}),{getReferenceProps:v,getFloatingProps:w}=GH([FH(u,{enabled:!0,delay:a?f:{open:e.openDelay,close:e.closeDelay}}),YH(u,{role:"dialog"}),WH(u,{enabled:a})]),x=S.useCallback(()=>{a||(c(),e.openDelay===0||e.openDelay===void 0?d(!0):l.current=window.setTimeout(()=>d(!0),e.openDelay))},[a,c,e.openDelay,d]),k=S.useCallback(()=>{a||(c(),e.closeDelay===0||e.closeDelay===void 0?d(!1):s.current=window.setTimeout(()=>d(!1),e.closeDelay))},[a,c,e.closeDelay,d]);return S.useEffect(()=>()=>c(),[c]),{opened:o,reference:p.setReference,floating:p.setFloating,getReferenceProps:v,getFloatingProps:w,openDropdown:x,closeDropdown:k}}const eDe={openDelay:0,closeDelay:150,initiallyOpened:!1};function Af(e){const{children:r,onOpen:n,onClose:o,openDelay:a,closeDelay:i,initiallyOpened:l,...s}=Me("HoverCard",eDe,e),c=JAe({openDelay:a,closeDelay:i,defaultOpened:l,onOpen:n,onClose:o});return y.jsx(XAe,{value:{openDropdown:c.openDropdown,closeDropdown:c.closeDropdown,getReferenceProps:c.getReferenceProps,getFloatingProps:c.getFloatingProps,reference:c.reference,floating:c.floating},children:y.jsx(br,{...s,opened:c.opened,__staticSelector:"HoverCard",children:r})})}Af.displayName="@mantine/core/HoverCard",Af.Target=W9,Af.Dropdown=H9,Af.Group=U9,Af.extend=e=>e;var tDe=S.useLayoutEffect;const[rDe,fd]=ei("Menu component was not found in the tree");var md={dropdown:"m_dc9b7c9f",label:"m_9bfac126",divider:"m_efdf90cb",item:"m_99ac2aa1",itemLabel:"m_5476e0d3",itemSection:"m_8b75e504",chevron:"m_b85b0bed"};const G9=ot((e,r)=>{const{classNames:n,className:o,style:a,styles:i,vars:l,...s}=Me("MenuDivider",null,e),c=fd();return y.jsx(Se,{ref:r,...c.getStyles("divider",{className:o,style:a,styles:i,classNames:n}),...s})});G9.classes=md,G9.displayName="@mantine/core/MenuDivider";const sy=ot((e,r)=>{const{classNames:n,className:o,style:a,styles:i,vars:l,onMouseEnter:s,onMouseLeave:c,onKeyDown:d,children:u,...p}=Me("MenuDropdown",null,e),f=S.useRef(null),g=fd(),v=kn(d,k=>{(k.key==="ArrowUp"||k.key==="ArrowDown")&&(k.preventDefault(),f.current?.querySelectorAll("[data-menu-item]:not(:disabled)")[0]?.focus())}),w=kn(s,()=>(g.trigger==="hover"||g.trigger==="click-hover")&&g.openDropdown()),x=kn(c,()=>(g.trigger==="hover"||g.trigger==="click-hover")&&g.closeDropdown());return y.jsxs(br.Dropdown,{...p,onMouseEnter:w,onMouseLeave:x,role:"menu","aria-orientation":"vertical",ref:$r(r,f),...g.getStyles("dropdown",{className:o,style:a,styles:i,classNames:n,withStaticClass:!1}),tabIndex:-1,"data-menu-dropdown":!0,onKeyDown:v,children:[g.withInitialFocusPlaceholder&&y.jsx("div",{tabIndex:-1,"data-autofocus":!0,"data-mantine-stop-propagation":!0,style:{outline:0}}),u]})});sy.classes=md,sy.displayName="@mantine/core/MenuDropdown";const[nDe,e3]=G1(),cy=Jn((e,r)=>{const{classNames:n,className:o,style:a,styles:i,vars:l,color:s,closeMenuOnClick:c,leftSection:d,rightSection:u,children:p,disabled:f,"data-disabled":g,...v}=Me("MenuItem",null,e),w=fd(),x=e3(),k=lo(),{dir:C}=dd(),_=S.useRef(null),$=v,z=kn($.onClick,()=>{g||(typeof c=="boolean"?c&&w.closeDropdownImmediately():w.closeOnItemClick&&w.closeDropdownImmediately())}),j=s?k.variantColorResolver({color:s,theme:k,variant:"light"}):void 0,A=s?cd({color:s,theme:k}):null,R=kn($.onKeyDown,T=>{T.key==="ArrowLeft"&&x&&(x.close(),x.focusParentItem())});return y.jsxs(pr,{onMouseDown:T=>T.preventDefault(),...v,unstyled:w.unstyled,tabIndex:w.menuItemTabIndex,...w.getStyles("item",{className:o,style:a,styles:i,classNames:n}),ref:$r(_,r),role:"menuitem",disabled:f,"data-menu-item":!0,"data-disabled":f||g||void 0,"data-mantine-stop-propagation":!0,onClick:z,onKeyDown:Y1({siblingSelector:"[data-menu-item]:not([data-disabled])",parentSelector:"[data-menu-dropdown]",activateOnFocus:!1,loop:w.loop,dir:C,orientation:"vertical",onKeyDown:R}),__vars:{"--menu-item-color":A?.isThemeColor&&A?.shade===void 0?`var(--mantine-color-${A.color}-6)`:j?.color,"--menu-item-hover":j?.hover},children:[d&&y.jsx("div",{...w.getStyles("itemSection",{styles:i,classNames:n}),"data-position":"left",children:d}),p&&y.jsx("div",{...w.getStyles("itemLabel",{styles:i,classNames:n}),children:p}),u&&y.jsx("div",{...w.getStyles("itemSection",{styles:i,classNames:n}),"data-position":"right",children:u})]})});cy.classes=md,cy.displayName="@mantine/core/MenuItem";const Y9=ot((e,r)=>{const{classNames:n,className:o,style:a,styles:i,vars:l,...s}=Me("MenuLabel",null,e),c=fd();return y.jsx(Se,{ref:r,...c.getStyles("label",{className:o,style:a,styles:i,classNames:n}),...s})});Y9.classes=md,Y9.displayName="@mantine/core/MenuLabel";const X9=ot((e,r)=>{const{classNames:n,className:o,style:a,styles:i,vars:l,onMouseEnter:s,onMouseLeave:c,onKeyDown:d,children:u,...p}=Me("MenuSubDropdown",null,e),f=S.useRef(null),g=fd(),v=e3(),w=kn(s,v?.open),x=kn(c,v?.close);return y.jsx(br.Dropdown,{...p,onMouseEnter:w,onMouseLeave:x,role:"menu","aria-orientation":"vertical",ref:$r(r,f),...g.getStyles("dropdown",{className:o,style:a,styles:i,classNames:n,withStaticClass:!1}),tabIndex:-1,"data-menu-dropdown":!0,children:u})});X9.classes=md,X9.displayName="@mantine/core/MenuSubDropdown";const Z9=Jn((e,r)=>{const{classNames:n,className:o,style:a,styles:i,vars:l,color:s,leftSection:c,rightSection:d,children:u,disabled:p,"data-disabled":f,closeMenuOnClick:g,...v}=Me("MenuSubItem",null,e),w=fd(),x=e3(),k=lo(),{dir:C}=dd(),_=S.useRef(null),$=v,z=s?k.variantColorResolver({color:s,theme:k,variant:"light"}):void 0,j=s?cd({color:s,theme:k}):null,A=kn($.onKeyDown,P=>{P.key==="ArrowRight"&&(x?.open(),x?.focusFirstItem()),P.key==="ArrowLeft"&&x?.parentContext&&(x.parentContext.close(),x.parentContext.focusParentItem())}),R=kn($.onClick,()=>{!f&&g&&w.closeDropdownImmediately()}),T=kn($.onMouseEnter,x?.open),O=kn($.onMouseLeave,x?.close);return y.jsxs(pr,{onMouseDown:P=>P.preventDefault(),...v,unstyled:w.unstyled,tabIndex:w.menuItemTabIndex,...w.getStyles("item",{className:o,style:a,styles:i,classNames:n}),ref:$r(_,r),role:"menuitem",disabled:p,"data-menu-item":!0,"data-sub-menu-item":!0,"data-disabled":p||f||void 0,"data-mantine-stop-propagation":!0,onMouseEnter:T,onMouseLeave:O,onClick:R,onKeyDown:Y1({siblingSelector:"[data-menu-item]:not([data-disabled])",parentSelector:"[data-menu-dropdown]",activateOnFocus:!1,loop:w.loop,dir:C,orientation:"vertical",onKeyDown:A}),__vars:{"--menu-item-color":j?.isThemeColor&&j?.shade===void 0?`var(--mantine-color-${j.color}-6)`:z?.color,"--menu-item-hover":z?.hover},children:[c&&y.jsx("div",{...w.getStyles("itemSection",{styles:i,classNames:n}),"data-position":"left",children:c}),u&&y.jsx("div",{...w.getStyles("itemLabel",{styles:i,classNames:n}),children:u}),y.jsx("div",{...w.getStyles("itemSection",{styles:i,classNames:n}),"data-position":"right",children:d||y.jsx(z9,{...w.getStyles("chevron"),size:14})})]})});Z9.classes=md,Z9.displayName="@mantine/core/MenuSubItem";function aW({children:e,refProp:r}){if(!Ki(e))throw new Error("Menu.Sub.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");return fd(),y.jsx(br.Target,{refProp:r,popupType:"menu",children:e})}aW.displayName="@mantine/core/MenuSubTarget";const oDe={offset:0,position:"right-start",transitionProps:{duration:0},openDelay:0,middlewares:{shift:{crossAxis:!0}}};function Df(e){const{children:r,closeDelay:n,openDelay:o,...a}=Me("MenuSub",oDe,e),i=ti(),[l,{open:s,close:c}]=lze(!1),d=e3(),{openDropdown:u,closeDropdown:p}=TU({open:s,close:c,closeDelay:n,openDelay:o});return y.jsx(nDe,{value:{opened:l,close:p,open:u,focusFirstItem:()=>window.setTimeout(()=>{document.getElementById(`${i}-dropdown`)?.querySelectorAll("[data-menu-item]:not([data-disabled])")[0]?.focus()},16),focusParentItem:()=>window.setTimeout(()=>{document.getElementById(`${i}-target`)?.focus()},16),parentContext:d},children:y.jsx(br,{opened:l,withinPortal:!1,withArrow:!1,id:i,...a,children:r})})}Df.extend=e=>e,Df.displayName="@mantine/core/MenuSub",Df.Target=aW,Df.Dropdown=X9,Df.Item=Z9;const aDe={refProp:"ref"},t3=S.forwardRef((e,r)=>{const{children:n,refProp:o,...a}=Me("MenuTarget",aDe,e);if(!Ki(n))throw new Error("Menu.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const i=fd(),l=n.props,s=kn(l.onClick,()=>{i.trigger==="click"?i.toggleDropdown():i.trigger==="click-hover"&&(i.setOpenedViaClick(!0),i.opened||i.openDropdown())}),c=kn(l.onMouseEnter,()=>(i.trigger==="hover"||i.trigger==="click-hover")&&i.openDropdown()),d=kn(l.onMouseLeave,()=>{(i.trigger==="hover"||i.trigger==="click-hover"&&!i.openedViaClick)&&i.closeDropdown()});return y.jsx(br.Target,{refProp:o,popupType:"menu",ref:r,...a,children:S.cloneElement(n,{onClick:s,onMouseEnter:c,onMouseLeave:d,"data-expanded":i.opened?!0:void 0})})});t3.displayName="@mantine/core/MenuTarget";const iDe={trapFocus:!0,closeOnItemClick:!0,withInitialFocusPlaceholder:!0,clickOutsideEvents:["mousedown","touchstart","keydown"],loop:!0,trigger:"click",openDelay:0,closeDelay:100,menuItemTabIndex:-1};function tn(e){const r=Me("Menu",iDe,e),{children:n,onOpen:o,onClose:a,opened:i,defaultOpened:l,trapFocus:s,onChange:c,closeOnItemClick:d,loop:u,closeOnEscape:p,trigger:f,openDelay:g,closeDelay:v,classNames:w,styles:x,unstyled:k,variant:C,vars:_,menuItemTabIndex:$,keepMounted:z,withInitialFocusPlaceholder:j,attributes:A,...R}=r,T=kt({name:"Menu",classes:md,props:r,classNames:w,styles:x,unstyled:k,attributes:A}),[O,P]=Us({value:i,defaultValue:l,finalValue:!1,onChange:c}),[L,H]=S.useState(!1),M=()=>{P(!1),H(!1),O&&a?.()},V=()=>{P(!0),!O&&o?.()},B=()=>{O?M():V()},{openDropdown:F,closeDropdown:q}=TU({open:V,close:M,closeDelay:v,openDelay:g}),G=Z=>T$e("[data-menu-item]","[data-menu-dropdown]",Z),{resolvedClassNames:U,resolvedStyles:Y}=H7({classNames:w,styles:x,props:r});return y.jsx(rDe,{value:{getStyles:T,opened:O,toggleDropdown:B,getItemIndex:G,openedViaClick:L,setOpenedViaClick:H,closeOnItemClick:d,closeDropdown:f==="click"?M:q,openDropdown:f==="click"?V:F,closeDropdownImmediately:M,loop:u,trigger:f,unstyled:k,menuItemTabIndex:$,withInitialFocusPlaceholder:j},children:y.jsx(br,{...R,opened:O,onChange:B,defaultOpened:l,trapFocus:z?!1:s,closeOnEscape:p,__staticSelector:"Menu",classNames:U,styles:Y,unstyled:k,variant:C,keepMounted:z,children:n})})}tn.extend=e=>e,tn.withProps=SRe(tn),tn.classes=md,tn.displayName="@mantine/core/Menu",tn.Item=cy,tn.Label=Y9,tn.Dropdown=sy,tn.Target=t3,tn.Divider=G9,tn.Sub=Df;const[zxt,iW]=G1(),[lDe,sDe]=G1();var r3={root:"m_7cda1cd6","root--default":"m_44da308b","root--contrast":"m_e3a01f8",label:"m_1e0e6180",remove:"m_ae386778",group:"m_1dcfd90b"};const cDe=(e,{gap:r},{size:n})=>({group:{"--pg-gap":r!==void 0?dr(r):dr(n,"pg-gap")}}),K9=ot((e,r)=>{const n=Me("PillGroup",null,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,vars:c,size:d,disabled:u,attributes:p,...f}=n,g=iW()?.size||d||void 0,v=kt({name:"PillGroup",classes:r3,props:n,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:p,vars:c,varsResolver:cDe,stylesCtx:{size:g},rootSelector:"group"});return y.jsx(lDe,{value:{size:g,disabled:u},children:y.jsx(Se,{ref:r,size:g,...v("group"),...f})})});K9.classes=r3,K9.displayName="@mantine/core/PillGroup";const dDe={variant:"default"},uDe=(e,{radius:r},{size:n})=>({root:{"--pill-fz":dr(n,"pill-fz"),"--pill-height":dr(n,"pill-height"),"--pill-radius":r===void 0?void 0:wn(r)}}),n3=ot((e,r)=>{const n=Me("Pill",dDe,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,vars:c,variant:d,children:u,withRemoveButton:p,onRemove:f,removeButtonProps:g,radius:v,size:w,disabled:x,mod:k,attributes:C,..._}=n,$=sDe(),z=iW(),j=w||$?.size||void 0,A=z?.variant==="filled"?"contrast":d||"default",R=kt({name:"Pill",classes:r3,props:n,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:C,vars:c,varsResolver:uDe,stylesCtx:{size:j}});return y.jsxs(Se,{component:"span",ref:r,variant:A,size:j,...R("root",{variant:A}),mod:[{"with-remove":p&&!x,disabled:x||$?.disabled},k],..._,children:[y.jsx("span",{...R("label"),children:u}),p&&y.jsx(ep,{variant:"transparent",radius:v,tabIndex:-1,"aria-hidden":!0,unstyled:s,...g,...R("remove",{className:g?.className,style:g?.style}),onMouseDown:T=>{T.preventDefault(),T.stopPropagation(),g?.onMouseDown?.(T)},onClick:T=>{T.stopPropagation(),f?.(),g?.onClick?.(T)}})]})});n3.classes=r3,n3.displayName="@mantine/core/Pill",n3.Group=K9;var lW={root:"m_f0824112",description:"m_57492dcc",section:"m_690090b5",label:"m_1f6ac4c4",body:"m_f07af9d2",children:"m_e17b862f",chevron:"m_1fd8a00b"};const pDe=(e,{variant:r,color:n,childrenOffset:o,autoContrast:a})=>{const i=e.variantColorResolver({color:n||e.primaryColor,theme:e,variant:r||"light",autoContrast:a});return{root:{"--nl-bg":n||r?i.background:void 0,"--nl-hover":n||r?i.hover:void 0,"--nl-color":n||r?i.color:void 0},children:{"--nl-offset":Hs(o)}}},Q9=Jn((e,r)=>{const n=Me("NavLink",null,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,vars:c,opened:d,defaultOpened:u,onChange:p,children:f,active:g,disabled:v,leftSection:w,rightSection:x,label:k,description:C,disableRightSectionRotation:_,noWrap:$,childrenOffset:z,autoContrast:j,mod:A,attributes:R,onClick:T,onKeyDown:O,...P}=n,L=kt({name:"NavLink",props:n,classes:lW,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:R,vars:c,varsResolver:pDe}),[H,M]=Us({value:d,defaultValue:u,finalValue:!1,onChange:p}),V=!!f,B=F=>{T?.(F),V&&(F.preventDefault(),M(!H))};return y.jsxs(y.Fragment,{children:[y.jsxs(pr,{...L("root"),component:"a",ref:r,onClick:B,onKeyDown:F=>{O?.(F),F.nativeEvent.code==="Space"&&V&&(F.preventDefault(),M(!H))},unstyled:s,mod:[{disabled:v,active:g,expanded:H},A],...P,children:[w&&y.jsx(Se,{component:"span",...L("section"),mod:{position:"left"},children:w}),y.jsxs(Se,{...L("body"),mod:{"no-wrap":$},children:[y.jsx(Se,{component:"span",...L("label"),children:k}),y.jsx(Se,{component:"span",mod:{active:g},...L("description"),children:C})]}),(V||x!==void 0)&&y.jsx(Se,{...L("section"),component:"span",mod:{rotate:H&&!_,position:"right"},children:V?x!==void 0?x:y.jsx(z9,{...L("chevron")}):x})]}),V&&y.jsx(Jq,{in:H,...L("collapse"),children:y.jsx("div",{...L("children"),children:f})})]})});Q9.classes=lW,Q9.displayName="@mantine/core/NavLink";var sW={root:"m_a513464",icon:"m_a4ceffb",loader:"m_b0920b15",body:"m_a49ed24",title:"m_3feedf16",description:"m_3d733a3a",closeButton:"m_919a4d88"};const hDe={withCloseButton:!0},fDe=(e,{radius:r,color:n})=>({root:{"--notification-radius":r===void 0?void 0:wn(r),"--notification-color":n?_a(n,e):void 0}}),dy=ot((e,r)=>{const n=Me("Notification",hDe,e),{className:o,color:a,radius:i,loading:l,withCloseButton:s,withBorder:c,title:d,icon:u,children:p,onClose:f,closeButtonProps:g,classNames:v,style:w,styles:x,unstyled:k,variant:C,vars:_,mod:$,loaderProps:z,role:j,attributes:A,...R}=n,T=kt({name:"Notification",classes:sW,props:n,className:o,style:w,classNames:v,styles:x,unstyled:k,attributes:A,vars:_,varsResolver:fDe});return y.jsxs(Se,{...T("root"),mod:[{"data-with-icon":!!u||l,"data-with-border":c},$],ref:r,variant:C,role:j||"alert",...R,children:[u&&!l&&y.jsx("div",{...T("icon"),children:u}),l&&y.jsx(Rf,{size:28,color:a,...z,...T("loader")}),y.jsxs("div",{...T("body"),children:[d&&y.jsx("div",{...T("title"),children:d}),y.jsx(Se,{...T("description"),mod:{"data-with-title":!!d},children:p})]}),s&&y.jsx(ep,{iconSize:16,color:"gray",...g,unstyled:k,onClick:f,...T("closeButton")})]})});dy.classes=sW,dy.displayName="@mantine/core/Notification";const mDe={duration:100,transition:"fade"};function cW(e,r){return{...mDe,...r,...e}}function gDe({offset:e,position:r,defaultOpened:n}){const[o,a]=S.useState(n),i=S.useRef(null),{x:l,y:s,elements:c,refs:d,update:u,placement:p}=Nw({placement:r,middleware:[u9({crossAxis:!0,padding:5,rootBoundary:"document"})]}),f=p.includes("right")?e:r.includes("left")?e*-1:0,g=p.includes("bottom")?e:r.includes("top")?e*-1:0,v=S.useCallback(({clientX:w,clientY:x})=>{d.setPositionReference({getBoundingClientRect(){return{width:0,height:0,x:w,y:x,left:w+f,top:x+g,right:w,bottom:x}}})},[c.reference]);return S.useEffect(()=>{if(d.floating.current){const w=i.current;w.addEventListener("mousemove",v);const x=Ys(d.floating.current);return x.forEach(k=>{k.addEventListener("scroll",u)}),()=>{w.removeEventListener("mousemove",v),x.forEach(k=>{k.removeEventListener("scroll",u)})}}},[c.reference,d.floating.current,u,v,o]),{handleMouseMove:v,x:l,y:s,opened:o,setOpened:a,boundaryRef:i,floating:d.setFloating}}var o3={tooltip:"m_1b3c8819",arrow:"m_f898399f"};const yDe={refProp:"ref",withinPortal:!0,offset:10,position:"right",zIndex:aw("popover")},vDe=(e,{radius:r,color:n})=>({tooltip:{"--tooltip-radius":r===void 0?void 0:wn(r),"--tooltip-bg":n?_a(n,e):void 0,"--tooltip-color":n?"var(--mantine-color-white)":void 0}}),J9=ot((e,r)=>{const n=Me("TooltipFloating",yDe,e),{children:o,refProp:a,withinPortal:i,style:l,className:s,classNames:c,styles:d,unstyled:u,radius:p,color:f,label:g,offset:v,position:w,multiline:x,zIndex:k,disabled:C,defaultOpened:_,variant:$,vars:z,portalProps:j,attributes:A,...R}=n,T=lo(),O=kt({name:"TooltipFloating",props:n,classes:o3,className:s,style:l,classNames:c,styles:d,unstyled:u,attributes:A,rootSelector:"tooltip",vars:z,varsResolver:vDe}),{handleMouseMove:P,x:L,y:H,opened:M,boundaryRef:V,floating:B,setOpened:F}=gDe({offset:v,position:w,defaultOpened:_});if(!Ki(o))throw new Error("[@mantine/core] Tooltip.Floating component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported");const q=$r(V,sw(o),r),G=o.props,U=Z=>{G.onMouseEnter?.(Z),P(Z),F(!0)},Y=Z=>{G.onMouseLeave?.(Z),F(!1)};return y.jsxs(y.Fragment,{children:[y.jsx(zf,{...j,withinPortal:i,children:y.jsx(Se,{...R,...O("tooltip",{style:{...X7(l,T),zIndex:k,display:!C&&M?"block":"none",top:(H&&Math.round(H))??"",left:(L&&Math.round(L))??""}}),variant:$,ref:B,mod:{multiline:x},children:g})}),S.cloneElement(o,{...G,[a]:q,onMouseEnter:U,onMouseLeave:Y})]})});J9.classes=o3,J9.displayName="@mantine/core/TooltipFloating";const dW=S.createContext(!1),bDe=dW.Provider,xDe=()=>S.useContext(dW),wDe={openDelay:0,closeDelay:0};function np(e){const{openDelay:r,closeDelay:n,children:o}=Me("TooltipGroup",wDe,e);return y.jsx(bDe,{value:!0,children:y.jsx(qH,{delay:{open:r,close:n},children:o})})}np.displayName="@mantine/core/TooltipGroup",np.extend=e=>e;function kDe(e){if(e===void 0)return{shift:!0,flip:!0};const r={...e};return e.shift===void 0&&(r.shift=!0),e.flip===void 0&&(r.flip=!0),r}function _De(e){const r=kDe(e.middlewares),n=[TH(e.offset)];return r.shift&&n.push(u9(typeof r.shift=="boolean"?{padding:8}:{padding:8,...r.shift})),r.flip&&n.push(typeof r.flip=="boolean"?Dw():Dw(r.flip)),n.push(DH({element:e.arrowRef,padding:e.arrowOffset})),r.inline?n.push(typeof r.inline=="boolean"?ty():ty(r.inline)):e.inline&&n.push(ty()),n}function SDe(e){const[r,n]=S.useState(e.defaultOpened),o=typeof e.opened=="boolean"?e.opened:r,a=xDe(),i=ti(),l=S.useCallback($=>{n($),$&&x(i)},[i]),{x:s,y:c,context:d,refs:u,placement:p,middlewareData:{arrow:{x:f,y:g}={}}}=Nw({strategy:e.strategy,placement:e.position,open:o,onOpenChange:l,middleware:_De(e),whileElementsMounted:jw}),{delay:v,currentId:w,setCurrentId:x}=HH(d,{id:i}),{getReferenceProps:k,getFloatingProps:C}=GH([FH(d,{enabled:e.events?.hover,delay:a?v:{open:e.openDelay,close:e.closeDelay},mouseOnly:!e.events?.touch}),sTe(d,{enabled:e.events?.focus,visibleOnly:!0}),YH(d,{role:"tooltip"}),WH(d,{enabled:typeof e.opened>"u"})]);Xu(()=>{e.onPositionChange?.(p)},[p]);const _=o&&w&&w!==i;return{x:s,y:c,arrowX:f,arrowY:g,reference:u.setReference,floating:u.setFloating,getFloatingProps:C,getReferenceProps:k,isGroupPhase:_,opened:o,placement:p}}const uW={position:"top",refProp:"ref",withinPortal:!0,arrowSize:4,arrowOffset:5,arrowRadius:0,arrowPosition:"side",offset:5,transitionProps:{duration:100,transition:"fade"},events:{hover:!0,focus:!1,touch:!1},zIndex:aw("popover"),positionDependencies:[],middlewares:{flip:!0,shift:!0,inline:!1}},EDe=(e,{radius:r,color:n,variant:o,autoContrast:a})=>{const i=e.variantColorResolver({theme:e,color:n||e.primaryColor,autoContrast:a,variant:o||"filled"});return{tooltip:{"--tooltip-radius":r===void 0?void 0:wn(r),"--tooltip-bg":n?i.background:void 0,"--tooltip-color":n?i.color:void 0}}},_n=ot((e,r)=>{const n=Me("Tooltip",uW,e),{children:o,position:a,refProp:i,label:l,openDelay:s,closeDelay:c,onPositionChange:d,opened:u,defaultOpened:p,withinPortal:f,radius:g,color:v,classNames:w,styles:x,unstyled:k,style:C,className:_,withArrow:$,arrowSize:z,arrowOffset:j,arrowRadius:A,arrowPosition:R,offset:T,transitionProps:O,multiline:P,events:L,zIndex:H,disabled:M,positionDependencies:V,onClick:B,onMouseEnter:F,onMouseLeave:q,inline:G,variant:U,keepMounted:Y,vars:Z,portalProps:I,mod:W,floatingStrategy:K,middlewares:Q,autoContrast:ae,attributes:te,target:re,...ue}=Me("Tooltip",uW,n),{dir:_e}=dd(),ce=S.useRef(null),pe=SDe({position:hU(_e,a),closeDelay:c,openDelay:s,onPositionChange:d,opened:u,defaultOpened:p,events:L,arrowRef:ce,arrowOffset:j,offset:typeof T=="number"?T+($?z/2:0):T,positionDependencies:[...V,re??o],inline:G,strategy:K,middlewares:Q});S.useEffect(()=>{const Le=re instanceof HTMLElement?re:typeof re=="string"?document.querySelector(re):re?.current||null;Le&&pe.reference(Le)},[re,pe]);const xe=kt({name:"Tooltip",props:n,classes:o3,className:_,style:C,classNames:w,styles:x,unstyled:k,attributes:te,rootSelector:"tooltip",vars:Z,varsResolver:EDe});if(!re&&!Ki(o))return null;if(re){const Le=cW(O,{duration:100,transition:"fade"});return y.jsx(y.Fragment,{children:y.jsx(zf,{...I,withinPortal:f,children:y.jsx(pd,{...Le,keepMounted:Y,mounted:!M&&!!pe.opened,duration:pe.isGroupPhase?10:Le.duration,children:St=>y.jsxs(Se,{...ue,"data-fixed":K==="fixed"||void 0,variant:U,mod:[{multiline:P},W],...pe.getFloatingProps({ref:pe.floating,className:xe("tooltip").className,style:{...xe("tooltip").style,...St,zIndex:H,top:pe.y??0,left:pe.x??0}}),children:[l,y.jsx(Iw,{ref:ce,arrowX:pe.arrowX,arrowY:pe.arrowY,visible:$,position:pe.placement,arrowSize:z,arrowOffset:j,arrowRadius:A,arrowPosition:R,...xe("arrow")})]})})})})}const De=o,Be=De.props,Je=$r(pe.reference,sw(De),r),st=cW(O,{duration:100,transition:"fade"});return y.jsxs(y.Fragment,{children:[y.jsx(zf,{...I,withinPortal:f,children:y.jsx(pd,{...st,keepMounted:Y,mounted:!M&&!!pe.opened,duration:pe.isGroupPhase?10:st.duration,children:Le=>y.jsxs(Se,{...ue,"data-fixed":K==="fixed"||void 0,variant:U,mod:[{multiline:P},W],...pe.getFloatingProps({ref:pe.floating,className:xe("tooltip").className,style:{...xe("tooltip").style,...Le,zIndex:H,top:pe.y??0,left:pe.x??0}}),children:[l,y.jsx(Iw,{ref:ce,arrowX:pe.arrowX,arrowY:pe.arrowY,visible:$,position:pe.placement,arrowSize:z,arrowOffset:j,arrowRadius:A,arrowPosition:R,...xe("arrow")})]})})}),S.cloneElement(De,pe.getReferenceProps({onClick:B,onMouseEnter:F,onMouseLeave:q,onMouseMove:n.onMouseMove,onPointerDown:n.onPointerDown,onPointerEnter:n.onPointerEnter,className:Qi(_,Be.className),...Be,[i]:Je}))]})});_n.classes=o3,_n.displayName="@mantine/core/Tooltip",_n.Floating=J9,_n.Group=np;var pW={root:"m_cf365364",indicator:"m_9e182ccd",label:"m_1738fcb2",input:"m_1714d588",control:"m_69686b9b",innerLabel:"m_78882f40"};const CDe={withItemsBorders:!0},$De=(e,{radius:r,color:n,transitionDuration:o,size:a,transitionTimingFunction:i})=>({root:{"--sc-radius":r===void 0?void 0:wn(r),"--sc-color":n?_a(n,e):void 0,"--sc-shadow":n?void 0:"var(--mantine-shadow-xs)","--sc-transition-duration":o===void 0?void 0:`${o}ms`,"--sc-transition-timing-function":i,"--sc-padding":dr(a,"sc-padding"),"--sc-font-size":Eo(a)}}),Mf=ot((e,r)=>{const n=Me("SegmentedControl",CDe,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,vars:c,data:d,value:u,defaultValue:p,onChange:f,size:g,name:v,disabled:w,readOnly:x,fullWidth:k,orientation:C,radius:_,color:$,transitionDuration:z,transitionTimingFunction:j,variant:A,autoContrast:R,withItemsBorders:T,mod:O,attributes:P,...L}=n,H=kt({name:"SegmentedControl",props:n,classes:pW,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:P,vars:c,varsResolver:$De}),M=lo(),V=d.map(re=>typeof re=="string"?{label:re,value:re}:re),B=dze(),[F,q]=S.useState(z7()),[G,U]=S.useState(null),[Y,Z]=S.useState({}),I=(re,ue)=>{Y[ue]=re,Z(Y)},[W,K]=Us({value:u,defaultValue:p,finalValue:Array.isArray(d)?V.find(re=>!re.disabled)?.value??d[0]?.value??null:null,onChange:f}),Q=ti(v),ae=V.map(re=>S.createElement(Se,{...H("control"),mod:{active:W===re.value,orientation:C},key:re.value},S.createElement("input",{...H("input"),disabled:w||re.disabled,type:"radio",name:Q,value:re.value,id:`${Q}-${re.value}`,checked:W===re.value,onChange:()=>!x&&K(re.value),"data-focus-ring":M.focusRing,key:`${re.value}-input`}),S.createElement(Se,{component:"label",...H("label"),mod:{active:W===re.value&&!(w||re.disabled),disabled:w||re.disabled,"read-only":x},htmlFor:`${Q}-${re.value}`,ref:ue=>I(ue,re.value),__vars:{"--sc-label-color":$!==void 0?F7({color:$,theme:M,autoContrast:R}):void 0},key:`${re.value}-label`},y.jsx("span",{...H("innerLabel"),children:re.label})))),te=$r(r,re=>U(re));return eze(()=>{q(z7())},[d.length]),d.length===0?null:y.jsxs(Se,{...H("root"),variant:A,size:g,ref:te,mod:[{"full-width":k,orientation:C,initialized:B,"with-items-borders":T},O],...L,role:"radiogroup","data-disabled":w,children:[typeof W=="string"&&y.jsx(Gw,{target:Y[W],parent:G,component:"span",transitionDuration:"var(--sc-transition-duration)",...H("indicator")},F),ae]})});Mf.classes=pW,Mf.displayName="@mantine/core/SegmentedControl";const[zDe,a3]=ei("SliderProvider was not found in tree"),hW=S.forwardRef(({size:e,disabled:r,variant:n,color:o,thumbSize:a,radius:i,...l},s)=>{const{getStyles:c}=a3();return y.jsx(Se,{tabIndex:-1,variant:n,size:e,ref:s,...c("root"),...l})});hW.displayName="@mantine/core/SliderRoot";const fW=S.forwardRef(({max:e,min:r,value:n,position:o,label:a,dragging:i,onMouseDown:l,onKeyDownCapture:s,labelTransitionProps:c,labelAlwaysOn:d,thumbLabel:u,onFocus:p,onBlur:f,showLabelOnHover:g,isHovered:v,children:w=null,disabled:x},k)=>{const{getStyles:C}=a3(),[_,$]=S.useState(!1),z=d||i||_||g&&v;return y.jsxs(Se,{tabIndex:0,role:"slider","aria-label":u,"aria-valuemax":e,"aria-valuemin":r,"aria-valuenow":n,ref:k,__vars:{"--slider-thumb-offset":`${o}%`},...C("thumb",{focusable:!0}),mod:{dragging:i,disabled:x},onFocus:j=>{$(!0),typeof p=="function"&&p(j)},onBlur:j=>{$(!1),typeof f=="function"&&f(j)},onTouchStart:l,onMouseDown:l,onKeyDownCapture:s,onClick:j=>j.stopPropagation(),children:[w,y.jsx(pd,{mounted:a!=null&&!!z,transition:"fade",duration:0,...c,children:j=>y.jsx("div",{...C("label",{style:j}),children:a})})]})});fW.displayName="@mantine/core/SliderThumb";function mW({value:e,min:r,max:n}){const o=(e-r)/(n-r)*100;return Math.min(Math.max(o,0),100)}function RDe({mark:e,offset:r,value:n,inverted:o=!1}){return o?typeof r=="number"&&e.value<=r||e.value>=n:typeof r=="number"?e.value>=r&&e.value<=n:e.value<=n}function gW({marks:e,min:r,max:n,disabled:o,value:a,offset:i,inverted:l}){const{getStyles:s}=a3();if(!e)return null;const c=e.map((d,u)=>S.createElement(Se,{...s("markWrapper"),__vars:{"--mark-offset":`${mW({value:d.value,min:r,max:n})}%`},key:u},y.jsx(Se,{...s("mark"),mod:{filled:RDe({mark:d,value:a,offset:i,inverted:l}),disabled:o}}),d.label&&y.jsx("div",{...s("markLabel"),children:d.label})));return y.jsx("div",{children:c})}gW.displayName="@mantine/core/SliderMarks";function yW({filled:e,children:r,offset:n,disabled:o,marksOffset:a,inverted:i,containerProps:l,...s}){const{getStyles:c}=a3();return y.jsx(Se,{...c("trackContainer"),mod:{disabled:o},...l,children:y.jsxs(Se,{...c("track"),mod:{inverted:i,disabled:o},children:[y.jsx(Se,{mod:{inverted:i,disabled:o},__vars:{"--slider-bar-width":`calc(${e}% + 2 * var(--slider-size))`,"--slider-bar-offset":`calc(${n}% - var(--slider-size))`},...c("bar")}),r,y.jsx(gW,{...s,offset:a,disabled:o,inverted:i})]})})}yW.displayName="@mantine/core/SliderTrack";function jDe({value:e,containerWidth:r,min:n,max:o,step:a,precision:i}){const l=(r?Math.min(Math.max(e,0),r)/r:e)*(o-n),s=(l!==0?Math.round(l/a)*a:0)+n,c=Math.max(s,n);return i!==void 0?Number(c.toFixed(i)):c}function i3(e,r){return parseFloat(e.toFixed(r))}function TDe(e){if(!e)return 0;const r=e.toString().split(".");return r.length>1?r[1].length:0}function eS(e,r){const n=[...r].sort((o,a)=>o.value-a.value).find(o=>o.value>e);return n?n.value:e}function tS(e,r){const n=[...r].sort((o,a)=>a.value-o.value).find(o=>o.valuen.value-o.value);return r.length>0?r[0].value:0}function bW(e){const r=[...e].sort((n,o)=>n.value-o.value);return r.length>0?r[r.length-1].value:100}var xW={root:"m_dd36362e",label:"m_c9357328",thumb:"m_c9a9a60a",trackContainer:"m_a8645c2",track:"m_c9ade57f",bar:"m_38aeed47",markWrapper:"m_b7b0423a",mark:"m_dd33bc19",markLabel:"m_68c77a5b"};const ADe={radius:"xl",min:0,max:100,step:1,marks:[],label:e=>e,labelTransitionProps:{transition:"fade",duration:0},thumbLabel:"",showLabelOnHover:!0,scale:e=>e,size:"md"},DDe=(e,{size:r,color:n,thumbSize:o,radius:a})=>({root:{"--slider-size":dr(r,"slider-size"),"--slider-color":n?_a(n,e):void 0,"--slider-radius":a===void 0?void 0:wn(a),"--slider-thumb-size":o!==void 0?$e(o):"calc(var(--slider-size) * 2)"}}),rS=ot((e,r)=>{const n=Me("Slider",ADe,e),{classNames:o,styles:a,value:i,onChange:l,onChangeEnd:s,size:c,min:d,max:u,domain:p,step:f,precision:g,defaultValue:v,name:w,marks:x,label:k,labelTransitionProps:C,labelAlwaysOn:_,thumbLabel:$,showLabelOnHover:z,thumbChildren:j,disabled:A,unstyled:R,scale:T,inverted:O,className:P,style:L,vars:H,hiddenInputProps:M,restrictToMarks:V,thumbProps:B,attributes:F,...q}=n,G=kt({name:"Slider",props:n,classes:xW,classNames:o,className:P,styles:a,style:L,attributes:F,vars:H,varsResolver:DDe,unstyled:R}),{dir:U}=dd(),[Y,Z]=S.useState(!1),[I,W]=Us({value:typeof i=="number"?ad(i,d,u):i,defaultValue:typeof v=="number"?ad(v,d,u):v,finalValue:ad(0,d,u),onChange:l}),K=S.useRef(I),Q=S.useRef(s);S.useEffect(()=>{Q.current=s},[s]);const ae=S.useRef(null),te=S.useRef(null),[re,ue]=p||[d,u],_e=mW({value:I,min:re,max:ue}),ce=T(I),pe=typeof k=="function"?k(ce):k,xe=g??TDe(f),De=S.useCallback(({x:Ve})=>{if(!A){const qe=jDe({value:Ve,min:re,max:ue,step:f,precision:xe}),Xe=ad(qe,d,u);W(V&&x?.length?Aq(Xe,x.map(Ot=>Ot.value)):Xe),K.current=Xe}},[A,d,u,re,ue,f,xe,W,x,V]),Be=S.useCallback(()=>{if(!A&&Q.current){const Ve=V&&x?.length?Aq(K.current,x.map(qe=>qe.value)):K.current;Q.current(Ve)}},[A,x,V]),{ref:Je,active:st}=Sq(De,{onScrubEnd:Be},U),Le=S.useCallback(Ve=>{!A&&Q.current&&Q.current(Ve)},[A]),St=Ve=>{if(!A)switch(Ve.key){case"ArrowUp":{if(Ve.preventDefault(),te.current?.focus(),V&&x){const Xe=eS(I,x);W(Xe),Le(Xe);break}const qe=i3(Math.min(Math.max(I+f,d),u),xe);W(qe),Le(qe);break}case"ArrowRight":{if(Ve.preventDefault(),te.current?.focus(),V&&x){const Xe=U==="rtl"?tS(I,x):eS(I,x);W(Xe),Le(Xe);break}const qe=i3(Math.min(Math.max(U==="rtl"?I-f:I+f,d),u),xe);W(qe),Le(qe);break}case"ArrowDown":{if(Ve.preventDefault(),te.current?.focus(),V&&x){const Xe=tS(I,x);W(Xe),Le(Xe);break}const qe=i3(Math.min(Math.max(I-f,d),u),xe);W(qe),Le(qe);break}case"ArrowLeft":{if(Ve.preventDefault(),te.current?.focus(),V&&x){const Xe=U==="rtl"?eS(I,x):tS(I,x);W(Xe),Le(Xe);break}const qe=i3(Math.min(Math.max(U==="rtl"?I+f:I-f,d),u),xe);W(qe),Le(qe);break}case"Home":{if(Ve.preventDefault(),te.current?.focus(),V&&x){W(vW(x)),Le(vW(x));break}W(d),Le(d);break}case"End":{if(Ve.preventDefault(),te.current?.focus(),V&&x){W(bW(x)),Le(bW(x));break}W(u),Le(u);break}}};return y.jsx(zDe,{value:{getStyles:G},children:y.jsxs(hW,{...q,ref:$r(r,ae),onKeyDownCapture:St,onMouseDownCapture:()=>ae.current?.focus(),size:c,disabled:A,children:[y.jsx(yW,{inverted:O,offset:0,filled:_e,marks:x,min:re,max:ue,value:ce,disabled:A,containerProps:{ref:Je,onMouseEnter:z?()=>Z(!0):void 0,onMouseLeave:z?()=>Z(!1):void 0},children:y.jsx(fW,{max:ue,min:re,value:ce,position:_e,dragging:st,label:pe,ref:te,labelTransitionProps:C,labelAlwaysOn:_,thumbLabel:$,showLabelOnHover:z,isHovered:Y,disabled:A,...B,children:j})}),y.jsx("input",{type:"hidden",name:w,value:ce,...M})]})})});rS.classes=xW,rS.displayName="@mantine/core/Slider";const nS=ot((e,r)=>{const{w:n,h:o,miw:a,mih:i,...l}=Me("Space",null,e);return y.jsx(Se,{ref:r,...l,w:n,miw:a??n,h:o,mih:i??o})});nS.displayName="@mantine/core/Space";var wW={root:"m_6d731127"};const MDe={gap:"md",align:"stretch",justify:"flex-start"},NDe=(e,{gap:r,align:n,justify:o})=>({root:{"--stack-gap":Hs(r),"--stack-align":n,"--stack-justify":o}}),Io=ot((e,r)=>{const n=Me("Stack",MDe,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,vars:c,align:d,justify:u,gap:p,variant:f,attributes:g,...v}=n,w=kt({name:"Stack",props:n,classes:wW,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:g,vars:c,varsResolver:NDe});return y.jsx(Se,{ref:r,...w("root"),variant:f,...v})});Io.classes=wW,Io.displayName="@mantine/core/Stack";const[PDe,oS]=ei("Tabs component was not found in the tree");var uy={root:"m_89d60db1","list--default":"m_576c9d4",list:"m_89d33d6d",tab:"m_4ec4dce6",panel:"m_b0c91715",tabSection:"m_fc420b1f",tabLabel:"m_42bbd1ae","tab--default":"m_539e827b","list--outline":"m_6772fbd5","tab--outline":"m_b59ab47c","tab--pills":"m_c3381914"};const py=ot((e,r)=>{const n=Me("TabsList",null,e),{children:o,className:a,grow:i,justify:l,classNames:s,styles:c,style:d,mod:u,...p}=n,f=oS();return y.jsx(Se,{...p,...f.getStyles("list",{className:a,style:d,classNames:s,styles:c,props:n,variant:f.variant}),ref:r,role:"tablist",variant:f.variant,mod:[{grow:i,orientation:f.orientation,placement:f.orientation==="vertical"&&f.placement,inverted:f.inverted},u],"aria-orientation":f.orientation,__vars:{"--tabs-justify":l},children:o})});py.classes=uy,py.displayName="@mantine/core/TabsList";const Js=ot((e,r)=>{const n=Me("TabsPanel",null,e),{children:o,className:a,value:i,classNames:l,styles:s,style:c,mod:d,keepMounted:u,...p}=n,f=oS(),g=f.value===i,v=f.keepMounted||u||g?o:null;return y.jsx(Se,{...f.getStyles("panel",{className:a,classNames:l,styles:s,style:[c,g?void 0:{display:"none"}],props:n}),ref:r,mod:[{orientation:f.orientation},d],role:"tabpanel",id:f.getPanelId(i),"aria-labelledby":f.getTabId(i),...p,children:v})});Js.classes=uy,Js.displayName="@mantine/core/TabsPanel";const Nf=ot((e,r)=>{const n=Me("TabsTab",null,e),{className:o,children:a,rightSection:i,leftSection:l,value:s,onClick:c,onKeyDown:d,disabled:u,color:p,style:f,classNames:g,styles:v,vars:w,mod:x,tabIndex:k,...C}=n,_=lo(),{dir:$}=dd(),z=oS(),j=s===z.value,A=T=>{z.onChange(z.allowTabDeactivation&&s===z.value?null:s),c?.(T)},R={classNames:g,styles:v,props:n};return y.jsxs(pr,{...z.getStyles("tab",{className:o,style:f,variant:z.variant,...R}),disabled:u,unstyled:z.unstyled,variant:z.variant,mod:[{active:j,disabled:u,orientation:z.orientation,inverted:z.inverted,placement:z.orientation==="vertical"&&z.placement},x],ref:r,role:"tab",id:z.getTabId(s),"aria-selected":j,tabIndex:k!==void 0?k:j||z.value===null?0:-1,"aria-controls":z.getPanelId(s),onClick:A,__vars:{"--tabs-color":p?_a(p,_):void 0},onKeyDown:Y1({siblingSelector:'[role="tab"]',parentSelector:'[role="tablist"]',activateOnFocus:z.activateTabWithKeyboard,loop:z.loop,orientation:z.orientation||"horizontal",dir:$,onKeyDown:d}),...C,children:[l&&y.jsx("span",{...z.getStyles("tabSection",R),"data-position":"left",children:l}),a&&y.jsx("span",{...z.getStyles("tabLabel",R),children:a}),i&&y.jsx("span",{...z.getStyles("tabSection",R),"data-position":"right",children:i})]})});Nf.classes=uy,Nf.displayName="@mantine/core/TabsTab";const kW="Tabs.Tab or Tabs.Panel component was rendered with invalid value or without value",BDe={keepMounted:!0,orientation:"horizontal",loop:!0,activateTabWithKeyboard:!0,variant:"default",placement:"left"},ODe=(e,{radius:r,color:n,autoContrast:o})=>({root:{"--tabs-radius":wn(r),"--tabs-color":_a(n,e),"--tabs-text-color":rRe(o,e)?F7({color:n,theme:e,autoContrast:o}):void 0}}),op=ot((e,r)=>{const n=Me("Tabs",BDe,e),{defaultValue:o,value:a,onChange:i,orientation:l,children:s,loop:c,id:d,activateTabWithKeyboard:u,allowTabDeactivation:p,variant:f,color:g,radius:v,inverted:w,placement:x,keepMounted:k,classNames:C,styles:_,unstyled:$,className:z,style:j,vars:A,autoContrast:R,mod:T,attributes:O,...P}=n,L=ti(d),[H,M]=Us({value:a,defaultValue:o,finalValue:null,onChange:i}),V=kt({name:"Tabs",props:n,classes:uy,className:z,style:j,classNames:C,styles:_,unstyled:$,attributes:O,vars:A,varsResolver:ODe});return y.jsx(PDe,{value:{placement:x,value:H,orientation:l,id:L,loop:c,activateTabWithKeyboard:u,getTabId:uq(`${L}-tab`,kW),getPanelId:uq(`${L}-panel`,kW),onChange:M,allowTabDeactivation:p,variant:f,color:g,radius:v,inverted:w,keepMounted:k,unstyled:$,getStyles:V},children:y.jsx(Se,{ref:r,id:L,variant:f,mod:[{orientation:l,inverted:l==="horizontal"&&w,placement:l==="vertical"&&x},T],...V("root"),...P,children:s})})});op.classes=uy,op.displayName="@mantine/core/Tabs",op.Tab=Nf,op.Panel=Js,op.List=py;var _W={root:"m_7341320d"};const IDe=(e,{size:r,radius:n,variant:o,gradient:a,color:i,autoContrast:l})=>{const s=e.variantColorResolver({color:i||e.primaryColor,theme:e,gradient:a,variant:o||"filled",autoContrast:l});return{root:{"--ti-size":dr(r,"ti-size"),"--ti-radius":n===void 0?void 0:wn(n),"--ti-bg":i||o?s.background:void 0,"--ti-color":i||o?s.color:void 0,"--ti-bd":i||o?s.border:void 0}}},$a=ot((e,r)=>{const n=Me("ThemeIcon",null,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,vars:c,autoContrast:d,attributes:u,...p}=n,f=kt({name:"ThemeIcon",classes:_W,props:n,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:u,vars:c,varsResolver:IDe});return y.jsx(Se,{ref:r,...f("root"),...p})});$a.classes=_W,$a.displayName="@mantine/core/ThemeIcon";const LDe=["h1","h2","h3","h4","h5","h6"],FDe=["xs","sm","md","lg","xl"];function VDe(e,r){const n=r!==void 0?r:`h${e}`;return LDe.includes(n)?{fontSize:`var(--mantine-${n}-font-size)`,fontWeight:`var(--mantine-${n}-font-weight)`,lineHeight:`var(--mantine-${n}-line-height)`}:FDe.includes(n)?{fontSize:`var(--mantine-font-size-${n})`,fontWeight:`var(--mantine-h${e}-font-weight)`,lineHeight:`var(--mantine-h${e}-line-height)`}:{fontSize:$e(n),fontWeight:`var(--mantine-h${e}-font-weight)`,lineHeight:`var(--mantine-h${e}-line-height)`}}var SW={root:"m_8a5d1357"};const qDe={order:1},HDe=(e,{order:r,size:n,lineClamp:o,textWrap:a})=>{const i=VDe(r||1,n);return{root:{"--title-fw":i.fontWeight,"--title-lh":i.lineHeight,"--title-fz":i.fontSize,"--title-line-clamp":typeof o=="number"?o.toString():void 0,"--title-text-wrap":a}}},ap=ot((e,r)=>{const n=Me("Title",qDe,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,order:c,vars:d,size:u,variant:p,lineClamp:f,textWrap:g,mod:v,attributes:w,...x}=n,k=kt({name:"Title",props:n,classes:SW,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:w,vars:d,varsResolver:HDe});return[1,2,3,4,5,6].includes(c)?y.jsx(Se,{...k("root"),component:`h${c}`,variant:p,ref:r,mod:[{order:c,"data-line-clamp":typeof f=="number"},v],size:u,...x}):null});ap.classes=SW,ap.displayName="@mantine/core/Title";function EW(e,r,n){if(!e||!r)return[];const o=n.indexOf(e),a=n.indexOf(r),i=Math.min(o,a),l=Math.max(o,a);return n.slice(i,l+1)}function aS({node:e,getStyles:r,rootIndex:n,controller:o,expandOnClick:a,selectOnClick:i,isSubtree:l,level:s=1,renderNode:c,flatValues:d,allowRangeSelection:u,expandOnSpace:p,checkOnSpace:f}){const g=S.useRef(null),v=(e.children||[]).map(_=>y.jsx(aS,{node:_,flatValues:d,getStyles:r,rootIndex:void 0,level:s+1,controller:o,expandOnClick:a,isSubtree:!0,renderNode:c,selectOnClick:i,allowRangeSelection:u,expandOnSpace:p,checkOnSpace:f},_.value)),w=_=>{if(_.nativeEvent.code==="ArrowRight"&&(_.stopPropagation(),_.preventDefault(),o.expandedState[e.value]?_.currentTarget.querySelector("[role=treeitem]")?.focus():o.expand(e.value)),_.nativeEvent.code==="ArrowLeft"&&(_.stopPropagation(),_.preventDefault(),o.expandedState[e.value]&&(e.children||[]).length>0?o.collapse(e.value):l&&mf(_.currentTarget,"[role=treeitem]")?.focus()),_.nativeEvent.code==="ArrowDown"||_.nativeEvent.code==="ArrowUp"){const $=mf(_.currentTarget,"[data-tree-root]");if(!$)return;_.stopPropagation(),_.preventDefault();const z=Array.from($.querySelectorAll("[role=treeitem]")),j=z.indexOf(_.currentTarget);if(j===-1)return;const A=_.nativeEvent.code==="ArrowDown"?j+1:j-1;if(z[A]?.focus(),_.shiftKey){const R=z[A];R&&o.setSelectedState(EW(o.anchorNode,R.dataset.value,d))}}_.nativeEvent.code==="Space"&&(p&&(_.stopPropagation(),_.preventDefault(),o.toggleExpanded(e.value)),f&&(_.stopPropagation(),_.preventDefault(),o.isNodeChecked(e.value)?o.uncheckNode(e.value):o.checkNode(e.value)))},x=_=>{_.stopPropagation(),u&&_.shiftKey&&o.anchorNode?(o.setSelectedState(EW(o.anchorNode,e.value,d)),g.current?.focus()):(a&&o.toggleExpanded(e.value),i&&o.select(e.value),g.current?.focus())},k=o.selectedState.includes(e.value),C={...r("label"),onClick:x,"data-selected":k||void 0,"data-value":e.value,"data-hovered":o.hoveredNode===e.value||void 0};return y.jsxs("li",{...r("node",{style:{"--label-offset":`calc(var(--level-offset) * ${s-1})`}}),role:"treeitem","aria-selected":k,"data-value":e.value,"data-selected":k||void 0,"data-hovered":o.hoveredNode===e.value||void 0,"data-level":s,tabIndex:n===0?0:-1,onKeyDown:w,ref:g,onMouseOver:_=>{_.stopPropagation(),o.setHoveredNode(e.value)},onMouseLeave:_=>{_.stopPropagation(),o.setHoveredNode(null)},children:[typeof c=="function"?c({node:e,level:s,selected:k,tree:o,expanded:o.expandedState[e.value]||!1,hasChildren:Array.isArray(e.children)&&e.children.length>0,elementProps:C}):y.jsx("div",{...C,children:e.label}),o.expandedState[e.value]&&v.length>0&&y.jsx(Se,{component:"ul",role:"group",...r("subtree"),"data-level":s,children:v})]})}aS.displayName="@mantine/core/TreeNode";function l3(e,r,n=[]){const o=[];for(const a of e)if(Array.isArray(a.children)&&a.children.length>0){const i=l3(a.children,r,n);if(i.currentTreeChecked.length===a.children.length){const l=i.currentTreeChecked.every(c=>c.checked),s={checked:l,indeterminate:!l,value:a.value,hasChildren:!0};o.push(s),n.push(s)}else if(i.currentTreeChecked.length>0){const l={checked:!1,indeterminate:!0,value:a.value,hasChildren:!0};o.push(l),n.push(l)}}else if(r.includes(a.value)){const i={checked:!0,indeterminate:!1,value:a.value,hasChildren:!1};o.push(i),n.push(i)}return{result:n,currentTreeChecked:o}}function CW(e,r){for(const n of r){if(n.value===e)return n;if(Array.isArray(n.children)){const o=CW(e,n.children);if(o)return o}}return null}function s3(e,r,n=[]){const o=CW(e,r);return o?!Array.isArray(o.children)||o.children.length===0?[o.value]:(o.children.forEach(a=>{Array.isArray(a.children)&&a.children.length>0?s3(a.value,r,n):n.push(a.value)}),n):n}function $W(e){return e.reduce((r,n)=>(Array.isArray(n.children)&&n.children.length>0?r.push(...$W(n.children)):r.push(n.value),r),[])}function UDe(e,r,n){return n.length===0?!1:n.includes(e)?!0:l3(r,n).result.some(o=>o.value===e&&o.checked)}const WDe=Tq(UDe);function GDe(e,r,n){return n.length===0?!1:l3(r,n).result.some(o=>o.value===e&&o.indeterminate)}const YDe=Tq(GDe);function zW(e,r,n,o={}){return r.forEach(a=>{o[a.value]=a.value in e?e[a.value]:a.value===n,Array.isArray(a.children)&&zW(e,a.children,n,o)}),o}function XDe(e,r){const n=[];return e.forEach(o=>n.push(...s3(o,r))),Array.from(new Set(n))}function hy({initialSelectedState:e=[],initialCheckedState:r=[],initialExpandedState:n={},multiple:o=!1,onNodeCollapse:a,onNodeExpand:i}={}){const[l,s]=S.useState([]),[c,d]=S.useState(n),[u,p]=S.useState(e),[f,g]=S.useState(r),[v,w]=S.useState(null),[x,k]=S.useState(null),C=S.useCallback(B=>{d(F=>zW(F,B,u)),g(F=>XDe(F,B)),s(B)},[u,f]),_=S.useCallback(B=>{d(F=>{const q={...F,[B]:!F[B]};return q[B]?i?.(B):a?.(B),q})},[a,i]),$=S.useCallback(B=>{d(F=>(F[B]!==!1&&a?.(B),{...F,[B]:!1}))},[a]),z=S.useCallback(B=>{d(F=>(F[B]!==!0&&i?.(B),{...F,[B]:!0}))},[i]),j=S.useCallback(()=>{d(B=>{const F={...B};return Object.keys(F).forEach(q=>{F[q]=!0}),F})},[]),A=S.useCallback(()=>{d(B=>{const F={...B};return Object.keys(F).forEach(q=>{F[q]=!1}),F})},[]),R=S.useCallback(B=>p(F=>o?F.includes(B)?(w(null),F.filter(q=>q!==B)):(w(B),[...F,B]):F.includes(B)?(w(null),[]):(w(B),[B])),[]),T=S.useCallback(B=>{w(B),p(F=>o?F.includes(B)?F:[...F,B]:[B])},[]),O=S.useCallback(B=>{v===B&&w(null),p(F=>F.filter(q=>q!==B))},[]),P=S.useCallback(()=>{p([]),w(null)},[]),L=S.useCallback(B=>{const F=s3(B,l);g(q=>Array.from(new Set([...q,...F])))},[l]),H=S.useCallback(B=>{const F=s3(B,l);g(q=>q.filter(G=>!F.includes(G)))},[l]),M=S.useCallback(()=>{g(()=>$W(l))},[l]),V=S.useCallback(()=>{g([])},[]);return{multiple:o,expandedState:c,selectedState:u,checkedState:f,anchorNode:v,initialize:C,toggleExpanded:_,collapse:$,expand:z,expandAllNodes:j,collapseAllNodes:A,setExpandedState:d,checkNode:L,uncheckNode:H,checkAllNodes:M,uncheckAllNodes:V,setCheckedState:g,toggleSelected:R,select:T,deselect:O,clearSelected:P,setSelectedState:p,hoveredNode:x,setHoveredNode:k,getCheckedNodes:()=>l3(l,f).result,isNodeChecked:B=>WDe(B,l,f),isNodeIndeterminate:B=>YDe(B,l,f)}}var RW={root:"m_f698e191",subtree:"m_75f3ecf",node:"m_f6970eb1",label:"m_dc283425"};function jW(e){return e.reduce((r,n)=>(r.push(n.value),n.children&&r.push(...jW(n.children)),r),[])}const ZDe={expandOnClick:!0,allowRangeSelection:!0,expandOnSpace:!0},KDe=(e,{levelOffset:r})=>({root:{"--level-offset":Hs(r)}}),Pf=ot((e,r)=>{const n=Me("Tree",ZDe,e),{classNames:o,className:a,style:i,styles:l,unstyled:s,vars:c,data:d,expandOnClick:u,tree:p,renderNode:f,selectOnClick:g,clearSelectionOnOutsideClick:v,allowRangeSelection:w,expandOnSpace:x,levelOffset:k,checkOnSpace:C,attributes:_,...$}=n,z=hy(),j=p||z,A=kt({name:"Tree",classes:RW,props:n,className:a,style:i,classNames:o,styles:l,unstyled:s,attributes:_,vars:c,varsResolver:KDe}),R=mq(()=>v&&j.clearSelected()),T=$r(r,R),O=S.useMemo(()=>jW(d),[d]);S.useEffect(()=>{j.initialize(d)},[d]);const P=d.map((L,H)=>y.jsx(aS,{node:L,getStyles:A,rootIndex:H,expandOnClick:u,selectOnClick:g,controller:j,renderNode:f,flatValues:O,allowRangeSelection:w,expandOnSpace:x,checkOnSpace:C},L.value));return y.jsx(Se,{component:"ul",ref:T,...A("root"),...$,role:"tree","aria-multiselectable":j.multiple,"data-tree-root":!0,children:P})});Pf.displayName="@mantine/core/Tree",Pf.classes=RW;const iS=S.createContext(null);function TW(){const e=S.useContext(iS);if(!e)throw new Error("useRootContainer must be used within a RootContainer");return e}function QDe(){return TW().ref}function JDe(){return TW().ref.current}const AW=S.createContext(null);function eMe(){const e=S.useContext(AW);return e===null&&console.warn("ReduceGraphicsMode is not provided"),e??!1}const[tMe,rMe]=ei("PanningAtomSafeCtx is not provided");function nMe({id:e,className:r,reduceGraphics:n=!1,children:o}){const[a,i]=S.useState(!1),l=S.useRef(null),s=S.useRef(null);s.current||(s.current=ICe(!1)),z8(()=>{i(!0)},[]),S.useEffect(()=>s.current?.subscribe(d=>{l.current?.setAttribute("data-likec4-diagram-panning",d?"true":"false")}),[]);const c=S.useMemo(()=>({id:e,ref:l}),[e,l]);return y.jsx(tMe,{value:s.current,children:y.jsx(AW.Provider,{value:n,children:y.jsx("div",{id:e,className:Ge("likec4-root",r),ref:l,...n&&{"data-likec4-reduced-graphics":!0},children:a&&!!c.ref.current&&y.jsx(iS.Provider,{value:c,children:o})})})})}const fy=S.createContext(null),lS=S.createContext(null);function oMe(){return S.useContext(fy)}function Lo(){const e=S.useContext(fy);if(!e)throw new Error("LikeC4Model not found. Make sure you have LikeC4ModelProvider.");return e}function aMe(){const e=Lo(),[r,n]=S.useState(e.$data.specification);return S.useEffect(()=>{n(o=>tt(o,e.$data.specification)?o:e.$data.specification)},[e]),r}const DW=S.createContext({}),iMe=gke,lMe=e=>{const r=e.color;if(WO(e))return` --colors-likec4-tag-bg: ${r}; - --colors-likec4-tag-bg-hover: color-mix(in srgb, ${r}, var(--colors-likec4-mix-color) 20%); - `;if(!tLe.includes(r))return"";let n="12";return["mint","grass","lime","yellow","amber"].includes(r)&&(n="dark-2"),` + --colors-likec4-tag-bg-hover: color-mix(in oklab, ${r}, var(--colors-likec4-mix-color) 20%); + `;if(!iMe.includes(r))return"";let n="12";return["mint","grass","lime","yellow","amber"].includes(r)&&(n="dark-2"),` --colors-likec4-tag-border: var(--colors-${r}-8); --colors-likec4-tag-bg: var(--colors-${r}-9); --colors-likec4-tag-bg-hover: var(--colors-${r}-10); --colors-likec4-tag-text: var(--colors-${r}-${n}); - `};function nLe(e,r){return!e||fp(e)?"":En(P7(e),pNe(([n,o])=>[`:is(${r} [data-likec4-tag="${n}"]) {`,rLe(o),"}"]),qq(` -`))}function oLe({children:e,rootSelector:r}){const n=eLe().tags,o=nLe(n,r);return y.jsxs(qG.Provider,{value:n,children:[o!==""&&y.jsx(aLe,{stylesheet:o}),e]})}const aLe=E.memo(({stylesheet:e})=>{const r=yp()?.();return y.jsx("style",{"data-likec4-tags":!0,type:"text/css",dangerouslySetInnerHTML:{__html:e},nonce:r})});function iLe(e){return E.useContext(qG)[e]??{color:"tomato"}}function UG(){return fi().replace("mantine-","likec4-")}var sLe="css,pos,insetX,insetY,insetEnd,end,insetStart,start,flexDir,p,pl,pr,pt,pb,py,paddingY,paddingX,px,pe,paddingEnd,ps,paddingStart,ml,mr,mt,mb,m,my,marginY,mx,marginX,me,marginEnd,ms,marginStart,ringWidth,ringColor,ring,ringOffset,w,minW,maxW,h,minH,maxH,textShadowColor,bgPosition,bgPositionX,bgPositionY,bgAttachment,bgClip,bg,bgColor,bgOrigin,bgImage,bgRepeat,bgBlendMode,bgSize,bgGradient,bgLinear,bgRadial,bgConic,rounded,roundedTopLeft,roundedTopRight,roundedBottomRight,roundedBottomLeft,roundedTop,roundedRight,roundedBottom,roundedLeft,roundedStartStart,roundedStartEnd,roundedStart,roundedEndStart,roundedEndEnd,roundedEnd,borderX,borderXWidth,borderXColor,borderY,borderYWidth,borderYColor,borderStart,borderStartWidth,borderStartColor,borderEnd,borderEndWidth,borderEndColor,shadow,shadowColor,x,y,z,scrollMarginY,scrollMarginX,scrollPaddingY,scrollPaddingX,aspectRatio,boxDecorationBreak,zIndex,boxSizing,objectPosition,objectFit,overscrollBehavior,overscrollBehaviorX,overscrollBehaviorY,position,top,left,inset,insetInline,insetBlock,insetBlockEnd,insetBlockStart,insetInlineEnd,insetInlineStart,right,bottom,float,visibility,display,hideFrom,hideBelow,flexBasis,flex,flexDirection,flexGrow,flexShrink,gridTemplateColumns,gridTemplateRows,gridColumn,gridRow,gridColumnStart,gridColumnEnd,gridAutoFlow,gridAutoColumns,gridAutoRows,gap,gridGap,gridRowGap,gridColumnGap,rowGap,columnGap,justifyContent,alignContent,alignItems,alignSelf,padding,paddingLeft,paddingRight,paddingTop,paddingBottom,paddingBlock,paddingBlockEnd,paddingBlockStart,paddingInline,paddingInlineEnd,paddingInlineStart,marginLeft,marginRight,marginTop,marginBottom,margin,marginBlock,marginBlockEnd,marginBlockStart,marginInline,marginInlineEnd,marginInlineStart,spaceX,spaceY,outlineWidth,outlineColor,outline,outlineOffset,focusRing,focusVisibleRing,focusRingColor,focusRingOffset,focusRingWidth,focusRingStyle,divideX,divideY,divideColor,divideStyle,width,inlineSize,minWidth,minInlineSize,maxWidth,maxInlineSize,height,blockSize,minHeight,minBlockSize,maxHeight,maxBlockSize,boxSize,color,fontFamily,fontSize,fontSizeAdjust,fontPalette,fontKerning,fontFeatureSettings,fontWeight,fontSmoothing,fontVariant,fontVariantAlternates,fontVariantCaps,fontVariationSettings,fontVariantNumeric,letterSpacing,lineHeight,textAlign,textDecoration,textDecorationColor,textEmphasisColor,textDecorationStyle,textDecorationThickness,textUnderlineOffset,textTransform,textIndent,textShadow,textOverflow,verticalAlign,wordBreak,textWrap,truncate,lineClamp,listStyleType,listStylePosition,listStyleImage,listStyle,backgroundPosition,backgroundPositionX,backgroundPositionY,backgroundAttachment,backgroundClip,background,backgroundColor,backgroundOrigin,backgroundImage,backgroundRepeat,backgroundBlendMode,backgroundSize,backgroundGradient,backgroundLinear,backgroundRadial,backgroundConic,textGradient,gradientFromPosition,gradientToPosition,gradientFrom,gradientTo,gradientVia,gradientViaPosition,borderRadius,borderTopLeftRadius,borderTopRightRadius,borderBottomRightRadius,borderBottomLeftRadius,borderTopRadius,borderRightRadius,borderBottomRadius,borderLeftRadius,borderStartStartRadius,borderStartEndRadius,borderStartRadius,borderEndStartRadius,borderEndEndRadius,borderEndRadius,border,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,borderBlockStartWidth,borderBlockEndWidth,borderColor,borderInline,borderInlineWidth,borderInlineColor,borderBlock,borderBlockWidth,borderBlockColor,borderLeft,borderLeftColor,borderInlineStart,borderInlineStartWidth,borderInlineStartColor,borderRight,borderRightColor,borderInlineEnd,borderInlineEndWidth,borderInlineEndColor,borderTop,borderTopColor,borderBottom,borderBottomColor,borderBlockEnd,borderBlockEndColor,borderBlockStart,borderBlockStartColor,opacity,boxShadow,boxShadowColor,mixBlendMode,filter,brightness,contrast,grayscale,hueRotate,invert,saturate,sepia,dropShadow,blur,backdropFilter,backdropBlur,backdropBrightness,backdropContrast,backdropGrayscale,backdropHueRotate,backdropInvert,backdropOpacity,backdropSaturate,backdropSepia,borderCollapse,borderSpacing,borderSpacingX,borderSpacingY,tableLayout,transitionTimingFunction,transitionDelay,transitionDuration,transitionProperty,transition,animation,animationName,animationTimingFunction,animationDuration,animationDelay,animationPlayState,animationComposition,animationFillMode,animationDirection,animationIterationCount,animationRange,animationState,animationRangeStart,animationRangeEnd,animationTimeline,transformOrigin,transformBox,transformStyle,transform,rotate,rotateX,rotateY,rotateZ,scale,scaleX,scaleY,translate,translateX,translateY,translateZ,accentColor,caretColor,scrollBehavior,scrollbar,scrollbarColor,scrollbarGutter,scrollbarWidth,scrollMargin,scrollMarginLeft,scrollMarginRight,scrollMarginTop,scrollMarginBottom,scrollMarginBlock,scrollMarginBlockEnd,scrollMarginBlockStart,scrollMarginInline,scrollMarginInlineEnd,scrollMarginInlineStart,scrollPadding,scrollPaddingBlock,scrollPaddingBlockStart,scrollPaddingBlockEnd,scrollPaddingInline,scrollPaddingInlineEnd,scrollPaddingInlineStart,scrollPaddingLeft,scrollPaddingRight,scrollPaddingTop,scrollPaddingBottom,scrollSnapAlign,scrollSnapStop,scrollSnapType,scrollSnapStrictness,scrollSnapMargin,scrollSnapMarginTop,scrollSnapMarginBottom,scrollSnapMarginLeft,scrollSnapMarginRight,scrollSnapCoordinate,scrollSnapDestination,scrollSnapPointsX,scrollSnapPointsY,scrollSnapTypeX,scrollSnapTypeY,scrollTimeline,scrollTimelineAxis,scrollTimelineName,touchAction,userSelect,overflow,overflowWrap,overflowX,overflowY,overflowAnchor,overflowBlock,overflowInline,overflowClipBox,overflowClipMargin,overscrollBehaviorBlock,overscrollBehaviorInline,fill,stroke,strokeWidth,strokeDasharray,strokeDashoffset,strokeLinecap,strokeLinejoin,strokeMiterlimit,strokeOpacity,srOnly,debug,appearance,backfaceVisibility,clipPath,hyphens,mask,maskImage,maskSize,textSizeAdjust,container,containerName,containerType,cursor,colorPalette,_hover,_focus,_focusWithin,_focusVisible,_disabled,_active,_visited,_target,_readOnly,_readWrite,_empty,_checked,_enabled,_expanded,_highlighted,_complete,_incomplete,_dragging,_before,_after,_firstLetter,_firstLine,_marker,_selection,_file,_backdrop,_first,_last,_only,_even,_odd,_firstOfType,_lastOfType,_onlyOfType,_peerFocus,_peerHover,_peerActive,_peerFocusWithin,_peerFocusVisible,_peerDisabled,_peerChecked,_peerInvalid,_peerExpanded,_peerPlaceholderShown,_groupFocus,_groupHover,_groupActive,_groupFocusWithin,_groupFocusVisible,_groupDisabled,_groupChecked,_groupExpanded,_groupInvalid,_indeterminate,_required,_valid,_invalid,_autofill,_inRange,_outOfRange,_placeholder,_placeholderShown,_pressed,_selected,_grabbed,_underValue,_overValue,_atValue,_default,_optional,_open,_closed,_fullscreen,_loading,_hidden,_current,_currentPage,_currentStep,_today,_unavailable,_rangeStart,_rangeEnd,_now,_topmost,_motionReduce,_motionSafe,_print,_landscape,_portrait,_dark,_light,_osDark,_osLight,_highContrast,_lessContrast,_moreContrast,_ltr,_rtl,_scrollbar,_scrollbarThumb,_scrollbarTrack,_horizontal,_vertical,_icon,_starting,_noscript,_invertedColors,_shapeSizeXs,_shapeSizeSm,_shapeSizeMd,_shapeSizeLg,_shapeSizeXl,_shapeRectangle,_shapePerson,_shapeBrowser,_shapeMobile,_shapeCylinder,_shapeStorage,_shapeQueue,_notDisabled,_reduceGraphics,_reduceGraphicsOnPan,_noReduceGraphics,_whenPanning,_smallZoom,_compoundTransparent,_edgeActive,_whenHovered,_whenSelectable,_whenSelected,_whenDimmed,_whenFocused,_p3,_srgb,_rec2020,xs,xsOnly,xsDown,sm,smOnly,smDown,md,mdOnly,mdDown,lg,lgOnly,lgDown,xl,xlOnly,xlDown,xsToSm,xsToMd,xsToLg,xsToXl,smToMd,smToLg,smToXl,mdToLg,mdToXl,lgToXl,@/xs,@/sm,@/md,@/lg,@likec4-root/xs,@likec4-root/sm,@likec4-root/md,@likec4-root/lg,@likec4-dialog/xs,@likec4-dialog/sm,@likec4-dialog/md,@likec4-dialog/lg,textStyle,layerStyle,animationStyle",lLe=sLe.split(","),cLe="WebkitAppearance,WebkitBorderBefore,WebkitBorderBeforeColor,WebkitBorderBeforeStyle,WebkitBorderBeforeWidth,WebkitBoxReflect,WebkitLineClamp,WebkitMask,WebkitMaskAttachment,WebkitMaskClip,WebkitMaskComposite,WebkitMaskImage,WebkitMaskOrigin,WebkitMaskPosition,WebkitMaskPositionX,WebkitMaskPositionY,WebkitMaskRepeat,WebkitMaskRepeatX,WebkitMaskRepeatY,WebkitMaskSize,WebkitOverflowScrolling,WebkitTapHighlightColor,WebkitTextFillColor,WebkitTextStroke,WebkitTextStrokeColor,WebkitTextStrokeWidth,WebkitTouchCallout,WebkitUserModify,WebkitUserSelect,accentColor,alignContent,alignItems,alignSelf,alignTracks,all,anchorName,anchorScope,animation,animationComposition,animationDelay,animationDirection,animationDuration,animationFillMode,animationIterationCount,animationName,animationPlayState,animationRange,animationRangeEnd,animationRangeStart,animationTimeline,animationTimingFunction,appearance,aspectRatio,backdropFilter,backfaceVisibility,background,backgroundAttachment,backgroundBlendMode,backgroundClip,backgroundColor,backgroundImage,backgroundOrigin,backgroundPosition,backgroundPositionX,backgroundPositionY,backgroundRepeat,backgroundSize,blockSize,border,borderBlock,borderBlockColor,borderBlockEnd,borderBlockEndColor,borderBlockEndStyle,borderBlockEndWidth,borderBlockStart,borderBlockStartColor,borderBlockStartStyle,borderBlockStartWidth,borderBlockStyle,borderBlockWidth,borderBottom,borderBottomColor,borderBottomLeftRadius,borderBottomRightRadius,borderBottomStyle,borderBottomWidth,borderCollapse,borderColor,borderEndEndRadius,borderEndStartRadius,borderImage,borderImageOutset,borderImageRepeat,borderImageSlice,borderImageSource,borderImageWidth,borderInline,borderInlineColor,borderInlineEnd,borderInlineEndColor,borderInlineEndStyle,borderInlineEndWidth,borderInlineStart,borderInlineStartColor,borderInlineStartStyle,borderInlineStartWidth,borderInlineStyle,borderInlineWidth,borderLeft,borderLeftColor,borderLeftStyle,borderLeftWidth,borderRadius,borderRight,borderRightColor,borderRightStyle,borderRightWidth,borderSpacing,borderStartEndRadius,borderStartStartRadius,borderStyle,borderTop,borderTopColor,borderTopLeftRadius,borderTopRightRadius,borderTopStyle,borderTopWidth,borderWidth,bottom,boxAlign,boxDecorationBreak,boxDirection,boxFlex,boxFlexGroup,boxLines,boxOrdinalGroup,boxOrient,boxPack,boxShadow,boxSizing,breakAfter,breakBefore,breakInside,captionSide,caret,caretColor,caretShape,clear,clip,clipPath,clipRule,color,colorInterpolationFilters,colorScheme,columnCount,columnFill,columnGap,columnRule,columnRuleColor,columnRuleStyle,columnRuleWidth,columnSpan,columnWidth,columns,contain,containIntrinsicBlockSize,containIntrinsicHeight,containIntrinsicInlineSize,containIntrinsicSize,containIntrinsicWidth,container,containerName,containerType,content,contentVisibility,counterIncrement,counterReset,counterSet,cursor,cx,cy,d,direction,display,dominantBaseline,emptyCells,fieldSizing,fill,fillOpacity,fillRule,filter,flex,flexBasis,flexDirection,flexFlow,flexGrow,flexShrink,flexWrap,float,floodColor,floodOpacity,font,fontFamily,fontFeatureSettings,fontKerning,fontLanguageOverride,fontOpticalSizing,fontPalette,fontSize,fontSizeAdjust,fontSmooth,fontStretch,fontStyle,fontSynthesis,fontSynthesisPosition,fontSynthesisSmallCaps,fontSynthesisStyle,fontSynthesisWeight,fontVariant,fontVariantAlternates,fontVariantCaps,fontVariantEastAsian,fontVariantEmoji,fontVariantLigatures,fontVariantNumeric,fontVariantPosition,fontVariationSettings,fontWeight,forcedColorAdjust,gap,grid,gridArea,gridAutoColumns,gridAutoFlow,gridAutoRows,gridColumn,gridColumnEnd,gridColumnGap,gridColumnStart,gridGap,gridRow,gridRowEnd,gridRowGap,gridRowStart,gridTemplate,gridTemplateAreas,gridTemplateColumns,gridTemplateRows,hangingPunctuation,height,hyphenateCharacter,hyphenateLimitChars,hyphens,imageOrientation,imageRendering,imageResolution,imeMode,initialLetter,initialLetterAlign,inlineSize,inset,insetBlock,insetBlockEnd,insetBlockStart,insetInline,insetInlineEnd,insetInlineStart,interpolateSize,isolation,justifyContent,justifyItems,justifySelf,justifyTracks,left,letterSpacing,lightingColor,lineBreak,lineClamp,lineHeight,lineHeightStep,listStyle,listStyleImage,listStylePosition,listStyleType,margin,marginBlock,marginBlockEnd,marginBlockStart,marginBottom,marginInline,marginInlineEnd,marginInlineStart,marginLeft,marginRight,marginTop,marginTrim,marker,markerEnd,markerMid,markerStart,mask,maskBorder,maskBorderMode,maskBorderOutset,maskBorderRepeat,maskBorderSlice,maskBorderSource,maskBorderWidth,maskClip,maskComposite,maskImage,maskMode,maskOrigin,maskPosition,maskRepeat,maskSize,maskType,masonryAutoFlow,mathDepth,mathShift,mathStyle,maxBlockSize,maxHeight,maxInlineSize,maxLines,maxWidth,minBlockSize,minHeight,minInlineSize,minWidth,mixBlendMode,objectFit,objectPosition,offset,offsetAnchor,offsetDistance,offsetPath,offsetPosition,offsetRotate,opacity,order,orphans,outline,outlineColor,outlineOffset,outlineStyle,outlineWidth,overflow,overflowAnchor,overflowBlock,overflowClipBox,overflowClipMargin,overflowInline,overflowWrap,overflowX,overflowY,overlay,overscrollBehavior,overscrollBehaviorBlock,overscrollBehaviorInline,overscrollBehaviorX,overscrollBehaviorY,padding,paddingBlock,paddingBlockEnd,paddingBlockStart,paddingBottom,paddingInline,paddingInlineEnd,paddingInlineStart,paddingLeft,paddingRight,paddingTop,page,pageBreakAfter,pageBreakBefore,pageBreakInside,paintOrder,perspective,perspectiveOrigin,placeContent,placeItems,placeSelf,pointerEvents,position,positionAnchor,positionArea,positionTry,positionTryFallbacks,positionTryOrder,positionVisibility,printColorAdjust,quotes,r,resize,right,rotate,rowGap,rubyAlign,rubyMerge,rubyPosition,rx,ry,scale,scrollBehavior,scrollMargin,scrollMarginBlock,scrollMarginBlockEnd,scrollMarginBlockStart,scrollMarginBottom,scrollMarginInline,scrollMarginInlineEnd,scrollMarginInlineStart,scrollMarginLeft,scrollMarginRight,scrollMarginTop,scrollPadding,scrollPaddingBlock,scrollPaddingBlockEnd,scrollPaddingBlockStart,scrollPaddingBottom,scrollPaddingInline,scrollPaddingInlineEnd,scrollPaddingInlineStart,scrollPaddingLeft,scrollPaddingRight,scrollPaddingTop,scrollSnapAlign,scrollSnapCoordinate,scrollSnapDestination,scrollSnapPointsX,scrollSnapPointsY,scrollSnapStop,scrollSnapType,scrollSnapTypeX,scrollSnapTypeY,scrollTimeline,scrollTimelineAxis,scrollTimelineName,scrollbarColor,scrollbarGutter,scrollbarWidth,shapeImageThreshold,shapeMargin,shapeOutside,shapeRendering,stopColor,stopOpacity,stroke,strokeDasharray,strokeDashoffset,strokeLinecap,strokeLinejoin,strokeMiterlimit,strokeOpacity,strokeWidth,tabSize,tableLayout,textAlign,textAlignLast,textAnchor,textBox,textBoxEdge,textBoxTrim,textCombineUpright,textDecoration,textDecorationColor,textDecorationLine,textDecorationSkip,textDecorationSkipInk,textDecorationStyle,textDecorationThickness,textEmphasis,textEmphasisColor,textEmphasisPosition,textEmphasisStyle,textIndent,textJustify,textOrientation,textOverflow,textRendering,textShadow,textSizeAdjust,textSpacingTrim,textTransform,textUnderlineOffset,textUnderlinePosition,textWrap,textWrapMode,textWrapStyle,timelineScope,top,touchAction,transform,transformBox,transformOrigin,transformStyle,transition,transitionBehavior,transitionDelay,transitionDuration,transitionProperty,transitionTimingFunction,translate,unicodeBidi,userSelect,vectorEffect,verticalAlign,viewTimeline,viewTimelineAxis,viewTimelineInset,viewTimelineName,viewTransitionName,visibility,whiteSpace,whiteSpaceCollapse,widows,width,willChange,wordBreak,wordSpacing,wordWrap,writingMode,x,y,zIndex,zoom,alignmentBaseline,baselineShift,colorInterpolation,colorRendering,glyphOrientationVertical",dLe=cLe.split(",").concat(lLe),uLe=new Map(dLe.map(e=>[e,!0])),pLe=/&|@/,WG=go(e=>uLe.has(e)||e.startsWith("--")||pLe.test(e));const hLe=(e,r)=>!r.includes(e)&&!WG(e),fLe=(e,r)=>e.__shouldForwardProps__&&r?n=>e.__shouldForwardProps__(n)&&r(n):r,mLe=(e,r)=>{if(e&&!r)return e;if(!e&&r)return r;if(e.__cva__&&r.__cva__||e.__recipe__&&r.__recipe__)return e.merge(r);const n=new TypeError("Cannot merge cva with recipe. Please use either cva or recipe.");throw TypeError.captureStackTrace?.(n),n},gLe=e=>typeof e=="string"?e:e?.displayName||e?.name||"Component";function SS(e,r={},n={}){const o=r.__cva__||r.__recipe__?r:o0(r),a=n.shouldForwardProp||hLe,i=f=>n.forwardProps?.includes(f)?!0:a(f,o.variantKeys),s=Object.assign(n.dataAttr&&r.__name__?{"data-recipe":r.__name__}:{},n.defaultProps),l=mLe(e.__cva__,o),c=fLe(e,i),d=e.__base__||e,u=E.forwardRef(function(f,g){const{as:b=d,unstyled:x,children:w,...k}=f,C=E.useMemo(()=>Object.assign({},s,k),[k]),[_,T,A,R,D]=E.useMemo(()=>oo(C,LE.keys,c,l.variantKeys,WG),[C]);function N(){const{css:F,...L}=R,U=l.__getCompoundVariantCss__?.(A);return et(l(A,!1),be(U,L,F),C.className)}function P(){const{css:F,...L}=R,U=l.raw(A);return et(be(U,L,F),C.className)}const O=()=>{if(x){const{css:F,...L}=R;return et(be(L,F),C.className)}return r.__recipe__?N():P()};return E.createElement(b,{ref:g,...T,...D,...LE(_),className:O()},w??C.children)}),h=gLe(d);return u.displayName=`styled.${h}`,u.__cva__=l,u.__base__=d,u.__shouldForwardProps__=i,u}function yLe(){const e=new Map;return new Proxy(SS,{apply(r,n,o){return SS(...o)},get(r,n){return e.has(n)||e.set(n,SS(n)),e.get(n)}})}const Id=yLe(),YG={transform(e){return e}},bLe=(e={})=>{const r=n0(YG,e);return YG.transform(r,r0)},zr=E.forwardRef(function(e,r){const[n,o]=oo(e,[]),a=bLe(n),i={ref:r,...a,...o};return E.createElement(Id.div,i)}),GG={transform(e){const{justify:r,gap:n,...o}=e;return{display:"flex",alignItems:"center",justifyContent:r,gap:n,flexDirection:"column",...o}},defaultValues:{alignItems:"stretch",gap:"sm"}},CS=(e={})=>{const r=n0(GG,e);return GG.transform(r,r0)},Z0=e=>be(CS(e));Z0.raw=CS;const Ap=E.forwardRef(function(e,r){const[n,o]=oo(e,["justify","gap"]),a=CS(n),i={ref:r,...a,...o};return E.createElement(Id.div,i)}),XG={transform(e){const{justify:r,gap:n,...o}=e;return{display:"flex",alignItems:"center",justifyContent:r,gap:n,flexDirection:"row",...o}},defaultValues:{gap:"sm"}},TS=(e={})=>{const r=n0(XG,e);return XG.transform(r,r0)},Zn=e=>be(TS(e));Zn.raw=TS;const sn=E.forwardRef(function(e,r){const[n,o]=oo(e,["justify","gap"]),a=TS(n),i={ref:r,...a,...o};return E.createElement(Id.div,i)}),KG={transform(e){return{position:"relative",maxWidth:"8xl",mx:"auto",px:{base:"4",md:"6",lg:"8"},...e}}},ZG=(e={})=>{const r=n0(KG,e);return KG.transform(r,r0)},QG=e=>be(ZG(e));QG.raw=ZG;const JG={transform(e,{map:r,isCssUnit:n,isCssVar:o}){const{inline:a,block:i,...s}=e,l=c=>n(c)||o(c)?c:`token(spacing.${c}, ${c})`;return{"--bleed-x":r(a,l),"--bleed-y":r(i,l),marginInline:"calc(var(--bleed-x, 0) * -1)",marginBlock:"calc(var(--bleed-y, 0) * -1)",...s}},defaultValues:{inline:"0",block:"0"}},eX=(e={})=>{const r=n0(JG,e);return JG.transform(r,r0)},tX=e=>be(eX(e));tX.raw=eX;const vLe=E.createContext(null),AS={didCatch:!1,error:null};let RS=class extends E.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=AS}static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(){const{error:e}=this.state;if(e!==null){for(var r,n,o=arguments.length,a=new Array(o),i=0;i0&&arguments[0]!==void 0?arguments[0]:[],r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e.length!==r.length||e.some((n,o)=>!Object.is(n,r[o]))}const wLe=[["path",{d:"M18 6l-12 12",key:"svg-0"}],["path",{d:"M6 6l12 12",key:"svg-1"}]],Rp=Nt("outline","x","X",wLe);function NS({error:e,resetErrorBoundary:r}){const n=e instanceof Error?e.message:"Unknown error",o=E.useRef(null);return E.useEffect(()=>{o.current?.showModal()},[]),y.jsx("dialog",{ref:o,className:be({margin:"0",padding:"0",position:"fixed",top:"10",left:"10",width:"[calc(100vw - ({spacing.10} * 2))]",height:"max-content",maxHeight:"[calc(100vh - ({spacing.10} * 3))]",background:"likec4.overlay.body",rounded:"sm",borderWidth:3,borderColor:"likec4.overlay.border",shadow:"xl",outline:"none",_backdrop:{cursor:"zoom-out",backdropFilter:"blur(18px)",bg:"[color-mix(in oklab, {colors.likec4.overlay.backdrop} 60%, transparent)]"}}),onClick:a=>{if(a.stopPropagation(),a.target?.nodeName?.toUpperCase()==="DIALOG"){o.current?.close();return}},onClose:a=>{a.stopPropagation(),r()},children:y.jsxs(sn,{p:"xl",gap:"lg",alignItems:"flex-start",flexWrap:"nowrap",children:[y.jsx(Ba,{size:"md",radius:"xl",color:"red",children:y.jsx(Rp,{style:{width:20,height:20}})}),y.jsxs(Ap,{flex:"1",children:[y.jsx(ft,{fz:"md",children:"Oops, something went wrong"}),y.jsx(pa,{maw:"100%",mah:400,type:"auto",children:y.jsx(ft,{fz:"md",c:"red",style:{whiteSpace:"pre-wrap",userSelect:"all"},children:n})}),y.jsxs(sn,{gap:"md",mt:"md",children:[y.jsx(Kn,{size:"sm",variant:"default",onClick:()=>r(),children:"Reset"}),y.jsx(ft,{fz:"sm",c:"dimmed",children:"See console for more details and report the issue if it persists."})]})]})]})})}function rX(e){return y.jsx(RS,{FallbackComponent:NS,onError:(r,n)=>{console.error(r,n)},...e})}const nX={enableReadOnly:!0,enableCompareWithLatest:!1,enableControls:!1,enableDynamicViewWalkthrough:!1,enableElementDetails:!1,enableFocusMode:!1,enableNavigateTo:!1,enableNotations:!1,enableRelationshipBrowser:!1,enableRelationshipDetails:!1,enableSearch:!1,enableNavigationButtons:!1,enableFitView:!1,enableVscode:!1,enableElementTags:!1},DS=E.createContext(nX);function Np({children:e,features:r,overrides:n}){const o=E.useContext(DS),[a,i]=E.useState(o);return E.useEffect(()=>{i(s=>{const l={...o,...r,...n};return an(s,l)?s:l})},[o,r,n]),y.jsx(DS.Provider,{value:a,children:e})}const kLe={enableControls:!1,enableReadOnly:!0,enableCompareWithLatest:!1};Np.Overlays=({children:e})=>y.jsx(Np,{overrides:kLe,children:e});function _r(){return E.useContext(DS)}function _Le({feature:e,children:r,and:n=!0}){return _r()[`enable${e}`]===!0&&n?y.jsx(y.Fragment,{children:r}):null}function ELe(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global}function SLe(){const e=ELe();if(e.__xstate__)return e.__xstate__}const CLe=e=>{if(typeof window>"u")return;const r=SLe();r&&r.register(e)};class oX{constructor(r){this._process=r,this._active=!1,this._current=null,this._last=null}start(){this._active=!0,this.flush()}clear(){this._current&&(this._current.next=null,this._last=this._current)}enqueue(r){const n={value:r,next:null};if(this._current){this._last.next=n,this._last=n;return}this._current=n,this._last=n,this._active&&this.flush()}flush(){for(;this._current;){const r=this._current;this._process(r.value),this._current=r.next}this._last=null}}const aX=".",TLe="",iX="",ALe="#",RLe="*",sX="xstate.init",NLe="xstate.error",Q0="xstate.stop";function DLe(e,r){return{type:`xstate.after.${e}.${r}`}}function $S(e,r){return{type:`xstate.done.state.${e}`,output:r}}function $Le(e,r){return{type:`xstate.done.actor.${e}`,output:r,actorId:e}}function lX(e,r){return{type:`xstate.error.actor.${e}`,error:r,actorId:e}}function cX(e){return{type:sX,input:e}}function xl(e){setTimeout(()=>{throw e})}const PLe=typeof Symbol=="function"&&Symbol.observable||"@@observable";function dX(e,r){const n=uX(e),o=uX(r);return typeof o=="string"?typeof n=="string"?o===n:!1:typeof n=="string"?n in o:Object.keys(n).every(a=>a in o?dX(n[a],o[a]):!1)}function PS(e){if(fX(e))return e;const r=[];let n="";for(let o=0;otypeof r>"u"||typeof r=="string"?{target:r}:r)}function mX(e){if(!(e===void 0||e===TLe))return bc(e)}function ow(e,r,n){const o=typeof e=="object",a=o?e:void 0;return{next:(o?e.next:e)?.bind(a),error:(o?e.error:r)?.bind(a),complete:(o?e.complete:n)?.bind(a)}}function gX(e,r){return`${r}.${e}`}function zS(e,r){const n=r.match(/^xstate\.invoke\.(\d+)\.(.*)/);if(!n)return e.implementations.actors[r];const[,o,a]=n,i=e.getStateNodeById(a).config.invoke;return(Array.isArray(i)?i[o]:i).src}function yX(e,r){return`${e.sessionId}.${r}`}let ILe=0;function OLe(e,r){const n=new Map,o=new Map,a=new WeakMap,i=new Set,s={},{clock:l,logger:c}=r,d={schedule:(f,g,b,x,w=Math.random().toString(36).slice(2))=>{const k={source:f,target:g,event:b,delay:x,id:w,startedAt:Date.now()},C=yX(f,w);h._snapshot._scheduledEvents[C]=k;const _=l.setTimeout(()=>{delete s[C],delete h._snapshot._scheduledEvents[C],h._relay(f,g,b)},x);s[C]=_},cancel:(f,g)=>{const b=yX(f,g),x=s[b];delete s[b],delete h._snapshot._scheduledEvents[b],x!==void 0&&l.clearTimeout(x)},cancelAll:f=>{for(const g in h._snapshot._scheduledEvents){const b=h._snapshot._scheduledEvents[g];b.source===f&&d.cancel(f,b.id)}}},u=f=>{if(!i.size)return;const g={...f,rootId:e.sessionId};i.forEach(b=>b.next?.(g))},h={_snapshot:{_scheduledEvents:(r?.snapshot&&r.snapshot.scheduler)??{}},_bookId:()=>`x:${ILe++}`,_register:(f,g)=>(n.set(f,g),f),_unregister:f=>{n.delete(f.sessionId);const g=a.get(f);g!==void 0&&(o.delete(g),a.delete(f))},get:f=>o.get(f),getAll:()=>Object.fromEntries(o.entries()),_set:(f,g)=>{const b=o.get(f);if(b&&b!==g)throw new Error(`Actor with system ID '${f}' already exists.`);o.set(f,g),a.set(g,f)},inspect:f=>{const g=ow(f);return i.add(g),{unsubscribe(){i.delete(g)}}},_sendInspectionEvent:u,_relay:(f,g,b)=>{h._sendInspectionEvent({type:"@xstate.event",sourceRef:f,actorRef:g,event:b}),g._send(b)},scheduler:d,getSnapshot:()=>({_scheduledEvents:{...h._snapshot._scheduledEvents}}),start:()=>{const f=h._snapshot._scheduledEvents;h._snapshot._scheduledEvents={};for(const g in f){const{source:b,target:x,event:w,delay:k,id:C}=f[g];d.schedule(b,x,w,k,C)}},_clock:l,_logger:c};return h}let IS=!1;const OS=1;let ha=(function(e){return e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped",e})({});const jLe={clock:{setTimeout:(e,r)=>setTimeout(e,r),clearTimeout:e=>clearTimeout(e)},logger:console.log.bind(console),devTools:!1};class LLe{constructor(r,n){this.logic=r,this._snapshot=void 0,this.clock=void 0,this.options=void 0,this.id=void 0,this.mailbox=new oX(this._process.bind(this)),this.observers=new Set,this.eventListeners=new Map,this.logger=void 0,this._processingStatus=ha.NotStarted,this._parent=void 0,this._syncSnapshot=void 0,this.ref=void 0,this._actorScope=void 0,this.systemId=void 0,this.sessionId=void 0,this.system=void 0,this._doneEvent=void 0,this.src=void 0,this._deferred=[];const o={...jLe,...n},{clock:a,logger:i,parent:s,syncSnapshot:l,id:c,systemId:d,inspect:u}=o;this.system=s?s.system:OLe(this,{clock:a,logger:i}),u&&!s&&this.system.inspect(ow(u)),this.sessionId=this.system._bookId(),this.id=c??this.sessionId,this.logger=n?.logger??this.system._logger,this.clock=n?.clock??this.system._clock,this._parent=s,this._syncSnapshot=l,this.options=o,this.src=o.src??r,this.ref=this,this._actorScope={self:this,id:this.id,sessionId:this.sessionId,logger:this.logger,defer:h=>{this._deferred.push(h)},system:this.system,stopChild:h=>{if(h._parent!==this)throw new Error(`Cannot stop child actor ${h.id} of ${this.id} because it is not a child`);h._stop()},emit:h=>{const f=this.eventListeners.get(h.type),g=this.eventListeners.get("*");if(!f&&!g)return;const b=[...f?f.values():[],...g?g.values():[]];for(const x of b)try{x(h)}catch(w){xl(w)}},actionExecutor:h=>{const f=()=>{if(this._actorScope.system._sendInspectionEvent({type:"@xstate.action",actorRef:this,action:{type:h.type,params:h.params}}),!h.exec)return;const g=IS;try{IS=!0,h.exec(h.info,h.params)}finally{IS=g}};this._processingStatus===ha.Running?f():this._deferred.push(f)}},this.send=this.send.bind(this),this.system._sendInspectionEvent({type:"@xstate.actor",actorRef:this}),d&&(this.systemId=d,this.system._set(d,this)),this._initState(n?.snapshot??n?.state),d&&this._snapshot.status!=="active"&&this.system._unregister(this)}_initState(r){try{this._snapshot=r?this.logic.restoreSnapshot?this.logic.restoreSnapshot(r,this._actorScope):r:this.logic.getInitialSnapshot(this._actorScope,this.options?.input)}catch(n){this._snapshot={status:"error",output:void 0,error:n}}}update(r,n){this._snapshot=r;let o;for(;o=this._deferred.shift();)try{o()}catch(a){this._deferred.length=0,this._snapshot={...r,status:"error",error:a}}switch(this._snapshot.status){case"active":for(const a of this.observers)try{a.next?.(r)}catch(i){xl(i)}break;case"done":for(const a of this.observers)try{a.next?.(r)}catch(i){xl(i)}this._stopProcedure(),this._complete(),this._doneEvent=$Le(this.id,this._snapshot.output),this._parent&&this.system._relay(this,this._parent,this._doneEvent);break;case"error":this._error(this._snapshot.error);break}this.system._sendInspectionEvent({type:"@xstate.snapshot",actorRef:this,event:n,snapshot:r})}subscribe(r,n,o){const a=ow(r,n,o);if(this._processingStatus!==ha.Stopped)this.observers.add(a);else switch(this._snapshot.status){case"done":try{a.complete?.()}catch(i){xl(i)}break;case"error":{const i=this._snapshot.error;if(!a.error)xl(i);else try{a.error(i)}catch(s){xl(s)}break}}return{unsubscribe:()=>{this.observers.delete(a)}}}on(r,n){let o=this.eventListeners.get(r);o||(o=new Set,this.eventListeners.set(r,o));const a=n.bind(void 0);return o.add(a),{unsubscribe:()=>{o.delete(a)}}}start(){if(this._processingStatus===ha.Running)return this;this._syncSnapshot&&this.subscribe({next:n=>{n.status==="active"&&this.system._relay(this,this._parent,{type:`xstate.snapshot.${this.id}`,snapshot:n})},error:()=>{}}),this.system._register(this.sessionId,this),this.systemId&&this.system._set(this.systemId,this),this._processingStatus=ha.Running;const r=cX(this.options.input);switch(this.system._sendInspectionEvent({type:"@xstate.event",sourceRef:this._parent,actorRef:this,event:r}),this._snapshot.status){case"done":return this.update(this._snapshot,r),this;case"error":return this._error(this._snapshot.error),this}if(this._parent||this.system.start(),this.logic.start)try{this.logic.start(this._snapshot,this._actorScope)}catch(n){return this._snapshot={...this._snapshot,status:"error",error:n},this._error(n),this}return this.update(this._snapshot,r),this.options.devTools&&this.attachDevTools(),this.mailbox.start(),this}_process(r){let n,o;try{n=this.logic.transition(this._snapshot,r,this._actorScope)}catch(a){o={err:a}}if(o){const{err:a}=o;this._snapshot={...this._snapshot,status:"error",error:a},this._error(a);return}this.update(n,r),r.type===Q0&&(this._stopProcedure(),this._complete())}_stop(){return this._processingStatus===ha.Stopped?this:(this.mailbox.clear(),this._processingStatus===ha.NotStarted?(this._processingStatus=ha.Stopped,this):(this.mailbox.enqueue({type:Q0}),this))}stop(){if(this._parent)throw new Error("A non-root actor cannot be stopped directly.");return this._stop()}_complete(){for(const r of this.observers)try{r.complete?.()}catch(n){xl(n)}this.observers.clear()}_reportError(r){if(!this.observers.size){this._parent||xl(r);return}let n=!1;for(const o of this.observers){const a=o.error;n||=!a;try{a?.(r)}catch(i){xl(i)}}this.observers.clear(),n&&xl(r)}_error(r){this._stopProcedure(),this._reportError(r),this._parent&&this.system._relay(this,this._parent,lX(this.id,r))}_stopProcedure(){return this._processingStatus!==ha.Running?this:(this.system.scheduler.cancelAll(this),this.mailbox.clear(),this.mailbox=new oX(this._process.bind(this)),this._processingStatus=ha.Stopped,this.system._unregister(this),this)}_send(r){this._processingStatus!==ha.Stopped&&this.mailbox.enqueue(r)}send(r){this.system._relay(void 0,this,r)}attachDevTools(){const{devTools:r}=this.options;r&&(typeof r=="function"?r:CLe)(this)}toJSON(){return{xstate$$type:OS,id:this.id}}getPersistedSnapshot(r){return this.logic.getPersistedSnapshot(this._snapshot,r)}[PLe](){return this}getSnapshot(){return this._snapshot}}function mm(e,...[r]){return new LLe(e,r)}function BLe(e,r,n,o,{sendId:a}){const i=typeof a=="function"?a(n,o):a;return[r,{sendId:i},void 0]}function FLe(e,r){e.defer(()=>{e.system.scheduler.cancel(e.self,r.sendId)})}function wi(e){function r(n,o){}return r.type="xstate.cancel",r.sendId=e,r.resolve=BLe,r.execute=FLe,r}function HLe(e,r,n,o,{id:a,systemId:i,src:s,input:l,syncSnapshot:c}){const d=typeof s=="string"?zS(r.machine,s):s,u=typeof a=="function"?a(n):a;let h,f;return d&&(f=typeof l=="function"?l({context:r.context,event:n.event,self:e.self}):l,h=mm(d,{id:u,src:s,parent:e.self,syncSnapshot:c,systemId:i,input:f})),[Pp(r,{children:{...r.children,[u]:h}}),{id:a,systemId:i,actorRef:h,src:s,input:f},void 0]}function VLe(e,{actorRef:r}){r&&e.defer(()=>{r._processingStatus!==ha.Stopped&&r.start()})}function aw(...[e,{id:r,systemId:n,input:o,syncSnapshot:a=!1}={}]){function i(s,l){}return i.type="xstate.spawnChild",i.id=r,i.systemId=n,i.src=e,i.input=o,i.syncSnapshot=a,i.resolve=HLe,i.execute=VLe,i}function qLe(e,r,n,o,{actorRef:a}){const i=typeof a=="function"?a(n,o):a,s=typeof i=="string"?r.children[i]:i;let l=r.children;return s&&(l={...l},delete l[s.id]),[Pp(r,{children:l}),s,void 0]}function ULe(e,r){if(r){if(e.system._unregister(r),r._processingStatus!==ha.Running){e.stopChild(r);return}e.defer(()=>{e.stopChild(r)})}}function J0(e){function r(n,o){}return r.type="xstate.stopChild",r.actorRef=e,r.resolve=qLe,r.execute=ULe,r}function iw(e,r,n,o){const{machine:a}=o,i=typeof e=="function",s=i?e:a.implementations.guards[typeof e=="string"?e:e.type];if(!i&&!s)throw new Error(`Guard '${typeof e=="string"?e:e.type}' is not implemented.'.`);if(typeof s!="function")return iw(s,r,n,o);const l={context:r,event:n},c=i||typeof e=="string"?void 0:"params"in e?typeof e.params=="function"?e.params({context:r,event:n}):e.params:void 0;return"check"in s?s.check(o,l,s):s(l,c)}const jS=e=>e.type==="atomic"||e.type==="final";function gm(e){return Object.values(e.states).filter(r=>r.type!=="history")}function ey(e,r){const n=[];if(r===e)return n;let o=e.parent;for(;o&&o!==r;)n.push(o),o=o.parent;return n}function sw(e){const r=new Set(e),n=vX(r);for(const o of r)if(o.type==="compound"&&(!n.get(o)||!n.get(o).length))kX(o).forEach(a=>r.add(a));else if(o.type==="parallel"){for(const a of gm(o))if(a.type!=="history"&&!r.has(a)){const i=kX(a);for(const s of i)r.add(s)}}for(const o of r){let a=o.parent;for(;a;)r.add(a),a=a.parent}return r}function bX(e,r){const n=r.get(e);if(!n)return{};if(e.type==="compound"){const a=n[0];if(a){if(jS(a))return a.key}else return{}}const o={};for(const a of n)o[a.key]=bX(a,r);return o}function vX(e){const r=new Map;for(const n of e)r.has(n)||r.set(n,[]),n.parent&&(r.has(n.parent)||r.set(n.parent,[]),r.get(n.parent).push(n));return r}function xX(e,r){const n=sw(r);return bX(e,vX(n))}function LS(e,r){return r.type==="compound"?gm(r).some(n=>n.type==="final"&&e.has(n)):r.type==="parallel"?gm(r).every(n=>LS(e,n)):r.type==="final"}const lw=e=>e[0]===ALe;function WLe(e,r){return e.transitions.get(r)||[...e.transitions.keys()].filter(n=>{if(n===RLe)return!0;if(!n.endsWith(".*"))return!1;const o=n.split("."),a=r.split(".");for(let i=0;io.length-n.length).flatMap(n=>e.transitions.get(n))}function YLe(e){const r=e.config.after;if(!r)return[];const n=o=>{const a=DLe(o,e.id),i=a.type;return e.entry.push(fa(a,{id:i,delay:o})),e.exit.push(wi(i)),i};return Object.keys(r).flatMap(o=>{const a=r[o],i=typeof a=="string"?{target:a}:a,s=Number.isNaN(+o)?o:+o,l=n(s);return bc(i).map(c=>({...c,event:l,delay:s}))}).map(o=>{const{delay:a}=o;return{...Dp(e,o.event,o),delay:a}})}function Dp(e,r,n){const o=mX(n.target),a=n.reenter??!1,i=KLe(e,o),s={...n,actions:bc(n.actions),guard:n.guard,target:i,source:e,reenter:a,eventType:r,toJSON:()=>({...s,source:`#${e.id}`,target:i?i.map(l=>`#${l.id}`):void 0})};return s}function GLe(e){const r=new Map;if(e.config.on)for(const n of Object.keys(e.config.on)){if(n===iX)throw new Error('Null events ("") cannot be specified as a transition key. Use `always: { ... }` instead.');const o=e.config.on[n];r.set(n,fm(o).map(a=>Dp(e,n,a)))}if(e.config.onDone){const n=`xstate.done.state.${e.id}`;r.set(n,fm(e.config.onDone).map(o=>Dp(e,n,o)))}for(const n of e.invoke){if(n.onDone){const o=`xstate.done.actor.${n.id}`;r.set(o,fm(n.onDone).map(a=>Dp(e,o,a)))}if(n.onError){const o=`xstate.error.actor.${n.id}`;r.set(o,fm(n.onError).map(a=>Dp(e,o,a)))}if(n.onSnapshot){const o=`xstate.snapshot.${n.id}`;r.set(o,fm(n.onSnapshot).map(a=>Dp(e,o,a)))}}for(const n of e.after){let o=r.get(n.eventType);o||(o=[],r.set(n.eventType,o)),o.push(n)}return r}function XLe(e,r){const n=typeof r=="string"?e.states[r]:r?e.states[r.target]:void 0;if(!n&&r)throw new Error(`Initial state node "${r}" not found on parent state node #${e.id}`);const o={source:e,actions:!r||typeof r=="string"?[]:bc(r.actions),eventType:null,reenter:!1,target:n?[n]:[],toJSON:()=>({...o,source:`#${e.id}`,target:n?[`#${n.id}`]:[]})};return o}function KLe(e,r){if(r!==void 0)return r.map(n=>{if(typeof n!="string")return n;if(lw(n))return e.machine.getStateNodeById(n);const o=n[0]===aX;if(o&&!e.parent)return cw(e,n.slice(1));const a=o?e.key+n:n;if(e.parent)try{return cw(e.parent,a)}catch(i){throw new Error(`Invalid transition definition for state node '${e.id}': -${i.message}`)}else throw new Error(`Invalid target: "${n}" is not a valid target from the root node. Did you mean ".${n}"?`)})}function wX(e){const r=mX(e.config.target);return r?{target:r.map(n=>typeof n=="string"?cw(e.parent,n):n)}:e.parent.initial}function $p(e){return e.type==="history"}function kX(e){const r=_X(e);for(const n of r)for(const o of ey(n,e))r.add(o);return r}function _X(e){const r=new Set;function n(o){if(!r.has(o)){if(r.add(o),o.type==="compound")n(o.initial.target[0]);else if(o.type==="parallel")for(const a of gm(o))n(a)}}return n(e),r}function ym(e,r){if(lw(r))return e.machine.getStateNodeById(r);if(!e.states)throw new Error(`Unable to retrieve child state '${r}' from '${e.id}'; no child states exist.`);const n=e.states[r];if(!n)throw new Error(`Child state '${r}' does not exist on '${e.id}'`);return n}function cw(e,r){if(typeof r=="string"&&lw(r))try{return e.machine.getStateNodeById(r)}catch{}const n=PS(r).slice();let o=e;for(;n.length;){const a=n.shift();if(!a.length)break;o=ym(o,a)}return o}function dw(e,r){if(typeof r=="string"){const a=e.states[r];if(!a)throw new Error(`State '${r}' does not exist on '${e.id}'`);return[e,a]}const n=Object.keys(r),o=n.map(a=>ym(e,a)).filter(Boolean);return[e.machine.root,e].concat(o,n.reduce((a,i)=>{const s=ym(e,i);if(!s)return a;const l=dw(s,r[i]);return a.concat(l)},[]))}function ZLe(e,r,n,o){const a=ym(e,r).next(n,o);return!a||!a.length?e.next(n,o):a}function QLe(e,r,n,o){const a=Object.keys(r),i=ym(e,a[0]),s=BS(i,r[a[0]],n,o);return!s||!s.length?e.next(n,o):s}function JLe(e,r,n,o){const a=[];for(const i of Object.keys(r)){const s=r[i];if(!s)continue;const l=ym(e,i),c=BS(l,s,n,o);c&&a.push(...c)}return a.length?a:e.next(n,o)}function BS(e,r,n,o){return typeof r=="string"?ZLe(e,r,n,o):Object.keys(r).length===1?QLe(e,r,n,o):JLe(e,r,n,o)}function eBe(e){return Object.keys(e.states).map(r=>e.states[r]).filter(r=>r.type==="history")}function Od(e,r){let n=e;for(;n.parent&&n.parent!==r;)n=n.parent;return n.parent===r}function tBe(e,r){const n=new Set(e),o=new Set(r);for(const a of n)if(o.has(a))return!0;for(const a of o)if(n.has(a))return!0;return!1}function EX(e,r,n){const o=new Set;for(const a of e){let i=!1;const s=new Set;for(const l of o)if(tBe(HS([a],r,n),HS([l],r,n)))if(Od(a.source,l.source))s.add(l);else{i=!0;break}if(!i){for(const l of s)o.delete(l);o.add(a)}}return Array.from(o)}function rBe(e){const[r,...n]=e;for(const o of ey(r,void 0))if(n.every(a=>Od(a,o)))return o}function FS(e,r){if(!e.target)return[];const n=new Set;for(const o of e.target)if($p(o))if(r[o.id])for(const a of r[o.id])n.add(a);else for(const a of FS(wX(o),r))n.add(a);else n.add(o);return[...n]}function SX(e,r){const n=FS(e,r);if(!n)return;if(!e.reenter&&n.every(a=>a===e.source||Od(a,e.source)))return e.source;const o=rBe(n.concat(e.source));if(o)return o;if(!e.reenter)return e.source.machine.root}function HS(e,r,n){const o=new Set;for(const a of e)if(a.target?.length){const i=SX(a,n);a.reenter&&a.source===i&&o.add(i);for(const s of r)Od(s,i)&&o.add(s)}return[...o]}function nBe(e,r){if(e.length!==r.size)return!1;for(const n of e)if(!r.has(n))return!1;return!0}function VS(e,r,n,o,a,i){if(!e.length)return r;const s=new Set(r._nodes);let l=r.historyValue;const c=EX(e,s,l);let d=r;a||([d,l]=sBe(d,o,n,c,s,l,i,n.actionExecutor)),d=vm(d,o,n,c.flatMap(h=>h.actions),i,void 0),d=aBe(d,o,n,c,s,i,l,a);const u=[...s];d.status==="done"&&(d=vm(d,o,n,u.sort((h,f)=>f.order-h.order).flatMap(h=>h.exit),i,void 0));try{return l===r.historyValue&&nBe(r._nodes,s)?d:Pp(d,{_nodes:u,historyValue:l})}catch(h){throw h}}function oBe(e,r,n,o,a){if(o.output===void 0)return;const i=$S(a.id,a.output!==void 0&&a.parent?MS(a.output,e.context,r,n.self):void 0);return MS(o.output,e.context,i,n.self)}function aBe(e,r,n,o,a,i,s,l){let c=e;const d=new Set,u=new Set;iBe(o,s,u,d),l&&u.add(e.machine.root);const h=new Set;for(const f of[...d].sort((g,b)=>g.order-b.order)){a.add(f);const g=[];g.push(...f.entry);for(const b of f.invoke)g.push(aw(b.src,{...b,syncSnapshot:!!b.onSnapshot}));if(u.has(f)){const b=f.initial.actions;g.push(...b)}if(c=vm(c,r,n,g,i,f.invoke.map(b=>b.id)),f.type==="final"){const b=f.parent;let x=b?.type==="parallel"?b:b?.parent,w=x||f;for(b?.type==="compound"&&i.push($S(b.id,f.output!==void 0?MS(f.output,c.context,r,n.self):void 0));x?.type==="parallel"&&!h.has(x)&&LS(a,x);)h.add(x),i.push($S(x.id)),w=x,x=x.parent;if(x)continue;c=Pp(c,{status:"done",output:oBe(c,r,n,c.machine.root,w)})}}return c}function iBe(e,r,n,o){for(const a of e){const i=SX(a,r);for(const l of a.target||[])!$p(l)&&(a.source!==l||a.source!==i||a.reenter)&&(o.add(l),n.add(l)),bm(l,r,n,o);const s=FS(a,r);for(const l of s){const c=ey(l,i);i?.type==="parallel"&&c.push(i),CX(o,r,n,c,!a.source.parent&&a.reenter?void 0:i)}}}function bm(e,r,n,o){if($p(e))if(r[e.id]){const a=r[e.id];for(const i of a)o.add(i),bm(i,r,n,o);for(const i of a)qS(i,e.parent,o,r,n)}else{const a=wX(e);for(const i of a.target)o.add(i),a===e.parent?.initial&&n.add(e.parent),bm(i,r,n,o);for(const i of a.target)qS(i,e.parent,o,r,n)}else if(e.type==="compound"){const[a]=e.initial.target;$p(a)||(o.add(a),n.add(a)),bm(a,r,n,o),qS(a,e,o,r,n)}else if(e.type==="parallel")for(const a of gm(e).filter(i=>!$p(i)))[...o].some(i=>Od(i,a))||($p(a)||(o.add(a),n.add(a)),bm(a,r,n,o))}function CX(e,r,n,o,a){for(const i of o)if((!a||Od(i,a))&&e.add(i),i.type==="parallel")for(const s of gm(i).filter(l=>!$p(l)))[...e].some(l=>Od(l,s))||(e.add(s),bm(s,r,n,e))}function qS(e,r,n,o,a){CX(n,o,a,ey(e,r))}function sBe(e,r,n,o,a,i,s,l){let c=e;const d=HS(o,a,i);d.sort((h,f)=>f.order-h.order);let u;for(const h of d)for(const f of eBe(h)){let g;f.history==="deep"?g=b=>jS(b)&&Od(b,h):g=b=>b.parent===h,u??={...i},u[f.id]=Array.from(a).filter(g)}for(const h of d)c=vm(c,r,n,[...h.exit,...h.invoke.map(f=>J0(f.id))],s,void 0),a.delete(h);return[c,u||i]}function lBe(e,r){return e.implementations.actions[r]}function TX(e,r,n,o,a,i){const{machine:s}=e;let l=e;for(const c of o){const d=typeof c=="function",u=d?c:lBe(s,typeof c=="string"?c:c.type),h={context:l.context,event:r,self:n.self,system:n.system},f=d||typeof c=="string"?void 0:"params"in c?typeof c.params=="function"?c.params({context:l.context,event:r}):c.params:void 0;if(!u||!("resolve"in u)){n.actionExecutor({type:typeof c=="string"?c:typeof c=="object"?c.type:c.name||"(anonymous)",info:h,params:f,exec:u});continue}const g=u,[b,x,w]=g.resolve(n,l,h,f,u,a);l=b,"retryResolve"in g&&i?.push([g,x]),"execute"in g&&n.actionExecutor({type:g.type,info:h,params:x,exec:g.execute.bind(null,n,x)}),w&&(l=TX(l,r,n,w,a,i))}return l}function vm(e,r,n,o,a,i){const s=i?[]:void 0,l=TX(e,r,n,o,{internalQueue:a,deferredActorIds:i},s);return s?.forEach(([c,d])=>{c.retryResolve(n,l,d)}),l}function US(e,r,n,o){let a=e;const i=[];function s(d,u,h){n.system._sendInspectionEvent({type:"@xstate.microstep",actorRef:n.self,event:u,snapshot:d,_transitions:h}),i.push(d)}if(r.type===Q0)return a=Pp(AX(a,r,n),{status:"stopped"}),s(a,r,[]),{snapshot:a,microstates:i};let l=r;if(l.type!==sX){const d=l,u=zLe(d),h=RX(d,a);if(u&&!h.length)return a=Pp(e,{status:"error",error:d.error}),s(a,d,[]),{snapshot:a,microstates:i};a=VS(h,e,n,l,!1,o),s(a,d,h)}let c=!0;for(;a.status==="active";){let d=c?cBe(a,l):[];const u=d.length?a:void 0;if(!d.length){if(!o.length)break;l=o.shift(),d=RX(l,a)}a=VS(d,a,n,l,!1,o),c=a!==u,s(a,l,d)}return a.status!=="active"&&AX(a,l,n),{snapshot:a,microstates:i}}function AX(e,r,n){return vm(e,r,n,Object.values(e.children).map(o=>J0(o)),[],void 0)}function RX(e,r){return r.machine.getTransitionData(r,e)}function cBe(e,r){const n=new Set,o=e._nodes.filter(jS);for(const a of o)e:for(const i of[a].concat(ey(a,void 0)))if(i.always){for(const s of i.always)if(s.guard===void 0||iw(s.guard,e.context,r,e)){n.add(s);break e}}return EX(Array.from(n),new Set(e._nodes),e.historyValue)}function dBe(e,r){const n=sw(dw(e,r));return xX(e,[...n])}function uBe(e){return!!e&&typeof e=="object"&&"machine"in e&&"value"in e}const pBe=function(e){return dX(e,this.value)},hBe=function(e){return this.tags.has(e)},fBe=function(e){const r=this.machine.getTransitionData(this,e);return!!r?.length&&r.some(n=>n.target!==void 0||n.actions.length)},mBe=function(){const{_nodes:e,tags:r,machine:n,getMeta:o,toJSON:a,can:i,hasTag:s,matches:l,...c}=this;return{...c,tags:Array.from(r)}},gBe=function(){return this._nodes.reduce((e,r)=>(r.meta!==void 0&&(e[r.id]=r.meta),e),{})};function uw(e,r){return{status:e.status,output:e.output,error:e.error,machine:r,context:e.context,_nodes:e._nodes,value:xX(r.root,e._nodes),tags:new Set(e._nodes.flatMap(n=>n.tags)),children:e.children,historyValue:e.historyValue||{},matches:pBe,hasTag:hBe,can:fBe,getMeta:gBe,toJSON:mBe}}function Pp(e,r={}){return uw({...e,...r},e.machine)}function yBe(e){if(typeof e!="object"||e===null)return{};const r={};for(const n in e){const o=e[n];Array.isArray(o)&&(r[n]=o.map(a=>({id:a.id})))}return r}function bBe(e,r){const{_nodes:n,tags:o,machine:a,children:i,context:s,can:l,hasTag:c,matches:d,getMeta:u,toJSON:h,...f}=e,g={};for(const b in i){const x=i[b];g[b]={snapshot:x.getPersistedSnapshot(r),src:x.src,systemId:x.systemId,syncSnapshot:x._syncSnapshot}}return{...f,context:NX(s),children:g,historyValue:yBe(f.historyValue)}}function NX(e){let r;for(const n in e){const o=e[n];if(o&&typeof o=="object")if("sessionId"in o&&"send"in o&&"ref"in o)r??=Array.isArray(e)?e.slice():{...e},r[n]={xstate$$type:OS,id:o.id};else{const a=NX(o);a!==o&&(r??=Array.isArray(e)?e.slice():{...e},r[n]=a)}}return r??e}function vBe(e,r,n,o,{event:a,id:i,delay:s},{internalQueue:l}){const c=r.machine.implementations.delays;if(typeof a=="string")throw new Error(`Only event objects may be used with raise; use raise({ type: "${a}" }) instead`);const d=typeof a=="function"?a(n,o):a;let u;if(typeof s=="string"){const h=c&&c[s];u=typeof h=="function"?h(n,o):h}else u=typeof s=="function"?s(n,o):s;return typeof u!="number"&&l.push(d),[r,{event:d,id:i,delay:u},void 0]}function xBe(e,r){const{event:n,delay:o,id:a}=r;if(typeof o=="number"){e.defer(()=>{const i=e.self;e.system.scheduler.schedule(i,i,n,o,a)});return}}function fa(e,r){function n(o,a){}return n.type="xstate.raise",n.event=e,n.id=r?.id,n.delay=r?.delay,n.resolve=vBe,n.execute=xBe,n}const DX=new WeakMap;function WS(e){return{config:e,start:(r,n)=>{const{self:o,system:a,emit:i}=n,s={receivers:void 0,dispose:void 0};DX.set(o,s),s.dispose=e({input:r.input,system:a,self:o,sendBack:l=>{o.getSnapshot().status!=="stopped"&&o._parent&&a._relay(o,o._parent,l)},receive:l=>{s.receivers??=new Set,s.receivers.add(l)},emit:i})},transition:(r,n,o)=>{const a=DX.get(o.self);return n.type===Q0?(r={...r,status:"stopped",error:void 0},a.dispose?.(),r):(a.receivers?.forEach(i=>i(n)),r)},getInitialSnapshot:(r,n)=>({status:"active",output:void 0,error:void 0,input:n}),getPersistedSnapshot:r=>r,restoreSnapshot:r=>r}}const $X="xstate.promise.resolve",PX="xstate.promise.reject",pw=new WeakMap;function wBe(e){return{config:e,transition:(r,n,o)=>{if(r.status!=="active")return r;switch(n.type){case $X:{const a=n.data;return{...r,status:"done",output:a,input:void 0}}case PX:return{...r,status:"error",error:n.data,input:void 0};case Q0:return pw.get(o.self)?.abort(),{...r,status:"stopped",input:void 0};default:return r}},start:(r,{self:n,system:o,emit:a})=>{if(r.status!=="active")return;const i=new AbortController;pw.set(n,i),Promise.resolve(e({input:r.input,system:o,self:n,signal:i.signal,emit:a})).then(s=>{n.getSnapshot().status==="active"&&(pw.delete(n),o._relay(n,n,{type:$X,data:s}))},s=>{n.getSnapshot().status==="active"&&(pw.delete(n),o._relay(n,n,{type:PX,data:s}))})},getInitialSnapshot:(r,n)=>({status:"active",output:void 0,error:void 0,input:n}),getPersistedSnapshot:r=>r,restoreSnapshot:r=>r}}function kBe(e,{machine:r,context:n},o,a){const i=(s,l)=>{if(typeof s=="string"){const c=zS(r,s);if(!c)throw new Error(`Actor logic '${s}' not implemented in machine '${r.id}'`);const d=mm(c,{id:l?.id,parent:e.self,syncSnapshot:l?.syncSnapshot,input:typeof l?.input=="function"?l.input({context:n,event:o,self:e.self}):l?.input,src:s,systemId:l?.systemId});return a[d.id]=d,d}else return mm(s,{id:l?.id,parent:e.self,syncSnapshot:l?.syncSnapshot,input:l?.input,src:s,systemId:l?.systemId})};return(s,l)=>{const c=i(s,l);return a[c.id]=c,e.defer(()=>{c._processingStatus!==ha.Stopped&&c.start()}),c}}function _Be(e,r,n,o,{assignment:a}){if(!r.context)throw new Error("Cannot assign to undefined `context`. Ensure that `context` is defined in the machine config.");const i={},s={context:r.context,event:n.event,spawn:kBe(e,r,n.event,i),self:e.self,system:e.system};let l={};if(typeof a=="function")l=a(s,o);else for(const d of Object.keys(a)){const u=a[d];l[d]=typeof u=="function"?u(s,o):u}const c=Object.assign({},r.context,l);return[Pp(r,{context:c,children:Object.keys(i).length?{...r.children,...i}:r.children}),void 0,void 0]}function Zt(e){function r(n,o){}return r.type="xstate.assign",r.assignment=e,r.resolve=_Be,r}const MX=new WeakMap;function xm(e,r,n){let o=MX.get(e);return o?r in o||(o[r]=n()):(o={[r]:n()},MX.set(e,o)),o[r]}const EBe={},ty=e=>typeof e=="string"?{type:e}:typeof e=="function"?"resolve"in e?{type:e.type}:{type:e.name}:e;class hw{constructor(r,n){if(this.config=r,this.key=void 0,this.id=void 0,this.type=void 0,this.path=void 0,this.states=void 0,this.history=void 0,this.entry=void 0,this.exit=void 0,this.parent=void 0,this.machine=void 0,this.meta=void 0,this.output=void 0,this.order=-1,this.description=void 0,this.tags=[],this.transitions=void 0,this.always=void 0,this.parent=n._parent,this.key=n._key,this.machine=n._machine,this.path=this.parent?this.parent.path.concat(this.key):[],this.id=this.config.id||[this.machine.id,...this.path].join(aX),this.type=this.config.type||(this.config.states&&Object.keys(this.config.states).length?"compound":this.config.history?"history":"atomic"),this.description=this.config.description,this.order=this.machine.idMap.size,this.machine.idMap.set(this.id,this),this.states=this.config.states?pX(this.config.states,(o,a)=>new hw(o,{_parent:this,_key:a,_machine:this.machine})):EBe,this.type==="compound"&&!this.config.initial)throw new Error(`No initial state specified for compound state node "#${this.id}". Try adding { initial: "${Object.keys(this.states)[0]}" } to the state config.`);this.history=this.config.history===!0?"shallow":this.config.history||!1,this.entry=bc(this.config.entry).slice(),this.exit=bc(this.config.exit).slice(),this.meta=this.config.meta,this.output=this.type==="final"||!this.parent?this.config.output:void 0,this.tags=bc(r.tags).slice()}_initialize(){this.transitions=GLe(this),this.config.always&&(this.always=fm(this.config.always).map(r=>Dp(this,iX,r))),Object.keys(this.states).forEach(r=>{this.states[r]._initialize()})}get definition(){return{id:this.id,key:this.key,version:this.machine.version,type:this.type,initial:this.initial?{target:this.initial.target,source:this,actions:this.initial.actions.map(ty),eventType:null,reenter:!1,toJSON:()=>({target:this.initial.target.map(r=>`#${r.id}`),source:`#${this.id}`,actions:this.initial.actions.map(ty),eventType:null})}:void 0,history:this.history,states:pX(this.states,r=>r.definition),on:this.on,transitions:[...this.transitions.values()].flat().map(r=>({...r,actions:r.actions.map(ty)})),entry:this.entry.map(ty),exit:this.exit.map(ty),meta:this.meta,order:this.order||-1,output:this.output,invoke:this.invoke,description:this.description,tags:this.tags}}toJSON(){return this.definition}get invoke(){return xm(this,"invoke",()=>bc(this.config.invoke).map((r,n)=>{const{src:o,systemId:a}=r,i=r.id??gX(this.id,n),s=typeof o=="string"?o:`xstate.invoke.${gX(this.id,n)}`;return{...r,src:s,id:i,systemId:a,toJSON(){const{onDone:l,onError:c,...d}=r;return{...d,type:"xstate.invoke",src:s,id:i}}}}))}get on(){return xm(this,"on",()=>[...this.transitions].flatMap(([r,n])=>n.map(o=>[r,o])).reduce((r,[n,o])=>(r[n]=r[n]||[],r[n].push(o),r),{}))}get after(){return xm(this,"delayedTransitions",()=>YLe(this))}get initial(){return xm(this,"initial",()=>XLe(this,this.config.initial))}next(r,n){const o=n.type,a=[];let i;const s=xm(this,`candidates-${o}`,()=>WLe(this,o));for(const l of s){const{guard:c}=l,d=r.context;let u=!1;try{u=!c||iw(c,d,n,r)}catch(h){const f=typeof c=="string"?c:typeof c=="object"?c.type:void 0;throw new Error(`Unable to evaluate guard ${f?`'${f}' `:""}in transition for event '${o}' in state node '${this.id}': -${h.message}`)}if(u){a.push(...l.actions),i=l;break}}return i?[i]:void 0}get events(){return xm(this,"events",()=>{const{states:r}=this,n=new Set(this.ownEvents);if(r)for(const o of Object.keys(r)){const a=r[o];if(a.states)for(const i of a.events)n.add(`${i}`)}return Array.from(n)})}get ownEvents(){const r=new Set([...this.transitions.keys()].filter(n=>this.transitions.get(n).some(o=>!(!o.target&&!o.actions.length&&!o.reenter))));return Array.from(r)}}const SBe="#";class YS{constructor(r,n){this.config=r,this.version=void 0,this.schemas=void 0,this.implementations=void 0,this.__xstatenode=!0,this.idMap=new Map,this.root=void 0,this.id=void 0,this.states=void 0,this.events=void 0,this.id=r.id||"(machine)",this.implementations={actors:n?.actors??{},actions:n?.actions??{},delays:n?.delays??{},guards:n?.guards??{}},this.version=this.config.version,this.schemas=this.config.schemas,this.transition=this.transition.bind(this),this.getInitialSnapshot=this.getInitialSnapshot.bind(this),this.getPersistedSnapshot=this.getPersistedSnapshot.bind(this),this.restoreSnapshot=this.restoreSnapshot.bind(this),this.start=this.start.bind(this),this.root=new hw(r,{_key:this.id,_machine:this}),this.root._initialize(),this.states=this.root.states,this.events=this.root.events}provide(r){const{actions:n,guards:o,actors:a,delays:i}=this.implementations;return new YS(this.config,{actions:{...n,...r.actions},guards:{...o,...r.guards},actors:{...a,...r.actors},delays:{...i,...r.delays}})}resolveState(r){const n=dBe(this.root,r.value),o=sw(dw(this.root,n));return uw({_nodes:[...o],context:r.context||{},children:{},status:LS(o,this.root)?"done":r.status||"active",output:r.output,error:r.error,historyValue:r.historyValue},this)}transition(r,n,o){return US(r,n,o,[]).snapshot}microstep(r,n,o){return US(r,n,o,[]).microstates}getTransitionData(r,n){return BS(this.root,r.value,r,n)||[]}getPreInitialState(r,n,o){const{context:a}=this.config,i=uw({context:typeof a!="function"&&a?a:{},_nodes:[this.root],children:{},status:"active"},this);return typeof a=="function"?vm(i,n,r,[Zt(({spawn:s,event:l,self:c})=>a({spawn:s,input:l.input,self:c}))],o,void 0):i}getInitialSnapshot(r,n){const o=cX(n),a=[],i=this.getPreInitialState(r,o,a),s=VS([{target:[..._X(this.root)],source:this.root,reenter:!0,actions:[],eventType:null,toJSON:null}],i,r,o,!0,a),{snapshot:l}=US(s,o,r,a);return l}start(r){Object.values(r.children).forEach(n=>{n.getSnapshot().status==="active"&&n.start()})}getStateNodeById(r){const n=PS(r),o=n.slice(1),a=lw(n[0])?n[0].slice(SBe.length):n[0],i=this.idMap.get(a);if(!i)throw new Error(`Child state node '#${a}' does not exist on machine '${this.id}'`);return cw(i,o)}get definition(){return this.root.definition}toJSON(){return this.definition}getPersistedSnapshot(r,n){return bBe(r,n)}restoreSnapshot(r,n){const o={},a=r.children;Object.keys(a).forEach(h=>{const f=a[h],g=f.snapshot,b=f.src,x=typeof b=="string"?zS(this,b):b;if(!x)return;const w=mm(x,{id:h,parent:n.self,syncSnapshot:f.syncSnapshot,snapshot:g,src:b,systemId:f.systemId});o[h]=w});function i(h,f){if(f instanceof hw)return f;try{return h.machine.getStateNodeById(f.id)}catch{}}function s(h,f){if(!f||typeof f!="object")return{};const g={};for(const b in f){const x=f[b];for(const w of x){const k=i(h,w);k&&(g[b]??=[],g[b].push(k))}}return g}const l=s(this.root,r.historyValue),c=uw({...r,children:o,_nodes:Array.from(sw(dw(this.root,r.value))),historyValue:l},this),d=new Set;function u(h,f){if(!d.has(h)){d.add(h);for(const g in h){const b=h[g];if(b&&typeof b=="object"){if("xstate$$type"in b&&b.xstate$$type===OS){h[g]=f[b.id];continue}u(b,f)}}}}return u(c.context,o),c}}function CBe(e,r,n,o,{event:a}){const i=typeof a=="function"?a(n,o):a;return[r,{event:i},void 0]}function TBe(e,{event:r}){e.defer(()=>e.emit(r))}function GS(e){function r(n,o){}return r.type="xstate.emit",r.event=e,r.resolve=CBe,r.execute=TBe,r}let XS=(function(e){return e.Parent="#_parent",e.Internal="#_internal",e})({});function ABe(e,r,n,o,{to:a,event:i,id:s,delay:l},c){const d=r.machine.implementations.delays;if(typeof i=="string")throw new Error(`Only event objects may be used with sendTo; use sendTo({ type: "${i}" }) instead`);const u=typeof i=="function"?i(n,o):i;let h;if(typeof l=="string"){const b=d&&d[l];h=typeof b=="function"?b(n,o):b}else h=typeof l=="function"?l(n,o):l;const f=typeof a=="function"?a(n,o):a;let g;if(typeof f=="string"){if(f===XS.Parent?g=e.self._parent:f===XS.Internal?g=e.self:f.startsWith("#_")?g=r.children[f.slice(2)]:g=c.deferredActorIds?.includes(f)?f:r.children[f],!g)throw new Error(`Unable to send event to actor '${f}' from machine '${r.machine.id}'.`)}else g=f||e.self;return[r,{to:g,targetId:typeof f=="string"?f:void 0,event:u,id:s,delay:h},void 0]}function RBe(e,r,n){typeof n.to=="string"&&(n.to=r.children[n.to])}function NBe(e,r){e.defer(()=>{const{to:n,event:o,delay:a,id:i}=r;if(typeof a=="number"){e.system.scheduler.schedule(e.self,n,o,a,i);return}e.system._relay(e.self,n,o.type===NLe?lX(e.self.id,o.data):o)})}function fw(e,r,n){function o(a,i){}return o.type="xstate.sendTo",o.to=e,o.event=r,o.id=n?.id,o.delay=n?.delay,o.resolve=ABe,o.retryResolve=RBe,o.execute=NBe,o}function DBe(e,r){return fw(XS.Parent,e,r)}function $Be(e,r,n,o,{collect:a}){const i=[],s=function(l){i.push(l)};return s.assign=(...l)=>{i.push(Zt(...l))},s.cancel=(...l)=>{i.push(wi(...l))},s.raise=(...l)=>{i.push(fa(...l))},s.sendTo=(...l)=>{i.push(fw(...l))},s.sendParent=(...l)=>{i.push(DBe(...l))},s.spawnChild=(...l)=>{i.push(aw(...l))},s.stopChild=(...l)=>{i.push(J0(...l))},s.emit=(...l)=>{i.push(GS(...l))},a({context:n.context,event:n.event,enqueue:s,check:l=>iw(l,r.context,n.event,r),self:e.self,system:e.system},o),[r,void 0,i]}function Mp(e){function r(n,o){}return r.type="xstate.enqueueActions",r.collect=e,r.resolve=$Be,r}function PBe(e,r,n,o,{value:a,label:i}){return[r,{value:typeof a=="function"?a(n,o):a,label:i},void 0]}function MBe({logger:e},{value:r,label:n}){n?e(n,r):e(r)}function zBe(e=({context:n,event:o})=>({context:n,event:o}),r){function n(o,a){}return n.type="xstate.log",n.value=e,n.label=r,n.resolve=PBe,n.execute=MBe,n}function Tt(e,r){const n=bc(r);if(!n.includes(e.type)){const o=n.length===1?`type "${n[0]}"`:`one of types "${n.join('", "')}"`;throw new Error(`Expected event ${JSON.stringify(e)} to have ${o}`)}}function IBe(e,r){return new YS(e,r)}function wl({schemas:e,actors:r,actions:n,guards:o,delays:a}){return{assign:Zt,sendTo:fw,raise:fa,log:zBe,cancel:wi,stopChild:J0,enqueueActions:Mp,emit:GS,spawnChild:aw,createStateConfig:i=>i,createAction:i=>i,createMachine:i=>IBe({...i,schemas:e},{actors:r,actions:n,guards:o,delays:a}),extend:i=>wl({schemas:e,actors:r,actions:{...n,...i.actions},guards:{...o,...i.guards},delays:{...a,...i.delays}})}}AV();const zX=(e,r)=>{r(e);const n=e.getSnapshot().children;n&&Object.values(n).forEach(o=>{zX(o,r)})};function OBe(e){const r=[];zX(e,o=>{r.push([o,o.getSnapshot()]),o.observers=new Set});const n=e.system.getSnapshot?.();e.stop(),e.system._snapshot=n,r.forEach(([o,a])=>{o._processingStatus=0,o._snapshot=a})}function jBe(e,...[r]){let[[n,o],a]=E.useState(()=>{const i=mm(e,r);return[e.config,i]});if(e.config!==n){const i=mm(e,{...r,snapshot:o.getPersistedSnapshot({__unsafeAllowInlineActors:!0})});a([e.config,i]),o=i}return mOe(()=>{o.logic.implementations=e.implementations}),o}function KS(e,...[r,n]){const o=jBe(e,r);return E.useEffect(()=>{if(!n)return;const a=o.subscribe(ow(n));return()=>{a.unsubscribe()}},[n]),E.useEffect(()=>(o.start(),()=>{OBe(o)}),[o]),o}function LBe(e,r){return e===r}function fn(e,r,n=LBe){const o=E.useCallback(i=>{if(!e)return()=>{};const{unsubscribe:s}=e.subscribe(i);return s},[e]),a=E.useCallback(()=>e?.getSnapshot(),[e]);return DV.useSyncExternalStoreWithSelector(o,a,a,r,n)}const mw=E.createContext(null);mw.displayName="DiagramActorSafeContext";const BBe=mw.Provider;function zp(){const e=E.useContext(mw);if(e===null)throw new Error("DiagramActorRef is not provided");return e.actor}function Qt(){const e=E.useContext(mw);if(e===null)throw new Error("DiagramActorRef is not provided");return e}function ZS(e,r=an){const n=zp();return fn(n,e,r)}function vs(e,r=an,n){const o=zp(),a=E.useCallback(i=>e(i.context),n??[]);return fn(o,a,r)}function Fa(e,r){const n=zp(),o=E.useRef(r);o.current=r,E.useEffect(()=>{const a=n.on(e,i=>{o.current(i)});return()=>{a.unsubscribe()}},[n,e])}const FBe=e=>e.children.overlays;function IX(){return ZS(FBe,Object.is)}const HBe=e=>e.children.search??null;function VBe(){return ZS(HBe,Object.is)}function QS(e,r){e.indexOf(r)===-1&&e.push(r)}function gw(e,r){const n=e.indexOf(r);n>-1&&e.splice(n,1)}const vc=(e,r,n)=>n>r?r:n{};const xc={},OX=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function jX(e){return typeof e=="object"&&e!==null}const LX=e=>/^0[^.\s]+$/u.test(e);function eC(e){let r;return()=>(r===void 0&&(r=e()),r)}const ki=e=>e,qBe=(e,r)=>n=>r(e(n)),ry=(...e)=>e.reduce(qBe),wm=(e,r,n)=>{const o=r-e;return o===0?1:(n-e)/o};class tC{constructor(){this.subscriptions=[]}add(r){return QS(this.subscriptions,r),()=>gw(this.subscriptions,r)}notify(r,n,o){const a=this.subscriptions.length;if(a)if(a===1)this.subscriptions[0](r,n,o);else for(let i=0;ie*1e3,_i=e=>e/1e3;function BX(e,r){return r?e*(1e3/r):0}const UBe=(e,r,n)=>{const o=r-e;return((n-e)%o+o)%o+e},FX=(e,r,n)=>(((1-3*n+3*r)*e+(3*n-6*r))*e+3*r)*e,WBe=1e-7,YBe=12;function GBe(e,r,n,o,a){let i,s,l=0;do s=r+(n-r)/2,i=FX(s,o,a)-e,i>0?n=s:r=s;while(Math.abs(i)>WBe&&++lGBe(i,0,1,e,n);return i=>i===0||i===1?i:FX(a(i),r,o)}const HX=e=>r=>r<=.5?e(2*r)/2:(2-e(2*(1-r)))/2,VX=e=>r=>1-e(1-r),qX=ny(.33,1.53,.69,.99),rC=VX(qX),UX=HX(rC),WX=e=>(e*=2)<1?.5*rC(e):.5*(2-Math.pow(2,-10*(e-1))),nC=e=>1-Math.sin(Math.acos(e)),YX=VX(nC),GX=HX(nC),XBe=ny(.42,0,1,1),KBe=ny(0,0,.58,1),XX=ny(.42,0,.58,1),KX=e=>Array.isArray(e)&&typeof e[0]!="number";function ZX(e,r){return KX(e)?e[UBe(0,e.length,r)]:e}const QX=e=>Array.isArray(e)&&typeof e[0]=="number",ZBe={linear:ki,easeIn:XBe,easeInOut:XX,easeOut:KBe,circIn:nC,circInOut:GX,circOut:YX,backIn:rC,backInOut:UX,backOut:qX,anticipate:WX},QBe=e=>typeof e=="string",JX=e=>{if(QX(e)){JS(e.length===4);const[r,n,o,a]=e;return ny(r,n,o,a)}else if(QBe(e))return ZBe[e];return e},yw=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function JBe(e,r){let n=new Set,o=new Set,a=!1,i=!1;const s=new WeakSet;let l={delta:0,timestamp:0,isProcessing:!1};function c(u){s.has(u)&&(d.schedule(u),e()),u(l)}const d={schedule:(u,h=!1,f=!1)=>{const g=f&&a?n:o;return h&&s.add(u),g.has(u)||g.add(u),u},cancel:u=>{o.delete(u),s.delete(u)},process:u=>{if(l=u,a){i=!0;return}a=!0,[n,o]=[o,n],n.forEach(c),n.clear(),a=!1,i&&(i=!1,d.process(u))}};return d}const eFe=40;function eK(e,r){let n=!1,o=!0;const a={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,s=yw.reduce((k,C)=>(k[C]=JBe(i),k),{}),{setup:l,read:c,resolveKeyframes:d,preUpdate:u,update:h,preRender:f,render:g,postRender:b}=s,x=()=>{const k=xc.useManualTiming?a.timestamp:performance.now();n=!1,xc.useManualTiming||(a.delta=o?1e3/60:Math.max(Math.min(k-a.timestamp,eFe),1)),a.timestamp=k,a.isProcessing=!0,l.process(a),c.process(a),d.process(a),u.process(a),h.process(a),f.process(a),g.process(a),b.process(a),a.isProcessing=!1,n&&r&&(o=!1,e(x))},w=()=>{n=!0,o=!0,a.isProcessing||e(x)};return{schedule:yw.reduce((k,C)=>{const _=s[C];return k[C]=(T,A=!1,R=!1)=>(n||w(),_.schedule(T,A,R)),k},{}),cancel:k=>{for(let C=0;C(bw===void 0&&ma.set(xo.isProcessing||xc.useManualTiming?xo.timestamp:performance.now()),bw),set:e=>{bw=e,queueMicrotask(tFe)}},tK=e=>r=>typeof r=="string"&&r.startsWith(e),aC=tK("--"),rFe=tK("var(--"),iC=e=>rFe(e)?nFe.test(e.split("/*")[0].trim()):!1,nFe=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,km={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},oy={...km,transform:e=>vc(0,1,e)},vw={...km,default:1},ay=e=>Math.round(e*1e5)/1e5,sC=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function oFe(e){return e==null}const aFe=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,lC=(e,r)=>n=>!!(typeof n=="string"&&aFe.test(n)&&n.startsWith(e)||r&&!oFe(n)&&Object.prototype.hasOwnProperty.call(n,r)),rK=(e,r,n)=>o=>{if(typeof o!="string")return o;const[a,i,s,l]=o.match(sC);return{[e]:parseFloat(a),[r]:parseFloat(i),[n]:parseFloat(s),alpha:l!==void 0?parseFloat(l):1}},iFe=e=>vc(0,255,e),cC={...km,transform:e=>Math.round(iFe(e))},Ip={test:lC("rgb","red"),parse:rK("red","green","blue"),transform:({red:e,green:r,blue:n,alpha:o=1})=>"rgba("+cC.transform(e)+", "+cC.transform(r)+", "+cC.transform(n)+", "+ay(oy.transform(o))+")"};function sFe(e){let r="",n="",o="",a="";return e.length>5?(r=e.substring(1,3),n=e.substring(3,5),o=e.substring(5,7),a=e.substring(7,9)):(r=e.substring(1,2),n=e.substring(2,3),o=e.substring(3,4),a=e.substring(4,5),r+=r,n+=n,o+=o,a+=a),{red:parseInt(r,16),green:parseInt(n,16),blue:parseInt(o,16),alpha:a?parseInt(a,16)/255:1}}const dC={test:lC("#"),parse:sFe,transform:Ip.transform},iy=e=>({test:r=>typeof r=="string"&&r.endsWith(e)&&r.split(" ").length===1,parse:parseFloat,transform:r=>`${r}${e}`}),Ld=iy("deg"),kl=iy("%"),$t=iy("px"),lFe=iy("vh"),cFe=iy("vw"),nK={...kl,parse:e=>kl.parse(e)/100,transform:e=>kl.transform(e*100)},_m={test:lC("hsl","hue"),parse:rK("hue","saturation","lightness"),transform:({hue:e,saturation:r,lightness:n,alpha:o=1})=>"hsla("+Math.round(e)+", "+kl.transform(ay(r))+", "+kl.transform(ay(n))+", "+ay(oy.transform(o))+")"},In={test:e=>Ip.test(e)||dC.test(e)||_m.test(e),parse:e=>Ip.test(e)?Ip.parse(e):_m.test(e)?_m.parse(e):dC.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Ip.transform(e):_m.transform(e),getAnimatableNone:e=>{const r=In.parse(e);return r.alpha=0,In.transform(r)}},dFe=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function uFe(e){return isNaN(e)&&typeof e=="string"&&(e.match(sC)?.length||0)+(e.match(dFe)?.length||0)>0}const oK="number",aK="color",pFe="var",hFe="var(",iK="${}",fFe=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function sy(e){const r=e.toString(),n=[],o={color:[],number:[],var:[]},a=[];let i=0;const s=r.replace(fFe,l=>(In.test(l)?(o.color.push(i),a.push(aK),n.push(In.parse(l))):l.startsWith(hFe)?(o.var.push(i),a.push(pFe),n.push(l)):(o.number.push(i),a.push(oK),n.push(parseFloat(l))),++i,iK)).split(iK);return{values:n,split:s,indexes:o,types:a}}function sK(e){return sy(e).values}function lK(e){const{split:r,types:n}=sy(e),o=r.length;return a=>{let i="";for(let s=0;stypeof e=="number"?0:In.test(e)?In.getAnimatableNone(e):e;function gFe(e){const r=sK(e);return lK(e)(r.map(mFe))}const Bd={test:uFe,parse:sK,createTransformer:lK,getAnimatableNone:gFe};function uC(e,r,n){return n<0&&(n+=1),n>1&&(n-=1),n<.16666666666666666?e+(r-e)*6*n:n<.5?r:n<.6666666666666666?e+(r-e)*(.6666666666666666-n)*6:e}function yFe({hue:e,saturation:r,lightness:n,alpha:o}){e/=360,r/=100,n/=100;let a=0,i=0,s=0;if(!r)a=i=s=n;else{const l=n<.5?n*(1+r):n+r-n*r,c=2*n-l;a=uC(c,l,e+.3333333333333333),i=uC(c,l,e),s=uC(c,l,e-.3333333333333333)}return{red:Math.round(a*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:o}}function xw(e,r){return n=>n>0?r:e}const Zr=(e,r,n)=>e+(r-e)*n,pC=(e,r,n)=>{const o=e*e,a=n*(r*r-o)+o;return a<0?0:Math.sqrt(a)},bFe=[dC,Ip,_m],vFe=e=>bFe.find(r=>r.test(e));function cK(e){const r=vFe(e);if(!r)return!1;let n=r.parse(e);return r===_m&&(n=yFe(n)),n}const dK=(e,r)=>{const n=cK(e),o=cK(r);if(!n||!o)return xw(e,r);const a={...n};return i=>(a.red=pC(n.red,o.red,i),a.green=pC(n.green,o.green,i),a.blue=pC(n.blue,o.blue,i),a.alpha=Zr(n.alpha,o.alpha,i),Ip.transform(a))},hC=new Set(["none","hidden"]);function xFe(e,r){return hC.has(e)?n=>n<=0?e:r:n=>n>=1?r:e}function wFe(e,r){return n=>Zr(e,r,n)}function fC(e){return typeof e=="number"?wFe:typeof e=="string"?iC(e)?xw:In.test(e)?dK:EFe:Array.isArray(e)?uK:typeof e=="object"?In.test(e)?dK:kFe:xw}function uK(e,r){const n=[...e],o=n.length,a=e.map((i,s)=>fC(i)(i,r[s]));return i=>{for(let s=0;s{for(const i in o)n[i]=o[i](a);return n}}function _Fe(e,r){const n=[],o={color:0,var:0,number:0};for(let a=0;a{const n=Bd.createTransformer(r),o=sy(e),a=sy(r);return o.indexes.var.length===a.indexes.var.length&&o.indexes.color.length===a.indexes.color.length&&o.indexes.number.length>=a.indexes.number.length?hC.has(e)&&!a.values.length||hC.has(r)&&!o.values.length?xFe(e,r):ry(uK(_Fe(o,a),a.values),n):xw(e,r)};function pK(e,r,n){return typeof e=="number"&&typeof r=="number"&&typeof n=="number"?Zr(e,r,n):fC(e)(e,r)}const SFe=e=>{const r=({timestamp:n})=>e(n);return{start:(n=!0)=>qr.update(r,n),stop:()=>jd(r),now:()=>xo.isProcessing?xo.timestamp:ma.now()}},hK=(e,r,n=10)=>{let o="";const a=Math.max(Math.round(r/n),2);for(let i=0;i=ww?1/0:r}function fK(e,r=100,n){const o=n({...e,keyframes:[0,r]}),a=Math.min(mC(o),ww);return{type:"keyframes",ease:i=>o.next(a*i).value/r,duration:_i(a)}}const CFe=5;function mK(e,r,n){const o=Math.max(r-CFe,0);return BX(n-e(o),r-o)}const mn={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},gC=.001;function TFe({duration:e=mn.duration,bounce:r=mn.bounce,velocity:n=mn.velocity,mass:o=mn.mass}){let a,i,s=1-r;s=vc(mn.minDamping,mn.maxDamping,s),e=vc(mn.minDuration,mn.maxDuration,_i(e)),s<1?(a=d=>{const u=d*s,h=u*e,f=u-n,g=yC(d,s),b=Math.exp(-h);return gC-f/g*b},i=d=>{const u=d*s*e,h=u*n+n,f=Math.pow(s,2)*Math.pow(d,2)*e,g=Math.exp(-u),b=yC(Math.pow(d,2),s);return(-a(d)+gC>0?-1:1)*((h-f)*g)/b}):(a=d=>{const u=Math.exp(-d*e),h=(d-n)*e+1;return-gC+u*h},i=d=>{const u=Math.exp(-d*e),h=(n-d)*(e*e);return u*h});const l=5/e,c=RFe(a,i,l);if(e=xs(e),isNaN(c))return{stiffness:mn.stiffness,damping:mn.damping,duration:e};{const d=Math.pow(c,2)*o;return{stiffness:d,damping:s*2*Math.sqrt(o*d),duration:e}}}const AFe=12;function RFe(e,r,n){let o=n;for(let a=1;ae[n]!==void 0)}function $Fe(e){let r={velocity:mn.velocity,stiffness:mn.stiffness,damping:mn.damping,mass:mn.mass,isResolvedFromDuration:!1,...e};if(!gK(e,DFe)&&gK(e,NFe))if(e.visualDuration){const n=e.visualDuration,o=2*Math.PI/(n*1.2),a=o*o,i=2*vc(.05,1,1-(e.bounce||0))*Math.sqrt(a);r={...r,mass:mn.mass,stiffness:a,damping:i}}else{const n=TFe(e);r={...r,...n,mass:mn.mass},r.isResolvedFromDuration=!0}return r}function ly(e=mn.visualDuration,r=mn.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:r}:e;let{restSpeed:o,restDelta:a}=n;const i=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],l={done:!1,value:i},{stiffness:c,damping:d,mass:u,duration:h,velocity:f,isResolvedFromDuration:g}=$Fe({...n,velocity:-_i(n.velocity||0)}),b=f||0,x=d/(2*Math.sqrt(c*u)),w=s-i,k=_i(Math.sqrt(c/u)),C=Math.abs(w)<5;o||(o=C?mn.restSpeed.granular:mn.restSpeed.default),a||(a=C?mn.restDelta.granular:mn.restDelta.default);let _;if(x<1){const A=yC(k,x);_=R=>{const D=Math.exp(-x*k*R);return s-D*((b+x*k*w)/A*Math.sin(A*R)+w*Math.cos(A*R))}}else if(x===1)_=A=>s-Math.exp(-k*A)*(w+(b+k*w)*A);else{const A=k*Math.sqrt(x*x-1);_=R=>{const D=Math.exp(-x*k*R),N=Math.min(A*R,300);return s-D*((b+x*k*w)*Math.sinh(N)+A*w*Math.cosh(N))/A}}const T={calculatedDuration:g&&h||null,next:A=>{const R=_(A);if(g)l.done=A>=h;else{let D=A===0?b:0;x<1&&(D=A===0?xs(b):mK(_,A,R));const N=Math.abs(D)<=o,P=Math.abs(s-R)<=a;l.done=N&&P}return l.value=l.done?s:R,l},toString:()=>{const A=Math.min(mC(T),ww),R=hK(D=>T.next(A*D).value,A,30);return A+"ms "+R},toTransition:()=>{}};return T}ly.applyToOptions=e=>{const r=fK(e,100,ly);return e.ease=r.ease,e.duration=xs(r.duration),e.type="keyframes",e};function bC({keyframes:e,velocity:r=0,power:n=.8,timeConstant:o=325,bounceDamping:a=10,bounceStiffness:i=500,modifyTarget:s,min:l,max:c,restDelta:d=.5,restSpeed:u}){const h=e[0],f={done:!1,value:h},g=N=>l!==void 0&&Nc,b=N=>l===void 0?c:c===void 0||Math.abs(l-N)-x*Math.exp(-N/o),_=N=>k+C(N),T=N=>{const P=C(N),O=_(N);f.done=Math.abs(P)<=d,f.value=f.done?k:O};let A,R;const D=N=>{g(f.value)&&(A=N,R=ly({keyframes:[f.value,b(f.value)],velocity:mK(_,N,f.value),damping:a,stiffness:i,restDelta:d,restSpeed:u}))};return D(0),{calculatedDuration:null,next:N=>{let P=!1;return!R&&A===void 0&&(P=!0,T(N),D(N)),A!==void 0&&N>=A?R.next(N-A):(!P&&T(N),f)}}}function PFe(e,r,n){const o=[],a=n||xc.mix||pK,i=e.length-1;for(let s=0;sr[0];if(i===2&&r[0]===r[1])return()=>r[1];const s=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),r=[...r].reverse());const l=PFe(r,o,a),c=l.length,d=u=>{if(s&&u1)for(;hd(vc(e[0],e[i-1],u)):d}function yK(e,r){const n=e[e.length-1];for(let o=1;o<=r;o++){const a=wm(0,r,o);e.push(Zr(n,1,a))}}function bK(e){const r=[0];return yK(r,e.length-1),r}function zFe(e,r){return e.map(n=>n*r)}function IFe(e,r){return e.map(()=>r||XX).splice(0,e.length-1)}function cy({duration:e=300,keyframes:r,times:n,ease:o="easeInOut"}){const a=KX(o)?o.map(JX):JX(o),i={done:!1,value:r[0]},s=zFe(n&&n.length===r.length?n:bK(r),e),l=MFe(s,r,{ease:Array.isArray(a)?a:IFe(r,a)});return{calculatedDuration:e,next:c=>(i.value=l(c),i.done=c>=e,i)}}const OFe=e=>e!==null;function vC(e,{repeat:r,repeatType:n="loop"},o,a=1){const i=e.filter(OFe),s=a<0||r&&n!=="loop"&&r%2===1?0:i.length-1;return!s||o===void 0?i[s]:o}const jFe={decay:bC,inertia:bC,tween:cy,keyframes:cy,spring:ly};function vK(e){typeof e.type=="string"&&(e.type=jFe[e.type])}class xC{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(r=>{this.resolve=r})}notifyFinished(){this.resolve()}then(r,n){return this.finished.then(r,n)}}const LFe=e=>e/100;class wC extends xC{constructor(r){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==ma.now()&&this.tick(ma.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=r,this.initAnimation(),this.play(),r.autoplay===!1&&this.pause()}initAnimation(){const{options:r}=this;vK(r);const{type:n=cy,repeat:o=0,repeatDelay:a=0,repeatType:i,velocity:s=0}=r;let{keyframes:l}=r;const c=n||cy;c!==cy&&typeof l[0]!="number"&&(this.mixKeyframes=ry(LFe,pK(l[0],l[1])),l=[0,100]);const d=c({...r,keyframes:l});i==="mirror"&&(this.mirroredGenerator=c({...r,keyframes:[...l].reverse(),velocity:-s})),d.calculatedDuration===null&&(d.calculatedDuration=mC(d));const{calculatedDuration:u}=d;this.calculatedDuration=u,this.resolvedDuration=u+a,this.totalDuration=this.resolvedDuration*(o+1)-a,this.generator=d}updateTime(r){const n=Math.round(r-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(r,n=!1){const{generator:o,totalDuration:a,mixKeyframes:i,mirroredGenerator:s,resolvedDuration:l,calculatedDuration:c}=this;if(this.startTime===null)return o.next(0);const{delay:d=0,keyframes:u,repeat:h,repeatType:f,repeatDelay:g,type:b,onUpdate:x,finalKeyframe:w}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,r):this.speed<0&&(this.startTime=Math.min(r-a/this.speed,this.startTime)),n?this.currentTime=r:this.updateTime(r);const k=this.currentTime-d*(this.playbackSpeed>=0?1:-1),C=this.playbackSpeed>=0?k<0:k>a;this.currentTime=Math.max(k,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=a);let _=this.currentTime,T=o;if(h){const N=Math.min(this.currentTime,a)/l;let P=Math.floor(N),O=N%1;!O&&N>=1&&(O=1),O===1&&P--,P=Math.min(P,h+1),P%2&&(f==="reverse"?(O=1-O,g&&(O-=g/l)):f==="mirror"&&(T=s)),_=vc(0,1,O)*l}const A=C?{done:!1,value:u[0]}:T.next(_);i&&(A.value=i(A.value));let{done:R}=A;!C&&c!==null&&(R=this.playbackSpeed>=0?this.currentTime>=a:this.currentTime<=0);const D=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&R);return D&&b!==bC&&(A.value=vC(u,this.options,w,this.speed)),x&&x(A.value),D&&this.finish(),A}then(r,n){return this.finished.then(r,n)}get duration(){return _i(this.calculatedDuration)}get iterationDuration(){const{delay:r=0}=this.options||{};return this.duration+_i(r)}get time(){return _i(this.currentTime)}set time(r){r=xs(r),this.currentTime=r,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=r:this.driver&&(this.startTime=this.driver.now()-r/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(r){this.updateTime(ma.now());const n=this.playbackSpeed!==r;this.playbackSpeed=r,n&&(this.time=_i(this.currentTime))}play(){if(this.isStopped)return;const{driver:r=SFe,startTime:n}=this.options;this.driver||(this.driver=r(a=>this.tick(a))),this.options.onPlay?.();const o=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=o):this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime||(this.startTime=n??o),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(ma.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(r){return this.startTime=0,this.tick(r,!0)}attachTimeline(r){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),r.observe(this)}}function BFe(e){for(let r=1;re*180/Math.PI,kC=e=>{const r=Op(Math.atan2(e[1],e[0]));return _C(r)},FFe={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:kC,rotateZ:kC,skewX:e=>Op(Math.atan(e[1])),skewY:e=>Op(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},_C=e=>(e=e%360,e<0&&(e+=360),e),xK=kC,wK=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),kK=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),HFe={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:wK,scaleY:kK,scale:e=>(wK(e)+kK(e))/2,rotateX:e=>_C(Op(Math.atan2(e[6],e[5]))),rotateY:e=>_C(Op(Math.atan2(-e[2],e[0]))),rotateZ:xK,rotate:xK,skewX:e=>Op(Math.atan(e[4])),skewY:e=>Op(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function EC(e){return e.includes("scale")?1:0}function SC(e,r){if(!e||e==="none")return EC(r);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let o,a;if(n)o=HFe,a=n;else{const l=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);o=FFe,a=l}if(!a)return EC(r);const i=o[r],s=a[1].split(",").map(qFe);return typeof i=="function"?i(s):s[i]}const VFe=(e,r)=>{const{transform:n="none"}=getComputedStyle(e);return SC(n,r)};function qFe(e){return parseFloat(e.trim())}const Em=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Sm=new Set(Em),_K=e=>e===km||e===$t,UFe=new Set(["x","y","z"]),WFe=Em.filter(e=>!UFe.has(e));function YFe(e){const r=[];return WFe.forEach(n=>{const o=e.getValue(n);o!==void 0&&(r.push([n,o.get()]),o.set(n.startsWith("scale")?1:0))}),r}const jp={width:({x:e},{paddingLeft:r="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(r)-parseFloat(n),height:({y:e},{paddingTop:r="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(r)-parseFloat(n),top:(e,{top:r})=>parseFloat(r),left:(e,{left:r})=>parseFloat(r),bottom:({y:e},{top:r})=>parseFloat(r)+(e.max-e.min),right:({x:e},{left:r})=>parseFloat(r)+(e.max-e.min),x:(e,{transform:r})=>SC(r,"x"),y:(e,{transform:r})=>SC(r,"y")};jp.translateX=jp.x,jp.translateY=jp.y;const Lp=new Set;let CC=!1,TC=!1,AC=!1;function EK(){if(TC){const e=Array.from(Lp).filter(o=>o.needsMeasurement),r=new Set(e.map(o=>o.element)),n=new Map;r.forEach(o=>{const a=YFe(o);a.length&&(n.set(o,a),o.render())}),e.forEach(o=>o.measureInitialState()),r.forEach(o=>{o.render();const a=n.get(o);a&&a.forEach(([i,s])=>{o.getValue(i)?.set(s)})}),e.forEach(o=>o.measureEndState()),e.forEach(o=>{o.suspendedScrollY!==void 0&&window.scrollTo(0,o.suspendedScrollY)})}TC=!1,CC=!1,Lp.forEach(e=>e.complete(AC)),Lp.clear()}function SK(){Lp.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(TC=!0)})}function GFe(){AC=!0,SK(),EK(),AC=!1}class RC{constructor(r,n,o,a,i,s=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...r],this.onComplete=n,this.name=o,this.motionValue=a,this.element=i,this.isAsync=s}scheduleResolve(){this.state="scheduled",this.isAsync?(Lp.add(this),CC||(CC=!0,qr.read(SK),qr.resolveKeyframes(EK))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:r,name:n,element:o,motionValue:a}=this;if(r[0]===null){const i=a?.get(),s=r[r.length-1];if(i!==void 0)r[0]=i;else if(o&&n){const l=o.readValue(n,s);l!=null&&(r[0]=l)}r[0]===void 0&&(r[0]=s),a&&i===void 0&&a.set(r[0])}BFe(r)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(r=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,r),Lp.delete(this)}cancel(){this.state==="scheduled"&&(Lp.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const XFe=e=>e.startsWith("--");function KFe(e,r,n){XFe(r)?e.style.setProperty(r,n):e.style[r]=n}const ZFe=eC(()=>window.ScrollTimeline!==void 0),QFe={};function JFe(e,r){const n=eC(e);return()=>QFe[r]??n()}const CK=JFe(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),dy=([e,r,n,o])=>`cubic-bezier(${e}, ${r}, ${n}, ${o})`,TK={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:dy([0,.65,.55,1]),circOut:dy([.55,0,1,.45]),backIn:dy([.31,.01,.66,-.59]),backOut:dy([.33,1.53,.69,.99])};function AK(e,r){if(e)return typeof e=="function"?CK()?hK(e,r):"ease-out":QX(e)?dy(e):Array.isArray(e)?e.map(n=>AK(n,r)||TK.easeOut):TK[e]}function eHe(e,r,n,{delay:o=0,duration:a=300,repeat:i=0,repeatType:s="loop",ease:l="easeOut",times:c}={},d=void 0){const u={[r]:n};c&&(u.offset=c);const h=AK(l,a);Array.isArray(h)&&(u.easing=h);const f={delay:o,duration:a,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"};return d&&(f.pseudoElement=d),e.animate(u,f)}function NC(e){return typeof e=="function"&&"applyToOptions"in e}function tHe({type:e,...r}){return NC(e)&&CK()?e.applyToOptions(r):(r.duration??(r.duration=300),r.ease??(r.ease="easeOut"),r)}class rHe extends xC{constructor(r){if(super(),this.finishedTime=null,this.isStopped=!1,!r)return;const{element:n,name:o,keyframes:a,pseudoElement:i,allowFlatten:s=!1,finalKeyframe:l,onComplete:c}=r;this.isPseudoElement=!!i,this.allowFlatten=s,this.options=r,JS(typeof r.type!="string");const d=tHe(r);this.animation=eHe(n,o,a,d,i),d.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const u=vC(a,this.options,l,this.speed);this.updateMotionValue?this.updateMotionValue(u):KFe(n,o,u),this.animation.cancel()}c?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:r}=this;r==="idle"||r==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const r=this.animation.effect?.getComputedTiming?.().duration||0;return _i(Number(r))}get iterationDuration(){const{delay:r=0}=this.options||{};return this.duration+_i(r)}get time(){return _i(Number(this.animation.currentTime)||0)}set time(r){this.finishedTime=null,this.animation.currentTime=xs(r)}get speed(){return this.animation.playbackRate}set speed(r){r<0&&(this.finishedTime=null),this.animation.playbackRate=r}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(r){this.animation.startTime=r}attachTimeline({timeline:r,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,r&&ZFe()?(this.animation.timeline=r,ki):n(this)}}const RK={anticipate:WX,backInOut:UX,circInOut:GX};function nHe(e){return e in RK}function oHe(e){typeof e.ease=="string"&&nHe(e.ease)&&(e.ease=RK[e.ease])}const NK=10;class aHe extends rHe{constructor(r){oHe(r),vK(r),super(r),r.startTime&&(this.startTime=r.startTime),this.options=r}updateMotionValue(r){const{motionValue:n,onUpdate:o,onComplete:a,element:i,...s}=this.options;if(!n)return;if(r!==void 0){n.set(r);return}const l=new wC({...s,autoplay:!1}),c=xs(this.finishedTime??this.time);n.setWithVelocity(l.sample(c-NK).value,l.sample(c).value,NK),l.stop()}}const DK=(e,r)=>r==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Bd.test(e)||e==="0")&&!e.startsWith("url("));function iHe(e){const r=e[0];if(e.length===1)return!0;for(let n=0;nObject.hasOwnProperty.call(Element.prototype,"animate"));function dHe(e){const{motionValue:r,name:n,repeatDelay:o,repeatType:a,damping:i,type:s}=e;if(!(r?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:c}=r.owner.getProps();return cHe()&&n&&lHe.has(n)&&(n!=="transform"||!c)&&!l&&!o&&a!=="mirror"&&i!==0&&s!=="inertia"}const uHe=40;class pHe extends xC{constructor({autoplay:r=!0,delay:n=0,type:o="keyframes",repeat:a=0,repeatDelay:i=0,repeatType:s="loop",keyframes:l,name:c,motionValue:d,element:u,...h}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=ma.now();const f={autoplay:r,delay:n,type:o,repeat:a,repeatDelay:i,repeatType:s,name:c,motionValue:d,element:u,...h},g=u?.KeyframeResolver||RC;this.keyframeResolver=new g(l,(b,x,w)=>this.onKeyframesResolved(b,x,f,!w),c,d,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(r,n,o,a){this.keyframeResolver=void 0;const{name:i,type:s,velocity:l,delay:c,isHandoff:d,onUpdate:u}=o;this.resolvedAt=ma.now(),sHe(r,i,s,l)||((xc.instantAnimations||!c)&&u?.(vC(r,o,n)),r[0]=r[r.length-1],DC(o),o.repeat=0);const h={startTime:a?this.resolvedAt?this.resolvedAt-this.createdAt>uHe?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...o,keyframes:r},f=!d&&dHe(h)?new aHe({...h,element:h.motionValue.owner.current}):new wC(h);f.finished.then(()=>this.notifyFinished()).catch(ki),this.pendingTimeline&&(this.stopTimeline=f.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=f}get finished(){return this._animation?this.animation.finished:this._finished}then(r,n){return this.finished.finally(r).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),GFe()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(r){this.animation.time=r}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(r){this.animation.speed=r}get startTime(){return this.animation.startTime}attachTimeline(r){return this._animation?this.stopTimeline=this.animation.attachTimeline(r):this.pendingTimeline=r,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}class hHe{constructor(r){this.stop=()=>this.runAll("stop"),this.animations=r.filter(Boolean)}get finished(){return Promise.all(this.animations.map(r=>r.finished))}getAll(r){return this.animations[0][r]}setAll(r,n){for(let o=0;oo.attachTimeline(r));return()=>{n.forEach((o,a)=>{o&&o(),this.animations[a].stop()})}}get time(){return this.getAll("time")}set time(r){this.setAll("time",r)}get speed(){return this.getAll("speed")}set speed(r){this.setAll("speed",r)}get state(){return this.getAll("state")}get startTime(){return this.getAll("startTime")}get duration(){return $K(this.animations,"duration")}get iterationDuration(){return $K(this.animations,"iterationDuration")}runAll(r){this.animations.forEach(n=>n[r]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function $K(e,r){let n=0;for(let o=0;on&&(n=a)}return n}class fHe extends hHe{then(r,n){return this.finished.finally(r).then(()=>{})}}const mHe=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function gHe(e){const r=mHe.exec(e);if(!r)return[,];const[,n,o,a]=r;return[`--${n??o}`,a]}function PK(e,r,n=1){const[o,a]=gHe(e);if(!o)return;const i=window.getComputedStyle(r).getPropertyValue(o);if(i){const s=i.trim();return OX(s)?parseFloat(s):s}return iC(a)?PK(a,r,n+1):a}function $C(e,r){return e?.[r]??e?.default??e}const MK=new Set(["width","height","top","left","right","bottom",...Em]),yHe={test:e=>e==="auto",parse:e=>e},zK=e=>r=>r.test(e),IK=[km,$t,kl,Ld,cFe,lFe,yHe],OK=e=>IK.find(zK(e));function bHe(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||LX(e):!0}const vHe=new Set(["brightness","contrast","saturate","opacity"]);function xHe(e){const[r,n]=e.slice(0,-1).split("(");if(r==="drop-shadow")return e;const[o]=n.match(sC)||[];if(!o)return e;const a=n.replace(o,"");let i=vHe.has(r)?1:0;return o!==n&&(i*=100),r+"("+i+a+")"}const wHe=/\b([a-z-]*)\(.*?\)/gu,PC={...Bd,getAnimatableNone:e=>{const r=e.match(wHe);return r?r.map(xHe).join(" "):e}},jK={...km,transform:Math.round},kHe={rotate:Ld,rotateX:Ld,rotateY:Ld,rotateZ:Ld,scale:vw,scaleX:vw,scaleY:vw,scaleZ:vw,skew:Ld,skewX:Ld,skewY:Ld,distance:$t,translateX:$t,translateY:$t,translateZ:$t,x:$t,y:$t,z:$t,perspective:$t,transformPerspective:$t,opacity:oy,originX:nK,originY:nK,originZ:$t},MC={borderWidth:$t,borderTopWidth:$t,borderRightWidth:$t,borderBottomWidth:$t,borderLeftWidth:$t,borderRadius:$t,radius:$t,borderTopLeftRadius:$t,borderTopRightRadius:$t,borderBottomRightRadius:$t,borderBottomLeftRadius:$t,width:$t,maxWidth:$t,height:$t,maxHeight:$t,top:$t,right:$t,bottom:$t,left:$t,padding:$t,paddingTop:$t,paddingRight:$t,paddingBottom:$t,paddingLeft:$t,margin:$t,marginTop:$t,marginRight:$t,marginBottom:$t,marginLeft:$t,backgroundPositionX:$t,backgroundPositionY:$t,...kHe,zIndex:jK,fillOpacity:oy,strokeOpacity:oy,numOctaves:jK},_He={...MC,color:In,backgroundColor:In,outlineColor:In,fill:In,stroke:In,borderColor:In,borderTopColor:In,borderRightColor:In,borderBottomColor:In,borderLeftColor:In,filter:PC,WebkitFilter:PC},LK=e=>_He[e];function BK(e,r){let n=LK(e);return n!==PC&&(n=Bd),n.getAnimatableNone?n.getAnimatableNone(r):void 0}const EHe=new Set(["auto","none","0"]);function SHe(e,r,n){let o=0,a;for(;o{r.getValue(l).set(c)}),this.resolveNoneKeyframes()}}function FK(e,r,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let o=document;const a=n?.[e]??o.querySelectorAll(e);return a?Array.from(a):[]}return Array.from(e)}const HK=(e,r)=>r&&typeof e=="number"?r.transform(e):e;function VK(e){return jX(e)&&"offsetHeight"in e}const qK=30,THe=e=>!isNaN(parseFloat(e));class AHe{constructor(r,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=o=>{const a=ma.now();if(this.updatedAt!==a&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(o),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const i of this.dependents)i.dirty()},this.hasAnimated=!1,this.setCurrent(r),this.owner=n.owner}setCurrent(r){this.current=r,this.updatedAt=ma.now(),this.canTrackVelocity===null&&r!==void 0&&(this.canTrackVelocity=THe(this.current))}setPrevFrameValue(r=this.current){this.prevFrameValue=r,this.prevUpdatedAt=this.updatedAt}onChange(r){return this.on("change",r)}on(r,n){this.events[r]||(this.events[r]=new tC);const o=this.events[r].add(n);return r==="change"?()=>{o(),qr.read(()=>{this.events.change.getSize()||this.stop()})}:o}clearListeners(){for(const r in this.events)this.events[r].clear()}attach(r,n){this.passiveEffect=r,this.stopPassiveEffect=n}set(r){this.passiveEffect?this.passiveEffect(r,this.updateAndNotify):this.updateAndNotify(r)}setWithVelocity(r,n,o){this.set(n),this.prev=void 0,this.prevFrameValue=r,this.prevUpdatedAt=this.updatedAt-o}jump(r,n=!0){this.updateAndNotify(r),this.prev=r,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(r){this.dependents||(this.dependents=new Set),this.dependents.add(r)}removeDependent(r){this.dependents&&this.dependents.delete(r)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const r=ma.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||r-this.updatedAt>qK)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,qK);return BX(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(r){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=r(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Bp(e,r){return new AHe(e,r)}const{schedule:zC}=eK(queueMicrotask,!1),ws={x:!1,y:!1};function UK(){return ws.x||ws.y}function RHe(e){return e==="x"||e==="y"?ws[e]?null:(ws[e]=!0,()=>{ws[e]=!1}):ws.x||ws.y?null:(ws.x=ws.y=!0,()=>{ws.x=ws.y=!1})}function WK(e,r){const n=FK(e),o=new AbortController,a={passive:!0,...r,signal:o.signal};return[n,a,()=>o.abort()]}function YK(e){return!(e.pointerType==="touch"||UK())}function NHe(e,r,n={}){const[o,a,i]=WK(e,n),s=l=>{if(!YK(l))return;const{target:c}=l,d=r(c,l);if(typeof d!="function"||!c)return;const u=h=>{YK(h)&&(d(h),c.removeEventListener("pointerleave",u))};c.addEventListener("pointerleave",u,a)};return o.forEach(l=>{l.addEventListener("pointerenter",s,a)}),i}const GK=(e,r)=>r?e===r?!0:GK(e,r.parentElement):!1,IC=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,DHe=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function $He(e){return DHe.has(e.tagName)||e.tabIndex!==-1}const kw=new WeakSet;function XK(e){return r=>{r.key==="Enter"&&e(r)}}function OC(e,r){e.dispatchEvent(new PointerEvent("pointer"+r,{isPrimary:!0,bubbles:!0}))}const PHe=(e,r)=>{const n=e.currentTarget;if(!n)return;const o=XK(()=>{if(kw.has(n))return;OC(n,"down");const a=XK(()=>{OC(n,"up")}),i=()=>OC(n,"cancel");n.addEventListener("keyup",a,r),n.addEventListener("blur",i,r)});n.addEventListener("keydown",o,r),n.addEventListener("blur",()=>n.removeEventListener("keydown",o),r)};function KK(e){return IC(e)&&!UK()}function MHe(e,r,n={}){const[o,a,i]=WK(e,n),s=l=>{const c=l.currentTarget;if(!KK(l))return;kw.add(c);const d=r(c,l),u=(g,b)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",f),kw.has(c)&&kw.delete(c),KK(g)&&typeof d=="function"&&d(g,{success:b})},h=g=>{u(g,c===window||c===document||n.useGlobalTarget||GK(c,g.target))},f=g=>{u(g,!1)};window.addEventListener("pointerup",h,a),window.addEventListener("pointercancel",f,a)};return o.forEach(l=>{(n.useGlobalTarget?window:l).addEventListener("pointerdown",s,a),VK(l)&&(l.addEventListener("focus",c=>PHe(c,a)),!$He(l)&&!l.hasAttribute("tabindex")&&(l.tabIndex=0))}),i}function jC(e){return jX(e)&&"ownerSVGElement"in e}function ZK(e){return jC(e)&&e.tagName==="svg"}const uo=e=>!!(e&&e.getVelocity),zHe=[...IK,In,Bd],IHe=e=>zHe.find(zK(e));function LC(e){return typeof e=="object"&&!Array.isArray(e)}function QK(e,r,n,o){return typeof e=="string"&&LC(r)?FK(e,n,o):e instanceof NodeList?Array.from(e):Array.isArray(e)?e:[e]}function OHe(e,r,n){return e*(r+1)}function JK(e,r,n,o){return typeof r=="number"?r:r.startsWith("-")||r.startsWith("+")?Math.max(0,e+parseFloat(r)):r==="<"?n:r.startsWith("<")?Math.max(0,n+parseFloat(r.slice(1))):o.get(r)??e}function jHe(e,r,n){for(let o=0;or&&a.at{const P=qHe(T),{delay:O=0,times:F=bK(P),type:L="keyframes",repeat:U,repeatType:M,repeatDelay:V=0,...I}=A;let{ease:H=r.ease||"easeOut",duration:q}=A;const Z=typeof O=="function"?O(D,N):O,W=P.length,G=NC(L)?L:a?.[L||"keyframes"];if(W<=2&&G){let Q=100;if(W===2&&YHe(P)){const ne=P[1]-P[0];Q=Math.abs(ne)}const J={...I};q!==void 0&&(J.duration=xs(q));const ie=fK(J,Q,G);H=ie.ease,q=ie.duration}q??(q=i);const K=h+Z;F.length===1&&F[0]===0&&(F[1]=1);const j=F.length-P.length;if(j>0&&yK(F,j),P.length===1&&P.unshift(null),U){q=OHe(q,U);const Q=[...P],J=[...F];H=Array.isArray(H)?[...H]:[H];const ie=[...H];for(let ne=0;ne{for(const x in g){const w=g[x];w.sort(FHe);const k=[],C=[],_=[];for(let A=0;Atypeof e=="number",YHe=e=>e.every(WHe),uy=new WeakMap,BC=e=>Array.isArray(e);function rZ(e){const r=[{},{}];return e?.values.forEach((n,o)=>{r[0][o]=n.get(),r[1][o]=n.getVelocity()}),r}function FC(e,r,n,o){if(typeof r=="function"){const[a,i]=rZ(o);r=r(n!==void 0?n:e.custom,a,i)}if(typeof r=="string"&&(r=e.variants&&e.variants[r]),typeof r=="function"){const[a,i]=rZ(o);r=r(n!==void 0?n:e.custom,a,i)}return r}function Cm(e,r,n){const o=e.getProps();return FC(o,r,n!==void 0?n:o.custom,e)}function GHe(e,r,n){e.hasValue(r)?e.getValue(r).set(n):e.addValue(r,Bp(n))}function XHe(e){return BC(e)?e[e.length-1]||0:e}function KHe(e,r){const n=Cm(e,r);let{transitionEnd:o={},transition:a={},...i}=n||{};i={...i,...o};for(const s in i){const l=XHe(i[s]);GHe(e,s,l)}}function ZHe(e){return!!(uo(e)&&e.add)}function HC(e,r){const n=e.getValue("willChange");if(ZHe(n))return n.add(r);if(!n&&xc.WillChange){const o=new xc.WillChange("auto");e.addValue("willChange",o),o.add(r)}}const VC=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),QHe="framerAppearId",nZ="data-"+VC(QHe);function oZ(e){return e.props[nZ]}const JHe=e=>e!==null;function eVe(e,{repeat:r,repeatType:n="loop"},o){const a=e.filter(JHe),i=r&&n!=="loop"&&r%2===1?0:a.length-1;return a[i]}const tVe={type:"spring",stiffness:500,damping:25,restSpeed:10},rVe=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),nVe={type:"keyframes",duration:.8},oVe={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},aVe=(e,{keyframes:r})=>r.length>2?nVe:Sm.has(e)?e.startsWith("scale")?rVe(r[1]):tVe:oVe;function iVe({when:e,delay:r,delayChildren:n,staggerChildren:o,staggerDirection:a,repeat:i,repeatType:s,repeatDelay:l,from:c,elapsed:d,...u}){return!!Object.keys(u).length}const qC=(e,r,n,o={},a,i)=>s=>{const l=$C(o,e)||{},c=l.delay||o.delay||0;let{elapsed:d=0}=o;d=d-xs(c);const u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:r.getVelocity(),...l,delay:-d,onUpdate:f=>{r.set(f),l.onUpdate&&l.onUpdate(f)},onComplete:()=>{s(),l.onComplete&&l.onComplete()},name:e,motionValue:r,element:i?void 0:a};iVe(l)||Object.assign(u,aVe(e,u)),u.duration&&(u.duration=xs(u.duration)),u.repeatDelay&&(u.repeatDelay=xs(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let h=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(DC(u),u.delay===0&&(h=!0)),(xc.instantAnimations||xc.skipAnimations)&&(h=!0,DC(u),u.delay=0),u.allowFlatten=!l.type&&!l.ease,h&&!i&&r.get()!==void 0){const f=eVe(u.keyframes,l);if(f!==void 0){qr.update(()=>{u.onUpdate(f),u.onComplete()});return}}return l.isSync?new wC(u):new pHe(u)};function sVe({protectedKeys:e,needsAnimating:r},n){const o=e.hasOwnProperty(n)&&r[n]!==!0;return r[n]=!1,o}function UC(e,r,{delay:n=0,transitionOverride:o,type:a}={}){let{transition:i=e.getDefaultTransition(),transitionEnd:s,...l}=r;o&&(i=o);const c=[],d=a&&e.animationState&&e.animationState.getState()[a];for(const u in l){const h=e.getValue(u,e.latestValues[u]??null),f=l[u];if(f===void 0||d&&sVe(d,u))continue;const g={delay:n,...$C(i||{},u)},b=h.get();if(b!==void 0&&!h.isAnimating&&!Array.isArray(f)&&f===b&&!g.velocity)continue;let x=!1;if(window.MotionHandoffAnimation){const k=oZ(e);if(k){const C=window.MotionHandoffAnimation(k,u,qr);C!==null&&(g.startTime=C,x=!0)}}HC(e,u),h.start(qC(u,h,f,e.shouldReduceMotion&&MK.has(u)?{type:!1}:g,e,x));const w=h.animation;w&&c.push(w)}return s&&Promise.all(c).then(()=>{qr.update(()=>{s&&KHe(e,s)})}),c}function aZ({top:e,left:r,right:n,bottom:o}){return{x:{min:r,max:n},y:{min:e,max:o}}}function lVe({x:e,y:r}){return{top:r.min,right:e.max,bottom:r.max,left:e.min}}function cVe(e,r){if(!r)return e;const n=r({x:e.left,y:e.top}),o=r({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:o.y,right:o.x}}function WC(e){return e===void 0||e===1}function YC({scale:e,scaleX:r,scaleY:n}){return!WC(e)||!WC(r)||!WC(n)}function Fp(e){return YC(e)||iZ(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function iZ(e){return sZ(e.x)||sZ(e.y)}function sZ(e){return e&&e!=="0%"}function _w(e,r,n){const o=e-n,a=r*o;return n+a}function lZ(e,r,n,o,a){return a!==void 0&&(e=_w(e,a,o)),_w(e,n,o)+r}function GC(e,r=0,n=1,o,a){e.min=lZ(e.min,r,n,o,a),e.max=lZ(e.max,r,n,o,a)}function cZ(e,{x:r,y:n}){GC(e.x,r.translate,r.scale,r.originPoint),GC(e.y,n.translate,n.scale,n.originPoint)}const dZ=.999999999999,uZ=1.0000000000001;function dVe(e,r,n,o=!1){const a=n.length;if(!a)return;r.x=r.y=1;let i,s;for(let l=0;ldZ&&(r.x=1),r.ydZ&&(r.y=1)}function Tm(e,r){e.min=e.min+r,e.max=e.max+r}function pZ(e,r,n,o,a=.5){const i=Zr(e.min,e.max,a);GC(e,r,n,i,o)}function Am(e,r){pZ(e.x,r.x,r.scaleX,r.scale,r.originX),pZ(e.y,r.y,r.scaleY,r.scale,r.originY)}function hZ(e,r){return aZ(cVe(e.getBoundingClientRect(),r))}function uVe(e,r,n){const o=hZ(e,n),{scroll:a}=r;return a&&(Tm(o.x,a.offset.x),Tm(o.y,a.offset.y)),o}const fZ={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Rm={};for(const e in fZ)Rm[e]={isEnabled:r=>fZ[e].some(n=>!!r[n])};const mZ=()=>({translate:0,scale:1,origin:0,originPoint:0}),Nm=()=>({x:mZ(),y:mZ()}),gZ=()=>({min:0,max:0}),gn=()=>({x:gZ(),y:gZ()}),XC=typeof window<"u",Ew={current:null},KC={current:!1};function yZ(){if(KC.current=!0,!!XC)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),r=()=>Ew.current=e.matches;e.addEventListener("change",r),r()}else Ew.current=!1}function Sw(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function py(e){return typeof e=="string"||Array.isArray(e)}const ZC=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],QC=["initial",...ZC];function Cw(e){return Sw(e.animate)||QC.some(r=>py(e[r]))}function bZ(e){return!!(Cw(e)||e.variants)}function pVe(e,r,n){for(const o in r){const a=r[o],i=n[o];if(uo(a))e.addValue(o,a);else if(uo(i))e.addValue(o,Bp(a,{owner:e}));else if(i!==a)if(e.hasValue(o)){const s=e.getValue(o);s.liveStyle===!0?s.jump(a):s.hasAnimated||s.set(a)}else{const s=e.getStaticValue(o);e.addValue(o,Bp(s!==void 0?s:a,{owner:e}))}}for(const o in n)r[o]===void 0&&e.removeValue(o);return r}const vZ=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class xZ{scrapeMotionValuesFromProps(r,n,o){return{}}constructor({parent:r,props:n,presenceContext:o,reducedMotionConfig:a,blockInitialAnimation:i,visualState:s},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=RC,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const f=ma.now();this.renderScheduledAtthis.bindToMotionValue(o,n)),KC.current||yZ(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Ew.current,this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),jd(this.notifyUpdate),jd(this.render),this.valueSubscriptions.forEach(r=>r()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const r in this.events)this.events[r].clear();for(const r in this.features){const n=this.features[r];n&&(n.unmount(),n.isMounted=!1)}this.current=null}addChild(r){this.children.add(r),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(r)}removeChild(r){this.children.delete(r),this.enteringChildren&&this.enteringChildren.delete(r)}bindToMotionValue(r,n){this.valueSubscriptions.has(r)&&this.valueSubscriptions.get(r)();const o=Sm.has(r);o&&this.onBindTransform&&this.onBindTransform();const a=n.on("change",s=>{this.latestValues[r]=s,this.props.onUpdate&&qr.preRender(this.notifyUpdate),o&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let i;window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,r,n)),this.valueSubscriptions.set(r,()=>{a(),i&&i(),n.owner&&n.stop()})}sortNodePosition(r){return!this.current||!this.sortInstanceNodePosition||this.type!==r.type?0:this.sortInstanceNodePosition(this.current,r.current)}updateFeatures(){let r="animation";for(r in Rm){const n=Rm[r];if(!n)continue;const{isEnabled:o,Feature:a}=n;if(!this.features[r]&&a&&o(this.props)&&(this.features[r]=new a(this)),this.features[r]){const i=this.features[r];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):gn()}getStaticValue(r){return this.latestValues[r]}setStaticValue(r,n){this.latestValues[r]=n}update(r,n){(r.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=r,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let o=0;on.variantChildren.delete(r)}addValue(r,n){const o=this.values.get(r);n!==o&&(o&&this.removeValue(r),this.bindToMotionValue(r,n),this.values.set(r,n),this.latestValues[r]=n.get())}removeValue(r){this.values.delete(r);const n=this.valueSubscriptions.get(r);n&&(n(),this.valueSubscriptions.delete(r)),delete this.latestValues[r],this.removeValueFromRenderState(r,this.renderState)}hasValue(r){return this.values.has(r)}getValue(r,n){if(this.props.values&&this.props.values[r])return this.props.values[r];let o=this.values.get(r);return o===void 0&&n!==void 0&&(o=Bp(n===null?void 0:n,{owner:this}),this.addValue(r,o)),o}readValue(r,n){let o=this.latestValues[r]!==void 0||!this.current?this.latestValues[r]:this.getBaseTargetFromProps(this.props,r)??this.readValueFromInstance(this.current,r,this.options);return o!=null&&(typeof o=="string"&&(OX(o)||LX(o))?o=parseFloat(o):!IHe(o)&&Bd.test(n)&&(o=BK(r,n)),this.setBaseTarget(r,uo(o)?o.get():o)),uo(o)?o.get():o}setBaseTarget(r,n){this.baseTarget[r]=n}getBaseTarget(r){const{initial:n}=this.props;let o;if(typeof n=="string"||typeof n=="object"){const i=FC(this.props,n,this.presenceContext?.custom);i&&(o=i[r])}if(n&&o!==void 0)return o;const a=this.getBaseTargetFromProps(this.props,r);return a!==void 0&&!uo(a)?a:this.initialValues[r]!==void 0&&o===void 0?void 0:this.baseTarget[r]}on(r,n){return this.events[r]||(this.events[r]=new tC),this.events[r].add(n)}notify(r,...n){this.events[r]&&this.events[r].notify(...n)}scheduleRenderMicrotask(){zC.render(this.render)}}class wZ extends xZ{constructor(){super(...arguments),this.KeyframeResolver=CHe}sortInstanceNodePosition(r,n){return r.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(r,n){return r.style?r.style[n]:void 0}removeValueFromRenderState(r,{vars:n,style:o}){delete n[r],delete o[r]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:r}=this.props;uo(r)&&(this.childSubscription=r.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}const hVe={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},fVe=Em.length;function mVe(e,r,n){let o="",a=!0;for(let i=0;itypeof e=="string"&&e.toLowerCase()==="svg";function _Ve(e,r,n,o){kZ(e,r,void 0,o);for(const a in r.attrs)e.setAttribute(CZ.has(a)?a:VC(a),r.attrs[a])}function AZ(e,r,n){const o=eT(e,r,n);for(const a in e)if(uo(e[a])||uo(r[a])){const i=Em.indexOf(a)!==-1?"attr"+a.charAt(0).toUpperCase()+a.substring(1):a;o[i]=e[a]}return o}class RZ extends wZ{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=gn}getBaseTargetFromProps(r,n){return r[n]}readValueFromInstance(r,n){if(Sm.has(n)){const o=LK(n);return o&&o.default||0}return n=CZ.has(n)?n:VC(n),r.getAttribute(n)}scrapeMotionValuesFromProps(r,n,o){return AZ(r,n,o)}build(r,n,o){SZ(r,n,this.isSVGTag,o.transformTemplate,o.style)}renderInstance(r,n,o,a){_Ve(r,n,o,a)}mount(r){this.isSVGTag=TZ(r.tagName),super.mount(r)}}function EVe(e){const r={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=jC(e)&&!ZK(e)?new RZ(r):new EZ(r);n.mount(e),uy.set(e,n)}function SVe(e){const r={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},n=new vVe(r);n.mount(e),uy.set(e,n)}function NZ(e,r,n){const o=uo(e)?e:Bp(e);return o.start(qC("",o,r,n)),o.animation}function CVe(e,r){return uo(e)||typeof e=="number"||typeof e=="string"&&!LC(r)}function DZ(e,r,n,o){const a=[];if(CVe(e,r))a.push(NZ(e,LC(r)&&r.default||r,n&&(n.default||n)));else{const i=QK(e,r,o),s=i.length;for(let l=0;l{o.push(...DZ(s,a,i))}),o}function AVe(e){return Array.isArray(e)&&e.some(Array.isArray)}function RVe(e){function r(n,o,a){let i=[],s;if(AVe(n))i=TVe(n,o,e);else{const{onComplete:c,...d}=a||{};typeof c=="function"&&(s=c),i=DZ(n,o,d,e)}const l=new fHe(i);return s&&l.finished.then(s),l}return r}const NVe=RVe();function DVe(e,r){const n=ma.now(),o=({timestamp:a})=>{const i=a-n;i>=r&&(jd(o),e(i-r))};return qr.setup(o,!0),()=>jd(o)}const $Z=(e,r)=>Math.abs(e-r);function $Ve(e,r){const n=$Z(e.x,r.x),o=$Z(e.y,r.y);return Math.sqrt(n**2+o**2)}const fy=E.createContext({});function Dm(e){const r=E.useRef(null);return r.current===null&&(r.current=e()),r.current}const tT=XC?E.useLayoutEffect:E.useEffect,Tw=E.createContext(null),Hp=E.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function PZ(e,r){if(typeof e=="function")return e(r);e!=null&&(e.current=r)}function PVe(...e){return r=>{let n=!1;const o=e.map(a=>{const i=PZ(a,r);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let a=0;a{const{width:d,height:u,top:h,left:f,right:g}=s.current;if(r||!i.current||!d||!u)return;const b=n==="left"?`left: ${f}`:`right: ${g}`;i.current.dataset.motionPopId=a;const x=document.createElement("style");l&&(x.nonce=l);const w=o??document.head;return w.appendChild(x),x.sheet&&x.sheet.insertRule(` + `};function sMe(e,r){return!e||Gu(e)?"":Jr(Wx(e),PV(([n,o])=>[`:is(${r} [data-likec4-tag="${n}"]) {`,lMe(o),"}"]),VV(` +`))}function cMe({children:e,rootSelector:r}){const n=aMe().tags,o=sMe(n,r);return y.jsxs(DW.Provider,{value:n,children:[o!==""&&y.jsx(dMe,{stylesheet:o}),e]})}const dMe=S.memo(({stylesheet:e})=>{const r=Zu()?.();return y.jsx("style",{"data-likec4-tags":!0,type:"text/css",dangerouslySetInnerHTML:{__html:e},nonce:r})});function uMe(e){return S.useContext(DW)[e]??{color:"tomato"}}function MW(){return ti().replace("mantine-","likec4-")}var pMe="css,pos,insetX,insetY,insetEnd,end,insetStart,start,flexDir,p,pl,pr,pt,pb,py,paddingY,paddingX,px,pe,paddingEnd,ps,paddingStart,ml,mr,mt,mb,m,my,marginY,mx,marginX,me,marginEnd,ms,marginStart,ringWidth,ringColor,ring,ringOffset,w,minW,maxW,h,minH,maxH,textShadowColor,bgPosition,bgPositionX,bgPositionY,bgAttachment,bgClip,bg,bgColor,bgOrigin,bgImage,bgRepeat,bgBlendMode,bgSize,bgGradient,bgLinear,bgRadial,bgConic,rounded,roundedTopLeft,roundedTopRight,roundedBottomRight,roundedBottomLeft,roundedTop,roundedRight,roundedBottom,roundedLeft,roundedStartStart,roundedStartEnd,roundedStart,roundedEndStart,roundedEndEnd,roundedEnd,borderX,borderXWidth,borderXColor,borderY,borderYWidth,borderYColor,borderStart,borderStartWidth,borderStartColor,borderEnd,borderEndWidth,borderEndColor,shadow,shadowColor,x,y,z,scrollMarginY,scrollMarginX,scrollPaddingY,scrollPaddingX,aspectRatio,boxDecorationBreak,zIndex,boxSizing,objectPosition,objectFit,overscrollBehavior,overscrollBehaviorX,overscrollBehaviorY,position,top,left,inset,insetInline,insetBlock,insetBlockEnd,insetBlockStart,insetInlineEnd,insetInlineStart,right,bottom,float,visibility,display,hideFrom,hideBelow,flexBasis,flex,flexDirection,flexGrow,flexShrink,gridTemplateColumns,gridTemplateRows,gridColumn,gridRow,gridColumnStart,gridColumnEnd,gridAutoFlow,gridAutoColumns,gridAutoRows,gap,gridGap,gridRowGap,gridColumnGap,rowGap,columnGap,justifyContent,alignContent,alignItems,alignSelf,padding,paddingLeft,paddingRight,paddingTop,paddingBottom,paddingBlock,paddingBlockEnd,paddingBlockStart,paddingInline,paddingInlineEnd,paddingInlineStart,marginLeft,marginRight,marginTop,marginBottom,margin,marginBlock,marginBlockEnd,marginBlockStart,marginInline,marginInlineEnd,marginInlineStart,spaceX,spaceY,outlineWidth,outlineColor,outline,outlineOffset,focusRing,focusVisibleRing,focusRingColor,focusRingOffset,focusRingWidth,focusRingStyle,divideX,divideY,divideColor,divideStyle,width,inlineSize,minWidth,minInlineSize,maxWidth,maxInlineSize,height,blockSize,minHeight,minBlockSize,maxHeight,maxBlockSize,boxSize,color,fontFamily,fontSize,fontSizeAdjust,fontPalette,fontKerning,fontFeatureSettings,fontWeight,fontSmoothing,fontVariant,fontVariantAlternates,fontVariantCaps,fontVariationSettings,fontVariantNumeric,letterSpacing,lineHeight,textAlign,textDecoration,textDecorationColor,textEmphasisColor,textDecorationStyle,textDecorationThickness,textUnderlineOffset,textTransform,textIndent,textShadow,textOverflow,verticalAlign,wordBreak,textWrap,truncate,lineClamp,listStyleType,listStylePosition,listStyleImage,listStyle,backgroundPosition,backgroundPositionX,backgroundPositionY,backgroundAttachment,backgroundClip,background,backgroundColor,backgroundOrigin,backgroundImage,backgroundRepeat,backgroundBlendMode,backgroundSize,backgroundGradient,backgroundLinear,backgroundRadial,backgroundConic,textGradient,gradientFromPosition,gradientToPosition,gradientFrom,gradientTo,gradientVia,gradientViaPosition,borderRadius,borderTopLeftRadius,borderTopRightRadius,borderBottomRightRadius,borderBottomLeftRadius,borderTopRadius,borderRightRadius,borderBottomRadius,borderLeftRadius,borderStartStartRadius,borderStartEndRadius,borderStartRadius,borderEndStartRadius,borderEndEndRadius,borderEndRadius,border,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,borderBlockStartWidth,borderBlockEndWidth,borderColor,borderInline,borderInlineWidth,borderInlineColor,borderBlock,borderBlockWidth,borderBlockColor,borderLeft,borderLeftColor,borderInlineStart,borderInlineStartWidth,borderInlineStartColor,borderRight,borderRightColor,borderInlineEnd,borderInlineEndWidth,borderInlineEndColor,borderTop,borderTopColor,borderBottom,borderBottomColor,borderBlockEnd,borderBlockEndColor,borderBlockStart,borderBlockStartColor,opacity,boxShadow,boxShadowColor,mixBlendMode,filter,brightness,contrast,grayscale,hueRotate,invert,saturate,sepia,dropShadow,blur,backdropFilter,backdropBlur,backdropBrightness,backdropContrast,backdropGrayscale,backdropHueRotate,backdropInvert,backdropOpacity,backdropSaturate,backdropSepia,borderCollapse,borderSpacing,borderSpacingX,borderSpacingY,tableLayout,transitionTimingFunction,transitionDelay,transitionDuration,transitionProperty,transition,animation,animationName,animationTimingFunction,animationDuration,animationDelay,animationPlayState,animationComposition,animationFillMode,animationDirection,animationIterationCount,animationRange,animationState,animationRangeStart,animationRangeEnd,animationTimeline,transformOrigin,transformBox,transformStyle,transform,rotate,rotateX,rotateY,rotateZ,scale,scaleX,scaleY,translate,translateX,translateY,translateZ,accentColor,caretColor,scrollBehavior,scrollbar,scrollbarColor,scrollbarGutter,scrollbarWidth,scrollMargin,scrollMarginLeft,scrollMarginRight,scrollMarginTop,scrollMarginBottom,scrollMarginBlock,scrollMarginBlockEnd,scrollMarginBlockStart,scrollMarginInline,scrollMarginInlineEnd,scrollMarginInlineStart,scrollPadding,scrollPaddingBlock,scrollPaddingBlockStart,scrollPaddingBlockEnd,scrollPaddingInline,scrollPaddingInlineEnd,scrollPaddingInlineStart,scrollPaddingLeft,scrollPaddingRight,scrollPaddingTop,scrollPaddingBottom,scrollSnapAlign,scrollSnapStop,scrollSnapType,scrollSnapStrictness,scrollSnapMargin,scrollSnapMarginTop,scrollSnapMarginBottom,scrollSnapMarginLeft,scrollSnapMarginRight,scrollSnapCoordinate,scrollSnapDestination,scrollSnapPointsX,scrollSnapPointsY,scrollSnapTypeX,scrollSnapTypeY,scrollTimeline,scrollTimelineAxis,scrollTimelineName,touchAction,userSelect,overflow,overflowWrap,overflowX,overflowY,overflowAnchor,overflowBlock,overflowInline,overflowClipBox,overflowClipMargin,overscrollBehaviorBlock,overscrollBehaviorInline,fill,stroke,strokeWidth,strokeDasharray,strokeDashoffset,strokeLinecap,strokeLinejoin,strokeMiterlimit,strokeOpacity,srOnly,debug,appearance,backfaceVisibility,clipPath,hyphens,mask,maskImage,maskSize,textSizeAdjust,container,containerName,containerType,cursor,colorPalette,_hover,_focus,_focusWithin,_focusVisible,_disabled,_active,_visited,_target,_readOnly,_readWrite,_empty,_checked,_enabled,_expanded,_highlighted,_complete,_incomplete,_dragging,_before,_after,_firstLetter,_firstLine,_marker,_selection,_file,_backdrop,_first,_last,_only,_even,_odd,_firstOfType,_lastOfType,_onlyOfType,_peerFocus,_peerHover,_peerActive,_peerFocusWithin,_peerFocusVisible,_peerDisabled,_peerChecked,_peerInvalid,_peerExpanded,_peerPlaceholderShown,_groupFocus,_groupHover,_groupActive,_groupFocusWithin,_groupFocusVisible,_groupDisabled,_groupChecked,_groupExpanded,_groupInvalid,_indeterminate,_required,_valid,_invalid,_autofill,_inRange,_outOfRange,_placeholder,_placeholderShown,_pressed,_selected,_grabbed,_underValue,_overValue,_atValue,_default,_optional,_open,_closed,_fullscreen,_loading,_hidden,_current,_currentPage,_currentStep,_today,_unavailable,_rangeStart,_rangeEnd,_now,_topmost,_motionReduce,_motionSafe,_print,_landscape,_portrait,_dark,_light,_osDark,_osLight,_highContrast,_lessContrast,_moreContrast,_ltr,_rtl,_scrollbar,_scrollbarThumb,_scrollbarTrack,_horizontal,_vertical,_icon,_starting,_noscript,_invertedColors,_shapeSizeXs,_shapeSizeSm,_shapeSizeMd,_shapeSizeLg,_shapeSizeXl,_shapeRectangle,_shapePerson,_shapeBrowser,_shapeMobile,_shapeCylinder,_shapeStorage,_shapeQueue,_notDisabled,_reduceGraphics,_reduceGraphicsOnPan,_noReduceGraphics,_whenPanning,_smallZoom,_compoundTransparent,_edgeActive,_whenHovered,_whenSelectable,_whenSelected,_whenDimmed,_whenFocused,_p3,_srgb,_rec2020,xs,xsOnly,xsDown,sm,smOnly,smDown,md,mdOnly,mdDown,lg,lgOnly,lgDown,xl,xlOnly,xlDown,xsToSm,xsToMd,xsToLg,xsToXl,smToMd,smToLg,smToXl,mdToLg,mdToXl,lgToXl,@/xs,@/sm,@/md,@/lg,@likec4-root/xs,@likec4-root/sm,@likec4-root/md,@likec4-root/lg,@likec4-dialog/xs,@likec4-dialog/sm,@likec4-dialog/md,@likec4-dialog/lg,textStyle,layerStyle,animationStyle",hMe=pMe.split(","),fMe="WebkitAppearance,WebkitBorderBefore,WebkitBorderBeforeColor,WebkitBorderBeforeStyle,WebkitBorderBeforeWidth,WebkitBoxReflect,WebkitLineClamp,WebkitMask,WebkitMaskAttachment,WebkitMaskClip,WebkitMaskComposite,WebkitMaskImage,WebkitMaskOrigin,WebkitMaskPosition,WebkitMaskPositionX,WebkitMaskPositionY,WebkitMaskRepeat,WebkitMaskRepeatX,WebkitMaskRepeatY,WebkitMaskSize,WebkitOverflowScrolling,WebkitTapHighlightColor,WebkitTextFillColor,WebkitTextStroke,WebkitTextStrokeColor,WebkitTextStrokeWidth,WebkitTouchCallout,WebkitUserModify,WebkitUserSelect,accentColor,alignContent,alignItems,alignSelf,alignTracks,all,anchorName,anchorScope,animation,animationComposition,animationDelay,animationDirection,animationDuration,animationFillMode,animationIterationCount,animationName,animationPlayState,animationRange,animationRangeEnd,animationRangeStart,animationTimeline,animationTimingFunction,appearance,aspectRatio,backdropFilter,backfaceVisibility,background,backgroundAttachment,backgroundBlendMode,backgroundClip,backgroundColor,backgroundImage,backgroundOrigin,backgroundPosition,backgroundPositionX,backgroundPositionY,backgroundRepeat,backgroundSize,blockSize,border,borderBlock,borderBlockColor,borderBlockEnd,borderBlockEndColor,borderBlockEndStyle,borderBlockEndWidth,borderBlockStart,borderBlockStartColor,borderBlockStartStyle,borderBlockStartWidth,borderBlockStyle,borderBlockWidth,borderBottom,borderBottomColor,borderBottomLeftRadius,borderBottomRightRadius,borderBottomStyle,borderBottomWidth,borderCollapse,borderColor,borderEndEndRadius,borderEndStartRadius,borderImage,borderImageOutset,borderImageRepeat,borderImageSlice,borderImageSource,borderImageWidth,borderInline,borderInlineColor,borderInlineEnd,borderInlineEndColor,borderInlineEndStyle,borderInlineEndWidth,borderInlineStart,borderInlineStartColor,borderInlineStartStyle,borderInlineStartWidth,borderInlineStyle,borderInlineWidth,borderLeft,borderLeftColor,borderLeftStyle,borderLeftWidth,borderRadius,borderRight,borderRightColor,borderRightStyle,borderRightWidth,borderSpacing,borderStartEndRadius,borderStartStartRadius,borderStyle,borderTop,borderTopColor,borderTopLeftRadius,borderTopRightRadius,borderTopStyle,borderTopWidth,borderWidth,bottom,boxAlign,boxDecorationBreak,boxDirection,boxFlex,boxFlexGroup,boxLines,boxOrdinalGroup,boxOrient,boxPack,boxShadow,boxSizing,breakAfter,breakBefore,breakInside,captionSide,caret,caretColor,caretShape,clear,clip,clipPath,clipRule,color,colorInterpolationFilters,colorScheme,columnCount,columnFill,columnGap,columnRule,columnRuleColor,columnRuleStyle,columnRuleWidth,columnSpan,columnWidth,columns,contain,containIntrinsicBlockSize,containIntrinsicHeight,containIntrinsicInlineSize,containIntrinsicSize,containIntrinsicWidth,container,containerName,containerType,content,contentVisibility,counterIncrement,counterReset,counterSet,cursor,cx,cy,d,direction,display,dominantBaseline,emptyCells,fieldSizing,fill,fillOpacity,fillRule,filter,flex,flexBasis,flexDirection,flexFlow,flexGrow,flexShrink,flexWrap,float,floodColor,floodOpacity,font,fontFamily,fontFeatureSettings,fontKerning,fontLanguageOverride,fontOpticalSizing,fontPalette,fontSize,fontSizeAdjust,fontSmooth,fontStretch,fontStyle,fontSynthesis,fontSynthesisPosition,fontSynthesisSmallCaps,fontSynthesisStyle,fontSynthesisWeight,fontVariant,fontVariantAlternates,fontVariantCaps,fontVariantEastAsian,fontVariantEmoji,fontVariantLigatures,fontVariantNumeric,fontVariantPosition,fontVariationSettings,fontWeight,forcedColorAdjust,gap,grid,gridArea,gridAutoColumns,gridAutoFlow,gridAutoRows,gridColumn,gridColumnEnd,gridColumnGap,gridColumnStart,gridGap,gridRow,gridRowEnd,gridRowGap,gridRowStart,gridTemplate,gridTemplateAreas,gridTemplateColumns,gridTemplateRows,hangingPunctuation,height,hyphenateCharacter,hyphenateLimitChars,hyphens,imageOrientation,imageRendering,imageResolution,imeMode,initialLetter,initialLetterAlign,inlineSize,inset,insetBlock,insetBlockEnd,insetBlockStart,insetInline,insetInlineEnd,insetInlineStart,interpolateSize,isolation,justifyContent,justifyItems,justifySelf,justifyTracks,left,letterSpacing,lightingColor,lineBreak,lineClamp,lineHeight,lineHeightStep,listStyle,listStyleImage,listStylePosition,listStyleType,margin,marginBlock,marginBlockEnd,marginBlockStart,marginBottom,marginInline,marginInlineEnd,marginInlineStart,marginLeft,marginRight,marginTop,marginTrim,marker,markerEnd,markerMid,markerStart,mask,maskBorder,maskBorderMode,maskBorderOutset,maskBorderRepeat,maskBorderSlice,maskBorderSource,maskBorderWidth,maskClip,maskComposite,maskImage,maskMode,maskOrigin,maskPosition,maskRepeat,maskSize,maskType,masonryAutoFlow,mathDepth,mathShift,mathStyle,maxBlockSize,maxHeight,maxInlineSize,maxLines,maxWidth,minBlockSize,minHeight,minInlineSize,minWidth,mixBlendMode,objectFit,objectPosition,offset,offsetAnchor,offsetDistance,offsetPath,offsetPosition,offsetRotate,opacity,order,orphans,outline,outlineColor,outlineOffset,outlineStyle,outlineWidth,overflow,overflowAnchor,overflowBlock,overflowClipBox,overflowClipMargin,overflowInline,overflowWrap,overflowX,overflowY,overlay,overscrollBehavior,overscrollBehaviorBlock,overscrollBehaviorInline,overscrollBehaviorX,overscrollBehaviorY,padding,paddingBlock,paddingBlockEnd,paddingBlockStart,paddingBottom,paddingInline,paddingInlineEnd,paddingInlineStart,paddingLeft,paddingRight,paddingTop,page,pageBreakAfter,pageBreakBefore,pageBreakInside,paintOrder,perspective,perspectiveOrigin,placeContent,placeItems,placeSelf,pointerEvents,position,positionAnchor,positionArea,positionTry,positionTryFallbacks,positionTryOrder,positionVisibility,printColorAdjust,quotes,r,resize,right,rotate,rowGap,rubyAlign,rubyMerge,rubyPosition,rx,ry,scale,scrollBehavior,scrollMargin,scrollMarginBlock,scrollMarginBlockEnd,scrollMarginBlockStart,scrollMarginBottom,scrollMarginInline,scrollMarginInlineEnd,scrollMarginInlineStart,scrollMarginLeft,scrollMarginRight,scrollMarginTop,scrollPadding,scrollPaddingBlock,scrollPaddingBlockEnd,scrollPaddingBlockStart,scrollPaddingBottom,scrollPaddingInline,scrollPaddingInlineEnd,scrollPaddingInlineStart,scrollPaddingLeft,scrollPaddingRight,scrollPaddingTop,scrollSnapAlign,scrollSnapCoordinate,scrollSnapDestination,scrollSnapPointsX,scrollSnapPointsY,scrollSnapStop,scrollSnapType,scrollSnapTypeX,scrollSnapTypeY,scrollTimeline,scrollTimelineAxis,scrollTimelineName,scrollbarColor,scrollbarGutter,scrollbarWidth,shapeImageThreshold,shapeMargin,shapeOutside,shapeRendering,stopColor,stopOpacity,stroke,strokeDasharray,strokeDashoffset,strokeLinecap,strokeLinejoin,strokeMiterlimit,strokeOpacity,strokeWidth,tabSize,tableLayout,textAlign,textAlignLast,textAnchor,textBox,textBoxEdge,textBoxTrim,textCombineUpright,textDecoration,textDecorationColor,textDecorationLine,textDecorationSkip,textDecorationSkipInk,textDecorationStyle,textDecorationThickness,textEmphasis,textEmphasisColor,textEmphasisPosition,textEmphasisStyle,textIndent,textJustify,textOrientation,textOverflow,textRendering,textShadow,textSizeAdjust,textSpacingTrim,textTransform,textUnderlineOffset,textUnderlinePosition,textWrap,textWrapMode,textWrapStyle,timelineScope,top,touchAction,transform,transformBox,transformOrigin,transformStyle,transition,transitionBehavior,transitionDelay,transitionDuration,transitionProperty,transitionTimingFunction,translate,unicodeBidi,userSelect,vectorEffect,verticalAlign,viewTimeline,viewTimelineAxis,viewTimelineInset,viewTimelineName,viewTransitionName,visibility,whiteSpace,whiteSpaceCollapse,widows,width,willChange,wordBreak,wordSpacing,wordWrap,writingMode,x,y,zIndex,zoom,alignmentBaseline,baselineShift,colorInterpolation,colorRendering,glyphOrientationVertical",mMe=fMe.split(",").concat(hMe),gMe=new Map(mMe.map(e=>[e,!0])),yMe=/&|@/,NW=Zn(e=>gMe.has(e)||e.startsWith("--")||yMe.test(e));const vMe=(e,r)=>!r.includes(e)&&!NW(e),bMe=(e,r)=>e.__shouldForwardProps__&&r?n=>e.__shouldForwardProps__(n)&&r(n):r,xMe=(e,r)=>{if(e&&!r)return e;if(!e&&r)return r;if(e.__cva__&&r.__cva__||e.__recipe__&&r.__recipe__)return e.merge(r);const n=new TypeError("Cannot merge cva with recipe. Please use either cva or recipe.");throw TypeError.captureStackTrace?.(n),n},wMe=e=>typeof e=="string"?e:e?.displayName||e?.name||"Component";function sS(e,r={},n={}){const o=r.__cva__||r.__recipe__?r:b1(r),a=n.shouldForwardProp||vMe,i=f=>n.forwardProps?.includes(f)?!0:a(f,o.variantKeys),l=Object.assign(n.dataAttr&&r.__name__?{"data-recipe":r.__name__}:{},n.defaultProps),s=xMe(e.__cva__,o),c=bMe(e,i),d=e.__base__||e,u=S.forwardRef(function(f,g){const{as:v=d,unstyled:w,children:x,...k}=f,C=S.useMemo(()=>Object.assign({},l,k),[k]),[_,$,z,j,A]=S.useMemo(()=>Fn(C,S8.keys,c,s.variantKeys,NW),[C]);function R(){const{css:P,...L}=j,H=s.__getCompoundVariantCss__?.(z);return Ge(s(z,!1),fe(H,L,P),C.className)}function T(){const{css:P,...L}=j,H=s.raw(z);return Ge(fe(H,L,P),C.className)}const O=()=>{if(w){const{css:P,...L}=j;return Ge(fe(L,P),C.className)}return r.__recipe__?R():T()};return S.createElement(v,{ref:g,...$,...A,...S8(_),className:O()},x??C.children)}),p=wMe(d);return u.displayName=`styled.${p}`,u.__cva__=s,u.__base__=d,u.__shouldForwardProps__=i,u}function kMe(){const e=new Map;return new Proxy(sS,{apply(r,n,o){return sS(...o)},get(r,n){return e.has(n)||e.set(n,sS(n)),e.get(n)}})}const gd=kMe(),PW={transform(e){return e}},_Me=(e={})=>{const r=v1(PW,e);return PW.transform(r,y1)},hr=S.forwardRef(function(e,r){const[n,o]=Fn(e,[]),a=_Me(n),i={ref:r,...a,...o};return S.createElement(gd.div,i)}),BW={transform(e){const{justify:r,gap:n,...o}=e;return{display:"flex",alignItems:"center",justifyContent:r,gap:n,flexDirection:"column",...o}},defaultValues:{alignItems:"stretch",gap:"sm"}},cS=(e={})=>{const r=v1(BW,e);return BW.transform(r,y1)},my=e=>fe(cS(e));my.raw=cS;const ip=S.forwardRef(function(e,r){const[n,o]=Fn(e,["justify","gap"]),a=cS(n),i={ref:r,...a,...o};return S.createElement(gd.div,i)}),OW={transform(e){const{justify:r,gap:n,...o}=e;return{display:"flex",alignItems:"center",justifyContent:r,gap:n,flexDirection:"row",...o}},defaultValues:{gap:"sm"}},dS=(e={})=>{const r=v1(OW,e);return OW.transform(r,y1)},qn=e=>fe(dS(e));qn.raw=dS;const Ir=S.forwardRef(function(e,r){const[n,o]=Fn(e,["justify","gap"]),a=dS(n),i={ref:r,...a,...o};return S.createElement(gd.div,i)}),IW={transform(e){return{position:"relative",maxWidth:"8xl",mx:"auto",px:{base:"4",md:"6",lg:"8"},...e}}},LW=(e={})=>{const r=v1(IW,e);return IW.transform(r,y1)},FW=e=>fe(LW(e));FW.raw=LW;const VW={transform(e,{map:r,isCssUnit:n,isCssVar:o}){const{inline:a,block:i,...l}=e,s=c=>n(c)||o(c)?c:`token(spacing.${c}, ${c})`;return{"--bleed-x":r(a,s),"--bleed-y":r(i,s),marginInline:"calc(var(--bleed-x, 0) * -1)",marginBlock:"calc(var(--bleed-y, 0) * -1)",...l}},defaultValues:{inline:"0",block:"0"}},qW=(e={})=>{const r=v1(VW,e);return VW.transform(r,y1)},HW=e=>fe(qW(e));HW.raw=qW;const SMe=S.createContext(null),uS={didCatch:!1,error:null};let UW=class extends S.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=uS}static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(){const{error:e}=this.state;if(e!==null){for(var r,n,o=arguments.length,a=new Array(o),i=0;i0&&arguments[0]!==void 0?arguments[0]:[],r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e.length!==r.length||e.some((n,o)=>!Object.is(n,r[o]))}const CMe=[["path",{d:"M18 6l-12 12",key:"svg-0"}],["path",{d:"M6 6l12 12",key:"svg-1"}]],lp=wt("outline","x","X",CMe);function WW({error:e,resetErrorBoundary:r}){const n=e instanceof Error?e.message:"Unknown error",o=S.useRef(null);return S.useEffect(()=>{o.current?.showModal()},[]),y.jsx("dialog",{ref:o,className:fe({margin:"0",padding:"0",position:"fixed",top:"10",left:"10",width:"[calc(100vw - ({spacing.10} * 2))]",height:"max-content",maxHeight:"[calc(100vh - ({spacing.10} * 3))]",background:"likec4.overlay.body",rounded:"sm",borderWidth:3,borderColor:"likec4.overlay.border",shadow:"xl",outline:"none",_backdrop:{cursor:"zoom-out",backdropFilter:"blur(18px)",bg:"[color-mix(in oklab, {colors.likec4.overlay.backdrop} 60%, transparent)]"}}),onClick:a=>{if(a.stopPropagation(),a.target?.nodeName?.toUpperCase()==="DIALOG"){o.current?.close();return}},onClose:a=>{a.stopPropagation(),r()},children:y.jsxs(Ir,{p:"xl",gap:"lg",alignItems:"flex-start",flexWrap:"nowrap",children:[y.jsx($a,{size:"md",radius:"xl",color:"red",children:y.jsx(lp,{style:{width:20,height:20}})}),y.jsxs(ip,{flex:"1",children:[y.jsx(at,{fz:"md",children:"Oops, something went wrong"}),y.jsx(ta,{maw:"100%",mah:400,type:"auto",children:y.jsx(at,{fz:"md",c:"red",style:{whiteSpace:"pre-wrap",userSelect:"all"},children:n})}),y.jsxs(Ir,{gap:"md",mt:"md",children:[y.jsx(Vn,{size:"sm",variant:"default",onClick:()=>r(),children:"Reset"}),y.jsx(at,{fz:"sm",c:"dimmed",children:"See console for more details and report the issue if it persists."})]})]})]})})}function pS(e){return y.jsx(UW,{FallbackComponent:WW,onError:(r,n)=>{console.error(r,n)},...e})}const GW={enableEditor:!1,enableReadOnly:!0,enableCompareWithLatest:!1,enableControls:!1,enableDynamicViewWalkthrough:!1,enableElementDetails:!1,enableFocusMode:!1,enableNavigateTo:!1,enableNotations:!1,enableRelationshipBrowser:!1,enableRelationshipDetails:!1,enableSearch:!1,enableNavigationButtons:!1,enableFitView:!1,enableVscode:!1,enableElementTags:!1},hS=S.createContext(GW);function sp({children:e,features:r,overrides:n}){const o=S.useContext(hS),[a,i]=S.useState(o);return S.useEffect(()=>{i(l=>{const s={...o,...r,...n};return Or(l,s)?l:s})},[o,r,n]),y.jsx(hS.Provider,{value:a,children:e})}const $Me={enableControls:!1,enableReadOnly:!0,enableCompareWithLatest:!1};sp.Overlays=({children:e})=>y.jsx(sp,{overrides:$Me,children:e});function sr(){return S.useContext(hS)}function zMe({feature:e,children:r,and:n=!0}){return sr()[`enable${e}`]===!0&&n?y.jsx(y.Fragment,{children:r}):null}function RMe(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global}function jMe(){const e=RMe();if(e.__xstate__)return e.__xstate__}const TMe=e=>{if(typeof window>"u")return;const r=jMe();r&&r.register(e)};class YW{constructor(r){this._process=r,this._active=!1,this._current=null,this._last=null}start(){this._active=!0,this.flush()}clear(){this._current&&(this._current.next=null,this._last=this._current)}enqueue(r){const n={value:r,next:null};if(this._current){this._last.next=n,this._last=n;return}this._current=n,this._last=n,this._active&&this.flush()}flush(){for(;this._current;){const r=this._current;this._process(r.value),this._current=r.next}this._last=null}}const XW=".",AMe="",ZW="",DMe="#",MMe="*",KW="xstate.init",NMe="xstate.error",gy="xstate.stop";function PMe(e,r){return{type:`xstate.after.${e}.${r}`}}function fS(e,r){return{type:`xstate.done.state.${e}`,output:r}}function BMe(e,r){return{type:`xstate.done.actor.${e}`,output:r,actorId:e}}function QW(e,r){return{type:`xstate.error.actor.${e}`,error:r,actorId:e}}function JW(e){return{type:KW,input:e}}function es(e){setTimeout(()=>{throw e})}const OMe=typeof Symbol=="function"&&Symbol.observable||"@@observable";function eG(e,r){const n=tG(e),o=tG(r);return typeof o=="string"?typeof n=="string"?o===n:!1:typeof n=="string"?n in o:Object.keys(n).every(a=>a in o?eG(n[a],o[a]):!1)}function mS(e){if(oG(e))return e;const r=[];let n="";for(let o=0;otypeof r>"u"||typeof r=="string"?{target:r}:r)}function aG(e){if(!(e===void 0||e===AMe))return ec(e)}function c3(e,r,n){const o=typeof e=="object",a=o?e:void 0;return{next:(o?e.next:e)?.bind(a),error:(o?e.error:r)?.bind(a),complete:(o?e.complete:n)?.bind(a)}}function iG(e,r){return`${r}.${e}`}function yS(e,r){const n=r.match(/^xstate\.invoke\.(\d+)\.(.*)/);if(!n)return e.implementations.actors[r];const[,o,a]=n,i=e.getStateNodeById(a).config.invoke;return(Array.isArray(i)?i[o]:i).src}function lG(e,r){return`${e.sessionId}.${r}`}let FMe=0;function VMe(e,r){const n=new Map,o=new Map,a=new WeakMap,i=new Set,l={},{clock:s,logger:c}=r,d={schedule:(f,g,v,w,x=Math.random().toString(36).slice(2))=>{const k={source:f,target:g,event:v,delay:w,id:x,startedAt:Date.now()},C=lG(f,x);p._snapshot._scheduledEvents[C]=k;const _=s.setTimeout(()=>{delete l[C],delete p._snapshot._scheduledEvents[C],p._relay(f,g,v)},w);l[C]=_},cancel:(f,g)=>{const v=lG(f,g),w=l[v];delete l[v],delete p._snapshot._scheduledEvents[v],w!==void 0&&s.clearTimeout(w)},cancelAll:f=>{for(const g in p._snapshot._scheduledEvents){const v=p._snapshot._scheduledEvents[g];v.source===f&&d.cancel(f,v.id)}}},u=f=>{if(!i.size)return;const g={...f,rootId:e.sessionId};i.forEach(v=>v.next?.(g))},p={_snapshot:{_scheduledEvents:(r?.snapshot&&r.snapshot.scheduler)??{}},_bookId:()=>`x:${FMe++}`,_register:(f,g)=>(n.set(f,g),f),_unregister:f=>{n.delete(f.sessionId);const g=a.get(f);g!==void 0&&(o.delete(g),a.delete(f))},get:f=>o.get(f),getAll:()=>Object.fromEntries(o.entries()),_set:(f,g)=>{const v=o.get(f);if(v&&v!==g)throw new Error(`Actor with system ID '${f}' already exists.`);o.set(f,g),a.set(g,f)},inspect:f=>{const g=c3(f);return i.add(g),{unsubscribe(){i.delete(g)}}},_sendInspectionEvent:u,_relay:(f,g,v)=>{p._sendInspectionEvent({type:"@xstate.event",sourceRef:f,actorRef:g,event:v}),g._send(v)},scheduler:d,getSnapshot:()=>({_scheduledEvents:{...p._snapshot._scheduledEvents}}),start:()=>{const f=p._snapshot._scheduledEvents;p._snapshot._scheduledEvents={};for(const g in f){const{source:v,target:w,event:x,delay:k,id:C}=f[g];d.schedule(v,w,x,k,C)}},_clock:s,_logger:c};return p}let vS=!1;const bS=1;let ra=(function(e){return e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped",e})({});const qMe={clock:{setTimeout:(e,r)=>setTimeout(e,r),clearTimeout:e=>clearTimeout(e)},logger:console.log.bind(console),devTools:!1};class HMe{constructor(r,n){this.logic=r,this._snapshot=void 0,this.clock=void 0,this.options=void 0,this.id=void 0,this.mailbox=new YW(this._process.bind(this)),this.observers=new Set,this.eventListeners=new Map,this.logger=void 0,this._processingStatus=ra.NotStarted,this._parent=void 0,this._syncSnapshot=void 0,this.ref=void 0,this._actorScope=void 0,this.systemId=void 0,this.sessionId=void 0,this.system=void 0,this._doneEvent=void 0,this.src=void 0,this._deferred=[];const o={...qMe,...n},{clock:a,logger:i,parent:l,syncSnapshot:s,id:c,systemId:d,inspect:u}=o;this.system=l?l.system:VMe(this,{clock:a,logger:i}),u&&!l&&this.system.inspect(c3(u)),this.sessionId=this.system._bookId(),this.id=c??this.sessionId,this.logger=n?.logger??this.system._logger,this.clock=n?.clock??this.system._clock,this._parent=l,this._syncSnapshot=s,this.options=o,this.src=o.src??r,this.ref=this,this._actorScope={self:this,id:this.id,sessionId:this.sessionId,logger:this.logger,defer:p=>{this._deferred.push(p)},system:this.system,stopChild:p=>{if(p._parent!==this)throw new Error(`Cannot stop child actor ${p.id} of ${this.id} because it is not a child`);p._stop()},emit:p=>{const f=this.eventListeners.get(p.type),g=this.eventListeners.get("*");if(!f&&!g)return;const v=[...f?f.values():[],...g?g.values():[]];for(const w of v)try{w(p)}catch(x){es(x)}},actionExecutor:p=>{const f=()=>{if(this._actorScope.system._sendInspectionEvent({type:"@xstate.action",actorRef:this,action:{type:p.type,params:p.params}}),!p.exec)return;const g=vS;try{vS=!0,p.exec(p.info,p.params)}finally{vS=g}};this._processingStatus===ra.Running?f():this._deferred.push(f)}},this.send=this.send.bind(this),this.system._sendInspectionEvent({type:"@xstate.actor",actorRef:this}),d&&(this.systemId=d,this.system._set(d,this)),this._initState(n?.snapshot??n?.state),d&&this._snapshot.status!=="active"&&this.system._unregister(this)}_initState(r){try{this._snapshot=r?this.logic.restoreSnapshot?this.logic.restoreSnapshot(r,this._actorScope):r:this.logic.getInitialSnapshot(this._actorScope,this.options?.input)}catch(n){this._snapshot={status:"error",output:void 0,error:n}}}update(r,n){this._snapshot=r;let o;for(;o=this._deferred.shift();)try{o()}catch(a){this._deferred.length=0,this._snapshot={...r,status:"error",error:a}}switch(this._snapshot.status){case"active":for(const a of this.observers)try{a.next?.(r)}catch(i){es(i)}break;case"done":for(const a of this.observers)try{a.next?.(r)}catch(i){es(i)}this._stopProcedure(),this._complete(),this._doneEvent=BMe(this.id,this._snapshot.output),this._parent&&this.system._relay(this,this._parent,this._doneEvent);break;case"error":this._error(this._snapshot.error);break}this.system._sendInspectionEvent({type:"@xstate.snapshot",actorRef:this,event:n,snapshot:r})}subscribe(r,n,o){const a=c3(r,n,o);if(this._processingStatus!==ra.Stopped)this.observers.add(a);else switch(this._snapshot.status){case"done":try{a.complete?.()}catch(i){es(i)}break;case"error":{const i=this._snapshot.error;if(!a.error)es(i);else try{a.error(i)}catch(l){es(l)}break}}return{unsubscribe:()=>{this.observers.delete(a)}}}on(r,n){let o=this.eventListeners.get(r);o||(o=new Set,this.eventListeners.set(r,o));const a=n.bind(void 0);return o.add(a),{unsubscribe:()=>{o.delete(a)}}}start(){if(this._processingStatus===ra.Running)return this;this._syncSnapshot&&this.subscribe({next:n=>{n.status==="active"&&this.system._relay(this,this._parent,{type:`xstate.snapshot.${this.id}`,snapshot:n})},error:()=>{}}),this.system._register(this.sessionId,this),this.systemId&&this.system._set(this.systemId,this),this._processingStatus=ra.Running;const r=JW(this.options.input);switch(this.system._sendInspectionEvent({type:"@xstate.event",sourceRef:this._parent,actorRef:this,event:r}),this._snapshot.status){case"done":return this.update(this._snapshot,r),this;case"error":return this._error(this._snapshot.error),this}if(this._parent||this.system.start(),this.logic.start)try{this.logic.start(this._snapshot,this._actorScope)}catch(n){return this._snapshot={...this._snapshot,status:"error",error:n},this._error(n),this}return this.update(this._snapshot,r),this.options.devTools&&this.attachDevTools(),this.mailbox.start(),this}_process(r){let n,o;try{n=this.logic.transition(this._snapshot,r,this._actorScope)}catch(a){o={err:a}}if(o){const{err:a}=o;this._snapshot={...this._snapshot,status:"error",error:a},this._error(a);return}this.update(n,r),r.type===gy&&(this._stopProcedure(),this._complete())}_stop(){return this._processingStatus===ra.Stopped?this:(this.mailbox.clear(),this._processingStatus===ra.NotStarted?(this._processingStatus=ra.Stopped,this):(this.mailbox.enqueue({type:gy}),this))}stop(){if(this._parent)throw new Error("A non-root actor cannot be stopped directly.");return this._stop()}_complete(){for(const r of this.observers)try{r.complete?.()}catch(n){es(n)}this.observers.clear()}_reportError(r){if(!this.observers.size){this._parent||es(r);return}let n=!1;for(const o of this.observers){const a=o.error;n||=!a;try{a?.(r)}catch(i){es(i)}}this.observers.clear(),n&&es(r)}_error(r){this._stopProcedure(),this._reportError(r),this._parent&&this.system._relay(this,this._parent,QW(this.id,r))}_stopProcedure(){return this._processingStatus!==ra.Running?this:(this.system.scheduler.cancelAll(this),this.mailbox.clear(),this.mailbox=new YW(this._process.bind(this)),this._processingStatus=ra.Stopped,this.system._unregister(this),this)}_send(r){this._processingStatus!==ra.Stopped&&this.mailbox.enqueue(r)}send(r){this.system._relay(void 0,this,r)}attachDevTools(){const{devTools:r}=this.options;r&&(typeof r=="function"?r:TMe)(this)}toJSON(){return{xstate$$type:bS,id:this.id}}getPersistedSnapshot(r){return this.logic.getPersistedSnapshot(this._snapshot,r)}[OMe](){return this}getSnapshot(){return this._snapshot}}function Of(e,...[r]){return new HMe(e,r)}function UMe(e,r,n,o,{sendId:a}){const i=typeof a=="function"?a(n,o):a;return[r,{sendId:i},void 0]}function WMe(e,r){e.defer(()=>{e.system.scheduler.cancel(e.self,r.sendId)})}function si(e){function r(n,o){}return r.type="xstate.cancel",r.sendId=e,r.resolve=UMe,r.execute=WMe,r}function GMe(e,r,n,o,{id:a,systemId:i,src:l,input:s,syncSnapshot:c}){const d=typeof l=="string"?yS(r.machine,l):l,u=typeof a=="function"?a(n):a;let p,f;return d&&(f=typeof s=="function"?s({context:r.context,event:n.event,self:e.self}):s,p=Of(d,{id:u,src:l,parent:e.self,syncSnapshot:c,systemId:i,input:f})),[up(r,{children:{...r.children,[u]:p}}),{id:a,systemId:i,actorRef:p,src:l,input:f},void 0]}function YMe(e,{actorRef:r}){r&&e.defer(()=>{r._processingStatus!==ra.Stopped&&r.start()})}function d3(...[e,{id:r,systemId:n,input:o,syncSnapshot:a=!1}={}]){function i(l,s){}return i.type="xstate.spawnChild",i.id=r,i.systemId=n,i.src=e,i.input=o,i.syncSnapshot=a,i.resolve=GMe,i.execute=YMe,i}function XMe(e,r,n,o,{actorRef:a}){const i=typeof a=="function"?a(n,o):a,l=typeof i=="string"?r.children[i]:i;let s=r.children;return l&&(s={...s},delete s[l.id]),[up(r,{children:s}),l,void 0]}function ZMe(e,r){if(r){if(e.system._unregister(r),r._processingStatus!==ra.Running){e.stopChild(r);return}e.defer(()=>{e.stopChild(r)})}}function yy(e){function r(n,o){}return r.type="xstate.stopChild",r.actorRef=e,r.resolve=XMe,r.execute=ZMe,r}function u3(e,r,n,o){const{machine:a}=o,i=typeof e=="function",l=i?e:a.implementations.guards[typeof e=="string"?e:e.type];if(!i&&!l)throw new Error(`Guard '${typeof e=="string"?e:e.type}' is not implemented.'.`);if(typeof l!="function")return u3(l,r,n,o);const s={context:r,event:n},c=i||typeof e=="string"?void 0:"params"in e?typeof e.params=="function"?e.params({context:r,event:n}):e.params:void 0;return"check"in l?l.check(o,s,l):l(s,c)}const xS=e=>e.type==="atomic"||e.type==="final";function If(e){return Object.values(e.states).filter(r=>r.type!=="history")}function vy(e,r){const n=[];if(r===e)return n;let o=e.parent;for(;o&&o!==r;)n.push(o),o=o.parent;return n}function p3(e){const r=new Set(e),n=cG(r);for(const o of r)if(o.type==="compound"&&(!n.get(o)||!n.get(o).length))pG(o).forEach(a=>r.add(a));else if(o.type==="parallel"){for(const a of If(o))if(a.type!=="history"&&!r.has(a)){const i=pG(a);for(const l of i)r.add(l)}}for(const o of r){let a=o.parent;for(;a;)r.add(a),a=a.parent}return r}function sG(e,r){const n=r.get(e);if(!n)return{};if(e.type==="compound"){const a=n[0];if(a){if(xS(a))return a.key}else return{}}const o={};for(const a of n)o[a.key]=sG(a,r);return o}function cG(e){const r=new Map;for(const n of e)r.has(n)||r.set(n,[]),n.parent&&(r.has(n.parent)||r.set(n.parent,[]),r.get(n.parent).push(n));return r}function dG(e,r){const n=p3(r);return sG(e,cG(n))}function wS(e,r){return r.type==="compound"?If(r).some(n=>n.type==="final"&&e.has(n)):r.type==="parallel"?If(r).every(n=>wS(e,n)):r.type==="final"}const h3=e=>e[0]===DMe;function KMe(e,r){return e.transitions.get(r)||[...e.transitions.keys()].filter(n=>{if(n===MMe)return!0;if(!n.endsWith(".*"))return!1;const o=n.split("."),a=r.split(".");for(let i=0;io.length-n.length).flatMap(n=>e.transitions.get(n))}function QMe(e){const r=e.config.after;if(!r)return[];const n=o=>{const a=PMe(o,e.id),i=a.type;return e.entry.push(na(a,{id:i,delay:o})),e.exit.push(si(i)),i};return Object.keys(r).flatMap(o=>{const a=r[o],i=typeof a=="string"?{target:a}:a,l=Number.isNaN(+o)?o:+o,s=n(l);return ec(i).map(c=>({...c,event:s,delay:l}))}).map(o=>{const{delay:a}=o;return{...cp(e,o.event,o),delay:a}})}function cp(e,r,n){const o=aG(n.target),a=n.reenter??!1,i=tNe(e,o),l={...n,actions:ec(n.actions),guard:n.guard,target:i,source:e,reenter:a,eventType:r,toJSON:()=>({...l,source:`#${e.id}`,target:i?i.map(s=>`#${s.id}`):void 0})};return l}function JMe(e){const r=new Map;if(e.config.on)for(const n of Object.keys(e.config.on)){if(n===ZW)throw new Error('Null events ("") cannot be specified as a transition key. Use `always: { ... }` instead.');const o=e.config.on[n];r.set(n,Bf(o).map(a=>cp(e,n,a)))}if(e.config.onDone){const n=`xstate.done.state.${e.id}`;r.set(n,Bf(e.config.onDone).map(o=>cp(e,n,o)))}for(const n of e.invoke){if(n.onDone){const o=`xstate.done.actor.${n.id}`;r.set(o,Bf(n.onDone).map(a=>cp(e,o,a)))}if(n.onError){const o=`xstate.error.actor.${n.id}`;r.set(o,Bf(n.onError).map(a=>cp(e,o,a)))}if(n.onSnapshot){const o=`xstate.snapshot.${n.id}`;r.set(o,Bf(n.onSnapshot).map(a=>cp(e,o,a)))}}for(const n of e.after){let o=r.get(n.eventType);o||(o=[],r.set(n.eventType,o)),o.push(n)}return r}function eNe(e,r){const n=typeof r=="string"?e.states[r]:r?e.states[r.target]:void 0;if(!n&&r)throw new Error(`Initial state node "${r}" not found on parent state node #${e.id}`);const o={source:e,actions:!r||typeof r=="string"?[]:ec(r.actions),eventType:null,reenter:!1,target:n?[n]:[],toJSON:()=>({...o,source:`#${e.id}`,target:n?[`#${n.id}`]:[]})};return o}function tNe(e,r){if(r!==void 0)return r.map(n=>{if(typeof n!="string")return n;if(h3(n))return e.machine.getStateNodeById(n);const o=n[0]===XW;if(o&&!e.parent)return f3(e,n.slice(1));const a=o?e.key+n:n;if(e.parent)try{return f3(e.parent,a)}catch(i){throw new Error(`Invalid transition definition for state node '${e.id}': +${i.message}`)}else throw new Error(`Invalid target: "${n}" is not a valid target from the root node. Did you mean ".${n}"?`)})}function uG(e){const r=aG(e.config.target);return r?{target:r.map(n=>typeof n=="string"?f3(e.parent,n):n)}:e.parent.initial}function dp(e){return e.type==="history"}function pG(e){const r=hG(e);for(const n of r)for(const o of vy(n,e))r.add(o);return r}function hG(e){const r=new Set;function n(o){if(!r.has(o)){if(r.add(o),o.type==="compound")n(o.initial.target[0]);else if(o.type==="parallel")for(const a of If(o))n(a)}}return n(e),r}function Lf(e,r){if(h3(r))return e.machine.getStateNodeById(r);if(!e.states)throw new Error(`Unable to retrieve child state '${r}' from '${e.id}'; no child states exist.`);const n=e.states[r];if(!n)throw new Error(`Child state '${r}' does not exist on '${e.id}'`);return n}function f3(e,r){if(typeof r=="string"&&h3(r))try{return e.machine.getStateNodeById(r)}catch{}const n=mS(r).slice();let o=e;for(;n.length;){const a=n.shift();if(!a.length)break;o=Lf(o,a)}return o}function m3(e,r){if(typeof r=="string"){const a=e.states[r];if(!a)throw new Error(`State '${r}' does not exist on '${e.id}'`);return[e,a]}const n=Object.keys(r),o=n.map(a=>Lf(e,a)).filter(Boolean);return[e.machine.root,e].concat(o,n.reduce((a,i)=>{const l=Lf(e,i);if(!l)return a;const s=m3(l,r[i]);return a.concat(s)},[]))}function rNe(e,r,n,o){const a=Lf(e,r).next(n,o);return!a||!a.length?e.next(n,o):a}function nNe(e,r,n,o){const a=Object.keys(r),i=Lf(e,a[0]),l=kS(i,r[a[0]],n,o);return!l||!l.length?e.next(n,o):l}function oNe(e,r,n,o){const a=[];for(const i of Object.keys(r)){const l=r[i];if(!l)continue;const s=Lf(e,i),c=kS(s,l,n,o);c&&a.push(...c)}return a.length?a:e.next(n,o)}function kS(e,r,n,o){return typeof r=="string"?rNe(e,r,n,o):Object.keys(r).length===1?nNe(e,r,n,o):oNe(e,r,n,o)}function aNe(e){return Object.keys(e.states).map(r=>e.states[r]).filter(r=>r.type==="history")}function yd(e,r){let n=e;for(;n.parent&&n.parent!==r;)n=n.parent;return n.parent===r}function iNe(e,r){const n=new Set(e),o=new Set(r);for(const a of n)if(o.has(a))return!0;for(const a of o)if(n.has(a))return!0;return!1}function fG(e,r,n){const o=new Set;for(const a of e){let i=!1;const l=new Set;for(const s of o)if(iNe(SS([a],r,n),SS([s],r,n)))if(yd(a.source,s.source))l.add(s);else{i=!0;break}if(!i){for(const s of l)o.delete(s);o.add(a)}}return Array.from(o)}function lNe(e){const[r,...n]=e;for(const o of vy(r,void 0))if(n.every(a=>yd(a,o)))return o}function _S(e,r){if(!e.target)return[];const n=new Set;for(const o of e.target)if(dp(o))if(r[o.id])for(const a of r[o.id])n.add(a);else for(const a of _S(uG(o),r))n.add(a);else n.add(o);return[...n]}function mG(e,r){const n=_S(e,r);if(!n)return;if(!e.reenter&&n.every(a=>a===e.source||yd(a,e.source)))return e.source;const o=lNe(n.concat(e.source));if(o)return o;if(!e.reenter)return e.source.machine.root}function SS(e,r,n){const o=new Set;for(const a of e)if(a.target?.length){const i=mG(a,n);a.reenter&&a.source===i&&o.add(i);for(const l of r)yd(l,i)&&o.add(l)}return[...o]}function sNe(e,r){if(e.length!==r.size)return!1;for(const n of e)if(!r.has(n))return!1;return!0}function ES(e,r,n,o,a,i){if(!e.length)return r;const l=new Set(r._nodes);let s=r.historyValue;const c=fG(e,l,s);let d=r;a||([d,s]=pNe(d,o,n,c,l,s,i,n.actionExecutor)),d=Vf(d,o,n,c.flatMap(p=>p.actions),i,void 0),d=dNe(d,o,n,c,l,i,s,a);const u=[...l];d.status==="done"&&(d=Vf(d,o,n,u.sort((p,f)=>f.order-p.order).flatMap(p=>p.exit),i,void 0));try{return s===r.historyValue&&sNe(r._nodes,l)?d:up(d,{_nodes:u,historyValue:s})}catch(p){throw p}}function cNe(e,r,n,o,a){if(o.output===void 0)return;const i=fS(a.id,a.output!==void 0&&a.parent?gS(a.output,e.context,r,n.self):void 0);return gS(o.output,e.context,i,n.self)}function dNe(e,r,n,o,a,i,l,s){let c=e;const d=new Set,u=new Set;uNe(o,l,u,d),s&&u.add(e.machine.root);const p=new Set;for(const f of[...d].sort((g,v)=>g.order-v.order)){a.add(f);const g=[];g.push(...f.entry);for(const v of f.invoke)g.push(d3(v.src,{...v,syncSnapshot:!!v.onSnapshot}));if(u.has(f)){const v=f.initial.actions;g.push(...v)}if(c=Vf(c,r,n,g,i,f.invoke.map(v=>v.id)),f.type==="final"){const v=f.parent;let w=v?.type==="parallel"?v:v?.parent,x=w||f;for(v?.type==="compound"&&i.push(fS(v.id,f.output!==void 0?gS(f.output,c.context,r,n.self):void 0));w?.type==="parallel"&&!p.has(w)&&wS(a,w);)p.add(w),i.push(fS(w.id)),x=w,w=w.parent;if(w)continue;c=up(c,{status:"done",output:cNe(c,r,n,c.machine.root,x)})}}return c}function uNe(e,r,n,o){for(const a of e){const i=mG(a,r);for(const s of a.target||[])!dp(s)&&(a.source!==s||a.source!==i||a.reenter)&&(o.add(s),n.add(s)),Ff(s,r,n,o);const l=_S(a,r);for(const s of l){const c=vy(s,i);i?.type==="parallel"&&c.push(i),gG(o,r,n,c,!a.source.parent&&a.reenter?void 0:i)}}}function Ff(e,r,n,o){if(dp(e))if(r[e.id]){const a=r[e.id];for(const i of a)o.add(i),Ff(i,r,n,o);for(const i of a)CS(i,e.parent,o,r,n)}else{const a=uG(e);for(const i of a.target)o.add(i),a===e.parent?.initial&&n.add(e.parent),Ff(i,r,n,o);for(const i of a.target)CS(i,e.parent,o,r,n)}else if(e.type==="compound"){const[a]=e.initial.target;dp(a)||(o.add(a),n.add(a)),Ff(a,r,n,o),CS(a,e,o,r,n)}else if(e.type==="parallel")for(const a of If(e).filter(i=>!dp(i)))[...o].some(i=>yd(i,a))||(dp(a)||(o.add(a),n.add(a)),Ff(a,r,n,o))}function gG(e,r,n,o,a){for(const i of o)if((!a||yd(i,a))&&e.add(i),i.type==="parallel")for(const l of If(i).filter(s=>!dp(s)))[...e].some(s=>yd(s,l))||(e.add(l),Ff(l,r,n,e))}function CS(e,r,n,o,a){gG(n,o,a,vy(e,r))}function pNe(e,r,n,o,a,i,l,s){let c=e;const d=SS(o,a,i);d.sort((p,f)=>f.order-p.order);let u;for(const p of d)for(const f of aNe(p)){let g;f.history==="deep"?g=v=>xS(v)&&yd(v,p):g=v=>v.parent===p,u??={...i},u[f.id]=Array.from(a).filter(g)}for(const p of d)c=Vf(c,r,n,[...p.exit,...p.invoke.map(f=>yy(f.id))],l,void 0),a.delete(p);return[c,u||i]}function hNe(e,r){return e.implementations.actions[r]}function yG(e,r,n,o,a,i){const{machine:l}=e;let s=e;for(const c of o){const d=typeof c=="function",u=d?c:hNe(l,typeof c=="string"?c:c.type),p={context:s.context,event:r,self:n.self,system:n.system},f=d||typeof c=="string"?void 0:"params"in c?typeof c.params=="function"?c.params({context:s.context,event:r}):c.params:void 0;if(!u||!("resolve"in u)){n.actionExecutor({type:typeof c=="string"?c:typeof c=="object"?c.type:c.name||"(anonymous)",info:p,params:f,exec:u});continue}const g=u,[v,w,x]=g.resolve(n,s,p,f,u,a);s=v,"retryResolve"in g&&i?.push([g,w]),"execute"in g&&n.actionExecutor({type:g.type,info:p,params:w,exec:g.execute.bind(null,n,w)}),x&&(s=yG(s,r,n,x,a,i))}return s}function Vf(e,r,n,o,a,i){const l=i?[]:void 0,s=yG(e,r,n,o,{internalQueue:a,deferredActorIds:i},l);return l?.forEach(([c,d])=>{c.retryResolve(n,s,d)}),s}function $S(e,r,n,o){let a=e;const i=[];function l(d,u,p){n.system._sendInspectionEvent({type:"@xstate.microstep",actorRef:n.self,event:u,snapshot:d,_transitions:p}),i.push(d)}if(r.type===gy)return a=up(vG(a,r,n),{status:"stopped"}),l(a,r,[]),{snapshot:a,microstates:i};let s=r;if(s.type!==KW){const d=s,u=LMe(d),p=bG(d,a);if(u&&!p.length)return a=up(e,{status:"error",error:d.error}),l(a,d,[]),{snapshot:a,microstates:i};a=ES(p,e,n,s,!1,o),l(a,d,p)}let c=!0;for(;a.status==="active";){let d=c?fNe(a,s):[];const u=d.length?a:void 0;if(!d.length){if(!o.length)break;s=o.shift(),d=bG(s,a)}a=ES(d,a,n,s,!1,o),c=a!==u,l(a,s,d)}return a.status!=="active"&&vG(a,s,n),{snapshot:a,microstates:i}}function vG(e,r,n){return Vf(e,r,n,Object.values(e.children).map(o=>yy(o)),[],void 0)}function bG(e,r){return r.machine.getTransitionData(r,e)}function fNe(e,r){const n=new Set,o=e._nodes.filter(xS);for(const a of o)e:for(const i of[a].concat(vy(a,void 0)))if(i.always){for(const l of i.always)if(l.guard===void 0||u3(l.guard,e.context,r,e)){n.add(l);break e}}return fG(Array.from(n),new Set(e._nodes),e.historyValue)}function mNe(e,r){const n=p3(m3(e,r));return dG(e,[...n])}function gNe(e){return!!e&&typeof e=="object"&&"machine"in e&&"value"in e}const yNe=function(e){return eG(e,this.value)},vNe=function(e){return this.tags.has(e)},bNe=function(e){const r=this.machine.getTransitionData(this,e);return!!r?.length&&r.some(n=>n.target!==void 0||n.actions.length)},xNe=function(){const{_nodes:e,tags:r,machine:n,getMeta:o,toJSON:a,can:i,hasTag:l,matches:s,...c}=this;return{...c,tags:Array.from(r)}},wNe=function(){return this._nodes.reduce((e,r)=>(r.meta!==void 0&&(e[r.id]=r.meta),e),{})};function g3(e,r){return{status:e.status,output:e.output,error:e.error,machine:r,context:e.context,_nodes:e._nodes,value:dG(r.root,e._nodes),tags:new Set(e._nodes.flatMap(n=>n.tags)),children:e.children,historyValue:e.historyValue||{},matches:yNe,hasTag:vNe,can:bNe,getMeta:wNe,toJSON:xNe}}function up(e,r={}){return g3({...e,...r},e.machine)}function kNe(e){if(typeof e!="object"||e===null)return{};const r={};for(const n in e){const o=e[n];Array.isArray(o)&&(r[n]=o.map(a=>({id:a.id})))}return r}function _Ne(e,r){const{_nodes:n,tags:o,machine:a,children:i,context:l,can:s,hasTag:c,matches:d,getMeta:u,toJSON:p,...f}=e,g={};for(const v in i){const w=i[v];g[v]={snapshot:w.getPersistedSnapshot(r),src:w.src,systemId:w.systemId,syncSnapshot:w._syncSnapshot}}return{...f,context:xG(l),children:g,historyValue:kNe(f.historyValue)}}function xG(e){let r;for(const n in e){const o=e[n];if(o&&typeof o=="object")if("sessionId"in o&&"send"in o&&"ref"in o)r??=Array.isArray(e)?e.slice():{...e},r[n]={xstate$$type:bS,id:o.id};else{const a=xG(o);a!==o&&(r??=Array.isArray(e)?e.slice():{...e},r[n]=a)}}return r??e}function SNe(e,r,n,o,{event:a,id:i,delay:l},{internalQueue:s}){const c=r.machine.implementations.delays;if(typeof a=="string")throw new Error(`Only event objects may be used with raise; use raise({ type: "${a}" }) instead`);const d=typeof a=="function"?a(n,o):a;let u;if(typeof l=="string"){const p=c&&c[l];u=typeof p=="function"?p(n,o):p}else u=typeof l=="function"?l(n,o):l;return typeof u!="number"&&s.push(d),[r,{event:d,id:i,delay:u},void 0]}function ENe(e,r){const{event:n,delay:o,id:a}=r;if(typeof o=="number"){e.defer(()=>{const i=e.self;e.system.scheduler.schedule(i,i,n,o,a)});return}}function na(e,r){function n(o,a){}return n.type="xstate.raise",n.event=e,n.id=r?.id,n.delay=r?.delay,n.resolve=SNe,n.execute=ENe,n}const wG=new WeakMap;function y3(e){return{config:e,start:(r,n)=>{const{self:o,system:a,emit:i}=n,l={receivers:void 0,dispose:void 0};wG.set(o,l),l.dispose=e({input:r.input,system:a,self:o,sendBack:s=>{o.getSnapshot().status!=="stopped"&&o._parent&&a._relay(o,o._parent,s)},receive:s=>{l.receivers??=new Set,l.receivers.add(s)},emit:i})},transition:(r,n,o)=>{const a=wG.get(o.self);return n.type===gy?(r={...r,status:"stopped",error:void 0},a.dispose?.(),r):(a.receivers?.forEach(i=>i(n)),r)},getInitialSnapshot:(r,n)=>({status:"active",output:void 0,error:void 0,input:n}),getPersistedSnapshot:r=>r,restoreSnapshot:r=>r}}const kG="xstate.promise.resolve",_G="xstate.promise.reject",v3=new WeakMap;function by(e){return{config:e,transition:(r,n,o)=>{if(r.status!=="active")return r;switch(n.type){case kG:{const a=n.data;return{...r,status:"done",output:a,input:void 0}}case _G:return{...r,status:"error",error:n.data,input:void 0};case gy:return v3.get(o.self)?.abort(),{...r,status:"stopped",input:void 0};default:return r}},start:(r,{self:n,system:o,emit:a})=>{if(r.status!=="active")return;const i=new AbortController;v3.set(n,i),Promise.resolve(e({input:r.input,system:o,self:n,signal:i.signal,emit:a})).then(l=>{n.getSnapshot().status==="active"&&(v3.delete(n),o._relay(n,n,{type:kG,data:l}))},l=>{n.getSnapshot().status==="active"&&(v3.delete(n),o._relay(n,n,{type:_G,data:l}))})},getInitialSnapshot:(r,n)=>({status:"active",output:void 0,error:void 0,input:n}),getPersistedSnapshot:r=>r,restoreSnapshot:r=>r}}function CNe(e,{machine:r,context:n},o,a){const i=(l,s)=>{if(typeof l=="string"){const c=yS(r,l);if(!c)throw new Error(`Actor logic '${l}' not implemented in machine '${r.id}'`);const d=Of(c,{id:s?.id,parent:e.self,syncSnapshot:s?.syncSnapshot,input:typeof s?.input=="function"?s.input({context:n,event:o,self:e.self}):s?.input,src:l,systemId:s?.systemId});return a[d.id]=d,d}else return Of(l,{id:s?.id,parent:e.self,syncSnapshot:s?.syncSnapshot,input:s?.input,src:l,systemId:s?.systemId})};return(l,s)=>{const c=i(l,s);return a[c.id]=c,e.defer(()=>{c._processingStatus!==ra.Stopped&&c.start()}),c}}function $Ne(e,r,n,o,{assignment:a}){if(!r.context)throw new Error("Cannot assign to undefined `context`. Ensure that `context` is defined in the machine config.");const i={},l={context:r.context,event:n.event,spawn:CNe(e,r,n.event,i),self:e.self,system:e.system};let s={};if(typeof a=="function")s=a(l,o);else for(const d of Object.keys(a)){const u=a[d];s[d]=typeof u=="function"?u(l,o):u}const c=Object.assign({},r.context,s);return[up(r,{context:c,children:Object.keys(i).length?{...r.children,...i}:r.children}),void 0,void 0]}function Bt(e){function r(n,o){}return r.type="xstate.assign",r.assignment=e,r.resolve=$Ne,r}const SG=new WeakMap;function qf(e,r,n){let o=SG.get(e);return o?r in o||(o[r]=n()):(o={[r]:n()},SG.set(e,o)),o[r]}const zNe={},xy=e=>typeof e=="string"?{type:e}:typeof e=="function"?"resolve"in e?{type:e.type}:{type:e.name}:e;class b3{constructor(r,n){if(this.config=r,this.key=void 0,this.id=void 0,this.type=void 0,this.path=void 0,this.states=void 0,this.history=void 0,this.entry=void 0,this.exit=void 0,this.parent=void 0,this.machine=void 0,this.meta=void 0,this.output=void 0,this.order=-1,this.description=void 0,this.tags=[],this.transitions=void 0,this.always=void 0,this.parent=n._parent,this.key=n._key,this.machine=n._machine,this.path=this.parent?this.parent.path.concat(this.key):[],this.id=this.config.id||[this.machine.id,...this.path].join(XW),this.type=this.config.type||(this.config.states&&Object.keys(this.config.states).length?"compound":this.config.history?"history":"atomic"),this.description=this.config.description,this.order=this.machine.idMap.size,this.machine.idMap.set(this.id,this),this.states=this.config.states?rG(this.config.states,(o,a)=>new b3(o,{_parent:this,_key:a,_machine:this.machine})):zNe,this.type==="compound"&&!this.config.initial)throw new Error(`No initial state specified for compound state node "#${this.id}". Try adding { initial: "${Object.keys(this.states)[0]}" } to the state config.`);this.history=this.config.history===!0?"shallow":this.config.history||!1,this.entry=ec(this.config.entry).slice(),this.exit=ec(this.config.exit).slice(),this.meta=this.config.meta,this.output=this.type==="final"||!this.parent?this.config.output:void 0,this.tags=ec(r.tags).slice()}_initialize(){this.transitions=JMe(this),this.config.always&&(this.always=Bf(this.config.always).map(r=>cp(this,ZW,r))),Object.keys(this.states).forEach(r=>{this.states[r]._initialize()})}get definition(){return{id:this.id,key:this.key,version:this.machine.version,type:this.type,initial:this.initial?{target:this.initial.target,source:this,actions:this.initial.actions.map(xy),eventType:null,reenter:!1,toJSON:()=>({target:this.initial.target.map(r=>`#${r.id}`),source:`#${this.id}`,actions:this.initial.actions.map(xy),eventType:null})}:void 0,history:this.history,states:rG(this.states,r=>r.definition),on:this.on,transitions:[...this.transitions.values()].flat().map(r=>({...r,actions:r.actions.map(xy)})),entry:this.entry.map(xy),exit:this.exit.map(xy),meta:this.meta,order:this.order||-1,output:this.output,invoke:this.invoke,description:this.description,tags:this.tags}}toJSON(){return this.definition}get invoke(){return qf(this,"invoke",()=>ec(this.config.invoke).map((r,n)=>{const{src:o,systemId:a}=r,i=r.id??iG(this.id,n),l=typeof o=="string"?o:`xstate.invoke.${iG(this.id,n)}`;return{...r,src:l,id:i,systemId:a,toJSON(){const{onDone:s,onError:c,...d}=r;return{...d,type:"xstate.invoke",src:l,id:i}}}}))}get on(){return qf(this,"on",()=>[...this.transitions].flatMap(([r,n])=>n.map(o=>[r,o])).reduce((r,[n,o])=>(r[n]=r[n]||[],r[n].push(o),r),{}))}get after(){return qf(this,"delayedTransitions",()=>QMe(this))}get initial(){return qf(this,"initial",()=>eNe(this,this.config.initial))}next(r,n){const o=n.type,a=[];let i;const l=qf(this,`candidates-${o}`,()=>KMe(this,o));for(const s of l){const{guard:c}=s,d=r.context;let u=!1;try{u=!c||u3(c,d,n,r)}catch(p){const f=typeof c=="string"?c:typeof c=="object"?c.type:void 0;throw new Error(`Unable to evaluate guard ${f?`'${f}' `:""}in transition for event '${o}' in state node '${this.id}': +${p.message}`)}if(u){a.push(...s.actions),i=s;break}}return i?[i]:void 0}get events(){return qf(this,"events",()=>{const{states:r}=this,n=new Set(this.ownEvents);if(r)for(const o of Object.keys(r)){const a=r[o];if(a.states)for(const i of a.events)n.add(`${i}`)}return Array.from(n)})}get ownEvents(){const r=new Set([...this.transitions.keys()].filter(n=>this.transitions.get(n).some(o=>!(!o.target&&!o.actions.length&&!o.reenter))));return Array.from(r)}}const RNe="#";class zS{constructor(r,n){this.config=r,this.version=void 0,this.schemas=void 0,this.implementations=void 0,this.__xstatenode=!0,this.idMap=new Map,this.root=void 0,this.id=void 0,this.states=void 0,this.events=void 0,this.id=r.id||"(machine)",this.implementations={actors:n?.actors??{},actions:n?.actions??{},delays:n?.delays??{},guards:n?.guards??{}},this.version=this.config.version,this.schemas=this.config.schemas,this.transition=this.transition.bind(this),this.getInitialSnapshot=this.getInitialSnapshot.bind(this),this.getPersistedSnapshot=this.getPersistedSnapshot.bind(this),this.restoreSnapshot=this.restoreSnapshot.bind(this),this.start=this.start.bind(this),this.root=new b3(r,{_key:this.id,_machine:this}),this.root._initialize(),this.states=this.root.states,this.events=this.root.events}provide(r){const{actions:n,guards:o,actors:a,delays:i}=this.implementations;return new zS(this.config,{actions:{...n,...r.actions},guards:{...o,...r.guards},actors:{...a,...r.actors},delays:{...i,...r.delays}})}resolveState(r){const n=mNe(this.root,r.value),o=p3(m3(this.root,n));return g3({_nodes:[...o],context:r.context||{},children:{},status:wS(o,this.root)?"done":r.status||"active",output:r.output,error:r.error,historyValue:r.historyValue},this)}transition(r,n,o){return $S(r,n,o,[]).snapshot}microstep(r,n,o){return $S(r,n,o,[]).microstates}getTransitionData(r,n){return kS(this.root,r.value,r,n)||[]}getPreInitialState(r,n,o){const{context:a}=this.config,i=g3({context:typeof a!="function"&&a?a:{},_nodes:[this.root],children:{},status:"active"},this);return typeof a=="function"?Vf(i,n,r,[Bt(({spawn:l,event:s,self:c})=>a({spawn:l,input:s.input,self:c}))],o,void 0):i}getInitialSnapshot(r,n){const o=JW(n),a=[],i=this.getPreInitialState(r,o,a),l=ES([{target:[...hG(this.root)],source:this.root,reenter:!0,actions:[],eventType:null,toJSON:null}],i,r,o,!0,a),{snapshot:s}=$S(l,o,r,a);return s}start(r){Object.values(r.children).forEach(n=>{n.getSnapshot().status==="active"&&n.start()})}getStateNodeById(r){const n=mS(r),o=n.slice(1),a=h3(n[0])?n[0].slice(RNe.length):n[0],i=this.idMap.get(a);if(!i)throw new Error(`Child state node '#${a}' does not exist on machine '${this.id}'`);return f3(i,o)}get definition(){return this.root.definition}toJSON(){return this.definition}getPersistedSnapshot(r,n){return _Ne(r,n)}restoreSnapshot(r,n){const o={},a=r.children;Object.keys(a).forEach(p=>{const f=a[p],g=f.snapshot,v=f.src,w=typeof v=="string"?yS(this,v):v;if(!w)return;const x=Of(w,{id:p,parent:n.self,syncSnapshot:f.syncSnapshot,snapshot:g,src:v,systemId:f.systemId});o[p]=x});function i(p,f){if(f instanceof b3)return f;try{return p.machine.getStateNodeById(f.id)}catch{}}function l(p,f){if(!f||typeof f!="object")return{};const g={};for(const v in f){const w=f[v];for(const x of w){const k=i(p,x);k&&(g[v]??=[],g[v].push(k))}}return g}const s=l(this.root,r.historyValue),c=g3({...r,children:o,_nodes:Array.from(p3(m3(this.root,r.value))),historyValue:s},this),d=new Set;function u(p,f){if(!d.has(p)){d.add(p);for(const g in p){const v=p[g];if(v&&typeof v=="object"){if("xstate$$type"in v&&v.xstate$$type===bS){p[g]=f[v.id];continue}u(v,f)}}}}return u(c.context,o),c}}function jNe(e,r,n,o,{event:a}){const i=typeof a=="function"?a(n,o):a;return[r,{event:i},void 0]}function TNe(e,{event:r}){e.defer(()=>e.emit(r))}function RS(e){function r(n,o){}return r.type="xstate.emit",r.event=e,r.resolve=jNe,r.execute=TNe,r}let jS=(function(e){return e.Parent="#_parent",e.Internal="#_internal",e})({});function ANe(e,r,n,o,{to:a,event:i,id:l,delay:s},c){const d=r.machine.implementations.delays;if(typeof i=="string")throw new Error(`Only event objects may be used with sendTo; use sendTo({ type: "${i}" }) instead`);const u=typeof i=="function"?i(n,o):i;let p;if(typeof s=="string"){const v=d&&d[s];p=typeof v=="function"?v(n,o):v}else p=typeof s=="function"?s(n,o):s;const f=typeof a=="function"?a(n,o):a;let g;if(typeof f=="string"){if(f===jS.Parent?g=e.self._parent:f===jS.Internal?g=e.self:f.startsWith("#_")?g=r.children[f.slice(2)]:g=c.deferredActorIds?.includes(f)?f:r.children[f],!g)throw new Error(`Unable to send event to actor '${f}' from machine '${r.machine.id}'.`)}else g=f||e.self;return[r,{to:g,targetId:typeof f=="string"?f:void 0,event:u,id:l,delay:p},void 0]}function DNe(e,r,n){typeof n.to=="string"&&(n.to=r.children[n.to])}function MNe(e,r){e.defer(()=>{const{to:n,event:o,delay:a,id:i}=r;if(typeof a=="number"){e.system.scheduler.schedule(e.self,n,o,a,i);return}e.system._relay(e.self,n,o.type===NMe?QW(e.self.id,o.data):o)})}function wy(e,r,n){function o(a,i){}return o.type="xstate.sendTo",o.to=e,o.event=r,o.id=n?.id,o.delay=n?.delay,o.resolve=ANe,o.retryResolve=DNe,o.execute=MNe,o}function NNe(e,r){return wy(jS.Parent,e,r)}function PNe(e,r,n,o,{collect:a}){const i=[],l=function(s){i.push(s)};return l.assign=(...s)=>{i.push(Bt(...s))},l.cancel=(...s)=>{i.push(si(...s))},l.raise=(...s)=>{i.push(na(...s))},l.sendTo=(...s)=>{i.push(wy(...s))},l.sendParent=(...s)=>{i.push(NNe(...s))},l.spawnChild=(...s)=>{i.push(d3(...s))},l.stopChild=(...s)=>{i.push(yy(...s))},l.emit=(...s)=>{i.push(RS(...s))},a({context:n.context,event:n.event,enqueue:l,check:s=>u3(s,r.context,n.event,r),self:e.self,system:e.system},o),[r,void 0,i]}function ts(e){function r(n,o){}return r.type="xstate.enqueueActions",r.collect=e,r.resolve=PNe,r}function BNe(e,r,n,o,{value:a,label:i}){return[r,{value:typeof a=="function"?a(n,o):a,label:i},void 0]}function ONe({logger:e},{value:r,label:n}){n?e(n,r):e(r)}function TS(e=({context:n,event:o})=>({context:n,event:o}),r){function n(o,a){}return n.type="xstate.log",n.value=e,n.label=r,n.resolve=BNe,n.execute=ONe,n}function ht(e,r){const n=ec(r);if(!n.includes(e.type)){const o=n.length===1?`type "${n[0]}"`:`one of types "${n.join('", "')}"`;throw new Error(`Expected event ${JSON.stringify(e)} to have ${o}`)}}function INe(e,r){return new zS(e,r)}function rs({schemas:e,actors:r,actions:n,guards:o,delays:a}){return{assign:Bt,sendTo:wy,raise:na,log:TS,cancel:si,stopChild:yy,enqueueActions:ts,emit:RS,spawnChild:d3,createStateConfig:i=>i,createAction:i=>i,createMachine:i=>INe({...i,schemas:e},{actors:r,actions:n,guards:o,delays:a}),extend:i=>rs({schemas:e,actors:r,actions:{...n,...i.actions},guards:{...o,...i.guards},delays:{...a,...i.delays}})}}hF();const EG=(e,r)=>{r(e);const n=e.getSnapshot().children;n&&Object.values(n).forEach(o=>{EG(o,r)})};function LNe(e){const r=[];EG(e,o=>{r.push([o,o.getSnapshot()]),o.observers=new Set});const n=e.system.getSnapshot?.();e.stop(),e.system._snapshot=n,r.forEach(([o,a])=>{o._processingStatus=0,o._snapshot=a})}function FNe(e,...[r]){let[[n,o],a]=S.useState(()=>{const i=Of(e,r);return[e.config,i]});if(e.config!==n){const i=Of(e,{...r,snapshot:o.getPersistedSnapshot({__unsafeAllowInlineActors:!0})});a([e.config,i]),o=i}return tDe(()=>{o.logic.implementations=e.implementations}),o}function AS(e,...[r,n]){const o=FNe(e,r);return S.useEffect(()=>{if(!n)return;const a=o.subscribe(c3(n));return()=>{a.unsubscribe()}},[n]),S.useEffect(()=>(o.start(),()=>{LNe(o)}),[o]),o}function VNe(e,r){return e===r}function pn(e,r,n=VNe){const o=S.useCallback(i=>{if(!e)return()=>{};const{unsubscribe:l}=e.subscribe(i);return l},[e]),a=S.useCallback(()=>e?.getSnapshot(),[e]);return gF.useSyncExternalStoreWithSelector(o,a,a,r,n)}const DS=S.createContext(null);DS.displayName="DiagramActorSafeContext";const MS=S.createContext(null);MS.displayName="DiagramApiSafeContext";const qNe=DS.Provider,HNe=MS.Provider;function Hf(){const e=S.useContext(DS);if(e===null)throw new Error("DiagramActorRef is not provided");return e}function Nt(){const e=S.useContext(MS);if(e===null)throw new Error("DiagramApi is not provided");return e}function it(e){const r=S.useRef(e);r.current=e;const n=S.useRef(null);return n.current==null&&(n.current=((...o)=>r.current?.(...o))),n.current}function NS(e,r=Or){const n=Hf();return pn(n,e,r)}function ci(e,r=Or,n){const o=Hf(),a=it(e),i=S.useCallback(l=>a(l.context),n??[]);return pn(o,i,r)}function za(e,r,n){const o=Hf(),a=it(r),i=S.useRef(!1),l=n?.once??!1;S.useEffect(()=>{if(l&&i.current)return;let s=o.on(e,c=>{a(c),i.current=!0,l&&(s?.unsubscribe(),s=null)});return()=>{s?.unsubscribe()}},[o,e,l])}const UNe=e=>e.children.overlays;function WNe(){return NS(UNe,Object.is)}const GNe=e=>e.children.search??null;function YNe(){return NS(GNe,Object.is)}function PS(e,r){e.indexOf(r)===-1&&e.push(r)}function x3(e,r){const n=e.indexOf(r);n>-1&&e.splice(n,1)}const tc=(e,r,n)=>n>r?r:n{};const rc={},CG=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function $G(e){return typeof e=="object"&&e!==null}const zG=e=>/^0[^.\s]+$/u.test(e);function OS(e){let r;return()=>(r===void 0&&(r=e()),r)}const di=e=>e,XNe=(e,r)=>n=>r(e(n)),ky=(...e)=>e.reduce(XNe),Uf=(e,r,n)=>{const o=r-e;return o===0?1:(n-e)/o};class IS{constructor(){this.subscriptions=[]}add(r){return PS(this.subscriptions,r),()=>x3(this.subscriptions,r)}notify(r,n,o){const a=this.subscriptions.length;if(a)if(a===1)this.subscriptions[0](r,n,o);else for(let i=0;ie*1e3,ui=e=>e/1e3;function RG(e,r){return r?e*(1e3/r):0}const ZNe=(e,r,n)=>{const o=r-e;return((n-e)%o+o)%o+e},jG=(e,r,n)=>(((1-3*n+3*r)*e+(3*n-6*r))*e+3*r)*e,KNe=1e-7,QNe=12;function JNe(e,r,n,o,a){let i,l,s=0;do l=r+(n-r)/2,i=jG(l,o,a)-e,i>0?n=l:r=l;while(Math.abs(i)>KNe&&++sJNe(i,0,1,e,n);return i=>i===0||i===1?i:jG(a(i),r,o)}const TG=e=>r=>r<=.5?e(2*r)/2:(2-e(2*(1-r)))/2,AG=e=>r=>1-e(1-r),DG=_y(.33,1.53,.69,.99),LS=AG(DG),MG=TG(LS),NG=e=>(e*=2)<1?.5*LS(e):.5*(2-Math.pow(2,-10*(e-1))),FS=e=>1-Math.sin(Math.acos(e)),PG=AG(FS),BG=TG(FS),ePe=_y(.42,0,1,1),tPe=_y(0,0,.58,1),OG=_y(.42,0,.58,1),IG=e=>Array.isArray(e)&&typeof e[0]!="number";function LG(e,r){return IG(e)?e[ZNe(0,e.length,r)]:e}const FG=e=>Array.isArray(e)&&typeof e[0]=="number",rPe={linear:di,easeIn:ePe,easeInOut:OG,easeOut:tPe,circIn:FS,circInOut:BG,circOut:PG,backIn:LS,backInOut:MG,backOut:DG,anticipate:NG},nPe=e=>typeof e=="string",VG=e=>{if(FG(e)){BS(e.length===4);const[r,n,o,a]=e;return _y(r,n,o,a)}else if(nPe(e))return rPe[e];return e},w3=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function oPe(e,r){let n=new Set,o=new Set,a=!1,i=!1;const l=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function c(u){l.has(u)&&(d.schedule(u),e()),u(s)}const d={schedule:(u,p=!1,f=!1)=>{const g=f&&a?n:o;return p&&l.add(u),g.has(u)||g.add(u),u},cancel:u=>{o.delete(u),l.delete(u)},process:u=>{if(s=u,a){i=!0;return}a=!0,[n,o]=[o,n],n.forEach(c),n.clear(),a=!1,i&&(i=!1,d.process(u))}};return d}const aPe=40;function qG(e,r){let n=!1,o=!0;const a={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,l=w3.reduce((k,C)=>(k[C]=oPe(i),k),{}),{setup:s,read:c,resolveKeyframes:d,preUpdate:u,update:p,preRender:f,render:g,postRender:v}=l,w=()=>{const k=rc.useManualTiming?a.timestamp:performance.now();n=!1,rc.useManualTiming||(a.delta=o?1e3/60:Math.max(Math.min(k-a.timestamp,aPe),1)),a.timestamp=k,a.isProcessing=!0,s.process(a),c.process(a),d.process(a),u.process(a),p.process(a),f.process(a),g.process(a),v.process(a),a.isProcessing=!1,n&&r&&(o=!1,e(w))},x=()=>{n=!0,o=!0,a.isProcessing||e(w)};return{schedule:w3.reduce((k,C)=>{const _=l[C];return k[C]=($,z=!1,j=!1)=>(n||x(),_.schedule($,z,j)),k},{}),cancel:k=>{for(let C=0;C(k3===void 0&&oa.set(so.isProcessing||rc.useManualTiming?so.timestamp:performance.now()),k3),set:e=>{k3=e,queueMicrotask(iPe)}},HG=e=>r=>typeof r=="string"&&r.startsWith(e),qS=HG("--"),lPe=HG("var(--"),HS=e=>lPe(e)?sPe.test(e.split("/*")[0].trim()):!1,sPe=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Wf={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Sy={...Wf,transform:e=>tc(0,1,e)},_3={...Wf,default:1},Ey=e=>Math.round(e*1e5)/1e5,US=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function cPe(e){return e==null}const dPe=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,WS=(e,r)=>n=>!!(typeof n=="string"&&dPe.test(n)&&n.startsWith(e)||r&&!cPe(n)&&Object.prototype.hasOwnProperty.call(n,r)),UG=(e,r,n)=>o=>{if(typeof o!="string")return o;const[a,i,l,s]=o.match(US);return{[e]:parseFloat(a),[r]:parseFloat(i),[n]:parseFloat(l),alpha:s!==void 0?parseFloat(s):1}},uPe=e=>tc(0,255,e),GS={...Wf,transform:e=>Math.round(uPe(e))},pp={test:WS("rgb","red"),parse:UG("red","green","blue"),transform:({red:e,green:r,blue:n,alpha:o=1})=>"rgba("+GS.transform(e)+", "+GS.transform(r)+", "+GS.transform(n)+", "+Ey(Sy.transform(o))+")"};function pPe(e){let r="",n="",o="",a="";return e.length>5?(r=e.substring(1,3),n=e.substring(3,5),o=e.substring(5,7),a=e.substring(7,9)):(r=e.substring(1,2),n=e.substring(2,3),o=e.substring(3,4),a=e.substring(4,5),r+=r,n+=n,o+=o,a+=a),{red:parseInt(r,16),green:parseInt(n,16),blue:parseInt(o,16),alpha:a?parseInt(a,16)/255:1}}const YS={test:WS("#"),parse:pPe,transform:pp.transform},Cy=e=>({test:r=>typeof r=="string"&&r.endsWith(e)&&r.split(" ").length===1,parse:parseFloat,transform:r=>`${r}${e}`}),bd=Cy("deg"),ns=Cy("%"),_t=Cy("px"),hPe=Cy("vh"),fPe=Cy("vw"),WG={...ns,parse:e=>ns.parse(e)/100,transform:e=>ns.transform(e*100)},Gf={test:WS("hsl","hue"),parse:UG("hue","saturation","lightness"),transform:({hue:e,saturation:r,lightness:n,alpha:o=1})=>"hsla("+Math.round(e)+", "+ns.transform(Ey(r))+", "+ns.transform(Ey(n))+", "+Ey(Sy.transform(o))+")"},Sn={test:e=>pp.test(e)||YS.test(e)||Gf.test(e),parse:e=>pp.test(e)?pp.parse(e):Gf.test(e)?Gf.parse(e):YS.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?pp.transform(e):Gf.transform(e),getAnimatableNone:e=>{const r=Sn.parse(e);return r.alpha=0,Sn.transform(r)}},mPe=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function gPe(e){return isNaN(e)&&typeof e=="string"&&(e.match(US)?.length||0)+(e.match(mPe)?.length||0)>0}const GG="number",YG="color",yPe="var",vPe="var(",XG="${}",bPe=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function $y(e){const r=e.toString(),n=[],o={color:[],number:[],var:[]},a=[];let i=0;const l=r.replace(bPe,s=>(Sn.test(s)?(o.color.push(i),a.push(YG),n.push(Sn.parse(s))):s.startsWith(vPe)?(o.var.push(i),a.push(yPe),n.push(s)):(o.number.push(i),a.push(GG),n.push(parseFloat(s))),++i,XG)).split(XG);return{values:n,split:l,indexes:o,types:a}}function ZG(e){return $y(e).values}function KG(e){const{split:r,types:n}=$y(e),o=r.length;return a=>{let i="";for(let l=0;ltypeof e=="number"?0:Sn.test(e)?Sn.getAnimatableNone(e):e;function wPe(e){const r=ZG(e);return KG(e)(r.map(xPe))}const xd={test:gPe,parse:ZG,createTransformer:KG,getAnimatableNone:wPe};function XS(e,r,n){return n<0&&(n+=1),n>1&&(n-=1),n<.16666666666666666?e+(r-e)*6*n:n<.5?r:n<.6666666666666666?e+(r-e)*(.6666666666666666-n)*6:e}function kPe({hue:e,saturation:r,lightness:n,alpha:o}){e/=360,r/=100,n/=100;let a=0,i=0,l=0;if(!r)a=i=l=n;else{const s=n<.5?n*(1+r):n+r-n*r,c=2*n-s;a=XS(c,s,e+.3333333333333333),i=XS(c,s,e),l=XS(c,s,e-.3333333333333333)}return{red:Math.round(a*255),green:Math.round(i*255),blue:Math.round(l*255),alpha:o}}function S3(e,r){return n=>n>0?r:e}const Lr=(e,r,n)=>e+(r-e)*n,ZS=(e,r,n)=>{const o=e*e,a=n*(r*r-o)+o;return a<0?0:Math.sqrt(a)},_Pe=[YS,pp,Gf],SPe=e=>_Pe.find(r=>r.test(e));function QG(e){const r=SPe(e);if(!r)return!1;let n=r.parse(e);return r===Gf&&(n=kPe(n)),n}const JG=(e,r)=>{const n=QG(e),o=QG(r);if(!n||!o)return S3(e,r);const a={...n};return i=>(a.red=ZS(n.red,o.red,i),a.green=ZS(n.green,o.green,i),a.blue=ZS(n.blue,o.blue,i),a.alpha=Lr(n.alpha,o.alpha,i),pp.transform(a))},KS=new Set(["none","hidden"]);function EPe(e,r){return KS.has(e)?n=>n<=0?e:r:n=>n>=1?r:e}function CPe(e,r){return n=>Lr(e,r,n)}function QS(e){return typeof e=="number"?CPe:typeof e=="string"?HS(e)?S3:Sn.test(e)?JG:RPe:Array.isArray(e)?eY:typeof e=="object"?Sn.test(e)?JG:$Pe:S3}function eY(e,r){const n=[...e],o=n.length,a=e.map((i,l)=>QS(i)(i,r[l]));return i=>{for(let l=0;l{for(const i in o)n[i]=o[i](a);return n}}function zPe(e,r){const n=[],o={color:0,var:0,number:0};for(let a=0;a{const n=xd.createTransformer(r),o=$y(e),a=$y(r);return o.indexes.var.length===a.indexes.var.length&&o.indexes.color.length===a.indexes.color.length&&o.indexes.number.length>=a.indexes.number.length?KS.has(e)&&!a.values.length||KS.has(r)&&!o.values.length?EPe(e,r):ky(eY(zPe(o,a),a.values),n):S3(e,r)};function tY(e,r,n){return typeof e=="number"&&typeof r=="number"&&typeof n=="number"?Lr(e,r,n):QS(e)(e,r)}const jPe=e=>{const r=({timestamp:n})=>e(n);return{start:(n=!0)=>Dr.update(r,n),stop:()=>vd(r),now:()=>so.isProcessing?so.timestamp:oa.now()}},rY=(e,r,n=10)=>{let o="";const a=Math.max(Math.round(r/n),2);for(let i=0;i=E3?1/0:r}function nY(e,r=100,n){const o=n({...e,keyframes:[0,r]}),a=Math.min(JS(o),E3);return{type:"keyframes",ease:i=>o.next(a*i).value/r,duration:ui(a)}}const TPe=5;function oY(e,r,n){const o=Math.max(r-TPe,0);return RG(n-e(o),r-o)}const rn={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},eE=.001;function APe({duration:e=rn.duration,bounce:r=rn.bounce,velocity:n=rn.velocity,mass:o=rn.mass}){let a,i,l=1-r;l=tc(rn.minDamping,rn.maxDamping,l),e=tc(rn.minDuration,rn.maxDuration,ui(e)),l<1?(a=d=>{const u=d*l,p=u*e,f=u-n,g=tE(d,l),v=Math.exp(-p);return eE-f/g*v},i=d=>{const u=d*l*e,p=u*n+n,f=Math.pow(l,2)*Math.pow(d,2)*e,g=Math.exp(-u),v=tE(Math.pow(d,2),l);return(-a(d)+eE>0?-1:1)*((p-f)*g)/v}):(a=d=>{const u=Math.exp(-d*e),p=(d-n)*e+1;return-eE+u*p},i=d=>{const u=Math.exp(-d*e),p=(n-d)*(e*e);return u*p});const s=5/e,c=MPe(a,i,s);if(e=ol(e),isNaN(c))return{stiffness:rn.stiffness,damping:rn.damping,duration:e};{const d=Math.pow(c,2)*o;return{stiffness:d,damping:l*2*Math.sqrt(o*d),duration:e}}}const DPe=12;function MPe(e,r,n){let o=n;for(let a=1;ae[n]!==void 0)}function BPe(e){let r={velocity:rn.velocity,stiffness:rn.stiffness,damping:rn.damping,mass:rn.mass,isResolvedFromDuration:!1,...e};if(!aY(e,PPe)&&aY(e,NPe))if(e.visualDuration){const n=e.visualDuration,o=2*Math.PI/(n*1.2),a=o*o,i=2*tc(.05,1,1-(e.bounce||0))*Math.sqrt(a);r={...r,mass:rn.mass,stiffness:a,damping:i}}else{const n=APe(e);r={...r,...n,mass:rn.mass},r.isResolvedFromDuration=!0}return r}function zy(e=rn.visualDuration,r=rn.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:r}:e;let{restSpeed:o,restDelta:a}=n;const i=n.keyframes[0],l=n.keyframes[n.keyframes.length-1],s={done:!1,value:i},{stiffness:c,damping:d,mass:u,duration:p,velocity:f,isResolvedFromDuration:g}=BPe({...n,velocity:-ui(n.velocity||0)}),v=f||0,w=d/(2*Math.sqrt(c*u)),x=l-i,k=ui(Math.sqrt(c/u)),C=Math.abs(x)<5;o||(o=C?rn.restSpeed.granular:rn.restSpeed.default),a||(a=C?rn.restDelta.granular:rn.restDelta.default);let _;if(w<1){const z=tE(k,w);_=j=>{const A=Math.exp(-w*k*j);return l-A*((v+w*k*x)/z*Math.sin(z*j)+x*Math.cos(z*j))}}else if(w===1)_=z=>l-Math.exp(-k*z)*(x+(v+k*x)*z);else{const z=k*Math.sqrt(w*w-1);_=j=>{const A=Math.exp(-w*k*j),R=Math.min(z*j,300);return l-A*((v+w*k*x)*Math.sinh(R)+z*x*Math.cosh(R))/z}}const $={calculatedDuration:g&&p||null,next:z=>{const j=_(z);if(g)s.done=z>=p;else{let A=z===0?v:0;w<1&&(A=z===0?ol(v):oY(_,z,j));const R=Math.abs(A)<=o,T=Math.abs(l-j)<=a;s.done=R&&T}return s.value=s.done?l:j,s},toString:()=>{const z=Math.min(JS($),E3),j=rY(A=>$.next(z*A).value,z,30);return z+"ms "+j},toTransition:()=>{}};return $}zy.applyToOptions=e=>{const r=nY(e,100,zy);return e.ease=r.ease,e.duration=ol(r.duration),e.type="keyframes",e};function rE({keyframes:e,velocity:r=0,power:n=.8,timeConstant:o=325,bounceDamping:a=10,bounceStiffness:i=500,modifyTarget:l,min:s,max:c,restDelta:d=.5,restSpeed:u}){const p=e[0],f={done:!1,value:p},g=R=>s!==void 0&&Rc,v=R=>s===void 0?c:c===void 0||Math.abs(s-R)-w*Math.exp(-R/o),_=R=>k+C(R),$=R=>{const T=C(R),O=_(R);f.done=Math.abs(T)<=d,f.value=f.done?k:O};let z,j;const A=R=>{g(f.value)&&(z=R,j=zy({keyframes:[f.value,v(f.value)],velocity:oY(_,R,f.value),damping:a,stiffness:i,restDelta:d,restSpeed:u}))};return A(0),{calculatedDuration:null,next:R=>{let T=!1;return!j&&z===void 0&&(T=!0,$(R),A(R)),z!==void 0&&R>=z?j.next(R-z):(!T&&$(R),f)}}}function OPe(e,r,n){const o=[],a=n||rc.mix||tY,i=e.length-1;for(let l=0;lr[0];if(i===2&&r[0]===r[1])return()=>r[1];const l=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),r=[...r].reverse());const s=OPe(r,o,a),c=s.length,d=u=>{if(l&&u1)for(;pd(tc(e[0],e[i-1],u)):d}function iY(e,r){const n=e[e.length-1];for(let o=1;o<=r;o++){const a=Uf(0,r,o);e.push(Lr(n,1,a))}}function lY(e){const r=[0];return iY(r,e.length-1),r}function LPe(e,r){return e.map(n=>n*r)}function FPe(e,r){return e.map(()=>r||OG).splice(0,e.length-1)}function Ry({duration:e=300,keyframes:r,times:n,ease:o="easeInOut"}){const a=IG(o)?o.map(VG):VG(o),i={done:!1,value:r[0]},l=LPe(n&&n.length===r.length?n:lY(r),e),s=IPe(l,r,{ease:Array.isArray(a)?a:FPe(r,a)});return{calculatedDuration:e,next:c=>(i.value=s(c),i.done=c>=e,i)}}const VPe=e=>e!==null;function nE(e,{repeat:r,repeatType:n="loop"},o,a=1){const i=e.filter(VPe),l=a<0||r&&n!=="loop"&&r%2===1?0:i.length-1;return!l||o===void 0?i[l]:o}const qPe={decay:rE,inertia:rE,tween:Ry,keyframes:Ry,spring:zy};function sY(e){typeof e.type=="string"&&(e.type=qPe[e.type])}class oE{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(r=>{this.resolve=r})}notifyFinished(){this.resolve()}then(r,n){return this.finished.then(r,n)}}const HPe=e=>e/100;class aE extends oE{constructor(r){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:n}=this.options;n&&n.updatedAt!==oa.now()&&this.tick(oa.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=r,this.initAnimation(),this.play(),r.autoplay===!1&&this.pause()}initAnimation(){const{options:r}=this;sY(r);const{type:n=Ry,repeat:o=0,repeatDelay:a=0,repeatType:i,velocity:l=0}=r;let{keyframes:s}=r;const c=n||Ry;c!==Ry&&typeof s[0]!="number"&&(this.mixKeyframes=ky(HPe,tY(s[0],s[1])),s=[0,100]);const d=c({...r,keyframes:s});i==="mirror"&&(this.mirroredGenerator=c({...r,keyframes:[...s].reverse(),velocity:-l})),d.calculatedDuration===null&&(d.calculatedDuration=JS(d));const{calculatedDuration:u}=d;this.calculatedDuration=u,this.resolvedDuration=u+a,this.totalDuration=this.resolvedDuration*(o+1)-a,this.generator=d}updateTime(r){const n=Math.round(r-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(r,n=!1){const{generator:o,totalDuration:a,mixKeyframes:i,mirroredGenerator:l,resolvedDuration:s,calculatedDuration:c}=this;if(this.startTime===null)return o.next(0);const{delay:d=0,keyframes:u,repeat:p,repeatType:f,repeatDelay:g,type:v,onUpdate:w,finalKeyframe:x}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,r):this.speed<0&&(this.startTime=Math.min(r-a/this.speed,this.startTime)),n?this.currentTime=r:this.updateTime(r);const k=this.currentTime-d*(this.playbackSpeed>=0?1:-1),C=this.playbackSpeed>=0?k<0:k>a;this.currentTime=Math.max(k,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=a);let _=this.currentTime,$=o;if(p){const R=Math.min(this.currentTime,a)/s;let T=Math.floor(R),O=R%1;!O&&R>=1&&(O=1),O===1&&T--,T=Math.min(T,p+1),T%2&&(f==="reverse"?(O=1-O,g&&(O-=g/s)):f==="mirror"&&($=l)),_=tc(0,1,O)*s}const z=C?{done:!1,value:u[0]}:$.next(_);i&&(z.value=i(z.value));let{done:j}=z;!C&&c!==null&&(j=this.playbackSpeed>=0?this.currentTime>=a:this.currentTime<=0);const A=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&j);return A&&v!==rE&&(z.value=nE(u,this.options,x,this.speed)),w&&w(z.value),A&&this.finish(),z}then(r,n){return this.finished.then(r,n)}get duration(){return ui(this.calculatedDuration)}get iterationDuration(){const{delay:r=0}=this.options||{};return this.duration+ui(r)}get time(){return ui(this.currentTime)}set time(r){r=ol(r),this.currentTime=r,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=r:this.driver&&(this.startTime=this.driver.now()-r/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(r){this.updateTime(oa.now());const n=this.playbackSpeed!==r;this.playbackSpeed=r,n&&(this.time=ui(this.currentTime))}play(){if(this.isStopped)return;const{driver:r=jPe,startTime:n}=this.options;this.driver||(this.driver=r(a=>this.tick(a))),this.options.onPlay?.();const o=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=o):this.holdTime!==null?this.startTime=o-this.holdTime:this.startTime||(this.startTime=n??o),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(oa.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(r){return this.startTime=0,this.tick(r,!0)}attachTimeline(r){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),r.observe(this)}}function UPe(e){for(let r=1;re*180/Math.PI,iE=e=>{const r=hp(Math.atan2(e[1],e[0]));return lE(r)},WPe={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:iE,rotateZ:iE,skewX:e=>hp(Math.atan(e[1])),skewY:e=>hp(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},lE=e=>(e=e%360,e<0&&(e+=360),e),cY=iE,dY=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),uY=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),GPe={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:dY,scaleY:uY,scale:e=>(dY(e)+uY(e))/2,rotateX:e=>lE(hp(Math.atan2(e[6],e[5]))),rotateY:e=>lE(hp(Math.atan2(-e[2],e[0]))),rotateZ:cY,rotate:cY,skewX:e=>hp(Math.atan(e[4])),skewY:e=>hp(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function sE(e){return e.includes("scale")?1:0}function cE(e,r){if(!e||e==="none")return sE(r);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let o,a;if(n)o=GPe,a=n;else{const s=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);o=WPe,a=s}if(!a)return sE(r);const i=o[r],l=a[1].split(",").map(XPe);return typeof i=="function"?i(l):l[i]}const YPe=(e,r)=>{const{transform:n="none"}=getComputedStyle(e);return cE(n,r)};function XPe(e){return parseFloat(e.trim())}const Yf=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Xf=new Set(Yf),pY=e=>e===Wf||e===_t,ZPe=new Set(["x","y","z"]),KPe=Yf.filter(e=>!ZPe.has(e));function QPe(e){const r=[];return KPe.forEach(n=>{const o=e.getValue(n);o!==void 0&&(r.push([n,o.get()]),o.set(n.startsWith("scale")?1:0))}),r}const fp={width:({x:e},{paddingLeft:r="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(r)-parseFloat(n),height:({y:e},{paddingTop:r="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(r)-parseFloat(n),top:(e,{top:r})=>parseFloat(r),left:(e,{left:r})=>parseFloat(r),bottom:({y:e},{top:r})=>parseFloat(r)+(e.max-e.min),right:({x:e},{left:r})=>parseFloat(r)+(e.max-e.min),x:(e,{transform:r})=>cE(r,"x"),y:(e,{transform:r})=>cE(r,"y")};fp.translateX=fp.x,fp.translateY=fp.y;const mp=new Set;let dE=!1,uE=!1,pE=!1;function hY(){if(uE){const e=Array.from(mp).filter(o=>o.needsMeasurement),r=new Set(e.map(o=>o.element)),n=new Map;r.forEach(o=>{const a=QPe(o);a.length&&(n.set(o,a),o.render())}),e.forEach(o=>o.measureInitialState()),r.forEach(o=>{o.render();const a=n.get(o);a&&a.forEach(([i,l])=>{o.getValue(i)?.set(l)})}),e.forEach(o=>o.measureEndState()),e.forEach(o=>{o.suspendedScrollY!==void 0&&window.scrollTo(0,o.suspendedScrollY)})}uE=!1,dE=!1,mp.forEach(e=>e.complete(pE)),mp.clear()}function fY(){mp.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(uE=!0)})}function JPe(){pE=!0,fY(),hY(),pE=!1}class hE{constructor(r,n,o,a,i,l=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...r],this.onComplete=n,this.name=o,this.motionValue=a,this.element=i,this.isAsync=l}scheduleResolve(){this.state="scheduled",this.isAsync?(mp.add(this),dE||(dE=!0,Dr.read(fY),Dr.resolveKeyframes(hY))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:r,name:n,element:o,motionValue:a}=this;if(r[0]===null){const i=a?.get(),l=r[r.length-1];if(i!==void 0)r[0]=i;else if(o&&n){const s=o.readValue(n,l);s!=null&&(r[0]=s)}r[0]===void 0&&(r[0]=l),a&&i===void 0&&a.set(r[0])}UPe(r)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(r=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,r),mp.delete(this)}cancel(){this.state==="scheduled"&&(mp.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const eBe=e=>e.startsWith("--");function tBe(e,r,n){eBe(r)?e.style.setProperty(r,n):e.style[r]=n}const rBe=OS(()=>window.ScrollTimeline!==void 0),nBe={};function oBe(e,r){const n=OS(e);return()=>nBe[r]??n()}const mY=oBe(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),jy=([e,r,n,o])=>`cubic-bezier(${e}, ${r}, ${n}, ${o})`,gY={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:jy([0,.65,.55,1]),circOut:jy([.55,0,1,.45]),backIn:jy([.31,.01,.66,-.59]),backOut:jy([.33,1.53,.69,.99])};function yY(e,r){if(e)return typeof e=="function"?mY()?rY(e,r):"ease-out":FG(e)?jy(e):Array.isArray(e)?e.map(n=>yY(n,r)||gY.easeOut):gY[e]}function aBe(e,r,n,{delay:o=0,duration:a=300,repeat:i=0,repeatType:l="loop",ease:s="easeOut",times:c}={},d=void 0){const u={[r]:n};c&&(u.offset=c);const p=yY(s,a);Array.isArray(p)&&(u.easing=p);const f={delay:o,duration:a,easing:Array.isArray(p)?"linear":p,fill:"both",iterations:i+1,direction:l==="reverse"?"alternate":"normal"};return d&&(f.pseudoElement=d),e.animate(u,f)}function fE(e){return typeof e=="function"&&"applyToOptions"in e}function iBe({type:e,...r}){return fE(e)&&mY()?e.applyToOptions(r):(r.duration??(r.duration=300),r.ease??(r.ease="easeOut"),r)}class lBe extends oE{constructor(r){if(super(),this.finishedTime=null,this.isStopped=!1,!r)return;const{element:n,name:o,keyframes:a,pseudoElement:i,allowFlatten:l=!1,finalKeyframe:s,onComplete:c}=r;this.isPseudoElement=!!i,this.allowFlatten=l,this.options=r,BS(typeof r.type!="string");const d=iBe(r);this.animation=aBe(n,o,a,d,i),d.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const u=nE(a,this.options,s,this.speed);this.updateMotionValue?this.updateMotionValue(u):tBe(n,o,u),this.animation.cancel()}c?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:r}=this;r==="idle"||r==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const r=this.animation.effect?.getComputedTiming?.().duration||0;return ui(Number(r))}get iterationDuration(){const{delay:r=0}=this.options||{};return this.duration+ui(r)}get time(){return ui(Number(this.animation.currentTime)||0)}set time(r){this.finishedTime=null,this.animation.currentTime=ol(r)}get speed(){return this.animation.playbackRate}set speed(r){r<0&&(this.finishedTime=null),this.animation.playbackRate=r}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(r){this.animation.startTime=r}attachTimeline({timeline:r,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,r&&rBe()?(this.animation.timeline=r,di):n(this)}}const vY={anticipate:NG,backInOut:MG,circInOut:BG};function sBe(e){return e in vY}function cBe(e){typeof e.ease=="string"&&sBe(e.ease)&&(e.ease=vY[e.ease])}const bY=10;class dBe extends lBe{constructor(r){cBe(r),sY(r),super(r),r.startTime&&(this.startTime=r.startTime),this.options=r}updateMotionValue(r){const{motionValue:n,onUpdate:o,onComplete:a,element:i,...l}=this.options;if(!n)return;if(r!==void 0){n.set(r);return}const s=new aE({...l,autoplay:!1}),c=ol(this.finishedTime??this.time);n.setWithVelocity(s.sample(c-bY).value,s.sample(c).value,bY),s.stop()}}const xY=(e,r)=>r==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(xd.test(e)||e==="0")&&!e.startsWith("url("));function uBe(e){const r=e[0];if(e.length===1)return!0;for(let n=0;nObject.hasOwnProperty.call(Element.prototype,"animate"));function mBe(e){const{motionValue:r,name:n,repeatDelay:o,repeatType:a,damping:i,type:l}=e;if(!(r?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:s,transformTemplate:c}=r.owner.getProps();return fBe()&&n&&hBe.has(n)&&(n!=="transform"||!c)&&!s&&!o&&a!=="mirror"&&i!==0&&l!=="inertia"}const gBe=40;class yBe extends oE{constructor({autoplay:r=!0,delay:n=0,type:o="keyframes",repeat:a=0,repeatDelay:i=0,repeatType:l="loop",keyframes:s,name:c,motionValue:d,element:u,...p}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=oa.now();const f={autoplay:r,delay:n,type:o,repeat:a,repeatDelay:i,repeatType:l,name:c,motionValue:d,element:u,...p},g=u?.KeyframeResolver||hE;this.keyframeResolver=new g(s,(v,w,x)=>this.onKeyframesResolved(v,w,f,!x),c,d,u),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(r,n,o,a){this.keyframeResolver=void 0;const{name:i,type:l,velocity:s,delay:c,isHandoff:d,onUpdate:u}=o;this.resolvedAt=oa.now(),pBe(r,i,l,s)||((rc.instantAnimations||!c)&&u?.(nE(r,o,n)),r[0]=r[r.length-1],mE(o),o.repeat=0);const p={startTime:a?this.resolvedAt?this.resolvedAt-this.createdAt>gBe?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...o,keyframes:r},f=!d&&mBe(p)?new dBe({...p,element:p.motionValue.owner.current}):new aE(p);f.finished.then(()=>this.notifyFinished()).catch(di),this.pendingTimeline&&(this.stopTimeline=f.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=f}get finished(){return this._animation?this.animation.finished:this._finished}then(r,n){return this.finished.finally(r).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),JPe()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(r){this.animation.time=r}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(r){this.animation.speed=r}get startTime(){return this.animation.startTime}attachTimeline(r){return this._animation?this.stopTimeline=this.animation.attachTimeline(r):this.pendingTimeline=r,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}class vBe{constructor(r){this.stop=()=>this.runAll("stop"),this.animations=r.filter(Boolean)}get finished(){return Promise.all(this.animations.map(r=>r.finished))}getAll(r){return this.animations[0][r]}setAll(r,n){for(let o=0;oo.attachTimeline(r));return()=>{n.forEach((o,a)=>{o&&o(),this.animations[a].stop()})}}get time(){return this.getAll("time")}set time(r){this.setAll("time",r)}get speed(){return this.getAll("speed")}set speed(r){this.setAll("speed",r)}get state(){return this.getAll("state")}get startTime(){return this.getAll("startTime")}get duration(){return wY(this.animations,"duration")}get iterationDuration(){return wY(this.animations,"iterationDuration")}runAll(r){this.animations.forEach(n=>n[r]())}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}function wY(e,r){let n=0;for(let o=0;on&&(n=a)}return n}class bBe extends vBe{then(r,n){return this.finished.finally(r).then(()=>{})}}const xBe=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function wBe(e){const r=xBe.exec(e);if(!r)return[,];const[,n,o,a]=r;return[`--${n??o}`,a]}function kY(e,r,n=1){const[o,a]=wBe(e);if(!o)return;const i=window.getComputedStyle(r).getPropertyValue(o);if(i){const l=i.trim();return CG(l)?parseFloat(l):l}return HS(a)?kY(a,r,n+1):a}function gE(e,r){return e?.[r]??e?.default??e}const _Y=new Set(["width","height","top","left","right","bottom",...Yf]),kBe={test:e=>e==="auto",parse:e=>e},SY=e=>r=>r.test(e),EY=[Wf,_t,ns,bd,fPe,hPe,kBe],CY=e=>EY.find(SY(e));function _Be(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||zG(e):!0}const SBe=new Set(["brightness","contrast","saturate","opacity"]);function EBe(e){const[r,n]=e.slice(0,-1).split("(");if(r==="drop-shadow")return e;const[o]=n.match(US)||[];if(!o)return e;const a=n.replace(o,"");let i=SBe.has(r)?1:0;return o!==n&&(i*=100),r+"("+i+a+")"}const CBe=/\b([a-z-]*)\(.*?\)/gu,yE={...xd,getAnimatableNone:e=>{const r=e.match(CBe);return r?r.map(EBe).join(" "):e}},$Y={...Wf,transform:Math.round},$Be={rotate:bd,rotateX:bd,rotateY:bd,rotateZ:bd,scale:_3,scaleX:_3,scaleY:_3,scaleZ:_3,skew:bd,skewX:bd,skewY:bd,distance:_t,translateX:_t,translateY:_t,translateZ:_t,x:_t,y:_t,z:_t,perspective:_t,transformPerspective:_t,opacity:Sy,originX:WG,originY:WG,originZ:_t},vE={borderWidth:_t,borderTopWidth:_t,borderRightWidth:_t,borderBottomWidth:_t,borderLeftWidth:_t,borderRadius:_t,radius:_t,borderTopLeftRadius:_t,borderTopRightRadius:_t,borderBottomRightRadius:_t,borderBottomLeftRadius:_t,width:_t,maxWidth:_t,height:_t,maxHeight:_t,top:_t,right:_t,bottom:_t,left:_t,padding:_t,paddingTop:_t,paddingRight:_t,paddingBottom:_t,paddingLeft:_t,margin:_t,marginTop:_t,marginRight:_t,marginBottom:_t,marginLeft:_t,backgroundPositionX:_t,backgroundPositionY:_t,...$Be,zIndex:$Y,fillOpacity:Sy,strokeOpacity:Sy,numOctaves:$Y},zBe={...vE,color:Sn,backgroundColor:Sn,outlineColor:Sn,fill:Sn,stroke:Sn,borderColor:Sn,borderTopColor:Sn,borderRightColor:Sn,borderBottomColor:Sn,borderLeftColor:Sn,filter:yE,WebkitFilter:yE},zY=e=>zBe[e];function RY(e,r){let n=zY(e);return n!==yE&&(n=xd),n.getAnimatableNone?n.getAnimatableNone(r):void 0}const RBe=new Set(["auto","none","0"]);function jBe(e,r,n){let o=0,a;for(;o{r.getValue(s).set(c)}),this.resolveNoneKeyframes()}}function jY(e,r,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let o=document;const a=n?.[e]??o.querySelectorAll(e);return a?Array.from(a):[]}return Array.from(e)}const TY=(e,r)=>r&&typeof e=="number"?r.transform(e):e;function AY(e){return $G(e)&&"offsetHeight"in e}const DY=30,ABe=e=>!isNaN(parseFloat(e));class DBe{constructor(r,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=o=>{const a=oa.now();if(this.updatedAt!==a&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(o),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const i of this.dependents)i.dirty()},this.hasAnimated=!1,this.setCurrent(r),this.owner=n.owner}setCurrent(r){this.current=r,this.updatedAt=oa.now(),this.canTrackVelocity===null&&r!==void 0&&(this.canTrackVelocity=ABe(this.current))}setPrevFrameValue(r=this.current){this.prevFrameValue=r,this.prevUpdatedAt=this.updatedAt}onChange(r){return this.on("change",r)}on(r,n){this.events[r]||(this.events[r]=new IS);const o=this.events[r].add(n);return r==="change"?()=>{o(),Dr.read(()=>{this.events.change.getSize()||this.stop()})}:o}clearListeners(){for(const r in this.events)this.events[r].clear()}attach(r,n){this.passiveEffect=r,this.stopPassiveEffect=n}set(r){this.passiveEffect?this.passiveEffect(r,this.updateAndNotify):this.updateAndNotify(r)}setWithVelocity(r,n,o){this.set(n),this.prev=void 0,this.prevFrameValue=r,this.prevUpdatedAt=this.updatedAt-o}jump(r,n=!0){this.updateAndNotify(r),this.prev=r,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(r){this.dependents||(this.dependents=new Set),this.dependents.add(r)}removeDependent(r){this.dependents&&this.dependents.delete(r)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const r=oa.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||r-this.updatedAt>DY)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,DY);return RG(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(r){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=r(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function gp(e,r){return new DBe(e,r)}const{schedule:bE}=qG(queueMicrotask,!1),al={x:!1,y:!1};function MY(){return al.x||al.y}function MBe(e){return e==="x"||e==="y"?al[e]?null:(al[e]=!0,()=>{al[e]=!1}):al.x||al.y?null:(al.x=al.y=!0,()=>{al.x=al.y=!1})}function NY(e,r){const n=jY(e),o=new AbortController,a={passive:!0,...r,signal:o.signal};return[n,a,()=>o.abort()]}function PY(e){return!(e.pointerType==="touch"||MY())}function NBe(e,r,n={}){const[o,a,i]=NY(e,n),l=s=>{if(!PY(s))return;const{target:c}=s,d=r(c,s);if(typeof d!="function"||!c)return;const u=p=>{PY(p)&&(d(p),c.removeEventListener("pointerleave",u))};c.addEventListener("pointerleave",u,a)};return o.forEach(s=>{s.addEventListener("pointerenter",l,a)}),i}const BY=(e,r)=>r?e===r?!0:BY(e,r.parentElement):!1,xE=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,PBe=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function BBe(e){return PBe.has(e.tagName)||e.tabIndex!==-1}const C3=new WeakSet;function OY(e){return r=>{r.key==="Enter"&&e(r)}}function wE(e,r){e.dispatchEvent(new PointerEvent("pointer"+r,{isPrimary:!0,bubbles:!0}))}const OBe=(e,r)=>{const n=e.currentTarget;if(!n)return;const o=OY(()=>{if(C3.has(n))return;wE(n,"down");const a=OY(()=>{wE(n,"up")}),i=()=>wE(n,"cancel");n.addEventListener("keyup",a,r),n.addEventListener("blur",i,r)});n.addEventListener("keydown",o,r),n.addEventListener("blur",()=>n.removeEventListener("keydown",o),r)};function IY(e){return xE(e)&&!MY()}function IBe(e,r,n={}){const[o,a,i]=NY(e,n),l=s=>{const c=s.currentTarget;if(!IY(s))return;C3.add(c);const d=r(c,s),u=(g,v)=>{window.removeEventListener("pointerup",p),window.removeEventListener("pointercancel",f),C3.has(c)&&C3.delete(c),IY(g)&&typeof d=="function"&&d(g,{success:v})},p=g=>{u(g,c===window||c===document||n.useGlobalTarget||BY(c,g.target))},f=g=>{u(g,!1)};window.addEventListener("pointerup",p,a),window.addEventListener("pointercancel",f,a)};return o.forEach(s=>{(n.useGlobalTarget?window:s).addEventListener("pointerdown",l,a),AY(s)&&(s.addEventListener("focus",c=>OBe(c,a)),!BBe(s)&&!s.hasAttribute("tabindex")&&(s.tabIndex=0))}),i}function kE(e){return $G(e)&&"ownerSVGElement"in e}function LY(e){return kE(e)&&e.tagName==="svg"}const to=e=>!!(e&&e.getVelocity),LBe=[...EY,Sn,xd],FBe=e=>LBe.find(SY(e));function _E(e){return typeof e=="object"&&!Array.isArray(e)}function FY(e,r,n,o){return typeof e=="string"&&_E(r)?jY(e,n,o):e instanceof NodeList?Array.from(e):Array.isArray(e)?e:[e]}function VBe(e,r,n){return e*(r+1)}function VY(e,r,n,o){return typeof r=="number"?r:r.startsWith("-")||r.startsWith("+")?Math.max(0,e+parseFloat(r)):r==="<"?n:r.startsWith("<")?Math.max(0,n+parseFloat(r.slice(1))):o.get(r)??e}function qBe(e,r,n){for(let o=0;or&&a.at{const T=XBe($),{delay:O=0,times:P=lY(T),type:L="keyframes",repeat:H,repeatType:M,repeatDelay:V=0,...B}=z;let{ease:F=r.ease||"easeOut",duration:q}=z;const G=typeof O=="function"?O(A,R):O,U=T.length,Y=fE(L)?L:a?.[L||"keyframes"];if(U<=2&&Y){let K=100;if(U===2&&QBe(T)){const te=T[1]-T[0];K=Math.abs(te)}const Q={...B};q!==void 0&&(Q.duration=ol(q));const ae=nY(Q,K,Y);F=ae.ease,q=ae.duration}q??(q=i);const Z=p+G;P.length===1&&P[0]===0&&(P[1]=1);const I=P.length-T.length;if(I>0&&iY(P,I),T.length===1&&T.unshift(null),H){q=VBe(q,H);const K=[...T],Q=[...P];F=Array.isArray(F)?[...F]:[F];const ae=[...F];for(let te=0;te{for(const w in g){const x=g[w];x.sort(WBe);const k=[],C=[],_=[];for(let z=0;ztypeof e=="number",QBe=e=>e.every(KBe),Ty=new WeakMap,SE=e=>Array.isArray(e);function UY(e){const r=[{},{}];return e?.values.forEach((n,o)=>{r[0][o]=n.get(),r[1][o]=n.getVelocity()}),r}function EE(e,r,n,o){if(typeof r=="function"){const[a,i]=UY(o);r=r(n!==void 0?n:e.custom,a,i)}if(typeof r=="string"&&(r=e.variants&&e.variants[r]),typeof r=="function"){const[a,i]=UY(o);r=r(n!==void 0?n:e.custom,a,i)}return r}function Zf(e,r,n){const o=e.getProps();return EE(o,r,n!==void 0?n:o.custom,e)}function JBe(e,r,n){e.hasValue(r)?e.getValue(r).set(n):e.addValue(r,gp(n))}function eOe(e){return SE(e)?e[e.length-1]||0:e}function tOe(e,r){const n=Zf(e,r);let{transitionEnd:o={},transition:a={},...i}=n||{};i={...i,...o};for(const l in i){const s=eOe(i[l]);JBe(e,l,s)}}function rOe(e){return!!(to(e)&&e.add)}function CE(e,r){const n=e.getValue("willChange");if(rOe(n))return n.add(r);if(!n&&rc.WillChange){const o=new rc.WillChange("auto");e.addValue("willChange",o),o.add(r)}}const $E=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),nOe="framerAppearId",WY="data-"+$E(nOe);function GY(e){return e.props[WY]}const oOe=e=>e!==null;function aOe(e,{repeat:r,repeatType:n="loop"},o){const a=e.filter(oOe),i=r&&n!=="loop"&&r%2===1?0:a.length-1;return a[i]}const iOe={type:"spring",stiffness:500,damping:25,restSpeed:10},lOe=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),sOe={type:"keyframes",duration:.8},cOe={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},dOe=(e,{keyframes:r})=>r.length>2?sOe:Xf.has(e)?e.startsWith("scale")?lOe(r[1]):iOe:cOe;function uOe({when:e,delay:r,delayChildren:n,staggerChildren:o,staggerDirection:a,repeat:i,repeatType:l,repeatDelay:s,from:c,elapsed:d,...u}){return!!Object.keys(u).length}const zE=(e,r,n,o={},a,i)=>l=>{const s=gE(o,e)||{},c=s.delay||o.delay||0;let{elapsed:d=0}=o;d=d-ol(c);const u={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:r.getVelocity(),...s,delay:-d,onUpdate:f=>{r.set(f),s.onUpdate&&s.onUpdate(f)},onComplete:()=>{l(),s.onComplete&&s.onComplete()},name:e,motionValue:r,element:i?void 0:a};uOe(s)||Object.assign(u,dOe(e,u)),u.duration&&(u.duration=ol(u.duration)),u.repeatDelay&&(u.repeatDelay=ol(u.repeatDelay)),u.from!==void 0&&(u.keyframes[0]=u.from);let p=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(mE(u),u.delay===0&&(p=!0)),(rc.instantAnimations||rc.skipAnimations)&&(p=!0,mE(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,p&&!i&&r.get()!==void 0){const f=aOe(u.keyframes,s);if(f!==void 0){Dr.update(()=>{u.onUpdate(f),u.onComplete()});return}}return s.isSync?new aE(u):new yBe(u)};function pOe({protectedKeys:e,needsAnimating:r},n){const o=e.hasOwnProperty(n)&&r[n]!==!0;return r[n]=!1,o}function RE(e,r,{delay:n=0,transitionOverride:o,type:a}={}){let{transition:i=e.getDefaultTransition(),transitionEnd:l,...s}=r;o&&(i=o);const c=[],d=a&&e.animationState&&e.animationState.getState()[a];for(const u in s){const p=e.getValue(u,e.latestValues[u]??null),f=s[u];if(f===void 0||d&&pOe(d,u))continue;const g={delay:n,...gE(i||{},u)},v=p.get();if(v!==void 0&&!p.isAnimating&&!Array.isArray(f)&&f===v&&!g.velocity)continue;let w=!1;if(window.MotionHandoffAnimation){const k=GY(e);if(k){const C=window.MotionHandoffAnimation(k,u,Dr);C!==null&&(g.startTime=C,w=!0)}}CE(e,u),p.start(zE(u,p,f,e.shouldReduceMotion&&_Y.has(u)?{type:!1}:g,e,w));const x=p.animation;x&&c.push(x)}return l&&Promise.all(c).then(()=>{Dr.update(()=>{l&&tOe(e,l)})}),c}function YY({top:e,left:r,right:n,bottom:o}){return{x:{min:r,max:n},y:{min:e,max:o}}}function hOe({x:e,y:r}){return{top:r.min,right:e.max,bottom:r.max,left:e.min}}function fOe(e,r){if(!r)return e;const n=r({x:e.left,y:e.top}),o=r({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:o.y,right:o.x}}function jE(e){return e===void 0||e===1}function TE({scale:e,scaleX:r,scaleY:n}){return!jE(e)||!jE(r)||!jE(n)}function yp(e){return TE(e)||XY(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function XY(e){return ZY(e.x)||ZY(e.y)}function ZY(e){return e&&e!=="0%"}function $3(e,r,n){const o=e-n,a=r*o;return n+a}function KY(e,r,n,o,a){return a!==void 0&&(e=$3(e,a,o)),$3(e,n,o)+r}function AE(e,r=0,n=1,o,a){e.min=KY(e.min,r,n,o,a),e.max=KY(e.max,r,n,o,a)}function QY(e,{x:r,y:n}){AE(e.x,r.translate,r.scale,r.originPoint),AE(e.y,n.translate,n.scale,n.originPoint)}const JY=.999999999999,eX=1.0000000000001;function mOe(e,r,n,o=!1){const a=n.length;if(!a)return;r.x=r.y=1;let i,l;for(let s=0;sJY&&(r.x=1),r.yJY&&(r.y=1)}function Kf(e,r){e.min=e.min+r,e.max=e.max+r}function tX(e,r,n,o,a=.5){const i=Lr(e.min,e.max,a);AE(e,r,n,i,o)}function Qf(e,r){tX(e.x,r.x,r.scaleX,r.scale,r.originX),tX(e.y,r.y,r.scaleY,r.scale,r.originY)}function rX(e,r){return YY(fOe(e.getBoundingClientRect(),r))}function gOe(e,r,n){const o=rX(e,n),{scroll:a}=r;return a&&(Kf(o.x,a.offset.x),Kf(o.y,a.offset.y)),o}const nX={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Jf={};for(const e in nX)Jf[e]={isEnabled:r=>nX[e].some(n=>!!r[n])};const oX=()=>({translate:0,scale:1,origin:0,originPoint:0}),em=()=>({x:oX(),y:oX()}),aX=()=>({min:0,max:0}),En=()=>({x:aX(),y:aX()}),DE=typeof window<"u",z3={current:null},ME={current:!1};function iX(){if(ME.current=!0,!!DE)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),r=()=>z3.current=e.matches;e.addEventListener("change",r),r()}else z3.current=!1}function R3(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Ay(e){return typeof e=="string"||Array.isArray(e)}const NE=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],PE=["initial",...NE];function j3(e){return R3(e.animate)||PE.some(r=>Ay(e[r]))}function lX(e){return!!(j3(e)||e.variants)}function yOe(e,r,n){for(const o in r){const a=r[o],i=n[o];if(to(a))e.addValue(o,a);else if(to(i))e.addValue(o,gp(a,{owner:e}));else if(i!==a)if(e.hasValue(o)){const l=e.getValue(o);l.liveStyle===!0?l.jump(a):l.hasAnimated||l.set(a)}else{const l=e.getStaticValue(o);e.addValue(o,gp(l!==void 0?l:a,{owner:e}))}}for(const o in n)r[o]===void 0&&e.removeValue(o);return r}const sX=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class cX{scrapeMotionValuesFromProps(r,n,o){return{}}constructor({parent:r,props:n,presenceContext:o,reducedMotionConfig:a,blockInitialAnimation:i,visualState:l},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=hE,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const f=oa.now();this.renderScheduledAtthis.bindToMotionValue(o,n)),ME.current||iX(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:z3.current,this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),vd(this.notifyUpdate),vd(this.render),this.valueSubscriptions.forEach(r=>r()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const r in this.events)this.events[r].clear();for(const r in this.features){const n=this.features[r];n&&(n.unmount(),n.isMounted=!1)}this.current=null}addChild(r){this.children.add(r),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(r)}removeChild(r){this.children.delete(r),this.enteringChildren&&this.enteringChildren.delete(r)}bindToMotionValue(r,n){this.valueSubscriptions.has(r)&&this.valueSubscriptions.get(r)();const o=Xf.has(r);o&&this.onBindTransform&&this.onBindTransform();const a=n.on("change",l=>{this.latestValues[r]=l,this.props.onUpdate&&Dr.preRender(this.notifyUpdate),o&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let i;window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,r,n)),this.valueSubscriptions.set(r,()=>{a(),i&&i(),n.owner&&n.stop()})}sortNodePosition(r){return!this.current||!this.sortInstanceNodePosition||this.type!==r.type?0:this.sortInstanceNodePosition(this.current,r.current)}updateFeatures(){let r="animation";for(r in Jf){const n=Jf[r];if(!n)continue;const{isEnabled:o,Feature:a}=n;if(!this.features[r]&&a&&o(this.props)&&(this.features[r]=new a(this)),this.features[r]){const i=this.features[r];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):En()}getStaticValue(r){return this.latestValues[r]}setStaticValue(r,n){this.latestValues[r]=n}update(r,n){(r.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=r,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let o=0;on.variantChildren.delete(r)}addValue(r,n){const o=this.values.get(r);n!==o&&(o&&this.removeValue(r),this.bindToMotionValue(r,n),this.values.set(r,n),this.latestValues[r]=n.get())}removeValue(r){this.values.delete(r);const n=this.valueSubscriptions.get(r);n&&(n(),this.valueSubscriptions.delete(r)),delete this.latestValues[r],this.removeValueFromRenderState(r,this.renderState)}hasValue(r){return this.values.has(r)}getValue(r,n){if(this.props.values&&this.props.values[r])return this.props.values[r];let o=this.values.get(r);return o===void 0&&n!==void 0&&(o=gp(n===null?void 0:n,{owner:this}),this.addValue(r,o)),o}readValue(r,n){let o=this.latestValues[r]!==void 0||!this.current?this.latestValues[r]:this.getBaseTargetFromProps(this.props,r)??this.readValueFromInstance(this.current,r,this.options);return o!=null&&(typeof o=="string"&&(CG(o)||zG(o))?o=parseFloat(o):!FBe(o)&&xd.test(n)&&(o=RY(r,n)),this.setBaseTarget(r,to(o)?o.get():o)),to(o)?o.get():o}setBaseTarget(r,n){this.baseTarget[r]=n}getBaseTarget(r){const{initial:n}=this.props;let o;if(typeof n=="string"||typeof n=="object"){const i=EE(this.props,n,this.presenceContext?.custom);i&&(o=i[r])}if(n&&o!==void 0)return o;const a=this.getBaseTargetFromProps(this.props,r);return a!==void 0&&!to(a)?a:this.initialValues[r]!==void 0&&o===void 0?void 0:this.baseTarget[r]}on(r,n){return this.events[r]||(this.events[r]=new IS),this.events[r].add(n)}notify(r,...n){this.events[r]&&this.events[r].notify(...n)}scheduleRenderMicrotask(){bE.render(this.render)}}class dX extends cX{constructor(){super(...arguments),this.KeyframeResolver=TBe}sortInstanceNodePosition(r,n){return r.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(r,n){return r.style?r.style[n]:void 0}removeValueFromRenderState(r,{vars:n,style:o}){delete n[r],delete o[r]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:r}=this.props;to(r)&&(this.childSubscription=r.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}const vOe={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},bOe=Yf.length;function xOe(e,r,n){let o="",a=!0;for(let i=0;itypeof e=="string"&&e.toLowerCase()==="svg";function zOe(e,r,n,o){uX(e,r,void 0,o);for(const a in r.attrs)e.setAttribute(mX.has(a)?a:$E(a),r.attrs[a])}function yX(e,r,n){const o=OE(e,r,n);for(const a in e)if(to(e[a])||to(r[a])){const i=Yf.indexOf(a)!==-1?"attr"+a.charAt(0).toUpperCase()+a.substring(1):a;o[i]=e[a]}return o}class vX extends dX{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=En}getBaseTargetFromProps(r,n){return r[n]}readValueFromInstance(r,n){if(Xf.has(n)){const o=zY(n);return o&&o.default||0}return n=mX.has(n)?n:$E(n),r.getAttribute(n)}scrapeMotionValuesFromProps(r,n,o){return yX(r,n,o)}build(r,n,o){fX(r,n,this.isSVGTag,o.transformTemplate,o.style)}renderInstance(r,n,o,a){zOe(r,n,o,a)}mount(r){this.isSVGTag=gX(r.tagName),super.mount(r)}}function ROe(e){const r={presenceContext:null,props:{},visualState:{renderState:{transform:{},transformOrigin:{},style:{},vars:{},attrs:{}},latestValues:{}}},n=kE(e)&&!LY(e)?new vX(r):new hX(r);n.mount(e),Ty.set(e,n)}function jOe(e){const r={presenceContext:null,props:{},visualState:{renderState:{output:{}},latestValues:{}}},n=new SOe(r);n.mount(e),Ty.set(e,n)}function bX(e,r,n){const o=to(e)?e:gp(e);return o.start(zE("",o,r,n)),o.animation}function TOe(e,r){return to(e)||typeof e=="number"||typeof e=="string"&&!_E(r)}function xX(e,r,n,o){const a=[];if(TOe(e,r))a.push(bX(e,_E(r)&&r.default||r,n&&(n.default||n)));else{const i=FY(e,r,o),l=i.length;for(let s=0;s{o.push(...xX(l,a,i))}),o}function DOe(e){return Array.isArray(e)&&e.some(Array.isArray)}function MOe(e){function r(n,o,a){let i=[],l;if(DOe(n))i=AOe(n,o,e);else{const{onComplete:c,...d}=a||{};typeof c=="function"&&(l=c),i=xX(n,o,d,e)}const s=new bBe(i);return l&&s.finished.then(l),s}return r}const NOe=MOe();function POe(e,r){const n=oa.now(),o=({timestamp:a})=>{const i=a-n;i>=r&&(vd(o),e(i-r))};return Dr.setup(o,!0),()=>vd(o)}const wX=(e,r)=>Math.abs(e-r);function BOe(e,r){const n=wX(e.x,r.x),o=wX(e.y,r.y);return Math.sqrt(n**2+o**2)}const My=S.createContext({});function tm(e){const r=S.useRef(null);return r.current===null&&(r.current=e()),r.current}const IE=DE?S.useLayoutEffect:S.useEffect,T3=S.createContext(null),vp=S.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function kX(e,r){if(typeof e=="function")return e(r);e!=null&&(e.current=r)}function OOe(...e){return r=>{let n=!1;const o=e.map(a=>{const i=kX(a,r);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let a=0;a{const{width:d,height:u,top:p,left:f,right:g}=l.current;if(r||!i.current||!d||!u)return;const v=n==="left"?`left: ${f}`:`right: ${g}`;i.current.dataset.motionPopId=a;const w=document.createElement("style");s&&(w.nonce=s);const x=o??document.head;return x.appendChild(w),w.sheet&&w.sheet.insertRule(` [data-motion-pop-id="${a}"] { position: absolute !important; width: ${d}px !important; height: ${u}px !important; - ${b}px !important; - top: ${h}px !important; + ${v}px !important; + top: ${p}px !important; } - `),()=>{w.contains(x)&&w.removeChild(x)}},[r]),y.jsx(zVe,{isPresent:r,childRef:i,sizeRef:s,children:E.cloneElement(e,{ref:c})})}const OVe=({children:e,initial:r,isPresent:n,onExitComplete:o,custom:a,presenceAffectsLayout:i,mode:s,anchorX:l,root:c})=>{const d=Dm(jVe),u=E.useId();let h=!0,f=E.useMemo(()=>(h=!1,{id:u,initial:r,isPresent:n,custom:a,onExitComplete:g=>{d.set(g,!0);for(const b of d.values())if(!b)return;o&&o()},register:g=>(d.set(g,!1),()=>d.delete(g))}),[n,d,o]);return i&&h&&(f={...f}),E.useMemo(()=>{d.forEach((g,b)=>d.set(b,!1))},[n]),E.useEffect(()=>{!n&&!d.size&&o&&o()},[n]),s==="popLayout"&&(e=y.jsx(IVe,{isPresent:n,anchorX:l,root:c,children:e})),y.jsx(Tw.Provider,{value:f,children:e})};function jVe(){return new Map}function MZ(e=!0){const r=E.useContext(Tw);if(r===null)return[!0,null];const{isPresent:n,onExitComplete:o,register:a}=r,i=E.useId();E.useEffect(()=>{if(e)return a(i)},[e]);const s=E.useCallback(()=>e&&o&&o(i),[i,o,e]);return!n&&o?[!1,s]:[!0]}const Aw=e=>e.key||"";function zZ(e){const r=[];return E.Children.forEach(e,n=>{E.isValidElement(n)&&r.push(n)}),r}const Qn=({children:e,custom:r,initial:n=!0,onExitComplete:o,presenceAffectsLayout:a=!0,mode:i="sync",propagate:s=!1,anchorX:l="left",root:c})=>{const[d,u]=MZ(s),h=E.useMemo(()=>zZ(e),[e]),f=s&&!d?[]:h.map(Aw),g=E.useRef(!0),b=E.useRef(h),x=Dm(()=>new Map),[w,k]=E.useState(h),[C,_]=E.useState(h);tT(()=>{g.current=!1,b.current=h;for(let R=0;R{const D=Aw(R),N=s&&!d?!1:h===C||f.includes(D),P=()=>{if(x.has(D))x.set(D,!0);else return;let O=!0;x.forEach(F=>{F||(O=!1)}),O&&(A?.(),_(b.current),s&&u?.(),o&&o())};return y.jsx(OVe,{isPresent:N,initial:!g.current||n?void 0:!1,custom:r,presenceAffectsLayout:a,mode:i,root:c,onExitComplete:N?void 0:P,anchorX:l,children:R},D)})})},LVe=E.createContext(null);function BVe(){const e=E.useRef(!1);return tT(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function FVe(){const e=BVe(),[r,n]=E.useState(0),o=E.useCallback(()=>{e.current&&n(r+1)},[r]);return[E.useCallback(()=>qr.postRender(o),[o]),r]}const HVe=e=>!e.isLayoutDirty&&e.willUpdate(!1);function VVe(){const e=new Set,r=new WeakMap,n=()=>e.forEach(HVe);return{add:o=>{e.add(o),r.set(o,o.addEventListener("willUpdate",n))},remove:o=>{e.delete(o);const a=r.get(o);a&&(a(),r.delete(o)),n()},dirty:n}}const IZ=e=>e===!0,qVe=e=>IZ(e===!0)||e==="id",$m=({children:e,id:r,inherit:n=!0})=>{const o=E.useContext(fy),a=E.useContext(LVe),[i,s]=FVe(),l=E.useRef(null),c=o.id||a;l.current===null&&(qVe(n)&&c&&(r=r?c+"-"+r:c),l.current={id:r,group:IZ(n)&&o.group||VVe()});const d=E.useMemo(()=>({...l.current,forceRender:i}),[s]);return y.jsx(fy.Provider,{value:d,children:e})},rT=E.createContext({strict:!1});function nT(e){for(const r in e)Rm[r]={...Rm[r],...e[r]}}function UVe({children:e,features:r,strict:n=!1}){const[,o]=E.useState(!oT(r)),a=E.useRef(void 0);if(!oT(r)){const{renderer:i,...s}=r;a.current=i,nT(s)}return E.useEffect(()=>{oT(r)&&r().then(({renderer:i,...s})=>{nT(s),a.current=i,o(!0)})},[]),y.jsx(rT.Provider,{value:{renderer:a.current,strict:n},children:e})}function oT(e){return typeof e=="function"}const WVe=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Rw(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||WVe.has(e)}let OZ=e=>!Rw(e);function jZ(e){typeof e=="function"&&(OZ=r=>r.startsWith("on")?!Rw(r):e(r))}try{jZ(require("@emotion/is-prop-valid").default)}catch{}function YVe(e,r,n){const o={};for(const a in e)a==="values"&&typeof e.values=="object"||(OZ(a)||n===!0&&Rw(a)||!r&&!Rw(a)||e.draggable&&a.startsWith("onDrag"))&&(o[a]=e[a]);return o}function GVe({children:e,isValidProp:r,...n}){r&&jZ(r),n={...E.useContext(Hp),...n},n.isStatic=Dm(()=>n.isStatic);const o=E.useMemo(()=>n,[JSON.stringify(n.transition),n.transformPagePoint,n.reducedMotion]);return y.jsx(Hp.Provider,{value:o,children:e})}const Nw=E.createContext({});function XVe(e,r){if(Cw(e)){const{initial:n,animate:o}=e;return{initial:n===!1||py(n)?n:void 0,animate:py(o)?o:void 0}}return e.inherit!==!1?r:{}}function KVe(e){const{initial:r,animate:n}=XVe(e,E.useContext(Nw));return E.useMemo(()=>({initial:r,animate:n}),[LZ(r),LZ(n)])}function LZ(e){return Array.isArray(e)?e.join(" "):e}const aT=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function BZ(e,r,n){for(const o in r)!uo(r[o])&&!_Z(o,n)&&(e[o]=r[o])}function ZVe({transformTemplate:e},r){return E.useMemo(()=>{const n=aT();return JC(n,r,e),Object.assign({},n.vars,n.style)},[r])}function QVe(e,r){const n=e.style||{},o={};return BZ(o,n,e),Object.assign(o,ZVe(e,r)),o}function JVe(e,r){const n={},o=QVe(e,r);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=o,n}const FZ=()=>({...aT(),attrs:{}});function eqe(e,r,n,o){const a=E.useMemo(()=>{const i=FZ();return SZ(i,r,TZ(o),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[r]);if(e.style){const i={};BZ(i,e.style,e),a.style={...i,...a.style}}return a}const tqe=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function iT(e){return typeof e!="string"||e.includes("-")?!1:!!(tqe.indexOf(e)>-1||/[A-Z]/u.test(e))}function rqe(e,r,n,{latestValues:o},a,i=!1){const s=(iT(e)?eqe:JVe)(r,o,a,e),l=YVe(r,typeof e=="string",i),c=e!==E.Fragment?{...l,...s,ref:n}:{},{children:d}=r,u=E.useMemo(()=>uo(d)?d.get():d,[d]);return E.createElement(e,{...c,children:u})}function Dw(e){return uo(e)?e.get():e}function nqe({scrapeMotionValuesFromProps:e,createRenderState:r},n,o,a){return{latestValues:oqe(n,o,a,e),renderState:r()}}function oqe(e,r,n,o){const a={},i=o(e,{});for(const f in i)a[f]=Dw(i[f]);let{initial:s,animate:l}=e;const c=Cw(e),d=bZ(e);r&&d&&!c&&e.inherit!==!1&&(s===void 0&&(s=r.initial),l===void 0&&(l=r.animate));let u=n?n.initial===!1:!1;u=u||s===!1;const h=u?l:s;if(h&&typeof h!="boolean"&&!Sw(h)){const f=Array.isArray(h)?h:[h];for(let g=0;g(r,n)=>{const o=E.useContext(Nw),a=E.useContext(Tw),i=()=>nqe(e,r,o,a);return n?i():Dm(i)},aqe=HZ({scrapeMotionValuesFromProps:eT,createRenderState:aT}),iqe=HZ({scrapeMotionValuesFromProps:AZ,createRenderState:FZ}),sqe=Symbol.for("motionComponentSymbol");function Pm(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function lqe(e,r,n){return E.useCallback(o=>{o&&e.onMount&&e.onMount(o),r&&(o?r.mount(o):r.unmount()),n&&(typeof n=="function"?n(o):Pm(n)&&(n.current=o))},[r])}const VZ=E.createContext({});function cqe(e,r,n,o,a){const{visualElement:i}=E.useContext(Nw),s=E.useContext(rT),l=E.useContext(Tw),c=E.useContext(Hp).reducedMotion,d=E.useRef(null);o=o||s.renderer,!d.current&&o&&(d.current=o(e,{visualState:r,parent:i,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:c}));const u=d.current,h=E.useContext(VZ);u&&!u.projection&&a&&(u.type==="html"||u.type==="svg")&&dqe(d.current,n,a,h);const f=E.useRef(!1);E.useInsertionEffect(()=>{u&&f.current&&u.update(n,l)});const g=n[nZ],b=E.useRef(!!g&&!window.MotionHandoffIsComplete?.(g)&&window.MotionHasOptimisedAnimation?.(g));return tT(()=>{u&&(f.current=!0,window.MotionIsMounted=!0,u.updateFeatures(),u.scheduleRenderMicrotask(),b.current&&u.animationState&&u.animationState.animateChanges())}),E.useEffect(()=>{u&&(!b.current&&u.animationState&&u.animationState.animateChanges(),b.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(g)}),b.current=!1),u.enteringChildren=void 0)}),u}function dqe(e,r,n,o){const{layoutId:a,layout:i,drag:s,dragConstraints:l,layoutScroll:c,layoutRoot:d,layoutCrossfade:u}=r;e.projection=new n(e.latestValues,r["data-framer-portal-id"]?void 0:qZ(e.parent)),e.projection.setOptions({layoutId:a,layout:i,alwaysMeasureLayout:!!s||l&&Pm(l),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:o,crossfade:u,layoutScroll:c,layoutRoot:d})}function qZ(e){if(e)return e.options.allowProjection!==!1?e.projection:qZ(e.parent)}function $w(e,{forwardMotionProps:r=!1}={},n,o){n&&nT(n);const a=iT(e)?iqe:aqe;function i(l,c){let d;const u={...E.useContext(Hp),...l,layoutId:uqe(l)},{isStatic:h}=u,f=KVe(l),g=a(l,h);if(!h&&XC){pqe();const b=hqe(u);d=b.MeasureLayout,f.visualElement=cqe(e,g,u,o,b.ProjectionNode)}return y.jsxs(Nw.Provider,{value:f,children:[d&&f.visualElement?y.jsx(d,{visualElement:f.visualElement,...u}):null,rqe(e,l,lqe(g,f.visualElement,c),g,h,r)]})}i.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const s=E.forwardRef(i);return s[sqe]=e,s}function uqe({layoutId:e}){const r=E.useContext(fy).id;return r&&e!==void 0?r+"-"+e:e}function pqe(e,r){E.useContext(rT).strict}function hqe(e){const{drag:r,layout:n}=Rm;if(!r&&!n)return{};const o={...r,...n};return{MeasureLayout:r?.isEnabled(e)||n?.isEnabled(e)?o.MeasureLayout:void 0,ProjectionNode:o.ProjectionNode}}function fqe(e,r){if(typeof Proxy>"u")return $w;const n=new Map,o=(i,s)=>$w(i,s,e,r),a=(i,s)=>o(i,s);return new Proxy(a,{get:(i,s)=>s==="create"?o:(n.has(s)||n.set(s,$w(s,void 0,e,r)),n.get(s))})}const Ei=fqe(),mqe=(e,r)=>iT(e)?new RZ(r):new EZ(r,{allowProjection:e!==E.Fragment});function UZ(e,r,n,o=0,a=1){const i=Array.from(e).sort((c,d)=>c.sortNodePosition(d)).indexOf(r),s=e.size,l=(s-1)*o;return typeof n=="function"?n(i,s):a===1?i*o:l-i*o}function sT(e,r,n={}){const o=Cm(e,r,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:a=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(a=n.transitionOverride);const i=o?()=>Promise.all(UC(e,o,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:d=0,staggerChildren:u,staggerDirection:h}=a;return gqe(e,r,c,d,u,h,n)}:()=>Promise.resolve(),{when:l}=a;if(l){const[c,d]=l==="beforeChildren"?[i,s]:[s,i];return c().then(()=>d())}else return Promise.all([i(),s(n.delay)])}function gqe(e,r,n=0,o=0,a=0,i=1,s){const l=[];for(const c of e.variantChildren)c.notify("AnimationStart",r),l.push(sT(c,r,{...s,delay:n+(typeof o=="function"?0:o)+UZ(e.variantChildren,c,o,a,i)}).then(()=>c.notify("AnimationComplete",r)));return Promise.all(l)}function yqe(e,r,n={}){e.notify("AnimationStart",r);let o;if(Array.isArray(r)){const a=r.map(i=>sT(e,i,n));o=Promise.all(a)}else if(typeof r=="string")o=sT(e,r,n);else{const a=typeof r=="function"?Cm(e,r,n.custom):r;o=Promise.all(UC(e,a,n))}return o.then(()=>{e.notify("AnimationComplete",r)})}function WZ(e,r){if(!Array.isArray(r))return!1;const n=r.length;if(n!==e.length)return!1;for(let o=0;oPromise.all(r.map(({animation:n,options:o})=>yqe(e,n,o)))}function kqe(e){let r=wqe(e),n=GZ(),o=!0;const a=c=>(d,u)=>{const h=Cm(e,u,c==="exit"?e.presenceContext?.custom:void 0);if(h){const{transition:f,transitionEnd:g,...b}=h;d={...d,...b,...g}}return d};function i(c){r=c(e)}function s(c){const{props:d}=e,u=YZ(e.parent)||{},h=[],f=new Set;let g={},b=1/0;for(let w=0;wb&&T,P=!1;const O=Array.isArray(_)?_:[_];let F=O.reduce(a(k),{});A===!1&&(F={});const{prevResolvedValues:L={}}=C,U={...L,...F},M=I=>{N=!0,f.has(I)&&(P=!0,f.delete(I)),C.needsAnimating[I]=!0;const H=e.getValue(I);H&&(H.liveStyle=!1)};for(const I in U){const H=F[I],q=L[I];if(g.hasOwnProperty(I))continue;let Z=!1;BC(H)&&BC(q)?Z=!WZ(H,q):Z=H!==q,Z?H!=null?M(I):f.add(I):H!==void 0&&f.has(I)?M(I):C.protectedKeys[I]=!0}C.prevProp=_,C.prevResolvedValues=F,C.isActive&&(g={...g,...F}),o&&e.blockInitialAnimation&&(N=!1);const V=R&&D;N&&(!V||P)&&h.push(...O.map(I=>{const H={type:k};if(typeof I=="string"&&o&&!V&&e.manuallyAnimateOnMount&&e.parent){const{parent:q}=e,Z=Cm(q,I);if(q.enteringChildren&&Z){const{delayChildren:W}=Z.transition||{};H.delay=UZ(q.enteringChildren,e,W)}}return{animation:I,options:H}}))}if(f.size){const w={};if(typeof d.initial!="boolean"){const k=Cm(e,Array.isArray(d.initial)?d.initial[0]:d.initial);k&&k.transition&&(w.transition=k.transition)}f.forEach(k=>{const C=e.getBaseTarget(k),_=e.getValue(k);_&&(_.liveStyle=!0),w[k]=C??null}),h.push({animation:w})}let x=!!h.length;return o&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(x=!1),o=!1,x?r(h):Promise.resolve()}function l(c,d){if(n[c].isActive===d)return Promise.resolve();e.variantChildren?.forEach(h=>h.animationState?.setActive(c,d)),n[c].isActive=d;const u=s(c);for(const h in n)n[h].protectedKeys={};return u}return{animateChanges:s,setActive:l,setAnimateFunction:i,getState:()=>n,reset:()=>{n=GZ()}}}function _qe(e,r){return typeof r=="string"?r!==e:Array.isArray(r)?!WZ(r,e):!1}function Vp(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function GZ(){return{animate:Vp(!0),whileInView:Vp(),whileHover:Vp(),whileTap:Vp(),whileDrag:Vp(),whileFocus:Vp(),exit:Vp()}}class Fd{constructor(r){this.isMounted=!1,this.node=r}update(){}}class Eqe extends Fd{constructor(r){super(r),r.animationState||(r.animationState=kqe(r))}updateAnimationControlsSubscription(){const{animate:r}=this.node.getProps();Sw(r)&&(this.unmountControls=r.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:r}=this.node.getProps(),{animate:n}=this.node.prevProps||{};r!==n&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let Sqe=0;class Cqe extends Fd{constructor(){super(...arguments),this.id=Sqe++}update(){if(!this.node.presenceContext)return;const{isPresent:r,onExitComplete:n}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||r===o)return;const a=this.node.animationState.setActive("exit",!r);n&&!r&&a.then(()=>{n(this.id)})}mount(){const{register:r,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),r&&(this.unmount=r(this.id))}unmount(){}}const Tqe={animation:{Feature:Eqe},exit:{Feature:Cqe}};function my(e,r,n,o={passive:!0}){return e.addEventListener(r,n,o),()=>e.removeEventListener(r,n)}function gy(e){return{point:{x:e.pageX,y:e.pageY}}}const Aqe=e=>r=>IC(r)&&e(r,gy(r));function yy(e,r,n,o){return my(e,r,Aqe(n),o)}const XZ=1e-4,Rqe=1-XZ,Nqe=1+XZ,KZ=.01,Dqe=0-KZ,$qe=0+KZ;function Zo(e){return e.max-e.min}function Pqe(e,r,n){return Math.abs(e-r)<=n}function ZZ(e,r,n,o=.5){e.origin=o,e.originPoint=Zr(r.min,r.max,e.origin),e.scale=Zo(n)/Zo(r),e.translate=Zr(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Rqe&&e.scale<=Nqe||isNaN(e.scale))&&(e.scale=1),(e.translate>=Dqe&&e.translate<=$qe||isNaN(e.translate))&&(e.translate=0)}function by(e,r,n,o){ZZ(e.x,r.x,n.x,o?o.originX:void 0),ZZ(e.y,r.y,n.y,o?o.originY:void 0)}function QZ(e,r,n){e.min=n.min+r.min,e.max=e.min+Zo(r)}function Mqe(e,r,n){QZ(e.x,r.x,n.x),QZ(e.y,r.y,n.y)}function JZ(e,r,n){e.min=r.min-n.min,e.max=e.min+Zo(r)}function vy(e,r,n){JZ(e.x,r.x,n.x),JZ(e.y,r.y,n.y)}function Si(e){return[e("x"),e("y")]}const eQ=({current:e})=>e?e.ownerDocument.defaultView:null;class tQ{constructor(r,n,{transformPagePoint:o,contextWindow:a=window,dragSnapToOrigin:i=!1,distanceThreshold:s=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=cT(this.lastMoveEventInfo,this.history),g=this.startEvent!==null,b=$Ve(f.offset,{x:0,y:0})>=this.distanceThreshold;if(!g&&!b)return;const{point:x}=f,{timestamp:w}=xo;this.history.push({...x,timestamp:w});const{onStart:k,onMove:C}=this.handlers;g||(k&&k(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),C&&C(this.lastMoveEvent,f)},this.handlePointerMove=(f,g)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=lT(g,this.transformPagePoint),qr.update(this.updatePoint,!0)},this.handlePointerUp=(f,g)=>{this.end();const{onEnd:b,onSessionEnd:x,resumeAnimation:w}=this.handlers;if(this.dragSnapToOrigin&&w&&w(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const k=cT(f.type==="pointercancel"?this.lastMoveEventInfo:lT(g,this.transformPagePoint),this.history);this.startEvent&&b&&b(f,k),x&&x(f,k)},!IC(r))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=o,this.distanceThreshold=s,this.contextWindow=a||window;const l=gy(r),c=lT(l,this.transformPagePoint),{point:d}=c,{timestamp:u}=xo;this.history=[{...d,timestamp:u}];const{onSessionStart:h}=n;h&&h(r,cT(c,this.history)),this.removeListeners=ry(yy(this.contextWindow,"pointermove",this.handlePointerMove),yy(this.contextWindow,"pointerup",this.handlePointerUp),yy(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(r){this.handlers=r}end(){this.removeListeners&&this.removeListeners(),jd(this.updatePoint)}}function lT(e,r){return r?{point:r(e.point)}:e}function rQ(e,r){return{x:e.x-r.x,y:e.y-r.y}}function cT({point:e},r){return{point:e,delta:rQ(e,nQ(r)),offset:rQ(e,zqe(r)),velocity:Iqe(r,.1)}}function zqe(e){return e[0]}function nQ(e){return e[e.length-1]}function Iqe(e,r){if(e.length<2)return{x:0,y:0};let n=e.length-1,o=null;const a=nQ(e);for(;n>=0&&(o=e[n],!(a.timestamp-o.timestamp>xs(r)));)n--;if(!o)return{x:0,y:0};const i=_i(a.timestamp-o.timestamp);if(i===0)return{x:0,y:0};const s={x:(a.x-o.x)/i,y:(a.y-o.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function Oqe(e,{min:r,max:n},o){return r!==void 0&&en&&(e=o?Zr(n,e,o.max):Math.min(e,n)),e}function oQ(e,r,n){return{min:r!==void 0?e.min+r:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function jqe(e,{top:r,left:n,bottom:o,right:a}){return{x:oQ(e.x,n,a),y:oQ(e.y,r,o)}}function aQ(e,r){let n=r.min-e.min,o=r.max-e.max;return r.max-r.mino?n=wm(r.min,r.max-o,e.min):o>a&&(n=wm(e.min,e.max-a,r.min)),vc(0,1,n)}function Fqe(e,r){const n={};return r.min!==void 0&&(n.min=r.min-e.min),r.max!==void 0&&(n.max=r.max-e.min),n}const dT=.35;function Hqe(e=dT){return e===!1?e=0:e===!0&&(e=dT),{x:iQ(e,"left","right"),y:iQ(e,"top","bottom")}}function iQ(e,r,n){return{min:sQ(e,r),max:sQ(e,n)}}function sQ(e,r){return typeof e=="number"?e:e[r]||0}const Vqe=new WeakMap;class qqe{constructor(r){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=gn(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=r}start(r,{snapToCursor:n=!1,distanceThreshold:o}={}){const{presenceContext:a}=this.visualElement;if(a&&a.isPresent===!1)return;const i=h=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(gy(h).point)},s=(h,f)=>{const{drag:g,dragPropagation:b,onDragStart:x}=this.getProps();if(g&&!b&&(this.openDragLock&&this.openDragLock(),this.openDragLock=RHe(g),!this.openDragLock))return;this.latestPointerEvent=h,this.latestPanInfo=f,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Si(k=>{let C=this.getAxisMotionValue(k).get()||0;if(kl.test(C)){const{projection:_}=this.visualElement;if(_&&_.layout){const T=_.layout.layoutBox[k];T&&(C=Zo(T)*(parseFloat(C)/100))}}this.originPoint[k]=C}),x&&qr.postRender(()=>x(h,f)),HC(this.visualElement,"transform");const{animationState:w}=this.visualElement;w&&w.setActive("whileDrag",!0)},l=(h,f)=>{this.latestPointerEvent=h,this.latestPanInfo=f;const{dragPropagation:g,dragDirectionLock:b,onDirectionLock:x,onDrag:w}=this.getProps();if(!g&&!this.openDragLock)return;const{offset:k}=f;if(b&&this.currentDirection===null){this.currentDirection=Uqe(k),this.currentDirection!==null&&x&&x(this.currentDirection);return}this.updateAxis("x",f.point,k),this.updateAxis("y",f.point,k),this.visualElement.render(),w&&w(h,f)},c=(h,f)=>{this.latestPointerEvent=h,this.latestPanInfo=f,this.stop(h,f),this.latestPointerEvent=null,this.latestPanInfo=null},d=()=>Si(h=>this.getAnimationState(h)==="paused"&&this.getAxisMotionValue(h).animation?.play()),{dragSnapToOrigin:u}=this.getProps();this.panSession=new tQ(r,{onSessionStart:i,onStart:s,onMove:l,onSessionEnd:c,resumeAnimation:d},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:o,contextWindow:eQ(this.visualElement)})}stop(r,n){const o=r||this.latestPointerEvent,a=n||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!a||!o)return;const{velocity:s}=a;this.startAnimation(s);const{onDragEnd:l}=this.getProps();l&&qr.postRender(()=>l(o,a))}cancel(){this.isDragging=!1;const{projection:r,animationState:n}=this.visualElement;r&&(r.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:o}=this.getProps();!o&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(r,n,o){const{drag:a}=this.getProps();if(!o||!Pw(r,a,this.currentDirection))return;const i=this.getAxisMotionValue(r);let s=this.originPoint[r]+o[r];this.constraints&&this.constraints[r]&&(s=Oqe(s,this.constraints[r],this.elastic[r])),i.set(s)}resolveConstraints(){const{dragConstraints:r,dragElastic:n}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,a=this.constraints;r&&Pm(r)?this.constraints||(this.constraints=this.resolveRefConstraints()):r&&o?this.constraints=jqe(o.layoutBox,r):this.constraints=!1,this.elastic=Hqe(n),a!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&Si(i=>{this.constraints!==!1&&this.getAxisMotionValue(i)&&(this.constraints[i]=Fqe(o.layoutBox[i],this.constraints[i]))})}resolveRefConstraints(){const{dragConstraints:r,onMeasureDragConstraints:n}=this.getProps();if(!r||!Pm(r))return!1;const o=r.current,{projection:a}=this.visualElement;if(!a||!a.layout)return!1;const i=uVe(o,a.root,this.visualElement.getTransformPagePoint());let s=Lqe(a.layout.layoutBox,i);if(n){const l=n(lVe(s));this.hasMutatedConstraints=!!l,l&&(s=aZ(l))}return s}startAnimation(r){const{drag:n,dragMomentum:o,dragElastic:a,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:l}=this.getProps(),c=this.constraints||{},d=Si(u=>{if(!Pw(u,n,this.currentDirection))return;let h=c&&c[u]||{};s&&(h={min:0,max:0});const f=a?200:1e6,g=a?40:1e7,b={type:"inertia",velocity:o?r[u]:0,bounceStiffness:f,bounceDamping:g,timeConstant:750,restDelta:1,restSpeed:10,...i,...h};return this.startAxisValueAnimation(u,b)});return Promise.all(d).then(l)}startAxisValueAnimation(r,n){const o=this.getAxisMotionValue(r);return HC(this.visualElement,r),o.start(qC(r,o,0,n,this.visualElement,!1))}stopAnimation(){Si(r=>this.getAxisMotionValue(r).stop())}pauseAnimation(){Si(r=>this.getAxisMotionValue(r).animation?.pause())}getAnimationState(r){return this.getAxisMotionValue(r).animation?.state}getAxisMotionValue(r){const n=`_drag${r.toUpperCase()}`,o=this.visualElement.getProps();return o[n]||this.visualElement.getValue(r,(o.initial?o.initial[r]:void 0)||0)}snapToCursor(r){Si(n=>{const{drag:o}=this.getProps();if(!Pw(n,o,this.currentDirection))return;const{projection:a}=this.visualElement,i=this.getAxisMotionValue(n);if(a&&a.layout){const{min:s,max:l}=a.layout.layoutBox[n];i.set(r[n]-Zr(s,l,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:r,dragConstraints:n}=this.getProps(),{projection:o}=this.visualElement;if(!Pm(n)||!o||!this.constraints)return;this.stopAnimation();const a={x:0,y:0};Si(s=>{const l=this.getAxisMotionValue(s);if(l&&this.constraints!==!1){const c=l.get();a[s]=Bqe({min:c,max:c},this.constraints[s])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",o.root&&o.root.updateScroll(),o.updateLayout(),this.resolveConstraints(),Si(s=>{if(!Pw(s,r,null))return;const l=this.getAxisMotionValue(s),{min:c,max:d}=this.constraints[s];l.set(Zr(c,d,a[s]))})}addListeners(){if(!this.visualElement.current)return;Vqe.set(this.visualElement,this);const r=this.visualElement.current,n=yy(r,"pointerdown",c=>{const{drag:d,dragListener:u=!0}=this.getProps();d&&u&&this.start(c)}),o=()=>{const{dragConstraints:c}=this.getProps();Pm(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:a}=this.visualElement,i=a.addEventListener("measure",o);a&&!a.layout&&(a.root&&a.root.updateScroll(),a.updateLayout()),qr.read(o);const s=my(window,"resize",()=>this.scalePositionWithinConstraints()),l=a.addEventListener("didUpdate",(({delta:c,hasLayoutChanged:d})=>{this.isDragging&&d&&(Si(u=>{const h=this.getAxisMotionValue(u);h&&(this.originPoint[u]+=c[u].translate,h.set(h.get()+c[u].translate))}),this.visualElement.render())}));return()=>{s(),n(),i(),l&&l()}}getProps(){const r=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:o=!1,dragPropagation:a=!1,dragConstraints:i=!1,dragElastic:s=dT,dragMomentum:l=!0}=r;return{...r,drag:n,dragDirectionLock:o,dragPropagation:a,dragConstraints:i,dragElastic:s,dragMomentum:l}}}function Pw(e,r,n){return(r===!0||r===e)&&(n===null||n===e)}function Uqe(e,r=10){let n=null;return Math.abs(e.y)>r?n="y":Math.abs(e.x)>r&&(n="x"),n}class Wqe extends Fd{constructor(r){super(r),this.removeGroupControls=ki,this.removeListeners=ki,this.controls=new qqe(r)}mount(){const{dragControls:r}=this.node.getProps();r&&(this.removeGroupControls=r.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ki}unmount(){this.removeGroupControls(),this.removeListeners()}}const lQ=e=>(r,n)=>{e&&qr.postRender(()=>e(r,n))};class Yqe extends Fd{constructor(){super(...arguments),this.removePointerDownListener=ki}onPointerDown(r){this.session=new tQ(r,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:eQ(this.node)})}createPanHandlers(){const{onPanSessionStart:r,onPanStart:n,onPan:o,onPanEnd:a}=this.node.getProps();return{onSessionStart:lQ(r),onStart:lQ(n),onMove:o,onEnd:(i,s)=>{delete this.session,a&&qr.postRender(()=>a(i,s))}}}mount(){this.removePointerDownListener=yy(this.node.current,"pointerdown",r=>this.onPointerDown(r))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Mw={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function cQ(e,r){return r.max===r.min?0:e/(r.max-r.min)*100}const xy={correct:(e,r)=>{if(!r.target)return e;if(typeof e=="string")if($t.test(e))e=parseFloat(e);else return e;const n=cQ(e,r.target.x),o=cQ(e,r.target.y);return`${n}% ${o}%`}},Gqe={correct:(e,{treeScale:r,projectionDelta:n})=>{const o=e,a=Bd.parse(e);if(a.length>5)return o;const i=Bd.createTransformer(e),s=typeof a[0]!="number"?1:0,l=n.x.scale*r.x,c=n.y.scale*r.y;a[0+s]/=l,a[1+s]/=c;const d=Zr(l,c,.5);return typeof a[2+s]=="number"&&(a[2+s]/=d),typeof a[3+s]=="number"&&(a[3+s]/=d),i(a)}};let uT=!1;class Xqe extends E.Component{componentDidMount(){const{visualElement:r,layoutGroup:n,switchLayoutGroup:o,layoutId:a}=this.props,{projection:i}=r;gVe(Kqe),i&&(n.group&&n.group.add(i),o&&o.register&&a&&o.register(i),uT&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),Mw.hasEverUpdated=!0}getSnapshotBeforeUpdate(r){const{layoutDependency:n,visualElement:o,drag:a,isPresent:i}=this.props,{projection:s}=o;return s&&(s.isPresent=i,uT=!0,a||r.layoutDependency!==n||n===void 0||r.isPresent!==i?s.willUpdate():this.safeToRemove(),r.isPresent!==i&&(i?s.promote():s.relegate()||qr.postRender(()=>{const l=s.getStack();(!l||!l.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:r}=this.props.visualElement;r&&(r.root.didUpdate(),zC.postRender(()=>{!r.currentAnimation&&r.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:r,layoutGroup:n,switchLayoutGroup:o}=this.props,{projection:a}=r;uT=!0,a&&(a.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(a),o&&o.deregister&&o.deregister(a))}safeToRemove(){const{safeToRemove:r}=this.props;r&&r()}render(){return null}}function dQ(e){const[r,n]=MZ(),o=E.useContext(fy);return y.jsx(Xqe,{...e,layoutGroup:o,switchLayoutGroup:E.useContext(VZ),isPresent:r,safeToRemove:n})}const Kqe={borderRadius:{...xy,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:xy,borderTopRightRadius:xy,borderBottomLeftRadius:xy,borderBottomRightRadius:xy,boxShadow:Gqe},Zqe=(e,r)=>e.depth-r.depth;class Qqe{constructor(){this.children=[],this.isDirty=!1}add(r){QS(this.children,r),this.isDirty=!0}remove(r){gw(this.children,r),this.isDirty=!0}forEach(r){this.isDirty&&this.children.sort(Zqe),this.isDirty=!1,this.children.forEach(r)}}const uQ=["TopLeft","TopRight","BottomLeft","BottomRight"],Jqe=uQ.length,pQ=e=>typeof e=="string"?parseFloat(e):e,hQ=e=>typeof e=="number"||$t.test(e);function eUe(e,r,n,o,a,i){a?(e.opacity=Zr(0,n.opacity??1,tUe(o)),e.opacityExit=Zr(r.opacity??1,0,rUe(o))):i&&(e.opacity=Zr(r.opacity??1,n.opacity??1,o));for(let s=0;sor?1:n(wm(e,r,o))}function gQ(e,r){e.min=r.min,e.max=r.max}function Ci(e,r){gQ(e.x,r.x),gQ(e.y,r.y)}function yQ(e,r){e.translate=r.translate,e.scale=r.scale,e.originPoint=r.originPoint,e.origin=r.origin}function bQ(e,r,n,o,a){return e-=r,e=_w(e,1/n,o),a!==void 0&&(e=_w(e,1/a,o)),e}function nUe(e,r=0,n=1,o=.5,a,i=e,s=e){if(kl.test(r)&&(r=parseFloat(r),r=Zr(s.min,s.max,r/100)-s.min),typeof r!="number")return;let l=Zr(i.min,i.max,o);e===i&&(l-=r),e.min=bQ(e.min,r,n,l,a),e.max=bQ(e.max,r,n,l,a)}function vQ(e,r,[n,o,a],i,s){nUe(e,r[n],r[o],r[a],r.scale,i,s)}const oUe=["x","scaleX","originX"],aUe=["y","scaleY","originY"];function xQ(e,r,n,o){vQ(e.x,r,oUe,n?n.x:void 0,o?o.x:void 0),vQ(e.y,r,aUe,n?n.y:void 0,o?o.y:void 0)}function wQ(e){return e.translate===0&&e.scale===1}function kQ(e){return wQ(e.x)&&wQ(e.y)}function _Q(e,r){return e.min===r.min&&e.max===r.max}function iUe(e,r){return _Q(e.x,r.x)&&_Q(e.y,r.y)}function EQ(e,r){return Math.round(e.min)===Math.round(r.min)&&Math.round(e.max)===Math.round(r.max)}function SQ(e,r){return EQ(e.x,r.x)&&EQ(e.y,r.y)}function CQ(e){return Zo(e.x)/Zo(e.y)}function TQ(e,r){return e.translate===r.translate&&e.scale===r.scale&&e.originPoint===r.originPoint}class sUe{constructor(){this.members=[]}add(r){QS(this.members,r),r.scheduleRender()}remove(r){if(gw(this.members,r),r===this.prevLead&&(this.prevLead=void 0),r===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(r){const n=this.members.findIndex(a=>r===a);if(n===0)return!1;let o;for(let a=n;a>=0;a--){const i=this.members[a];if(i.isPresent!==!1){o=i;break}}return o?(this.promote(o),!0):!1}promote(r,n){const o=this.lead;if(r!==o&&(this.prevLead=o,this.lead=r,r.show(),o)){o.instance&&o.scheduleRender(),r.scheduleRender(),r.resumeFrom=o,n&&(r.resumeFrom.preserveOpacity=!0),o.snapshot&&(r.snapshot=o.snapshot,r.snapshot.latestValues=o.animationValues||o.latestValues),r.root&&r.root.isUpdating&&(r.isLayoutDirty=!0);const{crossfade:a}=r.options;a===!1&&o.hide()}}exitAnimationComplete(){this.members.forEach(r=>{const{options:n,resumingFrom:o}=r;n.onExitComplete&&n.onExitComplete(),o&&o.options.onExitComplete&&o.options.onExitComplete()})}scheduleRender(){this.members.forEach(r=>{r.instance&&r.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function lUe(e,r,n){let o="";const a=e.x.translate/r.x,i=e.y.translate/r.y,s=n?.z||0;if((a||i||s)&&(o=`translate3d(${a}px, ${i}px, ${s}px) `),(r.x!==1||r.y!==1)&&(o+=`scale(${1/r.x}, ${1/r.y}) `),n){const{transformPerspective:d,rotate:u,rotateX:h,rotateY:f,skewX:g,skewY:b}=n;d&&(o=`perspective(${d}px) ${o}`),u&&(o+=`rotate(${u}deg) `),h&&(o+=`rotateX(${h}deg) `),f&&(o+=`rotateY(${f}deg) `),g&&(o+=`skewX(${g}deg) `),b&&(o+=`skewY(${b}deg) `)}const l=e.x.scale*r.x,c=e.y.scale*r.y;return(l!==1||c!==1)&&(o+=`scale(${l}, ${c})`),o||"none"}const pT=["","X","Y","Z"],cUe=1e3;let dUe=0;function hT(e,r,n,o){const{latestValues:a}=r;a[e]&&(n[e]=a[e],r.setStaticValue(e,0),o&&(o[e]=0))}function AQ(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:r}=e.options;if(!r)return;const n=oZ(r);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:a,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",qr,!(a||i))}const{parent:o}=e;o&&!o.hasCheckedOptimisedAppear&&AQ(o)}function RQ({attachResizeListener:e,defaultParent:r,measureScroll:n,checkIsScrollRoot:o,resetTransform:a}){return class{constructor(i={},s=r?.()){this.id=dUe++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(hUe),this.nodes.forEach(yUe),this.nodes.forEach(bUe),this.nodes.forEach(fUe)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=i,this.root=s?s.root||s:this,this.path=s?[...s.path,s]:[],this.parent=s,this.depth=s?s.depth+1:0;for(let l=0;lthis.root.updateBlockedByResize=!1;qr.read(()=>{u=window.innerWidth}),e(i,()=>{const f=window.innerWidth;f!==u&&(u=f,this.root.updateBlockedByResize=!0,d&&d(),d=DVe(h,250),Mw.hasAnimatedSinceResize&&(Mw.hasAnimatedSinceResize=!1,this.nodes.forEach($Q)))})}s&&this.root.registerSharedNode(s,this),this.options.animate!==!1&&c&&(s||l)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:u,hasRelativeLayoutChanged:h,layout:f})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||c.getDefaultTransition()||_Ue,{onLayoutAnimationStart:b,onLayoutAnimationComplete:x}=c.getProps(),w=!this.targetLayout||!SQ(this.targetLayout,f),k=!u&&h;if(this.options.layoutRoot||this.resumeFrom||k||u&&(w||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const C={...$C(g,"layout"),onPlay:b,onComplete:x};(c.shouldReduceMotion||this.options.layoutRoot)&&(C.delay=0,C.type=!1),this.startAnimation(C),this.setAnimationOrigin(d,k)}else u||$Q(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=f})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const i=this.getStack();i&&i.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),jd(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(vUe),this.animationId++)}getTransformTemplate(){const{visualElement:i}=this.options;return i&&i.getProps().transformTemplate}willUpdate(i=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&AQ(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Zo(this.snapshot.measuredBox.x)&&!Zo(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l{const T=_/1e3;PQ(u.x,i.x,T),PQ(u.y,i.y,T),this.setTargetDelta(u),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(vy(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),wUe(this.relativeTarget,this.relativeTargetOrigin,h,T),C&&iUe(this.relativeTarget,C)&&(this.isProjectionDirty=!1),C||(C=gn()),Ci(C,this.relativeTarget)),b&&(this.animationValues=d,eUe(d,c,this.latestValues,T,k,w)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=T},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(i){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(jd(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=qr.update(()=>{Mw.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Bp(0)),this.currentAnimation=NZ(this.motionValue,[0,1e3],{...i,velocity:0,isSync:!0,onUpdate:s=>{this.mixTargetDelta(s),i.onUpdate&&i.onUpdate(s)},onStop:()=>{},onComplete:()=>{i.onComplete&&i.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const i=this.getStack();i&&i.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(cUe),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const i=this.getLead();let{targetWithTransforms:s,target:l,layout:c,latestValues:d}=i;if(!(!s||!l||!c)){if(this!==i&&this.layout&&c&&jQ(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||gn();const u=Zo(this.layout.layoutBox.x);l.x.min=i.target.x.min,l.x.max=l.x.min+u;const h=Zo(this.layout.layoutBox.y);l.y.min=i.target.y.min,l.y.max=l.y.min+h}Ci(s,l),Am(s,d),by(this.projectionDeltaWithTransform,this.layoutCorrected,s,d)}}registerSharedNode(i,s){this.sharedNodes.has(i)||this.sharedNodes.set(i,new sUe),this.sharedNodes.get(i).add(s);const l=s.options.initialPromotionConfig;s.promote({transition:l?l.transition:void 0,preserveFollowOpacity:l&&l.shouldPreserveFollowOpacity?l.shouldPreserveFollowOpacity(s):void 0})}isLead(){const i=this.getStack();return i?i.lead===this:!0}getLead(){const{layoutId:i}=this.options;return i?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:i}=this.options;return i?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:i}=this.options;if(i)return this.root.sharedNodes.get(i)}promote({needsReset:i,transition:s,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),i&&(this.projectionDelta=void 0,this.needsReset=!0),s&&this.setOptions({transition:s})}relegate(){const i=this.getStack();return i?i.relegate(this):!1}resetSkewAndRotation(){const{visualElement:i}=this.options;if(!i)return;let s=!1;const{latestValues:l}=i;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(s=!0),!s)return;const c={};l.z&&hT("z",i,c,this.animationValues);for(let d=0;di.currentAnimation?.stop()),this.root.nodes.forEach(NQ),this.root.sharedNodes.clear()}}}function uUe(e){e.updateLayout()}function pUe(e){const r=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&r&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:o}=e.layout,{animationType:a}=e.options,i=r.source!==e.layout.source;a==="size"?Si(u=>{const h=i?r.measuredBox[u]:r.layoutBox[u],f=Zo(h);h.min=n[u].min,h.max=h.min+f}):jQ(a,r.layoutBox,n)&&Si(u=>{const h=i?r.measuredBox[u]:r.layoutBox[u],f=Zo(n[u]);h.max=h.min+f,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[u].max=e.relativeTarget[u].min+f)});const s=Nm();by(s,n,r.layoutBox);const l=Nm();i?by(l,e.applyTransform(o,!0),r.measuredBox):by(l,n,r.layoutBox);const c=!kQ(s);let d=!1;if(!e.resumeFrom){const u=e.getClosestProjectingParent();if(u&&!u.resumeFrom){const{snapshot:h,layout:f}=u;if(h&&f){const g=gn();vy(g,r.layoutBox,h.layoutBox);const b=gn();vy(b,n,f.layoutBox),SQ(g,b)||(d=!0),u.options.layoutRoot&&(e.relativeTarget=b,e.relativeTargetOrigin=g,e.relativeParent=u)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:r,delta:l,layoutDelta:s,hasLayoutChanged:c,hasRelativeLayoutChanged:d})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function hUe(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function fUe(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function mUe(e){e.clearSnapshot()}function NQ(e){e.clearMeasurements()}function DQ(e){e.isLayoutDirty=!1}function gUe(e){const{visualElement:r}=e.options;r&&r.getProps().onBeforeLayoutMeasure&&r.notify("BeforeLayoutMeasure"),e.resetTransform()}function $Q(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function yUe(e){e.resolveTargetDelta()}function bUe(e){e.calcProjection()}function vUe(e){e.resetSkewAndRotation()}function xUe(e){e.removeLeadSnapshot()}function PQ(e,r,n){e.translate=Zr(r.translate,0,n),e.scale=Zr(r.scale,1,n),e.origin=r.origin,e.originPoint=r.originPoint}function MQ(e,r,n,o){e.min=Zr(r.min,n.min,o),e.max=Zr(r.max,n.max,o)}function wUe(e,r,n,o){MQ(e.x,r.x,n.x,o),MQ(e.y,r.y,n.y,o)}function kUe(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const _Ue={duration:.45,ease:[.4,0,.1,1]},zQ=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),IQ=zQ("applewebkit/")&&!zQ("chrome/")?Math.round:ki;function OQ(e){e.min=IQ(e.min),e.max=IQ(e.max)}function EUe(e){OQ(e.x),OQ(e.y)}function jQ(e,r,n){return e==="position"||e==="preserve-aspect"&&!Pqe(CQ(r),CQ(n),.2)}function SUe(e){return e!==e.root&&e.scroll?.wasRoot}const CUe=RQ({attachResizeListener:(e,r)=>my(e,"resize",r),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),fT={current:void 0},LQ=RQ({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!fT.current){const e=new CUe({});e.mount(window),e.setOptions({layoutScroll:!0}),fT.current=e}return fT.current},resetTransform:(e,r)=>{e.style.transform=r!==void 0?r:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),TUe={pan:{Feature:Yqe},drag:{Feature:Wqe,ProjectionNode:LQ,MeasureLayout:dQ}};function BQ(e,r,n){const{props:o}=e;e.animationState&&o.whileHover&&e.animationState.setActive("whileHover",n==="Start");const a="onHover"+n,i=o[a];i&&qr.postRender(()=>i(r,gy(r)))}class AUe extends Fd{mount(){const{current:r}=this.node;r&&(this.unmount=NHe(r,(n,o)=>(BQ(this.node,o,"Start"),a=>BQ(this.node,a,"End"))))}unmount(){}}class RUe extends Fd{constructor(){super(...arguments),this.isActive=!1}onFocus(){let r=!1;try{r=this.node.current.matches(":focus-visible")}catch{r=!0}!r||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=ry(my(this.node.current,"focus",()=>this.onFocus()),my(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function FQ(e,r,n){const{props:o}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&o.whileTap&&e.animationState.setActive("whileTap",n==="Start");const a="onTap"+(n==="End"?"":n),i=o[a];i&&qr.postRender(()=>i(r,gy(r)))}class NUe extends Fd{mount(){const{current:r}=this.node;r&&(this.unmount=MHe(r,(n,o)=>(FQ(this.node,o,"Start"),(a,{success:i})=>FQ(this.node,a,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const mT=new WeakMap,gT=new WeakMap,DUe=e=>{const r=mT.get(e.target);r&&r(e)},$Ue=e=>{e.forEach(DUe)};function PUe({root:e,...r}){const n=e||document;gT.has(n)||gT.set(n,{});const o=gT.get(n),a=JSON.stringify(r);return o[a]||(o[a]=new IntersectionObserver($Ue,{root:e,...r})),o[a]}function MUe(e,r,n){const o=PUe(r);return mT.set(e,n),o.observe(e),()=>{mT.delete(e),o.unobserve(e)}}const zUe={some:0,all:1};class IUe extends Fd{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:r={}}=this.node.getProps(),{root:n,margin:o,amount:a="some",once:i}=r,s={root:n?n.current:void 0,rootMargin:o,threshold:typeof a=="number"?a:zUe[a]},l=c=>{const{isIntersecting:d}=c;if(this.isInView===d||(this.isInView=d,i&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:u,onViewportLeave:h}=this.node.getProps(),f=d?u:h;f&&f(c)};return MUe(this.node.current,s,l)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:r,prevProps:n}=this.node;["amount","margin","root"].some(OUe(r,n))&&this.startObserver()}unmount(){}}function OUe({viewport:e={}},{viewport:r={}}={}){return n=>e[n]!==r[n]}const jUe={inView:{Feature:IUe},tap:{Feature:NUe},focus:{Feature:RUe},hover:{Feature:AUe}},LUe={layout:{ProjectionNode:LQ,MeasureLayout:dQ}},BUe={renderer:mqe,...Tqe,...jUe},FUe={...BUe,...TUe,...LUe};function HQ(e){const r=Dm(()=>Bp(e)),{isStatic:n}=E.useContext(Hp);if(n){const[,o]=E.useState(e);E.useEffect(()=>r.on("change",o),[])}return r}function HUe(){!KC.current&&yZ();const[e]=E.useState(Ew.current);return e}function VQ(){const e=HUe(),{reducedMotion:r}=E.useContext(Hp);return r==="never"?!1:r==="always"?!0:e}class VUe{constructor(){this.componentControls=new Set}subscribe(r){return this.componentControls.add(r),()=>this.componentControls.delete(r)}start(r,n){this.componentControls.forEach(o=>{o.start(r.nativeEvent||r,n)})}cancel(){this.componentControls.forEach(r=>{r.cancel()})}stop(){this.componentControls.forEach(r=>{r.stop()})}}const qUe=()=>new VUe;function UUe(){return Dm(qUe)}const yT=E.createContext(null);yT.displayName="ElementDetailsActorContext";const WUe=()=>{const e=E.useContext(yT);if(e===null)throw new Error("ElementDetailsActorRef is not provided");return e},ks=(e,r,n)=>{const o=a=>({[e]:"__ignore__",...r,...np(a)});return{recipeFn:(a,i=!0)=>{const s=_F({conditions:{shift:AF,finalize:TF,breakpoints:{keys:["base","xs","sm","md","lg","xl"]}},utility:{toHash:(c,d)=>d(c.join(":")),transform:(c,d)=>(bEe(e,n,a,c),d==="__ignore__"?{className:e}:(d=ME(d),{className:`${e}--${c}_${d}`}))}}),l=o(a);if(i){const c=BE(n,l);return et(s(l),be(c))}return s(l)},getVariantProps:o,__getCompoundVariantCss__:a=>BE(n,o(a))}},wc=(e,r)=>{if(e&&!r)return e;if(!e&&r)return r;const n=(...i)=>et(e(...i),r(...i)),o=jE(e.variantKeys,r.variantKeys),a=o.reduce((i,s)=>(i[s]=jE(e.variantMap[s],r.variantMap[s]),i),{});return Object.assign(n,{__recipe__:!0,__name__:`${e.__name__} ${r.__name__}`,raw:i=>i,variantKeys:o,variantMap:a,splitVariantProps(i){return oo(i,o)}})},bT=ks("action-btn",{size:"md",radius:"md",variant:"filled"},[]),qQ={variant:["transparent","filled"],size:["sm","md"],radius:["sm","md"]},UQ=Object.keys(qQ),zw=Object.assign(go(bT.recipeFn),{__recipe__:!0,__name__:"actionBtn",__getCompoundVariantCss__:bT.__getCompoundVariantCss__,raw:e=>e,variantKeys:UQ,variantMap:qQ,merge(e){return wc(this,e)},splitVariantProps(e){return oo(e,UQ)},getVariantProps:bT.getVariantProps}),vT=ks("likec4-compound-node",{},[]),WQ={isTransparent:["false","true"],inverseColor:["true","false"],borderStyle:["solid","dashed","dotted","none"]},YQ=Object.keys(WQ),YUe=Object.assign(go(vT.recipeFn),{__recipe__:!0,__name__:"compoundNode",__getCompoundVariantCss__:vT.__getCompoundVariantCss__,raw:e=>e,variantKeys:YQ,variantMap:WQ,merge(e){return wc(this,e)},splitVariantProps(e){return oo(e,YQ)},getVariantProps:vT.getVariantProps}),xT=ks("likec4-edge-action-btn",{},[]),GQ={},XQ=Object.keys(GQ),GUe=Object.assign(go(xT.recipeFn),{__recipe__:!0,__name__:"edgeActionBtn",__getCompoundVariantCss__:xT.__getCompoundVariantCss__,raw:e=>e,variantKeys:XQ,variantMap:GQ,merge(e){return wc(this,e)},splitVariantProps(e){return oo(e,XQ)},getVariantProps:xT.getVariantProps}),wT=ks("likec4-element-node-data",{},[]),KQ={},ZQ=Object.keys(KQ),XUe=Object.assign(go(wT.recipeFn),{__recipe__:!0,__name__:"elementNodeData",__getCompoundVariantCss__:wT.__getCompoundVariantCss__,raw:e=>e,variantKeys:ZQ,variantMap:KQ,merge(e){return wc(this,e)},splitVariantProps(e){return oo(e,ZQ)},getVariantProps:wT.getVariantProps}),kT=ks("likec4-element-shape",{},[]),QQ={shapetype:["html","svg"]},JQ=Object.keys(QQ),eJ=Object.assign(go(kT.recipeFn),{__recipe__:!0,__name__:"elementShapeRecipe",__getCompoundVariantCss__:kT.__getCompoundVariantCss__,raw:e=>e,variantKeys:JQ,variantMap:QQ,merge(e){return wc(this,e)},splitVariantProps(e){return oo(e,JQ)},getVariantProps:kT.getVariantProps}),_T=ks("likec4-tag",{autoTextColor:!1},[]),tJ={autoTextColor:["false","true"]},rJ=Object.keys(tJ),KUe=Object.assign(go(_T.recipeFn),{__recipe__:!0,__name__:"likec4tag",__getCompoundVariantCss__:_T.__getCompoundVariantCss__,raw:e=>e,variantKeys:rJ,variantMap:tJ,merge(e){return wc(this,e)},splitVariantProps(e){return oo(e,rJ)},getVariantProps:_T.getVariantProps}),ET=ks("likec4-markdown-block",{uselikec4palette:!1,value:"markdown"},[]),nJ={uselikec4palette:["true","false"],value:["markdown","plaintext"]},oJ=Object.keys(nJ),ZUe=Object.assign(go(ET.recipeFn),{__recipe__:!0,__name__:"markdownBlock",__getCompoundVariantCss__:ET.__getCompoundVariantCss__,raw:e=>e,variantKeys:oJ,variantMap:nJ,merge(e){return wc(this,e)},splitVariantProps(e){return oo(e,oJ)},getVariantProps:ET.getVariantProps}),ST=ks("likec4-navigation-panel-icon",{variant:"default",type:"default"},[{type:"warning",variant:"filled",css:{backgroundColor:{base:"likec4.panel.action.warning.bg",_hover:"likec4.panel.action.warning.bg.hover"}}}]),aJ={variant:["default","filled"],type:["default","warning"]},iJ=Object.keys(aJ),CT=Object.assign(go(ST.recipeFn),{__recipe__:!0,__name__:"navigationPanelActionIcon",__getCompoundVariantCss__:ST.__getCompoundVariantCss__,raw:e=>e,variantKeys:iJ,variantMap:aJ,merge(e){return wc(this,e)},splitVariantProps(e){return oo(e,iJ)},getVariantProps:ST.getVariantProps}),TT=ks("likec4-overlay",{fullscreen:!1,withBackdrop:!0},[]),sJ={fullscreen:["false","true"],withBackdrop:["false","true"]},lJ=Object.keys(sJ),QUe=Object.assign(go(TT.recipeFn),{__recipe__:!0,__name__:"overlay",__getCompoundVariantCss__:TT.__getCompoundVariantCss__,raw:e=>e,variantKeys:lJ,variantMap:sJ,merge(e){return wc(this,e)},splitVariantProps(e){return oo(e,lJ)},getVariantProps:TT.getVariantProps}),cJ={pointerEvents:"all",isStepEdge:!1,cursor:"default"},JUe=[],eWe=[["root","likec4-edge-label__root"],["stepNumber","likec4-edge-label__stepNumber"],["labelContents","likec4-edge-label__labelContents"],["labelText","likec4-edge-label__labelText"],["labelTechnology","likec4-edge-label__labelTechnology"]],tWe=eWe.map(([e,r])=>[e,ks(r,cJ,OE(JUe,e))]),rWe=go((e={})=>Object.fromEntries(tWe.map(([r,n])=>[r,n.recipeFn(e)]))),dJ=["pointerEvents","cursor","isStepEdge"],nWe=e=>({...cJ,...np(e)}),oWe=Object.assign(rWe,{__recipe__:!1,__name__:"edgeLabel",raw:e=>e,classNameMap:{},variantKeys:dJ,variantMap:{pointerEvents:["none","all"],cursor:["pointer","default"],isStepEdge:["false","true"]},splitVariantProps(e){return oo(e,dJ)},getVariantProps:nWe}),uJ={truncateLabel:!1},aWe=[],iWe=[["root","likec4-navlink__root"],["body","likec4-navlink__body"],["section","likec4-navlink__section"],["label","likec4-navlink__label"],["description","likec4-navlink__description"]],sWe=iWe.map(([e,r])=>[e,ks(r,uJ,OE(aWe,e))]),lWe=go((e={})=>Object.fromEntries(sWe.map(([r,n])=>[r,n.recipeFn(e)]))),pJ=["truncateLabel"],cWe=e=>({...uJ,...np(e)}),dWe=Object.assign(lWe,{__recipe__:!1,__name__:"navigationLink",raw:e=>e,classNameMap:{},variantKeys:pJ,variantMap:{truncateLabel:["true","false"]},splitVariantProps(e){return oo(e,pJ)},getVariantProps:cWe});function kt(e){const r=E.useRef(e);r.current=e;const n=E.useRef(null);return n.current==null&&(n.current=((...o)=>r.current?.(...o))),n.current}function hJ(){return Bf()}function Iw(e,r){return qt(kt(e),r??an)}function AT(){return Ar()}const uWe=e=>Math.round(e.transform[2]*100)/100;function pWe(){return qt(uWe)}const hWe=e=>e.transform[2]<.2;function fWe(){return qt(hWe)}const{abs:wy,cos:kc,sin:Mm,acos:mWe,atan2:ky,sqrt:Hd,pow:Ti}=Math;function _y(e){return e<0?-Ti(-e,.3333333333333333):Ti(e,.3333333333333333)}const fJ=Math.PI,Ow=2*fJ,Vd=fJ/2,gWe=1e-6,RT=Number.MAX_SAFE_INTEGER||9007199254740991,NT=Number.MIN_SAFE_INTEGER||-9007199254740991,yWe={x:0,y:0,z:0},Ye={Tvalues:[-.06405689286260563,.06405689286260563,-.1911188674736163,.1911188674736163,-.3150426796961634,.3150426796961634,-.4337935076260451,.4337935076260451,-.5454214713888396,.5454214713888396,-.6480936519369755,.6480936519369755,-.7401241915785544,.7401241915785544,-.820001985973903,.820001985973903,-.8864155270044011,.8864155270044011,-.9382745520027328,.9382745520027328,-.9747285559713095,.9747285559713095,-.9951872199970213,.9951872199970213],Cvalues:[.12793819534675216,.12793819534675216,.1258374563468283,.1258374563468283,.12167047292780339,.12167047292780339,.1155056680537256,.1155056680537256,.10744427011596563,.10744427011596563,.09761865210411388,.09761865210411388,.08619016153195327,.08619016153195327,.0733464814110803,.0733464814110803,.05929858491543678,.05929858491543678,.04427743881741981,.04427743881741981,.028531388628933663,.028531388628933663,.0123412297999872,.0123412297999872],arcfn:function(e,r){const n=r(e);let o=n.x*n.x+n.y*n.y;return typeof n.z<"u"&&(o+=n.z*n.z),Hd(o)},compute:function(e,r,n){if(e===0)return r[0].t=0,r[0];const o=r.length-1;if(e===1)return r[o].t=1,r[o];const a=1-e;let i=r;if(o===0)return r[0].t=e,r[0];if(o===1){const l={x:a*i[0].x+e*i[1].x,y:a*i[0].y+e*i[1].y,t:e};return n&&(l.z=a*i[0].z+e*i[1].z),l}if(o<4){let l=a*a,c=e*e,d,u,h,f=0;o===2?(i=[i[0],i[1],i[2],yWe],d=l,u=a*e*2,h=c):o===3&&(d=l*a,u=l*e*3,h=a*c*3,f=e*c);const g={x:d*i[0].x+u*i[1].x+h*i[2].x+f*i[3].x,y:d*i[0].y+u*i[1].y+h*i[2].y+f*i[3].y,t:e};return n&&(g.z=d*i[0].z+u*i[1].z+h*i[2].z+f*i[3].z),g}const s=JSON.parse(JSON.stringify(r));for(;s.length>1;){for(let l=0;l1;a--,i--){const s=[];for(let l=0,c;l"u")e=.5;else if(e===0||e===1)return e;const n=Ti(e,r)+Ti(1-e,r),o=n-1;return wy(o/n)},projectionratio:function(e,r){if(r!==2&&r!==3)return!1;if(typeof e>"u")e=.5;else if(e===0||e===1)return e;const n=Ti(1-e,r),o=Ti(e,r)+n;return n/o},lli8:function(e,r,n,o,a,i,s,l){const c=(e*o-r*n)*(a-s)-(e-n)*(a*l-i*s),d=(e*o-r*n)*(i-l)-(r-o)*(a*l-i*s),u=(e-n)*(i-l)-(r-o)*(a-s);return u==0?!1:{x:c/u,y:d/u}},lli4:function(e,r,n,o){const a=e.x,i=e.y,s=r.x,l=r.y,c=n.x,d=n.y,u=o.x,h=o.y;return Ye.lli8(a,i,s,l,c,d,u,h)},lli:function(e,r){return Ye.lli4(e,e.c,r,r.c)},makeline:function(e,r){return new Qr(e.x,e.y,(e.x+r.x)/2,(e.y+r.y)/2,r.x,r.y)},findbbox:function(e){let r=RT,n=RT,o=NT,a=NT;return e.forEach(function(i){const s=i.bbox();r>s.x.min&&(r=s.x.min),n>s.y.min&&(n=s.y.min),o0&&(u.c1=c,u.c2=d,u.s1=e,u.s2=n,i.push(u))})}),i},makeshape:function(e,r,n){const o=r.points.length,a=e.points.length,i=Ye.makeline(r.points[o-1],e.points[0]),s=Ye.makeline(e.points[a-1],r.points[0]),l={startcap:i,forward:e,back:r,endcap:s,bbox:Ye.findbbox([i,e,r,s])};return l.intersections=function(c){return Ye.shapeintersections(l,l.bbox,c,c.bbox,n)},l},getminmax:function(e,r,n){if(!n)return{min:0,max:0};let o=RT,a=NT,i,s;n.indexOf(0)===-1&&(n=[0].concat(n)),n.indexOf(1)===-1&&n.push(1);for(let l=0,c=n.length;la&&(a=s[r]);return{min:o,mid:(o+a)/2,max:a,size:a-o}},align:function(e,r){const n=r.p1.x,o=r.p1.y,a=-ky(r.p2.y-o,r.p2.x-n),i=function(s){return{x:(s.x-n)*kc(a)-(s.y-o)*Mm(a),y:(s.x-n)*Mm(a)+(s.y-o)*kc(a)}};return e.map(i)},roots:function(e,r){r=r||{p1:{x:0,y:0},p2:{x:1,y:0}};const n=e.length-1,o=Ye.align(e,r),a=function(D){return 0<=D&&D<=1};if(n===2){const D=o[0].y,N=o[1].y,P=o[2].y,O=D-2*N+P;if(O!==0){const F=-Hd(N*N-D*P),L=-D+N,U=-(F+L)/O,M=-(-F+L)/O;return[U,M].filter(a)}else if(N!==P&&O===0)return[(2*N-P)/(2*N-2*P)].filter(a);return[]}const i=o[0].y,s=o[1].y,l=o[2].y,c=o[3].y;let d=-i+3*s-3*l+c,u=3*i-6*s+3*l,h=-3*i+3*s,f=i;if(Ye.approximately(d,0)){if(Ye.approximately(u,0))return Ye.approximately(h,0)?[]:[-f/h].filter(a);const D=Hd(h*h-4*u*f),N=2*u;return[(D-h)/N,(-h-D)/N].filter(a)}u/=d,h/=d,f/=d;const g=(3*h-u*u)/3,b=g/3,x=(2*u*u*u-9*u*h+27*f)/27,w=x/2,k=w*w+b*b*b;let C,_,T,A,R;if(k<0){const D=-g/3,N=D*D*D,P=Hd(N),O=-x/(2*P),F=O<-1?-1:O>1?1:O,L=mWe(F),U=_y(P),M=2*U;return T=M*kc(L/3)-u/3,A=M*kc((L+Ow)/3)-u/3,R=M*kc((L+2*Ow)/3)-u/3,[T,A,R].filter(a)}else{if(k===0)return C=w<0?_y(-w):-_y(w),T=2*C-u/3,A=-C-u/3,[T,A].filter(a);{const D=Hd(k);return C=_y(-w+D),_=_y(w+D),[C-_-u/3].filter(a)}}},droots:function(e){if(e.length===3){const r=e[0],n=e[1],o=e[2],a=r-2*n+o;if(a!==0){const i=-Hd(n*n-r*o),s=-r+n,l=-(i+s)/a,c=-(-i+s)/a;return[l,c]}else if(n!==o&&a===0)return[(2*n-o)/(2*(n-o))];return[]}if(e.length===2){const r=e[0],n=e[1];return r!==n?[r/(r-n)]:[]}return[]},curvature:function(e,r,n,o,a){let i,s,l,c,d=0,u=0;const h=Ye.compute(e,r),f=Ye.compute(e,n),g=h.x*h.x+h.y*h.y;if(o?(i=Hd(Ti(h.y*f.z-f.y*h.z,2)+Ti(h.z*f.x-f.z*h.x,2)+Ti(h.x*f.y-f.x*h.y,2)),s=Ti(g+h.z*h.z,3/2)):(i=h.x*f.y-h.y*f.x,s=Ti(g,3/2)),i===0||s===0)return{k:0,r:0};if(d=i/s,u=s/i,!a){const b=Ye.curvature(e-.001,r,n,o,!0).k,x=Ye.curvature(e+.001,r,n,o,!0).k;c=(x-d+(d-b))/2,l=(wy(x-d)+wy(d-b))/2}return{k:d,r:u,dk:c,adk:l}},inflections:function(e){if(e.length<4)return[];const r=Ye.align(e,{p1:e[0],p2:e.slice(-1)[0]}),n=r[2].x*r[1].y,o=r[3].x*r[1].y,a=r[1].x*r[2].y,i=r[3].x*r[2].y,s=18*(-3*n+2*o+3*a-i),l=18*(3*n-o-3*a),c=18*(a-n);if(Ye.approximately(s,0)){if(!Ye.approximately(l,0)){let f=-c/l;if(0<=f&&f<=1)return[f]}return[]}const d=2*s;if(Ye.approximately(d,0))return[];const u=l*l-4*s*c;if(u<0)return[];const h=Math.sqrt(u);return[(h-l)/d,-(l+h)/d].filter(function(f){return 0<=f&&f<=1})},bboxoverlap:function(e,r){const n=["x","y"],o=n.length;for(let a=0,i,s,l,c;a=c)return!1;return!0},expandbox:function(e,r){r.x.mine.x.max&&(e.x.max=r.x.max),r.y.max>e.y.max&&(e.y.max=r.y.max),r.z&&r.z.max>e.z.max&&(e.z.max=r.z.max),e.x.mid=(e.x.min+e.x.max)/2,e.y.mid=(e.y.min+e.y.max)/2,e.z&&(e.z.mid=(e.z.min+e.z.max)/2),e.x.size=e.x.max-e.x.min,e.y.size=e.y.max-e.y.min,e.z&&(e.z.size=e.z.max-e.z.min)},pairiteration:function(e,r,n){const o=e.bbox(),a=r.bbox(),i=1e5,s=n||.5;if(o.x.size+o.y.sizeR||R>D)&&(A+=Ow),A>D&&(N=D,D=A,A=N)):D4){if(arguments.length!==1)throw new Error("Only new Bezier(point[]) is accepted for 4th and higher order curves");a=!0}}else if(i!==6&&i!==8&&i!==9&&i!==12&&arguments.length!==1)throw new Error("Only new Bezier(point[]) is accepted for 4th and higher order curves");const s=this._3d=!a&&(i===9||i===12)||r&&r[0]&&typeof r[0].z<"u",l=this.points=[];for(let g=0,b=s?3:2;gg+Sy(b.y),0)"u"&&(a=.5),a===0)return new Qr(n,n,o);if(a===1)return new Qr(r,n,n);const i=Qr.getABC(2,r,n,o,a);return new Qr(r,i.A,o)}static cubicFromPoints(r,n,o,a,i){typeof a>"u"&&(a=.5);const s=Qr.getABC(3,r,n,o,a);typeof i>"u"&&(i=Ye.dist(n,s.C));const l=i*(1-a)/a,c=Ye.dist(r,o),d=(o.x-r.x)/c,u=(o.y-r.y)/c,h=i*d,f=i*u,g=l*d,b=l*u,x={x:n.x-h,y:n.y-f},w={x:n.x+g,y:n.y+b},k=s.A,C={x:k.x+(x.x-k.x)/(1-a),y:k.y+(x.y-k.y)/(1-a)},_={x:k.x+(w.x-k.x)/a,y:k.y+(w.y-k.y)/a},T={x:r.x+(C.x-r.x)/a,y:r.y+(C.y-r.y)/a},A={x:o.x+(_.x-o.x)/(1-a),y:o.y+(_.y-o.y)/(1-a)};return new Qr(r,T,A,o)}static getUtils(){return Ye}getUtils(){return Qr.getUtils()}static get PolyBezier(){return Ey}valueOf(){return this.toString()}toString(){return Ye.pointsToString(this.points)}toSVG(){if(this._3d)return!1;const r=this.points,n=r[0].x,o=r[0].y,a=["M",n,o,this.order===2?"Q":"C"];for(let i=1,s=r.length;i0}length(){return Ye.length(this.derivative.bind(this))}static getABC(r=2,n,o,a,i=.5){const s=Ye.projectionratio(i,r),l=1-s,c={x:s*n.x+l*a.x,y:s*n.y+l*a.y},d=Ye.abcratio(i,r);return{A:{x:o.x+(o.x-c.x)/d,y:o.y+(o.y-c.y)/d},B:o,C:c,S:n,E:a}}getABC(r,n){n=n||this.get(r);let o=this.points[0],a=this.points[this.order];return Qr.getABC(this.order,o,n,a,r)}getLUT(r){if(this.verify(),r=r||100,this._lut.length===r+1)return this._lut;this._lut=[],r++,this._lut=[];for(let n=0,o,a;n1?1:h,f=this.compute(h),f.t=h,f.d=d,f}get(r){return this.compute(r)}point(r){return this.points[r]}compute(r){return this.ratios?Ye.computeWithRatios(r,this.points,this.ratios,this._3d):Ye.compute(r,this.points,this._3d,this.ratios)}raise(){const r=this.points,n=[r[0]],o=r.length;for(let a=1,i,s;a1;){o=[];for(let s=0,l,c=n.length-1;s=0&&s<=1}),n=n.concat(r[o].sort(Ye.numberSort))}).bind(this)),r.values=n.sort(Ye.numberSort).filter(function(o,a){return n.indexOf(o)===a}),r}bbox(){const r=this.extrema(),n={};return this.dims.forEach((function(o){n[o]=Ye.getminmax(this,o,r[o])}).bind(this)),n}overlaps(r){const n=this.bbox(),o=r.bbox();return Ye.bboxoverlap(n,o)}offset(r,n){if(typeof n<"u"){const o=this.get(r),a=this.normal(r),i={c:o,n:a,x:o.x+a.x*n,y:o.y+a.y*n};return this._3d&&(i.z=o.z+a.z*n),i}if(this._linear){const o=this.normal(0),a=this.points.map(function(i){const s={x:i.x+r*o.x,y:i.y+r*o.y};return i.z&&o.z&&(s.z=i.z+r*o.z),s});return[new Qr(a)]}return this.reduce().map(function(o){return o._linear?o.offset(r)[0]:o.scale(r)})}simple(){if(this.order===3){const a=Ye.angle(this.points[0],this.points[3],this.points[1]),i=Ye.angle(this.points[0],this.points[3],this.points[2]);if(a>0&&i<0||a<0&&i>0)return!1}const r=this.normal(0),n=this.normal(1);let o=r.x*n.x+r.y*n.y;return this._3d&&(o+=r.z*n.z),Sy(xWe(o))(1-l/a)*n+l/a*o);return new Qr(this.points.map((s,l)=>({x:s.x+r.x*i[l],y:s.y+r.y*i[l]})))}scale(r){const n=this.order;let o=!1;if(typeof r=="function"&&(o=r),o&&n===2)return this.raise().scale(o);const a=this.clockwise,i=this.points;if(this._linear)return this.translate(this.normal(0),o?o(0):r,o?o(1):r);const s=o?o(0):r,l=o?o(1):r,c=[this.offset(0,10),this.offset(1,10)],d=[],u=Ye.lli4(c[0],c[0].c,c[1],c[1].c);if(!u)throw new Error("cannot scale this curve. Try reducing it first.");return[0,1].forEach(function(h){const f=d[h*n]=Ye.copy(i[h*n]);f.x+=(h?l:s)*c[h].n.x,f.y+=(h?l:s)*c[h].n.y}),o?([0,1].forEach(function(h){if(!(n===2&&h)){var f=i[h+1],g={x:f.x-u.x,y:f.y-u.y},b=o?o((h+1)/n):r;o&&!a&&(b=-b);var x=Cy(g.x*g.x+g.y*g.y);g.x/=x,g.y/=x,d[h+1]={x:f.x+b*g.x,y:f.y+b*g.y}}}),new Qr(d)):([0,1].forEach(h=>{if(n===2&&h)return;const f=d[h*n],g=this.derivative(h),b={x:f.x+g.x,y:f.y+g.y};d[h+1]=Ye.lli4(f,b,u,i[h+1])}),new Qr(d))}outline(r,n,o,a){if(n=n===void 0?r:n,this._linear){const A=this.normal(0),R=this.points[0],D=this.points[this.points.length-1];let N,P,O;o===void 0&&(o=r,a=n),N={x:R.x+A.x*r,y:R.y+A.y*r},O={x:D.x+A.x*o,y:D.y+A.y*o},P={x:(N.x+O.x)/2,y:(N.y+O.y)/2};const F=[N,P,O];N={x:R.x-A.x*n,y:R.y-A.y*n},O={x:D.x-A.x*a,y:D.y-A.y*a},P={x:(N.x+O.x)/2,y:(N.y+O.y)/2};const L=[O,P,N],U=Ye.makeline(L[2],F[0]),M=Ye.makeline(F[2],L[0]),V=[U,new Qr(F),M,new Qr(L)];return new Ey(V)}const i=this.reduce(),s=i.length,l=[];let c=[],d,u=0,h=this.length();const f=typeof o<"u"&&typeof a<"u";function g(A,R,D,N,P){return function(O){const F=N/D,L=(N+P)/D,U=R-A;return Ye.map(O,0,1,A+F*U,A+L*U)}}i.forEach(function(A){const R=A.length();f?(l.push(A.scale(g(r,o,h,u,R))),c.push(A.scale(g(-n,-a,h,u,R)))):(l.push(A.scale(r)),c.push(A.scale(-n))),u+=R}),c=c.map(function(A){return d=A.points,d[3]?A.points=[d[3],d[2],d[1],d[0]]:A.points=[d[2],d[1],d[0]],A}).reverse();const b=l[0].points[0],x=l[s-1].points[l[s-1].points.length-1],w=c[s-1].points[c[s-1].points.length-1],k=c[0].points[0],C=Ye.makeline(w,b),_=Ye.makeline(x,k),T=[C].concat(l).concat([_]).concat(c);return new Ey(T)}outlineshapes(r,n,o){n=n||r;const a=this.outline(r,n).curves,i=[];for(let s=1,l=a.length;s1,c.endcap.virtual=s{var l=this.get(s);return Ye.between(l.x,n,a)&&Ye.between(l.y,o,i)})}selfintersects(r){const n=this.reduce(),o=n.length-2,a=[];for(let i=0,s,l,c;i0&&(i=i.concat(l))}),i}arcs(r){return r=r||.5,this._iterate(r,[])}_error(r,n,o,a){const i=(a-o)/4,s=this.get(o+i),l=this.get(a-i),c=Ye.dist(r,n),d=Ye.dist(r,s),u=Ye.dist(r,l);return Sy(d-c)+Sy(u-c)}_iterate(r,n){let o=0,a=1,i;do{i=0,a=1;let s=this.get(o),l,c,d,u,h=!1,f=!1,g,b=a,x=1;do if(f=h,u=d,b=(o+a)/2,l=this.get(b),c=this.get(a),d=Ye.getccenter(s,l,c),d.interval={start:o,end:a},h=this._error(d,s,o,a)<=r,g=f&&!h,g||(x=a),h){if(a>=1){if(d.interval.end=x=1,u=d,a>1){let w={x:d.x+d.r*bWe(d.e),y:d.y+d.r*vWe(d.e)};d.e+=Ye.angle({x:d.x,y:d.y},w,this.get(1))}break}a=a+(a-o)/2}else a=b;while(!g&&i++<100);if(i>=100)break;u=u||d,n.push(u),o=x}while(a<1);return n}}class Ai{constructor(r,n){this.x=r,this.y=n}static create(...r){return r.length===2?new Ai(r[0],r[1]):new Ai(r[0].x,r[0].y)}static add(r,n){return{x:r.x+n.x,y:r.y+n.y}}static subtract(r,n){return{x:r.x-n.x,y:r.y-n.y}}static multiply(r,n){return{x:r.x*n,y:r.y*n}}static dot(r,n){return r.x*n.x+r.y*n.y}add(r){return new Ai(this.x+r.x,this.y+r.y)}subtract(r){return new Ai(this.x-r.x,this.y-r.y)}multiply(r){return new Ai(this.x*r,this.y*r)}dot(r){return this.x*r.x+this.y*r.y}cross(r){return new Ai(this.y*r.x-this.x*r.y,this.x*r.y-this.y*r.x)}length(){return this.x===0&&this.y===0?0:Math.sqrt(this.x**2+this.y**2)}normalize(){const r=this.length();return r===0?new Ai(0,0):new Ai(this.x/r,this.y/r)}}function jo(...e){return e.length===1&&e[0]instanceof Ai?e[0]:e.length===2?new Ai(e[0],e[1]):new Ai(e[0].x,e[0].y)}function yJ(e){const r={internals:{positionAbsolute:e.internals.positionAbsolute}};return e.measured&&(r.measured=e.measured),_d(e.width)&&(r.width=e.width),_d(e.height)&&(r.height=e.height),_d(e.initialWidth)&&(r.initialWidth=e.initialWidth),_d(e.initialHeight)&&(r.initialHeight=e.initialHeight),r}function bJ(e,r){const n=e.internals.positionAbsolute,o=r.internals.positionAbsolute;if(n.x!==o.x||n.y!==o.y)return!1;const a=e.measured?.width??e.width??e.initialWidth??0,i=r.measured?.width??r.width??r.initialWidth??0;if(a!==i)return!1;const s=e.measured?.height??e.height??e.initialHeight??0,l=r.measured?.height??r.height??r.initialHeight??0;return s===l}function Ty(e){const{width:r,height:n}=ao(e),{x:o,y:a}=e.internals.positionAbsolute;return{x:o+r/2,y:a+n/2}}function Ay(e,r,n=0){const o=Ty(e),{width:a,height:i}=ao(e),s=jo(r.x,r.y).subtract(o),l=(n+(a||0)/2)/s.x,c=(n+(i||0)/2)/s.y,d=Math.min(Math.abs(l),Math.abs(c));return jo(s).multiply(d).add(o)}function vJ(e,r){return Ay(e,Ty(r))}function jw(e){let[r,...n]=e;at(r,"start should be defined");const o=[];for(;bo(n,3);){const[a,i,s,...l]=n,c=new Qr(r[0],r[1],a[0],a[1],i[0],i[1],s[0],s[1]),d=c.inflections();d.length===0&&d.push(.5),d.forEach(u=>{const{x:h,y:f}=c.get(u);o.push({x:Math.round(h),y:Math.round(f)})}),n=l,r=s}return at(n.length===0,"all points should be consumed"),o}const xJ=(e,r)=>Math.abs(e-r)<3.1;function wJ(e,r){const[n,o]=M7(e)?e:[e.x,e.y],[a,i]=M7(r)?r:[r.x,r.y];return xJ(n,a)&&xJ(o,i)}function Cn(e){return e.stopPropagation()}function kWe(e){let[r,...n]=e;at(r,"start should be defined");let o=`M ${r[0]},${r[1]}`;for(;bo(n,3);){const[a,i,s,...l]=n;o=o+` C ${a[0]},${a[1]} ${i[0]},${i[1]} ${s[0]},${s[1]}`,n=l}return at(n.length===0,"all points should be consumed"),o}const Lw=E.forwardRef(({tag:e,cursor:r,className:n,style:o,...a},i)=>{const s=iLe(e);return y.jsxs(zr,{ref:i,"data-likec4-tag":e,className:et(KUe({autoTextColor:OB(s)}),n),...a,style:{cursor:r,...o},children:[y.jsx("span",{children:"#"}),y.jsx("span",{children:e})]})}),_We=(e,r)=>e.data.width===r.data.width&<(e.data.tags,r.data.tags)&&(e.data.hovered??!1)===(r.data.hovered??!1),Ry=E.memo(({id:e,data:{tags:r,width:n,hovered:o=!1}})=>{const{hovered:a,ref:i}=X7(),{hovered:s,ref:l}=X7(),[c,d]=ZDe(!1,o?120:300);E.useEffect(()=>{d(w=>w?o||a||s:o&&(a||s))},[a,s,o]);const u=pWe(),h=u>1.2,f=Qt(),g=w=>{f.send({type:"tag.highlight",tag:w})},b=E.useCallback(()=>{f.send({type:"tag.unhighlight"})},[]);if(!r||r.length===0)return null;const x=Math.max(Math.round(n*u)-10,200);return y.jsxs(y.Fragment,{children:[y.jsx("div",{ref:i,className:et("likec4-element-tags",Zn({pointerEvents:"all",gap:"1",alignItems:"flex-end",justifyItems:"stretch",position:"absolute",width:"100%",bottom:"0",left:"0",padding:"1",_shapeCylinder:{bottom:"[5px]"},_shapeStorage:{bottom:"[5px]"},_shapeQueue:{bottom:"0",paddingLeft:"[14px]"}})),onClick:Cn,children:r.map(w=>y.jsx(zr,{"data-likec4-tag":w,className:be({layerStyle:"likec4.tag",flex:"1",display:"flex",alignItems:"center",justifyContent:"center",maxWidth:50,height:5,_whenHovered:{height:12,borderRadius:4,transitionDelay:".08s"},transition:"fast"})},e+"#"+w))}),y.jsx(D7,{isVisible:c,align:"start",position:tt.Bottom,children:y.jsx(sn,{ref:l,css:{gap:"0.5",alignItems:"baseline",flexWrap:"wrap",pb:"sm",translate:"auto",x:"[-8px]",maxWidth:x},children:r.map(w=>y.jsx(Lw,{tag:w,cursor:"pointer",className:be({userSelect:"none",...h&&{fontSize:"lg",borderRadius:"[4px]",px:"1.5"}}),onClick:k=>{k.stopPropagation(),f.openSearch(`#${w}`)},onMouseEnter:()=>g(w),onMouseLeave:b},w))})})]})},_We);Ry.displayName="ElementTags";const EWe=E.forwardRef((e,r)=>y.jsx("svg",{height:"24",width:"24",fill:"currentColor",...e,viewBox:"0 0 24 24",ref:r,children:y.jsx("path",{d:"M12 1C5.923 1 1 5.923 1 12c0 4.867 3.149 8.979 7.521 10.436.55.096.756-.233.756-.522 0-.262-.013-1.128-.013-2.049-2.764.509-3.479-.674-3.699-1.292-.124-.317-.66-1.293-1.127-1.554-.385-.207-.936-.715-.014-.729.866-.014 1.485.797 1.691 1.128.99 1.663 2.571 1.196 3.204.907.096-.715.385-1.196.701-1.471-2.448-.275-5.005-1.224-5.005-5.432 0-1.196.426-2.186 1.128-2.956-.111-.275-.496-1.402.11-2.915 0 0 .921-.288 3.024 1.128a10.193 10.193 0 0 1 2.75-.371c.936 0 1.871.123 2.75.371 2.104-1.43 3.025-1.128 3.025-1.128.605 1.513.221 2.64.111 2.915.701.77 1.127 1.747 1.127 2.956 0 4.222-2.571 5.157-5.019 5.432.399.344.743 1.004.743 2.035 0 1.471-.014 2.654-.014 3.025 0 .289.206.632.756.522C19.851 20.979 23 16.854 23 12c0-6.077-4.922-11-11-11Z"})})),SWe=[["path",{d:"M5 12l5 5l10 -10",key:"svg-0"}]],kJ=Nt("outline","check","Check",SWe),CWe=[["path",{d:"M7 7m0 2.667a2.667 2.667 0 0 1 2.667 -2.667h8.666a2.667 2.667 0 0 1 2.667 2.667v8.666a2.667 2.667 0 0 1 -2.667 2.667h-8.666a2.667 2.667 0 0 1 -2.667 -2.667z",key:"svg-0"}],["path",{d:"M4.012 16.737a2.005 2.005 0 0 1 -1.012 -1.737v-10c0 -1.1 .9 -2 2 -2h10c.75 0 1.158 .385 1.5 1",key:"svg-1"}]],TWe=Nt("outline","copy","Copy",CWe),_J="https://github.com/",DT=E.forwardRef(({value:e,className:r,...n},o)=>{const a=e.url.includes("://")?e.url:new window.URL(e.url,window.location.href).toString();let i=a.startsWith(_J);return y.jsx(vl,{ref:o,variant:"default",radius:"sm",size:"sm",tt:"none",leftSection:e.title?y.jsx(y.Fragment,{children:e.title}):null,rightSection:y.jsx(GY,{value:a,timeout:1500,children:({copy:s,copied:l})=>y.jsx(br,{className:be({opacity:l?1:.45,transition:"fast",_hover:{opacity:1}}),tabIndex:-1,size:"20",variant:l?"light":"transparent",color:l?"teal":"gray","data-active":l,onClick:c=>{c.stopPropagation(),c.preventDefault(),s()},children:l?y.jsx(kJ,{}):y.jsx(TWe,{stroke:2.5})})}),...n,className:et(r,"group"),classNames:{root:be({flexWrap:"nowrap",minHeight:24,maxWidth:500,userSelect:"all",pr:"0",backgroundColor:{base:"transparent",_hover:{base:"mantine.colors.gray[1]",_dark:"mantine.colors.dark[5]"}}}),section:be({'&:is([data-position="left"])':{color:"mantine.colors.dimmed",userSelect:"none",pointerEvents:"none",_groupHover:{color:"[var(--badge-color)]",opacity:.7}}})},children:y.jsxs(Id.a,{href:a,target:"_blank",style:{color:"var(--badge-color)",cursor:"pointer"},css:{transition:"fast",opacity:{base:.7,_hover:1},textDecoration:{base:"none",_hover:"underline"}},children:[i&&y.jsx(EWe,{height:"12",width:"12",style:{verticalAlign:"middle",marginRight:"4px"}}),i?a.replace(_J,""):a]})})});function AWe(){return E.useContext(ES)}function RWe(){const e=E.useContext(ES);if(!e)throw new Error("No LikeC4ViewModel in context found");return e}const Bw="--_blur",Fw="--_opacity",NWe=be({boxSizing:"border-box",margin:"0",padding:"0",position:"fixed",inset:"0",width:"100vw",height:"100vh",maxWidth:"100vw",maxHeight:"100vh",background:"transparent",border:"transparent",_backdrop:{backdropFilter:"auto",backdropBlur:`var(${Bw})`,backgroundColor:`[rgb(36 36 36 / var(${Fw}, 5%))]`}}),DWe=be({position:"absolute",pointerEvents:"all",display:"flex",flexDirection:"column",padding:"4",gap:"lg",justifyContent:"stretch",color:"mantine.colors.text",backgroundColor:{base:"mantine.colors.body",_dark:"mantine.colors.dark[6]"},boxShadow:"md",overflow:"hidden",border:"none",backgroundImage:` + `),()=>{x.contains(w)&&x.removeChild(w)}},[r]),y.jsx(LOe,{isPresent:r,childRef:i,sizeRef:l,children:S.cloneElement(e,{ref:c})})}const VOe=({children:e,initial:r,isPresent:n,onExitComplete:o,custom:a,presenceAffectsLayout:i,mode:l,anchorX:s,root:c})=>{const d=tm(qOe),u=S.useId();let p=!0,f=S.useMemo(()=>(p=!1,{id:u,initial:r,isPresent:n,custom:a,onExitComplete:g=>{d.set(g,!0);for(const v of d.values())if(!v)return;o&&o()},register:g=>(d.set(g,!1),()=>d.delete(g))}),[n,d,o]);return i&&p&&(f={...f}),S.useMemo(()=>{d.forEach((g,v)=>d.set(v,!1))},[n]),S.useEffect(()=>{!n&&!d.size&&o&&o()},[n]),l==="popLayout"&&(e=y.jsx(FOe,{isPresent:n,anchorX:s,root:c,children:e})),y.jsx(T3.Provider,{value:f,children:e})};function qOe(){return new Map}function _X(e=!0){const r=S.useContext(T3);if(r===null)return[!0,null];const{isPresent:n,onExitComplete:o,register:a}=r,i=S.useId();S.useEffect(()=>{if(e)return a(i)},[e]);const l=S.useCallback(()=>e&&o&&o(i),[i,o,e]);return!n&&o?[!1,l]:[!0]}const A3=e=>e.key||"";function SX(e){const r=[];return S.Children.forEach(e,n=>{S.isValidElement(n)&&r.push(n)}),r}const Cn=({children:e,custom:r,initial:n=!0,onExitComplete:o,presenceAffectsLayout:a=!0,mode:i="sync",propagate:l=!1,anchorX:s="left",root:c})=>{const[d,u]=_X(l),p=S.useMemo(()=>SX(e),[e]),f=l&&!d?[]:p.map(A3),g=S.useRef(!0),v=S.useRef(p),w=tm(()=>new Map),[x,k]=S.useState(p),[C,_]=S.useState(p);IE(()=>{g.current=!1,v.current=p;for(let j=0;j{const A=A3(j),R=l&&!d?!1:p===C||f.includes(A),T=()=>{if(w.has(A))w.set(A,!0);else return;let O=!0;w.forEach(P=>{P||(O=!1)}),O&&(z?.(),_(v.current),l&&u?.(),o&&o())};return y.jsx(VOe,{isPresent:R,initial:!g.current||n?void 0:!1,custom:r,presenceAffectsLayout:a,mode:i,root:c,onExitComplete:R?void 0:T,anchorX:s,children:j},A)})})},HOe=S.createContext(null);function UOe(){const e=S.useRef(!1);return IE(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function WOe(){const e=UOe(),[r,n]=S.useState(0),o=S.useCallback(()=>{e.current&&n(r+1)},[r]);return[S.useCallback(()=>Dr.postRender(o),[o]),r]}const GOe=e=>!e.isLayoutDirty&&e.willUpdate(!1);function YOe(){const e=new Set,r=new WeakMap,n=()=>e.forEach(GOe);return{add:o=>{e.add(o),r.set(o,o.addEventListener("willUpdate",n))},remove:o=>{e.delete(o);const a=r.get(o);a&&(a(),r.delete(o)),n()},dirty:n}}const EX=e=>e===!0,XOe=e=>EX(e===!0)||e==="id",rm=({children:e,id:r,inherit:n=!0})=>{const o=S.useContext(My),a=S.useContext(HOe),[i,l]=WOe(),s=S.useRef(null),c=o.id||a;s.current===null&&(XOe(n)&&c&&(r=r?c+"-"+r:c),s.current={id:r,group:EX(n)&&o.group||YOe()});const d=S.useMemo(()=>({...s.current,forceRender:i}),[l]);return y.jsx(My.Provider,{value:d,children:e})},LE=S.createContext({strict:!1});function FE(e){for(const r in e)Jf[r]={...Jf[r],...e[r]}}function ZOe({children:e,features:r,strict:n=!1}){const[,o]=S.useState(!VE(r)),a=S.useRef(void 0);if(!VE(r)){const{renderer:i,...l}=r;a.current=i,FE(l)}return S.useEffect(()=>{VE(r)&&r().then(({renderer:i,...l})=>{FE(l),a.current=i,o(!0)})},[]),y.jsx(LE.Provider,{value:{renderer:a.current,strict:n},children:e})}function VE(e){return typeof e=="function"}const KOe=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function D3(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||KOe.has(e)}let CX=e=>!D3(e);function $X(e){typeof e=="function"&&(CX=r=>r.startsWith("on")?!D3(r):e(r))}try{$X(require("@emotion/is-prop-valid").default)}catch{}function QOe(e,r,n){const o={};for(const a in e)a==="values"&&typeof e.values=="object"||(CX(a)||n===!0&&D3(a)||!r&&!D3(a)||e.draggable&&a.startsWith("onDrag"))&&(o[a]=e[a]);return o}function JOe({children:e,isValidProp:r,...n}){r&&$X(r),n={...S.useContext(vp),...n},n.isStatic=tm(()=>n.isStatic);const o=S.useMemo(()=>n,[JSON.stringify(n.transition),n.transformPagePoint,n.reducedMotion]);return y.jsx(vp.Provider,{value:o,children:e})}const M3=S.createContext({});function eIe(e,r){if(j3(e)){const{initial:n,animate:o}=e;return{initial:n===!1||Ay(n)?n:void 0,animate:Ay(o)?o:void 0}}return e.inherit!==!1?r:{}}function tIe(e){const{initial:r,animate:n}=eIe(e,S.useContext(M3));return S.useMemo(()=>({initial:r,animate:n}),[zX(r),zX(n)])}function zX(e){return Array.isArray(e)?e.join(" "):e}const qE=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function RX(e,r,n){for(const o in r)!to(r[o])&&!pX(o,n)&&(e[o]=r[o])}function rIe({transformTemplate:e},r){return S.useMemo(()=>{const n=qE();return BE(n,r,e),Object.assign({},n.vars,n.style)},[r])}function nIe(e,r){const n=e.style||{},o={};return RX(o,n,e),Object.assign(o,rIe(e,r)),o}function oIe(e,r){const n={},o=nIe(e,r);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=o,n}const jX=()=>({...qE(),attrs:{}});function aIe(e,r,n,o){const a=S.useMemo(()=>{const i=jX();return fX(i,r,gX(o),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[r]);if(e.style){const i={};RX(i,e.style,e),a.style={...i,...a.style}}return a}const iIe=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function HE(e){return typeof e!="string"||e.includes("-")?!1:!!(iIe.indexOf(e)>-1||/[A-Z]/u.test(e))}function lIe(e,r,n,{latestValues:o},a,i=!1){const l=(HE(e)?aIe:oIe)(r,o,a,e),s=QOe(r,typeof e=="string",i),c=e!==S.Fragment?{...s,...l,ref:n}:{},{children:d}=r,u=S.useMemo(()=>to(d)?d.get():d,[d]);return S.createElement(e,{...c,children:u})}function N3(e){return to(e)?e.get():e}function sIe({scrapeMotionValuesFromProps:e,createRenderState:r},n,o,a){return{latestValues:cIe(n,o,a,e),renderState:r()}}function cIe(e,r,n,o){const a={},i=o(e,{});for(const f in i)a[f]=N3(i[f]);let{initial:l,animate:s}=e;const c=j3(e),d=lX(e);r&&d&&!c&&e.inherit!==!1&&(l===void 0&&(l=r.initial),s===void 0&&(s=r.animate));let u=n?n.initial===!1:!1;u=u||l===!1;const p=u?s:l;if(p&&typeof p!="boolean"&&!R3(p)){const f=Array.isArray(p)?p:[p];for(let g=0;g(r,n)=>{const o=S.useContext(M3),a=S.useContext(T3),i=()=>sIe(e,r,o,a);return n?i():tm(i)},dIe=TX({scrapeMotionValuesFromProps:OE,createRenderState:qE}),uIe=TX({scrapeMotionValuesFromProps:yX,createRenderState:jX}),pIe=Symbol.for("motionComponentSymbol");function nm(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function hIe(e,r,n){return S.useCallback(o=>{o&&e.onMount&&e.onMount(o),r&&(o?r.mount(o):r.unmount()),n&&(typeof n=="function"?n(o):nm(n)&&(n.current=o))},[r])}const AX=S.createContext({});function fIe(e,r,n,o,a){const{visualElement:i}=S.useContext(M3),l=S.useContext(LE),s=S.useContext(T3),c=S.useContext(vp).reducedMotion,d=S.useRef(null);o=o||l.renderer,!d.current&&o&&(d.current=o(e,{visualState:r,parent:i,props:n,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:c}));const u=d.current,p=S.useContext(AX);u&&!u.projection&&a&&(u.type==="html"||u.type==="svg")&&mIe(d.current,n,a,p);const f=S.useRef(!1);S.useInsertionEffect(()=>{u&&f.current&&u.update(n,s)});const g=n[WY],v=S.useRef(!!g&&!window.MotionHandoffIsComplete?.(g)&&window.MotionHasOptimisedAnimation?.(g));return IE(()=>{u&&(f.current=!0,window.MotionIsMounted=!0,u.updateFeatures(),u.scheduleRenderMicrotask(),v.current&&u.animationState&&u.animationState.animateChanges())}),S.useEffect(()=>{u&&(!v.current&&u.animationState&&u.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(g)}),v.current=!1),u.enteringChildren=void 0)}),u}function mIe(e,r,n,o){const{layoutId:a,layout:i,drag:l,dragConstraints:s,layoutScroll:c,layoutRoot:d,layoutCrossfade:u}=r;e.projection=new n(e.latestValues,r["data-framer-portal-id"]?void 0:DX(e.parent)),e.projection.setOptions({layoutId:a,layout:i,alwaysMeasureLayout:!!l||s&&nm(s),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:o,crossfade:u,layoutScroll:c,layoutRoot:d})}function DX(e){if(e)return e.options.allowProjection!==!1?e.projection:DX(e.parent)}function P3(e,{forwardMotionProps:r=!1}={},n,o){n&&FE(n);const a=HE(e)?uIe:dIe;function i(s,c){let d;const u={...S.useContext(vp),...s,layoutId:gIe(s)},{isStatic:p}=u,f=tIe(s),g=a(s,p);if(!p&&DE){yIe();const v=vIe(u);d=v.MeasureLayout,f.visualElement=fIe(e,g,u,o,v.ProjectionNode)}return y.jsxs(M3.Provider,{value:f,children:[d&&f.visualElement?y.jsx(d,{visualElement:f.visualElement,...u}):null,lIe(e,s,hIe(g,f.visualElement,c),g,p,r)]})}i.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const l=S.forwardRef(i);return l[pIe]=e,l}function gIe({layoutId:e}){const r=S.useContext(My).id;return r&&e!==void 0?r+"-"+e:e}function yIe(e,r){S.useContext(LE).strict}function vIe(e){const{drag:r,layout:n}=Jf;if(!r&&!n)return{};const o={...r,...n};return{MeasureLayout:r?.isEnabled(e)||n?.isEnabled(e)?o.MeasureLayout:void 0,ProjectionNode:o.ProjectionNode}}function bIe(e,r){if(typeof Proxy>"u")return P3;const n=new Map,o=(i,l)=>P3(i,l,e,r),a=(i,l)=>o(i,l);return new Proxy(a,{get:(i,l)=>l==="create"?o:(n.has(l)||n.set(l,P3(l,void 0,e,r)),n.get(l))})}const pi=bIe(),xIe=(e,r)=>HE(e)?new vX(r):new hX(r,{allowProjection:e!==S.Fragment});function MX(e,r,n,o=0,a=1){const i=Array.from(e).sort((c,d)=>c.sortNodePosition(d)).indexOf(r),l=e.size,s=(l-1)*o;return typeof n=="function"?n(i,l):a===1?i*o:s-i*o}function UE(e,r,n={}){const o=Zf(e,r,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:a=e.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(a=n.transitionOverride);const i=o?()=>Promise.all(RE(e,o,n)):()=>Promise.resolve(),l=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:d=0,staggerChildren:u,staggerDirection:p}=a;return wIe(e,r,c,d,u,p,n)}:()=>Promise.resolve(),{when:s}=a;if(s){const[c,d]=s==="beforeChildren"?[i,l]:[l,i];return c().then(()=>d())}else return Promise.all([i(),l(n.delay)])}function wIe(e,r,n=0,o=0,a=0,i=1,l){const s=[];for(const c of e.variantChildren)c.notify("AnimationStart",r),s.push(UE(c,r,{...l,delay:n+(typeof o=="function"?0:o)+MX(e.variantChildren,c,o,a,i)}).then(()=>c.notify("AnimationComplete",r)));return Promise.all(s)}function kIe(e,r,n={}){e.notify("AnimationStart",r);let o;if(Array.isArray(r)){const a=r.map(i=>UE(e,i,n));o=Promise.all(a)}else if(typeof r=="string")o=UE(e,r,n);else{const a=typeof r=="function"?Zf(e,r,n.custom):r;o=Promise.all(RE(e,a,n))}return o.then(()=>{e.notify("AnimationComplete",r)})}function NX(e,r){if(!Array.isArray(r))return!1;const n=r.length;if(n!==e.length)return!1;for(let o=0;oPromise.all(r.map(({animation:n,options:o})=>kIe(e,n,o)))}function $Ie(e){let r=CIe(e),n=BX(),o=!0;const a=c=>(d,u)=>{const p=Zf(e,u,c==="exit"?e.presenceContext?.custom:void 0);if(p){const{transition:f,transitionEnd:g,...v}=p;d={...d,...v,...g}}return d};function i(c){r=c(e)}function l(c){const{props:d}=e,u=PX(e.parent)||{},p=[],f=new Set;let g={},v=1/0;for(let x=0;xv&&$,T=!1;const O=Array.isArray(_)?_:[_];let P=O.reduce(a(k),{});z===!1&&(P={});const{prevResolvedValues:L={}}=C,H={...L,...P},M=B=>{R=!0,f.has(B)&&(T=!0,f.delete(B)),C.needsAnimating[B]=!0;const F=e.getValue(B);F&&(F.liveStyle=!1)};for(const B in H){const F=P[B],q=L[B];if(g.hasOwnProperty(B))continue;let G=!1;SE(F)&&SE(q)?G=!NX(F,q):G=F!==q,G?F!=null?M(B):f.add(B):F!==void 0&&f.has(B)?M(B):C.protectedKeys[B]=!0}C.prevProp=_,C.prevResolvedValues=P,C.isActive&&(g={...g,...P}),o&&e.blockInitialAnimation&&(R=!1);const V=j&&A;R&&(!V||T)&&p.push(...O.map(B=>{const F={type:k};if(typeof B=="string"&&o&&!V&&e.manuallyAnimateOnMount&&e.parent){const{parent:q}=e,G=Zf(q,B);if(q.enteringChildren&&G){const{delayChildren:U}=G.transition||{};F.delay=MX(q.enteringChildren,e,U)}}return{animation:B,options:F}}))}if(f.size){const x={};if(typeof d.initial!="boolean"){const k=Zf(e,Array.isArray(d.initial)?d.initial[0]:d.initial);k&&k.transition&&(x.transition=k.transition)}f.forEach(k=>{const C=e.getBaseTarget(k),_=e.getValue(k);_&&(_.liveStyle=!0),x[k]=C??null}),p.push({animation:x})}let w=!!p.length;return o&&(d.initial===!1||d.initial===d.animate)&&!e.manuallyAnimateOnMount&&(w=!1),o=!1,w?r(p):Promise.resolve()}function s(c,d){if(n[c].isActive===d)return Promise.resolve();e.variantChildren?.forEach(p=>p.animationState?.setActive(c,d)),n[c].isActive=d;const u=l(c);for(const p in n)n[p].protectedKeys={};return u}return{animateChanges:l,setActive:s,setAnimateFunction:i,getState:()=>n,reset:()=>{n=BX()}}}function zIe(e,r){return typeof r=="string"?r!==e:Array.isArray(r)?!NX(r,e):!1}function bp(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function BX(){return{animate:bp(!0),whileInView:bp(),whileHover:bp(),whileTap:bp(),whileDrag:bp(),whileFocus:bp(),exit:bp()}}class wd{constructor(r){this.isMounted=!1,this.node=r}update(){}}class RIe extends wd{constructor(r){super(r),r.animationState||(r.animationState=$Ie(r))}updateAnimationControlsSubscription(){const{animate:r}=this.node.getProps();R3(r)&&(this.unmountControls=r.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:r}=this.node.getProps(),{animate:n}=this.node.prevProps||{};r!==n&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let jIe=0;class TIe extends wd{constructor(){super(...arguments),this.id=jIe++}update(){if(!this.node.presenceContext)return;const{isPresent:r,onExitComplete:n}=this.node.presenceContext,{isPresent:o}=this.node.prevPresenceContext||{};if(!this.node.animationState||r===o)return;const a=this.node.animationState.setActive("exit",!r);n&&!r&&a.then(()=>{n(this.id)})}mount(){const{register:r,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),r&&(this.unmount=r(this.id))}unmount(){}}const AIe={animation:{Feature:RIe},exit:{Feature:TIe}};function Ny(e,r,n,o={passive:!0}){return e.addEventListener(r,n,o),()=>e.removeEventListener(r,n)}function Py(e){return{point:{x:e.pageX,y:e.pageY}}}const DIe=e=>r=>xE(r)&&e(r,Py(r));function By(e,r,n,o){return Ny(e,r,DIe(n),o)}const OX=1e-4,MIe=1-OX,NIe=1+OX,IX=.01,PIe=0-IX,BIe=0+IX;function Fo(e){return e.max-e.min}function OIe(e,r,n){return Math.abs(e-r)<=n}function LX(e,r,n,o=.5){e.origin=o,e.originPoint=Lr(r.min,r.max,e.origin),e.scale=Fo(n)/Fo(r),e.translate=Lr(n.min,n.max,e.origin)-e.originPoint,(e.scale>=MIe&&e.scale<=NIe||isNaN(e.scale))&&(e.scale=1),(e.translate>=PIe&&e.translate<=BIe||isNaN(e.translate))&&(e.translate=0)}function Oy(e,r,n,o){LX(e.x,r.x,n.x,o?o.originX:void 0),LX(e.y,r.y,n.y,o?o.originY:void 0)}function FX(e,r,n){e.min=n.min+r.min,e.max=e.min+Fo(r)}function IIe(e,r,n){FX(e.x,r.x,n.x),FX(e.y,r.y,n.y)}function VX(e,r,n){e.min=r.min-n.min,e.max=e.min+Fo(r)}function B3(e,r,n){VX(e.x,r.x,n.x),VX(e.y,r.y,n.y)}function hi(e){return[e("x"),e("y")]}const qX=({current:e})=>e?e.ownerDocument.defaultView:null;class HX{constructor(r,n,{transformPagePoint:o,contextWindow:a=window,dragSnapToOrigin:i=!1,distanceThreshold:l=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=GE(this.lastMoveEventInfo,this.history),g=this.startEvent!==null,v=BOe(f.offset,{x:0,y:0})>=this.distanceThreshold;if(!g&&!v)return;const{point:w}=f,{timestamp:x}=so;this.history.push({...w,timestamp:x});const{onStart:k,onMove:C}=this.handlers;g||(k&&k(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),C&&C(this.lastMoveEvent,f)},this.handlePointerMove=(f,g)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=WE(g,this.transformPagePoint),Dr.update(this.updatePoint,!0)},this.handlePointerUp=(f,g)=>{this.end();const{onEnd:v,onSessionEnd:w,resumeAnimation:x}=this.handlers;if(this.dragSnapToOrigin&&x&&x(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const k=GE(f.type==="pointercancel"?this.lastMoveEventInfo:WE(g,this.transformPagePoint),this.history);this.startEvent&&v&&v(f,k),w&&w(f,k)},!xE(r))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=o,this.distanceThreshold=l,this.contextWindow=a||window;const s=Py(r),c=WE(s,this.transformPagePoint),{point:d}=c,{timestamp:u}=so;this.history=[{...d,timestamp:u}];const{onSessionStart:p}=n;p&&p(r,GE(c,this.history)),this.removeListeners=ky(By(this.contextWindow,"pointermove",this.handlePointerMove),By(this.contextWindow,"pointerup",this.handlePointerUp),By(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(r){this.handlers=r}end(){this.removeListeners&&this.removeListeners(),vd(this.updatePoint)}}function WE(e,r){return r?{point:r(e.point)}:e}function UX(e,r){return{x:e.x-r.x,y:e.y-r.y}}function GE({point:e},r){return{point:e,delta:UX(e,WX(r)),offset:UX(e,LIe(r)),velocity:FIe(r,.1)}}function LIe(e){return e[0]}function WX(e){return e[e.length-1]}function FIe(e,r){if(e.length<2)return{x:0,y:0};let n=e.length-1,o=null;const a=WX(e);for(;n>=0&&(o=e[n],!(a.timestamp-o.timestamp>ol(r)));)n--;if(!o)return{x:0,y:0};const i=ui(a.timestamp-o.timestamp);if(i===0)return{x:0,y:0};const l={x:(a.x-o.x)/i,y:(a.y-o.y)/i};return l.x===1/0&&(l.x=0),l.y===1/0&&(l.y=0),l}function VIe(e,{min:r,max:n},o){return r!==void 0&&en&&(e=o?Lr(n,e,o.max):Math.min(e,n)),e}function GX(e,r,n){return{min:r!==void 0?e.min+r:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function qIe(e,{top:r,left:n,bottom:o,right:a}){return{x:GX(e.x,n,a),y:GX(e.y,r,o)}}function YX(e,r){let n=r.min-e.min,o=r.max-e.max;return r.max-r.mino?n=Uf(r.min,r.max-o,e.min):o>a&&(n=Uf(e.min,e.max-a,r.min)),tc(0,1,n)}function WIe(e,r){const n={};return r.min!==void 0&&(n.min=r.min-e.min),r.max!==void 0&&(n.max=r.max-e.min),n}const YE=.35;function GIe(e=YE){return e===!1?e=0:e===!0&&(e=YE),{x:XX(e,"left","right"),y:XX(e,"top","bottom")}}function XX(e,r,n){return{min:ZX(e,r),max:ZX(e,n)}}function ZX(e,r){return typeof e=="number"?e:e[r]||0}const YIe=new WeakMap;class XIe{constructor(r){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=En(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=r}start(r,{snapToCursor:n=!1,distanceThreshold:o}={}){const{presenceContext:a}=this.visualElement;if(a&&a.isPresent===!1)return;const i=p=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Py(p).point)},l=(p,f)=>{const{drag:g,dragPropagation:v,onDragStart:w}=this.getProps();if(g&&!v&&(this.openDragLock&&this.openDragLock(),this.openDragLock=MBe(g),!this.openDragLock))return;this.latestPointerEvent=p,this.latestPanInfo=f,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),hi(k=>{let C=this.getAxisMotionValue(k).get()||0;if(ns.test(C)){const{projection:_}=this.visualElement;if(_&&_.layout){const $=_.layout.layoutBox[k];$&&(C=Fo($)*(parseFloat(C)/100))}}this.originPoint[k]=C}),w&&Dr.postRender(()=>w(p,f)),CE(this.visualElement,"transform");const{animationState:x}=this.visualElement;x&&x.setActive("whileDrag",!0)},s=(p,f)=>{this.latestPointerEvent=p,this.latestPanInfo=f;const{dragPropagation:g,dragDirectionLock:v,onDirectionLock:w,onDrag:x}=this.getProps();if(!g&&!this.openDragLock)return;const{offset:k}=f;if(v&&this.currentDirection===null){this.currentDirection=ZIe(k),this.currentDirection!==null&&w&&w(this.currentDirection);return}this.updateAxis("x",f.point,k),this.updateAxis("y",f.point,k),this.visualElement.render(),x&&x(p,f)},c=(p,f)=>{this.latestPointerEvent=p,this.latestPanInfo=f,this.stop(p,f),this.latestPointerEvent=null,this.latestPanInfo=null},d=()=>hi(p=>this.getAnimationState(p)==="paused"&&this.getAxisMotionValue(p).animation?.play()),{dragSnapToOrigin:u}=this.getProps();this.panSession=new HX(r,{onSessionStart:i,onStart:l,onMove:s,onSessionEnd:c,resumeAnimation:d},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:u,distanceThreshold:o,contextWindow:qX(this.visualElement)})}stop(r,n){const o=r||this.latestPointerEvent,a=n||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!a||!o)return;const{velocity:l}=a;this.startAnimation(l);const{onDragEnd:s}=this.getProps();s&&Dr.postRender(()=>s(o,a))}cancel(){this.isDragging=!1;const{projection:r,animationState:n}=this.visualElement;r&&(r.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:o}=this.getProps();!o&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(r,n,o){const{drag:a}=this.getProps();if(!o||!O3(r,a,this.currentDirection))return;const i=this.getAxisMotionValue(r);let l=this.originPoint[r]+o[r];this.constraints&&this.constraints[r]&&(l=VIe(l,this.constraints[r],this.elastic[r])),i.set(l)}resolveConstraints(){const{dragConstraints:r,dragElastic:n}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,a=this.constraints;r&&nm(r)?this.constraints||(this.constraints=this.resolveRefConstraints()):r&&o?this.constraints=qIe(o.layoutBox,r):this.constraints=!1,this.elastic=GIe(n),a!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&hi(i=>{this.constraints!==!1&&this.getAxisMotionValue(i)&&(this.constraints[i]=WIe(o.layoutBox[i],this.constraints[i]))})}resolveRefConstraints(){const{dragConstraints:r,onMeasureDragConstraints:n}=this.getProps();if(!r||!nm(r))return!1;const o=r.current,{projection:a}=this.visualElement;if(!a||!a.layout)return!1;const i=gOe(o,a.root,this.visualElement.getTransformPagePoint());let l=HIe(a.layout.layoutBox,i);if(n){const s=n(hOe(l));this.hasMutatedConstraints=!!s,s&&(l=YY(s))}return l}startAnimation(r){const{drag:n,dragMomentum:o,dragElastic:a,dragTransition:i,dragSnapToOrigin:l,onDragTransitionEnd:s}=this.getProps(),c=this.constraints||{},d=hi(u=>{if(!O3(u,n,this.currentDirection))return;let p=c&&c[u]||{};l&&(p={min:0,max:0});const f=a?200:1e6,g=a?40:1e7,v={type:"inertia",velocity:o?r[u]:0,bounceStiffness:f,bounceDamping:g,timeConstant:750,restDelta:1,restSpeed:10,...i,...p};return this.startAxisValueAnimation(u,v)});return Promise.all(d).then(s)}startAxisValueAnimation(r,n){const o=this.getAxisMotionValue(r);return CE(this.visualElement,r),o.start(zE(r,o,0,n,this.visualElement,!1))}stopAnimation(){hi(r=>this.getAxisMotionValue(r).stop())}pauseAnimation(){hi(r=>this.getAxisMotionValue(r).animation?.pause())}getAnimationState(r){return this.getAxisMotionValue(r).animation?.state}getAxisMotionValue(r){const n=`_drag${r.toUpperCase()}`,o=this.visualElement.getProps();return o[n]||this.visualElement.getValue(r,(o.initial?o.initial[r]:void 0)||0)}snapToCursor(r){hi(n=>{const{drag:o}=this.getProps();if(!O3(n,o,this.currentDirection))return;const{projection:a}=this.visualElement,i=this.getAxisMotionValue(n);if(a&&a.layout){const{min:l,max:s}=a.layout.layoutBox[n];i.set(r[n]-Lr(l,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:r,dragConstraints:n}=this.getProps(),{projection:o}=this.visualElement;if(!nm(n)||!o||!this.constraints)return;this.stopAnimation();const a={x:0,y:0};hi(l=>{const s=this.getAxisMotionValue(l);if(s&&this.constraints!==!1){const c=s.get();a[l]=UIe({min:c,max:c},this.constraints[l])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",o.root&&o.root.updateScroll(),o.updateLayout(),this.resolveConstraints(),hi(l=>{if(!O3(l,r,null))return;const s=this.getAxisMotionValue(l),{min:c,max:d}=this.constraints[l];s.set(Lr(c,d,a[l]))})}addListeners(){if(!this.visualElement.current)return;YIe.set(this.visualElement,this);const r=this.visualElement.current,n=By(r,"pointerdown",c=>{const{drag:d,dragListener:u=!0}=this.getProps();d&&u&&this.start(c)}),o=()=>{const{dragConstraints:c}=this.getProps();nm(c)&&c.current&&(this.constraints=this.resolveRefConstraints())},{projection:a}=this.visualElement,i=a.addEventListener("measure",o);a&&!a.layout&&(a.root&&a.root.updateScroll(),a.updateLayout()),Dr.read(o);const l=Ny(window,"resize",()=>this.scalePositionWithinConstraints()),s=a.addEventListener("didUpdate",(({delta:c,hasLayoutChanged:d})=>{this.isDragging&&d&&(hi(u=>{const p=this.getAxisMotionValue(u);p&&(this.originPoint[u]+=c[u].translate,p.set(p.get()+c[u].translate))}),this.visualElement.render())}));return()=>{l(),n(),i(),s&&s()}}getProps(){const r=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:o=!1,dragPropagation:a=!1,dragConstraints:i=!1,dragElastic:l=YE,dragMomentum:s=!0}=r;return{...r,drag:n,dragDirectionLock:o,dragPropagation:a,dragConstraints:i,dragElastic:l,dragMomentum:s}}}function O3(e,r,n){return(r===!0||r===e)&&(n===null||n===e)}function ZIe(e,r=10){let n=null;return Math.abs(e.y)>r?n="y":Math.abs(e.x)>r&&(n="x"),n}class KIe extends wd{constructor(r){super(r),this.removeGroupControls=di,this.removeListeners=di,this.controls=new XIe(r)}mount(){const{dragControls:r}=this.node.getProps();r&&(this.removeGroupControls=r.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||di}unmount(){this.removeGroupControls(),this.removeListeners()}}const KX=e=>(r,n)=>{e&&Dr.postRender(()=>e(r,n))};class QIe extends wd{constructor(){super(...arguments),this.removePointerDownListener=di}onPointerDown(r){this.session=new HX(r,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:qX(this.node)})}createPanHandlers(){const{onPanSessionStart:r,onPanStart:n,onPan:o,onPanEnd:a}=this.node.getProps();return{onSessionStart:KX(r),onStart:KX(n),onMove:o,onEnd:(i,l)=>{delete this.session,a&&Dr.postRender(()=>a(i,l))}}}mount(){this.removePointerDownListener=By(this.node.current,"pointerdown",r=>this.onPointerDown(r))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const I3={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function QX(e,r){return r.max===r.min?0:e/(r.max-r.min)*100}const Iy={correct:(e,r)=>{if(!r.target)return e;if(typeof e=="string")if(_t.test(e))e=parseFloat(e);else return e;const n=QX(e,r.target.x),o=QX(e,r.target.y);return`${n}% ${o}%`}},JIe={correct:(e,{treeScale:r,projectionDelta:n})=>{const o=e,a=xd.parse(e);if(a.length>5)return o;const i=xd.createTransformer(e),l=typeof a[0]!="number"?1:0,s=n.x.scale*r.x,c=n.y.scale*r.y;a[0+l]/=s,a[1+l]/=c;const d=Lr(s,c,.5);return typeof a[2+l]=="number"&&(a[2+l]/=d),typeof a[3+l]=="number"&&(a[3+l]/=d),i(a)}};let XE=!1;class eLe extends S.Component{componentDidMount(){const{visualElement:r,layoutGroup:n,switchLayoutGroup:o,layoutId:a}=this.props,{projection:i}=r;wOe(tLe),i&&(n.group&&n.group.add(i),o&&o.register&&a&&o.register(i),XE&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),I3.hasEverUpdated=!0}getSnapshotBeforeUpdate(r){const{layoutDependency:n,visualElement:o,drag:a,isPresent:i}=this.props,{projection:l}=o;return l&&(l.isPresent=i,XE=!0,a||r.layoutDependency!==n||n===void 0||r.isPresent!==i?l.willUpdate():this.safeToRemove(),r.isPresent!==i&&(i?l.promote():l.relegate()||Dr.postRender(()=>{const s=l.getStack();(!s||!s.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:r}=this.props.visualElement;r&&(r.root.didUpdate(),bE.postRender(()=>{!r.currentAnimation&&r.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:r,layoutGroup:n,switchLayoutGroup:o}=this.props,{projection:a}=r;XE=!0,a&&(a.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(a),o&&o.deregister&&o.deregister(a))}safeToRemove(){const{safeToRemove:r}=this.props;r&&r()}render(){return null}}function JX(e){const[r,n]=_X(),o=S.useContext(My);return y.jsx(eLe,{...e,layoutGroup:o,switchLayoutGroup:S.useContext(AX),isPresent:r,safeToRemove:n})}const tLe={borderRadius:{...Iy,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Iy,borderTopRightRadius:Iy,borderBottomLeftRadius:Iy,borderBottomRightRadius:Iy,boxShadow:JIe},rLe=(e,r)=>e.depth-r.depth;class nLe{constructor(){this.children=[],this.isDirty=!1}add(r){PS(this.children,r),this.isDirty=!0}remove(r){x3(this.children,r),this.isDirty=!0}forEach(r){this.isDirty&&this.children.sort(rLe),this.isDirty=!1,this.children.forEach(r)}}const eZ=["TopLeft","TopRight","BottomLeft","BottomRight"],oLe=eZ.length,tZ=e=>typeof e=="string"?parseFloat(e):e,rZ=e=>typeof e=="number"||_t.test(e);function aLe(e,r,n,o,a,i){a?(e.opacity=Lr(0,n.opacity??1,iLe(o)),e.opacityExit=Lr(r.opacity??1,0,lLe(o))):i&&(e.opacity=Lr(r.opacity??1,n.opacity??1,o));for(let l=0;lor?1:n(Uf(e,r,o))}function aZ(e,r){e.min=r.min,e.max=r.max}function il(e,r){aZ(e.x,r.x),aZ(e.y,r.y)}function iZ(e,r){e.translate=r.translate,e.scale=r.scale,e.originPoint=r.originPoint,e.origin=r.origin}function lZ(e,r,n,o,a){return e-=r,e=$3(e,1/n,o),a!==void 0&&(e=$3(e,1/a,o)),e}function sLe(e,r=0,n=1,o=.5,a,i=e,l=e){if(ns.test(r)&&(r=parseFloat(r),r=Lr(l.min,l.max,r/100)-l.min),typeof r!="number")return;let s=Lr(i.min,i.max,o);e===i&&(s-=r),e.min=lZ(e.min,r,n,s,a),e.max=lZ(e.max,r,n,s,a)}function sZ(e,r,[n,o,a],i,l){sLe(e,r[n],r[o],r[a],r.scale,i,l)}const cLe=["x","scaleX","originX"],dLe=["y","scaleY","originY"];function cZ(e,r,n,o){sZ(e.x,r,cLe,n?n.x:void 0,o?o.x:void 0),sZ(e.y,r,dLe,n?n.y:void 0,o?o.y:void 0)}function dZ(e){return e.translate===0&&e.scale===1}function uZ(e){return dZ(e.x)&&dZ(e.y)}function pZ(e,r){return e.min===r.min&&e.max===r.max}function uLe(e,r){return pZ(e.x,r.x)&&pZ(e.y,r.y)}function hZ(e,r){return Math.round(e.min)===Math.round(r.min)&&Math.round(e.max)===Math.round(r.max)}function fZ(e,r){return hZ(e.x,r.x)&&hZ(e.y,r.y)}function mZ(e){return Fo(e.x)/Fo(e.y)}function gZ(e,r){return e.translate===r.translate&&e.scale===r.scale&&e.originPoint===r.originPoint}class pLe{constructor(){this.members=[]}add(r){PS(this.members,r),r.scheduleRender()}remove(r){if(x3(this.members,r),r===this.prevLead&&(this.prevLead=void 0),r===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(r){const n=this.members.findIndex(a=>r===a);if(n===0)return!1;let o;for(let a=n;a>=0;a--){const i=this.members[a];if(i.isPresent!==!1){o=i;break}}return o?(this.promote(o),!0):!1}promote(r,n){const o=this.lead;if(r!==o&&(this.prevLead=o,this.lead=r,r.show(),o)){o.instance&&o.scheduleRender(),r.scheduleRender(),r.resumeFrom=o,n&&(r.resumeFrom.preserveOpacity=!0),o.snapshot&&(r.snapshot=o.snapshot,r.snapshot.latestValues=o.animationValues||o.latestValues),r.root&&r.root.isUpdating&&(r.isLayoutDirty=!0);const{crossfade:a}=r.options;a===!1&&o.hide()}}exitAnimationComplete(){this.members.forEach(r=>{const{options:n,resumingFrom:o}=r;n.onExitComplete&&n.onExitComplete(),o&&o.options.onExitComplete&&o.options.onExitComplete()})}scheduleRender(){this.members.forEach(r=>{r.instance&&r.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function hLe(e,r,n){let o="";const a=e.x.translate/r.x,i=e.y.translate/r.y,l=n?.z||0;if((a||i||l)&&(o=`translate3d(${a}px, ${i}px, ${l}px) `),(r.x!==1||r.y!==1)&&(o+=`scale(${1/r.x}, ${1/r.y}) `),n){const{transformPerspective:d,rotate:u,rotateX:p,rotateY:f,skewX:g,skewY:v}=n;d&&(o=`perspective(${d}px) ${o}`),u&&(o+=`rotate(${u}deg) `),p&&(o+=`rotateX(${p}deg) `),f&&(o+=`rotateY(${f}deg) `),g&&(o+=`skewX(${g}deg) `),v&&(o+=`skewY(${v}deg) `)}const s=e.x.scale*r.x,c=e.y.scale*r.y;return(s!==1||c!==1)&&(o+=`scale(${s}, ${c})`),o||"none"}const ZE=["","X","Y","Z"],fLe=1e3;let mLe=0;function KE(e,r,n,o){const{latestValues:a}=r;a[e]&&(n[e]=a[e],r.setStaticValue(e,0),o&&(o[e]=0))}function yZ(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:r}=e.options;if(!r)return;const n=GY(r);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:a,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Dr,!(a||i))}const{parent:o}=e;o&&!o.hasCheckedOptimisedAppear&&yZ(o)}function vZ({attachResizeListener:e,defaultParent:r,measureScroll:n,checkIsScrollRoot:o,resetTransform:a}){return class{constructor(i={},l=r?.()){this.id=mLe++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(vLe),this.nodes.forEach(kLe),this.nodes.forEach(_Le),this.nodes.forEach(bLe)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=i,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0;for(let s=0;sthis.root.updateBlockedByResize=!1;Dr.read(()=>{u=window.innerWidth}),e(i,()=>{const f=window.innerWidth;f!==u&&(u=f,this.root.updateBlockedByResize=!0,d&&d(),d=POe(p,250),I3.hasAnimatedSinceResize&&(I3.hasAnimatedSinceResize=!1,this.nodes.forEach(wZ)))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&c&&(l||s)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:u,hasRelativeLayoutChanged:p,layout:f})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||c.getDefaultTransition()||zLe,{onLayoutAnimationStart:v,onLayoutAnimationComplete:w}=c.getProps(),x=!this.targetLayout||!fZ(this.targetLayout,f),k=!u&&p;if(this.options.layoutRoot||this.resumeFrom||k||u&&(x||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const C={...gE(g,"layout"),onPlay:v,onComplete:w};(c.shouldReduceMotion||this.options.layoutRoot)&&(C.delay=0,C.type=!1),this.startAnimation(C),this.setAnimationOrigin(d,k)}else u||wZ(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=f})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const i=this.getStack();i&&i.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),vd(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(SLe),this.animationId++)}getTransformTemplate(){const{visualElement:i}=this.options;return i&&i.getProps().transformTemplate}willUpdate(i=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&yZ(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Fo(this.snapshot.measuredBox.x)&&!Fo(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let s=0;s{const $=_/1e3;kZ(u.x,i.x,$),kZ(u.y,i.y,$),this.setTargetDelta(u),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(B3(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox),CLe(this.relativeTarget,this.relativeTargetOrigin,p,$),C&&uLe(this.relativeTarget,C)&&(this.isProjectionDirty=!1),C||(C=En()),il(C,this.relativeTarget)),v&&(this.animationValues=d,aLe(d,c,this.latestValues,$,k,x)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=$},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(i){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(vd(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Dr.update(()=>{I3.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=gp(0)),this.currentAnimation=bX(this.motionValue,[0,1e3],{...i,velocity:0,isSync:!0,onUpdate:l=>{this.mixTargetDelta(l),i.onUpdate&&i.onUpdate(l)},onStop:()=>{},onComplete:()=>{i.onComplete&&i.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const i=this.getStack();i&&i.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(fLe),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const i=this.getLead();let{targetWithTransforms:l,target:s,layout:c,latestValues:d}=i;if(!(!l||!s||!c)){if(this!==i&&this.layout&&c&&$Z(this.options.animationType,this.layout.layoutBox,c.layoutBox)){s=this.target||En();const u=Fo(this.layout.layoutBox.x);s.x.min=i.target.x.min,s.x.max=s.x.min+u;const p=Fo(this.layout.layoutBox.y);s.y.min=i.target.y.min,s.y.max=s.y.min+p}il(l,s),Qf(l,d),Oy(this.projectionDeltaWithTransform,this.layoutCorrected,l,d)}}registerSharedNode(i,l){this.sharedNodes.has(i)||this.sharedNodes.set(i,new pLe),this.sharedNodes.get(i).add(l);const s=l.options.initialPromotionConfig;l.promote({transition:s?s.transition:void 0,preserveFollowOpacity:s&&s.shouldPreserveFollowOpacity?s.shouldPreserveFollowOpacity(l):void 0})}isLead(){const i=this.getStack();return i?i.lead===this:!0}getLead(){const{layoutId:i}=this.options;return i?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:i}=this.options;return i?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:i}=this.options;if(i)return this.root.sharedNodes.get(i)}promote({needsReset:i,transition:l,preserveFollowOpacity:s}={}){const c=this.getStack();c&&c.promote(this,s),i&&(this.projectionDelta=void 0,this.needsReset=!0),l&&this.setOptions({transition:l})}relegate(){const i=this.getStack();return i?i.relegate(this):!1}resetSkewAndRotation(){const{visualElement:i}=this.options;if(!i)return;let l=!1;const{latestValues:s}=i;if((s.z||s.rotate||s.rotateX||s.rotateY||s.rotateZ||s.skewX||s.skewY)&&(l=!0),!l)return;const c={};s.z&&KE("z",i,c,this.animationValues);for(let d=0;di.currentAnimation?.stop()),this.root.nodes.forEach(bZ),this.root.sharedNodes.clear()}}}function gLe(e){e.updateLayout()}function yLe(e){const r=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&r&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:o}=e.layout,{animationType:a}=e.options,i=r.source!==e.layout.source;a==="size"?hi(u=>{const p=i?r.measuredBox[u]:r.layoutBox[u],f=Fo(p);p.min=n[u].min,p.max=p.min+f}):$Z(a,r.layoutBox,n)&&hi(u=>{const p=i?r.measuredBox[u]:r.layoutBox[u],f=Fo(n[u]);p.max=p.min+f,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[u].max=e.relativeTarget[u].min+f)});const l=em();Oy(l,n,r.layoutBox);const s=em();i?Oy(s,e.applyTransform(o,!0),r.measuredBox):Oy(s,n,r.layoutBox);const c=!uZ(l);let d=!1;if(!e.resumeFrom){const u=e.getClosestProjectingParent();if(u&&!u.resumeFrom){const{snapshot:p,layout:f}=u;if(p&&f){const g=En();B3(g,r.layoutBox,p.layoutBox);const v=En();B3(v,n,f.layoutBox),fZ(g,v)||(d=!0),u.options.layoutRoot&&(e.relativeTarget=v,e.relativeTargetOrigin=g,e.relativeParent=u)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:r,delta:s,layoutDelta:l,hasLayoutChanged:c,hasRelativeLayoutChanged:d})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function vLe(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function bLe(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function xLe(e){e.clearSnapshot()}function bZ(e){e.clearMeasurements()}function xZ(e){e.isLayoutDirty=!1}function wLe(e){const{visualElement:r}=e.options;r&&r.getProps().onBeforeLayoutMeasure&&r.notify("BeforeLayoutMeasure"),e.resetTransform()}function wZ(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function kLe(e){e.resolveTargetDelta()}function _Le(e){e.calcProjection()}function SLe(e){e.resetSkewAndRotation()}function ELe(e){e.removeLeadSnapshot()}function kZ(e,r,n){e.translate=Lr(r.translate,0,n),e.scale=Lr(r.scale,1,n),e.origin=r.origin,e.originPoint=r.originPoint}function _Z(e,r,n,o){e.min=Lr(r.min,n.min,o),e.max=Lr(r.max,n.max,o)}function CLe(e,r,n,o){_Z(e.x,r.x,n.x,o),_Z(e.y,r.y,n.y,o)}function $Le(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const zLe={duration:.45,ease:[.4,0,.1,1]},SZ=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),EZ=SZ("applewebkit/")&&!SZ("chrome/")?Math.round:di;function CZ(e){e.min=EZ(e.min),e.max=EZ(e.max)}function RLe(e){CZ(e.x),CZ(e.y)}function $Z(e,r,n){return e==="position"||e==="preserve-aspect"&&!OIe(mZ(r),mZ(n),.2)}function jLe(e){return e!==e.root&&e.scroll?.wasRoot}const TLe=vZ({attachResizeListener:(e,r)=>Ny(e,"resize",r),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),QE={current:void 0},zZ=vZ({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!QE.current){const e=new TLe({});e.mount(window),e.setOptions({layoutScroll:!0}),QE.current=e}return QE.current},resetTransform:(e,r)=>{e.style.transform=r!==void 0?r:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),ALe={pan:{Feature:QIe},drag:{Feature:KIe,ProjectionNode:zZ,MeasureLayout:JX}};function RZ(e,r,n){const{props:o}=e;e.animationState&&o.whileHover&&e.animationState.setActive("whileHover",n==="Start");const a="onHover"+n,i=o[a];i&&Dr.postRender(()=>i(r,Py(r)))}class DLe extends wd{mount(){const{current:r}=this.node;r&&(this.unmount=NBe(r,(n,o)=>(RZ(this.node,o,"Start"),a=>RZ(this.node,a,"End"))))}unmount(){}}class MLe extends wd{constructor(){super(...arguments),this.isActive=!1}onFocus(){let r=!1;try{r=this.node.current.matches(":focus-visible")}catch{r=!0}!r||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=ky(Ny(this.node.current,"focus",()=>this.onFocus()),Ny(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function jZ(e,r,n){const{props:o}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&o.whileTap&&e.animationState.setActive("whileTap",n==="Start");const a="onTap"+(n==="End"?"":n),i=o[a];i&&Dr.postRender(()=>i(r,Py(r)))}class NLe extends wd{mount(){const{current:r}=this.node;r&&(this.unmount=IBe(r,(n,o)=>(jZ(this.node,o,"Start"),(a,{success:i})=>jZ(this.node,a,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const JE=new WeakMap,eC=new WeakMap,PLe=e=>{const r=JE.get(e.target);r&&r(e)},BLe=e=>{e.forEach(PLe)};function OLe({root:e,...r}){const n=e||document;eC.has(n)||eC.set(n,{});const o=eC.get(n),a=JSON.stringify(r);return o[a]||(o[a]=new IntersectionObserver(BLe,{root:e,...r})),o[a]}function ILe(e,r,n){const o=OLe(r);return JE.set(e,n),o.observe(e),()=>{JE.delete(e),o.unobserve(e)}}const LLe={some:0,all:1};class FLe extends wd{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:r={}}=this.node.getProps(),{root:n,margin:o,amount:a="some",once:i}=r,l={root:n?n.current:void 0,rootMargin:o,threshold:typeof a=="number"?a:LLe[a]},s=c=>{const{isIntersecting:d}=c;if(this.isInView===d||(this.isInView=d,i&&!d&&this.hasEnteredView))return;d&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",d);const{onViewportEnter:u,onViewportLeave:p}=this.node.getProps(),f=d?u:p;f&&f(c)};return ILe(this.node.current,l,s)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:r,prevProps:n}=this.node;["amount","margin","root"].some(VLe(r,n))&&this.startObserver()}unmount(){}}function VLe({viewport:e={}},{viewport:r={}}={}){return n=>e[n]!==r[n]}const qLe={inView:{Feature:FLe},tap:{Feature:NLe},focus:{Feature:MLe},hover:{Feature:DLe}},HLe={layout:{ProjectionNode:zZ,MeasureLayout:JX}},ULe={renderer:xIe,...AIe,...qLe},WLe={...ULe,...ALe,...HLe};function TZ(e){const r=tm(()=>gp(e)),{isStatic:n}=S.useContext(vp);if(n){const[,o]=S.useState(e);S.useEffect(()=>r.on("change",o),[])}return r}function GLe(){!ME.current&&iX();const[e]=S.useState(z3.current);return e}function AZ(){const e=GLe(),{reducedMotion:r}=S.useContext(vp);return r==="never"?!1:r==="always"?!0:e}class YLe{constructor(){this.componentControls=new Set}subscribe(r){return this.componentControls.add(r),()=>this.componentControls.delete(r)}start(r,n){this.componentControls.forEach(o=>{o.start(r.nativeEvent||r,n)})}cancel(){this.componentControls.forEach(r=>{r.cancel()})}stop(){this.componentControls.forEach(r=>{r.stop()})}}const XLe=()=>new YLe;function ZLe(){return tm(XLe)}const tC=S.createContext(null);tC.displayName="ElementDetailsActorContext";const KLe=()=>{const e=S.useContext(tC);if(e===null)throw new Error("ElementDetailsActorRef is not provided");return e},fi=(e,r,n)=>{const o=a=>({[e]:"__ignore__",...r,...Mu(a)});return{recipeFn:(a,i=!0)=>{const l=sI({conditions:{shift:hI,finalize:pI,breakpoints:{keys:["base","xs","sm","md","lg","xl"]}},utility:{toHash:(c,d)=>d(c.join(":")),transform:(c,d)=>(w4e(e,n,a,c),d==="__ignore__"?{className:e}:(d=b8(d),{className:`${e}--${c}_${d}`}))}}),s=o(a);if(i){const c=E8(n,s);return Ge(l(s),fe(c))}return l(s)},getVariantProps:o,__getCompoundVariantCss__:a=>E8(n,o(a))}},os=(e,r)=>{if(e&&!r)return e;if(!e&&r)return r;const n=(...i)=>Ge(e(...i),r(...i)),o=_8(e.variantKeys,r.variantKeys),a=o.reduce((i,l)=>(i[l]=_8(e.variantMap[l],r.variantMap[l]),i),{});return Object.assign(n,{__recipe__:!0,__name__:`${e.__name__} ${r.__name__}`,raw:i=>i,variantKeys:o,variantMap:a,splitVariantProps(i){return Fn(i,o)}})},rC=fi("action-btn",{size:"md",radius:"md",variant:"filled"},[]),DZ={variant:["transparent","filled"],size:["sm","md"],radius:["sm","md"]},MZ=Object.keys(DZ),L3=Object.assign(Zn(rC.recipeFn),{__recipe__:!0,__name__:"actionBtn",__getCompoundVariantCss__:rC.__getCompoundVariantCss__,raw:e=>e,variantKeys:MZ,variantMap:DZ,merge(e){return os(this,e)},splitVariantProps(e){return Fn(e,MZ)},getVariantProps:rC.getVariantProps}),nC=fi("likec4-compound-node",{},[]),NZ={isTransparent:["false","true"],inverseColor:["true","false"],borderStyle:["solid","dashed","dotted","none"]},PZ=Object.keys(NZ),QLe=Object.assign(Zn(nC.recipeFn),{__recipe__:!0,__name__:"compoundNode",__getCompoundVariantCss__:nC.__getCompoundVariantCss__,raw:e=>e,variantKeys:PZ,variantMap:NZ,merge(e){return os(this,e)},splitVariantProps(e){return Fn(e,PZ)},getVariantProps:nC.getVariantProps}),oC=fi("likec4-edge-action-btn",{},[]),BZ={},OZ=Object.keys(BZ),JLe=Object.assign(Zn(oC.recipeFn),{__recipe__:!0,__name__:"edgeActionBtn",__getCompoundVariantCss__:oC.__getCompoundVariantCss__,raw:e=>e,variantKeys:OZ,variantMap:BZ,merge(e){return os(this,e)},splitVariantProps(e){return Fn(e,OZ)},getVariantProps:oC.getVariantProps}),aC=fi("likec4-edge-label",{pointerEvents:"all",isStepEdge:!1,cursor:"default"},[]),IZ={pointerEvents:["none","all"],cursor:["pointer","default"],isStepEdge:["false","true"]},LZ=Object.keys(IZ),eFe=Object.assign(Zn(aC.recipeFn),{__recipe__:!0,__name__:"edgeLabel",__getCompoundVariantCss__:aC.__getCompoundVariantCss__,raw:e=>e,variantKeys:LZ,variantMap:IZ,merge(e){return os(this,e)},splitVariantProps(e){return Fn(e,LZ)},getVariantProps:aC.getVariantProps}),FZ={},tFe=[],rFe=[["path","likec4-edge__path"],["pathBg","likec4-edge__pathBg"],["markersCtx","likec4-edge__markersCtx"],["middlePoint","likec4-edge__middlePoint"]],nFe=rFe.map(([e,r])=>[e,fi(r,FZ,k8(tFe,e))]),oFe=Zn((e={})=>Object.fromEntries(nFe.map(([r,n])=>[r,n.recipeFn(e)]))),VZ=[],aFe=e=>({...FZ,...Mu(e)}),iFe=Object.assign(oFe,{__recipe__:!1,__name__:"edgePath",raw:e=>e,classNameMap:{},variantKeys:VZ,variantMap:{},splitVariantProps(e){return Fn(e,VZ)},getVariantProps:aFe}),iC=fi("likec4-element-node-data",{},[]),qZ={},HZ=Object.keys(qZ),lFe=Object.assign(Zn(iC.recipeFn),{__recipe__:!0,__name__:"elementNodeData",__getCompoundVariantCss__:iC.__getCompoundVariantCss__,raw:e=>e,variantKeys:HZ,variantMap:qZ,merge(e){return os(this,e)},splitVariantProps(e){return Fn(e,HZ)},getVariantProps:iC.getVariantProps}),lC=fi("likec4-element-shape",{},[]),UZ={shapetype:["html","svg"]},WZ=Object.keys(UZ),GZ=Object.assign(Zn(lC.recipeFn),{__recipe__:!0,__name__:"elementShapeRecipe",__getCompoundVariantCss__:lC.__getCompoundVariantCss__,raw:e=>e,variantKeys:WZ,variantMap:UZ,merge(e){return os(this,e)},splitVariantProps(e){return Fn(e,WZ)},getVariantProps:lC.getVariantProps}),sC=fi("likec4-tag",{autoTextColor:!1},[]),YZ={autoTextColor:["false","true"]},XZ=Object.keys(YZ),sFe=Object.assign(Zn(sC.recipeFn),{__recipe__:!0,__name__:"likec4tag",__getCompoundVariantCss__:sC.__getCompoundVariantCss__,raw:e=>e,variantKeys:XZ,variantMap:YZ,merge(e){return os(this,e)},splitVariantProps(e){return Fn(e,XZ)},getVariantProps:sC.getVariantProps}),cC=fi("likec4-markdown-block",{uselikec4palette:!1,value:"markdown"},[]),ZZ={uselikec4palette:["true","false"],value:["markdown","plaintext"]},KZ=Object.keys(ZZ),cFe=Object.assign(Zn(cC.recipeFn),{__recipe__:!0,__name__:"markdownBlock",__getCompoundVariantCss__:cC.__getCompoundVariantCss__,raw:e=>e,variantKeys:KZ,variantMap:ZZ,merge(e){return os(this,e)},splitVariantProps(e){return Fn(e,KZ)},getVariantProps:cC.getVariantProps}),dC=fi("likec4-navigation-panel-icon",{variant:"default",type:"default"},[{type:"warning",variant:"filled",css:{backgroundColor:{base:"likec4.panel.action.warning.bg",_hover:"likec4.panel.action.warning.bg.hover"}}}]),QZ={variant:["default","filled"],type:["default","warning"]},JZ=Object.keys(QZ),eK=Object.assign(Zn(dC.recipeFn),{__recipe__:!0,__name__:"navigationPanelActionIcon",__getCompoundVariantCss__:dC.__getCompoundVariantCss__,raw:e=>e,variantKeys:JZ,variantMap:QZ,merge(e){return os(this,e)},splitVariantProps(e){return Fn(e,JZ)},getVariantProps:dC.getVariantProps}),uC=fi("likec4-overlay",{fullscreen:!1,withBackdrop:!0},[]),tK={fullscreen:["false","true"],withBackdrop:["false","true"]},rK=Object.keys(tK),dFe=Object.assign(Zn(uC.recipeFn),{__recipe__:!0,__name__:"overlay",__getCompoundVariantCss__:uC.__getCompoundVariantCss__,raw:e=>e,variantKeys:rK,variantMap:tK,merge(e){return os(this,e)},splitVariantProps(e){return Fn(e,rK)},getVariantProps:uC.getVariantProps}),nK={truncateLabel:!1},uFe=[],pFe=[["root","likec4-navlink__root"],["body","likec4-navlink__body"],["section","likec4-navlink__section"],["label","likec4-navlink__label"],["description","likec4-navlink__description"]],hFe=pFe.map(([e,r])=>[e,fi(r,nK,k8(uFe,e))]),fFe=Zn((e={})=>Object.fromEntries(hFe.map(([r,n])=>[r,n.recipeFn(e)]))),oK=["truncateLabel"],mFe=e=>({...nK,...Mu(e)}),gFe=Object.assign(fFe,{__recipe__:!1,__name__:"navigationLink",raw:e=>e,classNameMap:{},variantKeys:oK,variantMap:{truncateLabel:["true","false"]},splitVariantProps(e){return Fn(e,oK)},getVariantProps:mFe});function aK(){return cf()}function pC(e,r){return Dt(it(e),r??Or)}function hC(){return vr()}const yFe=e=>Math.round(e.transform[2]*100)/100;function vFe(){return Dt(yFe)}const bFe=e=>e.transform[2]<.2;function xFe(){return Dt(bFe)}const{abs:Ly,cos:nc,sin:om,acos:wFe,atan2:Fy,sqrt:kd,pow:mi}=Math;function Vy(e){return e<0?-mi(-e,.3333333333333333):mi(e,.3333333333333333)}const iK=Math.PI,F3=2*iK,_d=iK/2,kFe=1e-6,fC=Number.MAX_SAFE_INTEGER||9007199254740991,mC=Number.MIN_SAFE_INTEGER||-9007199254740991,_Fe={x:0,y:0,z:0},Ie={Tvalues:[-.06405689286260563,.06405689286260563,-.1911188674736163,.1911188674736163,-.3150426796961634,.3150426796961634,-.4337935076260451,.4337935076260451,-.5454214713888396,.5454214713888396,-.6480936519369755,.6480936519369755,-.7401241915785544,.7401241915785544,-.820001985973903,.820001985973903,-.8864155270044011,.8864155270044011,-.9382745520027328,.9382745520027328,-.9747285559713095,.9747285559713095,-.9951872199970213,.9951872199970213],Cvalues:[.12793819534675216,.12793819534675216,.1258374563468283,.1258374563468283,.12167047292780339,.12167047292780339,.1155056680537256,.1155056680537256,.10744427011596563,.10744427011596563,.09761865210411388,.09761865210411388,.08619016153195327,.08619016153195327,.0733464814110803,.0733464814110803,.05929858491543678,.05929858491543678,.04427743881741981,.04427743881741981,.028531388628933663,.028531388628933663,.0123412297999872,.0123412297999872],arcfn:function(e,r){const n=r(e);let o=n.x*n.x+n.y*n.y;return typeof n.z<"u"&&(o+=n.z*n.z),kd(o)},compute:function(e,r,n){if(e===0)return r[0].t=0,r[0];const o=r.length-1;if(e===1)return r[o].t=1,r[o];const a=1-e;let i=r;if(o===0)return r[0].t=e,r[0];if(o===1){const s={x:a*i[0].x+e*i[1].x,y:a*i[0].y+e*i[1].y,t:e};return n&&(s.z=a*i[0].z+e*i[1].z),s}if(o<4){let s=a*a,c=e*e,d,u,p,f=0;o===2?(i=[i[0],i[1],i[2],_Fe],d=s,u=a*e*2,p=c):o===3&&(d=s*a,u=s*e*3,p=a*c*3,f=e*c);const g={x:d*i[0].x+u*i[1].x+p*i[2].x+f*i[3].x,y:d*i[0].y+u*i[1].y+p*i[2].y+f*i[3].y,t:e};return n&&(g.z=d*i[0].z+u*i[1].z+p*i[2].z+f*i[3].z),g}const l=JSON.parse(JSON.stringify(r));for(;l.length>1;){for(let s=0;s1;a--,i--){const l=[];for(let s=0,c;s"u")e=.5;else if(e===0||e===1)return e;const n=mi(e,r)+mi(1-e,r),o=n-1;return Ly(o/n)},projectionratio:function(e,r){if(r!==2&&r!==3)return!1;if(typeof e>"u")e=.5;else if(e===0||e===1)return e;const n=mi(1-e,r),o=mi(e,r)+n;return n/o},lli8:function(e,r,n,o,a,i,l,s){const c=(e*o-r*n)*(a-l)-(e-n)*(a*s-i*l),d=(e*o-r*n)*(i-s)-(r-o)*(a*s-i*l),u=(e-n)*(i-s)-(r-o)*(a-l);return u==0?!1:{x:c/u,y:d/u}},lli4:function(e,r,n,o){const a=e.x,i=e.y,l=r.x,s=r.y,c=n.x,d=n.y,u=o.x,p=o.y;return Ie.lli8(a,i,l,s,c,d,u,p)},lli:function(e,r){return Ie.lli4(e,e.c,r,r.c)},makeline:function(e,r){return new Fr(e.x,e.y,(e.x+r.x)/2,(e.y+r.y)/2,r.x,r.y)},findbbox:function(e){let r=fC,n=fC,o=mC,a=mC;return e.forEach(function(i){const l=i.bbox();r>l.x.min&&(r=l.x.min),n>l.y.min&&(n=l.y.min),o0&&(u.c1=c,u.c2=d,u.s1=e,u.s2=n,i.push(u))})}),i},makeshape:function(e,r,n){const o=r.points.length,a=e.points.length,i=Ie.makeline(r.points[o-1],e.points[0]),l=Ie.makeline(e.points[a-1],r.points[0]),s={startcap:i,forward:e,back:r,endcap:l,bbox:Ie.findbbox([i,e,r,l])};return s.intersections=function(c){return Ie.shapeintersections(s,s.bbox,c,c.bbox,n)},s},getminmax:function(e,r,n){if(!n)return{min:0,max:0};let o=fC,a=mC,i,l;n.indexOf(0)===-1&&(n=[0].concat(n)),n.indexOf(1)===-1&&n.push(1);for(let s=0,c=n.length;sa&&(a=l[r]);return{min:o,mid:(o+a)/2,max:a,size:a-o}},align:function(e,r){const n=r.p1.x,o=r.p1.y,a=-Fy(r.p2.y-o,r.p2.x-n),i=function(l){return{x:(l.x-n)*nc(a)-(l.y-o)*om(a),y:(l.x-n)*om(a)+(l.y-o)*nc(a)}};return e.map(i)},roots:function(e,r){r=r||{p1:{x:0,y:0},p2:{x:1,y:0}};const n=e.length-1,o=Ie.align(e,r),a=function(A){return 0<=A&&A<=1};if(n===2){const A=o[0].y,R=o[1].y,T=o[2].y,O=A-2*R+T;if(O!==0){const P=-kd(R*R-A*T),L=-A+R,H=-(P+L)/O,M=-(-P+L)/O;return[H,M].filter(a)}else if(R!==T&&O===0)return[(2*R-T)/(2*R-2*T)].filter(a);return[]}const i=o[0].y,l=o[1].y,s=o[2].y,c=o[3].y;let d=-i+3*l-3*s+c,u=3*i-6*l+3*s,p=-3*i+3*l,f=i;if(Ie.approximately(d,0)){if(Ie.approximately(u,0))return Ie.approximately(p,0)?[]:[-f/p].filter(a);const A=kd(p*p-4*u*f),R=2*u;return[(A-p)/R,(-p-A)/R].filter(a)}u/=d,p/=d,f/=d;const g=(3*p-u*u)/3,v=g/3,w=(2*u*u*u-9*u*p+27*f)/27,x=w/2,k=x*x+v*v*v;let C,_,$,z,j;if(k<0){const A=-g/3,R=A*A*A,T=kd(R),O=-w/(2*T),P=O<-1?-1:O>1?1:O,L=wFe(P),H=Vy(T),M=2*H;return $=M*nc(L/3)-u/3,z=M*nc((L+F3)/3)-u/3,j=M*nc((L+2*F3)/3)-u/3,[$,z,j].filter(a)}else{if(k===0)return C=x<0?Vy(-x):-Vy(x),$=2*C-u/3,z=-C-u/3,[$,z].filter(a);{const A=kd(k);return C=Vy(-x+A),_=Vy(x+A),[C-_-u/3].filter(a)}}},droots:function(e){if(e.length===3){const r=e[0],n=e[1],o=e[2],a=r-2*n+o;if(a!==0){const i=-kd(n*n-r*o),l=-r+n,s=-(i+l)/a,c=-(-i+l)/a;return[s,c]}else if(n!==o&&a===0)return[(2*n-o)/(2*(n-o))];return[]}if(e.length===2){const r=e[0],n=e[1];return r!==n?[r/(r-n)]:[]}return[]},curvature:function(e,r,n,o,a){let i,l,s,c,d=0,u=0;const p=Ie.compute(e,r),f=Ie.compute(e,n),g=p.x*p.x+p.y*p.y;if(o?(i=kd(mi(p.y*f.z-f.y*p.z,2)+mi(p.z*f.x-f.z*p.x,2)+mi(p.x*f.y-f.x*p.y,2)),l=mi(g+p.z*p.z,3/2)):(i=p.x*f.y-p.y*f.x,l=mi(g,3/2)),i===0||l===0)return{k:0,r:0};if(d=i/l,u=l/i,!a){const v=Ie.curvature(e-.001,r,n,o,!0).k,w=Ie.curvature(e+.001,r,n,o,!0).k;c=(w-d+(d-v))/2,s=(Ly(w-d)+Ly(d-v))/2}return{k:d,r:u,dk:c,adk:s}},inflections:function(e){if(e.length<4)return[];const r=Ie.align(e,{p1:e[0],p2:e.slice(-1)[0]}),n=r[2].x*r[1].y,o=r[3].x*r[1].y,a=r[1].x*r[2].y,i=r[3].x*r[2].y,l=18*(-3*n+2*o+3*a-i),s=18*(3*n-o-3*a),c=18*(a-n);if(Ie.approximately(l,0)){if(!Ie.approximately(s,0)){let f=-c/s;if(0<=f&&f<=1)return[f]}return[]}const d=2*l;if(Ie.approximately(d,0))return[];const u=s*s-4*l*c;if(u<0)return[];const p=Math.sqrt(u);return[(p-s)/d,-(s+p)/d].filter(function(f){return 0<=f&&f<=1})},bboxoverlap:function(e,r){const n=["x","y"],o=n.length;for(let a=0,i,l,s,c;a=c)return!1;return!0},expandbox:function(e,r){r.x.mine.x.max&&(e.x.max=r.x.max),r.y.max>e.y.max&&(e.y.max=r.y.max),r.z&&r.z.max>e.z.max&&(e.z.max=r.z.max),e.x.mid=(e.x.min+e.x.max)/2,e.y.mid=(e.y.min+e.y.max)/2,e.z&&(e.z.mid=(e.z.min+e.z.max)/2),e.x.size=e.x.max-e.x.min,e.y.size=e.y.max-e.y.min,e.z&&(e.z.size=e.z.max-e.z.min)},pairiteration:function(e,r,n){const o=e.bbox(),a=r.bbox(),i=1e5,l=n||.5;if(o.x.size+o.y.sizej||j>A)&&(z+=F3),z>A&&(R=A,A=z,z=R)):A4){if(arguments.length!==1)throw new Error("Only new Bezier(point[]) is accepted for 4th and higher order curves");a=!0}}else if(i!==6&&i!==8&&i!==9&&i!==12&&arguments.length!==1)throw new Error("Only new Bezier(point[]) is accepted for 4th and higher order curves");const l=this._3d=!a&&(i===9||i===12)||r&&r[0]&&typeof r[0].z<"u",s=this.points=[];for(let g=0,v=l?3:2;gg+Hy(v.y),0)"u"&&(a=.5),a===0)return new Fr(n,n,o);if(a===1)return new Fr(r,n,n);const i=Fr.getABC(2,r,n,o,a);return new Fr(r,i.A,o)}static cubicFromPoints(r,n,o,a,i){typeof a>"u"&&(a=.5);const l=Fr.getABC(3,r,n,o,a);typeof i>"u"&&(i=Ie.dist(n,l.C));const s=i*(1-a)/a,c=Ie.dist(r,o),d=(o.x-r.x)/c,u=(o.y-r.y)/c,p=i*d,f=i*u,g=s*d,v=s*u,w={x:n.x-p,y:n.y-f},x={x:n.x+g,y:n.y+v},k=l.A,C={x:k.x+(w.x-k.x)/(1-a),y:k.y+(w.y-k.y)/(1-a)},_={x:k.x+(x.x-k.x)/a,y:k.y+(x.y-k.y)/a},$={x:r.x+(C.x-r.x)/a,y:r.y+(C.y-r.y)/a},z={x:o.x+(_.x-o.x)/(1-a),y:o.y+(_.y-o.y)/(1-a)};return new Fr(r,$,z,o)}static getUtils(){return Ie}getUtils(){return Fr.getUtils()}static get PolyBezier(){return qy}valueOf(){return this.toString()}toString(){return Ie.pointsToString(this.points)}toSVG(){if(this._3d)return!1;const r=this.points,n=r[0].x,o=r[0].y,a=["M",n,o,this.order===2?"Q":"C"];for(let i=1,l=r.length;i0}length(){return Ie.length(this.derivative.bind(this))}static getABC(r=2,n,o,a,i=.5){const l=Ie.projectionratio(i,r),s=1-l,c={x:l*n.x+s*a.x,y:l*n.y+s*a.y},d=Ie.abcratio(i,r);return{A:{x:o.x+(o.x-c.x)/d,y:o.y+(o.y-c.y)/d},B:o,C:c,S:n,E:a}}getABC(r,n){n=n||this.get(r);let o=this.points[0],a=this.points[this.order];return Fr.getABC(this.order,o,n,a,r)}getLUT(r){if(this.verify(),r=r||100,this._lut.length===r+1)return this._lut;this._lut=[],r++,this._lut=[];for(let n=0,o,a;n1?1:p,f=this.compute(p),f.t=p,f.d=d,f}get(r){return this.compute(r)}point(r){return this.points[r]}compute(r){return this.ratios?Ie.computeWithRatios(r,this.points,this.ratios,this._3d):Ie.compute(r,this.points,this._3d,this.ratios)}raise(){const r=this.points,n=[r[0]],o=r.length;for(let a=1,i,l;a1;){o=[];for(let l=0,s,c=n.length-1;l=0&&l<=1}),n=n.concat(r[o].sort(Ie.numberSort))}).bind(this)),r.values=n.sort(Ie.numberSort).filter(function(o,a){return n.indexOf(o)===a}),r}bbox(){const r=this.extrema(),n={};return this.dims.forEach((function(o){n[o]=Ie.getminmax(this,o,r[o])}).bind(this)),n}overlaps(r){const n=this.bbox(),o=r.bbox();return Ie.bboxoverlap(n,o)}offset(r,n){if(typeof n<"u"){const o=this.get(r),a=this.normal(r),i={c:o,n:a,x:o.x+a.x*n,y:o.y+a.y*n};return this._3d&&(i.z=o.z+a.z*n),i}if(this._linear){const o=this.normal(0),a=this.points.map(function(i){const l={x:i.x+r*o.x,y:i.y+r*o.y};return i.z&&o.z&&(l.z=i.z+r*o.z),l});return[new Fr(a)]}return this.reduce().map(function(o){return o._linear?o.offset(r)[0]:o.scale(r)})}simple(){if(this.order===3){const a=Ie.angle(this.points[0],this.points[3],this.points[1]),i=Ie.angle(this.points[0],this.points[3],this.points[2]);if(a>0&&i<0||a<0&&i>0)return!1}const r=this.normal(0),n=this.normal(1);let o=r.x*n.x+r.y*n.y;return this._3d&&(o+=r.z*n.z),Hy(CFe(o))<$Fe/3}reduce(){let r,n=0,o=0,a=.01,i,l=[],s=[],c=this.extrema().values;for(c.indexOf(0)===-1&&(c=[0].concat(c)),c.indexOf(1)===-1&&c.push(1),n=c[0],r=1;r(1-s/a)*n+s/a*o);return new Fr(this.points.map((l,s)=>({x:l.x+r.x*i[s],y:l.y+r.y*i[s]})))}scale(r){const n=this.order;let o=!1;if(typeof r=="function"&&(o=r),o&&n===2)return this.raise().scale(o);const a=this.clockwise,i=this.points;if(this._linear)return this.translate(this.normal(0),o?o(0):r,o?o(1):r);const l=o?o(0):r,s=o?o(1):r,c=[this.offset(0,10),this.offset(1,10)],d=[],u=Ie.lli4(c[0],c[0].c,c[1],c[1].c);if(!u)throw new Error("cannot scale this curve. Try reducing it first.");return[0,1].forEach(function(p){const f=d[p*n]=Ie.copy(i[p*n]);f.x+=(p?s:l)*c[p].n.x,f.y+=(p?s:l)*c[p].n.y}),o?([0,1].forEach(function(p){if(!(n===2&&p)){var f=i[p+1],g={x:f.x-u.x,y:f.y-u.y},v=o?o((p+1)/n):r;o&&!a&&(v=-v);var w=Uy(g.x*g.x+g.y*g.y);g.x/=w,g.y/=w,d[p+1]={x:f.x+v*g.x,y:f.y+v*g.y}}}),new Fr(d)):([0,1].forEach(p=>{if(n===2&&p)return;const f=d[p*n],g=this.derivative(p),v={x:f.x+g.x,y:f.y+g.y};d[p+1]=Ie.lli4(f,v,u,i[p+1])}),new Fr(d))}outline(r,n,o,a){if(n=n===void 0?r:n,this._linear){const z=this.normal(0),j=this.points[0],A=this.points[this.points.length-1];let R,T,O;o===void 0&&(o=r,a=n),R={x:j.x+z.x*r,y:j.y+z.y*r},O={x:A.x+z.x*o,y:A.y+z.y*o},T={x:(R.x+O.x)/2,y:(R.y+O.y)/2};const P=[R,T,O];R={x:j.x-z.x*n,y:j.y-z.y*n},O={x:A.x-z.x*a,y:A.y-z.y*a},T={x:(R.x+O.x)/2,y:(R.y+O.y)/2};const L=[O,T,R],H=Ie.makeline(L[2],P[0]),M=Ie.makeline(P[2],L[0]),V=[H,new Fr(P),M,new Fr(L)];return new qy(V)}const i=this.reduce(),l=i.length,s=[];let c=[],d,u=0,p=this.length();const f=typeof o<"u"&&typeof a<"u";function g(z,j,A,R,T){return function(O){const P=R/A,L=(R+T)/A,H=j-z;return Ie.map(O,0,1,z+P*H,z+L*H)}}i.forEach(function(z){const j=z.length();f?(s.push(z.scale(g(r,o,p,u,j))),c.push(z.scale(g(-n,-a,p,u,j)))):(s.push(z.scale(r)),c.push(z.scale(-n))),u+=j}),c=c.map(function(z){return d=z.points,d[3]?z.points=[d[3],d[2],d[1],d[0]]:z.points=[d[2],d[1],d[0]],z}).reverse();const v=s[0].points[0],w=s[l-1].points[s[l-1].points.length-1],x=c[l-1].points[c[l-1].points.length-1],k=c[0].points[0],C=Ie.makeline(x,v),_=Ie.makeline(w,k),$=[C].concat(s).concat([_]).concat(c);return new qy($)}outlineshapes(r,n,o){n=n||r;const a=this.outline(r,n).curves,i=[];for(let l=1,s=a.length;l1,c.endcap.virtual=l{var s=this.get(l);return Ie.between(s.x,n,a)&&Ie.between(s.y,o,i)})}selfintersects(r){const n=this.reduce(),o=n.length-2,a=[];for(let i=0,l,s,c;i0&&(i=i.concat(s))}),i}arcs(r){return r=r||.5,this._iterate(r,[])}_error(r,n,o,a){const i=(a-o)/4,l=this.get(o+i),s=this.get(a-i),c=Ie.dist(r,n),d=Ie.dist(r,l),u=Ie.dist(r,s);return Hy(d-c)+Hy(u-c)}_iterate(r,n){let o=0,a=1,i;do{i=0,a=1;let l=this.get(o),s,c,d,u,p=!1,f=!1,g,v=a,w=1;do if(f=p,u=d,v=(o+a)/2,s=this.get(v),c=this.get(a),d=Ie.getccenter(l,s,c),d.interval={start:o,end:a},p=this._error(d,l,o,a)<=r,g=f&&!p,g||(w=a),p){if(a>=1){if(d.interval.end=w=1,u=d,a>1){let x={x:d.x+d.r*SFe(d.e),y:d.y+d.r*EFe(d.e)};d.e+=Ie.angle({x:d.x,y:d.y},x,this.get(1))}break}a=a+(a-o)/2}else a=v;while(!g&&i++<100);if(i>=100)break;u=u||d,n.push(u),o=w}while(a<1);return n}}function cK(e,r){return e.x===r.x&&e.y===r.y&&e.width===r.width&&e.height===r.height}const gC=e=>({x:Math.round(e.internals.positionAbsolute.x),y:Math.round(e.internals.positionAbsolute.y),width:e.measured?.width??e.width??e.initialWidth??0,height:e.measured?.height??e.height??e.initialHeight??0});function yC(e){const{width:r,height:n}=_o(e),{x:o,y:a}=e.internals.positionAbsolute;return{x:Math.round(o+r/2),y:Math.round(a+n/2)}}function V3(e,r,n=0){const{width:o,height:a}=e,i=ko.center(e),l=Qr(r.x,r.y).subtract(i),s=(n+o/2)/l.x,c=(n+a/2)/l.y,d=Math.min(Math.abs(s),Math.abs(c));return Qr(l).multiply(d).add(i).round()}function q3(e){let[r,...n]=e;He(r,"start should be defined");const o=[];for(;xn(n,3);){const[a,i,l,...s]=n,c=new Fr(r[0],r[1],a[0],a[1],i[0],i[1],l[0],l[1]),d=c.inflections();d.length===0&&d.push(.5),d.forEach(u=>{const{x:p,y:f}=c.get(u);o.push({x:Math.round(p),y:Math.round(f)})}),n=s,r=l}return He(n.length===0,"all points should be consumed"),He(xn(o,1),"at least one control point should be generated"),o}function H3(e,r){const n=v7(e)?{x:e[0],y:e[1]}:e,o=v7(r)?{x:r[0],y:r[1]}:r;return zFe(n,o)<2.1}function zFe(e,r){return Math.hypot(r.x-e.x,r.y-e.y)}function nn(e){return e.stopPropagation()}function RFe(e){let[r,...n]=e;He(r,"start should be defined");let o=`M ${r[0]},${r[1]}`;for(;xn(n,3);){const[a,i,l,...s]=n;o=o+` C ${a[0]},${a[1]} ${i[0]},${i[1]} ${l[0]},${l[1]}`,n=s}return He(n.length===0,"all points should be consumed"),o}const U3=S.forwardRef(({tag:e,cursor:r,className:n,style:o,...a},i)=>{const l=uMe(e);return y.jsxs(hr,{ref:i,"data-likec4-tag":e,className:Ge(sFe({autoTextColor:WO(l)}),n),...a,style:{cursor:r,...o},children:[y.jsx("span",{children:"#"}),y.jsx("span",{children:e})]})}),jFe=(e,r)=>e.data.width===r.data.width&&tt(e.data.tags,r.data.tags)&&(e.data.hovered??!1)===(r.data.hovered??!1),Wy=S.memo(({id:e,data:{tags:r,width:n,hovered:o=!1}})=>{const{hovered:a,ref:i}=A7(),{hovered:l,ref:s}=A7(),[c,d]=B$e(!1,o?120:300);S.useEffect(()=>{d(x=>x?o||a||l:o&&(a||l))},[a,l,o]);const u=vFe(),p=u>1.2,f=Nt(),g=x=>{f.send({type:"tag.highlight",tag:x})},v=S.useCallback(()=>{f.send({type:"tag.unhighlight"})},[]);if(!r||r.length===0)return null;const w=Math.max(Math.round(n*u)-10,200);return y.jsxs(y.Fragment,{children:[y.jsx("div",{ref:i,className:Ge("likec4-element-tags",qn({pointerEvents:"all",gap:"1",alignItems:"flex-end",justifyItems:"stretch",position:"absolute",width:"100%",bottom:"0",left:"0",padding:"1",_shapeCylinder:{bottom:"[5px]"},_shapeStorage:{bottom:"[5px]"},_shapeQueue:{bottom:"0",paddingLeft:"[14px]"}})),onClick:nn,children:r.map(x=>y.jsx(hr,{"data-likec4-tag":x,className:fe({layerStyle:"likec4.tag",flex:"1",display:"flex",alignItems:"center",justifyContent:"center",maxWidth:50,height:5,_whenHovered:{height:12,borderRadius:4,transitionDelay:".08s"},transition:"fast"})},e+"#"+x))}),y.jsx(g7,{isVisible:c,align:"start",position:Ue.Bottom,children:y.jsx(Ir,{ref:s,css:{gap:"0.5",alignItems:"baseline",flexWrap:"wrap",pb:"sm",translate:"auto",x:"[-8px]",maxWidth:w},children:r.map(x=>y.jsx(U3,{tag:x,cursor:"pointer",className:fe({userSelect:"none",...p&&{fontSize:"lg",borderRadius:"[4px]",px:"1.5"}}),onClick:k=>{k.stopPropagation(),f.openSearch(`#${x}`)},onMouseEnter:()=>g(x),onMouseLeave:v},x))})})]})},jFe);Wy.displayName="ElementTags";const TFe=S.forwardRef((e,r)=>y.jsx("svg",{height:"24",width:"24",fill:"currentColor",...e,viewBox:"0 0 24 24",ref:r,children:y.jsx("path",{d:"M12 1C5.923 1 1 5.923 1 12c0 4.867 3.149 8.979 7.521 10.436.55.096.756-.233.756-.522 0-.262-.013-1.128-.013-2.049-2.764.509-3.479-.674-3.699-1.292-.124-.317-.66-1.293-1.127-1.554-.385-.207-.936-.715-.014-.729.866-.014 1.485.797 1.691 1.128.99 1.663 2.571 1.196 3.204.907.096-.715.385-1.196.701-1.471-2.448-.275-5.005-1.224-5.005-5.432 0-1.196.426-2.186 1.128-2.956-.111-.275-.496-1.402.11-2.915 0 0 .921-.288 3.024 1.128a10.193 10.193 0 0 1 2.75-.371c.936 0 1.871.123 2.75.371 2.104-1.43 3.025-1.128 3.025-1.128.605 1.513.221 2.64.111 2.915.701.77 1.127 1.747 1.127 2.956 0 4.222-2.571 5.157-5.019 5.432.399.344.743 1.004.743 2.035 0 1.471-.014 2.654-.014 3.025 0 .289.206.632.756.522C19.851 20.979 23 16.854 23 12c0-6.077-4.922-11-11-11Z"})})),AFe=[["path",{d:"M5 12l5 5l10 -10",key:"svg-0"}]],dK=wt("outline","check","Check",AFe),DFe=[["path",{d:"M7 7m0 2.667a2.667 2.667 0 0 1 2.667 -2.667h8.666a2.667 2.667 0 0 1 2.667 2.667v8.666a2.667 2.667 0 0 1 -2.667 2.667h-8.666a2.667 2.667 0 0 1 -2.667 -2.667z",key:"svg-0"}],["path",{d:"M4.012 16.737a2.005 2.005 0 0 1 -1.012 -1.737v-10c0 -1.1 .9 -2 2 -2h10c.75 0 1.158 .385 1.5 1",key:"svg-1"}]],MFe=wt("outline","copy","Copy",DFe),uK="https://github.com/",vC=S.forwardRef(({value:e,className:r,...n},o)=>{const a=e.url.includes("://")?e.url:new window.URL(e.url,window.location.href).toString();let i=a.startsWith(uK);return y.jsx(Ks,{ref:o,variant:"default",radius:"sm",size:"sm",tt:"none",leftSection:e.title?y.jsx(y.Fragment,{children:e.title}):null,rightSection:y.jsx(WU,{value:a,timeout:1500,children:({copy:l,copied:s})=>y.jsx(lr,{className:fe({opacity:s?1:.45,transition:"fast",_hover:{opacity:1}}),tabIndex:-1,size:"20",variant:s?"light":"transparent",color:s?"teal":"gray","data-active":s,onClick:c=>{c.stopPropagation(),c.preventDefault(),l()},children:s?y.jsx(dK,{}):y.jsx(MFe,{stroke:2.5})})}),...n,className:Ge(r,"group"),classNames:{root:fe({flexWrap:"nowrap",minHeight:24,maxWidth:500,userSelect:"all",pr:"0",backgroundColor:{base:"transparent",_hover:{base:"mantine.colors.gray[1]",_dark:"mantine.colors.dark[5]"}}}),section:fe({'&:is([data-position="left"])':{color:"mantine.colors.dimmed",userSelect:"none",pointerEvents:"none",_groupHover:{color:"[var(--badge-color)]",opacity:.7}}})},children:y.jsxs(gd.a,{href:a,target:"_blank",style:{color:"var(--badge-color)",cursor:"pointer"},css:{transition:"fast",opacity:{base:.7,_hover:1},textDecoration:{base:"none",_hover:"underline"}},children:[i&&y.jsx(TFe,{height:"12",width:"12",style:{verticalAlign:"middle",marginRight:"4px"}}),i?a.replace(uK,""):a]})})});function NFe(){return S.useContext(lS)}function PFe(){const e=S.useContext(lS);if(!e)throw new Error("No LikeC4ViewModel in context found");return e}const W3="--_blur",G3="--_opacity",BFe=fe({boxSizing:"border-box",margin:"0",padding:"0",position:"fixed",inset:"0",width:"100vw",height:"100vh",maxWidth:"100vw",maxHeight:"100vh",background:"transparent",border:"transparent",_backdrop:{backdropFilter:"auto",backdropBlur:`var(${W3})`,backgroundColor:`[rgb(36 36 36 / var(${G3}, 5%))]`}}),OFe=fe({position:"absolute",pointerEvents:"all",display:"flex",flexDirection:"column",padding:"4",gap:"lg",justifyContent:"stretch",color:"mantine.colors.text",backgroundColor:{base:"mantine.colors.body",_dark:"mantine.colors.dark[6]"},boxShadow:"md",overflow:"hidden",border:"none",backgroundImage:` linear-gradient(180deg, - color-mix(in srgb, var(--likec4-palette-fill) 60%, transparent), - color-mix(in srgb, var(--likec4-palette-fill) 20%, transparent) 8px, - color-mix(in srgb, var(--likec4-palette-fill) 14%, transparent) 20px, + color-mix(in oklab, var(--likec4-palette-fill) 60%, transparent), + color-mix(in oklab, var(--likec4-palette-fill) 20%, transparent) 8px, + color-mix(in oklab, var(--likec4-palette-fill) 14%, transparent) 20px, transparent 80px ), linear-gradient(180deg, var(--likec4-palette-fill), var(--likec4-palette-fill) 4px, transparent 4px) - `,"& .react-flow__attribution":{display:"none"}}),$We=be({flex:0,cursor:"move"}),PWe=be({display:"block",fontFamily:"likec4.element",fontOpticalSizing:"auto",fontStyle:"normal",fontWeight:600,fontSize:"24px",lineHeight:"xs"}),$T="40px",MWe=be({flex:`0 0 ${$T}`,height:$T,width:$T,display:"flex",alignItems:"center",justifyContent:"center",alignSelf:"flex-start",cursor:"move",_dark:{mixBlendMode:"hard-light"},"& :where(svg, img)":{width:"100%",height:"auto",maxHeight:"100%",pointerEvents:"none",filter:` + `,"& .react-flow__attribution":{display:"none"}}),IFe=fe({flex:0,cursor:"move"}),LFe=fe({display:"block",fontFamily:"likec4.element",fontOpticalSizing:"auto",fontStyle:"normal",fontWeight:600,fontSize:"24px",lineHeight:"xs"}),bC="40px",FFe=fe({flex:`0 0 ${bC}`,height:bC,width:bC,display:"flex",alignItems:"center",justifyContent:"center",alignSelf:"flex-start",cursor:"move",_dark:{mixBlendMode:"hard-light"},"& :where(svg, img)":{width:"100%",height:"auto",maxHeight:"100%",pointerEvents:"none",filter:` drop-shadow(0 0 3px rgb(0 0 0 / 10%)) drop-shadow(0 1px 8px rgb(0 0 0 / 5%)) drop-shadow(1px 1px 16px rgb(0 0 0 / 2%)) - `},"& img":{objectFit:"contain"}}),Hw="--view-title-color",Vw="--icon-color",zWe=be({width:"100%",background:"mantine.colors.body",borderRadius:"sm",padding:"[10px 8px]",transition:"fast",border:"1px dashed",borderColor:"mantine.colors.defaultBorder",[Hw]:"{colors.mantine.colors.dark[1]}",_hover:{background:"mantine.colors.defaultHover",[Vw]:"{colors.mantine.colors.dark[1]}",[Hw]:"{colors.mantine.colors.defaultColor}"},_dark:{background:"mantine.colors.dark[6]"},_light:{[Vw]:"{colors.mantine.colors.gray[6]}",[Hw]:"{colors.mantine.colors.gray[7]}",_hover:{[Vw]:"{colors.mantine.colors.gray[7]}"}},"& .mantine-ThemeIcon-root":{transition:"fast",color:`[var(${Vw}, {colors.mantine.colors.dark[2]})]`,"--ti-size":"22px",_hover:{color:"mantine.colors.defaultColor"}},"& > *":{transition:"all 130ms {easings.inOut}"},"&:hover > *":{transitionTimingFunction:"out",transform:"translateX(1.6px)"}}),IWe=be({transition:"fast",color:`[var(${Hw}, {colors.mantine.colors.gray[7]})]`,fontSize:"15px",fontWeight:500,lineHeight:"1.4"}),OWe=be({flex:1,display:"flex",flexDirection:"column",justifyContent:"stretch",overflow:"hidden",gap:"sm"}),jWe=be({background:"mantine.colors.gray[1]",borderRadius:"sm",flexWrap:"nowrap",gap:"1.5",padding:"1",_dark:{background:"mantine.colors.dark[7]"}}),LWe=be({fontSize:"xs",fontWeight:500,flexGrow:1,padding:"[6px 8px]",transition:"fast",borderRadius:"sm",color:"mantine.colors.gray[7]",_hover:{transitionTimingFunction:"out",color:"mantine.colors.defaultColor",background:"mantine.colors.gray[3]"},"&[data-active]":{transition:"none",background:"mantine.colors.white",shadow:"xs",color:"mantine.colors.defaultColor"},_dark:{color:"mantine.colors.dark[1]",_hover:{color:"mantine.colors.white",background:"mantine.colors.dark[6]"},"&:is([data-active])":{color:"mantine.colors.white",background:"mantine.colors.dark[5]"}}}),BWe=be({flex:1,overflow:"hidden",position:"relative","&:not(:has(.mantine-ScrollArea-root))":{paddingLeft:"1",paddingRight:"1"},"& .mantine-ScrollArea-root":{width:"100%",height:"100%","& > div":{paddingLeft:"1",paddingRight:"1"}}}),FWe=be({flex:1,display:"grid",gridTemplateColumns:"min-content 1fr",gridAutoRows:"min-content max-content",gap:"[24px 20px]",alignItems:"baseline",justifyItems:"stretch"}),HWe=be({justifySelf:"end",textAlign:"right",userSelect:"none"}),VWe=be({position:"absolute",width:"14px",height:"14px",border:"3.5px solid",borderColor:"mantine.colors.dark[3]",borderTop:"none",borderLeft:"none",borderRadius:"2px",bottom:"0.5",right:"0.5",transition:"fast",cursor:"se-resize",_hover:{borderWidth:"4px",borderColor:"mantine.colors.dark[1]"}}),qWe=[["path",{d:"M6 9l6 6l6 -6",key:"svg-0"}]],PT=Nt("outline","chevron-down","ChevronDown",qWe),UWe=[["path",{d:"M9 6l6 6l-6 6",key:"svg-0"}]],qd=Nt("outline","chevron-right","ChevronRight",UWe);function EJ({children:e}){return y.jsx(y.Fragment,{children:e})}function SJ({value:e,isExpanded:r}){const[n,o]=E.useState(!1),a=E.useRef(null);return E.useEffect(()=>{a.current&&o(a.current.scrollWidth>a.current.clientWidth)},[e]),y.jsx(co,{label:n&&!r?e:null,multiline:!0,w:300,withinPortal:!0,children:y.jsx(ft,{ref:a,component:"div",className:be({fontSize:"sm",padding:"xs",userSelect:"all",color:"mantine.colors.text",lineHeight:1.4,whiteSpace:r?"pre-wrap":"nowrap",overflow:r?"visible":"hidden",textOverflow:r?"unset":"ellipsis",wordBreak:r?"break-word":"normal",minWidth:0,width:"100%"}),children:e})})}function WWe({values:e,isExpanded:r,onToggle:n}){return r?y.jsx(Xo,{gap:"xs",children:e.map((o,a)=>y.jsxs(mc,{align:"center",gap:"xs",children:[y.jsx(ft,{className:be({fontSize:"xs",color:"mantine.colors.gray[5]",fontWeight:500,flexShrink:0,_dark:{color:"mantine.colors.dark[3]"}}),children:"•"}),y.jsx(Re,{className:be({minHeight:"32px",display:"flex",alignItems:"center",flex:1}),children:y.jsx(SJ,{value:o,isExpanded:!0})})]},a))}):y.jsx(Re,{className:be({minHeight:"32px",display:"flex",alignItems:"center",padding:"xs",gap:"xs",flexWrap:"wrap",minWidth:0,overflow:"hidden"}),children:e.map((o,a)=>y.jsxs(mc,{align:"center",gap:"xs",style:{minWidth:0},children:[y.jsx(ft,{className:be({fontSize:"sm",padding:"[4px 8px]",backgroundColor:"mantine.colors.white",color:"mantine.colors.text",borderRadius:"sm",border:"1px solid",borderColor:"mantine.colors.gray[3]",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"min(200px, 100%)",minWidth:"60px",flex:"0 1 auto",userSelect:"all",_dark:{backgroundColor:"mantine.colors.dark[9]",color:"mantine.colors.text",borderColor:"mantine.colors.dark[4]"}}),title:o,children:o}),a *":{transition:"all 130ms {easings.inOut}"},"&:hover > *":{transitionTimingFunction:"out",transform:"translateX(1.6px)"}}),qFe=fe({transition:"fast",color:`[var(${Y3}, {colors.mantine.colors.gray[7]})]`,fontSize:"15px",fontWeight:500,lineHeight:"1.4"}),HFe=fe({flex:1,display:"flex",flexDirection:"column",justifyContent:"stretch",overflow:"hidden",gap:"sm"}),UFe=fe({background:"mantine.colors.gray[1]",borderRadius:"sm",flexWrap:"nowrap",gap:"1.5",padding:"1",_dark:{background:"mantine.colors.dark[7]"}}),WFe=fe({fontSize:"xs",fontWeight:500,flexGrow:1,padding:"[6px 8px]",transition:"fast",borderRadius:"sm",color:"mantine.colors.gray[7]",_hover:{transitionTimingFunction:"out",color:"mantine.colors.defaultColor",background:"mantine.colors.gray[3]"},"&[data-active]":{transition:"none",background:"mantine.colors.white",shadow:"xs",color:"mantine.colors.defaultColor"},_dark:{color:"mantine.colors.dark[1]",_hover:{color:"mantine.colors.white",background:"mantine.colors.dark[6]"},"&:is([data-active])":{color:"mantine.colors.white",background:"mantine.colors.dark[5]"}}}),GFe=fe({flex:1,overflow:"hidden",position:"relative","&:not(:has(.mantine-ScrollArea-root))":{paddingLeft:"1",paddingRight:"1"},"& .mantine-ScrollArea-root":{width:"100%",height:"100%","& > div":{paddingLeft:"1",paddingRight:"1"}}}),YFe=fe({flex:1,display:"grid",gridTemplateColumns:"min-content 1fr",gridAutoRows:"min-content max-content",gap:"[24px 20px]",alignItems:"baseline",justifyItems:"stretch"}),XFe=fe({justifySelf:"end",textAlign:"right",userSelect:"none"}),ZFe=fe({position:"absolute",width:"14px",height:"14px",border:"3.5px solid",borderColor:"mantine.colors.dark[3]",borderTop:"none",borderLeft:"none",borderRadius:"2px",bottom:"0.5",right:"0.5",transition:"fast",cursor:"se-resize",_hover:{borderWidth:"4px",borderColor:"mantine.colors.dark[1]"}}),KFe=[["path",{d:"M6 9l6 6l6 -6",key:"svg-0"}]],xC=wt("outline","chevron-down","ChevronDown",KFe),QFe=[["path",{d:"M9 6l6 6l-6 6",key:"svg-0"}]],Sd=wt("outline","chevron-right","ChevronRight",QFe);function pK({children:e}){return y.jsx(y.Fragment,{children:e})}function hK({value:e,isExpanded:r}){const[n,o]=S.useState(!1),a=S.useRef(null);return S.useEffect(()=>{a.current&&o(a.current.scrollWidth>a.current.clientWidth)},[e]),y.jsx(_n,{label:n&&!r?e:null,multiline:!0,w:300,withinPortal:!0,children:y.jsx(at,{ref:a,component:"div",className:fe({fontSize:"sm",padding:"xs",userSelect:"all",color:"mantine.colors.text",lineHeight:1.4,whiteSpace:r?"pre-wrap":"nowrap",overflow:r?"visible":"hidden",textOverflow:r?"unset":"ellipsis",wordBreak:r?"break-word":"normal",minWidth:0,width:"100%"}),children:e})})}function JFe({values:e,isExpanded:r}){return r?y.jsx(Io,{gap:"xs",children:e.map((n,o)=>y.jsxs(Zs,{align:"center",gap:"xs",children:[y.jsx(at,{className:fe({fontSize:"xs",color:"mantine.colors.gray[5]",fontWeight:500,flexShrink:0,_dark:{color:"mantine.colors.dark[3]"}}),children:"•"}),y.jsx(Se,{className:fe({minHeight:"32px",display:"flex",alignItems:"center",flex:1}),children:y.jsx(hK,{value:n,isExpanded:!0})})]},o))}):y.jsx(Se,{className:fe({minHeight:"32px",display:"flex",alignItems:"center",padding:"xs",gap:"xs",flexWrap:"wrap",minWidth:0,overflow:"hidden"}),children:e.map((n,o)=>y.jsxs(Zs,{align:"center",gap:"xs",style:{minWidth:0},children:[y.jsx(at,{className:fe({fontSize:"sm",padding:"[4px 8px]",backgroundColor:"mantine.colors.white",color:"mantine.colors.text",borderRadius:"sm",border:"1px solid",borderColor:"mantine.colors.gray[3]",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"min(200px, 100%)",minWidth:"60px",flex:"0 1 auto",userSelect:"all",_dark:{backgroundColor:"mantine.colors.dark[9]",color:"mantine.colors.text",borderColor:"mantine.colors.dark[4]"}}),title:n,children:n}),ol.trim()).filter(Boolean):[r],o=n.length>1,[a,i]=E.useState(!1),s=()=>{i(!a)};return y.jsxs(y.Fragment,{children:[o?y.jsx(Er,{onClick:s,className:be({fontSize:"xs",color:"mantine.colors.dimmed",justifySelf:"end",textAlign:"right",userSelect:"none",display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"xs",padding:"[4px 8px]",borderRadius:"sm",whiteSpace:"nowrap",transition:"all 150ms ease",_hover:{backgroundColor:"mantine.colors.gray[1]",color:"mantine.colors.primary[6]",_dark:{backgroundColor:"mantine.colors.dark[7]",color:"mantine.colors.primary[4]"}}}),children:y.jsxs(mc,{align:"center",gap:"xs",children:[y.jsxs(ft,{component:"span",size:"xs",fw:700,children:[e,":"]}),y.jsx(ft,{component:"span",className:be({fontSize:"xs",fontWeight:500,color:"mantine.colors.gray[6]",backgroundColor:"mantine.colors.gray[1]",padding:"[1px 4px]",borderRadius:"xs",_dark:{color:"mantine.colors.dark[2]",backgroundColor:"mantine.colors.dark[6]"}}),children:n.length}),a?y.jsx(PT,{size:12}):y.jsx(qd,{size:12})]})}):y.jsxs(ft,{component:"div",className:be({fontSize:"xs",color:"mantine.colors.dimmed",justifySelf:"end",textAlign:"right",userSelect:"none",whiteSpace:"nowrap",padding:"[4px 8px]",fontWeight:700}),children:[e,":"]}),y.jsx(Re,{className:be({justifySelf:"stretch",alignSelf:"start"}),children:o?y.jsx(WWe,{values:n,isExpanded:a,onToggle:s}):y.jsx(Re,{className:be({minHeight:"32px",display:"flex",alignItems:"center"}),children:y.jsx(SJ,{value:n[0]||"",isExpanded:a})})})]})}const GWe=be({"&[data-level='1']":{marginBottom:"sm"}}),XWe=be({cursor:"default",marginTop:"0",marginBottom:"0"}),CJ=be({transition:"fast",color:"mantine.colors.gray[7]",_dark:{color:"mantine.colors.dark[1]"},"& > *":{transition:"fast"},_hover:{transitionTimingFunction:"out","& > :not([data-no-transform])":{transitionTimingFunction:"out",transform:"translateX(1px)"}}}),KWe=et(CJ),ZWe=et(CJ,be({cursor:"pointer",width:"100%",justifyContent:"stretch",flexWrap:"nowrap",height:"36px",paddingInlineStart:"[16px]",paddingInlineEnd:"2.5",borderRadius:"sm",alignItems:"center",color:"mantine.colors.gray[7]",_dark:{color:"mantine.colors.gray.lightColor"},_hover:{background:"mantine.colors.gray.lightHover"},"& .tabler-icon":{transition:"fast",width:"90%",opacity:.65}})),QWe=[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0",key:"svg-0"}],["path",{d:"M12 9h.01",key:"svg-1"}],["path",{d:"M11 12h1v4h1",key:"svg-2"}]],MT=Nt("outline","info-circle","InfoCircle",QWe),JWe=[["path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-0"}],["path",{d:"M12 12m-5 0a5 5 0 1 0 10 0a5 5 0 1 0 -10 0",key:"svg-1"}],["path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0",key:"svg-2"}]],eYe=Nt("outline","target","Target",JWe),tYe=[["path",{d:"M4 8v-2a2 2 0 0 1 2 -2h2",key:"svg-0"}],["path",{d:"M4 16v2a2 2 0 0 0 2 2h2",key:"svg-1"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v2",key:"svg-2"}],["path",{d:"M16 20h2a2 2 0 0 0 2 -2v-2",key:"svg-3"}],["path",{d:"M8 11a3 3 0 1 0 6 0a3 3 0 0 0 -6 0",key:"svg-4"}],["path",{d:"M16 16l-2.5 -2.5",key:"svg-5"}]],Ri=Nt("outline","zoom-scan","ZoomScan",tYe),rYe=({node:e})=>y.jsxs(pn,{className:KWe,gap:6,align:"baseline",wrap:"nowrap",children:[y.jsxs(ft,{component:"div",fz:11,c:"dimmed",children:[e.kind,":"]}),y.jsx(ft,{component:"div",fz:"sm",fw:"500",children:e.title})]}),nYe=({instance:e})=>{const r=Qt(),n=r.currentView.id,o=[...e.views()];return y.jsxs(pn,{className:ZWe,gap:4,children:[y.jsx(Ba,{color:"gray",variant:"transparent",size:"xs",flex:0,children:y.jsx(eYe,{stroke:1.2})}),y.jsx(ft,{component:"div",fz:"sm",fw:"500",flex:"1 1 100%",children:e.title}),y.jsxs(Re,{onClick:Cn,pos:"relative","data-no-transform":!0,flex:0,children:[o.length===0&&y.jsx(Kn,{size:"compact-xs",variant:"transparent",color:"gray",disabled:!0,children:"no views"}),o.length>0&&y.jsxs(hn,{shadow:"md",withinPortal:!1,position:"bottom-start",offset:0,closeOnClickOutside:!0,clickOutsideEvents:["pointerdown","mousedown","click"],closeOnEscape:!0,trapFocus:!0,children:[y.jsx(hn.Target,{children:y.jsxs(Kn,{size:"compact-xs",variant:"subtle",color:"gray",children:[o.length," view",o.length>1?"s":""]})}),y.jsx(hn.Dropdown,{children:o.map(a=>y.jsx(hn.Item,{px:"xs",py:4,disabled:a.id===n,leftSection:y.jsx(Ba,{size:"sm",variant:"transparent",color:"gray",children:y.jsx(Ri,{stroke:1.8,opacity:.65})}),styles:{itemSection:{marginInlineEnd:Pe(8)}},onClick:i=>{i.stopPropagation(),r.navigateTo(a.id)},children:a.title},a.id))})]})]})]})},oYe=()=>{},aYe=E.memo(({elementFqn:e})=>{const r=Ko().element(e),n=[...r.deployments()],o=G0({multiple:!1});o.setHoveredNode=oYe;const a=E.useMemo(()=>{let i=[],s=new Map;for(const l of r.deployments()){let c={label:y.jsx(nYe,{instance:l}),value:l.id,type:"instance",children:[]};s.set(l.id,c);let d=l.parent;for(;d;){let u=s.get(d.id);if(u){u.children.push(c);break}u={label:y.jsx(rYe,{node:d}),value:d.id,type:"node",children:[c]},s.set(d.id,u),c=u,d=d.parent}!d&&!i.includes(c)&&i.push(c)}return i},[r]);return E.useEffect(()=>{o.expandAllNodes()},[a]),n.length===0?y.jsx(F2,{variant:"light",color:"gray",icon:y.jsx(MT,{}),children:"This element does not have any deployments"}):y.jsx(hm,{levelOffset:"sm",allowRangeSelection:!1,classNames:{node:GWe,label:XWe},styles:{root:{position:"relative",width:"min-content",minWidth:300}},data:a,tree:o,renderNode:({node:i,selected:s,elementProps:l,hasChildren:c})=>y.jsx(Re,{...l,style:{...!c&&{marginBottom:Pe(4)}},children:c?y.jsx(Kn,{fullWidth:!0,color:"gray",variant:s?"transparent":"subtle",size:"xs",justify:"flex-start",styles:{root:{position:"unset",paddingInlineStart:Pe(16)}},children:i.label}):i.label})})}),iYe=()=>{},TJ=(e,r)=>{if(e===r)return!0;if(e.length!==r.length)return!1;for(const[n,o]of e.entries())if(!(o===r[n]||an(o,r[n])))return!1;return!0};function qp(e,r,n,o){const a=IF();jEe(a?iYe:e,r,TJ,o)}function sYe(){const e=typeof window<"u"&&typeof window.devicePixelRatio=="number"?window.devicePixelRatio:1;return ds(Math.floor(e),{min:1,max:4})}let qw;function Ud(e){return qw??=sYe(),qw<2?Math.round(e):Math.round(e*qw)/qw}function lYe(e){switch(e){case"dots":return cs.Dots;case"lines":return cs.Lines;case"cross":return cs.Cross;default:Zi(e)}}const cYe=(e,r)=>typeof e.background=="string"&&typeof r.background=="string"?e.background===r.background:lt(e.background,r.background),AJ=E.memo(({background:e})=>typeof e=="string"?y.jsx(Pq,{variant:lYe(e),size:2,gap:20}):y.jsx(Pq,{...e}),cYe);AJ.displayName="Background";const RJ=(e,r)=>(e.data.dimmed??!1)===r?e:{...e,data:{...e.data,dimmed:r}};function dYe(e,r){return r!==void 0?RJ(e,r):n=>RJ(n,e)}const NJ=(e,r)=>(e.data.hovered??!1)===r?e:{...e,data:{...e.data,hovered:r}};function uYe(e,r){return r!==void 0?NJ(e,r):n=>NJ(n,e)}function DJ(e,r){return CNe(e.data,r)?e:{...e,data:{...e.data,...r}}}function pYe(e,r){return r!==void 0?DJ(e,r):n=>DJ(n,e)}const cr={setDimmed:dYe,setHovered:uYe,setData:pYe},_l={Compound:1,Edge:20,Element:20,Max:30},_s=.05,zT=3,Uw={default:"16px",withControls:{top:"58px",left:"16px",right:"16px",bottom:"16px"}};function IT({nodes:e,edges:r,onEdgesChange:n,onNodesChange:o,className:a,pannable:i=!0,zoomable:s=!0,nodesSelectable:l=!0,nodesDraggable:c=!1,background:d="dots",children:u,colorMode:h,fitViewPadding:f=0,fitView:g=!0,zoomOnDoubleClick:b=!1,onViewportResize:x,onMoveEnd:w,onNodeMouseEnter:k,onNodeMouseLeave:C,onEdgeMouseEnter:_,onEdgeMouseLeave:T,...A}){const R=E.useMemo(()=>({minZoom:_s,maxZoom:1,padding:f,includeHiddenNodes:!1}),[f]),D=d!=="transparent"&&d!=="solid",N=fWe(),P=AT(),{colorScheme:O}=yPe();return h||(h=O==="auto"?"system":O),y.jsxs(mRe,{colorMode:h,nodes:e,edges:r,className:et(d==="transparent"&&"bg-transparent",a),...N&&{"data-likec4-zoom-small":!0},zoomOnPinch:s,zoomOnScroll:!i&&s,...!s&&{zoomActivationKeyCode:null},zoomOnDoubleClick:b,maxZoom:s?zT:1,minZoom:s?_s:1,fitView:g,fitViewOptions:R,preventScrolling:s||i,defaultMarkerColor:"var(--xy-edge-stroke)",noDragClassName:"nodrag",noPanClassName:"nopan",noWheelClassName:"nowheel",panOnScroll:i,panOnDrag:i,...!i&&{panActivationKeyCode:null,selectionKeyCode:null},elementsSelectable:l,nodesFocusable:c||l,edgesFocusable:!1,nodesDraggable:c,nodeDragThreshold:4,nodeClickDistance:3,paneClickDistance:3,elevateNodesOnSelect:!1,selectNodesOnDrag:!1,onNodesChange:o,onEdgesChange:n,onMoveEnd:kt((F,{x:L,y:U,zoom:M})=>{const V=Ud(L),I=Ud(U);(L!==V||U!==I)&&P.setState({transform:[V,I,M]}),w?.(F,{x:V,y:I,zoom:M})}),onNodeMouseEnter:kt((F,L)=>{if(k){k(F,L);return}o([{id:L.id,type:"replace",item:cr.setHovered(L,!0)}])}),onNodeMouseLeave:kt((F,L)=>{if(C){C(F,L);return}o([{id:L.id,type:"replace",item:cr.setHovered(L,!1)}])}),onEdgeMouseEnter:kt((F,L)=>{if(_){_(F,L);return}n([{id:L.id,type:"replace",item:cr.setHovered(L,!0)}])}),onEdgeMouseLeave:kt((F,L)=>{if(T){T(F,L);return}n([{id:L.id,type:"replace",item:cr.setHovered(L,!1)}])}),onNodeDoubleClick:Cn,onEdgeDoubleClick:Cn,...A,children:[D&&y.jsx(AJ,{background:d}),x&&y.jsx(fYe,{onViewportResize:x}),u]})}const hYe=({width:e,height:r})=>(e||1)*(r||1),fYe=({onViewportResize:e})=>{const r=qt(hYe);return qp(e,[r]),null},$J=E.createContext(null);function PJ(){return bt(E.useContext($J),"No RelationshipsBrowserActorContext")}function Ww(e,r=an){const n=PJ();return fn(n,e,r)}function Ny(){const e=PJ();return E.useMemo(()=>({actor:e,get rootElementId(){return`relationships-browser-${e.sessionId.replaceAll(":","_")}`},getState:()=>e.getSnapshot().context,send:e.send,updateView:r=>{e.getSnapshot().status==="active"&&e.send({type:"update.view",layouted:r})},changeScope:r=>{e.send({type:"change.scope",scope:r})},navigateTo:(r,n)=>{e.send({type:"navigate.to",subject:r,fromNode:n})},fitDiagram:()=>{e.send({type:"fitDiagram"})},close:()=>{e._parent?e._parent?.send({type:"close",actorId:e.id}):e.send({type:"close"})}}),[e])}var OT,MJ;function jT(){if(MJ)return OT;MJ=1;var e="\0",r="\0",n="";class o{_isDirected=!0;_isMultigraph=!1;_isCompound=!1;_label;_defaultNodeLabelFn=()=>{};_defaultEdgeLabelFn=()=>{};_nodes={};_in={};_preds={};_out={};_sucs={};_edgeObjs={};_edgeLabels={};_nodeCount=0;_edgeCount=0;_parent;_children;constructor(u){u&&(this._isDirected=Object.hasOwn(u,"directed")?u.directed:!0,this._isMultigraph=Object.hasOwn(u,"multigraph")?u.multigraph:!1,this._isCompound=Object.hasOwn(u,"compound")?u.compound:!1),this._isCompound&&(this._parent={},this._children={},this._children[r]={})}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(u){return this._label=u,this}graph(){return this._label}setDefaultNodeLabel(u){return this._defaultNodeLabelFn=u,typeof u!="function"&&(this._defaultNodeLabelFn=()=>u),this}nodeCount(){return this._nodeCount}nodes(){return Object.keys(this._nodes)}sources(){var u=this;return this.nodes().filter(h=>Object.keys(u._in[h]).length===0)}sinks(){var u=this;return this.nodes().filter(h=>Object.keys(u._out[h]).length===0)}setNodes(u,h){var f=arguments,g=this;return u.forEach(function(b){f.length>1?g.setNode(b,h):g.setNode(b)}),this}setNode(u,h){return Object.hasOwn(this._nodes,u)?(arguments.length>1&&(this._nodes[u]=h),this):(this._nodes[u]=arguments.length>1?h:this._defaultNodeLabelFn(u),this._isCompound&&(this._parent[u]=r,this._children[u]={},this._children[r][u]=!0),this._in[u]={},this._preds[u]={},this._out[u]={},this._sucs[u]={},++this._nodeCount,this)}node(u){return this._nodes[u]}hasNode(u){return Object.hasOwn(this._nodes,u)}removeNode(u){var h=this;if(Object.hasOwn(this._nodes,u)){var f=g=>h.removeEdge(h._edgeObjs[g]);delete this._nodes[u],this._isCompound&&(this._removeFromParentsChildList(u),delete this._parent[u],this.children(u).forEach(function(g){h.setParent(g)}),delete this._children[u]),Object.keys(this._in[u]).forEach(f),delete this._in[u],delete this._preds[u],Object.keys(this._out[u]).forEach(f),delete this._out[u],delete this._sucs[u],--this._nodeCount}return this}setParent(u,h){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(h===void 0)h=r;else{h+="";for(var f=h;f!==void 0;f=this.parent(f))if(f===u)throw new Error("Setting "+h+" as parent of "+u+" would create a cycle");this.setNode(h)}return this.setNode(u),this._removeFromParentsChildList(u),this._parent[u]=h,this._children[h][u]=!0,this}_removeFromParentsChildList(u){delete this._children[this._parent[u]][u]}parent(u){if(this._isCompound){var h=this._parent[u];if(h!==r)return h}}children(u=r){if(this._isCompound){var h=this._children[u];if(h)return Object.keys(h)}else{if(u===r)return this.nodes();if(this.hasNode(u))return[]}}predecessors(u){var h=this._preds[u];if(h)return Object.keys(h)}successors(u){var h=this._sucs[u];if(h)return Object.keys(h)}neighbors(u){var h=this.predecessors(u);if(h){const g=new Set(h);for(var f of this.successors(u))g.add(f);return Array.from(g.values())}}isLeaf(u){var h;return this.isDirected()?h=this.successors(u):h=this.neighbors(u),h.length===0}filterNodes(u){var h=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});h.setGraph(this.graph());var f=this;Object.entries(this._nodes).forEach(function([x,w]){u(x)&&h.setNode(x,w)}),Object.values(this._edgeObjs).forEach(function(x){h.hasNode(x.v)&&h.hasNode(x.w)&&h.setEdge(x,f.edge(x))});var g={};function b(x){var w=f.parent(x);return w===void 0||h.hasNode(w)?(g[x]=w,w):w in g?g[w]:b(w)}return this._isCompound&&h.nodes().forEach(x=>h.setParent(x,b(x))),h}setDefaultEdgeLabel(u){return this._defaultEdgeLabelFn=u,typeof u!="function"&&(this._defaultEdgeLabelFn=()=>u),this}edgeCount(){return this._edgeCount}edges(){return Object.values(this._edgeObjs)}setPath(u,h){var f=this,g=arguments;return u.reduce(function(b,x){return g.length>1?f.setEdge(b,x,h):f.setEdge(b,x),x}),this}setEdge(){var u,h,f,g,b=!1,x=arguments[0];typeof x=="object"&&x!==null&&"v"in x?(u=x.v,h=x.w,f=x.name,arguments.length===2&&(g=arguments[1],b=!0)):(u=x,h=arguments[1],f=arguments[3],arguments.length>2&&(g=arguments[2],b=!0)),u=""+u,h=""+h,f!==void 0&&(f=""+f);var w=s(this._isDirected,u,h,f);if(Object.hasOwn(this._edgeLabels,w))return b&&(this._edgeLabels[w]=g),this;if(f!==void 0&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(u),this.setNode(h),this._edgeLabels[w]=b?g:this._defaultEdgeLabelFn(u,h,f);var k=l(this._isDirected,u,h,f);return u=k.v,h=k.w,Object.freeze(k),this._edgeObjs[w]=k,a(this._preds[h],u),a(this._sucs[u],h),this._in[h][w]=k,this._out[u][w]=k,this._edgeCount++,this}edge(u,h,f){var g=arguments.length===1?c(this._isDirected,arguments[0]):s(this._isDirected,u,h,f);return this._edgeLabels[g]}edgeAsObj(){const u=this.edge(...arguments);return typeof u!="object"?{label:u}:u}hasEdge(u,h,f){var g=arguments.length===1?c(this._isDirected,arguments[0]):s(this._isDirected,u,h,f);return Object.hasOwn(this._edgeLabels,g)}removeEdge(u,h,f){var g=arguments.length===1?c(this._isDirected,arguments[0]):s(this._isDirected,u,h,f),b=this._edgeObjs[g];return b&&(u=b.v,h=b.w,delete this._edgeLabels[g],delete this._edgeObjs[g],i(this._preds[h],u),i(this._sucs[u],h),delete this._in[h][g],delete this._out[u][g],this._edgeCount--),this}inEdges(u,h){var f=this._in[u];if(f){var g=Object.values(f);return h?g.filter(b=>b.v===h):g}}outEdges(u,h){var f=this._out[u];if(f){var g=Object.values(f);return h?g.filter(b=>b.w===h):g}}nodeEdges(u,h){var f=this.inEdges(u,h);if(f)return f.concat(this.outEdges(u,h))}}function a(d,u){d[u]?d[u]++:d[u]=1}function i(d,u){--d[u]||delete d[u]}function s(d,u,h,f){var g=""+u,b=""+h;if(!d&&g>b){var x=g;g=b,b=x}return g+n+b+n+(f===void 0?e:f)}function l(d,u,h,f){var g=""+u,b=""+h;if(!d&&g>b){var x=g;g=b,b=x}var w={v:g,w:b};return f&&(w.name=f),w}function c(d,u){return s(d,u.v,u.w,u.name)}return OT=o,OT}var zJ,IJ;function mYe(){return IJ||(IJ=1,zJ="2.2.4"),zJ}var OJ,jJ;function gYe(){return jJ||(jJ=1,OJ={Graph:jT(),version:mYe()}),OJ}var LT,LJ;function yYe(){if(LJ)return LT;LJ=1;var e=jT();LT={write:r,read:a};function r(i){var s={options:{directed:i.isDirected(),multigraph:i.isMultigraph(),compound:i.isCompound()},nodes:n(i),edges:o(i)};return i.graph()!==void 0&&(s.value=structuredClone(i.graph())),s}function n(i){return i.nodes().map(function(s){var l=i.node(s),c=i.parent(s),d={v:s};return l!==void 0&&(d.value=l),c!==void 0&&(d.parent=c),d})}function o(i){return i.edges().map(function(s){var l=i.edge(s),c={v:s.v,w:s.w};return s.name!==void 0&&(c.name=s.name),l!==void 0&&(c.value=l),c})}function a(i){var s=new e(i.options).setGraph(i.value);return i.nodes.forEach(function(l){s.setNode(l.v,l.value),l.parent&&s.setParent(l.v,l.parent)}),i.edges.forEach(function(l){s.setEdge({v:l.v,w:l.w,name:l.name},l.value)}),s}return LT}var BT,BJ;function bYe(){if(BJ)return BT;BJ=1,BT=e;function e(r){var n={},o=[],a;function i(s){Object.hasOwn(n,s)||(n[s]=!0,a.push(s),r.successors(s).forEach(i),r.predecessors(s).forEach(i))}return r.nodes().forEach(function(s){a=[],i(s),a.length&&o.push(a)}),o}return BT}var FT,FJ;function HJ(){if(FJ)return FT;FJ=1;class e{_arr=[];_keyIndices={};size(){return this._arr.length}keys(){return this._arr.map(function(n){return n.key})}has(n){return Object.hasOwn(this._keyIndices,n)}priority(n){var o=this._keyIndices[n];if(o!==void 0)return this._arr[o].priority}min(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key}add(n,o){var a=this._keyIndices;if(n=String(n),!Object.hasOwn(a,n)){var i=this._arr,s=i.length;return a[n]=s,i.push({key:n,priority:o}),this._decrease(s),!0}return!1}removeMin(){this._swap(0,this._arr.length-1);var n=this._arr.pop();return delete this._keyIndices[n.key],this._heapify(0),n.key}decrease(n,o){var a=this._keyIndices[n];if(o>this._arr[a].priority)throw new Error("New priority is greater than current priority. Key: "+n+" Old: "+this._arr[a].priority+" New: "+o);this._arr[a].priority=o,this._decrease(a)}_heapify(n){var o=this._arr,a=2*n,i=a+1,s=n;a>1,!(o[i].priority1;function n(a,i,s,l){return o(a,String(i),s||r,l||function(c){return a.outEdges(c)})}function o(a,i,s,l){var c={},d=new e,u,h,f=function(g){var b=g.v!==u?g.v:g.w,x=c[b],w=s(g),k=h.distance+w;if(w<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+g+" Weight: "+w);k0&&(u=d.removeMin(),h=c[u],h.distance!==Number.POSITIVE_INFINITY);)l(u).forEach(f);return c}return HT}var VT,UJ;function vYe(){if(UJ)return VT;UJ=1;var e=qJ();VT=r;function r(n,o,a){return n.nodes().reduce(function(i,s){return i[s]=e(n,s,o,a),i},{})}return VT}var qT,WJ;function YJ(){if(WJ)return qT;WJ=1,qT=e;function e(r){var n=0,o=[],a={},i=[];function s(l){var c=a[l]={onStack:!0,lowlink:n,index:n++};if(o.push(l),r.successors(l).forEach(function(h){Object.hasOwn(a,h)?a[h].onStack&&(c.lowlink=Math.min(c.lowlink,a[h].index)):(s(h),c.lowlink=Math.min(c.lowlink,a[h].lowlink))}),c.lowlink===c.index){var d=[],u;do u=o.pop(),a[u].onStack=!1,d.push(u);while(l!==u);i.push(d)}}return r.nodes().forEach(function(l){Object.hasOwn(a,l)||s(l)}),i}return qT}var UT,GJ;function xYe(){if(GJ)return UT;GJ=1;var e=YJ();UT=r;function r(n){return e(n).filter(function(o){return o.length>1||o.length===1&&n.hasEdge(o[0],o[0])})}return UT}var WT,XJ;function wYe(){if(XJ)return WT;XJ=1,WT=r;var e=()=>1;function r(o,a,i){return n(o,a||e,i||function(s){return o.outEdges(s)})}function n(o,a,i){var s={},l=o.nodes();return l.forEach(function(c){s[c]={},s[c][c]={distance:0},l.forEach(function(d){c!==d&&(s[c][d]={distance:Number.POSITIVE_INFINITY})}),i(c).forEach(function(d){var u=d.v===c?d.w:d.v,h=a(d);s[c][u]={distance:h,predecessor:c}})}),l.forEach(function(c){var d=s[c];l.forEach(function(u){var h=s[u];l.forEach(function(f){var g=h[c],b=d[f],x=h[f],w=g.distance+b.distance;wa.successors(h):h=>a.neighbors(h),c=s==="post"?r:n,d=[],u={};return i.forEach(h=>{if(!a.hasNode(h))throw new Error("Graph does not have node: "+h);c(h,l,u,d)}),d}function r(a,i,s,l){for(var c=[[a,!1]];c.length>0;){var d=c.pop();d[1]?l.push(d[0]):Object.hasOwn(s,d[0])||(s[d[0]]=!0,c.push([d[0],!0]),o(i(d[0]),u=>c.push([u,!1])))}}function n(a,i,s,l){for(var c=[a];c.length>0;){var d=c.pop();Object.hasOwn(s,d)||(s[d]=!0,l.push(d),o(i(d),u=>c.push(u)))}}function o(a,i){for(var s=a.length;s--;)i(a[s],s,a);return a}return XT}var KT,tee;function _Ye(){if(tee)return KT;tee=1;var e=eee();KT=r;function r(n,o){return e(n,o,"post")}return KT}var ZT,ree;function EYe(){if(ree)return ZT;ree=1;var e=eee();ZT=r;function r(n,o){return e(n,o,"pre")}return ZT}var QT,nee;function SYe(){if(nee)return QT;nee=1;var e=jT(),r=HJ();QT=n;function n(o,a){var i=new e,s={},l=new r,c;function d(h){var f=h.v===c?h.w:h.v,g=l.priority(f);if(g!==void 0){var b=a(h);b0;){if(c=l.removeMin(),Object.hasOwn(s,c))i.setEdge(c,s[c]);else{if(u)throw new Error("Input graph is not connected: "+o);u=!0}o.nodeEdges(c).forEach(d)}return i}return QT}var oee,aee;function CYe(){return aee||(aee=1,oee={components:bYe(),dijkstra:qJ(),dijkstraAll:vYe(),findCycles:xYe(),floydWarshall:wYe(),isAcyclic:kYe(),postorder:_Ye(),preorder:EYe(),prim:SYe(),tarjan:YJ(),topsort:ZJ()}),oee}var JT,iee;function Es(){if(iee)return JT;iee=1;var e=gYe();return JT={Graph:e.Graph,json:yYe(),alg:CYe(),version:e.version},JT}var eA,see;function TYe(){if(see)return eA;see=1;class e{constructor(){let a={};a._next=a._prev=a,this._sentinel=a}dequeue(){let a=this._sentinel,i=a._prev;if(i!==a)return r(i),i}enqueue(a){let i=this._sentinel;a._prev&&a._next&&r(a),a._next=i._next,i._next._prev=a,i._next=a,a._prev=i}toString(){let a=[],i=this._sentinel,s=i._prev;for(;s!==i;)a.push(JSON.stringify(s,n)),s=s._prev;return"["+a.join(", ")+"]"}}function r(o){o._prev._next=o._next,o._next._prev=o._prev,delete o._next,delete o._prev}function n(o,a){if(o!=="_next"&&o!=="_prev")return a}return eA=e,eA}var tA,lee;function AYe(){if(lee)return tA;lee=1;let e=Es().Graph,r=TYe();tA=o;let n=()=>1;function o(d,u){if(d.nodeCount()<=1)return[];let h=s(d,u||n);return a(h.graph,h.buckets,h.zeroIdx).flatMap(f=>d.outEdges(f.v,f.w))}function a(d,u,h){let f=[],g=u[u.length-1],b=u[0],x;for(;d.nodeCount();){for(;x=b.dequeue();)i(d,u,h,x);for(;x=g.dequeue();)i(d,u,h,x);if(d.nodeCount()){for(let w=u.length-2;w>0;--w)if(x=u[w].dequeue(),x){f=f.concat(i(d,u,h,x,!0));break}}}return f}function i(d,u,h,f,g){let b=g?[]:void 0;return d.inEdges(f.v).forEach(x=>{let w=d.edge(x),k=d.node(x.v);g&&b.push({v:x.v,w:x.w}),k.out-=w,l(u,h,k)}),d.outEdges(f.v).forEach(x=>{let w=d.edge(x),k=x.w,C=d.node(k);C.in-=w,l(u,h,C)}),d.removeNode(f.v),b}function s(d,u){let h=new e,f=0,g=0;d.nodes().forEach(w=>{h.setNode(w,{v:w,in:0,out:0})}),d.edges().forEach(w=>{let k=h.edge(w.v,w.w)||0,C=u(w),_=k+C;h.setEdge(w.v,w.w,_),g=Math.max(g,h.node(w.v).out+=C),f=Math.max(f,h.node(w.w).in+=C)});let b=c(g+f+3).map(()=>new r),x=f+1;return h.nodes().forEach(w=>{l(b,x,h.node(w))}),{graph:h,buckets:b,zeroIdx:x}}function l(d,u,h){h.out?h.in?d[h.out-h.in+u].enqueue(h):d[d.length-1].enqueue(h):d[0].enqueue(h)}function c(d){const u=[];for(let h=0;hP.setNode(O,N.node(O))),N.edges().forEach(O=>{let F=P.edge(O.v,O.w)||{weight:0,minlen:1},L=N.edge(O);P.setEdge(O.v,O.w,{weight:F.weight+L.weight,minlen:Math.max(F.minlen,L.minlen)})}),P}function o(N){let P=new e({multigraph:N.isMultigraph()}).setGraph(N.graph());return N.nodes().forEach(O=>{N.children(O).length||P.setNode(O,N.node(O))}),N.edges().forEach(O=>{P.setEdge(O,N.edge(O))}),P}function a(N){let P=N.nodes().map(O=>{let F={};return N.outEdges(O).forEach(L=>{F[L.w]=(F[L.w]||0)+N.edge(L).weight}),F});return D(N.nodes(),P)}function i(N){let P=N.nodes().map(O=>{let F={};return N.inEdges(O).forEach(L=>{F[L.v]=(F[L.v]||0)+N.edge(L).weight}),F});return D(N.nodes(),P)}function s(N,P){let O=N.x,F=N.y,L=P.x-O,U=P.y-F,M=N.width/2,V=N.height/2;if(!L&&!U)throw new Error("Not possible to find intersection inside of the rectangle");let I,H;return Math.abs(U)*M>Math.abs(L)*V?(U<0&&(V=-V),I=V*L/U,H=V):(L<0&&(M=-M),I=M,H=M*U/L),{x:O+I,y:F+H}}function l(N){let P=T(b(N)+1).map(()=>[]);return N.nodes().forEach(O=>{let F=N.node(O),L=F.rank;L!==void 0&&(P[L][F.order]=O)}),P}function c(N){let P=N.nodes().map(F=>{let L=N.node(F).rank;return L===void 0?Number.MAX_VALUE:L}),O=g(Math.min,P);N.nodes().forEach(F=>{let L=N.node(F);Object.hasOwn(L,"rank")&&(L.rank-=O)})}function d(N){let P=N.nodes().map(M=>N.node(M).rank),O=g(Math.min,P),F=[];N.nodes().forEach(M=>{let V=N.node(M).rank-O;F[V]||(F[V]=[]),F[V].push(M)});let L=0,U=N.graph().nodeRankFactor;Array.from(F).forEach((M,V)=>{M===void 0&&V%U!==0?--L:M!==void 0&&L&&M.forEach(I=>N.node(I).rank+=L)})}function u(N,P,O,F){let L={width:0,height:0};return arguments.length>=4&&(L.rank=O,L.order=F),r(N,"border",L,P)}function h(N,P=f){const O=[];for(let F=0;Ff){const O=h(P);return N.apply(null,O.map(F=>N.apply(null,F)))}else return N.apply(null,P)}function b(N){const P=N.nodes().map(O=>{let F=N.node(O).rank;return F===void 0?Number.MIN_VALUE:F});return g(Math.max,P)}function x(N,P){let O={lhs:[],rhs:[]};return N.forEach(F=>{P(F)?O.lhs.push(F):O.rhs.push(F)}),O}function w(N,P){let O=Date.now();try{return P()}finally{console.log(N+" time: "+(Date.now()-O)+"ms")}}function k(N,P){return P()}let C=0;function _(N){var P=++C;return N+(""+P)}function T(N,P,O=1){P==null&&(P=N,N=0);let F=U=>UPF[P]),Object.entries(N).reduce((F,[L,U])=>(F[L]=O(U,L),F),{})}function D(N,P){return N.reduce((O,F,L)=>(O[F]=P[L],O),{})}return rA}var nA,dee;function RYe(){if(dee)return nA;dee=1;let e=AYe(),r=On().uniqueId;nA={run:n,undo:a};function n(i){(i.graph().acyclicer==="greedy"?e(i,s(i)):o(i)).forEach(l=>{let c=i.edge(l);i.removeEdge(l),c.forwardName=l.name,c.reversed=!0,i.setEdge(l.w,l.v,c,r("rev"))});function s(l){return c=>l.edge(c).weight}}function o(i){let s=[],l={},c={};function d(u){Object.hasOwn(c,u)||(c[u]=!0,l[u]=!0,i.outEdges(u).forEach(h=>{Object.hasOwn(l,h.w)?s.push(h):d(h.w)}),delete l[u])}return i.nodes().forEach(d),s}function a(i){i.edges().forEach(s=>{let l=i.edge(s);if(l.reversed){i.removeEdge(s);let c=l.forwardName;delete l.reversed,delete l.forwardName,i.setEdge(s.w,s.v,l,c)}})}return nA}var oA,uee;function NYe(){if(uee)return oA;uee=1;let e=On();oA={run:r,undo:o};function r(a){a.graph().dummyChains=[],a.edges().forEach(i=>n(a,i))}function n(a,i){let s=i.v,l=a.node(s).rank,c=i.w,d=a.node(c).rank,u=i.name,h=a.edge(i),f=h.labelRank;if(d===l+1)return;a.removeEdge(i);let g,b,x;for(x=0,++l;l{let s=a.node(i),l=s.edgeLabel,c;for(a.setEdge(s.edgeObj,l);s.dummy;)c=a.successors(i)[0],a.removeNode(i),l.points.push({x:s.x,y:s.y}),s.dummy==="edge-label"&&(l.x=s.x,l.y=s.y,l.width=s.width,l.height=s.height),i=c,s=a.node(i)})}return oA}var aA,pee;function Yw(){if(pee)return aA;pee=1;const{applyWithChunking:e}=On();aA={longestPath:r,slack:n};function r(o){var a={};function i(s){var l=o.node(s);if(Object.hasOwn(a,s))return l.rank;a[s]=!0;let c=o.outEdges(s).map(u=>u==null?Number.POSITIVE_INFINITY:i(u.w)-o.edge(u).minlen);var d=e(Math.min,c);return d===Number.POSITIVE_INFINITY&&(d=0),l.rank=d}o.sources().forEach(i)}function n(o,a){return o.node(a.w).rank-o.node(a.v).rank-o.edge(a).minlen}return aA}var iA,hee;function fee(){if(hee)return iA;hee=1;var e=Es().Graph,r=Yw().slack;iA=n;function n(s){var l=new e({directed:!1}),c=s.nodes()[0],d=s.nodeCount();l.setNode(c,{});for(var u,h;o(l,s){var h=u.v,f=d===h?u.w:h;!s.hasNode(f)&&!r(l,u)&&(s.setNode(f,{}),s.setEdge(d,f,{}),c(f))})}return s.nodes().forEach(c),s.nodeCount()}function a(s,l){return l.edges().reduce((c,d)=>{let u=Number.POSITIVE_INFINITY;return s.hasNode(d.v)!==s.hasNode(d.w)&&(u=r(l,d)),ul.node(d).rank+=c)}return iA}var sA,mee;function DYe(){if(mee)return sA;mee=1;var e=fee(),r=Yw().slack,n=Yw().longestPath,o=Es().alg.preorder,a=Es().alg.postorder,i=On().simplify;sA=s,s.initLowLimValues=u,s.initCutValues=l,s.calcCutValue=d,s.leaveEdge=f,s.enterEdge=g,s.exchangeEdges=b;function s(C){C=i(C),n(C);var _=e(C);u(_),l(_,C);for(var T,A;T=f(_);)A=g(_,C,T),b(_,C,T,A)}function l(C,_){var T=a(C,C.nodes());T=T.slice(0,T.length-1),T.forEach(A=>c(C,_,A))}function c(C,_,T){var A=C.node(T),R=A.parent;C.edge(T,R).cutvalue=d(C,_,T)}function d(C,_,T){var A=C.node(T),R=A.parent,D=!0,N=_.edge(T,R),P=0;return N||(D=!1,N=_.edge(R,T)),P=N.weight,_.nodeEdges(T).forEach(O=>{var F=O.v===T,L=F?O.w:O.v;if(L!==R){var U=F===D,M=_.edge(O).weight;if(P+=U?M:-M,w(C,T,L)){var V=C.edge(T,L).cutvalue;P+=U?-V:V}}}),P}function u(C,_){arguments.length<2&&(_=C.nodes()[0]),h(C,{},1,_)}function h(C,_,T,A,R){var D=T,N=C.node(A);return _[A]=!0,C.neighbors(A).forEach(P=>{Object.hasOwn(_,P)||(T=h(C,_,T,P,A))}),N.low=D,N.lim=T++,R?N.parent=R:delete N.parent,T}function f(C){return C.edges().find(_=>C.edge(_).cutvalue<0)}function g(C,_,T){var A=T.v,R=T.w;_.hasEdge(A,R)||(A=T.w,R=T.v);var D=C.node(A),N=C.node(R),P=D,O=!1;D.lim>N.lim&&(P=N,O=!0);var F=_.edges().filter(L=>O===k(C,C.node(L.v),P)&&O!==k(C,C.node(L.w),P));return F.reduce((L,U)=>r(_,U)!_.node(R).parent),A=o(C,T);A=A.slice(1),A.forEach(R=>{var D=C.node(R).parent,N=_.edge(R,D),P=!1;N||(N=_.edge(D,R),P=!0),_.node(R).rank=_.node(D).rank+(P?N.minlen:-N.minlen)})}function w(C,_,T){return C.hasEdge(_,T)}function k(C,_,T){return T.low<=_.lim&&_.lim<=T.lim}return sA}var lA,gee;function $Ye(){if(gee)return lA;gee=1;var e=Yw(),r=e.longestPath,n=fee(),o=DYe();lA=a;function a(c){var d=c.graph().ranker;if(d instanceof Function)return d(c);switch(c.graph().ranker){case"network-simplex":l(c);break;case"tight-tree":s(c);break;case"longest-path":i(c);break;case"none":break;default:l(c)}}var i=r;function s(c){r(c),n(c)}function l(c){o(c)}return lA}var cA,yee;function PYe(){if(yee)return cA;yee=1,cA=e;function e(o){let a=n(o);o.graph().dummyChains.forEach(i=>{let s=o.node(i),l=s.edgeObj,c=r(o,a,l.v,l.w),d=c.path,u=c.lca,h=0,f=d[h],g=!0;for(;i!==l.w;){if(s=o.node(i),g){for(;(f=d[h])!==u&&o.node(f).maxRankd||u>a[h].lim));for(f=h,h=s;(h=o.parent(h))!==f;)c.push(h);return{path:l.concat(c.reverse()),lca:f}}function n(o){let a={},i=0;function s(l){let c=i;o.children(l).forEach(s),a[l]={low:c,lim:i++}}return o.children().forEach(s),a}return cA}var dA,bee;function MYe(){if(bee)return dA;bee=1;let e=On();dA={run:r,cleanup:i};function r(s){let l=e.addDummyNode(s,"root",{},"_root"),c=o(s),d=Object.values(c),u=e.applyWithChunking(Math.max,d)-1,h=2*u+1;s.graph().nestingRoot=l,s.edges().forEach(g=>s.edge(g).minlen*=h);let f=a(s)+1;s.children().forEach(g=>n(s,l,h,f,u,c,g)),s.graph().nodeRankFactor=h}function n(s,l,c,d,u,h,f){let g=s.children(f);if(!g.length){f!==l&&s.setEdge(l,f,{weight:0,minlen:c});return}let b=e.addBorderNode(s,"_bt"),x=e.addBorderNode(s,"_bb"),w=s.node(f);s.setParent(b,f),w.borderTop=b,s.setParent(x,f),w.borderBottom=x,g.forEach(k=>{n(s,l,c,d,u,h,k);let C=s.node(k),_=C.borderTop?C.borderTop:k,T=C.borderBottom?C.borderBottom:k,A=C.borderTop?d:2*d,R=_!==T?1:u-h[f]+1;s.setEdge(b,_,{weight:A,minlen:R,nestingEdge:!0}),s.setEdge(T,x,{weight:A,minlen:R,nestingEdge:!0})}),s.parent(f)||s.setEdge(l,b,{weight:0,minlen:u+h[f]})}function o(s){var l={};function c(d,u){var h=s.children(d);h&&h.length&&h.forEach(f=>c(f,u+1)),l[d]=u}return s.children().forEach(d=>c(d,1)),l}function a(s){return s.edges().reduce((l,c)=>l+s.edge(c).weight,0)}function i(s){var l=s.graph();s.removeNode(l.nestingRoot),delete l.nestingRoot,s.edges().forEach(c=>{var d=s.edge(c);d.nestingEdge&&s.removeEdge(c)})}return dA}var uA,vee;function zYe(){if(vee)return uA;vee=1;let e=On();uA=r;function r(o){function a(i){let s=o.children(i),l=o.node(i);if(s.length&&s.forEach(a),Object.hasOwn(l,"minRank")){l.borderLeft=[],l.borderRight=[];for(let c=l.minRank,d=l.maxRank+1;co(c.node(d))),c.edges().forEach(d=>o(c.edge(d)))}function o(c){let d=c.width;c.width=c.height,c.height=d}function a(c){c.nodes().forEach(d=>i(c.node(d))),c.edges().forEach(d=>{let u=c.edge(d);u.points.forEach(i),Object.hasOwn(u,"y")&&i(u)})}function i(c){c.y=-c.y}function s(c){c.nodes().forEach(d=>l(c.node(d))),c.edges().forEach(d=>{let u=c.edge(d);u.points.forEach(l),Object.hasOwn(u,"x")&&l(u)})}function l(c){let d=c.x;c.x=c.y,c.y=d}return pA}var hA,wee;function OYe(){if(wee)return hA;wee=1;let e=On();hA=r;function r(n){let o={},a=n.nodes().filter(d=>!n.children(d).length),i=a.map(d=>n.node(d).rank),s=e.applyWithChunking(Math.max,i),l=e.range(s+1).map(()=>[]);function c(d){if(o[d])return;o[d]=!0;let u=n.node(d);l[u.rank].push(d),n.successors(d).forEach(c)}return a.sort((d,u)=>n.node(d).rank-n.node(u).rank).forEach(c),l}return hA}var fA,kee;function jYe(){if(kee)return fA;kee=1;let e=On().zipObject;fA=r;function r(o,a){let i=0;for(let s=1;sg)),l=a.flatMap(f=>o.outEdges(f).map(g=>({pos:s[g.w],weight:o.edge(g).weight})).sort((g,b)=>g.pos-b.pos)),c=1;for(;c{let g=f.pos+c;u[g]+=f.weight;let b=0;for(;g>0;)g%2&&(b+=u[g+1]),g=g-1>>1,u[g]+=f.weight;h+=f.weight*b}),h}return fA}var mA,_ee;function LYe(){if(_ee)return mA;_ee=1,mA=e;function e(r,n=[]){return n.map(o=>{let a=r.inEdges(o);if(a.length){let i=a.reduce((s,l)=>{let c=r.edge(l),d=r.node(l.v);return{sum:s.sum+c.weight*d.order,weight:s.weight+c.weight}},{sum:0,weight:0});return{v:o,barycenter:i.sum/i.weight,weight:i.weight}}else return{v:o}})}return mA}var gA,Eee;function BYe(){if(Eee)return gA;Eee=1;let e=On();gA=r;function r(a,i){let s={};a.forEach((c,d)=>{let u=s[c.v]={indegree:0,in:[],out:[],vs:[c.v],i:d};c.barycenter!==void 0&&(u.barycenter=c.barycenter,u.weight=c.weight)}),i.edges().forEach(c=>{let d=s[c.v],u=s[c.w];d!==void 0&&u!==void 0&&(u.indegree++,d.out.push(s[c.w]))});let l=Object.values(s).filter(c=>!c.indegree);return n(l)}function n(a){let i=[];function s(c){return d=>{d.merged||(d.barycenter===void 0||c.barycenter===void 0||d.barycenter>=c.barycenter)&&o(c,d)}}function l(c){return d=>{d.in.push(c),--d.indegree===0&&a.push(d)}}for(;a.length;){let c=a.pop();i.push(c),c.in.reverse().forEach(s(c)),c.out.forEach(l(c))}return i.filter(c=>!c.merged).map(c=>e.pick(c,["vs","i","barycenter","weight"]))}function o(a,i){let s=0,l=0;a.weight&&(s+=a.barycenter*a.weight,l+=a.weight),i.weight&&(s+=i.barycenter*i.weight,l+=i.weight),a.vs=i.vs.concat(a.vs),a.barycenter=s/l,a.weight=l,a.i=Math.min(i.i,a.i),i.merged=!0}return gA}var yA,See;function FYe(){if(See)return yA;See=1;let e=On();yA=r;function r(a,i){let s=e.partition(a,b=>Object.hasOwn(b,"barycenter")),l=s.lhs,c=s.rhs.sort((b,x)=>x.i-b.i),d=[],u=0,h=0,f=0;l.sort(o(!!i)),f=n(d,c,f),l.forEach(b=>{f+=b.vs.length,d.push(b.vs),u+=b.barycenter*b.weight,h+=b.weight,f=n(d,c,f)});let g={vs:d.flat(!0)};return h&&(g.barycenter=u/h,g.weight=h),g}function n(a,i,s){let l;for(;i.length&&(l=i[i.length-1]).i<=s;)i.pop(),a.push(l.vs),s++;return s}function o(a){return(i,s)=>i.barycenters.barycenter?1:a?s.i-i.i:i.i-s.i}return yA}var bA,Cee;function HYe(){if(Cee)return bA;Cee=1;let e=LYe(),r=BYe(),n=FYe();bA=o;function o(s,l,c,d){let u=s.children(l),h=s.node(l),f=h?h.borderLeft:void 0,g=h?h.borderRight:void 0,b={};f&&(u=u.filter(C=>C!==f&&C!==g));let x=e(s,u);x.forEach(C=>{if(s.children(C.v).length){let _=o(s,C.v,c,d);b[C.v]=_,Object.hasOwn(_,"barycenter")&&i(C,_)}});let w=r(x,c);a(w,b);let k=n(w,d);if(f&&(k.vs=[f,k.vs,g].flat(!0),s.predecessors(f).length)){let C=s.node(s.predecessors(f)[0]),_=s.node(s.predecessors(g)[0]);Object.hasOwn(k,"barycenter")||(k.barycenter=0,k.weight=0),k.barycenter=(k.barycenter*k.weight+C.order+_.order)/(k.weight+2),k.weight+=2}return k}function a(s,l){s.forEach(c=>{c.vs=c.vs.flatMap(d=>l[d]?l[d].vs:d)})}function i(s,l){s.barycenter!==void 0?(s.barycenter=(s.barycenter*s.weight+l.barycenter*l.weight)/(s.weight+l.weight),s.weight+=l.weight):(s.barycenter=l.barycenter,s.weight=l.weight)}return bA}var vA,Tee;function VYe(){if(Tee)return vA;Tee=1;let e=Es().Graph,r=On();vA=n;function n(a,i,s){let l=o(a),c=new e({compound:!0}).setGraph({root:l}).setDefaultNodeLabel(d=>a.node(d));return a.nodes().forEach(d=>{let u=a.node(d),h=a.parent(d);(u.rank===i||u.minRank<=i&&i<=u.maxRank)&&(c.setNode(d),c.setParent(d,h||l),a[s](d).forEach(f=>{let g=f.v===d?f.w:f.v,b=c.edge(g,d),x=b!==void 0?b.weight:0;c.setEdge(g,d,{weight:a.edge(f).weight+x})}),Object.hasOwn(u,"minRank")&&c.setNode(d,{borderLeft:u.borderLeft[i],borderRight:u.borderRight[i]}))}),c}function o(a){for(var i;a.hasNode(i=r.uniqueId("_root")););return i}return vA}var xA,Aee;function qYe(){if(Aee)return xA;Aee=1,xA=e;function e(r,n,o){let a={},i;o.forEach(s=>{let l=r.parent(s),c,d;for(;l;){if(c=r.parent(l),c?(d=a[c],a[c]=l):(d=i,i=l),d&&d!==l){n.setEdge(d,l);return}l=c}})}return xA}var wA,Ree;function UYe(){if(Ree)return wA;Ree=1;let e=OYe(),r=jYe(),n=HYe(),o=VYe(),a=qYe(),i=Es().Graph,s=On();wA=l;function l(h,f){if(f&&typeof f.customOrder=="function"){f.customOrder(h,l);return}let g=s.maxRank(h),b=c(h,s.range(1,g+1),"inEdges"),x=c(h,s.range(g-1,-1,-1),"outEdges"),w=e(h);if(u(h,w),f&&f.disableOptimalOrderHeuristic)return;let k=Number.POSITIVE_INFINITY,C;for(let _=0,T=0;T<4;++_,++T){d(_%2?b:x,_%4>=2),w=s.buildLayerMatrix(h);let A=r(h,w);Ab.node(k).order=C),a(b,g,w.vs)})}function u(h,f){Object.values(f).forEach(g=>g.forEach((b,x)=>h.node(b).order=x))}return wA}var kA,Nee;function WYe(){if(Nee)return kA;Nee=1;let e=Es().Graph,r=On();kA={positionX:g,findType1Conflicts:n,findType2Conflicts:o,addConflict:i,hasConflict:s,verticalAlignment:l,horizontalCompaction:c,alignCoordinates:h,findSmallestWidthAlignment:u,balance:f};function n(w,k){let C={};function _(T,A){let R=0,D=0,N=T.length,P=A[A.length-1];return A.forEach((O,F)=>{let L=a(w,O),U=L?w.node(L).order:N;(L||O===P)&&(A.slice(D,F+1).forEach(M=>{w.predecessors(M).forEach(V=>{let I=w.node(V),H=I.order;(H{O=A[F],w.node(O).dummy&&w.predecessors(O).forEach(L=>{let U=w.node(L);U.dummy&&(U.orderP)&&i(C,L,O)})})}function T(A,R){let D=-1,N,P=0;return R.forEach((O,F)=>{if(w.node(O).dummy==="border"){let L=w.predecessors(O);L.length&&(N=w.node(L[0]).order,_(R,P,F,D,N),P=F,D=N)}_(R,P,R.length,N,A.length)}),R}return k.length&&k.reduce(T),C}function a(w,k){if(w.node(k).dummy)return w.predecessors(k).find(C=>w.node(C).dummy)}function i(w,k,C){if(k>C){let T=k;k=C,C=T}let _=w[k];_||(w[k]=_={}),_[C]=!0}function s(w,k,C){if(k>C){let _=k;k=C,C=_}return!!w[k]&&Object.hasOwn(w[k],C)}function l(w,k,C,_){let T={},A={},R={};return k.forEach(D=>{D.forEach((N,P)=>{T[N]=N,A[N]=N,R[N]=P})}),k.forEach(D=>{let N=-1;D.forEach(P=>{let O=_(P);if(O.length){O=O.sort((L,U)=>R[L]-R[U]);let F=(O.length-1)/2;for(let L=Math.floor(F),U=Math.ceil(F);L<=U;++L){let M=O[L];A[P]===P&&NMath.max(L,A[U.v]+R.edge(U)),0)}function O(F){let L=R.outEdges(F).reduce((M,V)=>Math.min(M,A[V.w]-R.edge(V)),Number.POSITIVE_INFINITY),U=w.node(F);L!==Number.POSITIVE_INFINITY&&U.borderType!==D&&(A[F]=Math.max(A[F],L))}return N(P,R.predecessors.bind(R)),N(O,R.successors.bind(R)),Object.keys(_).forEach(F=>A[F]=A[C[F]]),A}function d(w,k,C,_){let T=new e,A=w.graph(),R=b(A.nodesep,A.edgesep,_);return k.forEach(D=>{let N;D.forEach(P=>{let O=C[P];if(T.setNode(O),N){var F=C[N],L=T.edge(F,O);T.setEdge(F,O,Math.max(R(w,P,N),L||0))}N=P})}),T}function u(w,k){return Object.values(k).reduce((C,_)=>{let T=Number.NEGATIVE_INFINITY,A=Number.POSITIVE_INFINITY;Object.entries(_).forEach(([D,N])=>{let P=x(w,D)/2;T=Math.max(N+P,T),A=Math.min(N-P,A)});const R=T-A;return R{["l","r"].forEach(R=>{let D=A+R,N=w[D];if(N===k)return;let P=Object.values(N),O=_-r.applyWithChunking(Math.min,P);R!=="l"&&(O=T-r.applyWithChunking(Math.max,P)),O&&(w[D]=r.mapValues(N,F=>F+O))})})}function f(w,k){return r.mapValues(w.ul,(C,_)=>{if(k)return w[k.toLowerCase()][_];{let T=Object.values(w).map(A=>A[_]).sort((A,R)=>A-R);return(T[1]+T[2])/2}})}function g(w){let k=r.buildLayerMatrix(w),C=Object.assign(n(w,k),o(w,k)),_={},T;["u","d"].forEach(R=>{T=R==="u"?k:Object.values(k).reverse(),["l","r"].forEach(D=>{D==="r"&&(T=T.map(F=>Object.values(F).reverse()));let N=(R==="u"?w.predecessors:w.successors).bind(w),P=l(w,T,C,N),O=c(w,T,P.root,P.align,D==="r");D==="r"&&(O=r.mapValues(O,F=>-F)),_[R+D]=O})});let A=u(w,_);return h(_,A),f(_,w.graph().align)}function b(w,k,C){return(_,T,A)=>{let R=_.node(T),D=_.node(A),N=0,P;if(N+=R.width/2,Object.hasOwn(R,"labelpos"))switch(R.labelpos.toLowerCase()){case"l":P=-R.width/2;break;case"r":P=R.width/2;break}if(P&&(N+=C?P:-P),P=0,N+=(R.dummy?k:w)/2,N+=(D.dummy?k:w)/2,N+=D.width/2,Object.hasOwn(D,"labelpos"))switch(D.labelpos.toLowerCase()){case"l":P=D.width/2;break;case"r":P=-D.width/2;break}return P&&(N+=C?P:-P),P=0,N}}function x(w,k){return w.node(k).width}return kA}var _A,Dee;function YYe(){if(Dee)return _A;Dee=1;let e=On(),r=WYe().positionX;_A=n;function n(a){a=e.asNonCompoundGraph(a),o(a),Object.entries(r(a)).forEach(([i,s])=>a.node(i).x=s)}function o(a){let i=e.buildLayerMatrix(a),s=a.graph().ranksep,l=0;i.forEach(c=>{const d=c.reduce((u,h)=>{const f=a.node(h).height;return u>f?u:f},0);c.forEach(u=>a.node(u).y=l+d/2),l+=d+s})}return _A}var EA,$ee;function GYe(){if($ee)return EA;$ee=1;let e=RYe(),r=NYe(),n=$Ye(),o=On().normalizeRanks,a=PYe(),i=On().removeEmptyRanks,s=MYe(),l=zYe(),c=IYe(),d=UYe(),u=YYe(),h=On(),f=Es().Graph;EA=g;function g(j,Y){let Q=Y&&Y.debugTiming?h.time:h.notime;Q("layout",()=>{let J=Q(" buildLayoutGraph",()=>N(j));Q(" runLayout",()=>b(J,Q,Y)),Q(" updateInputGraph",()=>x(j,J))})}function b(j,Y,Q){Y(" makeSpaceForEdgeLabels",()=>P(j)),Y(" removeSelfEdges",()=>q(j)),Y(" acyclic",()=>e.run(j)),Y(" nestingGraph.run",()=>s.run(j)),Y(" rank",()=>n(h.asNonCompoundGraph(j))),Y(" injectEdgeLabelProxies",()=>O(j)),Y(" removeEmptyRanks",()=>i(j)),Y(" nestingGraph.cleanup",()=>s.cleanup(j)),Y(" normalizeRanks",()=>o(j)),Y(" assignRankMinMax",()=>F(j)),Y(" removeEdgeLabelProxies",()=>L(j)),Y(" normalize.run",()=>r.run(j)),Y(" parentDummyChains",()=>a(j)),Y(" addBorderSegments",()=>l(j)),Y(" order",()=>d(j,Q)),Y(" insertSelfEdges",()=>Z(j)),Y(" adjustCoordinateSystem",()=>c.adjust(j)),Y(" position",()=>u(j)),Y(" positionSelfEdges",()=>W(j)),Y(" removeBorderNodes",()=>H(j)),Y(" normalize.undo",()=>r.undo(j)),Y(" fixupEdgeLabelCoords",()=>V(j)),Y(" undoCoordinateSystem",()=>c.undo(j)),Y(" translateGraph",()=>U(j)),Y(" assignNodeIntersects",()=>M(j)),Y(" reversePoints",()=>I(j)),Y(" acyclic.undo",()=>e.undo(j))}function x(j,Y){j.nodes().forEach(Q=>{let J=j.node(Q),ie=Y.node(Q);J&&(J.x=ie.x,J.y=ie.y,J.rank=ie.rank,Y.children(Q).length&&(J.width=ie.width,J.height=ie.height))}),j.edges().forEach(Q=>{let J=j.edge(Q),ie=Y.edge(Q);J.points=ie.points,Object.hasOwn(ie,"x")&&(J.x=ie.x,J.y=ie.y)}),j.graph().width=Y.graph().width,j.graph().height=Y.graph().height}let w=["nodesep","edgesep","ranksep","marginx","marginy"],k={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},C=["acyclicer","ranker","rankdir","align"],_=["width","height","rank"],T={width:0,height:0},A=["minlen","weight","width","height","labeloffset"],R={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},D=["labelpos"];function N(j){let Y=new f({multigraph:!0,compound:!0}),Q=K(j.graph());return Y.setGraph(Object.assign({},k,G(Q,w),h.pick(Q,C))),j.nodes().forEach(J=>{let ie=K(j.node(J));const ne=G(ie,_);Object.keys(T).forEach(re=>{ne[re]===void 0&&(ne[re]=T[re])}),Y.setNode(J,ne),Y.setParent(J,j.parent(J))}),j.edges().forEach(J=>{let ie=K(j.edge(J));Y.setEdge(J,Object.assign({},R,G(ie,A),h.pick(ie,D)))}),Y}function P(j){let Y=j.graph();Y.ranksep/=2,j.edges().forEach(Q=>{let J=j.edge(Q);J.minlen*=2,J.labelpos.toLowerCase()!=="c"&&(Y.rankdir==="TB"||Y.rankdir==="BT"?J.width+=J.labeloffset:J.height+=J.labeloffset)})}function O(j){j.edges().forEach(Y=>{let Q=j.edge(Y);if(Q.width&&Q.height){let J=j.node(Y.v),ie={rank:(j.node(Y.w).rank-J.rank)/2+J.rank,e:Y};h.addDummyNode(j,"edge-proxy",ie,"_ep")}})}function F(j){let Y=0;j.nodes().forEach(Q=>{let J=j.node(Q);J.borderTop&&(J.minRank=j.node(J.borderTop).rank,J.maxRank=j.node(J.borderBottom).rank,Y=Math.max(Y,J.maxRank))}),j.graph().maxRank=Y}function L(j){j.nodes().forEach(Y=>{let Q=j.node(Y);Q.dummy==="edge-proxy"&&(j.edge(Q.e).labelRank=Q.rank,j.removeNode(Y))})}function U(j){let Y=Number.POSITIVE_INFINITY,Q=0,J=Number.POSITIVE_INFINITY,ie=0,ne=j.graph(),re=ne.marginx||0,ge=ne.marginy||0;function De(he){let me=he.x,Te=he.y,Ie=he.width,Ze=he.height;Y=Math.min(Y,me-Ie/2),Q=Math.max(Q,me+Ie/2),J=Math.min(J,Te-Ze/2),ie=Math.max(ie,Te+Ze/2)}j.nodes().forEach(he=>De(j.node(he))),j.edges().forEach(he=>{let me=j.edge(he);Object.hasOwn(me,"x")&&De(me)}),Y-=re,J-=ge,j.nodes().forEach(he=>{let me=j.node(he);me.x-=Y,me.y-=J}),j.edges().forEach(he=>{let me=j.edge(he);me.points.forEach(Te=>{Te.x-=Y,Te.y-=J}),Object.hasOwn(me,"x")&&(me.x-=Y),Object.hasOwn(me,"y")&&(me.y-=J)}),ne.width=Q-Y+re,ne.height=ie-J+ge}function M(j){j.edges().forEach(Y=>{let Q=j.edge(Y),J=j.node(Y.v),ie=j.node(Y.w),ne,re;Q.points?(ne=Q.points[0],re=Q.points[Q.points.length-1]):(Q.points=[],ne=ie,re=J),Q.points.unshift(h.intersectRect(J,ne)),Q.points.push(h.intersectRect(ie,re))})}function V(j){j.edges().forEach(Y=>{let Q=j.edge(Y);if(Object.hasOwn(Q,"x"))switch((Q.labelpos==="l"||Q.labelpos==="r")&&(Q.width-=Q.labeloffset),Q.labelpos){case"l":Q.x-=Q.width/2+Q.labeloffset;break;case"r":Q.x+=Q.width/2+Q.labeloffset;break}})}function I(j){j.edges().forEach(Y=>{let Q=j.edge(Y);Q.reversed&&Q.points.reverse()})}function H(j){j.nodes().forEach(Y=>{if(j.children(Y).length){let Q=j.node(Y),J=j.node(Q.borderTop),ie=j.node(Q.borderBottom),ne=j.node(Q.borderLeft[Q.borderLeft.length-1]),re=j.node(Q.borderRight[Q.borderRight.length-1]);Q.width=Math.abs(re.x-ne.x),Q.height=Math.abs(ie.y-J.y),Q.x=ne.x+Q.width/2,Q.y=J.y+Q.height/2}}),j.nodes().forEach(Y=>{j.node(Y).dummy==="border"&&j.removeNode(Y)})}function q(j){j.edges().forEach(Y=>{if(Y.v===Y.w){var Q=j.node(Y.v);Q.selfEdges||(Q.selfEdges=[]),Q.selfEdges.push({e:Y,label:j.edge(Y)}),j.removeEdge(Y)}})}function Z(j){var Y=h.buildLayerMatrix(j);Y.forEach(Q=>{var J=0;Q.forEach((ie,ne)=>{var re=j.node(ie);re.order=ne+J,(re.selfEdges||[]).forEach(ge=>{h.addDummyNode(j,"selfedge",{width:ge.label.width,height:ge.label.height,rank:re.rank,order:ne+ ++J,e:ge.e,label:ge.label},"_se")}),delete re.selfEdges})})}function W(j){j.nodes().forEach(Y=>{var Q=j.node(Y);if(Q.dummy==="selfedge"){var J=j.node(Q.e.v),ie=J.x+J.width/2,ne=J.y,re=Q.x-ie,ge=J.height/2;j.setEdge(Q.e,Q.label),j.removeNode(Y),Q.label.points=[{x:ie+2*re/3,y:ne-ge},{x:ie+5*re/6,y:ne-ge},{x:ie+re,y:ne},{x:ie+5*re/6,y:ne+ge},{x:ie+2*re/3,y:ne+ge}],Q.label.x=Q.x,Q.label.y=Q.y}})}function G(j,Y){return h.mapValues(h.pick(j,Y),Number)}function K(j){var Y={};return j&&Object.entries(j).forEach(([Q,J])=>{typeof Q=="string"&&(Q=Q.toLowerCase()),Y[Q]=J}),Y}return EA}var SA,Pee;function XYe(){if(Pee)return SA;Pee=1;let e=On(),r=Es().Graph;SA={debugOrdering:n};function n(o){let a=e.buildLayerMatrix(o),i=new r({compound:!0,multigraph:!0}).setGraph({});return o.nodes().forEach(s=>{i.setNode(s,{label:s}),i.setParent(s,"layer"+o.node(s).rank)}),o.edges().forEach(s=>i.setEdge(s.v,s.w,{},s.name)),a.forEach((s,l)=>{let c="layer"+l;i.setNode(c,{rank:"same"}),s.reduce((d,u)=>(i.setEdge(d,u,{style:"invis"}),u))}),i}return SA}var Mee,zee;function KYe(){return zee||(zee=1,Mee="1.1.5"),Mee}var Iee,Oee;function ZYe(){return Oee||(Oee=1,Iee={graphlib:Es(),layout:GYe(),debug:XYe(),util:{time:On().time,notime:On().notime},version:KYe()}),Iee}var QYe=ZYe();const Gw=_7(QYe),wo={dagre:{ranksep:60,nodesep:35,edgesep:25},edgeLabel:{width:140,height:10,minlen:1,weight:1},emptyNodeOffset:120,nodeWidth:330,nodeHeight:180,compound:{labelHeight:2,paddingTop:50,paddingBottom:32}};function JYe(){const e=new Gw.graphlib.Graph({directed:!0,compound:!0,multigraph:!0});return e.setGraph({...wo.dagre,rankdir:"LR"}),e.setDefaultEdgeLabel(()=>({...wo.edgeLabel})),e.setDefaultNodeLabel(()=>({})),e}const CA="-port";function TA(e,r,n){const o=new Xn(i=>({id:`${e}-${i}`,portId:`${e}-${i}`})),a=I3(r);for(const i of a.sorted){const s=a.children(i).length>0,l=i.id,c=`${e}-${l}`,d=s?`${c}${CA}`:c;o.set(l,{id:c,portId:d}),n.setNode(c,{column:e,element:i,isCompound:s,portId:d,inPorts:[],outPorts:[],width:wo.nodeWidth,height:wo.nodeHeight}),s&&(n.setNode(d,{element:i,portId:d,isCompound:s,inPorts:[],outPorts:[],width:wo.nodeWidth-wo.dagre.ranksep,height:wo.compound.labelHeight}),n.setParent(d,c));const u=a.parent(i);u&&n.setParent(c,`${e}-${u.id}`)}return{...a,byId:i=>{const s=a.byId(i),l=o.get(s.id);return{element:s,graph:l}},graphNodes:o}}function eGe(e){return Gw.layout(e,{}),r=>{const n=e.node(r),{x:o,y:a,width:i,height:s}=n;return{position:{x:o-Math.round(i/2),y:a-Math.round(s/2)},width:i,height:s}}}var Xw;(e=>{e.Empty="@empty"})(Xw||(Xw={}));function tGe(e,r){const n=JYe(),o=TA("incomers",e.incomers,n),a=TA("subjects",e.subjects,n),i=TA("outgoers",e.outgoers,n),s=[];En(ZRe(En(K1(e.incoming),Sn(T=>({id:T.source.id,sourceFqn:T.source.id,targetFqn:T.target.id,source:o.byId(T.source.id).graph,target:a.byId(T.target.id).graph,relation:T}))),En(K1(e.outgoing),Sn(T=>({id:T.target.id,sourceFqn:T.source.id,targetFqn:T.target.id,source:a.byId(T.source.id).graph,target:i.byId(T.target.id).graph,relation:T})))),Sn(T=>({...T,expr:`${T.source.id}->${T.target.id}`})),xNe(mp("expr")),bNe(T=>{const A=T[0].source,R=T[0].target,D=T[0].expr;n.node(A.id).outPorts.push(R.id),n.node(R.id).inPorts.push(A.id),n.setEdge(A.portId,R.portId,{...wo.edgeLabel},D),s.push({name:D,sourceFqn:T[0].sourceFqn,targetFqn:T[0].targetFqn,source:A.id,sourceHandle:A.id+"_out"+(n.node(A.id).outPorts.length-1),target:R.id,targetHandle:R.id+"_in"+(n.node(R.id).inPorts.length-1),relations:Sn(T,mp("relation"))})}));for(const T of a.graphNodes.values()){const A=T.id,R=n.node(A);if(R.isCompound)continue;const D=Math.max(n.inEdges(A)?.length??0,n.outEdges(A)?.length??0);D>2&&(R.height=R.height+(D-3)*14)}const l=[...o.graphNodes.values(),...a.graphNodes.values(),...i.graphNodes.values()];if(o.graphNodes.size==0){const T="incomers-empty";n.setNode(T,{column:"incomers",element:null,isCompound:!1,portId:T,inPorts:[],outPorts:[],width:wo.nodeWidth,height:wo.nodeHeight});for(const A of a.graphNodes.values())n.setEdge(T,A.portId);l.push({id:T,portId:T})}if(i.graphNodes.size==0){const T="outgoers-empty";n.setNode(T,{column:"outgoers",element:null,isCompound:!1,portId:T,inPorts:[],outPorts:[],width:wo.nodeWidth,height:wo.nodeHeight});for(const A of a.graphNodes.values())n.setEdge(A.portId,T);l.push({id:T,portId:T})}const c=n.edgeCount();if(c>10)for(const T of n.edges())n.setEdge(T,{...wo.edgeLabel,width:c>25?800:400});const d=eGe(n),u=En(l,hp(T=>T.id===T.portId),Vx(T=>[T.id,d(T.id)]));function h(T){return u[T]??=En(n.children(T)??[],hp(A=>!A.endsWith(CA)),Sn(A=>h(A)),Kq(A=>{at(A.length>0,`Node ${T} has no nested nodes`)}),Ux((A,R)=>({minY:Math.min(A.minY,R.position.y),maxY:Math.max(A.maxY,R.position.y+R.height)}),{minY:1/0,maxY:-1/0}),({minY:A,maxY:R})=>{const{position:{x:D},width:N}=d(T);return A=A-wo.compound.paddingTop,R=R+wo.compound.paddingBottom,{position:{x:D,y:A},width:N,height:R-A}})}function f(T){const A=n.parent(T);return A?f(A)+1:0}function g(T){const A=n.children(T)??[];return A.length===0?0:1+Math.max(...A.map(g))}const b=(T,A,R)=>En(R,Sn((D,N)=>({port:T+"_"+A+N,topY:h(D).position.y})),Wx(mp("topY")),Sn(mp("port")));let x=0,w=0;const[k]=[...a.root];at(k,"Subjects should not be empty");let C=h(a.graphNodes.get(k.id).id);const _=l.map(({id:T})=>{const{element:A,inPorts:R,outPorts:D,column:N}=n.node(T);let{position:P,width:O,height:F}=h(T);if(!A){if(F=Math.min(C.height,300),P.y=C.position.y+C.height/2-F/2,N==="incomers")O=C.position.x-wo.emptyNodeOffset-P.x;else{const q=P.x+O;P.x=C.position.x+C.width+wo.emptyNodeOffset,O=q-P.x}return{id:T,parent:null,x:P.x,y:P.y,title:"empty node",description:or.EMPTY,technology:null,tags:[],links:[],color:"muted",shape:"rectangle",style:{border:"dashed",opacity:50},kind:Xw.Empty,level:0,labelBBox:{x:P.x,y:P.y,width:O,height:F},children:[],width:O,height:F,column:N,ports:{in:[],out:[]},existsInCurrentView:!1}}const L=n.parent(T),U=(n.children(T)??[]).filter(q=>!q.endsWith(CA));x=Math.min(x,P.x),w=Math.min(w,P.y);const M=r?X1(A.scopedViews(),q=>q.id!==r.id)?.id??null:null,V=r?.findNodeWithElement(A.id),I=r&&!V?X1(A.ancestors(),q=>!!r.findNodeWithElement(q.id))?.id:null,H=V??(I&&r?.findNodeWithElement(I));return{id:T,parent:L??null,x:P.x,y:P.y,title:A.title,description:A.summary,technology:A.technology,tags:[...A.tags],links:null,color:H?.color??A.color,shape:V?.shape??A.shape,icon:V?.icon??A.icon??"none",modelRef:A.id,kind:A.kind,level:f(T),labelBBox:{x:P.x,y:P.y,width:O,height:F},style:Ed({...(V??H)?.style,...A.$element.style},["color","shape","icon"]),navigateTo:M,...U.length>0&&{depth:g(T)},children:U,width:O,height:F,column:N,ports:{in:b(T,"in",R),out:b(T,"out",D)},existsInCurrentView:!!V}});return{subjectExistsInScope:!r||r.includesElement(k.id),bounds:{x:Math.min(x,0),y:Math.min(w,0),width:n.graph().width??100,height:n.graph().height??100},nodes:_,edges:n.edges().reduce((T,A)=>{const R=n.edge(A),D=A.name;if(!D)return T;const{name:N,source:P,sourceFqn:O,target:F,targetFqn:L,relations:U,sourceHandle:M,targetHandle:V}=bt(Bx(s,W=>W.name===D)),I=qx(U),H=I?.title??"untitled",q=U.length>1,Z=qx(O7(U.flatMap(W=>W.navigateTo?.id?W.navigateTo.id:[])));return T.push(U1({id:N,sourceFqn:O,source:P,sourceHandle:M,targetFqn:L,target:F,targetHandle:V,label:q?`${U.length} relationships`:H,navigateTo:Z,color:I?.color??"gray",existsInCurrentView:!r||U.every(W=>r.includesRelation(W.id)),points:R.points.map(W=>[W.x,W.y]),line:I?.line??"dashed",head:I?.head,tail:I?.tail,relations:U.map(W=>W.id),parent:null})),T},[])}}function rGe(e,r,n){const o=Ko();return E.useMemo(()=>{const a=r?o.findView(r):null,i=tGe(WB(e,o,r,n),n==="view"?a:null);return a&&(n==="global"||!i.subjectExistsInScope)&&(i.edges=i.edges.map(s=>(s.existsInCurrentView=s.relations.every(l=>a.includesRelation(l)),s))),Object.assign(i,{subject:e})},[o,e,r,n,WB])}const Dy=(e,r)=>e3(e.label,r.label);function AA(e){return{label:e.title,value:e.id,children:[...e.children()].map(AA).sort(Dy)}}function nGe(e){const r=Ko();return E.useMemo(()=>e?[...r.view(e).roots()].map(AA).sort(Dy):[...r.roots()].map(AA).sort(Dy),[r,e??null])}const oGe=be({margin:"0"}),aGe=be({_hover:{backgroundColor:"mantine.colors.gray[0]",_dark:{backgroundColor:"mantine.colors.defaultHover",color:"mantine.colors.white"}}}),jee=be({maxHeight:["70vh","calc(100cqh - 70px)"]}),iGe=Object.freeze(Object.defineProperty({__proto__:null,label:aGe,node:oGe,scrollArea:jee},Symbol.toStringTag,{value:"Module"})),sGe=[["path",{d:"M8 9l4 -4l4 4",key:"svg-0"}],["path",{d:"M16 15l-4 4l-4 -4",key:"svg-1"}]],RA=Nt("outline","selector","Selector",sGe),lGe=e=>{const r=e.context.layouted?.subjectExistsInScope??!1;return{subjectId:e.context.subject,viewId:e.context.viewId,scope:e.context.scope,subjectExistsInScope:r,enableSelectSubject:e.context.enableSelectSubject,enableChangeScope:e.context.enableChangeScope}},cGe=()=>{},dGe=E.memo(()=>{const e=Ny(),{subjectId:r,viewId:n,scope:o,subjectExistsInScope:a,enableSelectSubject:i,enableChangeScope:s}=Ww(lGe),l=E.useRef(null),c=E.useRef(null),d=Ko().findElement(r),u=nGe(o==="view"&&n?n:void 0),h=G0({multiple:!1});return h.setHoveredNode=cGe,E.useEffect(()=>{ju(r).reverse().forEach(f=>{h.expand(f)}),h.select(r)},[r]),y.jsxs(pn,{ref:l,gap:"xs",pos:"relative",children:[i&&y.jsxs(pn,{gap:4,wrap:"nowrap",children:[y.jsx(Re,{fz:"xs",fw:"500",style:{whiteSpace:"nowrap",userSelect:"none"},children:"Relationships of"}),y.jsx(Re,{pos:"relative",children:y.jsxs(Rr,{position:"bottom-start",shadow:"md",keepMounted:!1,withinPortal:!1,closeOnClickOutside:!0,clickOutsideEvents:["pointerdown","mousedown","click"],offset:4,onOpen:()=>{setTimeout(()=>{c.current?.querySelector(`[data-value="${r}"]`)?.scrollIntoView({behavior:"instant",block:"nearest"})},100)},children:[y.jsx($d,{children:y.jsx(Kn,{size:"xs",variant:"default",maw:250,rightSection:y.jsx(RA,{size:16}),children:y.jsx(ft,{fz:"xs",fw:"500",truncate:!0,children:d?.title??"???"})})}),y.jsx(fc,{p:0,miw:250,maw:400,children:y.jsx(pa,{scrollbars:"y",type:"never",viewportRef:c,className:jee,children:y.jsx(hm,{allowRangeSelection:!1,selectOnClick:!1,tree:h,data:u,classNames:iGe,levelOffset:8,styles:{root:{maxWidth:400,overflow:"hidden"},label:{paddingTop:5,paddingBottom:6}},renderNode:({node:f,selected:g,expanded:b,elementProps:x,hasChildren:w})=>y.jsxs(pn,{gap:2,wrap:"nowrap",...x,py:"3",children:[y.jsx(br,{variant:"subtle",size:18,c:"dimmed",style:{visibility:w?"visible":"hidden"},children:y.jsx(qd,{stroke:3.5,style:{transition:"transform 150ms ease",transform:`rotate(${b?"90deg":"0"})`,width:"80%"}})}),y.jsx(Re,{flex:"1 1 100%",w:"100%",onClick:k=>{k.stopPropagation(),h.select(f.value),h.expand(f.value),e.navigateTo(f.value)},children:y.jsx(ft,{fz:"sm",fw:g?"600":"400",truncate:"end",children:f.label})})]})})})})]})})]}),s&&y.jsxs(pn,{gap:4,wrap:"nowrap",children:[i&&y.jsx(Re,{fz:"xs",fw:"500",...!a&&{c:"dimmed"},style:{whiteSpace:"nowrap",userSelect:"none"},children:"Scope"}),y.jsx("div",{children:y.jsx(co,{color:"orange",label:y.jsxs(y.Fragment,{children:["This element does not exist in the current view",o==="view"&&y.jsxs(y.Fragment,{children:[y.jsx("br",{}),"Scope is set to global"]})]}),position:"bottom-start",disabled:a,portalProps:{target:l.current},children:y.jsx(um,{flex:"1 0 auto",size:"xs",withItemsBorders:!1,value:o,styles:{label:{paddingLeft:8,paddingRight:8}},onChange:f=>{e.changeScope(f)},data:[{label:"Global",value:"global"},{label:y.jsx("span",{children:"Current view"}),value:"view",disabled:!a}]})})})]})]})}),Kw=(e,r)=>Math.abs(e-r)<2.5,uGe=(e,r)=>e.id===r.id&<(e.selected??!1,r.selected??!1)&<(e.animated??!1,r.animated??!1)&<(e.source,r.source)&&Kw(e.sourceX,r.sourceX)&&Kw(e.sourceY,r.sourceY)&<(e.sourceHandleId??null,r.sourceHandleId??null)&<(e.sourcePosition,r.sourcePosition)&<(e.target,r.target)&&Kw(e.targetY,r.targetY)&&Kw(e.targetX,r.targetX)&<(e.targetHandleId??null,r.targetHandleId??null)&<(e.targetPosition,r.targetPosition)&<(e.data,r.data);function NA(e){const r=E.memo(e,uGe);return r.displayName=`MemoEdge(${e.displayName||e.name})`,r}function Lee(e,r){return $w(e,r)}const Ni=Lee("button"),Br=Lee("div"),$y=E.forwardRef(({edgeProps:{id:e,data:{label:r,technology:n,hovered:o=!1},selected:a=!1,selectable:i=!1},pointerEvents:s="all",className:l,style:c,children:d,...u},h)=>{const f=q1(e)?SB(e):null,g=oWe({pointerEvents:s,isStepEdge:f!==null,cursor:i||f!==null?"pointer":"default"}),b=da(r)||da(n);return y.jsxs(Br,{ref:h,className:et(g.root,"likec4-edge-label",l),"data-edge-id":e,animate:{scale:o&&!a?1.06:1},...u,children:[f!==null&&y.jsx(zr,{className:g.stepNumber,children:f}),b&&y.jsxs(zr,{className:g.labelContents,children:[da(r)&&y.jsx(zr,{className:et(g.labelText,be({lineClamp:5})),children:r}),da(n)&&y.jsx(zr,{className:g.labelTechnology,children:"[ "+n+" ]"}),d]})]})});$y.displayName="EdgeLabel";function Zw({icon:e,onClick:r}){return y.jsx(br,{className:et("nodrag nopan",GUe()),onPointerDownCapture:Cn,onClick:r,role:"button",onDoubleClick:Cn,children:e??y.jsx(Ri,{})})}const pGe=".react-flow__edge.selected",hGe=be({_reduceGraphics:{transition:"none"}}),fGe=be({pointerEvents:"none",fill:"none",strokeWidth:"calc(var(--xy-edge-stroke-width) + 2)",strokeOpacity:.08,_noReduceGraphics:{transitionProperty:"stroke-width, stroke-opacity",transitionDuration:"fast",transitionTimingFunction:"inOut"},_whenHovered:{transitionTimingFunction:"out",strokeWidth:"calc(var(--xy-edge-stroke-width) + 4)",strokeOpacity:.2},_whenSelected:{strokeWidth:"calc(var(--xy-edge-stroke-width) + 6)",strokeOpacity:.25,_whenHovered:{strokeOpacity:.4}}}),mGe=be({fill:"[var(--xy-edge-stroke)]",stroke:"[var(--xy-edge-stroke)]"}),gGe=be({fill:"none",strokeDashoffset:0,_noReduceGraphics:{animationStyle:"xyedgeAnimated",animationPlayState:"paused",transition:"stroke 130ms ease-out,stroke-width 130ms ease-out"},":where([data-edge-dir='back']) &":{animationDirection:"reverse"},_whenHovered:{_noReduceGraphics:{animationPlayState:"running",animationDelay:"450ms"}},[`:where(${pGe}, [data-edge-active='true'], [data-edge-animated='true']) &`]:{_noReduceGraphics:{animationPlayState:"running",animationDelay:"0ms"}},_whenDimmed:{animationPlayState:"paused"},_smallZoom:{animationName:"none"},_whenPanning:{strokeDasharray:"none !important",animationPlayState:"paused"}});function Py({className:e,component:r="g",selected:n=!1,data:{color:o="gray",hovered:a=!1,active:i=!1,dimmed:s=!1,...l},children:c,style:d}){const u={className:et(e,hGe,"likec4-edge-container"),"data-likec4-color":o,"data-edge-dir":l.dir??"forward","data-edge-active":i,"data-edge-animated":i,"data-likec4-hovered":a,...n&&{"data-likec4-selected":n},...s!==!1&&{"data-likec4-dimmed":s}};return r==="svg"?y.jsx("svg",{style:d,...u,children:c}):(at(r==="g",'EdgeContainer: component must be "g" or "svg"'),y.jsx("g",{style:d,...u,children:c}))}const yGe=e=>y.jsx("marker",{viewBox:"-4 -4 14 16",refX:5,refY:4,markerWidth:"7",markerHeight:"8",preserveAspectRatio:"xMaxYMid meet",orient:"auto-start-reverse",...e,children:y.jsx("path",{d:"M0,0 L7,4 L0,8 L4,4 Z",stroke:"context-stroke",fill:"context-stroke",strokeDasharray:0,strokeWidth:1,strokeLinecap:"round"})}),bGe=e=>y.jsx("marker",{viewBox:"-1 -1 12 10",refX:4,refY:3,markerWidth:"8",markerHeight:"6",preserveAspectRatio:"xMaxYMid meet",orient:"auto-start-reverse",...e,children:y.jsx("path",{d:"M 0 0 L 8 3 L 0 6 L 1 3 z",fill:"context-stroke",strokeWidth:0})}),vGe=e=>y.jsx("marker",{viewBox:"-1 -1 12 12",refX:8,refY:4,markerWidth:"8",markerHeight:"8",preserveAspectRatio:"xMaxYMid meet",orient:"auto-start-reverse",...e,children:y.jsx("path",{d:"M 8 0 L 0 4 L 8 8 M 8 4 L 0 4",fill:"none",strokeWidth:1})}),xGe=e=>y.jsx("marker",{viewBox:"-1 -1 12 10",refX:4,refY:3,markerWidth:"8",markerHeight:"6",preserveAspectRatio:"xMaxYMid meet",orient:"auto-start-reverse",...e,children:y.jsx("path",{d:"M 0 0 L 8 3 L 0 6 L 1 3 z",stroke:"context-stroke",fill:"context-stroke",strokeWidth:1.25,strokeLinejoin:"miter",strokeLinecap:"square"})}),wGe=e=>y.jsx("marker",{viewBox:"-4 -4 16 14",refX:5,refY:4,markerWidth:"10",markerHeight:"8",preserveAspectRatio:"xMaxYMid meet",orient:"auto-start-reverse",...e,children:y.jsx("path",{d:"M5,0 L10,4 L5,8 L0,4 Z",fill:"context-stroke",strokeWidth:0,strokeLinecap:"round"})}),kGe=e=>y.jsx("marker",{viewBox:"-4 -4 16 14",refX:6,refY:4,markerWidth:"10",markerHeight:"8",preserveAspectRatio:"xMaxYMid meet",orient:"auto-start-reverse",...e,children:y.jsx("path",{d:"M5,0 L10,4 L5,8 L0,4 Z",stroke:"context-stroke",fill:"context-stroke",strokeWidth:1.25,strokeLinecap:"round"})}),_Ge=e=>y.jsx("marker",{viewBox:"0 0 10 10",refX:4,refY:4,markerWidth:"6",markerHeight:"6",...e,children:y.jsx("circle",{strokeWidth:0,fill:"context-stroke",cx:4,cy:4,r:3})}),EGe=e=>y.jsx("marker",{viewBox:"0 0 10 10",refX:4,refY:4,markerWidth:"6",markerHeight:"6",...e,children:y.jsx("circle",{strokeWidth:1.25,stroke:"context-stroke",fill:"context-stroke",cx:4,cy:4,r:3})}),Bee={Arrow:bGe,Crow:vGe,OArrow:xGe,Open:yGe,Diamond:wGe,ODiamond:kGe,Dot:_Ge,ODot:EGe};function Fee(e){if(!(!e||e==="none"))switch(e){case"normal":return"Arrow";case"crow":return"Crow";case"onormal":return"OArrow";case"diamond":return"Diamond";case"odiamond":return"ODiamond";case"open":case"vee":return"Open";case"dot":return"Dot";case"odot":return"ODot";default:Zi(e)}}const My=E.forwardRef(({edgeProps:{id:e,data:{line:r,dir:n,tail:o,head:a},selectable:i=!0,style:s,interactionWidth:l},isDragging:c=!1,onEdgePointerDown:d,strokeWidth:u,svgPath:h},f)=>{let g=Fee(o),b=Fee(a??"normal");n==="back"&&([g,b]=[b,g]);const x=g?Bee[g]:null,w=b?Bee[b]:null,k=r==="dotted",C=k||r==="dashed";let _;return k?_="1,8":C&&(_="8,10"),y.jsxs(y.Fragment,{children:[i&&!c&&y.jsx("path",{className:et("react-flow__edge-interaction",be({fill:"none"})),onPointerDown:d,d:h,style:{strokeWidth:l??10,stroke:"currentcolor",strokeOpacity:0}}),y.jsxs("g",{className:mGe,onPointerDown:d,children:[y.jsxs("defs",{children:[x&&y.jsx(x,{id:"start"+e}),w&&y.jsx(w,{id:"end"+e})]}),!c&&y.jsx("path",{className:et("react-flow__edge-path","hide-on-reduced-graphics",fGe),d:h,style:s,strokeLinecap:"round"},"edge-path-bg"),y.jsx("path",{ref:f,className:et("react-flow__edge-path",i&&"react-flow__edge-interaction",gGe),d:h,style:s,strokeWidth:u,strokeLinecap:"round",strokeDasharray:_,markerStart:x?`url(#start${e})`:void 0,markerEnd:w?`url(#end${e})`:void 0},"edge-path")]})]})});My.displayName="EdgePath";const Hee=e=>{if(e!==void 0)return _d(e)?`${Math.round(e)}px`:e};function Qw({edgeProps:{id:e,selected:r=!1,data:{hovered:n=!1,active:o=!1,dimmed:a=!1,labelBBox:i,color:s="gray"}},labelPosition:l,className:c,style:d,children:u,...h}){let f=Iw(E.useCallback(w=>w.edgeLookup.get(e)?.zIndex??_l.Edge,[e]));(n||o)&&(f+=100);let g=l?.x??i?.x,b=l?.y??i?.y;if(g===void 0||b===void 0)return null;const x=l?.translate;return y.jsx(Dq,{children:y.jsx("div",{...h,className:et("nodrag nopan","likec4-edge-label-container",c),"data-likec4-hovered":n,"data-likec4-color":s,"data-edge-active":o,"data-edge-animated":o,...r!==!1&&{"data-likec4-selected":r},...a!==!1&&{"data-likec4-dimmed":a},style:{...i&&{maxWidth:i.width+18},zIndex:f,...d,transform:`translate(${Hee(g)}, ${Hee(b)}) ${x||""}`},children:u},e)})}const SGe=NA(e=>{const r=Ny(),{enableNavigateTo:n}=_r(),{data:{navigateTo:o,relations:a,existsInCurrentView:i}}=e,[s,l,c]=Cx(e),d=Qt(),u=a.length>1||!i,h=u?{...e,data:{...e.data,line:"solid",color:"amber"}}:e;let f=y.jsx($y,{edgeProps:h,className:be({transition:"fast"}),children:n&&o&&y.jsx(Zw,{...e,onClick:g=>{g.stopPropagation(),d.navigateTo(o)}})});return i||(f=y.jsx(co,{color:"orange",c:"black",label:"This relationship is not included in the current view",portalProps:{target:`#${r.rootElementId}`},openDelay:800,children:f})),y.jsxs(Py,{...h,children:[y.jsx(My,{edgeProps:h,svgPath:s,...u&&{strokeWidth:5}}),y.jsx(Qw,{edgeProps:h,labelPosition:{x:l,y:c,translate:"translate(-50%, 0)"},style:{maxWidth:Math.min(Math.abs(e.targetX-e.sourceX-70),250)},children:f})]})}),CGe=be({width:"100%",height:"100%",border:"3px dashed",borderColor:"mantine.colors.defaultBorder",borderRadius:"md",display:"flex",justifyContent:"center",alignItems:"center"});function TGe({data:{column:e}}){return y.jsx(Re,{className:CGe,children:y.jsxs(ft,{c:"dimmed",fz:"lg",fw:500,children:["No ",e==="incomers"?"incoming":"outgoing"]})})}const AGe=e=>e.context.view.id;function Jw(){const e=zp();return fn(e,AGe)}const RGe=e=>e.context.view;function NGe(){const e=zp();return fn(e,RGe,an)}const DGe=[["path",{d:"M3 6a3 3 0 1 0 6 0a3 3 0 0 0 -6 0",key:"svg-0"}],["path",{d:"M21 11v-3a2 2 0 0 0 -2 -2h-6l3 3m0 -6l-3 3",key:"svg-1"}],["path",{d:"M3 13v3a2 2 0 0 0 2 2h6l-3 -3m0 6l3 -3",key:"svg-2"}],["path",{d:"M15 18a3 3 0 1 0 6 0a3 3 0 0 0 -6 0",key:"svg-3"}]],zy=Nt("outline","transform","Transform",DGe),$Ge=[["path",{d:"M4 21v-4a3 3 0 0 1 3 -3h5",key:"svg-0"}],["path",{d:"M9 17l3 -3l-3 -3",key:"svg-1"}],["path",{d:"M14 3v4a1 1 0 0 0 1 1h4",key:"svg-2"}],["path",{d:"M5 11v-6a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2h-9.5",key:"svg-3"}]],zm=Nt("outline","file-symlink","FileSymlink",$Ge),PGe=[["path",{d:"M13 3l0 7l6 0l-8 11l0 -7l-6 0l8 -11",key:"svg-0"}]],MGe=Nt("outline","bolt","Bolt",PGe),zGe=Zn({position:"absolute",zIndex:1,justifyContent:"center",alignItems:"center",_smallZoom:{display:"none"}}),IGe=Zn({gap:"1.5",justifyContent:"center",alignItems:"center"});function e4({selected:e=!1,data:{hovered:r=!1},buttons:n}){const o=fi();return n.length?y.jsx(zr,{className:zGe,style:{top:"calc(100% - 30px)",transform:"translateX(-50%)",left:"50%",width:"auto",minHeight:30},children:y.jsx(Br,{layoutRoot:!0,initial:!1,style:{originY:0},animate:{opacity:r||e?1:.75,scale:r?1.1:e?.9:.8,y:r||e?6:0},"data-likec4-hovered":r,className:et("nodrag nopan",IGe),children:n.map((a,i)=>y.jsx(br,{component:Ni,className:zw({}),initial:!1,whileTap:{scale:1},whileHover:{scale:1.3},onClick:a.onClick,onDoubleClick:Cn,children:a.icon||y.jsx(MGe,{})},`${o}-${a.key??i}`))},`${o}-action-buttons`)}):null}const OGe=e=>e.context.subject,jGe=e=>{const{enableNavigateTo:r,enableVscode:n}=_r(),o=Qt(),a=Jw(),i=Ny(),s=Ww(OGe),{navigateTo:l,fqn:c}=e.data,d=E.useMemo(()=>{const u=[];return l&&r&&a!==l&&u.push({key:"navigate",icon:y.jsx(Ri,{}),onClick:h=>{h.stopPropagation(),o.navigateTo(l)}}),c!==s&&u.push({key:"relationships",icon:y.jsx(zy,{}),onClick:h=>{h.stopPropagation(),i.navigateTo(c,e.id)}}),n&&u.push({key:"goToSource",icon:y.jsx(zm,{}),onClick:h=>{h.stopPropagation(),o.openSource({element:c})}}),u},[l,r,a,c,s,n,o,i,e.id]);return y.jsx(e4,{buttons:d,...e})};function Iy({nodeProps:{data:{hovered:e=!1,dimmed:r=!1,...n}},className:o,children:a,style:i,...s}){let l=ds(n.style.opacity??100,{min:0,max:100});const c=l<99,d=65,u=d+ds((100-d)*(l/100),{min:0,max:100-d}),h=YUe({isTransparent:c,inverseColor:l<60,borderStyle:n.style.border??(c?"dashed":"none")}),f=ds(n.depth??1,{min:1,max:5});return y.jsx(Br,{className:et(h,o),initial:!1,"data-likec4-hovered":e,"data-likec4-color":n.color,"data-compound-depth":f,...r!==!1&&{"data-likec4-dimmed":r},style:{...i,"--_border-transparency":`${u}%`,"--_compound-transparency":`${l}%`},...s,children:a})}function Oy({data:e}){const r=X3({element:e,className:"likec4-compound-icon"});return y.jsxs("div",{className:"likec4-compound-title-container",children:[r,y.jsx(ft,{component:"h3",className:"likec4-compound-title",truncate:"end",children:e.title})]})}const Vee=o0({base:{transitionDuration:"normal"},variants:{delay:{true:{transitionDelay:{base:"0.2s",_hover:"0s"}}}}}),LGe=[["path",{d:"M3 4m0 3a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v10a3 3 0 0 1 -3 3h-12a3 3 0 0 1 -3 -3z",key:"svg-0"}],["path",{d:"M9 10m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0",key:"svg-1"}],["path",{d:"M15 8l2 0",key:"svg-2"}],["path",{d:"M15 12l2 0",key:"svg-3"}],["path",{d:"M7 16l10 0",key:"svg-4"}]],DA=Nt("outline","id","Id",LGe);function qee({data:{hovered:e=!1},icon:r,onClick:n}){const o=W7(e,e?130:0)[0]&&e;return y.jsx(Br,{initial:!1,animate:{scale:o?1.2:1},whileHover:{scale:1.4},whileTap:{scale:1},className:"likec4-compound-details details-button",children:y.jsx(br,{className:et("nodrag nopan",Vee({delay:e&&!o}),zw({variant:"transparent"})),onClick:n,onDoubleClick:Cn,children:r??y.jsx(DA,{stroke:1.8,style:{width:"75%"}})})})}const BGe=be({position:"relative",width:"full",height:"full",padding:"0",margin:"0",display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",_focusVisible:{outline:"none"},_whenSelectable:{pointerEvents:"all",_before:{content:'" "',position:"absolute",top:"[calc(100% - 4px)]",left:"0",width:"full",height:"24px",background:"transparent",pointerEvents:"all"}},_reduceGraphicsOnPan:{_before:{display:"none"}},":where(.react-flow__node.selectable:not(.dragging)) &":{cursor:"pointer"}}),Im=E.forwardRef(({nodeProps:{selected:e=!1,selectable:r=!1,data:{hovered:n=!1,dimmed:o=!1,...a}},className:i,style:s,children:l,...c},d)=>{let u=1;switch(!0){case n:u=1.05;break;case e:u=1.02;break}const{size:h,padding:f,textSize:g}=Jv(a.style??{});return y.jsx(Br,{ref:d,className:et(BGe,"group","likec4-element-node",i),initial:!1,...r&&{animate:{scale:u},whileTap:{scale:.98}},"data-likec4-hovered":n,"data-likec4-color":a.color,"data-likec4-shape":a.shape,"data-likec4-shape-size":h,"data-likec4-spacing":f,"data-likec4-text-size":g,...o!==!1&&{"data-likec4-dimmed":o},style:{...s},...c,children:l})});Im.displayName="ElementNodeContainer";function Uee(e,r,n=.065){const o=Math.round(e/2),a=o,i=Ud(n*o),s=r-2*i;return{path:` M ${e},${i} +`).map(l=>l.trim()).filter(Boolean):[r],o=n.length>1,[a,i]=S.useState(!1);return y.jsxs(y.Fragment,{children:[o?y.jsx(pr,{onClick:()=>{i(!a)},className:fe({fontSize:"xs",color:"mantine.colors.dimmed",justifySelf:"end",textAlign:"right",userSelect:"none",display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"xs",padding:"[4px 8px]",borderRadius:"sm",whiteSpace:"nowrap",transition:"all 150ms ease",_hover:{backgroundColor:"mantine.colors.gray[1]",color:"mantine.colors.primary[6]",_dark:{backgroundColor:"mantine.colors.dark[7]",color:"mantine.colors.primary[4]"}}}),children:y.jsxs(Zs,{align:"center",gap:"xs",children:[y.jsxs(at,{component:"span",size:"xs",fw:700,children:[e,":"]}),y.jsx(at,{component:"span",className:fe({fontSize:"xs",fontWeight:500,color:"mantine.colors.gray[6]",backgroundColor:"mantine.colors.gray[1]",padding:"[1px 4px]",borderRadius:"xs",_dark:{color:"mantine.colors.dark[2]",backgroundColor:"mantine.colors.dark[6]"}}),children:n.length}),a?y.jsx(xC,{size:12}):y.jsx(Sd,{size:12})]})}):y.jsxs(at,{component:"div",className:fe({fontSize:"xs",color:"mantine.colors.dimmed",justifySelf:"end",textAlign:"right",userSelect:"none",whiteSpace:"nowrap",padding:"[4px 8px]",fontWeight:700}),children:[e,":"]}),y.jsx(Se,{className:fe({justifySelf:"stretch",alignSelf:"start"}),children:o?y.jsx(JFe,{values:n,isExpanded:a}):y.jsx(Se,{className:fe({minHeight:"32px",display:"flex",alignItems:"center"}),children:y.jsx(hK,{value:n[0]||"",isExpanded:a})})})]})}const tVe=fe({"&[data-level='1']":{marginBottom:"sm"}}),rVe=fe({cursor:"default",marginTop:"0",marginBottom:"0"}),fK=fe({transition:"fast",color:"mantine.colors.gray[7]",_dark:{color:"mantine.colors.dark[1]"},"& > *":{transition:"fast"},_hover:{transitionTimingFunction:"out","& > :not([data-no-transform])":{transitionTimingFunction:"out",transform:"translateX(1px)"}}}),nVe=Ge(fK),oVe=Ge(fK,fe({cursor:"pointer",width:"100%",justifyContent:"stretch",flexWrap:"nowrap",height:"36px",paddingInlineStart:"[16px]",paddingInlineEnd:"2.5",borderRadius:"sm",alignItems:"center",color:"mantine.colors.gray[7]",_dark:{color:"mantine.colors.gray.lightColor"},_hover:{background:"mantine.colors.gray.lightHover"},"& .tabler-icon":{transition:"fast",width:"90%",opacity:.65}})),aVe=[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0",key:"svg-0"}],["path",{d:"M12 9h.01",key:"svg-1"}],["path",{d:"M11 12h1v4h1",key:"svg-2"}]],Gy=wt("outline","info-circle","InfoCircle",aVe),iVe=[["path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-0"}],["path",{d:"M12 12m-5 0a5 5 0 1 0 10 0a5 5 0 1 0 -10 0",key:"svg-1"}],["path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0",key:"svg-2"}]],lVe=wt("outline","target","Target",iVe),sVe=[["path",{d:"M4 8v-2a2 2 0 0 1 2 -2h2",key:"svg-0"}],["path",{d:"M4 16v2a2 2 0 0 0 2 2h2",key:"svg-1"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v2",key:"svg-2"}],["path",{d:"M16 20h2a2 2 0 0 0 2 -2v-2",key:"svg-3"}],["path",{d:"M8 11a3 3 0 1 0 6 0a3 3 0 0 0 -6 0",key:"svg-4"}],["path",{d:"M16 16l-2.5 -2.5",key:"svg-5"}]],gi=wt("outline","zoom-scan","ZoomScan",sVe),cVe=({node:e})=>y.jsxs(en,{className:nVe,gap:6,align:"baseline",wrap:"nowrap",children:[y.jsxs(at,{component:"div",fz:11,c:"dimmed",children:[e.kind,":"]}),y.jsx(at,{component:"div",fz:"sm",fw:"500",children:e.title})]}),dVe=({instance:e})=>{const r=Nt(),n=r.currentView.id,o=[...e.views()];return y.jsxs(en,{className:oVe,gap:4,children:[y.jsx($a,{color:"gray",variant:"transparent",size:"xs",flex:0,children:y.jsx(lVe,{stroke:1.2})}),y.jsx(at,{component:"div",fz:"sm",fw:"500",flex:"1 1 100%",children:e.title}),y.jsxs(Se,{onClick:nn,pos:"relative","data-no-transform":!0,flex:0,children:[o.length===0&&y.jsx(Vn,{size:"compact-xs",variant:"transparent",color:"gray",disabled:!0,children:"no views"}),o.length>0&&y.jsxs(tn,{shadow:"md",withinPortal:!1,position:"bottom-start",offset:0,closeOnClickOutside:!0,clickOutsideEvents:["pointerdown","mousedown","click"],closeOnEscape:!0,trapFocus:!0,children:[y.jsx(tn.Target,{children:y.jsxs(Vn,{size:"compact-xs",variant:"subtle",color:"gray",children:[o.length," view",o.length>1?"s":""]})}),y.jsx(tn.Dropdown,{children:o.map(a=>y.jsx(tn.Item,{px:"xs",py:4,disabled:a.id===n,leftSection:y.jsx($a,{size:"sm",variant:"transparent",color:"gray",children:y.jsx(gi,{stroke:1.8,opacity:.65})}),styles:{itemSection:{marginInlineEnd:$e(8)}},onClick:i=>{i.stopPropagation(),r.navigateTo(a.id)},children:a.title},a.id))})]})]})]})},uVe=()=>{},pVe=S.memo(({elementFqn:e})=>{const r=Lo().element(e),n=[...r.deployments()],o=hy({multiple:!1});o.setHoveredNode=uVe;const a=S.useMemo(()=>{let i=[],l=new Map;for(const s of r.deployments()){let c={label:y.jsx(dVe,{instance:s}),value:s.id,type:"instance",children:[]};l.set(s.id,c);let d=s.parent;for(;d;){let u=l.get(d.id);if(u){u.children.push(c);break}u={label:y.jsx(cVe,{node:d}),value:d.id,type:"node",children:[c]},l.set(d.id,u),c=u,d=d.parent}!d&&!i.includes(c)&&i.push(c)}return i},[r]);return S.useEffect(()=>{o.expandAllNodes()},[a]),n.length===0?y.jsx(Yw,{variant:"light",color:"gray",icon:y.jsx(Gy,{}),children:"This element does not have any deployments"}):y.jsx(Pf,{levelOffset:"sm",allowRangeSelection:!1,classNames:{node:tVe,label:rVe},styles:{root:{position:"relative",width:"min-content",minWidth:300}},data:a,tree:o,renderNode:({node:i,selected:l,elementProps:s,hasChildren:c})=>y.jsx(Se,{...s,style:{...!c&&{marginBottom:$e(4)}},children:c?y.jsx(Vn,{fullWidth:!0,color:"gray",variant:l?"transparent":"subtle",size:"xs",justify:"flex-start",styles:{root:{position:"unset",paddingInlineStart:$e(16)}},children:i.label}):i.label})})}),hVe=()=>{},mK=(e,r)=>{if(e===r)return!0;if(e.length!==r.length)return!1;for(const[n,o]of e.entries())if(!(o===r[n]||Or(o,r[n])))return!1;return!0};function Ed(e,r,n,o){const a=wI();F4e(a?hVe:e,r,mK,o)}function fVe(){const e=typeof window<"u"&&typeof window.devicePixelRatio=="number"?window.devicePixelRatio:1;return Qa(Math.floor(e),{min:1,max:4})}let Z3;function Cd(e){return Z3??=fVe(),Z3<2?Math.round(e):Math.round(e*Z3)/Z3}function mVe(e){switch(e){case"dots":return Xi.Dots;case"lines":return Xi.Lines;case"cross":return Xi.Cross;default:Xo(e)}}const gVe=(e,r)=>typeof e.background=="string"&&typeof r.background=="string"?e.background===r.background:tt(e.background,r.background),gK=S.memo(({background:e})=>typeof e=="string"?y.jsx(vV,{variant:mVe(e),size:2,gap:20}):y.jsx(vV,{...e}),gVe);gK.displayName="Background";const yK=(e,r)=>(e.data.dimmed??!1)===r?e:{...e,data:{...e.data,dimmed:r}};function yVe(e,r){return r!==void 0?yK(e,r):n=>yK(n,e)}const vK=(e,r)=>(e.data.hovered??!1)===r?e:{...e,data:{...e.data,hovered:r}};function vVe(e,r){return r!==void 0?vK(e,r):n=>vK(n,e)}function bK(e,r){return BV(e.data,r)?e:{...e,data:{...e.data,...r}}}function bVe(e,r){return r!==void 0?bK(e,r):n=>bK(n,e)}const tr={setDimmed:yVe,setHovered:vVe,setData:bVe},oc={Compound:1,Edge:20,Element:20,Max:30},yi=.05,wC=3,K3={default:"16px",withControls:{top:"58px",left:"16px",right:"16px",bottom:"16px"}};function kC({nodes:e,edges:r,onEdgesChange:n,onNodesChange:o,className:a,pannable:i=!0,zoomable:l=!0,nodesSelectable:s=!0,nodesDraggable:c=!1,background:d="dots",children:u,colorMode:p,fitViewPadding:f=0,fitView:g=!0,zoomOnDoubleClick:v=!1,onViewportResize:w,onMoveEnd:x,onNodeMouseEnter:k,onNodeMouseLeave:C,onEdgeMouseEnter:_,onEdgeMouseLeave:$,...z}){const j=S.useMemo(()=>({minZoom:yi,maxZoom:1,padding:f,includeHiddenNodes:!1}),[f]),A=d!=="transparent"&&d!=="solid",R=xFe(),T=hC(),{colorScheme:O}=nRe();return p||(p=O==="auto"?"system":O),y.jsxs(bSe,{colorMode:p,nodes:e,edges:r,className:Ge(d==="transparent"&&"bg-transparent",a),...R&&{"data-likec4-zoom-small":!0},zoomOnPinch:l,zoomOnScroll:!i&&l,...!l&&{zoomActivationKeyCode:null},zoomOnDoubleClick:v,maxZoom:l?wC:1,minZoom:l?yi:1,fitView:g,fitViewOptions:j,preventScrolling:l||i,defaultMarkerColor:"var(--xy-edge-stroke)",noDragClassName:"nodrag",noPanClassName:"nopan",noWheelClassName:"nowheel",panOnScroll:i,panOnDrag:i,...!i&&{panActivationKeyCode:null,selectionKeyCode:null},elementsSelectable:s,nodesFocusable:c||s,edgesFocusable:!1,nodesDraggable:c,nodeDragThreshold:4,nodeClickDistance:3,paneClickDistance:3,elevateNodesOnSelect:!1,selectNodesOnDrag:!1,onNodesChange:o,onEdgesChange:n,onMoveEnd:it((P,{x:L,y:H,zoom:M})=>{const V=Cd(L),B=Cd(H);(L!==V||H!==B)&&T.setState({transform:[V,B,M]}),x?.(P,{x:V,y:B,zoom:M})}),onNodeMouseEnter:it((P,L)=>{if(k){k(P,L);return}o([{id:L.id,type:"replace",item:tr.setHovered(L,!0)}])}),onNodeMouseLeave:it((P,L)=>{if(C){C(P,L);return}o([{id:L.id,type:"replace",item:tr.setHovered(L,!1)}])}),onEdgeMouseEnter:it((P,L)=>{if(_){_(P,L);return}n([{id:L.id,type:"replace",item:tr.setHovered(L,!0)}])}),onEdgeMouseLeave:it((P,L)=>{if($){$(P,L);return}n([{id:L.id,type:"replace",item:tr.setHovered(L,!1)}])}),onNodeDoubleClick:nn,onEdgeDoubleClick:nn,...z,children:[A&&y.jsx(gK,{background:d}),w&&y.jsx(wVe,{onViewportResize:w}),u]})}const xVe=({width:e,height:r})=>(e||1)*(r||1),wVe=({onViewportResize:e})=>{const r=Dt(xVe);return Ed(e,[r]),null},xK=S.createContext(null);function wK(){return mt(S.useContext(xK),"No RelationshipsBrowserActorContext")}function Q3(e,r=Or){const n=wK();return pn(n,e,r)}function Yy(){const e=wK();return S.useMemo(()=>({actor:e,get rootElementId(){return`relationships-browser-${e.sessionId.replaceAll(":","_")}`},getState:()=>e.getSnapshot().context,send:e.send,updateView:r=>{e.getSnapshot().status==="active"&&e.send({type:"update.view",layouted:r})},changeScope:r=>{e.send({type:"change.scope",scope:r})},navigateTo:(r,n)=>{e.send({type:"navigate.to",subject:r,fromNode:n})},fitDiagram:()=>{e.send({type:"fitDiagram"})},close:()=>{e._parent?e._parent?.send({type:"close",actorId:e.id}):e.send({type:"close"})}}),[e])}var _C,kK;function SC(){if(kK)return _C;kK=1;var e="\0",r="\0",n="";class o{_isDirected=!0;_isMultigraph=!1;_isCompound=!1;_label;_defaultNodeLabelFn=()=>{};_defaultEdgeLabelFn=()=>{};_nodes={};_in={};_preds={};_out={};_sucs={};_edgeObjs={};_edgeLabels={};_nodeCount=0;_edgeCount=0;_parent;_children;constructor(u){u&&(this._isDirected=Object.hasOwn(u,"directed")?u.directed:!0,this._isMultigraph=Object.hasOwn(u,"multigraph")?u.multigraph:!1,this._isCompound=Object.hasOwn(u,"compound")?u.compound:!1),this._isCompound&&(this._parent={},this._children={},this._children[r]={})}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(u){return this._label=u,this}graph(){return this._label}setDefaultNodeLabel(u){return this._defaultNodeLabelFn=u,typeof u!="function"&&(this._defaultNodeLabelFn=()=>u),this}nodeCount(){return this._nodeCount}nodes(){return Object.keys(this._nodes)}sources(){var u=this;return this.nodes().filter(p=>Object.keys(u._in[p]).length===0)}sinks(){var u=this;return this.nodes().filter(p=>Object.keys(u._out[p]).length===0)}setNodes(u,p){var f=arguments,g=this;return u.forEach(function(v){f.length>1?g.setNode(v,p):g.setNode(v)}),this}setNode(u,p){return Object.hasOwn(this._nodes,u)?(arguments.length>1&&(this._nodes[u]=p),this):(this._nodes[u]=arguments.length>1?p:this._defaultNodeLabelFn(u),this._isCompound&&(this._parent[u]=r,this._children[u]={},this._children[r][u]=!0),this._in[u]={},this._preds[u]={},this._out[u]={},this._sucs[u]={},++this._nodeCount,this)}node(u){return this._nodes[u]}hasNode(u){return Object.hasOwn(this._nodes,u)}removeNode(u){var p=this;if(Object.hasOwn(this._nodes,u)){var f=g=>p.removeEdge(p._edgeObjs[g]);delete this._nodes[u],this._isCompound&&(this._removeFromParentsChildList(u),delete this._parent[u],this.children(u).forEach(function(g){p.setParent(g)}),delete this._children[u]),Object.keys(this._in[u]).forEach(f),delete this._in[u],delete this._preds[u],Object.keys(this._out[u]).forEach(f),delete this._out[u],delete this._sucs[u],--this._nodeCount}return this}setParent(u,p){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(p===void 0)p=r;else{p+="";for(var f=p;f!==void 0;f=this.parent(f))if(f===u)throw new Error("Setting "+p+" as parent of "+u+" would create a cycle");this.setNode(p)}return this.setNode(u),this._removeFromParentsChildList(u),this._parent[u]=p,this._children[p][u]=!0,this}_removeFromParentsChildList(u){delete this._children[this._parent[u]][u]}parent(u){if(this._isCompound){var p=this._parent[u];if(p!==r)return p}}children(u=r){if(this._isCompound){var p=this._children[u];if(p)return Object.keys(p)}else{if(u===r)return this.nodes();if(this.hasNode(u))return[]}}predecessors(u){var p=this._preds[u];if(p)return Object.keys(p)}successors(u){var p=this._sucs[u];if(p)return Object.keys(p)}neighbors(u){var p=this.predecessors(u);if(p){const g=new Set(p);for(var f of this.successors(u))g.add(f);return Array.from(g.values())}}isLeaf(u){var p;return this.isDirected()?p=this.successors(u):p=this.neighbors(u),p.length===0}filterNodes(u){var p=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});p.setGraph(this.graph());var f=this;Object.entries(this._nodes).forEach(function([w,x]){u(w)&&p.setNode(w,x)}),Object.values(this._edgeObjs).forEach(function(w){p.hasNode(w.v)&&p.hasNode(w.w)&&p.setEdge(w,f.edge(w))});var g={};function v(w){var x=f.parent(w);return x===void 0||p.hasNode(x)?(g[w]=x,x):x in g?g[x]:v(x)}return this._isCompound&&p.nodes().forEach(w=>p.setParent(w,v(w))),p}setDefaultEdgeLabel(u){return this._defaultEdgeLabelFn=u,typeof u!="function"&&(this._defaultEdgeLabelFn=()=>u),this}edgeCount(){return this._edgeCount}edges(){return Object.values(this._edgeObjs)}setPath(u,p){var f=this,g=arguments;return u.reduce(function(v,w){return g.length>1?f.setEdge(v,w,p):f.setEdge(v,w),w}),this}setEdge(){var u,p,f,g,v=!1,w=arguments[0];typeof w=="object"&&w!==null&&"v"in w?(u=w.v,p=w.w,f=w.name,arguments.length===2&&(g=arguments[1],v=!0)):(u=w,p=arguments[1],f=arguments[3],arguments.length>2&&(g=arguments[2],v=!0)),u=""+u,p=""+p,f!==void 0&&(f=""+f);var x=l(this._isDirected,u,p,f);if(Object.hasOwn(this._edgeLabels,x))return v&&(this._edgeLabels[x]=g),this;if(f!==void 0&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(u),this.setNode(p),this._edgeLabels[x]=v?g:this._defaultEdgeLabelFn(u,p,f);var k=s(this._isDirected,u,p,f);return u=k.v,p=k.w,Object.freeze(k),this._edgeObjs[x]=k,a(this._preds[p],u),a(this._sucs[u],p),this._in[p][x]=k,this._out[u][x]=k,this._edgeCount++,this}edge(u,p,f){var g=arguments.length===1?c(this._isDirected,arguments[0]):l(this._isDirected,u,p,f);return this._edgeLabels[g]}edgeAsObj(){const u=this.edge(...arguments);return typeof u!="object"?{label:u}:u}hasEdge(u,p,f){var g=arguments.length===1?c(this._isDirected,arguments[0]):l(this._isDirected,u,p,f);return Object.hasOwn(this._edgeLabels,g)}removeEdge(u,p,f){var g=arguments.length===1?c(this._isDirected,arguments[0]):l(this._isDirected,u,p,f),v=this._edgeObjs[g];return v&&(u=v.v,p=v.w,delete this._edgeLabels[g],delete this._edgeObjs[g],i(this._preds[p],u),i(this._sucs[u],p),delete this._in[p][g],delete this._out[u][g],this._edgeCount--),this}inEdges(u,p){var f=this._in[u];if(f){var g=Object.values(f);return p?g.filter(v=>v.v===p):g}}outEdges(u,p){var f=this._out[u];if(f){var g=Object.values(f);return p?g.filter(v=>v.w===p):g}}nodeEdges(u,p){var f=this.inEdges(u,p);if(f)return f.concat(this.outEdges(u,p))}}function a(d,u){d[u]?d[u]++:d[u]=1}function i(d,u){--d[u]||delete d[u]}function l(d,u,p,f){var g=""+u,v=""+p;if(!d&&g>v){var w=g;g=v,v=w}return g+n+v+n+(f===void 0?e:f)}function s(d,u,p,f){var g=""+u,v=""+p;if(!d&&g>v){var w=g;g=v,v=w}var x={v:g,w:v};return f&&(x.name=f),x}function c(d,u){return l(d,u.v,u.w,u.name)}return _C=o,_C}var _K,SK;function kVe(){return SK||(SK=1,_K="2.2.4"),_K}var EK,CK;function _Ve(){return CK||(CK=1,EK={Graph:SC(),version:kVe()}),EK}var EC,$K;function SVe(){if($K)return EC;$K=1;var e=SC();EC={write:r,read:a};function r(i){var l={options:{directed:i.isDirected(),multigraph:i.isMultigraph(),compound:i.isCompound()},nodes:n(i),edges:o(i)};return i.graph()!==void 0&&(l.value=structuredClone(i.graph())),l}function n(i){return i.nodes().map(function(l){var s=i.node(l),c=i.parent(l),d={v:l};return s!==void 0&&(d.value=s),c!==void 0&&(d.parent=c),d})}function o(i){return i.edges().map(function(l){var s=i.edge(l),c={v:l.v,w:l.w};return l.name!==void 0&&(c.name=l.name),s!==void 0&&(c.value=s),c})}function a(i){var l=new e(i.options).setGraph(i.value);return i.nodes.forEach(function(s){l.setNode(s.v,s.value),s.parent&&l.setParent(s.v,s.parent)}),i.edges.forEach(function(s){l.setEdge({v:s.v,w:s.w,name:s.name},s.value)}),l}return EC}var CC,zK;function EVe(){if(zK)return CC;zK=1,CC=e;function e(r){var n={},o=[],a;function i(l){Object.hasOwn(n,l)||(n[l]=!0,a.push(l),r.successors(l).forEach(i),r.predecessors(l).forEach(i))}return r.nodes().forEach(function(l){a=[],i(l),a.length&&o.push(a)}),o}return CC}var $C,RK;function jK(){if(RK)return $C;RK=1;class e{_arr=[];_keyIndices={};size(){return this._arr.length}keys(){return this._arr.map(function(n){return n.key})}has(n){return Object.hasOwn(this._keyIndices,n)}priority(n){var o=this._keyIndices[n];if(o!==void 0)return this._arr[o].priority}min(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key}add(n,o){var a=this._keyIndices;if(n=String(n),!Object.hasOwn(a,n)){var i=this._arr,l=i.length;return a[n]=l,i.push({key:n,priority:o}),this._decrease(l),!0}return!1}removeMin(){this._swap(0,this._arr.length-1);var n=this._arr.pop();return delete this._keyIndices[n.key],this._heapify(0),n.key}decrease(n,o){var a=this._keyIndices[n];if(o>this._arr[a].priority)throw new Error("New priority is greater than current priority. Key: "+n+" Old: "+this._arr[a].priority+" New: "+o);this._arr[a].priority=o,this._decrease(a)}_heapify(n){var o=this._arr,a=2*n,i=a+1,l=n;a>1,!(o[i].priority1;function n(a,i,l,s){return o(a,String(i),l||r,s||function(c){return a.outEdges(c)})}function o(a,i,l,s){var c={},d=new e,u,p,f=function(g){var v=g.v!==u?g.v:g.w,w=c[v],x=l(g),k=p.distance+x;if(x<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+g+" Weight: "+x);k0&&(u=d.removeMin(),p=c[u],p.distance!==Number.POSITIVE_INFINITY);)s(u).forEach(f);return c}return zC}var RC,DK;function CVe(){if(DK)return RC;DK=1;var e=AK();RC=r;function r(n,o,a){return n.nodes().reduce(function(i,l){return i[l]=e(n,l,o,a),i},{})}return RC}var jC,MK;function NK(){if(MK)return jC;MK=1,jC=e;function e(r){var n=0,o=[],a={},i=[];function l(s){var c=a[s]={onStack:!0,lowlink:n,index:n++};if(o.push(s),r.successors(s).forEach(function(p){Object.hasOwn(a,p)?a[p].onStack&&(c.lowlink=Math.min(c.lowlink,a[p].index)):(l(p),c.lowlink=Math.min(c.lowlink,a[p].lowlink))}),c.lowlink===c.index){var d=[],u;do u=o.pop(),a[u].onStack=!1,d.push(u);while(s!==u);i.push(d)}}return r.nodes().forEach(function(s){Object.hasOwn(a,s)||l(s)}),i}return jC}var TC,PK;function $Ve(){if(PK)return TC;PK=1;var e=NK();TC=r;function r(n){return e(n).filter(function(o){return o.length>1||o.length===1&&n.hasEdge(o[0],o[0])})}return TC}var AC,BK;function zVe(){if(BK)return AC;BK=1,AC=r;var e=()=>1;function r(o,a,i){return n(o,a||e,i||function(l){return o.outEdges(l)})}function n(o,a,i){var l={},s=o.nodes();return s.forEach(function(c){l[c]={},l[c][c]={distance:0},s.forEach(function(d){c!==d&&(l[c][d]={distance:Number.POSITIVE_INFINITY})}),i(c).forEach(function(d){var u=d.v===c?d.w:d.v,p=a(d);l[c][u]={distance:p,predecessor:c}})}),s.forEach(function(c){var d=l[c];s.forEach(function(u){var p=l[u];s.forEach(function(f){var g=p[c],v=d[f],w=p[f],x=g.distance+v.distance;xa.successors(p):p=>a.neighbors(p),c=l==="post"?r:n,d=[],u={};return i.forEach(p=>{if(!a.hasNode(p))throw new Error("Graph does not have node: "+p);c(p,s,u,d)}),d}function r(a,i,l,s){for(var c=[[a,!1]];c.length>0;){var d=c.pop();d[1]?s.push(d[0]):Object.hasOwn(l,d[0])||(l[d[0]]=!0,c.push([d[0],!0]),o(i(d[0]),u=>c.push([u,!1])))}}function n(a,i,l,s){for(var c=[a];c.length>0;){var d=c.pop();Object.hasOwn(l,d)||(l[d]=!0,s.push(d),o(i(d),u=>c.push(u)))}}function o(a,i){for(var l=a.length;l--;)i(a[l],l,a);return a}return NC}var PC,qK;function jVe(){if(qK)return PC;qK=1;var e=VK();PC=r;function r(n,o){return e(n,o,"post")}return PC}var BC,HK;function TVe(){if(HK)return BC;HK=1;var e=VK();BC=r;function r(n,o){return e(n,o,"pre")}return BC}var OC,UK;function AVe(){if(UK)return OC;UK=1;var e=SC(),r=jK();OC=n;function n(o,a){var i=new e,l={},s=new r,c;function d(p){var f=p.v===c?p.w:p.v,g=s.priority(f);if(g!==void 0){var v=a(p);v0;){if(c=s.removeMin(),Object.hasOwn(l,c))i.setEdge(c,l[c]);else{if(u)throw new Error("Input graph is not connected: "+o);u=!0}o.nodeEdges(c).forEach(d)}return i}return OC}var WK,GK;function DVe(){return GK||(GK=1,WK={components:EVe(),dijkstra:AK(),dijkstraAll:CVe(),findCycles:$Ve(),floydWarshall:zVe(),isAcyclic:RVe(),postorder:jVe(),preorder:TVe(),prim:AVe(),tarjan:NK(),topsort:IK()}),WK}var IC,YK;function ll(){if(YK)return IC;YK=1;var e=_Ve();return IC={Graph:e.Graph,json:SVe(),alg:DVe(),version:e.version},IC}var LC,XK;function MVe(){if(XK)return LC;XK=1;class e{constructor(){let a={};a._next=a._prev=a,this._sentinel=a}dequeue(){let a=this._sentinel,i=a._prev;if(i!==a)return r(i),i}enqueue(a){let i=this._sentinel;a._prev&&a._next&&r(a),a._next=i._next,i._next._prev=a,i._next=a,a._prev=i}toString(){let a=[],i=this._sentinel,l=i._prev;for(;l!==i;)a.push(JSON.stringify(l,n)),l=l._prev;return"["+a.join(", ")+"]"}}function r(o){o._prev._next=o._next,o._next._prev=o._prev,delete o._next,delete o._prev}function n(o,a){if(o!=="_next"&&o!=="_prev")return a}return LC=e,LC}var FC,ZK;function NVe(){if(ZK)return FC;ZK=1;let e=ll().Graph,r=MVe();FC=o;let n=()=>1;function o(d,u){if(d.nodeCount()<=1)return[];let p=l(d,u||n);return a(p.graph,p.buckets,p.zeroIdx).flatMap(f=>d.outEdges(f.v,f.w))}function a(d,u,p){let f=[],g=u[u.length-1],v=u[0],w;for(;d.nodeCount();){for(;w=v.dequeue();)i(d,u,p,w);for(;w=g.dequeue();)i(d,u,p,w);if(d.nodeCount()){for(let x=u.length-2;x>0;--x)if(w=u[x].dequeue(),w){f=f.concat(i(d,u,p,w,!0));break}}}return f}function i(d,u,p,f,g){let v=g?[]:void 0;return d.inEdges(f.v).forEach(w=>{let x=d.edge(w),k=d.node(w.v);g&&v.push({v:w.v,w:w.w}),k.out-=x,s(u,p,k)}),d.outEdges(f.v).forEach(w=>{let x=d.edge(w),k=w.w,C=d.node(k);C.in-=x,s(u,p,C)}),d.removeNode(f.v),v}function l(d,u){let p=new e,f=0,g=0;d.nodes().forEach(x=>{p.setNode(x,{v:x,in:0,out:0})}),d.edges().forEach(x=>{let k=p.edge(x.v,x.w)||0,C=u(x),_=k+C;p.setEdge(x.v,x.w,_),g=Math.max(g,p.node(x.v).out+=C),f=Math.max(f,p.node(x.w).in+=C)});let v=c(g+f+3).map(()=>new r),w=f+1;return p.nodes().forEach(x=>{s(v,w,p.node(x))}),{graph:p,buckets:v,zeroIdx:w}}function s(d,u,p){p.out?p.in?d[p.out-p.in+u].enqueue(p):d[d.length-1].enqueue(p):d[0].enqueue(p)}function c(d){const u=[];for(let p=0;pT.setNode(O,R.node(O))),R.edges().forEach(O=>{let P=T.edge(O.v,O.w)||{weight:0,minlen:1},L=R.edge(O);T.setEdge(O.v,O.w,{weight:P.weight+L.weight,minlen:Math.max(P.minlen,L.minlen)})}),T}function o(R){let T=new e({multigraph:R.isMultigraph()}).setGraph(R.graph());return R.nodes().forEach(O=>{R.children(O).length||T.setNode(O,R.node(O))}),R.edges().forEach(O=>{T.setEdge(O,R.edge(O))}),T}function a(R){let T=R.nodes().map(O=>{let P={};return R.outEdges(O).forEach(L=>{P[L.w]=(P[L.w]||0)+R.edge(L).weight}),P});return A(R.nodes(),T)}function i(R){let T=R.nodes().map(O=>{let P={};return R.inEdges(O).forEach(L=>{P[L.v]=(P[L.v]||0)+R.edge(L).weight}),P});return A(R.nodes(),T)}function l(R,T){let O=R.x,P=R.y,L=T.x-O,H=T.y-P,M=R.width/2,V=R.height/2;if(!L&&!H)throw new Error("Not possible to find intersection inside of the rectangle");let B,F;return Math.abs(H)*M>Math.abs(L)*V?(H<0&&(V=-V),B=V*L/H,F=V):(L<0&&(M=-M),B=M,F=M*H/L),{x:O+B,y:P+F}}function s(R){let T=$(v(R)+1).map(()=>[]);return R.nodes().forEach(O=>{let P=R.node(O),L=P.rank;L!==void 0&&(T[L][P.order]=O)}),T}function c(R){let T=R.nodes().map(P=>{let L=R.node(P).rank;return L===void 0?Number.MAX_VALUE:L}),O=g(Math.min,T);R.nodes().forEach(P=>{let L=R.node(P);Object.hasOwn(L,"rank")&&(L.rank-=O)})}function d(R){let T=R.nodes().map(M=>R.node(M).rank),O=g(Math.min,T),P=[];R.nodes().forEach(M=>{let V=R.node(M).rank-O;P[V]||(P[V]=[]),P[V].push(M)});let L=0,H=R.graph().nodeRankFactor;Array.from(P).forEach((M,V)=>{M===void 0&&V%H!==0?--L:M!==void 0&&L&&M.forEach(B=>R.node(B).rank+=L)})}function u(R,T,O,P){let L={width:0,height:0};return arguments.length>=4&&(L.rank=O,L.order=P),r(R,"border",L,T)}function p(R,T=f){const O=[];for(let P=0;Pf){const O=p(T);return R.apply(null,O.map(P=>R.apply(null,P)))}else return R.apply(null,T)}function v(R){const T=R.nodes().map(O=>{let P=R.node(O).rank;return P===void 0?Number.MIN_VALUE:P});return g(Math.max,T)}function w(R,T){let O={lhs:[],rhs:[]};return R.forEach(P=>{T(P)?O.lhs.push(P):O.rhs.push(P)}),O}function x(R,T){let O=Date.now();try{return T()}finally{console.log(R+" time: "+(Date.now()-O)+"ms")}}function k(R,T){return T()}let C=0;function _(R){var T=++C;return R+(""+T)}function $(R,T,O=1){T==null&&(T=R,R=0);let P=H=>HTP[T]),Object.entries(R).reduce((P,[L,H])=>(P[L]=O(H,L),P),{})}function A(R,T){return R.reduce((O,P,L)=>(O[P]=T[L],O),{})}return VC}var qC,QK;function PVe(){if(QK)return qC;QK=1;let e=NVe(),r=$n().uniqueId;qC={run:n,undo:a};function n(i){(i.graph().acyclicer==="greedy"?e(i,l(i)):o(i)).forEach(s=>{let c=i.edge(s);i.removeEdge(s),c.forwardName=s.name,c.reversed=!0,i.setEdge(s.w,s.v,c,r("rev"))});function l(s){return c=>s.edge(c).weight}}function o(i){let l=[],s={},c={};function d(u){Object.hasOwn(c,u)||(c[u]=!0,s[u]=!0,i.outEdges(u).forEach(p=>{Object.hasOwn(s,p.w)?l.push(p):d(p.w)}),delete s[u])}return i.nodes().forEach(d),l}function a(i){i.edges().forEach(l=>{let s=i.edge(l);if(s.reversed){i.removeEdge(l);let c=s.forwardName;delete s.reversed,delete s.forwardName,i.setEdge(l.w,l.v,s,c)}})}return qC}var HC,JK;function BVe(){if(JK)return HC;JK=1;let e=$n();HC={run:r,undo:o};function r(a){a.graph().dummyChains=[],a.edges().forEach(i=>n(a,i))}function n(a,i){let l=i.v,s=a.node(l).rank,c=i.w,d=a.node(c).rank,u=i.name,p=a.edge(i),f=p.labelRank;if(d===s+1)return;a.removeEdge(i);let g,v,w;for(w=0,++s;s{let l=a.node(i),s=l.edgeLabel,c;for(a.setEdge(l.edgeObj,s);l.dummy;)c=a.successors(i)[0],a.removeNode(i),s.points.push({x:l.x,y:l.y}),l.dummy==="edge-label"&&(s.x=l.x,s.y=l.y,s.width=l.width,s.height=l.height),i=c,l=a.node(i)})}return HC}var UC,eQ;function J3(){if(eQ)return UC;eQ=1;const{applyWithChunking:e}=$n();UC={longestPath:r,slack:n};function r(o){var a={};function i(l){var s=o.node(l);if(Object.hasOwn(a,l))return s.rank;a[l]=!0;let c=o.outEdges(l).map(u=>u==null?Number.POSITIVE_INFINITY:i(u.w)-o.edge(u).minlen);var d=e(Math.min,c);return d===Number.POSITIVE_INFINITY&&(d=0),s.rank=d}o.sources().forEach(i)}function n(o,a){return o.node(a.w).rank-o.node(a.v).rank-o.edge(a).minlen}return UC}var WC,tQ;function rQ(){if(tQ)return WC;tQ=1;var e=ll().Graph,r=J3().slack;WC=n;function n(l){var s=new e({directed:!1}),c=l.nodes()[0],d=l.nodeCount();s.setNode(c,{});for(var u,p;o(s,l){var p=u.v,f=d===p?u.w:p;!l.hasNode(f)&&!r(s,u)&&(l.setNode(f,{}),l.setEdge(d,f,{}),c(f))})}return l.nodes().forEach(c),l.nodeCount()}function a(l,s){return s.edges().reduce((c,d)=>{let u=Number.POSITIVE_INFINITY;return l.hasNode(d.v)!==l.hasNode(d.w)&&(u=r(s,d)),us.node(d).rank+=c)}return WC}var GC,nQ;function OVe(){if(nQ)return GC;nQ=1;var e=rQ(),r=J3().slack,n=J3().longestPath,o=ll().alg.preorder,a=ll().alg.postorder,i=$n().simplify;GC=l,l.initLowLimValues=u,l.initCutValues=s,l.calcCutValue=d,l.leaveEdge=f,l.enterEdge=g,l.exchangeEdges=v;function l(C){C=i(C),n(C);var _=e(C);u(_),s(_,C);for(var $,z;$=f(_);)z=g(_,C,$),v(_,C,$,z)}function s(C,_){var $=a(C,C.nodes());$=$.slice(0,$.length-1),$.forEach(z=>c(C,_,z))}function c(C,_,$){var z=C.node($),j=z.parent;C.edge($,j).cutvalue=d(C,_,$)}function d(C,_,$){var z=C.node($),j=z.parent,A=!0,R=_.edge($,j),T=0;return R||(A=!1,R=_.edge(j,$)),T=R.weight,_.nodeEdges($).forEach(O=>{var P=O.v===$,L=P?O.w:O.v;if(L!==j){var H=P===A,M=_.edge(O).weight;if(T+=H?M:-M,x(C,$,L)){var V=C.edge($,L).cutvalue;T+=H?-V:V}}}),T}function u(C,_){arguments.length<2&&(_=C.nodes()[0]),p(C,{},1,_)}function p(C,_,$,z,j){var A=$,R=C.node(z);return _[z]=!0,C.neighbors(z).forEach(T=>{Object.hasOwn(_,T)||($=p(C,_,$,T,z))}),R.low=A,R.lim=$++,j?R.parent=j:delete R.parent,$}function f(C){return C.edges().find(_=>C.edge(_).cutvalue<0)}function g(C,_,$){var z=$.v,j=$.w;_.hasEdge(z,j)||(z=$.w,j=$.v);var A=C.node(z),R=C.node(j),T=A,O=!1;A.lim>R.lim&&(T=R,O=!0);var P=_.edges().filter(L=>O===k(C,C.node(L.v),T)&&O!==k(C,C.node(L.w),T));return P.reduce((L,H)=>r(_,H)!_.node(j).parent),z=o(C,$);z=z.slice(1),z.forEach(j=>{var A=C.node(j).parent,R=_.edge(j,A),T=!1;R||(R=_.edge(A,j),T=!0),_.node(j).rank=_.node(A).rank+(T?R.minlen:-R.minlen)})}function x(C,_,$){return C.hasEdge(_,$)}function k(C,_,$){return $.low<=_.lim&&_.lim<=$.lim}return GC}var YC,oQ;function IVe(){if(oQ)return YC;oQ=1;var e=J3(),r=e.longestPath,n=rQ(),o=OVe();YC=a;function a(c){var d=c.graph().ranker;if(d instanceof Function)return d(c);switch(c.graph().ranker){case"network-simplex":s(c);break;case"tight-tree":l(c);break;case"longest-path":i(c);break;case"none":break;default:s(c)}}var i=r;function l(c){r(c),n(c)}function s(c){o(c)}return YC}var XC,aQ;function LVe(){if(aQ)return XC;aQ=1,XC=e;function e(o){let a=n(o);o.graph().dummyChains.forEach(i=>{let l=o.node(i),s=l.edgeObj,c=r(o,a,s.v,s.w),d=c.path,u=c.lca,p=0,f=d[p],g=!0;for(;i!==s.w;){if(l=o.node(i),g){for(;(f=d[p])!==u&&o.node(f).maxRankd||u>a[p].lim));for(f=p,p=l;(p=o.parent(p))!==f;)c.push(p);return{path:s.concat(c.reverse()),lca:f}}function n(o){let a={},i=0;function l(s){let c=i;o.children(s).forEach(l),a[s]={low:c,lim:i++}}return o.children().forEach(l),a}return XC}var ZC,iQ;function FVe(){if(iQ)return ZC;iQ=1;let e=$n();ZC={run:r,cleanup:i};function r(l){let s=e.addDummyNode(l,"root",{},"_root"),c=o(l),d=Object.values(c),u=e.applyWithChunking(Math.max,d)-1,p=2*u+1;l.graph().nestingRoot=s,l.edges().forEach(g=>l.edge(g).minlen*=p);let f=a(l)+1;l.children().forEach(g=>n(l,s,p,f,u,c,g)),l.graph().nodeRankFactor=p}function n(l,s,c,d,u,p,f){let g=l.children(f);if(!g.length){f!==s&&l.setEdge(s,f,{weight:0,minlen:c});return}let v=e.addBorderNode(l,"_bt"),w=e.addBorderNode(l,"_bb"),x=l.node(f);l.setParent(v,f),x.borderTop=v,l.setParent(w,f),x.borderBottom=w,g.forEach(k=>{n(l,s,c,d,u,p,k);let C=l.node(k),_=C.borderTop?C.borderTop:k,$=C.borderBottom?C.borderBottom:k,z=C.borderTop?d:2*d,j=_!==$?1:u-p[f]+1;l.setEdge(v,_,{weight:z,minlen:j,nestingEdge:!0}),l.setEdge($,w,{weight:z,minlen:j,nestingEdge:!0})}),l.parent(f)||l.setEdge(s,v,{weight:0,minlen:u+p[f]})}function o(l){var s={};function c(d,u){var p=l.children(d);p&&p.length&&p.forEach(f=>c(f,u+1)),s[d]=u}return l.children().forEach(d=>c(d,1)),s}function a(l){return l.edges().reduce((s,c)=>s+l.edge(c).weight,0)}function i(l){var s=l.graph();l.removeNode(s.nestingRoot),delete s.nestingRoot,l.edges().forEach(c=>{var d=l.edge(c);d.nestingEdge&&l.removeEdge(c)})}return ZC}var KC,lQ;function VVe(){if(lQ)return KC;lQ=1;let e=$n();KC=r;function r(o){function a(i){let l=o.children(i),s=o.node(i);if(l.length&&l.forEach(a),Object.hasOwn(s,"minRank")){s.borderLeft=[],s.borderRight=[];for(let c=s.minRank,d=s.maxRank+1;co(c.node(d))),c.edges().forEach(d=>o(c.edge(d)))}function o(c){let d=c.width;c.width=c.height,c.height=d}function a(c){c.nodes().forEach(d=>i(c.node(d))),c.edges().forEach(d=>{let u=c.edge(d);u.points.forEach(i),Object.hasOwn(u,"y")&&i(u)})}function i(c){c.y=-c.y}function l(c){c.nodes().forEach(d=>s(c.node(d))),c.edges().forEach(d=>{let u=c.edge(d);u.points.forEach(s),Object.hasOwn(u,"x")&&s(u)})}function s(c){let d=c.x;c.x=c.y,c.y=d}return QC}var JC,cQ;function HVe(){if(cQ)return JC;cQ=1;let e=$n();JC=r;function r(n){let o={},a=n.nodes().filter(d=>!n.children(d).length),i=a.map(d=>n.node(d).rank),l=e.applyWithChunking(Math.max,i),s=e.range(l+1).map(()=>[]);function c(d){if(o[d])return;o[d]=!0;let u=n.node(d);s[u.rank].push(d),n.successors(d).forEach(c)}return a.sort((d,u)=>n.node(d).rank-n.node(u).rank).forEach(c),s}return JC}var e$,dQ;function UVe(){if(dQ)return e$;dQ=1;let e=$n().zipObject;e$=r;function r(o,a){let i=0;for(let l=1;lg)),s=a.flatMap(f=>o.outEdges(f).map(g=>({pos:l[g.w],weight:o.edge(g).weight})).sort((g,v)=>g.pos-v.pos)),c=1;for(;c{let g=f.pos+c;u[g]+=f.weight;let v=0;for(;g>0;)g%2&&(v+=u[g+1]),g=g-1>>1,u[g]+=f.weight;p+=f.weight*v}),p}return e$}var t$,uQ;function WVe(){if(uQ)return t$;uQ=1,t$=e;function e(r,n=[]){return n.map(o=>{let a=r.inEdges(o);if(a.length){let i=a.reduce((l,s)=>{let c=r.edge(s),d=r.node(s.v);return{sum:l.sum+c.weight*d.order,weight:l.weight+c.weight}},{sum:0,weight:0});return{v:o,barycenter:i.sum/i.weight,weight:i.weight}}else return{v:o}})}return t$}var r$,pQ;function GVe(){if(pQ)return r$;pQ=1;let e=$n();r$=r;function r(a,i){let l={};a.forEach((c,d)=>{let u=l[c.v]={indegree:0,in:[],out:[],vs:[c.v],i:d};c.barycenter!==void 0&&(u.barycenter=c.barycenter,u.weight=c.weight)}),i.edges().forEach(c=>{let d=l[c.v],u=l[c.w];d!==void 0&&u!==void 0&&(u.indegree++,d.out.push(l[c.w]))});let s=Object.values(l).filter(c=>!c.indegree);return n(s)}function n(a){let i=[];function l(c){return d=>{d.merged||(d.barycenter===void 0||c.barycenter===void 0||d.barycenter>=c.barycenter)&&o(c,d)}}function s(c){return d=>{d.in.push(c),--d.indegree===0&&a.push(d)}}for(;a.length;){let c=a.pop();i.push(c),c.in.reverse().forEach(l(c)),c.out.forEach(s(c))}return i.filter(c=>!c.merged).map(c=>e.pick(c,["vs","i","barycenter","weight"]))}function o(a,i){let l=0,s=0;a.weight&&(l+=a.barycenter*a.weight,s+=a.weight),i.weight&&(l+=i.barycenter*i.weight,s+=i.weight),a.vs=i.vs.concat(a.vs),a.barycenter=l/s,a.weight=s,a.i=Math.min(i.i,a.i),i.merged=!0}return r$}var n$,hQ;function YVe(){if(hQ)return n$;hQ=1;let e=$n();n$=r;function r(a,i){let l=e.partition(a,v=>Object.hasOwn(v,"barycenter")),s=l.lhs,c=l.rhs.sort((v,w)=>w.i-v.i),d=[],u=0,p=0,f=0;s.sort(o(!!i)),f=n(d,c,f),s.forEach(v=>{f+=v.vs.length,d.push(v.vs),u+=v.barycenter*v.weight,p+=v.weight,f=n(d,c,f)});let g={vs:d.flat(!0)};return p&&(g.barycenter=u/p,g.weight=p),g}function n(a,i,l){let s;for(;i.length&&(s=i[i.length-1]).i<=l;)i.pop(),a.push(s.vs),l++;return l}function o(a){return(i,l)=>i.barycenterl.barycenter?1:a?l.i-i.i:i.i-l.i}return n$}var o$,fQ;function XVe(){if(fQ)return o$;fQ=1;let e=WVe(),r=GVe(),n=YVe();o$=o;function o(l,s,c,d){let u=l.children(s),p=l.node(s),f=p?p.borderLeft:void 0,g=p?p.borderRight:void 0,v={};f&&(u=u.filter(C=>C!==f&&C!==g));let w=e(l,u);w.forEach(C=>{if(l.children(C.v).length){let _=o(l,C.v,c,d);v[C.v]=_,Object.hasOwn(_,"barycenter")&&i(C,_)}});let x=r(w,c);a(x,v);let k=n(x,d);if(f&&(k.vs=[f,k.vs,g].flat(!0),l.predecessors(f).length)){let C=l.node(l.predecessors(f)[0]),_=l.node(l.predecessors(g)[0]);Object.hasOwn(k,"barycenter")||(k.barycenter=0,k.weight=0),k.barycenter=(k.barycenter*k.weight+C.order+_.order)/(k.weight+2),k.weight+=2}return k}function a(l,s){l.forEach(c=>{c.vs=c.vs.flatMap(d=>s[d]?s[d].vs:d)})}function i(l,s){l.barycenter!==void 0?(l.barycenter=(l.barycenter*l.weight+s.barycenter*s.weight)/(l.weight+s.weight),l.weight+=s.weight):(l.barycenter=s.barycenter,l.weight=s.weight)}return o$}var a$,mQ;function ZVe(){if(mQ)return a$;mQ=1;let e=ll().Graph,r=$n();a$=n;function n(a,i,l,s){s||(s=a.nodes());let c=o(a),d=new e({compound:!0}).setGraph({root:c}).setDefaultNodeLabel(u=>a.node(u));return s.forEach(u=>{let p=a.node(u),f=a.parent(u);(p.rank===i||p.minRank<=i&&i<=p.maxRank)&&(d.setNode(u),d.setParent(u,f||c),a[l](u).forEach(g=>{let v=g.v===u?g.w:g.v,w=d.edge(v,u),x=w!==void 0?w.weight:0;d.setEdge(v,u,{weight:a.edge(g).weight+x})}),Object.hasOwn(p,"minRank")&&d.setNode(u,{borderLeft:p.borderLeft[i],borderRight:p.borderRight[i]}))}),d}function o(a){for(var i;a.hasNode(i=r.uniqueId("_root")););return i}return a$}var i$,gQ;function KVe(){if(gQ)return i$;gQ=1,i$=e;function e(r,n,o){let a={},i;o.forEach(l=>{let s=r.parent(l),c,d;for(;s;){if(c=r.parent(s),c?(d=a[c],a[c]=s):(d=i,i=s),d&&d!==s){n.setEdge(d,s);return}s=c}})}return i$}var l$,yQ;function QVe(){if(yQ)return l$;yQ=1;let e=HVe(),r=UVe(),n=XVe(),o=ZVe(),a=KVe(),i=ll().Graph,l=$n();l$=s;function s(p,f){if(f&&typeof f.customOrder=="function"){f.customOrder(p,s);return}let g=l.maxRank(p),v=c(p,l.range(1,g+1),"inEdges"),w=c(p,l.range(g-1,-1,-1),"outEdges"),x=e(p);if(u(p,x),f&&f.disableOptimalOrderHeuristic)return;let k=Number.POSITIVE_INFINITY,C;for(let _=0,$=0;$<4;++_,++$){d(_%2?v:w,_%4>=2),x=l.buildLayerMatrix(p);let z=r(p,x);z{v.has(x)||v.set(x,[]),v.get(x).push(k)};for(const x of p.nodes()){const k=p.node(x);if(typeof k.rank=="number"&&w(k.rank,x),typeof k.minRank=="number"&&typeof k.maxRank=="number")for(let C=k.minRank;C<=k.maxRank;C++)C!==k.rank&&w(C,x)}return f.map(function(x){return o(p,x,g,v.get(x)||[])})}function d(p,f){let g=new i;p.forEach(function(v){let w=v.graph().root,x=n(v,w,g,f);x.vs.forEach((k,C)=>v.node(k).order=C),a(v,g,x.vs)})}function u(p,f){Object.values(f).forEach(g=>g.forEach((v,w)=>p.node(v).order=w))}return l$}var s$,vQ;function JVe(){if(vQ)return s$;vQ=1;let e=ll().Graph,r=$n();s$={positionX:g,findType1Conflicts:n,findType2Conflicts:o,addConflict:i,hasConflict:l,verticalAlignment:s,horizontalCompaction:c,alignCoordinates:p,findSmallestWidthAlignment:u,balance:f};function n(x,k){let C={};function _($,z){let j=0,A=0,R=$.length,T=z[z.length-1];return z.forEach((O,P)=>{let L=a(x,O),H=L?x.node(L).order:R;(L||O===T)&&(z.slice(A,P+1).forEach(M=>{x.predecessors(M).forEach(V=>{let B=x.node(V),F=B.order;(F{O=z[P],x.node(O).dummy&&x.predecessors(O).forEach(L=>{let H=x.node(L);H.dummy&&(H.orderT)&&i(C,L,O)})})}function $(z,j){let A=-1,R,T=0;return j.forEach((O,P)=>{if(x.node(O).dummy==="border"){let L=x.predecessors(O);L.length&&(R=x.node(L[0]).order,_(j,T,P,A,R),T=P,A=R)}_(j,T,j.length,R,z.length)}),j}return k.length&&k.reduce($),C}function a(x,k){if(x.node(k).dummy)return x.predecessors(k).find(C=>x.node(C).dummy)}function i(x,k,C){if(k>C){let $=k;k=C,C=$}let _=x[k];_||(x[k]=_={}),_[C]=!0}function l(x,k,C){if(k>C){let _=k;k=C,C=_}return!!x[k]&&Object.hasOwn(x[k],C)}function s(x,k,C,_){let $={},z={},j={};return k.forEach(A=>{A.forEach((R,T)=>{$[R]=R,z[R]=R,j[R]=T})}),k.forEach(A=>{let R=-1;A.forEach(T=>{let O=_(T);if(O.length){O=O.sort((L,H)=>j[L]-j[H]);let P=(O.length-1)/2;for(let L=Math.floor(P),H=Math.ceil(P);L<=H;++L){let M=O[L];z[T]===T&&RMath.max(L,z[H.v]+j.edge(H)),0)}function O(P){let L=j.outEdges(P).reduce((M,V)=>Math.min(M,z[V.w]-j.edge(V)),Number.POSITIVE_INFINITY),H=x.node(P);L!==Number.POSITIVE_INFINITY&&H.borderType!==A&&(z[P]=Math.max(z[P],L))}return R(T,j.predecessors.bind(j)),R(O,j.successors.bind(j)),Object.keys(_).forEach(P=>z[P]=z[C[P]]),z}function d(x,k,C,_){let $=new e,z=x.graph(),j=v(z.nodesep,z.edgesep,_);return k.forEach(A=>{let R;A.forEach(T=>{let O=C[T];if($.setNode(O),R){var P=C[R],L=$.edge(P,O);$.setEdge(P,O,Math.max(j(x,T,R),L||0))}R=T})}),$}function u(x,k){return Object.values(k).reduce((C,_)=>{let $=Number.NEGATIVE_INFINITY,z=Number.POSITIVE_INFINITY;Object.entries(_).forEach(([A,R])=>{let T=w(x,A)/2;$=Math.max(R+T,$),z=Math.min(R-T,z)});const j=$-z;return j{["l","r"].forEach(j=>{let A=z+j,R=x[A];if(R===k)return;let T=Object.values(R),O=_-r.applyWithChunking(Math.min,T);j!=="l"&&(O=$-r.applyWithChunking(Math.max,T)),O&&(x[A]=r.mapValues(R,P=>P+O))})})}function f(x,k){return r.mapValues(x.ul,(C,_)=>{if(k)return x[k.toLowerCase()][_];{let $=Object.values(x).map(z=>z[_]).sort((z,j)=>z-j);return($[1]+$[2])/2}})}function g(x){let k=r.buildLayerMatrix(x),C=Object.assign(n(x,k),o(x,k)),_={},$;["u","d"].forEach(j=>{$=j==="u"?k:Object.values(k).reverse(),["l","r"].forEach(A=>{A==="r"&&($=$.map(P=>Object.values(P).reverse()));let R=(j==="u"?x.predecessors:x.successors).bind(x),T=s(x,$,C,R),O=c(x,$,T.root,T.align,A==="r");A==="r"&&(O=r.mapValues(O,P=>-P)),_[j+A]=O})});let z=u(x,_);return p(_,z),f(_,x.graph().align)}function v(x,k,C){return(_,$,z)=>{let j=_.node($),A=_.node(z),R=0,T;if(R+=j.width/2,Object.hasOwn(j,"labelpos"))switch(j.labelpos.toLowerCase()){case"l":T=-j.width/2;break;case"r":T=j.width/2;break}if(T&&(R+=C?T:-T),T=0,R+=(j.dummy?k:x)/2,R+=(A.dummy?k:x)/2,R+=A.width/2,Object.hasOwn(A,"labelpos"))switch(A.labelpos.toLowerCase()){case"l":T=A.width/2;break;case"r":T=-A.width/2;break}return T&&(R+=C?T:-T),T=0,R}}function w(x,k){return x.node(k).width}return s$}var c$,bQ;function eqe(){if(bQ)return c$;bQ=1;let e=$n(),r=JVe().positionX;c$=n;function n(a){a=e.asNonCompoundGraph(a),o(a),Object.entries(r(a)).forEach(([i,l])=>a.node(i).x=l)}function o(a){let i=e.buildLayerMatrix(a),l=a.graph().ranksep,s=0;i.forEach(c=>{const d=c.reduce((u,p)=>{const f=a.node(p).height;return u>f?u:f},0);c.forEach(u=>a.node(u).y=s+d/2),s+=d+l})}return c$}var d$,xQ;function tqe(){if(xQ)return d$;xQ=1;let e=PVe(),r=BVe(),n=IVe(),o=$n().normalizeRanks,a=LVe(),i=$n().removeEmptyRanks,l=FVe(),s=VVe(),c=qVe(),d=QVe(),u=eqe(),p=$n(),f=ll().Graph;d$=g;function g(I,W){let K=W&&W.debugTiming?p.time:p.notime;K("layout",()=>{let Q=K(" buildLayoutGraph",()=>R(I));K(" runLayout",()=>v(Q,K,W)),K(" updateInputGraph",()=>w(I,Q))})}function v(I,W,K){W(" makeSpaceForEdgeLabels",()=>T(I)),W(" removeSelfEdges",()=>q(I)),W(" acyclic",()=>e.run(I)),W(" nestingGraph.run",()=>l.run(I)),W(" rank",()=>n(p.asNonCompoundGraph(I))),W(" injectEdgeLabelProxies",()=>O(I)),W(" removeEmptyRanks",()=>i(I)),W(" nestingGraph.cleanup",()=>l.cleanup(I)),W(" normalizeRanks",()=>o(I)),W(" assignRankMinMax",()=>P(I)),W(" removeEdgeLabelProxies",()=>L(I)),W(" normalize.run",()=>r.run(I)),W(" parentDummyChains",()=>a(I)),W(" addBorderSegments",()=>s(I)),W(" order",()=>d(I,K)),W(" insertSelfEdges",()=>G(I)),W(" adjustCoordinateSystem",()=>c.adjust(I)),W(" position",()=>u(I)),W(" positionSelfEdges",()=>U(I)),W(" removeBorderNodes",()=>F(I)),W(" normalize.undo",()=>r.undo(I)),W(" fixupEdgeLabelCoords",()=>V(I)),W(" undoCoordinateSystem",()=>c.undo(I)),W(" translateGraph",()=>H(I)),W(" assignNodeIntersects",()=>M(I)),W(" reversePoints",()=>B(I)),W(" acyclic.undo",()=>e.undo(I))}function w(I,W){I.nodes().forEach(K=>{let Q=I.node(K),ae=W.node(K);Q&&(Q.x=ae.x,Q.y=ae.y,Q.rank=ae.rank,W.children(K).length&&(Q.width=ae.width,Q.height=ae.height))}),I.edges().forEach(K=>{let Q=I.edge(K),ae=W.edge(K);Q.points=ae.points,Object.hasOwn(ae,"x")&&(Q.x=ae.x,Q.y=ae.y)}),I.graph().width=W.graph().width,I.graph().height=W.graph().height}let x=["nodesep","edgesep","ranksep","marginx","marginy"],k={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},C=["acyclicer","ranker","rankdir","align"],_=["width","height","rank"],$={width:0,height:0},z=["minlen","weight","width","height","labeloffset"],j={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},A=["labelpos"];function R(I){let W=new f({multigraph:!0,compound:!0}),K=Z(I.graph());return W.setGraph(Object.assign({},k,Y(K,x),p.pick(K,C))),I.nodes().forEach(Q=>{let ae=Z(I.node(Q));const te=Y(ae,_);Object.keys($).forEach(re=>{te[re]===void 0&&(te[re]=$[re])}),W.setNode(Q,te),W.setParent(Q,I.parent(Q))}),I.edges().forEach(Q=>{let ae=Z(I.edge(Q));W.setEdge(Q,Object.assign({},j,Y(ae,z),p.pick(ae,A)))}),W}function T(I){let W=I.graph();W.ranksep/=2,I.edges().forEach(K=>{let Q=I.edge(K);Q.minlen*=2,Q.labelpos.toLowerCase()!=="c"&&(W.rankdir==="TB"||W.rankdir==="BT"?Q.width+=Q.labeloffset:Q.height+=Q.labeloffset)})}function O(I){I.edges().forEach(W=>{let K=I.edge(W);if(K.width&&K.height){let Q=I.node(W.v),ae={rank:(I.node(W.w).rank-Q.rank)/2+Q.rank,e:W};p.addDummyNode(I,"edge-proxy",ae,"_ep")}})}function P(I){let W=0;I.nodes().forEach(K=>{let Q=I.node(K);Q.borderTop&&(Q.minRank=I.node(Q.borderTop).rank,Q.maxRank=I.node(Q.borderBottom).rank,W=Math.max(W,Q.maxRank))}),I.graph().maxRank=W}function L(I){I.nodes().forEach(W=>{let K=I.node(W);K.dummy==="edge-proxy"&&(I.edge(K.e).labelRank=K.rank,I.removeNode(W))})}function H(I){let W=Number.POSITIVE_INFINITY,K=0,Q=Number.POSITIVE_INFINITY,ae=0,te=I.graph(),re=te.marginx||0,ue=te.marginy||0;function _e(ce){let pe=ce.x,xe=ce.y,De=ce.width,Be=ce.height;W=Math.min(W,pe-De/2),K=Math.max(K,pe+De/2),Q=Math.min(Q,xe-Be/2),ae=Math.max(ae,xe+Be/2)}I.nodes().forEach(ce=>_e(I.node(ce))),I.edges().forEach(ce=>{let pe=I.edge(ce);Object.hasOwn(pe,"x")&&_e(pe)}),W-=re,Q-=ue,I.nodes().forEach(ce=>{let pe=I.node(ce);pe.x-=W,pe.y-=Q}),I.edges().forEach(ce=>{let pe=I.edge(ce);pe.points.forEach(xe=>{xe.x-=W,xe.y-=Q}),Object.hasOwn(pe,"x")&&(pe.x-=W),Object.hasOwn(pe,"y")&&(pe.y-=Q)}),te.width=K-W+re,te.height=ae-Q+ue}function M(I){I.edges().forEach(W=>{let K=I.edge(W),Q=I.node(W.v),ae=I.node(W.w),te,re;K.points?(te=K.points[0],re=K.points[K.points.length-1]):(K.points=[],te=ae,re=Q),K.points.unshift(p.intersectRect(Q,te)),K.points.push(p.intersectRect(ae,re))})}function V(I){I.edges().forEach(W=>{let K=I.edge(W);if(Object.hasOwn(K,"x"))switch((K.labelpos==="l"||K.labelpos==="r")&&(K.width-=K.labeloffset),K.labelpos){case"l":K.x-=K.width/2+K.labeloffset;break;case"r":K.x+=K.width/2+K.labeloffset;break}})}function B(I){I.edges().forEach(W=>{let K=I.edge(W);K.reversed&&K.points.reverse()})}function F(I){I.nodes().forEach(W=>{if(I.children(W).length){let K=I.node(W),Q=I.node(K.borderTop),ae=I.node(K.borderBottom),te=I.node(K.borderLeft[K.borderLeft.length-1]),re=I.node(K.borderRight[K.borderRight.length-1]);K.width=Math.abs(re.x-te.x),K.height=Math.abs(ae.y-Q.y),K.x=te.x+K.width/2,K.y=Q.y+K.height/2}}),I.nodes().forEach(W=>{I.node(W).dummy==="border"&&I.removeNode(W)})}function q(I){I.edges().forEach(W=>{if(W.v===W.w){var K=I.node(W.v);K.selfEdges||(K.selfEdges=[]),K.selfEdges.push({e:W,label:I.edge(W)}),I.removeEdge(W)}})}function G(I){var W=p.buildLayerMatrix(I);W.forEach(K=>{var Q=0;K.forEach((ae,te)=>{var re=I.node(ae);re.order=te+Q,(re.selfEdges||[]).forEach(ue=>{p.addDummyNode(I,"selfedge",{width:ue.label.width,height:ue.label.height,rank:re.rank,order:te+ ++Q,e:ue.e,label:ue.label},"_se")}),delete re.selfEdges})})}function U(I){I.nodes().forEach(W=>{var K=I.node(W);if(K.dummy==="selfedge"){var Q=I.node(K.e.v),ae=Q.x+Q.width/2,te=Q.y,re=K.x-ae,ue=Q.height/2;I.setEdge(K.e,K.label),I.removeNode(W),K.label.points=[{x:ae+2*re/3,y:te-ue},{x:ae+5*re/6,y:te-ue},{x:ae+re,y:te},{x:ae+5*re/6,y:te+ue},{x:ae+2*re/3,y:te+ue}],K.label.x=K.x,K.label.y=K.y}})}function Y(I,W){return p.mapValues(p.pick(I,W),Number)}function Z(I){var W={};return I&&Object.entries(I).forEach(([K,Q])=>{typeof K=="string"&&(K=K.toLowerCase()),W[K]=Q}),W}return d$}var u$,wQ;function rqe(){if(wQ)return u$;wQ=1;let e=$n(),r=ll().Graph;u$={debugOrdering:n};function n(o){let a=e.buildLayerMatrix(o),i=new r({compound:!0,multigraph:!0}).setGraph({});return o.nodes().forEach(l=>{i.setNode(l,{label:l}),i.setParent(l,"layer"+o.node(l).rank)}),o.edges().forEach(l=>i.setEdge(l.v,l.w,{},l.name)),a.forEach((l,s)=>{let c="layer"+s;i.setNode(c,{rank:"same"}),l.reduce((d,u)=>(i.setEdge(d,u,{style:"invis"}),u))}),i}return u$}var kQ,_Q;function nqe(){return _Q||(_Q=1,kQ="1.1.8"),kQ}var SQ,EQ;function oqe(){return EQ||(EQ=1,SQ={graphlib:ll(),layout:tqe(),debug:rqe(),util:{time:$n().time,notime:$n().notime},version:nqe()}),SQ}var aqe=oqe();const e2=s7(aqe),co={dagre:{ranksep:60,nodesep:35,edgesep:25},edgeLabel:{width:140,height:10,minlen:1,weight:1},emptyNodeOffset:120,nodeWidth:330,nodeHeight:180,compound:{labelHeight:2,paddingTop:50,paddingBottom:32}};function iqe(){const e=new e2.graphlib.Graph({directed:!0,compound:!0,multigraph:!0});return e.setGraph({...co.dagre,rankdir:"LR"}),e.setDefaultEdgeLabel(()=>({...co.edgeLabel})),e.setDefaultNodeLabel(()=>({})),e}const p$="-port";function h$(e,r,n){const o=new Ln(i=>({id:`${e}-${i}`,portId:`${e}-${i}`})),a=Xb(r);for(const i of a.sorted){const l=a.children(i).length>0,s=i.id,c=`${e}-${s}`,d=l?`${c}${p$}`:c;o.set(s,{id:c,portId:d}),n.setNode(c,{column:e,element:i,isCompound:l,portId:d,inPorts:[],outPorts:[],width:co.nodeWidth,height:co.nodeHeight}),l&&(n.setNode(d,{element:i,portId:d,isCompound:l,inPorts:[],outPorts:[],width:co.nodeWidth-co.dagre.ranksep,height:co.compound.labelHeight}),n.setParent(d,c));const u=a.parent(i);u&&n.setParent(c,`${e}-${u.id}`)}return{...a,byId:i=>{const l=a.byId(i),s=o.get(l.id);return{element:l,graph:s}},graphNodes:o}}function lqe(e){return e2.layout(e,{}),r=>{const n=e.node(r),{x:o,y:a,width:i,height:l}=n;return{position:{x:o-Math.round(i/2),y:a-Math.round(l/2)},width:i,height:l}}}var t2;(e=>{e.Empty="@empty"})(t2||(t2={}));function sqe(e,r){const n=iqe(),o=h$("incomers",e.incomers,n),a=h$("subjects",e.subjects,n),i=h$("outgoers",e.outgoers,n),l=[];Jr(PEe(Jr(m1(e.incoming),un($=>({id:$.source.id,sourceFqn:$.source.id,targetFqn:$.target.id,source:o.byId($.source.id).graph,target:a.byId($.target.id).graph,relation:$}))),Jr(m1(e.outgoing),un($=>({id:$.target.id,sourceFqn:$.source.id,targetFqn:$.target.id,source:a.byId($.source.id).graph,target:i.byId($.target.id).graph,relation:$})))),un($=>({...$,expr:`${$.source.id}->${$.target.id}`})),nCe(Yu("expr")),tCe($=>{const z=$[0].source,j=$[0].target,A=$[0].expr;n.node(z.id).outPorts.push(j.id),n.node(j.id).inPorts.push(z.id),n.setEdge(z.portId,j.portId,{...co.edgeLabel},A),l.push({name:A,sourceFqn:$[0].sourceFqn,targetFqn:$[0].targetFqn,source:z.id,sourceHandle:z.id+"_out"+(n.node(z.id).outPorts.length-1),target:j.id,targetHandle:j.id+"_in"+(n.node(j.id).inPorts.length-1),relations:un($,Yu("relation"))})}));for(const $ of a.graphNodes.values()){const z=$.id,j=n.node(z);if(j.isCompound)continue;const A=Math.max(n.inEdges(z)?.length??0,n.outEdges(z)?.length??0);A>2&&(j.height=j.height+(A-3)*14)}const s=[...o.graphNodes.values(),...a.graphNodes.values(),...i.graphNodes.values()];if(o.graphNodes.size==0){const $="incomers-empty";n.setNode($,{column:"incomers",element:null,isCompound:!1,portId:$,inPorts:[],outPorts:[],width:co.nodeWidth,height:co.nodeHeight});for(const z of a.graphNodes.values())n.setEdge($,z.portId);s.push({id:$,portId:$})}if(i.graphNodes.size==0){const $="outgoers-empty";n.setNode($,{column:"outgoers",element:null,isCompound:!1,portId:$,inPorts:[],outPorts:[],width:co.nodeWidth,height:co.nodeHeight});for(const z of a.graphNodes.values())n.setEdge(z.portId,$);s.push({id:$,portId:$})}const c=n.edgeCount();if(c>10)for(const $ of n.edges())n.setEdge($,{...co.edgeLabel,width:c>25?800:400});const d=lqe(n),u=Jr(s,Wu($=>$.id===$.portId),Yx($=>[$.id,d($.id)]));function p($){return u[$]??=Jr(n.children($)??[],Wu(z=>!z.endsWith(p$)),un(z=>p(z)),YV(z=>{He(z.length>0,`Node ${$} has no nested nodes`)}),Zx((z,j)=>({minY:Math.min(z.minY,j.position.y),maxY:Math.max(z.maxY,j.position.y+j.height)}),{minY:1/0,maxY:-1/0}),({minY:z,maxY:j})=>{const{position:{x:A},width:R}=d($);return z=z-co.compound.paddingTop,j=j+co.compound.paddingBottom,{position:{x:A,y:z},width:R,height:j-z}})}function f($){const z=n.parent($);return z?f(z)+1:0}function g($){const z=n.children($)??[];return z.length===0?0:1+Math.max(...z.map(g))}const v=($,z,j)=>Jr(j,un((A,R)=>({port:$+"_"+z+R,topY:p(A).position.y})),Kx(Yu("topY")),un(Yu("port")));let w=0,x=0;const[k]=[...a.root];He(k,"Subjects should not be empty");let C=p(a.graphNodes.get(k.id).id);const _=s.map(({id:$})=>{const{element:z,inPorts:j,outPorts:A,column:R}=n.node($);let{position:T,width:O,height:P}=p($);if(!z){if(P=Math.min(C.height,300),T.y=C.position.y+C.height/2-P/2,R==="incomers")O=C.position.x-co.emptyNodeOffset-T.x;else{const q=T.x+O;T.x=C.position.x+C.width+co.emptyNodeOffset,O=q-T.x}return{id:$,parent:null,x:T.x,y:T.y,title:"empty node",description:null,technology:null,tags:[],links:[],color:"muted",shape:"rectangle",style:{border:"dashed",opacity:50},kind:t2.Empty,level:0,labelBBox:{x:T.x,y:T.y,width:O,height:P},children:[],width:O,height:P,column:R,ports:{in:[],out:[]},existsInCurrentView:!1}}const L=n.parent($),H=(n.children($)??[]).filter(q=>!q.endsWith(p$));w=Math.min(w,T.x),x=Math.min(x,T.y);const M=r?f1(z.scopedViews(),q=>q.id!==r.id)?.id??null:null,V=r?.findNodeWithElement(z.id),B=r&&!V?f1(z.ancestors(),q=>!!r.findNodeWithElement(q.id))?.id:null,F=V??(B&&r?.findNodeWithElement(B));return{id:$,parent:L??null,x:T.x,y:T.y,title:z.title,description:Os(z.$element)??null,technology:z.technology,tags:[...z.tags],links:null,color:F?.color??z.color,shape:V?.shape??z.shape,icon:V?.icon??z.icon??"none",modelRef:z.id,kind:z.kind,level:f($),labelBBox:{x:T.x,y:T.y,width:O,height:P},style:nd({...(V??F)?.style,...z.$element.style},["color","shape","icon"]),navigateTo:M,...H.length>0&&{depth:g($)},children:H,width:O,height:P,column:R,ports:{in:v($,"in",j),out:v($,"out",A)},existsInCurrentView:!!V}});return{subjectExistsInScope:!r||r.includesElement(k.id),bounds:{x:Math.min(w,0),y:Math.min(x,0),width:n.graph().width??100,height:n.graph().height??100},nodes:_,edges:n.edges().reduce(($,z)=>{const j=n.edge(z),A=z.name;if(!A)return $;const{name:R,source:T,sourceFqn:O,target:P,targetFqn:L,relations:H,sourceHandle:M,targetHandle:V}=mt(F1(l,U=>U.name===A)),B=Xx(H),F=B?.title??"untitled",q=H.length>1,G=Xx(Qx(H.flatMap(U=>U.navigateTo?.id?U.navigateTo.id:[])));return $.push(p1({id:R,sourceFqn:O,source:T,sourceHandle:M,targetFqn:L,target:P,targetHandle:V,label:q?`${H.length} relationships`:F,navigateTo:G,color:B?.color??"gray",existsInCurrentView:!r||H.every(U=>r.includesRelation(U.id)),points:j.points.map(U=>[U.x,U.y]),line:B?.line??"dashed",head:B?.head,tail:B?.tail,relations:H.map(U=>U.id),parent:null})),$},[])}}function cqe(e,r,n){const o=Lo();return S.useMemo(()=>{const a=r?o.findView(r):null,i=sqe(ZO(e,o,r,n),n==="view"?a:null);return a&&(n==="global"||!i.subjectExistsInScope)&&(i.edges=i.edges.map(l=>(l.existsInCurrentView=l.relations.every(s=>a.includesRelation(s)),l))),Object.assign(i,{subject:e})},[o,e,r,n,ZO])}const Xy=(e,r)=>gb(e.label,r.label);function f$(e){return{label:e.title,value:e.id,children:[...e.children()].map(f$).sort(Xy)}}function dqe(e){const r=Lo();return S.useMemo(()=>e?[...r.view(e).roots()].map(f$).sort(Xy):[...r.roots()].map(f$).sort(Xy),[r,e??null])}const uqe=fe({margin:"0"}),pqe=fe({_hover:{backgroundColor:"mantine.colors.gray[0]",_dark:{backgroundColor:"mantine.colors.defaultHover",color:"mantine.colors.white"}}}),CQ=fe({maxHeight:["70vh","calc(100cqh - 70px)"]}),hqe=Object.freeze(Object.defineProperty({__proto__:null,label:pqe,node:uqe,scrollArea:CQ},Symbol.toStringTag,{value:"Module"})),fqe=[["path",{d:"M8 9l4 -4l4 4",key:"svg-0"}],["path",{d:"M16 15l-4 4l-4 -4",key:"svg-1"}]],m$=wt("outline","selector","Selector",fqe),mqe=e=>{const r=e.context.layouted?.subjectExistsInScope??!1;return{subjectId:e.context.subject,viewId:e.context.viewId,scope:e.context.scope,subjectExistsInScope:r,enableSelectSubject:e.context.enableSelectSubject,enableChangeScope:e.context.enableChangeScope}},gqe=()=>{},yqe=S.memo(()=>{const e=Yy(),{subjectId:r,viewId:n,scope:o,subjectExistsInScope:a,enableSelectSubject:i,enableChangeScope:l}=Q3(mqe),s=S.useRef(null),c=S.useRef(null),d=Lo().findElement(r),u=dqe(o==="view"&&n?n:void 0),p=hy({multiple:!1});return p.setHoveredNode=gqe,S.useEffect(()=>{ku(r).reverse().forEach(f=>{p.expand(f)}),p.select(r)},[r]),y.jsxs(en,{ref:s,gap:"xs",pos:"relative",children:[i&&y.jsxs(en,{gap:4,wrap:"nowrap",children:[y.jsx(Se,{fz:"xs",fw:"500",style:{whiteSpace:"nowrap",userSelect:"none"},children:"Relationships of"}),y.jsx(Se,{pos:"relative",children:y.jsxs(br,{position:"bottom-start",shadow:"md",keepMounted:!1,withinPortal:!1,closeOnClickOutside:!0,clickOutsideEvents:["pointerdown","mousedown","click"],offset:4,onOpen:()=>{setTimeout(()=>{c.current?.querySelector(`[data-value="${r}"]`)?.scrollIntoView({behavior:"instant",block:"nearest"})},100)},children:[y.jsx(hd,{children:y.jsx(Vn,{size:"xs",variant:"default",maw:250,rightSection:y.jsx(m$,{size:16}),children:y.jsx(at,{fz:"xs",fw:"500",truncate:!0,children:d?.title??"???"})})}),y.jsx(Xs,{p:0,miw:250,maw:400,children:y.jsx(ta,{scrollbars:"y",type:"never",viewportRef:c,className:CQ,children:y.jsx(Pf,{allowRangeSelection:!1,selectOnClick:!1,tree:p,data:u,classNames:hqe,levelOffset:8,styles:{root:{maxWidth:400,overflow:"hidden"},label:{paddingTop:5,paddingBottom:6}},renderNode:({node:f,selected:g,expanded:v,elementProps:w,hasChildren:x})=>y.jsxs(en,{gap:2,wrap:"nowrap",...w,py:"3",children:[y.jsx(lr,{variant:"subtle",size:18,c:"dimmed",style:{visibility:x?"visible":"hidden"},children:y.jsx(Sd,{stroke:3.5,style:{transition:"transform 150ms ease",transform:`rotate(${v?"90deg":"0"})`,width:"80%"}})}),y.jsx(Se,{flex:"1 1 100%",w:"100%",onClick:k=>{k.stopPropagation(),p.select(f.value),p.expand(f.value),e.navigateTo(f.value)},children:y.jsx(at,{fz:"sm",fw:g?"600":"400",truncate:"end",children:f.label})})]})})})})]})})]}),l&&y.jsxs(en,{gap:4,wrap:"nowrap",children:[i&&y.jsx(Se,{fz:"xs",fw:"500",...!a&&{c:"dimmed"},style:{whiteSpace:"nowrap",userSelect:"none"},children:"Scope"}),y.jsx("div",{children:y.jsx(_n,{color:"orange",label:y.jsxs(y.Fragment,{children:["This element does not exist in the current view",o==="view"&&y.jsxs(y.Fragment,{children:[y.jsx("br",{}),"Scope is set to global"]})]}),position:"bottom-start",disabled:a,portalProps:{target:s.current},children:y.jsx(Mf,{flex:"1 0 auto",size:"xs",withItemsBorders:!1,value:o,styles:{label:{paddingLeft:8,paddingRight:8}},onChange:f=>{e.changeScope(f)},data:[{label:"Global",value:"global"},{label:y.jsx("span",{children:"Current view"}),value:"view",disabled:!a}]})})})]})]})}),r2=(e,r)=>Math.abs(e-r)<2.5,vqe=(e,r)=>e.id===r.id&&tt(e.selected??!1,r.selected??!1)&&tt(e.animated??!1,r.animated??!1)&&tt(e.source,r.source)&&r2(e.sourceX,r.sourceX)&&r2(e.sourceY,r.sourceY)&&tt(e.sourceHandleId??null,r.sourceHandleId??null)&&tt(e.sourcePosition,r.sourcePosition)&&tt(e.target,r.target)&&r2(e.targetY,r.targetY)&&r2(e.targetX,r.targetX)&&tt(e.targetHandleId??null,r.targetHandleId??null)&&tt(e.targetPosition,r.targetPosition)&&tt(e.data,r.data);function g$(e){const r=S.memo(e,vqe);return r.displayName=`MemoEdge(${e.displayName||e.name})`,r}function $Q(e,r){return P3(e,r)}const vi=$Q("button"),zr=$Q("div"),Zy=S.forwardRef(({edgeProps:{id:e,data:{label:r,technology:n,hovered:o=!1},selected:a=!1,selectable:i=!1},pointerEvents:l="all",className:s,style:c,children:d,...u},p)=>{const f=u1(e)?BO(e):null,g=Kn(r)||Kn(n);return y.jsxs(zr,{ref:p,className:Ge("likec4-edge-label",eFe({pointerEvents:l,isStepEdge:f!==null,cursor:i||f!==null?"pointer":"default"}),s),"data-edge-id":e,animate:{scale:o&&!a?1.06:1},...u,children:[f!==null&&y.jsx(hr,{className:"likec4-edge-label__step-number",children:f}),g&&y.jsxs(hr,{className:"likec4-edge-label__contents",children:[Kn(r)&&y.jsx(hr,{lineClamp:5,className:"likec4-edge-label__text",children:r}),Kn(n)&&y.jsx(hr,{className:"likec4-edge-label__technology",children:"[ "+n+" ]"}),d]})]})});Zy.displayName="EdgeLabel";function n2({icon:e,onClick:r}){return y.jsx(lr,{className:Ge("nodrag nopan",JLe()),onPointerDownCapture:nn,onClick:r,role:"button",onDoubleClick:nn,children:e??y.jsx(gi,{})})}function Ky({className:e,component:r="g",selectable:n=!1,selected:o=!1,data:{color:a="gray",hovered:i=!1,active:l=!1,dimmed:s=!1,...c},animated:d,children:u,style:p}){const f={className:Ge(e,"likec4-edge-container",o&&"selected",n&&"selectable"),"data-likec4-color":a,"data-edge-dir":c.dir??"forward","data-edge-active":l,"data-edge-animated":d||l,"data-likec4-hovered":i,...o&&{"data-likec4-selected":o},...s!==!1&&{"data-likec4-dimmed":s}};return r==="svg"?y.jsx("svg",{style:p,...f,children:u}):(He(r==="g",'EdgeContainer: component must be "g" or "svg"'),y.jsx("g",{style:p,...f,children:u}))}const bqe=e=>y.jsx("marker",{viewBox:"-4 -4 14 16",refX:5,refY:4,markerWidth:"7",markerHeight:"8",preserveAspectRatio:"xMaxYMid meet",orient:"auto-start-reverse",...e,children:y.jsx("path",{d:"M0,0 L7,4 L0,8 L4,4 Z",stroke:"context-stroke",fill:"context-stroke",strokeDasharray:0,strokeWidth:1,strokeLinecap:"round"})}),xqe=e=>y.jsx("marker",{viewBox:"-1 -1 12 10",refX:4,refY:3,markerWidth:"8",markerHeight:"6",preserveAspectRatio:"xMaxYMid meet",orient:"auto-start-reverse",...e,children:y.jsx("path",{d:"M 0 0 L 8 3 L 0 6 L 1 3 z",fill:"context-stroke",strokeWidth:0})}),wqe=e=>y.jsx("marker",{viewBox:"-1 -1 12 12",refX:8,refY:4,markerWidth:"8",markerHeight:"8",preserveAspectRatio:"xMaxYMid meet",orient:"auto-start-reverse",...e,children:y.jsx("path",{d:"M 8 0 L 0 4 L 8 8 M 8 4 L 0 4",fill:"none",strokeWidth:1})}),kqe=e=>y.jsx("marker",{viewBox:"-1 -1 12 10",refX:4,refY:3,markerWidth:"8",markerHeight:"6",preserveAspectRatio:"xMaxYMid meet",orient:"auto-start-reverse",...e,children:y.jsx("path",{d:"M 0 0 L 8 3 L 0 6 L 1 3 z",stroke:"context-stroke",fill:"context-stroke",strokeWidth:1.25,strokeLinejoin:"miter",strokeLinecap:"square"})}),_qe=e=>y.jsx("marker",{viewBox:"-4 -4 16 14",refX:5,refY:4,markerWidth:"10",markerHeight:"8",preserveAspectRatio:"xMaxYMid meet",orient:"auto-start-reverse",...e,children:y.jsx("path",{d:"M5,0 L10,4 L5,8 L0,4 Z",fill:"context-stroke",strokeWidth:0,strokeLinecap:"round"})}),Sqe=e=>y.jsx("marker",{viewBox:"-4 -4 16 14",refX:6,refY:4,markerWidth:"10",markerHeight:"8",preserveAspectRatio:"xMaxYMid meet",orient:"auto-start-reverse",...e,children:y.jsx("path",{d:"M5,0 L10,4 L5,8 L0,4 Z",stroke:"context-stroke",fill:"context-stroke",strokeWidth:1.25,strokeLinecap:"round"})}),Eqe=e=>y.jsx("marker",{viewBox:"0 0 10 10",refX:4,refY:4,markerWidth:"6",markerHeight:"6",...e,children:y.jsx("circle",{strokeWidth:0,fill:"context-stroke",cx:4,cy:4,r:3})}),Cqe=e=>y.jsx("marker",{viewBox:"0 0 10 10",refX:4,refY:4,markerWidth:"6",markerHeight:"6",...e,children:y.jsx("circle",{strokeWidth:1.25,stroke:"context-stroke",fill:"context-stroke",cx:4,cy:4,r:3})}),zQ={Arrow:xqe,Crow:wqe,OArrow:kqe,Open:bqe,Diamond:_qe,ODiamond:Sqe,Dot:Eqe,ODot:Cqe};function RQ(e){if(!(!e||e==="none"))switch(e){case"normal":return"Arrow";case"crow":return"Crow";case"onormal":return"OArrow";case"diamond":return"Diamond";case"odiamond":return"ODiamond";case"open":case"vee":return"Open";case"dot":return"Dot";case"odot":return"ODot";default:Xo(e)}}const Qy=S.forwardRef(({edgeProps:{id:e,data:{line:r,dir:n,tail:o,head:a},selectable:i=!0,style:l,interactionWidth:s},isDragging:c=!1,onEdgePointerDown:d,strokeWidth:u,svgPath:p},f)=>{let g=RQ(o),v=RQ(a??"normal");n==="back"&&([g,v]=[v,g]);const w=g?zQ[g]:null,x=v?zQ[v]:null,k=r==="dotted",C=k||r==="dashed";let _;k?_="1,8":C&&(_="8,10");const $=iFe();return y.jsxs(y.Fragment,{children:[i&&y.jsx("path",{className:Ge("react-flow__edge-interaction",fe({fill:"none"})),onPointerDown:d,d:p,style:{strokeWidth:s??10,stroke:"currentcolor",strokeOpacity:0,...c?{display:"none"}:{}}}),y.jsx("circle",{className:Ge("likec4-edge-middle-point",$.middlePoint),"data-edge-id":e,style:{offsetPath:`path("${p}")`}}),y.jsxs("g",{className:$.markersCtx,onPointerDown:d,children:[y.jsxs("defs",{children:[w&&y.jsx(w,{id:"start"+e}),x&&y.jsx(x,{id:"end"+e})]}),y.jsx("path",{className:Ge("react-flow__edge-path","hide-on-reduced-graphics",$.pathBg,c&&fe({display:"none"})),d:p,style:l,strokeLinecap:"round"}),y.jsx("path",{ref:f,className:Ge("react-flow__edge-path",$.path,i&&"react-flow__edge-interaction"),d:p,style:l,strokeWidth:u,strokeLinecap:"round",strokeDasharray:_,markerStart:w?`url(#start${e})`:void 0,markerEnd:x?`url(#end${e})`:void 0})]})]})});Qy.displayName="EdgePath";const jQ=e=>{if(e!==void 0)return LV(e)?`${Math.round(e)}px`:e};function o2({edgeProps:{id:e,selected:r=!1,data:{hovered:n=!1,active:o=!1,dimmed:a=!1,labelBBox:i,color:l="gray"},animated:s},labelPosition:c,className:d,style:u,children:p,...f}){let g=pC(S.useCallback(k=>k.edgeLookup.get(e)?.zIndex??oc.Edge,[e]));(n||o)&&(g+=100);let v=c?.x??i?.x,w=c?.y??i?.y;if(v===void 0||w===void 0)return null;const x=c?.translate??"";return y.jsx(gV,{children:y.jsx("div",{...f,className:Ge("nodrag nopan","likec4-edge-label-container",d),"data-likec4-hovered":n,"data-likec4-color":l,"data-edge-active":o,"data-edge-animated":s||o,...r!==!1&&{"data-likec4-selected":r},...a!==!1&&{"data-likec4-dimmed":a},style:{...i&&{maxWidth:i.width+18},zIndex:g,...u,transform:`translate(${jQ(v)}, ${jQ(w)}) ${x}`},children:p},e)})}const $qe=g$(e=>{const r=Yy(),{enableNavigateTo:n}=sr(),{data:{navigateTo:o,relations:a,existsInCurrentView:i}}=e,[l,s,c]=Ax(e),d=Nt(),u=a.length>1||!i,p=u?{...e,data:{...e.data,line:"solid",color:"amber"}}:e;let f=y.jsx(Zy,{edgeProps:p,className:fe({transition:"fast"}),children:n&&o&&y.jsx(n2,{...e,onClick:g=>{g.stopPropagation(),d.navigateTo(o)}})});return i||(f=y.jsx(_n,{color:"orange",c:"black",label:"This relationship is not included in the current view",portalProps:{target:`#${r.rootElementId}`},openDelay:800,children:f})),y.jsxs(Ky,{...p,children:[y.jsx(Qy,{edgeProps:p,svgPath:l,...u&&{strokeWidth:5}}),y.jsx(o2,{edgeProps:p,labelPosition:{x:s,y:c,translate:"translate(-50%, 0)"},style:{maxWidth:Math.min(Math.abs(e.targetX-e.sourceX-70),250)},children:f})]})}),zqe=fe({width:"100%",height:"100%",border:"3px dashed",borderColor:"mantine.colors.defaultBorder",borderRadius:"md",display:"flex",justifyContent:"center",alignItems:"center"});function Rqe({data:{column:e}}){return y.jsx(Se,{className:zqe,children:y.jsxs(at,{c:"dimmed",fz:"lg",fw:500,children:["No ",e==="incomers"?"incoming":"outgoing"]})})}const jqe=e=>e.context.view.id;function a2(){const e=Hf();return pn(e,jqe)}const Tqe=e=>e.context.view;function Aqe(){const e=Hf();return pn(e,Tqe,Or)}const Dqe=[["path",{d:"M3 6a3 3 0 1 0 6 0a3 3 0 0 0 -6 0",key:"svg-0"}],["path",{d:"M21 11v-3a2 2 0 0 0 -2 -2h-6l3 3m0 -6l-3 3",key:"svg-1"}],["path",{d:"M3 13v3a2 2 0 0 0 2 2h6l-3 -3m0 6l3 -3",key:"svg-2"}],["path",{d:"M15 18a3 3 0 1 0 6 0a3 3 0 0 0 -6 0",key:"svg-3"}]],Jy=wt("outline","transform","Transform",Dqe),Mqe=[["path",{d:"M4 21v-4a3 3 0 0 1 3 -3h5",key:"svg-0"}],["path",{d:"M9 17l3 -3l-3 -3",key:"svg-1"}],["path",{d:"M14 3v4a1 1 0 0 0 1 1h4",key:"svg-2"}],["path",{d:"M5 11v-6a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2h-9.5",key:"svg-3"}]],am=wt("outline","file-symlink","FileSymlink",Mqe),Nqe=[["path",{d:"M13 3l0 7l6 0l-8 11l0 -7l-6 0l8 -11",key:"svg-0"}]],Pqe=wt("outline","bolt","Bolt",Nqe),Bqe=qn({position:"absolute",zIndex:1,justifyContent:"center",alignItems:"center",_smallZoom:{display:"none"}}),Oqe=qn({gap:"1.5",justifyContent:"center",alignItems:"center"});function i2({selected:e=!1,data:{hovered:r=!1},buttons:n}){const o=ti();return n.length?y.jsx(hr,{className:Bqe,style:{top:"calc(100% - 30px)",transform:"translateX(-50%)",left:"50%",width:"auto",minHeight:30},children:y.jsx(zr,{layoutRoot:!0,initial:!1,style:{originY:0},animate:{opacity:r||e?1:.75,scale:r?1.1:e?.9:.8,y:r||e?6:0},layoutDependency:`${r}-${e}`,"data-likec4-hovered":r,className:Ge("nodrag nopan",Oqe),children:n.map((a,i)=>y.jsx(lr,{component:vi,className:L3({}),initial:!1,whileTap:{scale:1},whileHover:{scale:1.3},onClick:a.onClick,onDoubleClick:nn,children:a.icon||y.jsx(Pqe,{})},`${o}-${a.key??i}`))})}):null}const Iqe=e=>e.context.subject,Lqe=e=>{const{enableNavigateTo:r,enableVscode:n}=sr(),o=Nt(),a=a2(),i=Yy(),l=Q3(Iqe),{navigateTo:s,fqn:c}=e.data,d=S.useMemo(()=>{const u=[];return s&&r&&a!==s&&u.push({key:"navigate",icon:y.jsx(gi,{}),onClick:p=>{p.stopPropagation(),o.navigateTo(s)}}),c!==l&&u.push({key:"relationships",icon:y.jsx(Jy,{}),onClick:p=>{p.stopPropagation(),i.navigateTo(c,e.id)}}),n&&u.push({key:"goToSource",icon:y.jsx(am,{}),onClick:p=>{p.stopPropagation(),o.openSource({element:c})}}),u},[s,r,a,c,l,n,o,i,e.id]);return y.jsx(i2,{buttons:d,...e})};function e0({nodeProps:{data:{hovered:e=!1,dimmed:r=!1,...n}},className:o,children:a,style:i,...l}){let s=Qa(n.style.opacity??100,{min:0,max:100});const c=s<99,d=65,u=d+Qa((100-d)*(s/100),{min:0,max:100-d}),p=QLe({isTransparent:c,inverseColor:s<60,borderStyle:n.style.border??(c?"dashed":"none")}),f=Qa(n.depth??1,{min:1,max:5});return y.jsx(zr,{className:Ge(p,o),initial:!1,"data-likec4-hovered":e,"data-likec4-color":n.color,"data-compound-depth":f,...r!==!1&&{"data-likec4-dimmed":r},style:{...i,"--_border-transparency":`${u}%`,"--_compound-transparency":`${s}%`},...l,children:a})}function t0({data:e}){const r=tx({element:e,className:"likec4-compound-icon"});return y.jsxs("div",{className:"likec4-compound-title-container",children:[r,y.jsx(at,{component:"h3",className:"likec4-compound-title",truncate:"end",children:e.title})]})}const TQ=b1({base:{transitionDuration:"normal"},variants:{delay:{true:{transitionDelay:{base:"0.2s",_hover:"0s"}}}}}),Fqe=[["path",{d:"M3 4m0 3a3 3 0 0 1 3 -3h12a3 3 0 0 1 3 3v10a3 3 0 0 1 -3 3h-12a3 3 0 0 1 -3 -3z",key:"svg-0"}],["path",{d:"M9 10m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0",key:"svg-1"}],["path",{d:"M15 8l2 0",key:"svg-2"}],["path",{d:"M15 12l2 0",key:"svg-3"}],["path",{d:"M7 16l10 0",key:"svg-4"}]],y$=wt("outline","id","Id",Fqe);function AQ({data:{hovered:e=!1},icon:r,onClick:n}){const o=R7(e,e?130:0)[0]&&e;return y.jsx(zr,{initial:!1,animate:{scale:o?1.2:1},whileHover:{scale:1.4},whileTap:{scale:1},className:"likec4-compound-details details-button",children:y.jsx(lr,{className:Ge("nodrag nopan",TQ({delay:e&&!o}),L3({variant:"transparent"})),onClick:n,onDoubleClick:nn,children:r??y.jsx(y$,{stroke:1.8,style:{width:"75%"}})})})}const Vqe=fe({position:"relative",width:"full",height:"full",padding:"0",margin:"0",display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none",_focusVisible:{outline:"none"},_whenSelectable:{pointerEvents:"all",_before:{content:'" "',position:"absolute",top:"[calc(100% - 4px)]",left:"0",width:"full",height:"24px",background:"transparent",pointerEvents:"all"}},_reduceGraphicsOnPan:{_before:{display:"none"}},":where(.react-flow__node.selectable:not(.dragging)) &":{cursor:"pointer"}}),im=S.forwardRef(({nodeProps:{selected:e=!1,selectable:r=!1,data:{hovered:n=!1,dimmed:o=!1,...a}},className:i,style:l,children:s,...c},d)=>{let u=1;switch(!0){case n:u=1.05;break;case e:u=1.02;break}const{size:p,padding:f,textSize:g}=mb(a.style??{});return y.jsx(zr,{ref:d,className:Ge(Vqe,"group","likec4-element-node",i),initial:!1,...r&&{animate:{scale:u},whileTap:{scale:.98}},"data-likec4-hovered":n,"data-likec4-color":a.color,"data-likec4-shape":a.shape,"data-likec4-shape-size":p,"data-likec4-spacing":f,"data-likec4-text-size":g,...o!==!1&&{"data-likec4-dimmed":o},style:{...l},...c,children:s})});im.displayName="ElementNodeContainer";function DQ(e,r,n=.065){const o=Math.round(e/2),a=o,i=Cd(n*o),l=r-2*i;return{path:` M ${e},${i} a ${a},${i} 0,0,0 ${-e} 0 - l 0,${s} + l 0,${l} a ${a},${i} 0,0,0 ${e} 0 - l 0,${-s} + l 0,${-l} z - `.replace(/\s+/g," ").trim(),ry:i,rx:a}}function Wee(e,r,n=.185){const o=r,a=Math.round(o/2),i=Ud(o/2*n),s=e-2*i;return{path:` + `.replace(/\s+/g," ").trim(),ry:i,rx:a}}function MQ(e,r,n=.185){const o=r,a=Math.round(o/2),i=Cd(o/2*n),l=e-2*i;return{path:` M ${i},0 a ${i},${a} 0,0,0 0 ${o} - l ${s},0 + l ${l},0 a ${i},${a} 0,0,0 0 ${-o} - z`.replace(/\s+/g," ").trim(),ry:a,rx:i}}const Up={width:115,height:120,path:"M57.9197 0C10.9124 0 33.5766 54.75 33.5766 54.75C38.6131 62.25 45.3285 60.75 45.3285 66C45.3285 70.5 39.4526 72 33.5766 72.75C24.3431 72.75 15.9489 71.25 7.55474 84.75C2.51825 93 0 120 0 120H115C115 120 112.482 93 108.285 84.75C99.8905 70.5 91.4963 72.75 82.2628 72C76.3869 71.25 70.5109 69.75 70.5109 65.25C70.5109 60.75 77.2263 62.25 82.2628 54C82.2628 54.75 104.927 0 57.9197 0V0Z"};function Yee({shape:e,w:r,h:n}){switch(e){case"mobile":return y.jsxs(y.Fragment,{children:[y.jsx("rect",{width:r,height:n,rx:6,"data-likec4-fill":"mix-stroke",strokeWidth:0}),y.jsxs("g",{"data-likec4-fill":"fill",strokeWidth:0,children:[y.jsx("circle",{cx:17,cy:n/2,r:12}),y.jsx("rect",{x:33,y:12,width:r-44,height:n-24,rx:5})]})]});case"browser":return y.jsxs(y.Fragment,{children:[y.jsx("rect",{width:r,height:n,rx:6,"data-likec4-fill":"mix-stroke",strokeWidth:0}),y.jsxs("g",{"data-likec4-fill":"fill",strokeWidth:0,children:[y.jsx("circle",{cx:16,cy:17,r:7}),y.jsx("circle",{cx:36,cy:17,r:7}),y.jsx("circle",{cx:56,cy:17,r:7}),y.jsx("rect",{x:70,y:8,width:r-80,height:17,rx:4}),y.jsx("rect",{x:10,y:32,width:r-20,height:n-42,rx:4})]})]});case"person":return y.jsxs(y.Fragment,{children:[y.jsx("rect",{width:r,height:n,rx:6,strokeWidth:0}),y.jsx("svg",{x:r-Up.width-6,y:n-Up.height,width:Up.width,height:Up.height,viewBox:`0 0 ${Up.width} ${Up.height}`,"data-likec4-fill":"mix-stroke",children:y.jsx("path",{strokeWidth:0,d:Up.path})})]});case"queue":{const{path:o,rx:a,ry:i}=Wee(r,n);return y.jsxs(y.Fragment,{children:[y.jsx("path",{d:o,strokeWidth:2}),y.jsx("ellipse",{cx:a,cy:i,ry:i-.75,rx:a,"data-likec4-fill":"mix-stroke",strokeWidth:2})]})}case"storage":case"cylinder":{const{path:o,rx:a,ry:i}=Uee(r,n);return y.jsxs(y.Fragment,{children:[y.jsx("path",{d:o,strokeWidth:2}),y.jsx("ellipse",{cx:a,cy:i,ry:i,rx:a-.75,"data-likec4-fill":"mix-stroke",strokeWidth:2})]})}default:return Zi(e)}}function FGe({shape:e,w:r,h:n}){let o;switch(e){case"queue":o=y.jsx("path",{d:Wee(r,n).path});break;case"storage":case"cylinder":{o=y.jsx("path",{d:Uee(r,n).path});break}default:{o=y.jsx("rect",{x:-1,y:-1,width:r+2,height:n+2,rx:6});break}}return y.jsx("g",{className:"likec4-shape-outline",children:o})}function HGe({multiple:e,withOutLine:r}){return y.jsxs("div",{className:eJ({shapetype:"html"}),children:[e&&y.jsx("div",{className:"likec4-shape-multiple"}),r&&y.jsx("div",{className:"likec4-shape-outline"})]})}function Om({data:e,width:r,height:n,showSeletionOutline:o=!0}){let a=r&&r>10?r:e.width,i=n&&n>10?n:e.height;const s=e.style?.multiple??!1;if(e.shape==="rectangle")return y.jsx(HGe,{multiple:s,withOutLine:o});const l=eJ({shapetype:"svg"});return y.jsxs(y.Fragment,{children:[s&&y.jsx("svg",{className:l,"data-likec4-shape-multiple":"true",viewBox:`0 0 ${a} ${i}`,children:y.jsx(Yee,{shape:e.shape,w:a,h:i})}),y.jsxs("svg",{className:l,viewBox:`0 0 ${a} ${i}`,children:[o&&y.jsx(FGe,{shape:e.shape,w:a,h:i}),y.jsx(Yee,{shape:e.shape,w:a,h:i})]})]})}const Wp=E.forwardRef(({value:e,textScale:r=1,uselikec4palette:n=!1,hideIfEmpty:o=!1,emptyText:a="no content",className:i,style:s,fontSize:l,...c},d)=>{if(e.isEmpty&&o)return null;const u=e.nonEmpty?e.isMarkdown?{dangerouslySetInnerHTML:{__html:e.html}}:{children:y.jsx("p",{children:e.text})}:{children:y.jsx(ft,{component:"span",fz:"xs",c:"dimmed",style:{userSelect:"none"},children:a})};return y.jsx(zr,{ref:d,...c,className:et(ZUe({uselikec4palette:n,value:e.isMarkdown?"markdown":"plaintext"}),i),style:{...s,...l&&{"--text-fz":`var(--font-sizes-${l}, var(--font-sizes-md))`},"--mantine-scale":r},...u})});Wp.displayName="Markdown";const Gee=E.forwardRef(({className:e,...r},n)=>y.jsx("div",{...r,ref:n,className:et(e,XUe(),"likec4-element")})),Xee=({data:e,...r})=>y.jsx(X3,{element:e,...r}),Kee=E.forwardRef(({className:e,...r},n)=>y.jsx("div",{...r,className:et(e,"likec4-element-node-content"),ref:n})),Zee=E.forwardRef(({data:{title:e,style:r},className:n,...o},a)=>{const{size:i}=Jv(r),s=i==="sm"||i==="xs";return y.jsx(ft,{component:"div",...o,className:et(n,"likec4-element-title"),"data-likec4-node-title":"",lineClamp:s?2:3,ref:a,children:e})}),Qee=E.forwardRef(({data:e,children:r,className:n,...o},a)=>{const i=e?.technology??r;return da(i)?y.jsx(ft,{component:"div",...o,className:et(n,"likec4-element-technology"),"data-likec4-node-technology":"",ref:a,children:i}):null}),Jee=E.forwardRef(({data:{description:e,style:r},className:n,...o},a)=>{if(!e?.nonEmpty)return null;const{size:i}=Jv(r),s=i==="sm"||i==="xs";return y.jsx(Wp,{...o,className:et(n,"likec4-element-description"),"data-likec4-node-description":"",value:e,uselikec4palette:!0,hideIfEmpty:!0,maxHeight:e.isMarkdown?"8rem ":void 0,lineClamp:s?3:5,ref:a})});function Ss({iconSize:e,data:r}){return y.jsxs(Gee,{style:_d(e)?{"--likec4-icon-size":`${e}px`}:void 0,children:[y.jsx(Xee,{data:r}),y.jsxs(Kee,{children:[y.jsx(Zee,{data:r}),y.jsx(Qee,{data:r}),y.jsx(Jee,{data:r})]})]})}Ss.Root=Gee,Ss.Icon=Xee,Ss.Content=Kee,Ss.Title=Zee,Ss.Technology=Qee,Ss.Description=Jee;const VGe=be({position:"absolute",top:"0.5",right:"0.5",_shapeBrowser:{right:"[5px]"},_shapeCylinder:{top:"[14px]"},_shapeStorage:{top:"[14px]"},_shapeQueue:{top:"[1px]",right:"3"},_smallZoom:{display:"none"}});function $A({selected:e=!1,data:{hovered:r=!1},icon:n,onClick:o}){return y.jsx(zr,{className:et(VGe,"details-button"),children:y.jsx(br,{className:et("nodrag nopan",zw({variant:"transparent"})),component:Ni,initial:!1,style:{originX:.45,originY:.55},animate:r||e?{scale:1.2,opacity:.8}:{scale:1,opacity:.5},whileHover:{scale:1.4,opacity:1},whileTap:{scale:1.15},onClick:o,onDoubleClick:Cn,children:n??y.jsx(DA,{stroke:1.8,style:{width:"75%"}})})})}const qGe=e=>{const r=Qt();return y.jsx($A,{...e,onClick:n=>{n.stopPropagation(),r.openElementDetails(e.data.fqn)}})};function UGe(e){const{enableElementTags:r}=_r();return y.jsxs(Im,{layoutId:e.id,nodeProps:e,children:[y.jsx(Om,{...e}),y.jsx(Ss,{...e}),r&&y.jsx(Ry,{...e}),y.jsx(qGe,{...e}),y.jsx(jGe,{...e}),y.jsx(YGe,{...e})]},e.id)}function WGe(e){const r=Qt();return y.jsxs(Iy,{layoutId:e.id,nodeProps:e,children:[y.jsx(Oy,{...e}),y.jsx(qee,{...e,onClick:n=>{n.stopPropagation(),r.openElementDetails(e.data.fqn)}}),y.jsx(GGe,{...e})]},e.id)}const YGe=({data:{ports:e,height:r}})=>y.jsxs(y.Fragment,{children:[e.in.map((n,o)=>y.jsx(yo,{id:n,type:"target",position:tt.Left,style:{visibility:"hidden",top:`${15+(o+1)*((r-30)/(e.in.length+1))}px`}},n)),e.out.map((n,o)=>y.jsx(yo,{id:n,type:"source",position:tt.Right,style:{visibility:"hidden",top:`${15+(o+1)*((r-30)/(e.out.length+1))}px`}},n))]}),GGe=({data:e})=>y.jsxs(y.Fragment,{children:[e.ports.in.map((r,n)=>y.jsx(yo,{id:r,type:"target",position:tt.Left,style:{visibility:"hidden",top:`${20*(n+1)}px`}},r)),e.ports.out.map((r,n)=>y.jsx(yo,{id:r,type:"source",position:tt.Right,style:{visibility:"hidden",top:`${20*(n+1)}px`}},r))]}),XGe=[["path",{d:"M15 6l-6 6l6 6",key:"svg-0"}]],ete=Nt("outline","chevron-left","ChevronLeft",XGe),KGe={element:UGe,compound:WGe,empty:TGe},ZGe={relationship:SGe};function tte({actorRef:e}){const r=E.useRef(null);return r.current==null&&(r.current={initialNodes:[],initialEdges:[]}),y.jsx($J.Provider,{value:e,children:y.jsx(Ox,{...r.current,children:y.jsx($m,{id:e.sessionId,inherit:!1,children:y.jsx(Qn,{children:y.jsx(eXe,{})})})})})}const QGe=e=>({isActive:e.hasTag("active"),nodes:e.context.xynodes,edges:e.context.xyedges}),JGe=(e,r)=>e.isActive===r.isActive&&an(e.nodes,r.nodes)&&an(e.edges,r.edges),eXe=E.memo(()=>{const e=Ny(),{isActive:r,nodes:n,edges:o}=Ww(QGe,JGe);return y.jsx(IT,{id:e.rootElementId,nodes:n,edges:o,className:et(r?"initialized":"not-initialized","relationships-browser"),nodeTypes:KGe,edgeTypes:ZGe,fitView:!1,onNodeClick:kt((a,i)=>{a.stopPropagation(),e.send({type:"xyflow.nodeClick",node:i})}),onEdgeClick:kt((a,i)=>{a.stopPropagation(),e.send({type:"xyflow.edgeClick",edge:i})}),onPaneClick:kt(a=>{a.stopPropagation(),e.send({type:"xyflow.paneClick"})}),onDoubleClick:kt(a=>{e.send({type:"xyflow.paneDblClick"})}),onViewportResize:kt(()=>{e.send({type:"xyflow.resized"})}),onNodesChange:kt(a=>{e.send({type:"xyflow.applyNodeChanges",changes:a})}),onEdgesChange:kt(a=>{e.send({type:"xyflow.applyEdgeChanges",changes:a})}),onEdgeMouseEnter:kt((a,i)=>{i.data.hovered||e.send({type:"xyflow.edgeMouseEnter",edge:i})}),onEdgeMouseLeave:kt((a,i)=>{i.data.hovered&&e.send({type:"xyflow.edgeMouseLeave",edge:i})}),onSelectionChange:kt(a=>{e.send({type:"xyflow.selectionChange",...a})}),nodesDraggable:!1,nodesSelectable:!0,pannable:!0,zoomable:!0,children:y.jsx(rXe,{})})}),tXe=e=>({subjectId:e.context.subject,viewId:e.context.viewId,scope:e.context.scope,closeable:e.context.closeable}),rXe=E.memo(()=>{const e=Ny(),{subjectId:r,viewId:n,scope:o,closeable:a}=Ww(tXe),i=Ar(),s=Bf();E.useEffect(()=>{s.viewportInitialized&&e.send({type:"xyflow.init",instance:s,store:i})},[i,s.viewportInitialized,e]);const l=rGe(r,n,o),[c,d,{history:u,current:h}]=$U(r);E.useEffect(()=>{c!==r&&d.set(r)},[r]),E.useEffect(()=>{c!==r&&e.navigateTo(c)},[c,e]),qE(()=>{e.updateView(l)},[l,e]);const f=h>0,g=h+1d.back(),onStepForward:()=>d.forward()}),a&&y.jsx(kd,{position:"top-right",children:y.jsx(br,{variant:"default",color:"gray",onClick:b=>{b.stopPropagation(),e.close()},children:y.jsx(Rp,{})})})]})}),nXe=({hasStepBack:e,hasStepForward:r,onStepBack:n,onStepForward:o})=>y.jsx(kd,{position:"top-left",children:y.jsxs(pn,{gap:4,wrap:"nowrap",children:[y.jsxs(Qn,{mode:"popLayout",children:[e&&y.jsx(Ei.div,{layout:!0,initial:{opacity:.05,transform:"translateX(-5px)"},animate:{opacity:1,transform:"translateX(0)"},exit:{opacity:.05,transform:"translateX(-10px)"},children:y.jsx(br,{variant:"default",color:"gray",onClick:a=>{a.stopPropagation(),n()},children:y.jsx(ete,{})})},"back"),r&&y.jsx(Ei.div,{layout:!0,initial:{opacity:.05,transform:"translateX(5px)"},animate:{opacity:1,transform:"translateX(0)"},exit:{opacity:0,transform:"translateX(5px)"},children:y.jsx(br,{variant:"default",color:"gray",onClick:a=>{a.stopPropagation(),o()},children:y.jsx(qd,{})})},"forward")]}),y.jsx(dGe,{})]})}),oXe=be({display:"inline-block",fontSize:"sm",fontWeight:500,whiteSpace:"nowrap",padding:"[3px 6px]",borderRadius:3,background:"var(--likec4-palette-fill)/75",lineHeight:1.2,color:"var(--likec4-palette-hiContrast)"}),aXe=be({_light:{background:"mantine.colors.gray[1]","&[data-missing":{}},"&[data-missing]":{color:"mantine.colors.orange[4]",background:"mantine.colors.orange[8]/15",borderColor:"mantine.colors.orange[5]/20",_light:{color:"mantine.colors.orange[8]"}}}),iXe=be({flex:"1 1 100%",position:"relative",width:"100%",height:"100%",background:"mantine.colors.body",border:"1px solid {colors.mantine.colors.defaultBorder}",borderRadius:"sm",_light:{borderColor:"mantine.colors.gray[3]",background:"mantine.colors.gray[1]"}});be({_before:{content:'"scope:"',position:"absolute",top:"0",left:"2",fontSize:"xxs",fontWeight:500,lineHeight:"1",color:"mantine.colors.dimmed",opacity:.85,transform:"translateY(-100%) translateY(-2px)"},_light:{"& .mantine-SegmentedControl-root":{background:"mantine.colors.gray[3]"}}}),be({display:"inline-block",fontSize:"xl",fontWeight:600,padding:"[1px 5px]",minWidth:24,textAlign:"center",borderRadius:"sm",background:"mantine.colors.dark[7]",color:"mantine.colors.defaultColor","&[data-zero]":{color:"mantine.colors.dimmed"},"&[data-missing]":{color:"mantine.colors.orange[4]",background:"mantine.colors.orange[8]/20"}});const sXe=[["path",{d:"M5 12l14 0",key:"svg-0"}],["path",{d:"M13 18l6 -6",key:"svg-1"}],["path",{d:"M13 6l6 6",key:"svg-2"}]],jm=Nt("outline","arrow-right","ArrowRight",sXe),lXe=[["path",{d:"M12 6h-6a2 2 0 0 0 -2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-6",key:"svg-0"}],["path",{d:"M11 13l9 -9",key:"svg-1"}],["path",{d:"M15 4h5v5",key:"svg-2"}]],rte=Nt("outline","external-link","ExternalLink",lXe),cXe=co.withProps({color:"dark",fz:"xs",openDelay:600,closeDelay:120,label:"",children:null,offset:8,withinPortal:!1});function dXe({node:e,element:r}){const n=IX(),o=WUe(),a=fn(o,u=>u.children[`${o.id}-relationships`]),i=[...r.incoming()].map(u=>u.id),s=[...r.outgoing()].map(u=>u.id),l=e?O7([...e.incoming()].flatMap(u=>u.$edge.relations)):[],c=e?O7([...e.outgoing()].flatMap(u=>u.$edge.relations)):[],d=[...i,...s].filter(u=>!l.includes(u)&&!c.includes(u)).length;return y.jsxs(Xo,{gap:"xs",pos:"relative",w:"100%",h:"100%",children:[i.length+s.length>0&&y.jsxs(pn,{gap:"xs",wrap:"nowrap",align:"center",children:[y.jsx(Re,{children:y.jsxs(pn,{gap:8,mb:4,wrap:"nowrap",children:[y.jsx(nte,{title:"incoming",total:i.length,included:l.length}),y.jsx(Ba,{size:"sm",variant:"transparent",c:"dimmed",children:y.jsx(jm,{style:{width:16}})}),y.jsx(ft,{className:oXe,children:g1(r.id)}),y.jsx(Ba,{size:"sm",variant:"transparent",c:"dimmed",children:y.jsx(jm,{style:{width:16}})}),y.jsx(nte,{title:"outgoing",total:s.length,included:c.length})]})}),d>0&&y.jsx(cXe,{label:"Current view does not include some relationships",children:y.jsxs(pn,{mt:"xs",gap:6,c:"orange",style:{cursor:"pointer"},children:[y.jsx(MT,{style:{width:14}}),y.jsxs(ft,{fz:"sm",children:[d," relationship",d>1?"s are":" is"," hidden"]})]})})]}),y.jsx(Re,{className:iXe,children:a&&y.jsxs(y.Fragment,{children:[y.jsx(tte,{actorRef:a}),y.jsx(Re,{pos:"absolute",top:12,right:12,children:y.jsx(br,{size:"md",variant:"default",radius:"sm",onClick:u=>{u.stopPropagation();const{subject:h,scope:f,viewId:g}=a.getSnapshot().context;n.send({type:"open.relationshipsBrowser",subject:h,scope:f,viewId:g})},children:y.jsx(rte,{stroke:1.6,style:{width:"70%"}})})})]})})]})}function nte({title:e,total:r,included:n}){return y.jsx(om,{withBorder:!0,shadow:"none",className:aXe,px:"md",py:"xs",radius:"md",mod:{zero:r===0,missing:r!==n},children:y.jsxs(Xo,{gap:4,align:"flex-end",children:[y.jsx(ft,{component:"div",c:r!==n?"orange":"dimmed",tt:"uppercase",fw:600,fz:10,lh:1,children:e}),y.jsx(ft,{fw:600,fz:"xl",component:"div",lh:1,children:r!==n?y.jsxs(y.Fragment,{children:[n," / ",r]}):y.jsx(y.Fragment,{children:r})})]})})}const uXe=be({marginTop:"sm",marginBottom:"sm"}),pXe=be({display:"inline-flex",transition:"fast",border:"1px dashed",borderColor:"mantine.colors.defaultBorder",borderRadius:"sm",px:"md",py:"xs",alignItems:"center",cursor:"pointer",color:"mantine.colors.gray[7]",_dark:{color:"mantine.colors.dark[1]"},"& > *":{transition:"fast"},_hover:{transitionTimingFunction:"out",borderStyle:"solid",color:"mantine.colors.defaultColor",background:"mantine.colors.defaultHover","& > *":{transitionTimingFunction:"out",transform:"translateX(1px)"}}}),PA=({element:e})=>y.jsx(Re,{className:pXe,children:y.jsx(ft,{component:"div",fz:"sm",fw:"500",children:e.title})}),hXe=()=>{};function fXe({element:e}){const r=G0({multiple:!1});r.setHoveredNode=hXe;const n=E.useMemo(()=>{let o=1;const a=s=>({label:s,value:`msg${o++}`,type:"message",children:[]}),i={label:y.jsx(PA,{type:"current",element:e}),value:e.id,element:e,type:"current",children:[...e.children()].map(s=>({label:y.jsx(PA,{type:"descedant",element:s}),value:s.id,element:s,type:"descedant",children:[]}))};return i.children.length===0&&i.children.push(a(y.jsx(K2,{radius:"sm",children:"no nested"}))),[[...e.ancestors()].reduce((s,l)=>({label:y.jsx(PA,{type:"ancestor",element:l}),value:l.id,element:l,type:"ancestor",children:[s]}),i)]},[e]);return E.useEffect(()=>{r.expandAllNodes()},[n]),y.jsxs(y.Fragment,{children:[y.jsxs(F2,{variant:"light",color:"orange",title:"In development",icon:y.jsx(MT,{}),children:["We need your feedback. Share your thoughts and ideas -"," ",y.jsx(W9,{fz:"sm",fw:500,underline:"hover",c:"orange",href:"https://github.com/likec4/likec4/discussions/",target:"_blank",children:"GitHub discussions"})]}),y.jsx(hm,{levelOffset:"xl",allowRangeSelection:!1,expandOnClick:!1,expandOnSpace:!1,classNames:{label:uXe},data:n,tree:r})]})}const mXe=[["path",{d:"M12 4l-8 4l8 4l8 -4l-8 -4",key:"svg-0"}],["path",{d:"M4 12l8 4l8 -4",key:"svg-1"}],["path",{d:"M4 16l8 4l8 -4",key:"svg-2"}]],MA=Nt("outline","stack-2","Stack2",mXe),ote=kp.withProps({mb:8,labelPosition:"left",variant:"dashed"}),ate=co.withProps({color:"dark",fz:"xs",openDelay:400,closeDelay:150,label:"",children:null,offset:4}),ite=ft.withProps({component:"div",fz:11,fw:500,c:"dimmed",lh:1}),jy=ft.withProps({component:"div",fz:"xs",c:"dimmed",className:HWe}),Lm=24,gXe=["Properties","Relationships","Views","Structure","Deployments"];function yXe({viewId:e,fromNode:r,rectFromNode:n,fqn:o,onClose:a}){const[i,s]=E.useState(!1),l=m$e(),c=l.width||window.innerWidth||1200,d=l.height||window.innerHeight||800,[u,h]=d$e({key:"likec4:element-details:active-tab",defaultValue:"Properties"}),f=Qt(),g=RWe(),b=r?g.findNode(r):g.findNodeWithElement(o),x=g.$model.element(o),[w,k]=En([...x.views()],Sn(K=>K.$view),Yq(K=>K._type==="element"&&K.viewOf===o));let C=b?.navigateTo?.$view??x.defaultView?.$view??null;C?.id===e&&(C=null);const _=qx(x.links),T=UUe(),A=(b?.$node.children?.length??0)>0,R=Math.min(700,c-Lm*2),D=Math.min(650,d-Lm*2),N=n?{x:n.x+(A?n.width-R/2:n.width/2),y:n.y+(A?0:n.height/2)}:{x:c/2,y:d/2},P=n?Math.min(n.width/R,n.height/D,.9):1,O=Math.round(ds(N.x-R/2,{min:Lm,max:c-R-Lm})),F=Math.round(ds(N.y-(A?0:60),{min:Lm,max:d-D-Lm})),L=ds((N.x-O)/R,{min:.1,max:.9}),U=ds((N.y-F)/D,{min:.1,max:.9}),M=HQ(R),V=HQ(D);qp(()=>{M.set(R),V.set(D)},[R,D]);const I=E.useCallback((K,j)=>{M.set(Math.max(M.get()+j.delta.x,320)),V.set(Math.max(V.get()+j.delta.y,300))},[]),H=E.useRef(null),q=Cf(a),Z=HE(()=>{q.current()},[],50),W=b?.$node.notation??null,G=X3({element:{id:o,title:x.title,icon:b?.icon??x.icon},className:MWe});return Z3(()=>{H.current?.open||H.current?.showModal()},20),Z3(()=>{s(!0)},220),y.jsx(Ei.dialog,{ref:H,className:et(NWe,A0.classNames.fullWidth),layout:!0,initial:{[Bw]:"0px",[Fw]:"5%"},animate:{[Bw]:"3px",[Fw]:"60%"},exit:{[Bw]:"0px",[Fw]:"0%",transition:{duration:.1}},onClick:K=>{K.stopPropagation(),K.target?.nodeName?.toUpperCase()==="DIALOG"&&H.current?.close()},onDoubleClick:Cn,onPointerDown:Cn,onClose:K=>{K.stopPropagation(),Z()},children:y.jsx(A0,{forwardProps:!0,removeScrollBar:!1,children:y.jsxs(Ei.div,{layout:!0,layoutRoot:!0,drag:!0,dragControls:T,dragElastic:0,dragMomentum:!1,dragListener:!1,"data-likec4-color":b?.color??x.color,className:DWe,initial:{top:F,left:O,width:R,height:D,opacity:0,originX:L,originY:U,scale:Math.max(P,.65)},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.9,translateY:-10,transition:{duration:.1}},style:{width:M,height:V},children:[y.jsxs("div",{className:$We,onPointerDown:K=>T.start(K),children:[y.jsxs(sn,{alignItems:"start",justify:"space-between",gap:"sm",mb:"sm",flexWrap:"nowrap",children:[y.jsxs(sn,{alignItems:"start",gap:"sm",style:{cursor:"default"},flexWrap:"nowrap",children:[G,y.jsxs("div",{children:[y.jsx(ft,{component:"div",className:PWe,children:x.title}),W&&y.jsx(ft,{component:"div",c:"dimmed",fz:"sm",fw:500,lh:1.3,lineClamp:1,children:W})]})]}),y.jsx(wp,{size:"lg",onClick:K=>{K.stopPropagation(),Z()}})]}),y.jsxs(sn,{alignItems:"baseline",gap:"sm",flexWrap:"nowrap",children:[y.jsxs("div",{children:[y.jsx(ite,{children:"kind"}),y.jsx(vl,{radius:"sm",size:"sm",fw:600,color:"gray",style:{cursor:"pointer"},onClick:K=>{K.stopPropagation(),f.openSearch(`kind:${x.kind}`)},children:x.kind})]}),y.jsxs("div",{style:{flex:1},children:[y.jsx(ite,{children:"tags"}),y.jsxs(mc,{gap:4,flex:1,mt:6,wrap:"wrap",children:[x.tags.map(K=>y.jsx(Lw,{tag:K,cursor:"pointer",onClick:j=>{j.stopPropagation(),f.openSearch(`#${K}`)}},K)),x.tags.length===0&&y.jsx(vl,{radius:"sm",size:"sm",fw:600,color:"gray",children:"—"})]})]}),y.jsxs(z2,{style:{alignSelf:"flex-start"},children:[_&&y.jsx(br,{component:"a",href:_.url,target:"_blank",size:"lg",variant:"default",radius:"sm",children:y.jsx(rte,{stroke:1.6,style:{width:"65%"}})}),y.jsx(_Le,{feature:"Vscode",children:y.jsx(ate,{label:"Open source",children:y.jsx(br,{size:"lg",variant:"default",radius:"sm",onClick:K=>{K.stopPropagation(),f.openSource({element:x.id})},children:y.jsx(zm,{stroke:1.8,style:{width:"62%"}})})})}),C&&y.jsx(ate,{label:"Open default view",children:y.jsx(br,{size:"lg",variant:"default",radius:"sm",onClick:K=>{K.stopPropagation(),f.navigateTo(C.id,r??void 0)},children:y.jsx(Ri,{style:{width:"70%"}})})})]})]})]}),y.jsx(EJ,{children:y.jsxs(Sp,{value:u,onChange:K=>h(K),variant:"none",classNames:{root:OWe,list:jWe,tab:LWe,panel:BWe},children:[y.jsx(Y0,{children:gXe.map(K=>y.jsx(pm,{value:K,children:K},K))}),y.jsx(yc,{value:"Properties",children:y.jsx(bl,{scrollbars:"y",type:"scroll",offsetScrollbars:!0,children:y.jsxs(Re,{className:FWe,pt:"xs",children:[x.hasSummary&&y.jsxs(y.Fragment,{children:[y.jsx(jy,{children:"summary"}),y.jsx(Wp,{value:x.summary})]}),y.jsxs(y.Fragment,{children:[y.jsx(jy,{children:"description"}),y.jsx(Wp,{value:x.description,emptyText:"no description"})]}),x.technology&&y.jsx(bXe,{title:"technology",children:x.technology}),x.links.length>0&&y.jsxs(y.Fragment,{children:[y.jsx(jy,{children:"links"}),y.jsx(sn,{gap:"xs",flexWrap:"wrap",children:x.links.map((K,j)=>y.jsx(DT,{value:K},j))})]}),x.$element.metadata&&y.jsx(vXe,{value:x.$element.metadata})]})})}),y.jsx(yc,{value:"Relationships",children:y.jsx(Np,{overrides:{enableRelationshipBrowser:!1,enableNavigateTo:!1},children:i&&u==="Relationships"&&y.jsx(dXe,{element:x,node:b??null})})}),y.jsx(yc,{value:"Views",children:y.jsx(bl,{scrollbars:"y",type:"auto",children:y.jsxs(Xo,{gap:"lg",children:[w.length>0&&y.jsxs(Re,{children:[y.jsx(ote,{label:"views of the element (scoped)"}),y.jsx(Xo,{gap:"sm",children:w.map(K=>y.jsx(ste,{view:K,onNavigateTo:j=>f.navigateTo(j,r??void 0)},K.id))})]}),k.length>0&&y.jsxs(Re,{children:[y.jsx(ote,{label:"views including this element"}),y.jsx(Xo,{gap:"sm",children:k.map(K=>y.jsx(ste,{view:K,onNavigateTo:j=>f.navigateTo(j,r??void 0)},K.id))})]})]})})}),y.jsx(yc,{value:"Structure",children:y.jsx(bl,{scrollbars:"y",type:"auto",children:y.jsx(fXe,{element:x})})}),y.jsx(yc,{value:"Deployments",children:y.jsx(bl,{scrollbars:"y",type:"auto",children:y.jsx(aYe,{elementFqn:x.id})})})]})}),y.jsx(Ei.div,{className:VWe,drag:!0,dragElastic:0,dragMomentum:!1,onDrag:I,dragConstraints:{top:0,left:0,right:0,bottom:0}})]})})})}const ste=({view:e,onNavigateTo:r})=>y.jsx(Er,{className:zWe,onClick:n=>r(e.id,n),children:y.jsxs(pn,{gap:6,align:"start",wrap:"nowrap",children:[y.jsx(Ba,{size:"sm",variant:"transparent",children:e._type==="deployment"?y.jsx(MA,{stroke:1.8}):y.jsx(Ri,{stroke:1.8})}),y.jsx(Re,{children:y.jsx(ft,{component:"div",className:IWe,lineClamp:1,children:e.title||"untitled"})})]})});function bXe({title:e,emptyValue:r="undefined",children:n,style:o,...a}){return y.jsxs(y.Fragment,{children:[y.jsx(jy,{children:e}),y.jsx(ft,{component:"div",...z7(n)&&{c:"dimmed"},fz:"md",style:{whiteSpace:"preserve-breaks",userSelect:"all",...o},...a,children:n||r})]})}function vXe({value:e}){const r=P7(e).sort(([n],[o])=>n.localeCompare(o));return y.jsx(EJ,{children:y.jsxs(y.Fragment,{children:[y.jsx(jy,{style:{justifySelf:"end",textAlign:"right"},children:"metadata"}),y.jsx(Re,{className:be({display:"grid",gridTemplateColumns:"min-content 1fr",gridAutoRows:"min-content",gap:"[12px 16px]",alignItems:"baseline",justifyItems:"stretch"}),children:r.map(([n,o])=>y.jsx(YWe,{label:n,value:o},n))})]})})}const xXe=e=>({viewId:e.context.currentView.id,fromNode:e.context.initiatedFrom.node,rectFromNode:e.context.initiatedFrom.clientRect,fqn:e.context.subject});function wXe({actorRef:e,onClose:r}){const n=fn(e,xXe,an);return y.jsx(yT.Provider,{value:e,children:y.jsx(yXe,{onClose:r,...n})})}const t4="--_blur",r4="--_opacity",kXe="--_level",Ly=E.forwardRef(({onClose:e,className:r,classes:n,overlayLevel:o=0,children:a,fullscreen:i=!1,withBackdrop:s=!0,backdrop:l,openDelay:c=130,...d},u)=>{const[h,f]=E.useState(c===0),g=_U(h),b=E.useRef(null),x=E.useRef(!1),w=VQ()!==!0,k=E.useRef(e);k.current=e;const C=HE(()=>{x.current||(x.current=!0,k.current())},[],50);E.useLayoutEffect(()=>{b.current?.open||b.current?.showModal()},[]),Z3(()=>{f(!0)},c>0?c:void 0);const _=QUe({fullscreen:i,withBackdrop:s});let T=o>0?"50%":"60%";return l?.opacity!==void 0&&(T=`${l.opacity*100}%`),y.jsx(Ei.dialog,{ref:Hr(b,g,u),className:et(n?.dialog,r,_,i&&A0.classNames.fullWidth),layout:!0,style:{[kXe]:o},...w?{initial:{[t4]:"0px",[r4]:"0%",scale:.95,originY:0,translateY:-20,opacity:0},animate:{[t4]:o>0?"4px":"8px",[r4]:T,scale:1,opacity:1,translateY:0,transition:{delay:.075}},exit:{opacity:0,scale:.98,translateY:-20,transition:{duration:.1},[t4]:"0px",[r4]:"0%"}}:{initial:{[t4]:"8px",[r4]:T}},onClick:A=>{if(A.stopPropagation(),A.target?.nodeName?.toUpperCase()==="DIALOG"){b.current?.close();return}},onCancel:A=>{A.preventDefault(),A.stopPropagation(),C()},onDoubleClick:Cn,onPointerDown:Cn,onClose:A=>{A.stopPropagation(),C()},...d,children:y.jsx(A0,{forwardProps:!0,children:y.jsx("div",{className:et(n?.body,"likec4-overlay-body"),children:h&&y.jsx(y.Fragment,{children:a})})})})});Ly.displayName="Overlay";const n4=(e,r)=>e.size>2&&r.size!==e.size?new Set(dd([...I3(e).flatten(),...r])):e.size>1?new Set(dd([...e])):e;function _Xe(e,r){const n=new Set,o=new Set,a=new Set,i={sources:new Set,targets:new Set},s=(l,c)=>{c==="source"?(n.add(l),i.sources.add(l)):(a.add(l),i.targets.add(l))};for(const l of e){const c=r.findEdge(l),d=c?[...c.relationships("model")]:[];if(!c||!bo(d,1)||!c.source.hasElement()||!c.target.hasElement())continue;const u=c.source.element,h=c.target.element;s(u,"source"),s(h,"target");for(const f of d){if(o.add(f),f.source!==u){s(f.source,"source");for(const g of f.source.ancestors()){if(g===u)break;n.add(g)}}if(f.target!==h){s(f.target,"target");for(const g of f.target.ancestors()){if(g===h)break;a.add(g)}}}}return{sources:n4(n,i.sources),targets:n4(a,i.targets),relationships:o}}function EXe({source:e,target:r}){const n=new Set,o=new Set,a=new Set,i={sources:new Set,targets:new Set},s=(c,d)=>{d==="source"?(n.add(c),i.sources.add(c)):(a.add(c),i.targets.add(c))};e&&s(e,"source"),r&&s(r,"target");const[l]=r8e.findConnection(e,r,"directed");if(!l)return{sources:n,targets:a,relationships:o};for(const c of l.relations){const d=c.source,u=c.target;if(s(d,"source"),s(u,"target"),o.add(c),e!==d){at(to(e,d),`${e.id} is not an ancestor of ${d.id}`);for(const h of d.ancestors()){if(h===e)break;n.add(h)}}if(r!==u){at(to(r,u),`${r.id} is not an ancestor of ${u.id}`);for(const h of u.ancestors()){if(h===r)break;a.add(h)}}}return{sources:n4(n,i.sources),targets:n4(a,i.targets),relationships:o}}const lte=E.createContext(null);function zA(){return bt(E.useContext(lte),"No RelationshipDetailsActorContext")}function cte(e,r=an){const n=kt(e),o=zA();return fn(o,n,r)}function IA(){const e=zA();return E.useMemo(()=>({actor:e,get rootElementId(){return`relationship-details-${e.sessionId.replaceAll(":","_")}`},getState:()=>e.getSnapshot().context,send:e.send,navigateTo:(...r)=>{r.length===1?e.send({type:"navigate.to",params:{edgeId:r[0]}}):e.send({type:"navigate.to",params:{source:r[0],target:r[1]}})},fitDiagram:()=>{e.send({type:"fitDiagram"})},close:()=>{e._parent?e._parent?.send({type:"close",actorId:e.id}):e.send({type:"close"})}}),[e])}const Cs={dagre:{ranksep:60,nodesep:35,edgesep:25},edgeLabel:{width:220,height:14},nodeWidth:330,nodeHeight:180,compound:{labelHeight:2,paddingTop:50,paddingBottom:32}};function SXe(){const e=new Gw.graphlib.Graph({directed:!0,compound:!0,multigraph:!0});return e.setGraph({...Cs.dagre,rankdir:"LR"}),e.setDefaultEdgeLabel(()=>({...Cs.edgeLabel})),e.setDefaultNodeLabel(()=>({})),e}const OA="-port";function dte(e,r,n){const o=new Xn(i=>({id:`${e}-${i}`,portId:`${e}-${i}`})),a=I3(r);for(const i of a.sorted){const s=a.children(i).length>0,l=i.id,c=`${e}-${l}`,d=s?`${c}${OA}`:c;o.set(l,{id:c,portId:d}),n.setNode(c,{column:e,element:i,isCompound:s,portId:d,inPorts:[],outPorts:[],width:Cs.nodeWidth,height:Cs.nodeHeight}),s&&(n.setNode(d,{element:i,portId:d,isCompound:s,inPorts:[],outPorts:[],width:Cs.nodeWidth-Cs.dagre.ranksep,height:Cs.compound.labelHeight}),n.setParent(d,c));const u=a.parent(i);u&&n.setParent(c,`${e}-${u.id}`)}return{...a,byId:i=>{const s=a.byId(i),l=o.get(s.id);return{element:s,graph:l}},graphNodes:o}}function CXe(e){return Gw.layout(e,{}),r=>{const n=e.node(r),{x:o,y:a,width:i,height:s}=n;return{position:{x:o-Math.round(i/2),y:a-Math.round(s/2)},width:i,height:s}}}function TXe(e,r){const n=SXe(),o=dte("sources",e.sources,n),a=dte("targets",e.targets,n),i=Array.from(e.relationships).map(k=>{const C=o.byId(k.source.id).graph,_=a.byId(k.target.id).graph,T=k.id;return n.node(C.id).outPorts.push(_.id),n.node(_.id).inPorts.push(C.id),n.setEdge(C.portId,_.portId,{...Cs.edgeLabel},T),{name:T,source:C.id,sourceHandle:C.id+"_out"+(n.node(C.id).outPorts.length-1),target:_.id,targetHandle:_.id+"_in"+(n.node(_.id).inPorts.length-1),relationship:k}}),s=[...o.graphNodes.values(),...a.graphNodes.values()];for(const{id:k}of s){const C=n.node(k);if(C.isCompound)continue;const _=Math.max(n.inEdges(k)?.length??0,n.outEdges(k)?.length??0);_>3&&(C.height=C.height+(_-4)*14)}const l=n.edgeCount();if(l>5)for(const k of n.edges())n.setEdge(k,{...Cs.edgeLabel,width:l>10?800:400});const c=CXe(n),d=En(s,hp(k=>k.id===k.portId),Vx(k=>[k.id,c(k.id)]));function u(k){return d[k]??=En(n.children(k)??[],hp(C=>!C.endsWith(OA)),Sn(C=>u(C)),Kq(C=>{at(C.length>0,`Node ${k} has no nested nodes`)}),Ux((C,_)=>({minY:Math.min(C.minY,_.position.y),maxY:Math.max(C.maxY,_.position.y+_.height)}),{minY:1/0,maxY:-1/0}),({minY:C,maxY:_})=>{const{position:{x:T},width:A}=c(k);return C=C-Cs.compound.paddingTop,_=_+Cs.compound.paddingBottom,{position:{x:T,y:C},width:A,height:_-C}})}function h(k){const C=n.parent(k);return C?h(C)+1:0}function f(k){const C=n.children(k)??[];return C.length===0?0:1+Math.max(...C.map(f))}const g=(k,C,_)=>En(_,Sn((T,A)=>({port:k+"_"+C+A,topY:u(T).position.y})),Wx(mp("topY")),Sn(mp("port")));let b=0,x=0;const w=s.map(({id:k})=>{const{element:C,inPorts:_,outPorts:T,column:A}=n.node(k);let{position:R,width:D,height:N}=u(k);const P=n.parent(k),O=(n.children(k)??[]).filter(V=>!V.endsWith(OA));b=Math.min(b,R.x),x=Math.min(x,R.y);const F=r?X1(C.scopedViews(),V=>V.id!==r.id)?.id??null:null,L=r?.findNodeWithElement(C.id),U=r&&!L?X1(C.ancestors(),V=>!!r.findNodeWithElement(V.id))?.id:null,M=L??(U&&r?.findNodeWithElement(U));return U1({id:k,parent:P??null,x:R.x,y:R.y,title:C.title,description:C.summary,technology:C.technology,tags:[...C.tags],links:null,color:M?.color??C.color,shape:L?.shape??C.shape,icon:L?.icon??C.icon??"none",modelRef:C.id,kind:C.kind,level:h(k),labelBBox:{x:R.x,y:R.y,width:D,height:N},style:Ed({...(L??M)?.style,...C.$element.style},["shape","color","icon"]),navigateTo:F,...O.length>0&&{depth:f(k)},children:O,width:D,height:N,column:A,ports:{in:g(k,"in",_),out:g(k,"out",T)}})});return{bounds:{x:Math.min(b,0),y:Math.min(x,0),width:n.graph().width??100,height:n.graph().height??100},nodes:w,edges:n.edges().reduce((k,C)=>{const _=n.edge(C),T=C.name;if(!T)return k;const{name:A,source:R,target:D,relationship:N,sourceHandle:P,targetHandle:O}=Bx(i,V=>V.name===T),F=N.title??"untitled",L=N.navigateTo?.id??null,U=N.description??null,M=N.technology??null;return k.push({id:A,source:R,sourceHandle:P,target:D,targetHandle:O,label:F,color:N.color,...L&&{navigateTo:L},...U&&{description:U},...M&&{technology:M},points:_.points.map(V=>[V.x,V.y]),line:N.line,relationId:N.id,parent:null}),k},[])}}const jA=be.raw({display:"inline-flex",alignItems:"center",padding:"[6px 2px 0 2px]","& .mantine-Text-root":{color:"mantine.colors.text/90",fontSize:"xs",fontWeight:500,lineHeight:"1.2"}}),ute=be({paddingLeft:"1",gridColumn:1},jA),AXe=be({gridColumn:2},jA),pte=be({gridColumn:3,paddingRight:"1"},jA),hte="likec4-edge-label",RXe=et(hte,be({display:"grid",gridColumnStart:1,gridColumnEnd:4,borderBottom:"1px solid",borderBottomColor:"mantine.colors.defaultBorder",marginBottom:"0",padding:"[0 4px 5px 4px]",width:"100%","& .mantine-Text-root":{fontSize:"xxs",fontWeight:400,lineHeight:"xs",color:"mantine.colors.dimmed"}})),NXe=be({display:"contents",[`&:last-child .${hte}`]:{borderBottom:"none",marginBottom:"0"},"& > *":{transition:"all 0.15s ease-in"},"&:is(:hover, [data-selected=true]) > *":{transition:"all 0.15s ease-out",cursor:"pointer",backgroundColor:"mantine.colors.defaultHover"}}),DXe=be({display:"grid",gridTemplateColumns:"1fr 30px 1fr",gridAutoRows:"min-content max-content",gap:"0",alignItems:"stretch"});be({display:"grid",gridTemplateColumns:"min-content 1fr",gridAutoRows:"min-content max-content",gap:"[10px 12px]",alignItems:"baseline",justifyItems:"start"});const $Xe=be({maxHeight:["70vh","calc(100cqh - 70px)"]}),PXe=({edge:e,view:r})=>{const n=IA(),o=E.useRef(null),a=r.nodes.find(l=>l.id===e.source),i=r.nodes.find(l=>l.id===e.target),s=r.edges.flatMap(l=>{const c=r.nodes.find(u=>u.id===l.source),d=r.nodes.find(u=>u.id===l.target);return c&&d?{id:l.id,source:c,target:d,label:l.label}:[]});return!a||!i||s.length===0?null:y.jsxs(Rr,{position:"bottom-start",shadow:"md",keepMounted:!0,withinPortal:!1,closeOnClickOutside:!0,clickOutsideEvents:["pointerdown","mousedown","click"],onOpen:()=>{setTimeout(()=>{o.current?.querySelector(`[data-edge-id="${e.id}"]`)?.scrollIntoView({behavior:"instant",block:"nearest"})},100)},children:[y.jsx($d,{children:y.jsxs(Kn,{size:"xs",variant:"default",fw:"500",style:{padding:"0.25rem 0.75rem"},rightSection:y.jsx(RA,{size:16}),children:[y.jsx(Re,{className:ute,maw:160,p:0,mod:{"likec4-color":a.color},children:y.jsx(ft,{component:"span",truncate:!0,children:a.title})}),y.jsx(Ba,{color:"dark",variant:"transparent",size:"xs",children:y.jsx(jm,{style:{width:"80%"}})}),y.jsx(Re,{className:pte,maw:160,p:0,mod:{"likec4-color":i.color},children:y.jsx(ft,{component:"span",truncate:!0,children:i.title})})]})}),y.jsx(fc,{p:0,miw:250,maw:400,children:y.jsx(pa,{className:$Xe,scrollbars:"y",type:"never",viewportRef:o,children:y.jsx(Re,{className:DXe,p:"xs",maw:400,children:s.map(l=>y.jsxs("div",{className:NXe,"data-selected":l.id===e.id,onClick:c=>{c.stopPropagation(),n.navigateTo(l.id)},children:[y.jsx(Re,{className:ute,mod:{"edge-id":l.id,"likec4-color":l.source.color},children:y.jsx(ft,{component:"span",truncate:!0,children:l.source.title})}),y.jsx(Re,{className:AXe,children:y.jsx(Ba,{color:"dark",variant:"transparent",size:"xs",children:y.jsx(jm,{style:{width:"80%"}})})}),y.jsx(Re,{className:pte,mod:{"likec4-color":l.target.color},children:y.jsx(ft,{component:"span",truncate:!0,children:l.target.title})}),y.jsx(Re,{className:RXe,children:y.jsx(ft,{component:"span",truncate:!0,children:l.label||"untitled"})})]},l.id))})})})]})},MXe=NA(e=>{const{enableNavigateTo:r}=_r(),{data:{navigateTo:n}}=e,[o,a,i]=Cx(e),s=Qt();return y.jsxs(Py,{...e,children:[y.jsx(My,{edgeProps:e,svgPath:o}),y.jsx(Qw,{edgeProps:e,labelPosition:{x:a,y:i,translate:"translate(-50%, 0)"},style:{maxWidth:Math.abs(e.targetX-e.sourceX-100)},children:y.jsx($y,{edgeProps:e,children:r&&n&&y.jsx(Zw,{...e,onClick:l=>{l.stopPropagation(),s.navigateTo(n)}})})})]})}),zXe=e=>{const{enableNavigateTo:r,enableVscode:n}=_r(),o=Qt(),a=Jw(),i=[],{navigateTo:s,fqn:l}=e.data;return s&&r&&a!==s&&i.push({key:"navigate",icon:y.jsx(Ri,{}),onClick:c=>{c.stopPropagation(),o.navigateTo(s)}}),l&&i.push({key:"relationships",icon:y.jsx(zy,{}),onClick:c=>{c.stopPropagation(),o.openRelationshipsBrowser(l)}}),l&&n&&i.push({key:"goToSource",icon:y.jsx(zm,{}),onClick:c=>{c.stopPropagation(),o.openSource({element:l})}}),y.jsx(e4,{buttons:i,...e})};function IXe(e,r){return e.id===r.id&<(e.type,r.type)&<(e.selected??!1,r.selected??!1)&<(e.dragging??!1,r.dragging??!1)&<(e.width??0,r.width??0)&<(e.height??0,r.height??0)&<(e.zIndex??0,r.zIndex??0)&<(e.data,r.data)}const fte=Symbol.for("isMemoized");function _c(e,r="Node"){if(e.hasOwnProperty(fte))return e;const n=E.memo(e,IXe);return n.displayName=r,Object.defineProperty(n,fte,{enumerable:!1,writable:!1,value:!0}),n}const mte=e=>{const r=Qt();return y.jsx($A,{...e,onClick:n=>{n.stopPropagation(),r.openElementDetails(e.data.fqn)}})},OXe=_c(e=>{const{enableElementTags:r}=_r();return y.jsxs(Im,{nodeProps:e,children:[y.jsx(Om,{...e}),y.jsx(Ss,{...e}),r&&y.jsx(Ry,{...e}),y.jsx(mte,{...e}),y.jsx(zXe,{...e}),y.jsx(LXe,{...e})]})}),jXe=_c(e=>y.jsxs(Iy,{nodeProps:e,children:[y.jsx(mte,{...e}),y.jsx(Oy,{...e}),y.jsx(BXe,{...e})]})),LXe=({data:{ports:e,height:r}})=>y.jsxs(y.Fragment,{children:[e.in.map((n,o)=>y.jsx(yo,{id:n,type:"target",position:tt.Left,style:{visibility:"hidden",top:`${15+(o+1)*((r-30)/(e.in.length+1))}px`}},n)),e.out.map((n,o)=>y.jsx(yo,{id:n,type:"source",position:tt.Right,style:{visibility:"hidden",top:`${15+(o+1)*((r-30)/(e.out.length+1))}px`}},n))]}),BXe=({data:e})=>y.jsxs(y.Fragment,{children:[e.ports.in.map((r,n)=>y.jsx(yo,{id:r,type:"target",position:tt.Left,style:{visibility:"hidden",top:`${20*(n+1)}px`}},r)),e.ports.out.map((r,n)=>y.jsx(yo,{id:r,type:"source",position:tt.Right,style:{visibility:"hidden",top:`${20*(n+1)}px`}},r))]}),FXe={element:OXe,compound:jXe},HXe={relationship:MXe};function VXe({actorRef:e}){const r=E.useRef(null);return r.current==null&&(r.current={defaultNodes:[],defaultEdges:[]}),y.jsx(lte.Provider,{value:e,children:y.jsx(Ox,{...r.current,children:y.jsx($m,{id:e.sessionId,inherit:!1,children:y.jsxs(Qn,{children:[y.jsx(YXe,{},"xyflow"),y.jsx(UXe,{},"sync")]})})})})}const qXe=e=>({...e.context.subject,viewId:e.context.viewId}),UXe=E.memo(()=>{const e=zA(),r=fn(e,qXe,lt),n=Ko(),o=n.findView(r.viewId)??null,a=E.useMemo(()=>{let l;if("edgeId"in r&&da(r.edgeId)){at(o,`view ${r.viewId} not found`);const c=bt(o.findEdge(r.edgeId),`edge ${r.edgeId} not found in ${r.viewId}`);l=_Xe([c.id],o)}else if(r.source&&r.target)l=EXe({source:n.element(r.source),target:n.element(r.target)});else return null;return TXe(l,o)},[r,o,n]),i=Ar(),s=Bf();return E.useEffect(()=>{s.viewportInitialized&&e.send({type:"xyflow.init",instance:s,store:i})},[i,s.viewportInitialized,e]),E.useEffect(()=>{a!==null&&e.send({type:"update.layoutData",data:a})},[a,e]),null}),WXe=({context:e})=>({initialized:e.initialized.xydata&&e.initialized.xyflow,nodes:e.xynodes,edges:e.xyedges}),YXe=E.memo(()=>{const e=IA(),{initialized:r,nodes:n,edges:o}=cte(WXe,lt);return y.jsxs(IT,{id:e.rootElementId,nodes:n,edges:o,className:et(r?"initialized":"not-initialized","likec4-relationship-details"),nodeTypes:FXe,edgeTypes:HXe,onNodesChange:io(a=>{e.send({type:"xyflow.applyNodeChanges",changes:a})}),onEdgesChange:io(a=>{e.send({type:"xyflow.applyEdgeChanges",changes:a})}),fitViewPadding:.05,onNodeClick:io((a,i)=>{a.stopPropagation(),e.send({type:"xyflow.nodeClick",node:i})}),onEdgeClick:io((a,i)=>{a.stopPropagation(),e.send({type:"xyflow.edgeClick",edge:i})}),onPaneClick:io(()=>{e.send({type:"xyflow.paneClick"})}),onDoubleClick:io(()=>{e.send({type:"xyflow.paneDblClick"})}),onViewportResize:io(()=>{e.send({type:"xyflow.resized"})}),onEdgeMouseEnter:io((a,i)=>{i.data.hovered||e.send({type:"xyflow.edgeMouseEnter",edge:i})}),onEdgeMouseLeave:io((a,i)=>{i.data.hovered&&e.send({type:"xyflow.edgeMouseLeave",edge:i})}),onSelectionChange:io(a=>{e.send({type:"xyflow.selectionChange",...a})}),nodesDraggable:!1,nodesSelectable:!0,fitView:!1,pannable:!0,zoomable:!0,children:[y.jsx(XXe,{}),y.jsx(kd,{position:"top-right",children:y.jsx(br,{variant:"default",color:"gray",onClick:a=>{a.stopPropagation(),e.close()},children:y.jsx(Rp,{})})})]})}),GXe=({context:e})=>({subject:e.subject,viewId:e.viewId}),XXe=E.memo(()=>{const{subject:e,viewId:r}=cte(GXe,lt),n=Ko().findView(r);if(!n||!n.isDiagram())return null;const o=[...n.edges()];let a="edgeId"in e&&da(e.edgeId)?o.find(i=>i.id===e.edgeId):Bx(o,i=>i.source.element?.id===e.source&&i.target.element?.id===e.target)||Bx(o,i=>(i.source.element?.id===e.source||to(i.source.element?.id??"__",e.source??"__"))&&(i.target.element?.id===e.target||to(i.target.element?.id??"__",e.target??"__")));return a?y.jsx(KXe,{edge:a.$edge,view:n.$view}):null}),KXe=({edge:e,view:r})=>{const n=IA(),o=e.id,[a,i,{history:s,current:l}]=$U(e.id);E.useEffect(()=>{a!==o&&i.set(o)},[o]),E.useEffect(()=>{a!==o&&n.navigateTo(a)},[a]);const c=l>0,d=l+1{u.stopPropagation(),i.back()},children:y.jsx(ete,{})})},"back"),d&&y.jsx(Ei.div,{layout:!0,initial:{opacity:.05,transform:"translateX(5px)"},animate:{opacity:1,transform:"translateX(0)"},exit:{opacity:0,transform:"translateX(5px)"},children:y.jsx(br,{variant:"default",color:"gray",onClick:u=>{u.stopPropagation(),i.forward()},children:y.jsx(qd,{})})},"forward"),y.jsx(pn,{gap:"xs",wrap:"nowrap",ml:"sm",children:y.jsx(PXe,{edge:e,view:r})})]})})})},ZXe=e=>e.context.overlays.map(r=>{switch(r.type){case"relationshipsBrowser":return e.children[r.id]?{type:r.type,actorRef:e.children[r.id]}:null;case"relationshipDetails":return e.children[r.id]?{type:r.type,actorRef:e.children[r.id]}:null;case"elementDetails":return e.children[r.id]?{type:r.type,actorRef:e.children[r.id]}:null;default:Zi(r)}}).filter(Vq),QXe=(e,r)=>e.length===r.length&&e.every((n,o)=>n.actorRef===r[o].actorRef);function JXe({overlaysActorRef:e}){const r=Iw(c=>c.domNode),n=E.useMemo(()=>r?.querySelector(".react-flow__renderer")??null,[r]),o=fn(e,ZXe,QXe),a=VQ()??!1,i=o.some(c=>c.type==="elementDetails");E.useEffect(()=>{!n||a||NVe(n,{opacity:i?.7:1,filter:i?"grayscale(1)":"grayscale(0)",transform:i?"perspective(400px) translateZ(-12px) translateY(3px)":"translateY(0)"},{duration:i?.35:.17})},[i,n]);const s=c=>{e.send({type:"close",actorId:c.id})},l=o.map((c,d)=>{switch(c.type){case"relationshipsBrowser":return y.jsx(Ly,{overlayLevel:d,onClose:()=>s(c.actorRef),children:y.jsx(tte,{actorRef:c.actorRef})},c.actorRef.sessionId);case"relationshipDetails":return y.jsx(Ly,{overlayLevel:d,onClose:()=>s(c.actorRef),children:y.jsx(VXe,{actorRef:c.actorRef})},c.actorRef.sessionId);case"elementDetails":return y.jsx(wXe,{actorRef:c.actorRef,onClose:()=>s(c.actorRef)},c.actorRef.sessionId);default:Zi(c)}});return y.jsx(Np.Overlays,{children:y.jsx(RS,{FallbackComponent:NS,onReset:()=>e.send({type:"close.all"}),children:y.jsx($m,{children:y.jsx(Qn,{children:l})})})})}const[eKe,Wd]=hi("SearchActorContext"),tKe=e=>e.context.searchValue;function rKe(){const e=Wd(),r=fn(e,tKe),n=E.useCallback(o=>{e.send({type:"change.search",search:o})},[e]);return[r,n]}const nKe=e=>{const r=e.context.searchValue.trim().toLowerCase();return r.length>1?r:""};function LA(){const e=Wd();return E.useDeferredValue(fn(e,nKe))}function oKe(){const e=Wd();return E.useCallback(r=>{e.send({type:"change.search",search:r})},[e])}const aKe=e=>e.context.pickViewFor;function iKe(){const e=Wd();return fn(e,aKe)}const BA=be.raw({outline:"none",background:"mantine.colors.primary[8]",borderColor:"mantine.colors.primary[9]"}),o4=".mantine-Tree-node:focus > .mantine-Tree-label &",sKe=be.raw({display:"flex",width:"100%",background:"mantine.colors.body",rounded:"sm",padding:"[12px 8px 12px 14px]",minHeight:"60px",gap:"2",border:"1px solid",borderColor:"mantine.colors.defaultBorder",_hover:{...BA,borderColor:"mantine.colors.primary[9]",background:"mantine.colors.primary[8]/60"},_focus:BA,[o4]:BA,_dark:{borderColor:"transparent",background:"mantine.colors.dark[6]/80"},_light:{background:"mantine.colors.white/80",_hover:{borderColor:"mantine.colors.primary[6]",backgroundColor:"mantine.colors.primary[5]"}}}),a4="likec4-focusable",i4={ref:"var(--likec4-icon-size, 24px)"},lKe=be.raw({color:{base:"mantine.colors.dimmed",_light:"mantine.colors.gray[5]",_groupHover:"mantine.colors.primary[0]",_groupFocus:"mantine.colors.primary[0]"},[o4]:{color:"mantine.colors.primary[0]"},flex:`0 0 ${i4.ref}`,height:i4.ref,width:i4.ref,display:"flex",alignItems:"center",justifyContent:"center",alignSelf:"flex-start","--ti-size":i4.ref,"& svg, & img":{width:"100%",height:"auto",maxHeight:"100%",pointerEvents:"none"},"& img":{objectFit:"contain"},"&.likec4-shape-icon svg":{strokeWidth:1.5}}),cKe=be.raw({fontSize:"16px",fontWeight:500,lineHeight:"1.1",":where([data-disabled]) &":{opacity:.4},color:{base:"mantine.colors.dark[1]",_light:"mantine.colors.gray[7]",_groupHover:{base:"mantine.colors.primary[1]",_light:"mantine.colors.white"},_groupFocus:{base:"mantine.colors.primary[1]",_light:"mantine.colors.white"}},[o4]:{color:{base:"mantine.colors.primary[1]",_light:"mantine.colors.white"}}}),gte=be.raw({color:{base:"mantine.colors.dimmed",_groupHover:{base:"mantine.colors.primary[1]",_light:"mantine.colors.primary[0]"},_groupFocus:"mantine.colors.primary[0]"},[o4]:{color:"mantine.colors.primary[0]"}}),dKe=be.raw(gte,{marginTop:"1",fontSize:"12px",lineHeight:"1.4",":where([data-disabled]) &":{opacity:.85}}),uKe=be({width:"100%",height:"100%",border:"2px dashed",borderColor:"mantine.colors.defaultBorder",rounded:"md",display:"flex",justifyContent:"center",alignItems:"center",fontSize:"md",color:"mantine.colors.dimmed",padding:"md",paddingBlock:"xl"}),yte=vEe({slots:["root","icon","title","description","descriptionColor"],className:"search-button",base:{root:sKe,icon:lKe,title:cKe,description:dKe,descriptionColor:gte}}),FA="@container likec4-tree (max-width: 450px)",pKe=be({outline:"none",marginBottom:"2"}),hKe=be(QG.raw({containerName:"likec4-tree"}),{containerType:"inline-size",height:"100%"}),fKe=be({display:"flex",alignItems:"baseline",outline:"none !important",gap:"1"}),mKe=be({marginTop:"2"}),gKe=be({color:"mantine.colors.dimmed"}),yKe=be({[FA]:{flexDirection:"column-reverse",alignItems:"flex-start",gap:"0.5"}}),bKe=be({fontSize:"10px",lineHeight:"1.3",display:"block",fontWeight:500,whiteSpace:"nowrap",padding:"[1px 5px]",borderRadius:"4px",background:"mantine.colors.dark[9]/30",_light:{background:"mantine.colors.gray[3]/20"}}),vKe=be({"--likec4-icon-size":"24px",[FA]:{"--likec4-icon-size":"18px"}}),xKe=be({flex:0,fontSize:"10px",fontWeight:500,whiteSpace:"nowrap",lineHeight:"1.1",[FA]:{display:"none"}});function Di(e){e.stopPropagation(),e.preventDefault()}function bte(e){const r=e.getBoundingClientRect();return r.y+Math.floor(r.height/2)}function By(e){if(!e){console.error("moveFocusToSearchInput: from is null or undefined");return}const r=e.getRootNode();if(!C0(r.querySelector)){console.error("moveFocusToSearchInput: root.querySelector is not a function");return}let n=r.querySelector("[data-likec4-search-input]");if(n){const o=n.value.length;n.focus(),n.setSelectionRange(o,o)}}function s4(e){if(!e){console.error("focusToFirstFoundElement: from is null or undefined");return}const r=e.getRootNode();if(!C0(r.querySelector)){console.error("focusToFirstFoundElement: root.querySelector is not a function");return}r.querySelector(`[data-likec4-search] .${a4}`)?.focus()}function vte(e,r,n=`.${a4}`){if(!e)return console.error("queryAllFocusable: from is null or undefined"),[];const o=e.getRootNode();return C0(o.querySelectorAll)?[...o.querySelectorAll(`[data-likec4-search-${r}] ${n}`)]:(console.error("queryAllFocusable: root.querySelectorAll is not a function"),[])}const wKe="likec4-view-btn",kKe=et(be({flexWrap:"nowrap",display:"flex","&[data-disabled] .mantine-ThemeIcon-root":{opacity:.45}}),wKe);be({marginTop:"1",fontSize:"13px",lineHeight:"1.4",":where(.likec4-view-btn[data-disabled]) &":{opacity:.85}});const xte=()=>y.jsx(zr,{className:uKe,children:"Nothing found"}),_Ke=E.memo(()=>{const e=E.useRef(null);let r=[...Ko().views()],n=LA();return n&&(n.startsWith("kind:")?r=[]:r=r.filter(o=>n.startsWith("#")?o.tags.some(a=>a.toLocaleLowerCase().includes(n.slice(1))):`${o.id} ${o.title} ${o.description.text}`.toLocaleLowerCase().includes(n))),y.jsxs(Xo,{ref:e,renderRoot:o=>y.jsx(Br,{layout:!0,...o}),gap:8,"data-likec4-search-views":!0,onKeyDown:o=>{if(o.key==="ArrowLeft"||o.key==="ArrowRight"){const a=o.target.getBoundingClientRect().y,i=vte(e.current,"elements",".likec4-element-button");let s=i.length>1?i.find((l,c,d)=>bte(l)>a||c===d.length-1):null;s??=Ff(i),s&&(o.stopPropagation(),s.focus());return}},children:[r.length===0&&y.jsx(xte,{}),r.length>0&&y.jsx(D2,{children:y.jsx(Er,{"data-likec4-view":!0,tabIndex:-1,onFocus:o=>{o.stopPropagation(),By(e.current)}})}),r.map((o,a)=>y.jsx(Br,{layoutId:`@view${o.id}`,children:y.jsx(HA,{view:o,search:n,tabIndex:a===0?0:-1})},o.id))]})}),l4=yte();function HA({className:e,view:r,loop:n=!1,search:o,...a}){const i=Wd(),s=Qt(),l=Jw(),c=r.id===l,d=()=>{i.send({type:"close"}),setTimeout(()=>{s.navigateTo(r.id)},100)};return y.jsxs(Er,{...a,className:et(l4.root,"group",a4,kKe,e),"data-likec4-view":r.id,...c&&{"data-disabled":!0},onClick:u=>{u.stopPropagation(),d()},onKeyDown:N0({siblingSelector:"[data-likec4-view]",parentSelector:"[data-likec4-search-views]",activateOnFocus:!1,loop:n,orientation:"vertical",onKeyDown:u=>{u.nativeEvent.code==="Space"&&(u.stopPropagation(),d())}}),children:[y.jsx(Ba,{variant:"transparent",className:l4.icon,children:r.isDeploymentView()?y.jsx(MA,{stroke:1.8}):y.jsx(Ri,{stroke:1.8})}),y.jsxs(zr,{style:{flexGrow:1},children:[y.jsxs(pn,{gap:"xs",wrap:"nowrap",align:"center",children:[y.jsx(gc,{component:"div",highlight:o,className:l4.title,children:r.title||"untitled"}),c&&y.jsx(vl,{size:"xs",fz:9,radius:"sm",children:"current"})]}),y.jsx(gc,{highlight:r.description.nonEmpty?o:"",component:"div",className:l4.description,lineClamp:1,children:r.description.text||"No description"})]})]})}const Bm=yte(),EKe=E.memo(()=>{const e=Ko(),r=LA(),n=E.useMemo(()=>{const a=r.split(".");let i;fp(a)||a[0]==="kind:"?i=e.elements():i=Qu(e.elements(),d=>r.startsWith("kind:")?d.kind.toLocaleLowerCase().startsWith(r.slice(5)):r.startsWith("#")?d.tags.some(u=>u.toLocaleLowerCase().includes(r.slice(1))):(d.title+" "+d.id+" "+d.summary.text).toLocaleLowerCase().includes(r));const s={},{all:l,roots:c}=En([...i],dd,Ux((d,u)=>{const h={label:u.title,value:u.id,element:u,searchTerms:a,children:[]};s[h.value]=h;const f=d.all.findLast(g=>to(g.value,h.value));return f?(f.children.push(h),f.children.length>1&&f.children.sort(Dy)):d.roots.push(h),d.all.push(h),d},{all:[],roots:[]}));return{all:l,byid:s,roots:c.sort(Dy)}},[e,r]),o=wte();return n.all.length===0?y.jsx(xte,{}):y.jsx(CKe,{data:n,handleClick:o})}),SKe=()=>{};function CKe({data:{all:e,byid:r,roots:n},handleClick:o}){const a=G0({multiple:!1});a.setHoveredNode=SKe,E.useEffect(()=>{a.collapseAllNodes();for(const s of e)s.children.length>0&&a.expand(s.value)},[e]);const i=kt(s=>{const l=s.target,c=l.getAttribute("data-value"),d=!!c&&r[c];if(d){if(s.key==="ArrowUp"){c===n[0]?.value&&(Di(s),By(l));return}if(s.key==="ArrowRight"){if(d.children.length>0&&a.expandedState[c]===!1)return;const u=(s.target.querySelector(".mantine-Tree-label")??l).getBoundingClientRect().y,h=vte(l,"views");let f=h.length>1?h.find((g,b,x)=>bte(g)>u||b===x.length-1):null;f??=Ff(h),f&&(Di(s),f.focus());return}if(s.key===" "||s.key==="Enter"){Di(s),o(d.element);return}}});return y.jsx(hm,{"data-likec4-search-elements":!0,allowRangeSelection:!1,clearSelectionOnOutsideClick:!0,selectOnClick:!1,tree:a,data:n,levelOffset:"lg",classNames:{root:hKe,node:et(a4,pKe),label:fKe,subtree:mKe},onKeyDownCapture:i,renderNode:TKe})}function TKe({node:e,elementProps:r,hasChildren:n,expanded:o}){const{element:a,searchTerms:i}=e,s=MEe({element:{id:a.id,title:a.title,shape:a.shape,icon:a.icon},className:et(Bm.icon,vKe)}),l=[...a.views()],c=wte(),d=`@tree.${e.value}`;return y.jsxs(Br,{layoutId:d,...r,children:[y.jsx(br,{variant:"transparent",size:16,tabIndex:-1,className:et(gKe),style:{visibility:n?"visible":"hidden"},children:y.jsx(qd,{stroke:3.5,style:{transition:"transform 150ms ease",transform:`rotate(${o?"90deg":"0"})`,width:"100%"}})}),y.jsxs(Er,{component:Ni,layout:!0,tabIndex:-1,"data-value":a.id,className:et(Bm.root,"group","likec4-element-button"),...l.length>0&&{onClick:u=>{(!n||o)&&(u.stopPropagation(),c(a))}},children:[s,y.jsxs(Re,{style:{flexGrow:1},children:[y.jsxs(pn,{gap:"xs",wrap:"nowrap",align:"center",className:yKe,children:[y.jsx(gc,{component:"div",highlight:i,className:Bm.title,children:e.label}),y.jsx(co,{label:a.id,withinPortal:!1,fz:"xs",disabled:!a.id.includes("."),children:y.jsx(gc,{component:"div",highlight:i,className:et(bKe,Bm.descriptionColor),children:g1(a.id)})})]}),y.jsx(gc,{component:"div",highlight:i,className:Bm.description,lineClamp:1,children:a.summary.text||"No description"})]}),y.jsx(ft,{component:"div",className:et(xKe,Bm.descriptionColor),fz:"xs",children:l.length===0?"No views":y.jsxs(y.Fragment,{children:[l.length," view",l.length>1?"s":""]})})]})]})}function wte(){const e=Qt(),r=Wd();return kt(n=>{const o=[...n.views()];if(o.length===0)return;const a=qx(o);if(a){r.send({type:"close"}),a.id!==e.currentView.id&&setTimeout(()=>{e.navigateTo(a.id)},100);return}r.send({type:"pickview.open",elementFqn:n.id})})}const AKe=be({border:"transparent",background:{base:"transparent",_focusWithin:{base:"mantine.colors.gray[4]/55 !important",_dark:"mantine.colors.dark[5]/55 !important"},_groupHover:{base:"mantine.colors.gray[3]/35",_dark:"mantine.colors.dark[5]/35"}}}),RKe=be({position:"absolute",inset:"0",width:"100%",height:"100%",backgroundColor:"[rgb(34 34 34 / 0.7)]",zIndex:902,backdropFilter:"auto",backdropBlur:"10px",_light:{backgroundColor:"[rgb(255 255 255 / 0.6)]"}}),NKe=be({position:"absolute",top:"[2rem]",left:"[50%]",width:"100%",maxWidth:"600px",minWidth:"200px",transform:"translateX(-50%)",zIndex:903}),kte=be({marginTop:"2","& + &":{marginTop:"[32px]"}});be({height:["100%","100cqh"],"& .mantine-ScrollArea-viewport":{minHeight:"100%","& > div":{minHeight:"100%",height:"100%"}}});function DKe({elementFqn:e}){const r=Wd(),n=Ko().element(e),o=[],a=[];for(const s of n.views())s.viewOf===n?o.push(s):a.push(s);const i=()=>{r.send({type:"pickview.close"})};return Gf("keydown",s=>{try{s.key==="Escape"&&(s.stopPropagation(),s.preventDefault(),i())}catch(l){console.warn(l)}},{capture:!0}),y.jsxs(y.Fragment,{children:[y.jsx(Br,{className:RKe,onClick:s=>{s.stopPropagation(),i()}},"pickview-backdrop"),y.jsx(M2,{children:y.jsxs(Br,{initial:{opacity:0,scale:.95,originY:0,translateX:"-50%",translateY:-20},animate:{opacity:1,scale:1,translateY:0},exit:{opacity:0,scale:.98,translateY:-20,transition:{duration:.1}},className:NKe,"data-likec4-search-views":!0,children:[y.jsxs(pn,{px:"sm",py:"md",justify:"space-between",children:[y.jsx(Cp,{order:2,lh:1,children:"Select view"}),y.jsx(br,{size:"md",variant:"default",onClick:s=>{s.stopPropagation(),i()},children:y.jsx(Rp,{})})]}),y.jsxs(pa,{mah:"calc(100vh - 110px)",type:"never",children:[o.length>0&&y.jsxs(Xo,{gap:"sm",px:"sm",className:kte,children:[y.jsx(Cp,{order:6,c:"dimmed",children:"scoped views of the element"}),o.map((s,l)=>y.jsx(HA,{view:s,search:"",loop:!0,mod:{autofocus:l===0}},s.id))]}),a.length>0&&y.jsxs(Xo,{gap:"sm",px:"sm",className:kte,children:[y.jsx(Cp,{order:6,c:"dimmed",children:"views including this element"}),a.map((s,l)=>y.jsx(HA,{view:s,search:"",loop:!0,mod:{autofocus:l===0&&o.length===0}},s.id))]})]})]},"pickview")})]})}function $Ke(){const e=E.useRef(null);let r=Ko().tagsSortedByUsage,n=oKe(),o=LA(),a=r.length,i=!1;if(o.startsWith("#")){const s=o.slice(1);r=r.filter(({tag:l})=>l.toLocaleLowerCase().includes(s)),i=r.length!==a}return r.length===0?null:(r=r.slice(0,15),y.jsxs(sn,{ref:e,css:{gap:"md",paddingLeft:"[48px]",flexWrap:"nowrap"},children:[y.jsx(sn,{css:{gap:"1.5",flexWrap:"wrap",opacity:i?1:.3,grayscale:i?0:.9,filter:"auto",transition:"fast",_groupHover:{opacity:1,grayscale:0},_groupFocusWithin:{opacity:1,grayscale:0}},children:r.map(({tag:s})=>y.jsx(Lw,{tag:s,className:be({userSelect:"none",cursor:"pointer"}),onClick:l=>{l.stopPropagation(),n(`#${s}`),setTimeout(()=>{s4(e.current)},350)}},s))}),i&&y.jsx(Kn,{size:"compact-xs",variant:"light",onClick:s=>{s.stopPropagation(),n(""),By(e.current)},rightSection:y.jsx(Rp,{size:14}),children:"Clear"})]}))}const PKe=[["path",{d:"M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0",key:"svg-0"}],["path",{d:"M21 21l-6 -6",key:"svg-1"}]],VA=Nt("outline","search","Search",PKe);function _te(e){return e.match(/^(k|ki|kin|kind|kind:)$/)!=null}const MKe=["#","kind:"],zKe=E.memo(()=>{const e=Wd(),r=Ko(),n=E.useRef(null),{ref:o,focused:a}=_$e(),[i,s]=rKe(),l=FY({scrollBehavior:"smooth",loop:!1});Gf("keydown",u=>{try{!a&&(u.key==="Backspace"||u.key.startsWith("Arrow")||u.key.match(new RegExp("^\\p{L}$","u")))&&By(n.current)}catch(h){console.warn(h)}});let c=[],d=!1;switch(!0){case i.startsWith("#"):{const u=i.toLocaleLowerCase().slice(1),h=r.tags.filter(f=>f.toLocaleLowerCase().includes(u));h.length===0?(d=!1,c=[y.jsx(B0,{children:"No tags found"},"empty-tags")]):(d=r.tags.some(f=>f.toLocaleLowerCase()===u),c=h.map(f=>y.jsxs(F0,{value:`#${f}`,children:[y.jsx(ft,{component:"span",opacity:.5,mr:1,fz:"sm",children:"#"}),f]},f)));break}case i.startsWith("kind:"):case _te(i):{const u=i.length>5?i.slice(5).toLocaleLowerCase():"";let h=I7(r.specification.elements);u&&(h=h.filter(f=>f.toLocaleLowerCase().includes(u))),h.length===0?(d=!1,c=[y.jsx(B0,{children:"No kinds found"},"empty-kinds")]):(d=h.some(f=>f.toLocaleLowerCase()===u),c=h.map(f=>y.jsxs(F0,{value:`kind:${f}`,children:[y.jsx(ft,{component:"span",opacity:.5,mr:1,fz:"sm",children:"kind:"}),f]},f)));break}}return y.jsxs(lo,{onOptionSubmit:u=>{s(u),l.resetSelectedOption(),MKe.includes(u)||(l.closeDropdown(),setTimeout(()=>{s4(n.current)},350))},width:"max-content",position:"bottom-start",shadow:"md",offset:{mainAxis:4,crossAxis:50},store:l,withinPortal:!1,children:[y.jsx(J9,{children:y.jsx(La,{ref:Hr(n,o),placeholder:"Search by title, description or start with # or kind:",autoFocus:!0,"data-autofocus":!0,"data-likec4-search-input":!0,tabIndex:0,classNames:{input:AKe},size:"lg",value:i,leftSection:y.jsx(VA,{style:{width:Pe(20)},stroke:2}),rightSection:y.jsx(La.ClearButton,{onClick:u=>{u.stopPropagation();const h=e.getSnapshot().context.openedWithSearch;i===""||i===h?e.send({type:"close"}):s("")}}),rightSectionPointerEvents:"auto",onChange:u=>{s(u.currentTarget.value),l.openDropdown(),l.updateSelectedOptionIndex()},onClick:()=>l.openDropdown(),onFocus:()=>l.openDropdown(),onBlur:()=>l.closeDropdown(),onKeyDownCapture:u=>{if(u.key==="Tab"){switch(!0){case l.getSelectedOptionIndex()>=0:return l.clickSelectedOption(),Di(u);case c.length===1:return l.selectFirstOption()&&l.clickSelectedOption(),Di(u);case _te(i):return s("kind:"),Di(u)}return}if(u.key==="Backspace"&&l.dropdownOpened){if(i==="kind:")return s(""),l.resetSelectedOption(),Di(u);if(i.startsWith("kind:")&&d)return s("kind:"),l.resetSelectedOption(),Di(u);if(i.startsWith("#")&&d)return s("#"),l.resetSelectedOption(),Di(u)}if(u.key==="Escape"&&l.dropdownOpened&&c.length>0){Di(u),l.closeDropdown();return}if(u.key==="ArrowUp"&&l.dropdownOpened&&i===""&&l.getSelectedOptionIndex()===0){l.closeDropdown(),Di(u);return}if(u.key==="ArrowDown"&&(!l.dropdownOpened||c.length===0||d||i===""&&l.getSelectedOptionIndex()===c.length-1)){l.closeDropdown(),Di(u),s4(n.current);return}}})}),y.jsx(H2,{hidden:c.length===0,style:{minWidth:300},children:y.jsx(V2,{children:y.jsx(pa,{mah:"min(322px, calc(100cqh - 50px))",type:"scroll",children:c})})})]})}),IKe=be({backgroundColor:"[rgb(34 34 34 / var(--_opacity, 95%))]",_light:{backgroundColor:"[rgb(250 250 250 / var(--_opacity, 95%))]"},backdropFilter:"auto",backdropBlur:"var(--_blur, 10px)"}),OKe=be({width:"100%",height:"100%",maxHeight:"100vh",overflow:"hidden",display:"flex",flexDirection:"column",justifyContent:"stretch",gap:"sm",paddingTop:"[20px]",paddingLeft:"md",paddingRight:"md",paddingBottom:"sm",background:"[transparent]"}),jKe=e=>!e.matches("inactive");function LKe({searchActorRef:e}){const r=fn(e,jKe),n=()=>{e.send({type:"open"})},o=kt(()=>{e.send({type:"close"})});return x$e([["mod+k",n,{preventDefault:!0}],["mod+f",n,{preventDefault:!0}]]),y.jsx(eKe,{value:e,children:y.jsx(Np.Overlays,{children:y.jsx(RS,{FallbackComponent:NS,onReset:o,children:y.jsx(Qn,{children:r&&y.jsx(Ly,{fullscreen:!0,withBackdrop:!1,backdrop:{opacity:.9},classes:{dialog:IKe,body:OKe},openDelay:0,onClose:o,"data-likec4-search":"true",children:y.jsx(BKe,{searchActorRef:e})})})})})})}const Ete=be({height:["100%","100cqh"],"& .mantine-ScrollArea-viewport":{minHeight:"100%","& > div":{minHeight:"100%",height:"100%"}}}),BKe=({searchActorRef:e})=>{const r=E.useRef(null),n=iKe();return Z3(()=>{da(e.getSnapshot().context.openedWithSearch)&&s4(r.current)},150),y.jsxs(zr,{ref:r,display:"contents",children:[y.jsx(pn,{className:"group",wrap:"nowrap",onClick:o=>{o.stopPropagation(),By(r.current)},children:y.jsxs(Ap,{flex:1,px:"sm",children:[y.jsx(zKe,{}),y.jsx($Ke,{})]})}),y.jsxs(V0,{children:[y.jsx(_p,{span:6,children:y.jsx(Cp,{component:"div",order:6,c:"dimmed",pl:"sm",children:"Elements"})}),y.jsx(_p,{span:6,children:y.jsx(Cp,{component:"div",order:6,c:"dimmed",pl:"sm",children:"Views"})})]}),y.jsxs(V0,{className:be({containerName:"likec4-search-elements",containerType:"size",overflow:"hidden",flexGrow:1}),children:[y.jsx(_p,{span:6,children:y.jsx(bl,{type:"scroll",className:Ete,pr:"xs",scrollbars:"y",children:y.jsx(Qn,{children:y.jsx($m,{id:"likec4-search-elements",children:y.jsx(EKe,{})})})})}),y.jsx(_p,{span:6,children:y.jsx(bl,{type:"scroll",className:Ete,pr:"xs",scrollbars:"y",children:y.jsx(Qn,{children:y.jsx($m,{id:"likec4-search-views",children:y.jsx(_Ke,{})})})})})]}),n&&y.jsx(DKe,{elementFqn:n})]})};function FKe({children:e}){const r=E.useContext(_S);if(!r)throw new Error("PortalToContainer must be used within RootContainer");return y.jsx(j0,{target:r.ref.current??`#${r.id}`,children:e})}const Ste={onChange:null,onNavigateTo:null,onNodeClick:null,onNodeContextMenu:null,onCanvasContextMenu:null,onEdgeClick:null,onEdgeContextMenu:null,onCanvasClick:null,onCanvasDblClick:null,onBurgerMenuClick:null,onOpenSource:null,onInitialized:null,onLayoutTypeChange:null},qA=I7(Ste),Cte=E.createContext({...Vx(qA,e=>[e,null]),handlersRef:{current:Ste}});function HKe({handlers:e,children:r}){const n=Cf(e),o=qA.map(i=>C0(e[i])),a=E.useMemo(()=>({...Vx(qA,i=>n.current[i]?[i,(...s)=>n.current[i]?.(...s)]:[i,null]),handlersRef:n}),[n,...o]);return y.jsx(Cte.Provider,{value:a,children:r})}function Fm(){return E.useContext(Cte)}function jn(e){return{get syncLayoutActorRef(){return e.get("syncLayout")??null},get overlaysActorRef(){return e.get("overlays")??null},get diagramActorRef(){return bt(e.get("diagram"),"Diagram actor not found")},get searchActorRef(){return e.get("search")??null}}}function Hm(e,r){return e.view.nodes.find(n=>n.id===r)??null}function UA(e,r){return e.view.edges.find(n=>n.id===r)??null}function VKe(e){const r=new Map,n=e.context.xynodes.reduce((o,a)=>{let i=a.position;if(a.parentId){const c=r.get(a.parentId)??{x:0,y:0};i={x:i.x+c.x,y:i.y+c.y}}if(r.set(a.id,i),a.hidden||a.data.dimmed)return o;const s=a.measured?.width??a.width??a.initialWidth,l=a.measured?.height??a.height??a.initialHeight;return o.minX=Math.min(o.minX,i.x),o.minY=Math.min(o.minY,i.y),o.maxX=Math.max(o.maxX,i.x+s),o.maxY=Math.max(o.maxY,i.y+l),o},{minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0});return n.minX===1/0?{bounds:e.context.view.bounds}:{duration:350,bounds:{x:n.minX-10,y:n.minY-10,width:n.maxX-n.minX+20,height:n.maxY-n.minY+20}}}const qKe=32;function UKe(e){const r=bt(e.context.activeWalkthrough),n=bt(e.context.xyedges.find(c=>c.id===r.stepId)),o=e.context.xystore.getState(),a=bt(o.nodeLookup.get(n.source)),i=bt(o.nodeLookup.get(n.target)),s=LH([a,i],o);let l;if(r.parallelPrefix){const c=e.context.xynodes.find(d=>d.type==="seq-parallel"&&d.data.parallelPrefix===r.parallelPrefix);c&&(l={x:c.position.x,y:c.position.y,...ao(c)})}return l??=WKe(n,o),l?l=il.merge(l,s):l=s,{duration:350,bounds:il.expand(l,qKe)}}function WKe(e,r){const n=r.nodeLookup.get(e.source),o=r.nodeLookup.get(e.target);if(!n||!o)return null;const a=iV({id:e.id,sourceNode:n,targetNode:o,sourceHandle:e.sourceHandle||null,targetHandle:e.targetHandle||null,connectionMode:r.connectionMode});return a?il.fromPoints([[a.sourceX,a.sourceY],[a.targetX,a.targetY]]):null}const YKe=wl({delays:{"open timeout":({context:e})=>e.openTimeout,"close timeout":600,"long idle":1500},actions:{"update edgeId":Zt(({context:e,event:r})=>(Tt(r,["xyedge.select","xyedge.mouseEnter"]),{edgeId:r.edgeId,edgeSelected:e.edgeSelected||r.type==="xyedge.select"})),"increase open timeout":Zt(()=>({openTimeout:800})),"decrease open timeout":Zt(()=>({openTimeout:300})),"reset edgeId":Zt({edgeId:null,edgeSelected:!1})},guards:{"edge was selected":({context:e})=>e.edgeSelected,"edge was hovered":({context:e})=>!e.edgeSelected}}).createMachine({id:"breadcrumbs",context:()=>({edgeId:null,edgeSelected:!1,openTimeout:800}),initial:"idle",on:{close:{target:"#idle",actions:["reset edgeId","increase open timeout"]}},states:{idle:{id:"idle",on:{"xyedge.mouseEnter":{target:"opening",actions:"update edgeId"},"xyedge.select":{target:"active",actions:"update edgeId"}},after:{"long idle":{actions:"increase open timeout"}}},opening:{on:{"xyedge.mouseLeave":{target:"idle"},"xyedge.select":{target:"active",actions:"update edgeId"}},after:{"open timeout":{actions:"decrease open timeout",target:"active"}}},active:{tags:["opened"],initial:"opened",exit:"reset edgeId",on:{"xyedge.unselect":{target:"idle",actions:"increase open timeout"},"xyedge.select":{actions:"update edgeId"}},states:{opened:{on:{"dropdown.mouseEnter":{target:"hovered"},"xyedge.mouseLeave":{guard:"edge was hovered",target:"closing"}}},hovered:{on:{"dropdown.mouseLeave":[{guard:"edge was selected",target:"opened"},{target:"closing"}]}},closing:{on:{"xyedge.mouseEnter":{guard:"edge was hovered",target:"opened",actions:"update edgeId"},"xyedge.select":{target:"opened",actions:"update edgeId"},"dropdown.mouseEnter":{target:"hovered"}},after:{"close timeout":{target:"#idle"}}}}}}}),GKe=YKe,Tte=be({display:"block",fontSize:"xxs",fontWeight:500,whiteSpace:"nowrap",paddingX:"1",paddingY:"0.5",borderRadius:"[2px]",background:{_light:"var(--likec4-palette-fill)/90",_dark:"var(--likec4-palette-fill)/60"},lineHeight:"1",color:{_light:"var(--likec4-palette-hiContrast)",_dark:"var(--likec4-palette-loContrast)"}}),XKe=be({whiteSpaceCollapse:"preserve-breaks",fontSize:"sm",lineHeight:"sm",userSelect:"all"});function KKe(e){let r=null;for(const n of e.xyedges)if(n.selected){if(r){r=null;break}r=n.data.id}return{viewId:e.view.id,selected:r}}const ZKe=E.memo(()=>{const e=Ko(),r=KS(GKe),n=Qt(),{viewId:o,selected:a}=vs(KKe),i=fn(r,g=>g.hasTag("opened")?g.context.edgeId:null);Fa("navigateTo",()=>{r.send({type:"close"})}),Fa("edgeMouseEnter",({edge:g})=>{r.send({type:"xyedge.mouseEnter",edgeId:g.data.id})}),Fa("edgeMouseLeave",()=>{r.send({type:"xyedge.mouseLeave"})}),Fa("walkthroughStarted",()=>{r.send({type:"close"})}),E.useEffect(()=>{a?r.send({type:"xyedge.select",edgeId:a}):r.send({type:"xyedge.unselect"})},[a]);const s=E.useCallback(g=>{if(!i)return;r.send({type:"dropdown.mouseEnter"});const b=n.findEdge(i);b&&!b.data.hovered&&n.send({type:"xyflow.edgeMouseEnter",edge:b,event:g})},[r,n,i]),l=E.useCallback(g=>{if(!i)return;r.send({type:"dropdown.mouseLeave"});const b=n.findEdge(i);b?.data.hovered&&n.send({type:"xyflow.edgeMouseLeave",edge:b,event:g})},[r,n,i]),{diagramEdge:c,sourceNode:d,targetNode:u}=vs(g=>{const b=i?UA(g,i):null,x=b?Hm(g,b.source):null,w=b?Hm(g,b.target):null;return{diagramEdge:b,sourceNode:x,targetNode:w}},an,[i]);if(!c||!d||!u||fp(c.relations))return null;const[h,f]=En(c.relations,Sn(g=>{try{return e.relationship(g)}catch(b){return console.error(`View is cached and likec4model missing relationship ${g} from ${d.id} -> ${u.id}`,b),null}}),hp(da),Yq(g=>g.source.id===d.id&&g.target.id===u.id));return h.length===0&&f.length===0?(console.warn("No relationships found diagram edge",{diagramEdge:c,sourceNode:d,targetNode:u}),null):y.jsx(FKe,{children:y.jsx(JKe,{viewId:o,direct:h,nested:f,diagramEdge:c,sourceNode:d,targetNode:u,onMouseEnter:s,onMouseLeave:l})})}),QKe=(e,r)=>r?.querySelector(`.likec4-edge-label[data-edge-id="${e}"]`)??null,WA=8,JKe=({viewId:e,diagramEdge:r,direct:n,nested:o,sourceNode:a,targetNode:i,onMouseEnter:s,onMouseLeave:l})=>{const c=E.useRef(null),{enableNavigateTo:d,enableVscode:u}=_r(),{onOpenSource:h}=Fm(),f=pje(),[g,b]=E.useState(null);E.useLayoutEffect(()=>{b(QKe(r.id,f.current))},[r]),E.useEffect(()=>{const k=g,C=c.current;if(!k||!C)return;let _=!1;const T=_2(k,C,()=>{NW(k,C,{placement:"bottom-start",middleware:[CW(4),JMe({crossAxis:!0,padding:WA,allowedPlacements:["bottom-start","top-start","right-start","right-end","left-end"]}),TW({padding:WA,apply({availableHeight:A,availableWidth:R,elements:D}){_||Object.assign(D.floating.style,{maxWidth:`${ds(Ud(R),{min:200,max:400})}px`,maxHeight:`${ds(Ud(A),{min:0,max:500})}px`})}}),AW({padding:WA*2})]}).then(({x:A,y:R,middlewareData:D})=>{_||(C.style.transform=`translate(${Ud(A)}px, ${Ud(R)}px)`,C.style.visibility=D.hide?.referenceHidden?"hidden":"visible")})},{ancestorResize:!1,animationFrame:!0});return()=>{_=!0,T()}},[g]);const x=Qt(),w=E.useCallback((k,C)=>y.jsxs(E.Fragment,{children:[C>0&&y.jsx(kp,{}),y.jsx(eZe,{viewId:e,relationship:k,sourceNode:a,targetNode:i,onNavigateTo:d?_=>{x.navigateTo(_)}:void 0,...h&&u&&{onOpenSource:()=>h({relation:k.id})}})]},k.id),[e,a,i,x,d,h,u]);return y.jsx(pa,{ref:c,onMouseEnter:s,onMouseLeave:l,type:"auto",scrollbars:"y",scrollbarSize:6,styles:{viewport:{overscrollBehavior:"contain",minWidth:180}},className:et(be({layerStyle:"likec4.dropdown",p:"0",pointerEvents:{base:"all",_whenPanning:"none"},position:"absolute",top:"0",left:"0",width:"max-content",cursor:"default"})),children:y.jsxs(Ap,{css:{gap:"3",padding:"4",paddingTop:"2"},children:[y.jsx(Kn,{variant:"default",color:"gray",size:"compact-xs",style:{alignSelf:"flex-start",fontWeight:500,"--button-fz":"var(--font-sizes-xxs)"},onClick:k=>{k.stopPropagation(),x.openRelationshipDetails(r.id)},children:"browse relationships"}),n.length>0&&y.jsxs(y.Fragment,{children:[y.jsx(Vm,{children:"DIRECT RELATIONSHIPS"}),n.map(w)]}),o.length>0&&y.jsxs(y.Fragment,{children:[y.jsx(Vm,{css:{mt:n.length>0?"2":"0"},children:"RESOLVED FROM NESTED"}),o.map(w)]})]})})},eZe=E.forwardRef(({viewId:e,relationship:r,sourceNode:n,targetNode:o,onNavigateTo:a,onOpenSource:i},s)=>{const l=Ate(r,"source",n),c=Ate(r,"target",o),d=a&&r.navigateTo?.id!==e?r.navigateTo?.id:void 0,u=r.links;return y.jsxs(Ap,{ref:s,className:tX({block:"2",inline:"2",paddingY:"2.5",paddingX:"2",gap:"1",rounded:"sm",backgroundColor:{_hover:{base:"mantine.colors.gray[1]",_dark:"mantine.colors.dark[5]/70"}}}),children:[y.jsx(sn,{gap:"0.5",children:y.jsxs(Ep,{openDelay:200,children:[y.jsx(c4,{label:l.full,offset:2,position:"top-start",children:y.jsx(ft,{component:"div","data-likec4-color":n.color,className:Tte,children:l.short})}),y.jsx(jm,{stroke:2.5,size:"11px",opacity:.65}),y.jsx(c4,{label:c.full,offset:2,position:"top-start",children:y.jsx(ft,{component:"div","data-likec4-color":o.color,className:Tte,children:c.short})}),d&&y.jsx(c4,{label:"Open dynamic view",children:y.jsx(br,{size:"sm",radius:"sm",variant:"default",onClick:h=>{h.stopPropagation(),a?.(d)},style:{alignSelf:"flex-end"},role:"button",children:y.jsx(Ri,{size:"80%",stroke:2})})}),i&&y.jsx(c4,{label:"Open source",children:y.jsx(br,{size:"sm",radius:"sm",variant:"default",onClick:h=>{h.stopPropagation(),i()},role:"button",children:y.jsx(zm,{size:"80%",stroke:2})})})]})}),y.jsx(zr,{className:XKe,children:r.title||"untitled"}),r.kind&&y.jsxs(sn,{gap:"2",children:[y.jsx(Vm,{children:"kind"}),y.jsx(ft,{size:"xs",className:be({userSelect:"all"}),children:r.kind})]}),r.technology&&y.jsxs(sn,{gap:"2",children:[y.jsx(Vm,{children:"technology"}),y.jsx(ft,{size:"xs",className:be({userSelect:"all"}),children:r.technology})]}),r.description.nonEmpty&&y.jsxs(y.Fragment,{children:[y.jsx(Vm,{children:"description"}),y.jsx(zr,{css:{paddingLeft:"2.5",py:"1.5",borderLeft:"2px dotted",borderLeftColor:{base:"mantine.colors.gray[3]",_dark:"mantine.colors.dark[4]"}},children:y.jsx(Wp,{value:r.description,fontSize:"sm"})})]}),u.length>0&&y.jsxs(y.Fragment,{children:[y.jsx(Vm,{children:"links"}),y.jsx(sn,{gap:"1",flexWrap:"wrap",children:u.map(h=>y.jsx(DT,{size:"sm",value:h},h.url))})]})]})}),Vm=Id("div",{base:{display:"block",fontSize:"xxs",fontWeight:500,userSelect:"none",lineHeight:"sm",color:"mantine.colors.dimmed"}}),c4=co.withProps({color:"dark",fz:"xs",label:"",children:null,offset:8,withinPortal:!1});function Ate(e,r,n){const o=e.isDeploymentRelation()?n.id:n.modelRef||"",a=e[r].id,i=g1(o)+a.slice(o.length);return{full:a,short:i}}function qm(){const e=hje();return E.useMemo(()=>e?{portalProps:{target:e},withinPortal:!0}:{withinPortal:!1},[e])}const tZe=wl({delays:{"open timeout":500,"close timeout":350},actions:{"update activatedBy":Zt({activatedBy:({context:e,event:r})=>{switch(!0){case r.type.includes("click"):return"click";case r.type.includes("mouseEnter"):return"hover";default:return e.activatedBy}}}),"keep dropdown open":Zt({activatedBy:"click"}),"update selected folder":Zt(({event:e})=>e.type==="breadcrumbs.click.root"?{selectedFolder:""}:(Tt(e,["breadcrumbs.click.folder","select.folder"]),{selectedFolder:e.folderPath})),"reset selected folder":Zt({selectedFolder:({context:e})=>e.viewModel?.folder.path??""}),"update inputs":Zt(({context:e,event:r})=>{Tt(r,"update.inputs");const n=r.inputs.viewModel?.id!==e.viewModel?.id;let o=e.selectedFolder;return r.inputs.viewModel?.folder.path.startsWith(o)||(o=r.inputs.viewModel?.folder.path??""),{view:r.inputs.view,viewModel:r.inputs.viewModel,selectedFolder:o,activatedBy:n?"hover":e.activatedBy}}),"reset search query":Zt({searchQuery:""}),"update search query":Zt(({event:e})=>(Tt(e,"searchQuery.change"),{searchQuery:e.value??""})),"emit navigateTo":GS(({event:e})=>(Tt(e,"select.view"),{type:"navigateTo",viewId:e.viewId}))},guards:{"was opened on hover":({context:e})=>e.activatedBy==="hover","has search query":({context:e})=>!fp(e.searchQuery),"search query is empty":({context:e})=>fp(e.searchQuery)}}).createMachine({id:"breadcrumbs",context:({input:e})=>({...e,breadcrumbs:[],activatedBy:"hover",selectedFolder:"",searchQuery:"",folderColumns:[]}),initial:"idle",entry:["update activatedBy","reset selected folder"],on:{"update.inputs":{actions:"update inputs"},"searchQuery.change":{actions:["update search query",fa({type:"searchQuery.changed"})]}},states:{idle:{id:"idle",on:{"breadcrumbs.mouseEnter.*":{target:"pending",actions:"update activatedBy"},"breadcrumbs.click.*":{target:"active",actions:"update activatedBy"}}},pending:{on:{"breadcrumbs.mouseEnter.*":{actions:"update activatedBy"},"breadcrumbs.mouseLeave.*":{target:"idle"},"breadcrumbs.click.*":{target:"active",actions:"update activatedBy"}},after:{"open timeout":{target:"active"}}},active:{tags:["active"],initial:"decide",on:{"dropdown.dismiss":{target:"#idle"},"breadcrumbs.mouseLeave":{guard:"was opened on hover",target:".closing"},"dropdown.mouseLeave":{guard:"was opened on hover",target:".closing"},"searchQuery.changed":{target:".decide"}},states:{decide:{always:[{guard:"has search query",target:"search"},{target:"opened"}]},opened:{on:{"searchQuery.changed":{guard:"has search query",actions:"keep dropdown open",target:"search"},"breadcrumbs.click.viewtitle":{actions:"reset selected folder"},"breadcrumbs.click.*":{actions:"update selected folder"},"select.folder":{actions:["keep dropdown open","update selected folder"]},"select.view":{actions:["emit navigateTo"]}}},search:{on:{"breadcrumbs.click.viewtitle":{actions:["reset search query","reset selected folder"],target:"opened"},"breadcrumbs.click.*":{actions:["reset search query","update selected folder"],target:"opened"},"select.view":{actions:["emit navigateTo"]}}},closing:{on:{"breadcrumbs.mouseEnter.*":{target:"decide"},"dropdown.mouseEnter":{target:"decide"}},after:{"close timeout":{target:"#idle"}}}}}}}),rZe=tZe,YA=E.createContext(null);YA.displayName="NavigationPanelActorSafeContext";const nZe=YA.Provider,GA=()=>{const e=E.useContext(YA);if(e===null)throw new Error("NavigationPanelActorRef is not found in the context");return e};function XA(e,r=an){const n=GA();return fn(n,e,r)}function oZe(e,r=an){return XA(n=>e(n.context),r)}function Fy(){const e=GA();return E.useMemo(()=>({actorRef:e,send:r=>e.send(r),selectFolder:r=>e.send({type:"select.folder",folderPath:r}),selectView:r=>e.send({type:"select.view",viewId:r}),isOpened:()=>e.getSnapshot().hasTag("active"),clearSearch:()=>e.send({type:"searchQuery.change",value:""}),closeDropdown:()=>e.send({type:"dropdown.dismiss"})}),[e])}const Rte=co.withProps({color:"dark",fz:"xs",openDelay:600,closeDelay:120,label:"",children:null,offset:8,withinPortal:!1}),Nte=()=>y.jsx(Ba,{component:Br,variant:"transparent",size:16,className:be({display:{base:"none","@/md":"flex"},color:{base:"mantine.colors.gray[5]",_dark:"mantine.colors.dark[3]"}}),children:y.jsx(qd,{})});q2.withProps({separator:y.jsx(Nte,{}),separatorMargin:4});const Ec=E.forwardRef(({variant:e="default",className:r,disabled:n=!1,type:o,...a},i)=>y.jsx(br,{size:"md",variant:"transparent",radius:"sm",component:Ni,...!n&&{whileHover:{scale:1.085},whileTap:{scale:1,translateY:1}},disabled:n,...a,className:et(r,CT({variant:e,type:o})),ref:i})),d4=o0({base:{fontSize:"sm",fontWeight:"500",transition:"fast",color:{base:"likec4.panel.action",_hover:"likec4.panel.action.hover"}},variants:{truncate:{true:{truncate:!0}},dimmed:{true:{color:{base:"likec4.panel.text.dimmed",_hover:"likec4.panel.action"}}}}}),aZe=E.forwardRef((e,r)=>y.jsxs("svg",{ref:r,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 222 56",...e,children:[y.jsx("path",{fill:"#5E98AF",d:"M33.95 33.78V0H2.37A2.37 2.37 0 0 0 0 2.35V33.9h33.95v-.12ZM38.57 33.78H55.6v-14.6c0-1.3-1.06-2.35-2.36-2.35H38.57v16.95ZM33.95 38.37H17.04v14.6c0 1.29 1.06 2.35 2.36 2.35h14.67V38.37h-.12ZM38.57 38.37v16.95h14.67c1.3 0 2.36-1.06 2.36-2.36v-14.6H38.57Z"}),y.jsx("path",{className:be({fill:"[#FCFBF7]",_light:{fill:"[#222221]"}}),d:"M71.61 12.08c-.06 3.61.3 29.95.23 31.87 0 1.8 0 3.6.06 5.41 0 .3.18.58.47.58 4.1.18 8.13-.17 12.22-.11 1.34.05 2.69 0 3.97 0 1.29-.06 1.4-.59 1.35-1.63-.06-1.63-.06-3.08-.06-4.65-.06-.82-.53-1.11-1.23-1.11-2.4.06-4.8-.06-7.19.06-.4.06-.82.06-1.23.06-.7-.06-.87-.24-.93-1v-.86c-.18-4.83.17-9.83.17-14.66-.06-4.07 0-7.73-.06-11.34 0-1.57 0-3.14-.05-4.65-.06-.93 0-1.92-.24-2.85-.11-.35-.29-.81-.7-.81h-5.5c-.93 0-1.22.64-1.28 1.57v4.12ZM103.81 35c-.17-6.63-.1-13.67-.05-20.24 0-2.04-.12-4.25-.12-6.28 0-2.21-.87-2.1-2.04-2.15-1.7-.06-2.46-.06-4.15-.06-1.11-.06-1.58.23-1.58 1.34 0 5.7-.18 21.8-.12 24.13.06 2.33.3 12.91.18 15.24-.06.81 0 1.62.06 2.44.05.29.23.58.7.58 1.93-.12 3.74-.12 5.67-.17.7-.06 1.28-.24 1.58-1 .05-.4-.12-11.04-.12-13.83Zm13.92 4.47c0-2.03-.3-7.56-.23-8.72 0-.17.11-.4.17-.4.12 0 .35.11.41.17 1.87 2.44 10.64 19.36 11.7 19.42.28.06.58.06.87.06 1.99-.12 3.74 0 5.73 0 2.04 0 .7-1.98.35-2.5-.53-.76-7.48-13.14-7.9-13.9-1.16-1.98-2.16-4.13-3.32-6.05-.12-.23-.24-.58-.18-.81.12-.7.3-1.34.59-1.98a93.18 93.18 0 0 1 4.55-8.14c1.88-2.97 2.93-4.83 4.45-7.5.35-.64.58-1.34.82-2.1.05-.29-.18-.58-.53-.58-1.11-.05-5.15 0-6.43 0-.59 0-1.17.12-1.46.64-.76 1.46-8.6 15.7-9.35 16.98-.06.12-.24.18-.41.18 0 0-.12-.18-.12-.3-.06-3.25.53-13.9.4-16.04-.05-1.28-.28-1.4-1.57-1.46-1.4-.05-3.33-.05-4.73-.05-1.3 0-1.4.7-1.58 1.62-.06.18-.06 5.64-.06 8.09 0 3.54-.3 25.76.11 32.8 0 .7.18 1.1.77 1.1 1.57-.12 3.91 0 5.49 0 1.11 0 1.29-.12 1.29-1.98 0-2.5.23-4.77.23-7.85 0-.23-.06-.46-.06-.7Zm25.66-1.4h-.06c0 1.46-.05 2.97 0 4.49.06 1.86.18 3.72.3 5.58 0 .64.17.81.76.93 1.22.29 2.4.35 3.62.35 3.16-.12 6.31.11 9.47 0 1.29-.06 1.87.06 3.16-.18 1.17-.23 1.58-.87 1.58-2.61-.12-1.1-.06-1.57-.06-2.91 0-1.92-1.35-2.56-2.52-2.5-.81.06-4.73-.06-6.31-.06-2.63.06-2.22.4-2.22-2.33 0-2.2.06-5.05.06-7.32 0-1.22.11-1.63 1.28-1.63h7.31c1.17.17 1.99-.64 1.99-1.86 0-1.22.12-1.28.12-2.5l-.18-1.75c-.12-.99-.47-1.33-1.46-1.33-.64 0-1.29.05-1.93.11-2.52.18-3.68-.17-6.14 0-.82 0-.93-.11-1-.87-.23-2.27 0-4.77.24-7.04.06-.93.3-1.1 1.17-1.16l8.24-.06c1.11-.11 1.46-.06 1.4-1.16-.11-1.69.06-3.43-.11-5.12-.12-.93-.41-1.1-1.46-1.1-1.76.05-2.17.05-3.92.17-1.75.06-8.77.06-10.46.06-2.46 0-2.63-.18-2.7 2.8-.1 2.32-.05 4.7-.05 7.09 0 4.07-.23 18.66-.12 21.92Zm47.76-24.82c.06-1.92 0-3.5 0-5.35 0-2.15-3.92-1.92-5.32-1.86a18.95 18.95 0 0 0-15.08 9.77c-.82 1.57-1.4 3.2-1.81 4.88a34 34 0 0 0-.59 12.15c.41 3.78 1.4 7.56 3.74 10.59 4.04 5.3 11.46 7.15 17.83 6.16.3-.06.59-.11.82-.29.18-.11.35-.35.35-.58l.18-3.31c.06-1.05 0-1 0-2.04 0-1.4-2.93-.35-4.74-.35-1.75 0-3.62-.06-5.2-.87-2.8-1.57-4.38-4.71-5.26-7.68-1-3.2-1.23-6.63-.64-9.88.7-4.25 2.74-9.13 7.25-10.59 2.57-.87 5.31-.58 7.89-.29.35.06.58-.17.58-.46Zm26.77 15.3c.06-2.5 0-14.84 0-18.38.06-.82 0-1.63-.11-2.45-.06-.99-.24-1.28-1.29-1.33h-4.44c-.82 0-1.35.4-1.82 1.27-1.34 3.2-10.75 24.02-12.15 26.58-.53.99-1 1.63-1 2.68v4.24c0 .76-.06 1.28 1.23 1.28l11.1-.06c1.47 0 1.47.3 1.47 1.1 0 .88-.12 4.9-.12 5.3 0 .58.12 1.16 1.23 1.16h5.08c1.23 0 1.23-.7 1.23-2.03.06-1.17-.06-3.5-.06-4.66 0-.93.18-.98 1.76-.98 1.22 0 1.75-.12 1.75-.88.06-1.57 0-2.67 0-4.42 0-1.04-.93-.98-2.92-.98-.65 0-.7-.18-.7-1.05-.12-1.8-.24-4.6-.24-6.4Zm-7.25-5.94c-.05.7-.11 10.82-.11 12.27-.06.81-.24 1.05-1 1.1-1.93.06-3.85.06-5.78.06-.47 0-.65-.4-.41-.87.23-.4 4.85-11.57 6.13-14.48.18-.17.24-.35.41-.52.18-.12.41-.18.59-.23.06 0 .23.29.23.46 0 .76-.06 1.51-.06 2.21Z"})]})),iZe=E.forwardRef((e,r)=>y.jsx("svg",{ref:r,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 56 56",...e,children:y.jsx("path",{fill:"#5E98AF",d:"M33.95 33.78V0H2.37A2.37 2.37 0 0 0 0 2.35V33.9h33.95v-.12ZM38.57 33.78H55.6v-14.6c0-1.3-1.06-2.35-2.36-2.35H38.57v16.95ZM33.95 38.37H17.04v14.6c0 1.29 1.06 2.35 2.36 2.35h14.67V38.37h-.12ZM38.57 38.37v16.95h14.67c1.3 0 2.36-1.06 2.36-2.36v-14.6H38.57Z"})})),sZe=()=>{const e=Fy(),{onBurgerMenuClick:r}=Fm();return y.jsx(Br,{layout:"position",children:y.jsxs(Er,{onMouseEnter:()=>{e.send({type:"breadcrumbs.mouseEnter.root"})},onMouseLeave:()=>{e.send({type:"breadcrumbs.mouseLeave.root"})},onClick:n=>{n.stopPropagation(),r&&e.isOpened()&&setTimeout(()=>{r()},100),e.send({type:"breadcrumbs.click.root"})},className:et("mantine-active",Zn({padding:"0.5",width:{base:"[20px]","@/md":"[64px]"}})),children:[y.jsx(aZe,{className:be({display:{base:"none","@/md":"block"}})}),y.jsx(iZe,{className:be({display:{base:"block","@/md":"none"}})})]})})},lZe=[["path",{d:"M5 12l14 0",key:"svg-0"}],["path",{d:"M5 12l6 6",key:"svg-1"}],["path",{d:"M5 12l6 -6",key:"svg-2"}]],cZe=Nt("outline","arrow-left","ArrowLeft",lZe),dZe=()=>{const e=Qt(),{hasStepBack:r,hasStepForward:n}=vs(o=>({hasStepBack:o.navigationHistory.currentIndex>0,hasStepForward:o.navigationHistory.currentIndex{o.stopPropagation(),e.navigate("back")},children:y.jsx(cZe,{size:14})}),y.jsx(Ec,{disabled:!n,onClick:o=>{o.stopPropagation(),e.navigate("forward")},children:y.jsx(jm,{size:14})})]})},uZe=[["path",{d:"M9 15l6 -6",key:"svg-0"}],["path",{d:"M11 6l.463 -.536a5 5 0 0 1 7.071 7.072l-.534 .464",key:"svg-1"}],["path",{d:"M13 18l-.397 .534a5.068 5.068 0 0 1 -7.127 0a4.972 4.972 0 0 1 0 -7.071l.524 -.463",key:"svg-2"}]],pZe=Nt("outline","link","Link",uZe),hZe=({context:e})=>{const r=e.view;return{id:r.id,title:e.viewModel?.title??(r.title&&kE(r.title))??"Untitled View",description:e.viewModel?.description??or.from(r.description),tags:r.tags??[],links:r.links??[]}},fZe=e=>{const[r,n]=E.useState(!1),o=XA(hZe,lt),a=qm();return y.jsxs(Rr,{position:"bottom-end",shadow:"xl",clickOutsideEvents:["pointerdown","mousedown","click"],offset:{mainAxis:4},opened:r,onChange:n,...a,...e,children:[y.jsx(mZe,{linksCount:o.links.length,onOpen:()=>n(!0)}),r&&y.jsx(gZe,{data:o,onClose:()=>n(!1)})]})},mZe=({linksCount:e,onOpen:r})=>y.jsx(Rr.Target,{children:y.jsxs(Er,{component:Ni,layout:"position",whileTap:{scale:.95,translateY:1},onClick:n=>{n.stopPropagation(),r()},className:et("group",Zn({gap:"2",paddingInline:"2",paddingBlock:"1",rounded:"sm",userSelect:"none",cursor:"pointer",color:{base:"likec4.panel.action",_hover:"likec4.panel.action.hover"},backgroundColor:{_hover:"likec4.panel.action.bg.hover"},display:{base:"none","@/xs":"flex"}}),""),children:[y.jsx(DA,{size:16,stroke:1.8}),e>0&&y.jsxs(sn,{gap:"[1px]",children:[y.jsx(pZe,{size:14,stroke:2}),y.jsx(zr,{css:{fontSize:"11px",fontWeight:600,lineHeight:1,opacity:.8},children:e})]})]})}),Dte=Id("div",{base:{fontSize:"xs",color:"mantine.colors.dimmed",fontWeight:500,userSelect:"none",mb:"xxs"}}),gZe=({data:{id:e,title:r,description:n,tags:o,links:a},onClose:i})=>{const s=Qt();return Fa("paneClick",i),Fa("nodeClick",i),y.jsxs(Rr.Dropdown,{className:et("nowheel nopan nodrag",Z0({margin:"xs",layerStyle:"likec4.dropdown",gap:"md",padding:"md",paddingBottom:"lg",pointerEvents:"all",maxWidth:"calc(100cqw - 52px)",minWidth:"200px",maxHeight:"calc(100cqh - 100px)",width:"max-content",cursor:"default",overflow:"auto",overscrollBehavior:"contain","@/sm":{minWidth:400,maxWidth:550},"@/lg":{maxWidth:700}})),children:[y.jsxs("section",{children:[y.jsx(ft,{component:"div",fw:500,size:"xl",lh:"sm",children:r}),y.jsxs(sn,{alignItems:"flex-start",mt:"1",children:[y.jsx(yZe,{label:"id",value:e}),y.jsx(sn,{gap:"xs",flexWrap:"wrap",children:o.map(l=>y.jsx(Lw,{tag:l,cursor:"pointer",onClick:c=>{c.stopPropagation(),s.openSearch(`#${l}`)}},l))})]})]}),a.length>0&&y.jsxs("section",{className:Zn({alignItems:"baseline"}),children:[y.jsx(Dte,{children:"Links"}),y.jsx(sn,{gap:"xs",flexWrap:"wrap",children:a.map((l,c)=>y.jsx(DT,{value:l},`${c}-${l.url}`))})]}),n.isEmpty&&y.jsx(ft,{component:"div",fw:500,size:"xs",c:"dimmed",style:{userSelect:"none"},children:"No description"}),n.nonEmpty&&y.jsxs("section",{children:[y.jsx(Dte,{children:"Description"}),y.jsx(Wp,{value:n,fontSize:"sm",emptyText:"No description",className:be({userSelect:"all"})})]})]})},yZe=({label:e,value:r})=>y.jsxs(sn,{gap:"0.5",children:[y.jsx(bZe,{children:e}),y.jsx(vl,{size:"sm",radius:"sm",variant:"light",color:"gray",tt:"none",fw:500,classNames:{root:be({width:"max-content",overflow:"visible",px:"1",color:{_dark:"mantine.colors.gray[4]",_light:"mantine.colors.gray[8]"}}),label:be({overflow:"visible"}),section:be({opacity:.5,userSelect:"none",marginInlineEnd:"0.5"})},children:r})]}),bZe=Id("div",{base:{color:"mantine.colors.dimmed",fontWeight:500,fontSize:"xxs",userSelect:"none"}}),vZe=()=>{const e=Jw(),{enableVscode:r}=_r(),{onOpenSource:n}=Fm();return r?y.jsx(Rte,{label:"Open View Source",children:y.jsx(Ec,{onClick:o=>{o.stopPropagation(),n?.({view:e})},children:y.jsx(zm,{style:{width:"60%",height:"60%"}})})}):null},xZe=[["path",{d:"M5 13a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v6a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-6z",key:"svg-0"}],["path",{d:"M11 16a1 1 0 1 0 2 0a1 1 0 0 0 -2 0",key:"svg-1"}],["path",{d:"M8 11v-4a4 4 0 1 1 8 0v4",key:"svg-2"}]],wZe=Nt("outline","lock","Lock",xZe),kZe=[["path",{d:"M3 13a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v6a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2z",key:"svg-0"}],["path",{d:"M9 16a1 1 0 1 0 2 0a1 1 0 0 0 -2 0",key:"svg-1"}],["path",{d:"M13 11v-4a4 4 0 1 1 8 0v4",key:"svg-2"}]],$te=Nt("outline","lock-open-2","LockOpen2",kZe),_Ze=e=>({visible:e.features.enableReadOnly!==!0&&(e.view._type!=="dynamic"||e.dynamicViewVariant!=="sequence"),isReadOnly:e.toggledFeatures.enableReadOnly??e.features.enableReadOnly}),EZe=()=>{const{visible:e,isReadOnly:r}=vs(_Ze),n=Qt();return y.jsx(Qn,{mode:"popLayout",children:e&&y.jsxs(Er,{component:Ni,layout:"position",onClick:o=>{o.stopPropagation(),n.toggleFeature("ReadOnly")},initial:{opacity:0,scale:.6},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.6},whileTap:{translateY:1},className:et("group",Zn({gap:"0.5",paddingInline:"xxs",paddingBlock:"xxs",rounded:"sm",userSelect:"none",cursor:"pointer",color:{base:"likec4.panel.action",_hover:"likec4.panel.action.hover"},backgroundColor:{_hover:"likec4.panel.action.bg.hover"}})),children:[r?y.jsx(wZe,{size:14,stroke:2}):y.jsx($te,{size:14,stroke:2}),r&&y.jsx(Br,{className:be({fontSize:"11px",fontWeight:600,lineHeight:1,opacity:.8}),children:"Edit"})]})})},SZe=[["path",{d:"M6 4v16a1 1 0 0 0 1.524 .852l13 -8a1 1 0 0 0 0 -1.704l-13 -8a1 1 0 0 0 -1.524 .852z",key:"svg-0"}]],CZe=Nt("filled","player-play-filled","PlayerPlayFilled",SZe),Pte=E.forwardRef((e,r)=>y.jsx(Kn,{variant:"filled",size:"xs",fw:"500",...e,ref:r,component:Ni,whileTap:{scale:.95},layout:"position",layoutId:"trigger-dynamic-walkthrough",className:be({flexShrink:0})}));function TZe(){const{enableReadOnly:e,enableCompareWithLatest:r}=_r(),n=Qt(),o=Fy();let a="Start Dynamic View Walkthrough";switch(!0){case!e:a="Walkthrough not available in Edit mode";break;case r:a="Walkthrough not available when Compare is active";break}return y.jsx(Rte,{label:a,children:y.jsx(Pte,{onClick:i=>{i.stopPropagation(),o.closeDropdown(),n.startWalkthrough()},initial:{opacity:0,scale:.6,translateX:-10},animate:{opacity:1,scale:1,translateX:0},exit:{opacity:0,translateX:-20},size:"compact-xs",h:26,disabled:!e||r,classNames:{label:be({display:{base:"none","@/md":"inherit"}}),section:be({marginInlineStart:{base:"0","@/md":"2"}})},rightSection:y.jsx(CZe,{size:10}),children:"Start"})})}const AZe=E.forwardRef(({value:e,onChange:r},n)=>y.jsx(Br,{ref:n,layout:"position",children:y.jsx(um,{size:"xs",value:e,component:Br,onChange:o=>{at(o==="diagram"||o==="sequence","Invalid dynamic view variant"),r(o)},classNames:{label:be({fontSize:"xxs"})},data:[{value:"diagram",label:"Diagram"},{value:"sequence",label:"Sequence"}]})}));function RZe(){const e=vs(n=>n.dynamicViewVariant),r=Qt();return y.jsxs(Qn,{children:[y.jsx(AZe,{value:e,onChange:n=>{r.switchDynamicViewVariant(n)}}),y.jsx(TZe,{},"trigger-dynamic-walkthrough")]})}const Mte=E.memo(()=>{const{enableSearch:e,enableCompareWithLatest:r}=_r(),n=Qt(),o=zf();return y.jsx(Qn,{children:e&&!r&&y.jsxs(Er,{component:Ni,layout:"position",onClick:a=>{a.stopPropagation(),n.openSearch()},whileTap:{scale:.95,translateY:1},className:et("group",Zn({gap:"xxs",paddingInline:"sm",paddingBlock:"xxs",userSelect:"none",layerStyle:"likec4.panel.action",display:{base:"none","@/md":"flex"}})),children:[y.jsx(VA,{size:14,stroke:2.5}),y.jsx(zr,{css:{fontSize:"11px",fontWeight:600,lineHeight:1,opacity:.8,whiteSpace:"nowrap"},children:o?"⌘ + K":"Ctrl + K"})]})})});Mte.displayName="SearchControl";const NZe=({context:e})=>{const r=e.view.drifts??null;return!e.features.enableCompareWithLatest||!r?{isEnabled:!1,isEditable:!1,isActive:!1,drifts:[],layout:e.view._layout??"auto"}:{isEnabled:!0,isEditable:!e.features.enableReadOnly,isActive:e.toggledFeatures.enableCompareWithLatest===!0,drifts:r,layout:e.view._layout??"auto"}};function KA(){const e=zp(),r=fn(e,NZe,an),n=kt(i=>{if(!r.isEnabled){console.warn("Compare with latest feature is not enabled");return}e.send({type:"emit.onLayoutTypeChange",layoutType:i})}),o=kt(i=>{if(!r.isEnabled){console.warn("Compare with latest feature is not enabled");return}const s=i?i==="on":!r.isActive;r.isActive&&!s&&r.layout==="auto"&&n("manual"),e.send({type:"toggle.feature",feature:"CompareWithLatest",forceValue:s})}),a=kt(()=>{if(!r.isEnabled){console.warn("Compare with latest feature is not enabled");return}e.send({type:"layout.resetManualLayout"})});return[r,{toggleCompare:o,switchLayout:n,resetManualLayout:a}]}const DZe=[["path",{d:"M12 9v4",key:"svg-0"}],["path",{d:"M10.363 3.591l-8.106 13.534a1.914 1.914 0 0 0 1.636 2.871h16.214a1.914 1.914 0 0 0 1.636 -2.87l-8.106 -13.536a1.914 1.914 0 0 0 -3.274 0z",key:"svg-1"}],["path",{d:"M12 16h.01",key:"svg-2"}]],zte=Nt("outline","alert-triangle","AlertTriangle",DZe),Ite=E.memo(()=>{const[e,{toggleCompare:r}]=KA(),n=qm(),{drifts:o,isActive:a,isEnabled:i}=e;return y.jsx(Qn,{propagate:!0,children:i&&!a&&y.jsxs(cm,{position:"bottom-start",openDelay:600,closeDelay:200,floatingStrategy:"absolute",offset:{mainAxis:4,crossAxis:-22},...n,children:[y.jsx(cS,{children:y.jsx(Er,{component:Ni,layout:"position",onClick:s=>{r()},whileTap:{scale:.95,translateY:1},className:et("group",CT({variant:"filled",type:"warning"}),Zn({gap:"xxs",padding:"1.5",rounded:"sm",userSelect:"none",cursor:"pointer",fontSize:"xs",fontWeight:600})),children:a?y.jsx(y.Fragment,{children:"Stop Compare"}):y.jsx(zte,{size:18})})}),y.jsx(sS,{p:"0",children:y.jsxs(Z2,{color:"orange",withBorder:!1,withCloseButton:!1,title:"View is out of sync",children:[y.jsx(ft,{mt:2,size:"sm",lh:"xs",children:"Model has changed since this view was last updated."}),y.jsxs(ft,{mt:4,size:"sm",lh:"xs",children:["Detected changes:",o.map(s=>y.jsxs(E.Fragment,{children:[y.jsx("br",{}),y.jsxs("span",{children:["- ",s]})]},s))]}),y.jsx(Kn,{mt:"xs",size:"compact-sm",variant:"default",onClick:s=>{s.stopPropagation(),r()},children:"Compare with current state"})]})})]})})});Ite.displayName="ManualLayoutWarning";const $Ze=({context:e})=>{const r=e.view,n=e.viewModel?.folder;return{folders:!n||n.isRoot?[]:n.breadcrumbs.map(o=>({folderPath:o.path,title:o.title})),viewId:r.id,viewTitle:e.viewModel?.title??(r.title&&kE(r.title))??"Untitled View",isDynamicView:(e.viewModel?._type??r._type)==="dynamic"}},Ote=E.memo(()=>{const e=Fy(),{enableNavigationButtons:r,enableDynamicViewWalkthrough:n}=_r(),{folders:o,viewTitle:a,isDynamicView:i}=fn(e.actorRef,$Ze,lt),s=o.flatMap(({folderPath:c,title:d},u)=>[y.jsx(Er,{component:Ni,className:et(d4({dimmed:!0,truncate:!0}),"mantine-active",be({userSelect:"none",maxWidth:"200px",display:{base:"none","@/md":"block"}})),initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},title:d,onMouseEnter:()=>e.send({type:"breadcrumbs.mouseEnter.folder",folderPath:c}),onMouseLeave:()=>e.send({type:"breadcrumbs.mouseLeave.folder",folderPath:c}),onClick:h=>{h.stopPropagation(),e.send({type:"breadcrumbs.click.folder",folderPath:c})},children:d},c),y.jsx(Nte,{},`separator-${u}`)]),l=y.jsx(Er,{component:Ni,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:et("mantine-active",d4({truncate:!0}),be({userSelect:"none"})),title:a,onMouseEnter:()=>e.send({type:"breadcrumbs.mouseEnter.viewtitle"}),onMouseLeave:()=>e.send({type:"breadcrumbs.mouseLeave.viewtitle"}),onClick:c=>{c.stopPropagation(),e.send({type:"breadcrumbs.click.viewtitle"})},children:a},"view-title");return y.jsxs(Qn,{propagate:!0,mode:"popLayout",children:[y.jsx(sZe,{},"burger-button"),r&&y.jsx(dZe,{},"nav-buttons"),y.jsxs(Br,{layout:"position",className:Zn({gap:"1",flexShrink:1,flexGrow:1,overflow:"hidden"}),children:[s,l]},"breadcrumbs"),y.jsxs(Br,{layout:"position",className:Zn({gap:"0.5",flexGrow:0,_empty:{display:"none"}}),children:[y.jsx(fZe,{onOpen:()=>e.closeDropdown()}),y.jsx(vZe,{}),y.jsx(EZe,{})]},"actions"),n&&i&&y.jsx(RZe,{},"dynamic-view-controls"),y.jsx(Mte,{},"search-control"),y.jsx(Ite,{},"outdated-manual-layout-warning")]})});Ote.displayName="NavigationPanelControls";const ZA=E.forwardRef(({className:e,truncateLabel:r=!0,...n},o)=>y.jsx(mS,{...n,component:"button",classNames:dWe({truncateLabel:r}),className:et("group","mantine-active",e),ref:o}));ZA.displayName="NavigationLink";const PZe=E.createContext(null),MZe=[],zZe=()=>{},IZe={projects:MZe,onProjectChange:zZe};function OZe(){return E.useContext(PZe)??IZe}function jZe(){const e=E.useContext(K0);if(!e)throw new Error("No LikeC4ModelContext found");return e.projectId}const LZe=E.memo(e=>{const{projects:r,onProjectChange:n}=OZe(),o=jZe();return r.length<=1?null:y.jsxs(sn,{gap:"0.5",alignItems:"baseline",children:[y.jsx(zr,{css:{fontWeight:"400",fontSize:"xxs",color:"likec4.panel.text.dimmed",userSelect:"none"},children:"Project"}),y.jsxs(hn,{withinPortal:!1,shadow:"md",position:"bottom-start",offset:{mainAxis:2},children:[y.jsx(G2,{children:y.jsx(Kn,{tabIndex:-1,autoFocus:!1,variant:"subtle",size:"compact-xs",color:"gray",classNames:{root:be({fontWeight:"400",fontSize:"xxs",height:"auto",lineHeight:1.1,color:{_light:"mantine.colors.gray[9]"}}),section:be({'&:is([data-position="right"])':{marginInlineStart:"1"}})},rightSection:y.jsx(PT,{opacity:.5,size:12,stroke:1.5}),children:o})}),y.jsx(q0,{children:r.map(({id:a,title:i})=>y.jsx(U0,{onClick:s=>{if(o===a){s.stopPropagation();return}n(a)},children:i??a},a))})]})]})}),BZe=[["path",{d:"M10.52 2.614a2.095 2.095 0 0 1 2.835 -.117l.126 .117l7.905 7.905c.777 .777 .816 2.013 .117 2.836l-.117 .126l-7.905 7.905a2.094 2.094 0 0 1 -2.836 .117l-.126 -.117l-7.907 -7.906a2.096 2.096 0 0 1 -.115 -2.835l.117 -.126l7.905 -7.905zm5.969 9.535l.01 -.116l-.003 -.12l-.016 -.114l-.03 -.11l-.044 -.112l-.052 -.098l-.076 -.105l-.07 -.081l-3.5 -3.5l-.095 -.083a1 1 0 0 0 -1.226 0l-.094 .083l-.083 .094a1 1 0 0 0 0 1.226l.083 .094l1.792 1.793h-5.085l-.117 .007a1 1 0 0 0 0 1.986l.117 .007h5.085l-1.792 1.793l-.083 .094a1 1 0 0 0 1.403 1.403l.094 -.083l3.5 -3.5l.097 -.112l.05 -.074l.037 -.067l.05 -.112l.023 -.076l.025 -.117z",key:"svg-0"}]],FZe=Nt("filled","direction-sign-filled","DirectionSignFilled",BZe),HZe=[["path",{d:"M8.243 7.34l-6.38 .925l-.113 .023a1 1 0 0 0 -.44 1.684l4.622 4.499l-1.09 6.355l-.013 .11a1 1 0 0 0 1.464 .944l5.706 -3l5.693 3l.1 .046a1 1 0 0 0 1.352 -1.1l-1.091 -6.355l4.624 -4.5l.078 -.085a1 1 0 0 0 -.633 -1.62l-6.38 -.926l-2.852 -5.78a1 1 0 0 0 -1.794 0l-2.853 5.78z",key:"svg-0"}]],VZe=Nt("filled","star-filled","StarFilled",HZe),qZe=[["path",{d:"M9 3a1 1 0 0 1 .608 .206l.1 .087l2.706 2.707h6.586a3 3 0 0 1 2.995 2.824l.005 .176v8a3 3 0 0 1 -2.824 2.995l-.176 .005h-14a3 3 0 0 1 -2.995 -2.824l-.005 -.176v-11a3 3 0 0 1 2.824 -2.995l.176 -.005h4z",key:"svg-0"}]],UZe=Nt("filled","folder-filled","FolderFilled",qZe),jte=N0({siblingSelector:"[data-likec4-focusable]",parentSelector:"[data-likec4-breadcrumbs-dropdown]",activateOnFocus:!1,loop:!0,orientation:"vertical"});function WZe(e){return e.context.searchQuery.trim().length>=2}const Lte=E.memo(()=>{const e=Fy(),r=XA(WZe);Fa("paneClick",()=>{e.closeDropdown()}),Fa("nodeClick",()=>{e.closeDropdown()}),Fa("edgeClick",()=>{e.closeDropdown()});const n=C$e(o=>{e.send({type:"searchQuery.change",value:o})},250);return y.jsxs(fc,{className:et("nowheel",Z0({layerStyle:"likec4.dropdown",gap:"xs",pointerEvents:"all"})),"data-likec4-breadcrumbs-dropdown":!0,onMouseLeave:()=>e.send({type:"dropdown.mouseLeave"}),onMouseEnter:()=>e.send({type:"dropdown.mouseEnter"}),children:[y.jsx(LZe,{}),y.jsx(sn,{gap:"xs",children:y.jsx(oQe,{defaultValue:e.actorRef.getSnapshot().context.searchQuery,onChange:n})}),y.jsx(pa,{scrollbars:"x",type:"auto",offsetScrollbars:"present",classNames:{root:be({maxWidth:["calc(100vw - 50px)","calc(100cqw - 50px)"]})},styles:{viewport:{overscrollBehavior:"none"}},children:r?y.jsx(XZe,{}):y.jsx(tQe,{})})]})});Lte.displayName="NavigationPanelDropdown";function YZe(e){return L3(e.context.searchQuery)}const GZe=eO($a),XZe=E.memo(()=>{const e=Ko(),r=Fy(),n=fn(r.actorRef,YZe),o=E.useDeferredValue(n),a=o.includes($a),i=a?o.split($a):o,[s,l]=E.useState([]);return E.useEffect(()=>{l(c=>{const d=En(e.views(),Qu(u=>a&&u.$view.title?L3(u.$view.title).toLowerCase().includes(o):u.id.toLowerCase().includes(o)||!!u.title?.toLowerCase().includes(o)),V6e(20),K1(),GNe((u,h)=>GZe(u.folder.path,h.folder.path)));return an(d,c)?c:d})},[e,o,a]),s.length===0?y.jsx("div",{children:"no results"}):y.jsx(pa,{scrollbars:"xy",offsetScrollbars:!1,className:be({width:"100%",maxWidth:["calc(100vw - 250px)","calc(100cqw - 250px)"],maxHeight:["calc(100vh - 200px)","calc(100cqh - 200px)"]}),children:y.jsx(Ap,{gap:"0.5",children:s.map(c=>y.jsx(ZZe,{view:c,highlight:i,onClick:d=>{d.stopPropagation(),r.selectView(c.id)},"data-likec4-focusable":!0,onKeyDown:jte},c.id))})})}),KZe=Zn({gap:"xxs",rounded:"sm",px:"xs",py:"xxs",_hover:{backgroundColor:{base:"mantine.colors.gray[1]",_dark:"mantine.colors.dark[5]"}},_focus:{outline:"none",color:"mantine.colors.primary.lightColor!",backgroundColor:"mantine.colors.primary.lightHover!"}}),Bte=be({_groupFocus:{color:"[inherit!]",transition:"none"}});function ZZe({view:e,highlight:r,...n}){const o=e.folder,a=Hte[e.id==="index"?"index":e._type],i=y.jsx(gc,{component:"div",className:et(Bte,d4({truncate:!0}),be({"& > mark":{backgroundColor:{base:"mantine.colors.yellow[2]/90",_dark:"mantine.colors.yellow[5]/80",_groupFocus:"[transparent]"},color:{_groupFocus:"[inherit!]"}}})),maw:350,highlight:r,children:e.title??e.id},e.id),s=et(n.className,"group",KZe);if(o.isRoot)return y.jsxs(Er,{...n,className:s,children:[a,i]});const l=o.breadcrumbs.map(c=>y.jsx(gc,{component:"div",className:et(be({_groupHover:{color:"mantine.colors.dimmed"}}),Bte,d4({dimmed:!0,truncate:!0})),maw:170,highlight:M7(r)?r:[],children:c.title},c.path));return l.push(y.jsxs(sn,{gap:"[4px]",children:[a,i]})),y.jsxs(Er,{...n,className:s,children:[Fte,y.jsx(q2,{separator:y.jsx(qd,{size:12,stroke:1.5}),separatorMargin:3,children:l})]})}const QZe=y.jsx(qd,{size:12,stroke:1.5,className:"mantine-rotate-rtl"}),Fte=y.jsx(UZe,{size:16,className:be({opacity:{base:.3,_groupHover:.5,_groupActive:.5,_groupFocus:.5}})}),u4=be({opacity:{base:.3,_dark:.5,_groupHover:.8,_groupActive:.8,_groupFocus:.8}}),Hte={index:y.jsx(VZe,{size:16,className:u4}),element:y.jsx(Ri,{size:18,stroke:2,className:u4}),deployment:y.jsx(MA,{size:16,stroke:1.5,className:u4}),dynamic:y.jsx(FZe,{size:18,className:u4})},JZe=pa.withProps({scrollbars:"y",className:be({maxHeight:["calc(100vh - 160px)","calc(100cqh - 160px)"]})});function Vte(e,r){return{folderPath:e.path,items:[...e.folders.map(n=>({type:"folder",folderPath:n.path,title:n.title,selected:r.selectedFolder.startsWith(n.path)})),...e.views.map(n=>({type:"view",viewType:n.id==="index"?"index":n._type,viewId:n.id,title:n.title??n.id,description:n.description.nonEmpty&&n.description.text||null,selected:n.id===r.viewModel?.id}))]}}const eQe=e=>{const r=e.viewModel;if(!r)return[];const n=r.$model,o=[Vte(n.rootViewFolder,e)],a=n.viewFolder(e.selectedFolder);if(!a.isRoot)for(const i of a.breadcrumbs)o.push(Vte(i,e));return o},tQe=E.memo(()=>{const e=oZe(eQe,lt);return y.jsx(sn,{gap:"xs",alignItems:"stretch",children:e.flatMap((r,n)=>[n>0&&y.jsx(kp,{orientation:"vertical"},"divider"+n),y.jsx(rQe,{data:r,isLast:n>0&&n==e.length-1},r.folderPath)])})});function rQe({data:e,isLast:r}){const n=E.useRef(null),o=GA(),a=i=>s=>{s.stopPropagation(),i.type==="folder"?o.send({type:"select.folder",folderPath:i.folderPath}):o.send({type:"select.view",viewId:i.viewId})};return LEe(()=>{r&&n.current&&n.current.scrollIntoView({block:"nearest",inline:"nearest",behavior:"smooth"})}),y.jsx(zr,{mb:"1",ref:n,children:y.jsx(JZe,{children:y.jsx(Ap,{gap:"0.5",children:e.items.map((i,s)=>y.jsx(nQe,{columnItem:i,onClick:a(i)},`${e.folderPath}/${i.type}/${s}`))})})})}function nQe({columnItem:e,...r}){switch(e.type){case"folder":return y.jsx(ZA,{variant:"light",active:e.selected,label:e.title,leftSection:Fte,rightSection:QZe,maw:"300px",miw:"200px",...r},e.folderPath);case"view":return y.jsx(ZA,{variant:"filled",active:e.selected,label:e.title,description:e.description,leftSection:Hte[e.viewType],maw:"300px",miw:"200px",...r},e.viewId);default:Zi(e)}}function oQe(e){const[r,n]=dc({...e,finalValue:""});return y.jsx(La,{size:"xs",placeholder:"Search by title or id",variant:"unstyled",height:Pe(26),value:r,onKeyDown:jte,onChange:o=>n(o.currentTarget.value),"data-likec4-focusable":!0,classNames:{wrapper:be({flexGrow:1,backgroundColor:{base:"mantine.colors.gray[1]",_dark:"mantine.colors.dark[5]/80",_hover:{base:"mantine.colors.gray[2]",_dark:"mantine.colors.dark[4]"},_focus:{base:"mantine.colors.gray[2]",_dark:"mantine.colors.dark[4]"}},rounded:"sm"}),input:be({_placeholder:{color:"mantine.colors.dimmed"},_focus:{outline:"none"}})},style:{"--input-fz":"var(--mantine-font-size-sm)"},leftSection:y.jsx(VA,{size:14}),rightSectionPointerEvents:"all",rightSectionWidth:"min-content",rightSection:!e.value||fp(e.value)?null:y.jsx(Kn,{variant:"subtle",h:"100%",size:"compact-xs",color:"gray",onClick:o=>{o.stopPropagation(),n("")},children:"clear"})})}const aQe=Id("div",{base:{fontSize:"xs",color:"mantine.colors.dimmed",fontWeight:500,userSelect:"none",mb:"xxs"}});function iQe(e){const r=RNe(e.activeWalkthrough),n=r?e.xyedges.findIndex(o=>o.id===e.activeWalkthrough?.stepId):-1;return{isActive:r,isParallel:r&&da(e.activeWalkthrough?.parallelPrefix),hasNext:r&&n0,notes:r?e.xyedges[n]?.data?.notes??or.EMPTY:null}}const sQe=E.memo(()=>{const{isActive:e,notes:r}=vs(iQe);return y.jsx(Qn,{children:e&&r&&!r.isEmpty&&y.jsx(Ei.div,{layout:"position",className:be({position:"relative"}),initial:{opacity:0,translateX:-20},animate:{opacity:1,translateX:0},exit:{opacity:0,translateX:-20},children:y.jsxs(pa,{className:Z0({position:"absolute",layerStyle:"likec4.dropdown",gap:"sm",padding:"md",paddingTop:"xxs",pointerEvents:"all",maxWidth:"calc(100cqw - 32px)",minWidth:"calc(100cqw - 50px)",maxHeight:"calc(100cqh - 100px)",width:"max-content",cursor:"default",overflow:"auto",overscrollBehavior:"contain","@/sm":{minWidth:400,maxWidth:550},"@/lg":{maxWidth:700}}),type:"scroll",children:[y.jsx(aQe,{children:"Notes"}),y.jsx(Wp,{value:r,fontSize:"sm",emptyText:"No description",className:be({userSelect:"all"})})]})})})});function lQe({onResetManualLayout:e}){return y.jsxs(hn,{withinPortal:!1,floatingStrategy:"absolute",shadow:"lg",position:"bottom-start",offset:{mainAxis:4},children:[y.jsx(hn.Target,{children:y.jsxs(Er,{className:et("mantine-active",CT({variant:"default"}),Zn({gap:"2",py:"1.5",px:"2",lineHeight:"1",rounded:"sm",textStyle:"xs",fontWeight:"medium",color:{base:"likec4.panel.action",_hover:"likec4.panel.action.hover"},userSelect:"none"})),children:[y.jsx(zr,{children:"Actions"}),y.jsx(PT,{size:12,stroke:2,opacity:.7})]})}),y.jsxs(hn.Dropdown,{children:[y.jsx(hn.Item,{disabled:!0,rightSection:y.jsx(vl,{size:"xs",radius:"sm",children:"Soon"}),children:"Apply changes"}),y.jsx(hn.Item,{fz:"sm",onClick:e,children:"Reset manual layout"})]})]})}function cQe({value:e,onChange:r}){const n=E.useMemo(()=>[{value:"manual",label:"Saved"},{value:"auto",label:"Latest"}],[]);return y.jsx(Br,{layout:"position",children:y.jsx(um,{size:"xs",color:e==="manual"?"orange":"green",value:e,component:Br,onChange:o=>{at(o==="manual"||o==="auto","Invalid layout type"),r(o)},classNames:{label:be({fontSize:"xxs",fontWeight:"medium"})},data:n})})}const qte=kp.withProps({mx:2,size:"xs",orientation:"vertical"});function dQe(){const[e,{toggleCompare:r,switchLayout:n,resetManualLayout:o}]=KA();return y.jsxs(y.Fragment,{children:[y.jsx(zr,{css:{textStyle:"xs",color:"likec4.panel.text",userSelect:"none"},children:"Compare"}),y.jsx(cQe,{value:e.layout,onChange:n}),e.isEditable&&y.jsxs(sn,{gap:"1",children:[y.jsx(qte,{}),y.jsx(lQe,{onResetManualLayout:o}),y.jsx(qte,{})]}),y.jsx(Ec,{size:"sm",onClick:a=>{a.stopPropagation(),r()},children:y.jsx(Rp,{})})]})}const Ute=E.memo(()=>{const{enableCompareWithLatest:e}=_r();return y.jsx(Qn,{children:e&&y.jsx(Br,{layout:"position",className:Zn({gap:"2",layerStyle:"likec4.panel",position:"relative",px:"2",py:"1",pl:"3",pointerEvents:"all"}),initial:{opacity:0,translateX:-20},animate:{opacity:1,translateX:0},exit:{opacity:0,translateX:-20},children:y.jsx(dQe,{})})})});Ute.displayName="ComparePanel";const Hy=co.withProps({color:"dark",fz:"xs",openDelay:600,closeDelay:120,label:"",children:null,offset:8,position:"right"}),uQe=[["path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-0"}],["path",{d:"M4 8v-2a2 2 0 0 1 2 -2h2",key:"svg-1"}],["path",{d:"M4 16v2a2 2 0 0 0 2 2h2",key:"svg-2"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v2",key:"svg-3"}],["path",{d:"M16 20h2a2 2 0 0 0 2 -2v-2",key:"svg-4"}]],pQe=Nt("outline","focus-centered","FocusCentered",uQe),hQe=()=>{const e=Qt();return y.jsx(Hy,{label:"Center camera",children:y.jsx(Ec,{onClick:()=>e.fitDiagram(),children:y.jsx(pQe,{})})})};be({gap:"xxs",_empty:{display:"none"}}),be({top:"md",left:"md",margin:"0",pointerEvents:"none","& :where(button, .action-icon, [role='dialog'])":{pointerEvents:"all"},"& .action-icon":{"--ai-size":"2rem"},"& .tabler-icon":{width:"65%",height:"65%"},_reduceGraphics:{"& .action-icon":{"--ai-radius":"0px"}}}),be({shadow:{base:"md",_whenPanning:"none"}}),be({"& .tabler-icon":{width:"65%",height:"65%"}});const p4=be({flex:"1 1 40%",textAlign:"center",fontWeight:500,padding:"[4px 6px]",fontSize:"11px",zIndex:1}),fQe=be({background:"mantine.colors.gray[2]",borderRadius:"sm",border:"1px solid",borderColor:"mantine.colors.gray[4]",_dark:{background:"mantine.colors.dark[5]",borderColor:"mantine.colors.dark[4]"}}),mQe=be({position:"relative",borderRadius:"sm",background:"mantine.colors.gray[3]",boxShadow:"inset 1px 1px 3px 0px #00000024",_dark:{background:"mantine.colors.dark[7]"}}),gQe=be({position:"absolute",width:8,height:8,border:"2px solid",borderColor:"mantine.colors.gray[5]",borderRadius:3,transform:"translate(-50%, -50%)"}),yQe=[["path",{d:"M5 4h4a1 1 0 0 1 1 1v6a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1v-6a1 1 0 0 1 1 -1",key:"svg-0"}],["path",{d:"M5 16h4a1 1 0 0 1 1 1v2a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1v-2a1 1 0 0 1 1 -1",key:"svg-1"}],["path",{d:"M15 12h4a1 1 0 0 1 1 1v6a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1v-6a1 1 0 0 1 1 -1",key:"svg-2"}],["path",{d:"M15 4h4a1 1 0 0 1 1 1v2a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1v-2a1 1 0 0 1 1 -1",key:"svg-3"}]],bQe=Nt("outline","layout-dashboard","LayoutDashboard",yQe),vQe=e=>({viewId:e.view.id,isManualLayout:e.view._layout==="manual",autoLayout:e.view.autoLayout}),xQe=()=>{const e=Qt(),[r,n]=E.useState(null),[o,a]=E.useState({}),{autoLayout:i,viewId:s,isManualLayout:l}=vs(vQe),{ref:c,hovered:d}=X7(),u=g=>b=>{o[g]=b,a(o)},h=g=>b=>{b.stopPropagation(),e.fitDiagram(),e.triggerChange({op:"change-autolayout",layout:{...i,direction:g}})},f=(g,b)=>{e.fitDiagram(),e.triggerChange({op:"change-autolayout",layout:{...i,nodeSep:g,rankSep:b}})};return l?null:y.jsxs(Rr,{position:"right-start",clickOutsideEvents:["pointerdown"],radius:"xs",shadow:"lg",offset:{mainAxis:10},children:[y.jsx($d,{children:y.jsx(Hy,{label:"Change Auto Layout",children:y.jsx(Ec,{children:y.jsx(bQe,{})})})}),y.jsx(fc,{className:"likec4-top-left-panel",p:8,pt:6,opacity:d?.6:1,children:y.jsxs(Re,{pos:"relative",ref:n,children:[y.jsx(B2,{target:o[i.direction],parent:r,className:fQe}),y.jsx(Re,{mb:10,children:y.jsx(ft,{inline:!0,fz:"xs",c:"dimmed",fw:500,children:"Auto layout:"})}),y.jsxs(mc,{gap:2,wrap:"wrap",justify:"stretch",maw:160,children:[y.jsx(Er,{className:p4,ref:u("TB"),onClick:h("TB"),children:"Top-Bottom"}),y.jsx(Er,{className:p4,ref:u("BT"),onClick:h("BT"),children:"Bottom-Top"}),y.jsx(Er,{className:p4,ref:u("LR"),onClick:h("LR"),children:"Left-Right"}),y.jsx(Er,{className:p4,ref:u("RL"),onClick:h("RL"),children:"Right-Left"})]}),y.jsx(Re,{my:10,children:y.jsx(ft,{inline:!0,fz:"xs",c:"dimmed",fw:500,children:"Spacing:"})}),y.jsx(wQe,{ref:c,isVertical:i.direction==="TB"||i.direction==="BT",nodeSep:i.nodeSep,rankSep:i.rankSep,onChange:f},s)]})})]})},Um=400,wQe=E.forwardRef(({isVertical:e,nodeSep:r,rankSep:n,onChange:o},a)=>{e||([r,n]=[n,r]);const i=HE(({x:f,y:g})=>{e||([f,g]=[g,f]),o(Math.round(f*Um),Math.round(g*Um))},[o,e],250,2e3),[s,l]=dc({defaultValue:u$e({x:(r??100)/Um,y:(n??120)/Um}),onChange:i}),{ref:c}=CU(l);let d=Math.round(s.x*Um),u=Math.round(s.y*Um);e||([d,u]=[u,d]);const h=Hr(c,a);return y.jsxs(Re,{ref:h,className:mQe,pt:"100%",children:[y.jsx(Re,{className:gQe,style:{left:`${s.x*100}%`,top:`${s.y*100}%`}}),y.jsx(Re,{pos:"absolute",left:2,bottom:2,children:y.jsxs(ft,{component:"div",fz:8,c:"dimmed",fw:500,children:[u,", ",d]})})]})}),kQe=[["path",{d:"M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z",key:"svg-0"}],["path",{d:"M10 4l4 16",key:"svg-1"}],["path",{d:"M12 12l-8 2",key:"svg-2"}]],_Qe=Nt("outline","layout-collage","LayoutCollage",kQe),EQe=[["path",{d:"M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z",key:"svg-0"}],["path",{d:"M4 12h8",key:"svg-1"}],["path",{d:"M12 15h8",key:"svg-2"}],["path",{d:"M12 9h8",key:"svg-3"}],["path",{d:"M12 4v16",key:"svg-4"}]],Wte=Nt("outline","layout-board-split","LayoutBoardSplit",EQe),SQe=[["path",{d:"M4 4l0 16",key:"svg-0"}],["path",{d:"M8 9m0 2a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v2a2 2 0 0 1 -2 2h-8a2 2 0 0 1 -2 -2z",key:"svg-1"}]],CQe=Nt("outline","layout-align-left","LayoutAlignLeft",SQe),TQe=[["path",{d:"M12 4l0 5",key:"svg-0"}],["path",{d:"M12 15l0 5",key:"svg-1"}],["path",{d:"M6 9m0 2a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v2a2 2 0 0 1 -2 2h-8a2 2 0 0 1 -2 -2z",key:"svg-2"}]],AQe=Nt("outline","layout-align-center","LayoutAlignCenter",TQe),RQe=[["path",{d:"M20 4l0 16",key:"svg-0"}],["path",{d:"M4 9m0 2a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v2a2 2 0 0 1 -2 2h-8a2 2 0 0 1 -2 -2z",key:"svg-1"}]],NQe=Nt("outline","layout-align-right","LayoutAlignRight",RQe),DQe=[["path",{d:"M4 4l16 0",key:"svg-0"}],["path",{d:"M9 8m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z",key:"svg-1"}]],$Qe=Nt("outline","layout-align-top","LayoutAlignTop",DQe),PQe=[["path",{d:"M4 12l5 0",key:"svg-0"}],["path",{d:"M15 12l5 0",key:"svg-1"}],["path",{d:"M9 6m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z",key:"svg-2"}]],MQe=Nt("outline","layout-align-middle","LayoutAlignMiddle",PQe),zQe=[["path",{d:"M4 20l16 0",key:"svg-0"}],["path",{d:"M9 4m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z",key:"svg-1"}]],IQe=Nt("outline","layout-align-bottom","LayoutAlignBottom",zQe),OQe=[["path",{d:"M6 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0",key:"svg-0"}],["path",{d:"M18 5m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0",key:"svg-1"}],["path",{d:"M12 19h4.5c.71 0 1.372 -.212 1.924 -.576m1.545 -2.459a3.5 3.5 0 0 0 -3.469 -3.965h-.499m-4 0h-3.501a3.5 3.5 0 0 1 -2.477 -5.972m2.477 -1.028h3.5",key:"svg-2"}],["path",{d:"M3 3l18 18",key:"svg-3"}]],jQe=Nt("outline","route-off","RouteOff",OQe),Sc=({label:e,icon:r,onClick:n})=>y.jsx(Hy,{label:e,withinPortal:!1,position:"top",children:y.jsx(Ec,{classNames:{root:"action-icon",icon:be({"& > svg":{width:"70%",height:"70%"}})},onClick:n,children:r})}),Yte=E.memo(()=>{const e=Qt(),r=qm();return y.jsxs(Rr,{position:"right",offset:{mainAxis:12},clickOutsideEvents:["pointerdown"],...r,children:[y.jsx($d,{children:y.jsx(Hy,{label:"Manual layouting tools",children:y.jsx(Ec,{children:y.jsx(_Qe,{})})})}),y.jsx(fc,{className:Zn({gap:"0.5",layerStyle:"likec4.panel",padding:"1",pointerEvents:"all"}),children:y.jsxs(Ep,{children:[y.jsx(Sc,{label:"Align in columns",icon:y.jsx(Wte,{}),onClick:n=>{n.stopPropagation(),e.align("Column")}}),y.jsx(Sc,{label:"Align left",icon:y.jsx(CQe,{}),onClick:n=>{n.stopPropagation(),e.align("Left")}}),y.jsx(Sc,{label:"Align center",icon:y.jsx(AQe,{}),onClick:n=>{n.stopPropagation(),e.align("Center")}}),y.jsx(Sc,{label:"Align right",icon:y.jsx(NQe,{}),onClick:n=>{n.stopPropagation(),e.align("Right")}}),y.jsx(Sc,{label:"Align in rows",icon:y.jsx(Wte,{style:{transform:"rotate(90deg)"}}),onClick:n=>{n.stopPropagation(),e.align("Row")}}),y.jsx(Sc,{label:"Align top",icon:y.jsx($Qe,{}),onClick:n=>{n.stopPropagation(),e.align("Top")}}),y.jsx(Sc,{label:"Align middle",icon:y.jsx(MQe,{}),onClick:n=>{n.stopPropagation(),e.align("Middle")}}),y.jsx(Sc,{label:"Align bottom",icon:y.jsx(IQe,{}),onClick:n=>{n.stopPropagation(),e.align("Bottom")}}),y.jsx(Sc,{label:"Reset all control points",icon:y.jsx(jQe,{}),onClick:n=>{n.stopPropagation(),e.resetEdgeControlPoints()}})]})})]})});Yte.displayName="ManualLayoutToolsButton";const LQe=()=>{const e=Qt();return y.jsx(Hy,{label:"Switch to Read-only",children:y.jsx(Ec,{onClick:()=>e.toggleFeature("ReadOnly"),children:y.jsx($te,{size:14,stroke:2})})})};function BQe(){const{enableReadOnly:e}=_r();return y.jsx(Qn,{children:!e&&y.jsx(Br,{layout:"position",className:Z0({gap:"xs",layerStyle:"likec4.panel",position:"relative",cursor:"pointer",padding:"xxs",pointerEvents:"all"}),initial:{opacity:0,translateX:-20},animate:{opacity:1,translateX:0},exit:{opacity:0,translateX:-20},children:y.jsxs(Ep,{openDelay:600,closeDelay:120,children:[y.jsx(xQe,{}),y.jsx(Yte,{}),y.jsx(hQe,{}),y.jsx(LQe,{})]})})})}const FQe=[["path",{d:"M17 4h-10a3 3 0 0 0 -3 3v10a3 3 0 0 0 3 3h10a3 3 0 0 0 3 -3v-10a3 3 0 0 0 -3 -3z",key:"svg-0"}]],HQe=Nt("filled","player-stop-filled","PlayerStopFilled",FQe),VQe=[["path",{d:"M19.496 4.136l-12 7a1 1 0 0 0 0 1.728l12 7a1 1 0 0 0 1.504 -.864v-14a1 1 0 0 0 -1.504 -.864z",key:"svg-0"}],["path",{d:"M4 4a1 1 0 0 1 .993 .883l.007 .117v14a1 1 0 0 1 -1.993 .117l-.007 -.117v-14a1 1 0 0 1 1 -1z",key:"svg-1"}]],qQe=Nt("filled","player-skip-back-filled","PlayerSkipBackFilled",VQe),UQe=[["path",{d:"M3 5v14a1 1 0 0 0 1.504 .864l12 -7a1 1 0 0 0 0 -1.728l-12 -7a1 1 0 0 0 -1.504 .864z",key:"svg-0"}],["path",{d:"M20 4a1 1 0 0 1 .993 .883l.007 .117v14a1 1 0 0 1 -1.993 .117l-.007 -.117v-14a1 1 0 0 1 1 -1z",key:"svg-1"}]],WQe=Nt("filled","player-skip-forward-filled","PlayerSkipForwardFilled",UQe),Gte=Kn.withProps({component:Ni,layout:"position",whileTap:{scale:.95},variant:"light",size:"xs",fw:"500"}),YQe=()=>{const{portalProps:e}=qm();return y.jsx(j0,{...e,children:y.jsx(zr,{css:{position:"absolute",margin:"0",padding:"0",top:"0",left:"0",width:"100%",height:"100%",border:"2px solid",borderColor:"mantine.colors.orange[6]",pointerEvents:"none",md:{borderWidth:4}}})})};function GQe(){const e=Qt(),{isParallel:r,hasNext:n,hasPrevious:o,currentStep:a,totalSteps:i}=vs(s=>{const l=s.xyedges.findIndex(c=>c.id===s.activeWalkthrough?.stepId);return{isParallel:da(s.activeWalkthrough?.parallelPrefix),hasNext:l0,currentStep:l+1,totalSteps:s.xyedges.length}});return y.jsxs(Qn,{propagate:!0,mode:"popLayout",children:[y.jsx(Pte,{variant:"light",size:"xs",color:"orange",mr:"sm",onClick:s=>{s.stopPropagation(),e.stopWalkthrough()},rightSection:y.jsx(HQe,{size:10}),children:"Stop"},"stop-walkthrough"),y.jsx(Gte,{disabled:!o,onClick:()=>e.walkthroughStep("previous"),leftSection:y.jsx(qQe,{size:10}),children:"Previous"},"prev"),y.jsxs(vl,{component:Br,layout:"position",size:"md",radius:"sm",variant:r?"gradient":"transparent",gradient:{from:"red",to:"orange",deg:90},rightSection:y.jsx(Br,{className:be({fontSize:"xxs",display:r?"block":"none"}),children:"parallel"}),className:be({alignItems:"baseline"}),children:[a," / ",i]},"step-badge"),y.jsx(Gte,{disabled:!n,onClick:()=>e.walkthroughStep("next"),rightSection:y.jsx(WQe,{size:10}),children:"Next"},"next"),r&&y.jsx(YQe,{},"parallel-frame")]})}const Xte=E.memo(()=>{const e=zp(),r=NGe(),n=AWe(),o=KS(rZe,{input:{view:r,viewModel:n}});return E.useEffect(()=>{const a=o.on("navigateTo",i=>{e.getSnapshot().context.view.id!==i.viewId&&e.send({type:"navigate.to",viewId:i.viewId})});return()=>a.unsubscribe()},[o,e]),OF(()=>{o.send({type:"update.inputs",inputs:{viewModel:n,view:r}})},[n,r]),y.jsx(Ap,{css:{alignItems:"flex-start",pointerEvents:"none",position:"absolute",top:"0",left:"0",margin:"0",width:"100%",gap:"xxs",maxWidth:["calc(100vw)","calc(100cqw)"],"@/sm":{margin:"xs",gap:"xs",width:"max-content",maxWidth:["calc(100vw - 2 * {spacing.md})","calc(100cqw - 2 * {spacing.md})"]}},children:y.jsxs(nZe,{value:o,children:[y.jsx(XQe,{actor:o}),y.jsx(Ute,{}),y.jsx(sQe,{}),y.jsx(BQe,{})]})})});Xte.displayName="NavigationPanel";const XQe=({actor:e})=>{const r=fn(e,o=>o.hasTag("active")),n=qm();return y.jsxs(Rr,{offset:{mainAxis:4},opened:r,position:"bottom-start",trapFocus:!0,...n,clickOutsideEvents:["pointerdown","mousedown","click"],onDismiss:()=>e.send({type:"dropdown.dismiss"}),children:[y.jsx(KQe,{actor:e}),r&&y.jsx(Lte,{})]})},KQe=({actor:e})=>{const r=vs(n=>n.activeWalkthrough!==null);return y.jsx($m,{children:y.jsx($d,{children:y.jsx(Br,{layout:!0,className:Zn({layerStyle:"likec4.panel",position:"relative",gap:"xs",cursor:"pointer",pointerEvents:"all",width:"100%"}),onMouseLeave:()=>e.send({type:"breadcrumbs.mouseLeave"}),children:y.jsx(Qn,{mode:"popLayout",children:r?y.jsx(GQe,{}):y.jsx(Ote,{})})})})})},QA=be({position:"absolute",bottom:"0",right:"0",padding:"2",margin:"0",width:"min-content",height:"min-content"}),ZQe=be({"--ai-radius":"0px",_noReduceGraphics:{"--ai-radius":"{radii.md}"}}),QQe=be({cursor:"default",userSelect:"none",minWidth:200,maxWidth:"calc(100vw - 20px)",backgroundColor:"mantine.colors.body/80",sm:{minWidth:300,maxWidth:"65vw"},md:{maxWidth:"40vw"},_dark:{backgroundColor:"mantine.colors.dark[6]/80"}}),JQe=be({padding:"xxs"}),eJe=be({backgroundColor:"transparent",transition:"all 100ms ease-in",_hover:{transition:"all 120ms ease-out",backgroundColor:"mantine.colors.primary[2]/50"},_dark:{_hover:{backgroundColor:"mantine.colors.dark[3]/40"}}});be({fill:"var(--likec4-palette-fill)",stroke:"var(--likec4-palette-stroke)",strokeWidth:1,overflow:"visible",width:"100%",height:"auto",filter:` + z`.replace(/\s+/g," ").trim(),ry:a,rx:i}}const xp={width:115,height:120,path:"M57.9197 0C10.9124 0 33.5766 54.75 33.5766 54.75C38.6131 62.25 45.3285 60.75 45.3285 66C45.3285 70.5 39.4526 72 33.5766 72.75C24.3431 72.75 15.9489 71.25 7.55474 84.75C2.51825 93 0 120 0 120H115C115 120 112.482 93 108.285 84.75C99.8905 70.5 91.4963 72.75 82.2628 72C76.3869 71.25 70.5109 69.75 70.5109 65.25C70.5109 60.75 77.2263 62.25 82.2628 54C82.2628 54.75 104.927 0 57.9197 0V0Z"};function NQ({shape:e,w:r,h:n}){switch(e){case"mobile":return y.jsxs(y.Fragment,{children:[y.jsx("rect",{width:r,height:n,rx:6,"data-likec4-fill":"mix-stroke",strokeWidth:0}),y.jsxs("g",{"data-likec4-fill":"fill",strokeWidth:0,children:[y.jsx("circle",{cx:17,cy:n/2,r:12}),y.jsx("rect",{x:33,y:12,width:r-44,height:n-24,rx:5})]})]});case"browser":return y.jsxs(y.Fragment,{children:[y.jsx("rect",{width:r,height:n,rx:6,"data-likec4-fill":"mix-stroke",strokeWidth:0}),y.jsxs("g",{"data-likec4-fill":"fill",strokeWidth:0,children:[y.jsx("circle",{cx:16,cy:17,r:7}),y.jsx("circle",{cx:36,cy:17,r:7}),y.jsx("circle",{cx:56,cy:17,r:7}),y.jsx("rect",{x:70,y:8,width:r-80,height:17,rx:4}),y.jsx("rect",{x:10,y:32,width:r-20,height:n-42,rx:4})]})]});case"person":return y.jsxs(y.Fragment,{children:[y.jsx("rect",{width:r,height:n,rx:6,strokeWidth:0}),y.jsx("svg",{x:r-xp.width-6,y:n-xp.height,width:xp.width,height:xp.height,viewBox:`0 0 ${xp.width} ${xp.height}`,"data-likec4-fill":"mix-stroke",children:y.jsx("path",{strokeWidth:0,d:xp.path})})]});case"queue":{const{path:o,rx:a,ry:i}=MQ(r,n);return y.jsxs(y.Fragment,{children:[y.jsx("path",{d:o,strokeWidth:2}),y.jsx("ellipse",{cx:a,cy:i,ry:i-.75,rx:a,"data-likec4-fill":"mix-stroke",strokeWidth:2})]})}case"storage":case"cylinder":{const{path:o,rx:a,ry:i}=DQ(r,n);return y.jsxs(y.Fragment,{children:[y.jsx("path",{d:o,strokeWidth:2}),y.jsx("ellipse",{cx:a,cy:i,ry:i,rx:a-.75,"data-likec4-fill":"mix-stroke",strokeWidth:2})]})}default:return Xo(e)}}function qqe({shape:e,w:r,h:n}){let o;switch(e){case"queue":o=y.jsx("path",{d:MQ(r,n).path});break;case"storage":case"cylinder":{o=y.jsx("path",{d:DQ(r,n).path});break}default:{o=y.jsx("rect",{x:-3,y:-3,width:r+6,height:n+6,rx:8});break}}return y.jsx("g",{className:"likec4-shape-outline",children:o})}function Hqe({multiple:e,withOutLine:r}){return y.jsxs("div",{className:GZ({shapetype:"html"}),children:[e&&y.jsx("div",{className:"likec4-shape-multiple"}),r&&y.jsx("div",{className:"likec4-shape-outline"})]})}function lm({data:e,width:r,height:n,showSeletionOutline:o=!0}){let a=r&&r>10?r:e.width,i=n&&n>10?n:e.height;const l=e.style?.multiple??!1;if(e.shape==="rectangle")return y.jsx(Hqe,{multiple:l,withOutLine:o});const s=GZ({shapetype:"svg"});return y.jsxs(y.Fragment,{children:[l&&y.jsx("svg",{className:s,"data-likec4-shape-multiple":"true",viewBox:`0 0 ${a} ${i}`,children:y.jsx(NQ,{shape:e.shape,w:a,h:i})}),y.jsxs("svg",{className:s,viewBox:`0 0 ${a} ${i}`,children:[o&&y.jsx(qqe,{shape:e.shape,w:a,h:i}),y.jsx(NQ,{shape:e.shape,w:a,h:i})]})]})}const wp=S.forwardRef(({value:e,textScale:r=1,uselikec4palette:n=!1,hideIfEmpty:o=!1,emptyText:a="no content",className:i,style:l,fontSize:s,...c},d)=>{if(e.isEmpty&&o)return null;const u=e.nonEmpty?e.isMarkdown?{dangerouslySetInnerHTML:{__html:e.html}}:{children:y.jsx("p",{children:e.text})}:{children:y.jsx(at,{component:"span",fz:"xs",c:"dimmed",style:{userSelect:"none"},children:a})};return y.jsx(hr,{ref:d,...c,className:Ge(cFe({uselikec4palette:n,value:e.isMarkdown?"markdown":"plaintext"}),i),style:{...l,...s&&{"--text-fz":`var(--font-sizes-${s}, var(--font-sizes-md))`},...r!==1&&{"--mantine-scale":r}},...u})});wp.displayName="Markdown";const PQ=S.forwardRef(({className:e,...r},n)=>y.jsx("div",{...r,ref:n,className:Ge(e,lFe(),"likec4-element")})),BQ=({data:e,...r})=>y.jsx(tx,{element:e,...r}),OQ=S.forwardRef(({className:e,...r},n)=>y.jsx("div",{...r,className:Ge(e,"likec4-element-node-content"),ref:n})),IQ=S.forwardRef(({data:{title:e,style:r},className:n,...o},a)=>{const{size:i}=mb(r),l=i==="sm"||i==="xs";return y.jsx(at,{component:"div",...o,className:Ge(n,"likec4-element-title"),"data-likec4-node-title":"",lineClamp:l?2:3,ref:a,children:e})}),LQ=S.forwardRef(({data:e,children:r,className:n,...o},a)=>{const i=e?.technology??r;return Kn(i)?y.jsx(at,{component:"div",...o,className:Ge(n,"likec4-element-technology"),"data-likec4-node-technology":"",ref:a,children:i}):null}),FQ=S.forwardRef(({data:{description:e,style:r},className:n,...o},a)=>{if(!e)return null;const i=ur.from(e),{size:l}=mb(r);return y.jsx(wp,{...o,className:Ge(n,"likec4-element-description",fe({lineClamp:l==="sm"||l==="xs"?3:5})),"data-likec4-node-description":"",value:i,uselikec4palette:!0,hideIfEmpty:!0,style:{maxHeight:i.isMarkdown?"8rem":void 0},ref:a})});function sl({iconSize:e,data:r}){return y.jsxs(PQ,{style:LV(e)?{"--likec4-icon-size":`${e}px`}:void 0,children:[y.jsx(BQ,{data:r}),y.jsxs(OQ,{children:[y.jsx(IQ,{data:r}),y.jsx(LQ,{data:r}),y.jsx(FQ,{data:r})]})]})}sl.Root=PQ,sl.Icon=BQ,sl.Content=OQ,sl.Title=IQ,sl.Technology=LQ,sl.Description=FQ;const Uqe=fe({position:"absolute",top:"0.5",right:"0.5",_shapeBrowser:{right:"[5px]"},_shapeCylinder:{top:"[14px]"},_shapeStorage:{top:"[14px]"},_shapeQueue:{top:"[1px]",right:"3"},_smallZoom:{display:"none"},_print:{display:"none"}});function v$({selected:e=!1,data:{hovered:r=!1},icon:n,onClick:o}){return y.jsx(hr,{className:Ge(Uqe,"details-button"),children:y.jsx(lr,{className:Ge("nodrag nopan",L3({variant:"transparent"})),component:vi,initial:!1,style:{originX:.45,originY:.55},animate:r||e?{scale:1.2,opacity:.8}:{scale:1,opacity:.5},whileHover:{scale:1.4,opacity:1},whileTap:{scale:1.15},onClick:o,onDoubleClick:nn,children:n??y.jsx(y$,{stroke:1.8,style:{width:"75%"}})})})}const Wqe=e=>{const r=Nt();return y.jsx(v$,{...e,onClick:n=>{n.stopPropagation(),r.openElementDetails(e.data.fqn)}})};function Gqe(e){const{enableElementTags:r}=sr();return y.jsxs(im,{layoutId:e.id,nodeProps:e,children:[y.jsx(lm,{...e}),y.jsx(sl,{...e}),r&&y.jsx(Wy,{...e}),y.jsx(Wqe,{...e}),y.jsx(Lqe,{...e}),y.jsx(Xqe,{...e})]},e.id)}function Yqe(e){const r=Nt();return y.jsxs(e0,{layoutId:e.id,nodeProps:e,children:[y.jsx(t0,{...e}),y.jsx(AQ,{...e,onClick:n=>{n.stopPropagation(),r.openElementDetails(e.data.fqn)}}),y.jsx(Zqe,{...e})]},e.id)}const Xqe=({data:{ports:e,height:r}})=>y.jsxs(y.Fragment,{children:[e.in.map((n,o)=>y.jsx(Oo,{id:n,type:"target",position:Ue.Left,style:{visibility:"hidden",top:`${15+(o+1)*((r-30)/(e.in.length+1))}px`}},n)),e.out.map((n,o)=>y.jsx(Oo,{id:n,type:"source",position:Ue.Right,style:{visibility:"hidden",top:`${15+(o+1)*((r-30)/(e.out.length+1))}px`}},n))]}),Zqe=({data:e})=>y.jsxs(y.Fragment,{children:[e.ports.in.map((r,n)=>y.jsx(Oo,{id:r,type:"target",position:Ue.Left,style:{visibility:"hidden",top:`${20*(n+1)}px`}},r)),e.ports.out.map((r,n)=>y.jsx(Oo,{id:r,type:"source",position:Ue.Right,style:{visibility:"hidden",top:`${20*(n+1)}px`}},r))]}),Kqe=[["path",{d:"M15 6l-6 6l6 6",key:"svg-0"}]],VQ=wt("outline","chevron-left","ChevronLeft",Kqe),Qqe={element:Gqe,compound:Yqe,empty:Rqe},Jqe={relationship:$qe};function qQ({actorRef:e}){const r=S.useRef(null);return r.current==null&&(r.current={initialNodes:[],initialEdges:[]}),y.jsx(xK.Provider,{value:e,children:y.jsx(qx,{...r.current,children:y.jsx(rm,{id:e.sessionId,inherit:!1,children:y.jsx(Cn,{children:y.jsx(rHe,{})})})})})}const eHe=e=>({isActive:e.hasTag("active"),nodes:e.context.xynodes,edges:e.context.xyedges}),tHe=(e,r)=>e.isActive===r.isActive&&Or(e.nodes,r.nodes)&&Or(e.edges,r.edges),rHe=S.memo(()=>{const e=Yy(),{isActive:r,nodes:n,edges:o}=Q3(eHe,tHe);return y.jsx(kC,{id:e.rootElementId,nodes:n,edges:o,className:Ge(r?"initialized":"not-initialized","relationships-browser"),nodeTypes:Qqe,edgeTypes:Jqe,fitView:!1,onNodeClick:it((a,i)=>{a.stopPropagation(),e.send({type:"xyflow.nodeClick",node:i})}),onEdgeClick:it((a,i)=>{a.stopPropagation(),e.send({type:"xyflow.edgeClick",edge:i})}),onPaneClick:it(a=>{a.stopPropagation(),e.send({type:"xyflow.paneClick"})}),onDoubleClick:it(a=>{e.send({type:"xyflow.paneDblClick"})}),onViewportResize:it(()=>{e.send({type:"xyflow.resized"})}),onNodesChange:it(a=>{e.send({type:"xyflow.applyNodeChanges",changes:a})}),onEdgesChange:it(a=>{e.send({type:"xyflow.applyEdgeChanges",changes:a})}),onEdgeMouseEnter:it((a,i)=>{i.data.hovered||e.send({type:"xyflow.edgeMouseEnter",edge:i})}),onEdgeMouseLeave:it((a,i)=>{i.data.hovered&&e.send({type:"xyflow.edgeMouseLeave",edge:i})}),onSelectionChange:it(a=>{e.send({type:"xyflow.selectionChange",...a})}),nodesDraggable:!1,nodesSelectable:!0,pannable:!0,zoomable:!0,children:y.jsx(oHe,{})})}),nHe=e=>({subjectId:e.context.subject,viewId:e.context.viewId,scope:e.context.scope,closeable:e.context.closeable}),oHe=S.memo(()=>{const e=Yy(),{subjectId:r,viewId:n,scope:o,closeable:a}=Q3(nHe),i=vr(),l=cf();S.useEffect(()=>{l.viewportInitialized&&e.send({type:"xyflow.init",instance:l,store:i})},[i,l.viewportInitialized,e]);const s=cqe(r,n,o),[c,d,{history:u,current:p}]=jq(r);S.useEffect(()=>{c!==r&&d.set(r)},[r]),S.useEffect(()=>{c!==r&&e.navigateTo(c)},[c,e]),kI(()=>{e.updateView(s)},[s,e]);const f=p>0,g=p+1d.back(),onStepForward:()=>d.forward()}),a&&y.jsx(ed,{position:"top-right",children:y.jsx(lr,{variant:"default",color:"gray",onClick:v=>{v.stopPropagation(),e.close()},children:y.jsx(lp,{})})})]})}),aHe=({hasStepBack:e,hasStepForward:r,onStepBack:n,onStepForward:o})=>y.jsx(ed,{position:"top-left",children:y.jsxs(en,{gap:4,wrap:"nowrap",children:[y.jsxs(Cn,{mode:"popLayout",children:[e&&y.jsx(pi.div,{layout:!0,initial:{opacity:.05,transform:"translateX(-5px)"},animate:{opacity:1,transform:"translateX(0)"},exit:{opacity:.05,transform:"translateX(-10px)"},children:y.jsx(lr,{variant:"default",color:"gray",onClick:a=>{a.stopPropagation(),n()},children:y.jsx(VQ,{})})},"back"),r&&y.jsx(pi.div,{layout:!0,initial:{opacity:.05,transform:"translateX(5px)"},animate:{opacity:1,transform:"translateX(0)"},exit:{opacity:0,transform:"translateX(5px)"},children:y.jsx(lr,{variant:"default",color:"gray",onClick:a=>{a.stopPropagation(),o()},children:y.jsx(Sd,{})})},"forward")]}),y.jsx(yqe,{})]})}),iHe=fe({display:"inline-block",fontSize:"sm",fontWeight:500,whiteSpace:"nowrap",padding:"[3px 6px]",borderRadius:3,background:"var(--likec4-palette-fill)/75",lineHeight:1.2,color:"var(--likec4-palette-hiContrast)"}),lHe=fe({_light:{background:"mantine.colors.gray[1]","&[data-missing":{}},"&[data-missing]":{color:"mantine.colors.orange[4]",background:"mantine.colors.orange[8]/15",borderColor:"mantine.colors.orange[5]/20",_light:{color:"mantine.colors.orange[8]"}}}),sHe=fe({flex:"1 1 100%",position:"relative",width:"100%",height:"100%",background:"mantine.colors.body",border:"1px solid {colors.mantine.colors.defaultBorder}",borderRadius:"sm",_light:{borderColor:"mantine.colors.gray[3]",background:"mantine.colors.gray[1]"}});fe({_before:{content:'"scope:"',position:"absolute",top:"0",left:"2",fontSize:"xxs",fontWeight:500,lineHeight:"1",color:"mantine.colors.dimmed",opacity:.85,transform:"translateY(-100%) translateY(-2px)"},_light:{"& .mantine-SegmentedControl-root":{background:"mantine.colors.gray[3]"}}}),fe({display:"inline-block",fontSize:"xl",fontWeight:600,padding:"[1px 5px]",minWidth:24,textAlign:"center",borderRadius:"sm",background:"mantine.colors.dark[7]",color:"mantine.colors.defaultColor","&[data-zero]":{color:"mantine.colors.dimmed"},"&[data-missing]":{color:"mantine.colors.orange[4]",background:"mantine.colors.orange[8]/20"}});const cHe=[["path",{d:"M5 12l14 0",key:"svg-0"}],["path",{d:"M13 18l6 -6",key:"svg-1"}],["path",{d:"M13 6l6 6",key:"svg-2"}]],sm=wt("outline","arrow-right","ArrowRight",cHe),dHe=[["path",{d:"M12 6h-6a2 2 0 0 0 -2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-6",key:"svg-0"}],["path",{d:"M11 13l9 -9",key:"svg-1"}],["path",{d:"M15 4h5v5",key:"svg-2"}]],HQ=wt("outline","external-link","ExternalLink",dHe),uHe=_n.withProps({color:"dark",fz:"xs",openDelay:600,closeDelay:120,label:"",children:null,offset:8,withinPortal:!1});function pHe({node:e,element:r}){const n=Nt(),o=KLe(),a=pn(o,S.useCallback(u=>u.children[`${o.id}-relationships`],[o.id])),i=[...r.incoming()].map(u=>u.id),l=[...r.outgoing()].map(u=>u.id),s=e?Qx([...e.incoming()].flatMap(u=>u.$edge.relations)):[],c=e?Qx([...e.outgoing()].flatMap(u=>u.$edge.relations)):[],d=[...i,...l].filter(u=>!s.includes(u)&&!c.includes(u)).length;return y.jsxs(Io,{gap:"xs",pos:"relative",w:"100%",h:"100%",children:[i.length+l.length>0&&y.jsxs(en,{gap:"xs",wrap:"nowrap",align:"center",children:[y.jsx(Se,{children:y.jsxs(en,{gap:8,mb:4,wrap:"nowrap",children:[y.jsx(UQ,{title:"incoming",total:i.length,included:s.length}),y.jsx($a,{size:"sm",variant:"transparent",c:"dimmed",children:y.jsx(sm,{style:{width:16}})}),y.jsx(at,{className:iHe,children:qg(r.id)}),y.jsx($a,{size:"sm",variant:"transparent",c:"dimmed",children:y.jsx(sm,{style:{width:16}})}),y.jsx(UQ,{title:"outgoing",total:l.length,included:c.length})]})}),d>0&&y.jsx(uHe,{label:"Current view does not include some relationships",children:y.jsxs(en,{mt:"xs",gap:6,c:"orange",style:{cursor:"pointer"},children:[y.jsx(Gy,{style:{width:14}}),y.jsxs(at,{fz:"sm",children:[d," relationship",d>1?"s are":" is"," hidden"]})]})})]}),y.jsx(Se,{className:sHe,children:a&&y.jsxs(y.Fragment,{children:[y.jsx(qQ,{actorRef:a}),y.jsx(Se,{pos:"absolute",top:12,right:12,children:y.jsx(lr,{size:"md",variant:"default",radius:"sm",onClick:u=>{u.stopPropagation();const{subject:p,scope:f,viewId:g}=a.getSnapshot().context;n.overlays().send({type:"open.relationshipsBrowser",subject:p,scope:f,viewId:g})},children:y.jsx(HQ,{stroke:1.6,style:{width:"70%"}})})})]})})]})}function UQ({title:e,total:r,included:n}){return y.jsx($f,{withBorder:!0,shadow:"none",className:lHe,px:"md",py:"xs",radius:"md",mod:{zero:r===0,missing:r!==n},children:y.jsxs(Io,{gap:4,align:"flex-end",children:[y.jsx(at,{component:"div",c:r!==n?"orange":"dimmed",tt:"uppercase",fw:600,fz:10,lh:1,children:e}),y.jsx(at,{fw:600,fz:"xl",component:"div",lh:1,children:r!==n?y.jsxs(y.Fragment,{children:[n," / ",r]}):y.jsx(y.Fragment,{children:r})})]})})}const hHe=fe({marginTop:"sm",marginBottom:"sm"}),fHe=fe({display:"inline-flex",transition:"fast",border:"1px dashed",borderColor:"mantine.colors.defaultBorder",borderRadius:"sm",px:"md",py:"xs",alignItems:"center",cursor:"pointer",color:"mantine.colors.gray[7]",_dark:{color:"mantine.colors.dark[1]"},"& > *":{transition:"fast"},_hover:{transitionTimingFunction:"out",borderStyle:"solid",color:"mantine.colors.defaultColor",background:"mantine.colors.defaultHover","& > *":{transitionTimingFunction:"out",transform:"translateX(1px)"}}}),b$=({element:e})=>y.jsx(Se,{className:fHe,children:y.jsx(at,{component:"div",fz:"sm",fw:"500",children:e.title})}),mHe=()=>{};function gHe({element:e}){const r=hy({multiple:!1});r.setHoveredNode=mHe;const n=S.useMemo(()=>{let o=1;const a=l=>({label:l,value:`msg${o++}`,type:"message",children:[]}),i={label:y.jsx(b$,{type:"current",element:e}),value:e.id,element:e,type:"current",children:[...e.children()].map(l=>({label:y.jsx(b$,{type:"descedant",element:l}),value:l.id,element:l,type:"descedant",children:[]}))};return i.children.length===0&&i.children.push(a(y.jsx(n3,{radius:"sm",children:"no nested"}))),[[...e.ancestors()].reduce((l,s)=>({label:y.jsx(b$,{type:"ancestor",element:s}),value:s.id,element:s,type:"ancestor",children:[l]}),i)]},[e]);return S.useEffect(()=>{r.expandAllNodes()},[n]),y.jsxs(y.Fragment,{children:[y.jsxs(Yw,{variant:"light",color:"orange",title:"In development",icon:y.jsx(Gy,{}),children:["We need your feedback. Share your thoughts and ideas -"," ",y.jsx(R9,{fz:"sm",fw:500,underline:"hover",c:"orange",href:"https://github.com/likec4/likec4/discussions/",target:"_blank",children:"GitHub discussions"})]}),y.jsx(Pf,{levelOffset:"xl",allowRangeSelection:!1,expandOnClick:!1,expandOnSpace:!1,classNames:{label:hHe},data:n,tree:r})]})}const yHe=[["path",{d:"M12 4l-8 4l8 4l8 -4l-8 -4",key:"svg-0"}],["path",{d:"M4 12l8 4l8 -4",key:"svg-1"}],["path",{d:"M4 16l8 4l8 -4",key:"svg-2"}]],x$=wt("outline","stack-2","Stack2",yHe),WQ=tp.withProps({mb:8,labelPosition:"left",variant:"dashed"}),GQ=_n.withProps({color:"dark",fz:"xs",openDelay:400,closeDelay:150,label:"",children:null,offset:4}),YQ=at.withProps({component:"div",fz:11,fw:500,c:"dimmed",lh:1}),r0=at.withProps({component:"div",fz:"xs",c:"dimmed",className:XFe}),cm=24,vHe=["Properties","Relationships","Views","Structure","Deployments"];function bHe({viewId:e,fromNode:r,rectFromNode:n,fqn:o,onClose:a}){const[i,l]=S.useState(!1),s=tze(),c=s.width||window.innerWidth||1200,d=s.height||window.innerHeight||800,[u,p]=Z$e({key:"likec4:element-details:active-tab",defaultValue:"Properties"}),f=Nt(),g=PFe(),v=r?g.findNode(r):g.findNodeWithElement(o),w=g.$model.element(o),[x,k]=Jr([...w.views()],un(Z=>Z.$view),UV(Z=>Z._type==="element"&&Z.viewOf===o));let C=v?.navigateTo?.$view??w.defaultView?.$view??null;C?.id===e&&(C=null);const _=Xx(w.links),$=ZLe(),z=(v?.$node.children?.length??0)>0,j=Math.min(700,c-cm*2),A=Math.min(650,d-cm*2),R=n?{x:n.x+(z?n.width-j/2:n.width/2),y:n.y+(z?0:n.height/2)}:{x:c/2,y:d/2},T=n?Math.min(n.width/j,n.height/A,.9):1,O=Math.round(Qa(R.x-j/2,{min:cm,max:c-j-cm})),P=Math.round(Qa(R.y-(z?0:60),{min:cm,max:d-A-cm})),L=Qa((R.x-O)/j,{min:.1,max:.9}),H=Qa((R.y-P)/A,{min:.1,max:.9}),M=TZ(j),V=TZ(A);Ed(()=>{M.set(j),V.set(A)},[j,A]);const B=S.useCallback((Z,I)=>{M.set(Math.max(M.get()+I.delta.x,320)),V.set(Math.max(V.get()+I.delta.y,300))},[]),F=S.useRef(null),q=Yh(a),G=$8(()=>{q.current()},[],50),U=v?.$node.notation??null,Y=tx({element:{id:o,title:w.title,icon:v?.icon??w.icon},className:FFe});return nx(()=>{F.current?.open||F.current?.showModal()},20),nx(()=>{l(!0)},220),y.jsx(pi.dialog,{ref:F,className:Ge(BFe,W1.classNames.fullWidth),layout:!0,initial:{[W3]:"0px",[G3]:"5%"},animate:{[W3]:"3px",[G3]:"60%"},exit:{[W3]:"0px",[G3]:"0%",transition:{duration:.1}},onClick:Z=>{Z.stopPropagation(),Z.target?.nodeName?.toUpperCase()==="DIALOG"&&F.current?.close()},onDoubleClick:nn,onPointerDown:nn,onClose:Z=>{Z.stopPropagation(),G()},children:y.jsx(W1,{forwardProps:!0,removeScrollBar:!1,children:y.jsxs(pi.div,{layout:!0,layoutRoot:!0,drag:!0,dragControls:$,dragElastic:0,dragMomentum:!1,dragListener:!1,"data-likec4-color":v?.color??w.color,className:OFe,initial:{top:P,left:O,width:j,height:A,opacity:0,originX:L,originY:H,scale:Math.max(T,.65)},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.9,translateY:-10,transition:{duration:.1}},style:{width:M,height:V},children:[y.jsxs("div",{className:IFe,onPointerDown:Z=>$.start(Z),children:[y.jsxs(Ir,{alignItems:"start",justify:"space-between",gap:"sm",mb:"sm",flexWrap:"nowrap",children:[y.jsxs(Ir,{alignItems:"start",gap:"sm",style:{cursor:"default"},flexWrap:"nowrap",children:[Y,y.jsxs("div",{children:[y.jsx(at,{component:"div",className:LFe,children:w.title}),U&&y.jsx(at,{component:"div",c:"dimmed",fz:"sm",fw:500,lh:1.3,lineClamp:1,children:U})]})]}),y.jsx(ep,{size:"lg",onClick:Z=>{Z.stopPropagation(),G()}})]}),y.jsxs(Ir,{alignItems:"baseline",gap:"sm",flexWrap:"nowrap",children:[y.jsxs("div",{children:[y.jsx(YQ,{children:"kind"}),y.jsx(Ks,{radius:"sm",size:"sm",fw:600,color:"gray",style:{cursor:"pointer"},onClick:Z=>{Z.stopPropagation(),f.openSearch(`kind:${w.kind}`)},children:w.kind})]}),y.jsxs("div",{style:{flex:1},children:[y.jsx(YQ,{children:"tags"}),y.jsxs(Zs,{gap:4,flex:1,mt:6,wrap:"wrap",children:[w.tags.map(Z=>y.jsx(U3,{tag:Z,cursor:"pointer",onClick:I=>{I.stopPropagation(),f.openSearch(`#${Z}`)}},Z)),w.tags.length===0&&y.jsx(Ks,{radius:"sm",size:"sm",fw:600,color:"gray",children:"—"})]})]}),y.jsxs(Vw,{style:{alignSelf:"flex-start"},children:[_&&y.jsx(lr,{component:"a",href:_.url,target:"_blank",size:"lg",variant:"default",radius:"sm",children:y.jsx(HQ,{stroke:1.6,style:{width:"65%"}})}),y.jsx(zMe,{feature:"Vscode",children:y.jsx(GQ,{label:"Open source",children:y.jsx(lr,{size:"lg",variant:"default",radius:"sm",onClick:Z=>{Z.stopPropagation(),f.openSource({element:w.id})},children:y.jsx(am,{stroke:1.8,style:{width:"62%"}})})})}),C&&y.jsx(GQ,{label:"Open default view",children:y.jsx(lr,{size:"lg",variant:"default",radius:"sm",onClick:Z=>{Z.stopPropagation(),f.navigateTo(C.id,r??void 0)},children:y.jsx(gi,{style:{width:"70%"}})})})]})]})]}),y.jsx(pK,{children:y.jsxs(op,{value:u,onChange:Z=>p(Z),variant:"none",classNames:{root:HFe,list:UFe,tab:WFe,panel:GFe},children:[y.jsx(py,{children:vHe.map(Z=>y.jsx(Nf,{value:Z,children:Z},Z))}),y.jsx(Js,{value:"Properties",children:y.jsx(Jl,{scrollbars:"y",type:"scroll",offsetScrollbars:!0,children:y.jsxs(Se,{className:YFe,pt:"xs",children:[w.hasSummary&&y.jsxs(y.Fragment,{children:[y.jsx(r0,{children:"summary"}),y.jsx(wp,{value:w.summary})]}),y.jsxs(y.Fragment,{children:[y.jsx(r0,{children:"description"}),y.jsx(wp,{value:w.description,emptyText:"no description"})]}),w.technology&&y.jsx(xHe,{title:"technology",children:w.technology}),w.links.length>0&&y.jsxs(y.Fragment,{children:[y.jsx(r0,{children:"links"}),y.jsx(Ir,{gap:"xs",flexWrap:"wrap",children:w.links.map((Z,I)=>y.jsx(vC,{value:Z},I))})]}),w.$element.metadata&&y.jsx(wHe,{value:w.$element.metadata})]})})}),y.jsx(Js,{value:"Relationships",children:y.jsx(sp,{overrides:{enableRelationshipBrowser:!1,enableNavigateTo:!1},children:i&&u==="Relationships"&&y.jsx(pHe,{element:w,node:v??null})})}),y.jsx(Js,{value:"Views",children:y.jsx(Jl,{scrollbars:"y",type:"auto",children:y.jsxs(Io,{gap:"lg",children:[x.length>0&&y.jsxs(Se,{children:[y.jsx(WQ,{label:"views of the element (scoped)"}),y.jsx(Io,{gap:"sm",children:x.map(Z=>y.jsx(XQ,{view:Z,onNavigateTo:I=>f.navigateTo(I,r??void 0)},Z.id))})]}),k.length>0&&y.jsxs(Se,{children:[y.jsx(WQ,{label:"views including this element"}),y.jsx(Io,{gap:"sm",children:k.map(Z=>y.jsx(XQ,{view:Z,onNavigateTo:I=>f.navigateTo(I,r??void 0)},Z.id))})]})]})})}),y.jsx(Js,{value:"Structure",children:y.jsx(Jl,{scrollbars:"y",type:"auto",children:y.jsx(gHe,{element:w})})}),y.jsx(Js,{value:"Deployments",children:y.jsx(Jl,{scrollbars:"y",type:"auto",children:y.jsx(pVe,{elementFqn:w.id})})})]})}),y.jsx(pi.div,{className:ZFe,drag:!0,dragElastic:0,dragMomentum:!1,onDrag:B,dragConstraints:{top:0,left:0,right:0,bottom:0}})]})})})}const XQ=({view:e,onNavigateTo:r})=>y.jsx(pr,{className:VFe,onClick:n=>r(e.id,n),children:y.jsxs(en,{gap:6,align:"start",wrap:"nowrap",children:[y.jsx($a,{size:"sm",variant:"transparent",children:e._type==="deployment"?y.jsx(x$,{stroke:1.8}):y.jsx(gi,{stroke:1.8})}),y.jsx(Se,{children:y.jsx(at,{component:"div",className:qFe,lineClamp:1,children:e.title||"untitled"})})]})});function xHe({title:e,emptyValue:r="undefined",children:n,style:o,...a}){return y.jsxs(y.Fragment,{children:[y.jsx(r0,{children:e}),y.jsx(at,{component:"div",...H1(n)&&{c:"dimmed"},fz:"md",style:{whiteSpace:"preserve-breaks",userSelect:"all",...o},...a,children:n||r})]})}function wHe({value:e}){const r=Wx(e).sort(([n],[o])=>n.localeCompare(o));return y.jsx(pK,{children:y.jsxs(y.Fragment,{children:[y.jsx(r0,{style:{justifySelf:"end",textAlign:"right"},children:"metadata"}),y.jsx(Se,{className:fe({display:"grid",gridTemplateColumns:"min-content 1fr",gridAutoRows:"min-content",gap:"[12px 16px]",alignItems:"baseline",justifyItems:"stretch"}),children:r.map(([n,o])=>y.jsx(eVe,{label:n,value:o},n))})]})})}const kHe=e=>({viewId:e.context.currentView.id,fromNode:e.context.initiatedFrom.node,rectFromNode:e.context.initiatedFrom.clientRect,fqn:e.context.subject});function _He({actorRef:e,onClose:r}){const n=pn(e,kHe,Or);return y.jsx(tC.Provider,{value:e,children:y.jsx(bHe,{onClose:r,...n})})}const l2="--_blur",s2="--_opacity",SHe="--_level",n0=S.forwardRef(({onClose:e,className:r,classes:n,overlayLevel:o=0,children:a,fullscreen:i=!1,withBackdrop:l=!0,backdrop:s,openDelay:c=130,...d},u)=>{const[p,f]=S.useState(c===0),g=wq(p),v=S.useRef(null),w=S.useRef(!1),x=AZ()!==!0,k=S.useRef(e);k.current=e;const C=$8(()=>{w.current||(w.current=!0,k.current())},[],50);S.useLayoutEffect(()=>{v.current?.open||v.current?.showModal()},[]),nx(()=>{f(!0)},c>0?c:void 0);const _=dFe({fullscreen:i,withBackdrop:l});let $=o>0?"50%":"60%";return s?.opacity!==void 0&&($=`${s.opacity*100}%`),y.jsx(pi.dialog,{ref:$r(v,g,u),className:Ge(n?.dialog,r,_,i&&W1.classNames.fullWidth),layout:!0,style:{[SHe]:o},...x?{initial:{[l2]:"0px",[s2]:"0%",scale:.85,opacity:0},animate:{[l2]:o>0?"4px":"8px",[s2]:$,scale:1,opacity:1,translateY:0},exit:{opacity:0,scale:.98,translateY:-20,[l2]:"0px",[s2]:"0%"}}:{initial:{[l2]:"8px",[s2]:$}},onClick:z=>{if(z.stopPropagation(),z.target?.nodeName?.toUpperCase()==="DIALOG"){v.current?.close();return}},onCancel:z=>{z.preventDefault(),z.stopPropagation(),C()},onDoubleClick:nn,onPointerDown:nn,onClose:z=>{z.stopPropagation(),C()},...d,children:y.jsx(W1,{forwardProps:!0,children:y.jsx("div",{className:Ge(n?.body,"likec4-overlay-body"),children:p&&y.jsx(y.Fragment,{children:a})})})})});n0.displayName="Overlay";const c2=(e,r)=>e.size>2&&r.size!==e.size?new Set(Wc([...Xb(e).flatten(),...r])):e.size>1?new Set(Wc([...e])):e;function EHe(e,r){const n=new Set,o=new Set,a=new Set,i={sources:new Set,targets:new Set},l=(s,c)=>{c==="source"?(n.add(s),i.sources.add(s)):(a.add(s),i.targets.add(s))};for(const s of e){const c=r.findEdge(s),d=c?[...c.relationships("model")]:[];if(!c||!xn(d,1)||!c.source.hasElement()||!c.target.hasElement())continue;const u=c.source.element,p=c.target.element;l(u,"source"),l(p,"target");for(const f of d){if(o.add(f),f.source!==u){l(f.source,"source");for(const g of f.source.ancestors()){if(g===u)break;n.add(g)}}if(f.target!==p){l(f.target,"target");for(const g of f.target.ancestors()){if(g===p)break;a.add(g)}}}}return{sources:c2(n,i.sources),targets:c2(a,i.targets),relationships:o}}function CHe({source:e,target:r}){const n=new Set,o=new Set,a=new Set,i={sources:new Set,targets:new Set},l=(c,d)=>{d==="source"?(n.add(c),i.sources.add(c)):(a.add(c),i.targets.add(c))};e&&l(e,"source"),r&&l(r,"target");const[s]=Ake.findConnection(e,r,"directed");if(!s)return{sources:n,targets:a,relationships:o};for(const c of s.relations){const d=c.source,u=c.target;if(l(d,"source"),l(u,"target"),o.add(c),e!==d){He(Yn(e,d),`${e.id} is not an ancestor of ${d.id}`);for(const p of d.ancestors()){if(p===e)break;n.add(p)}}if(r!==u){He(Yn(r,u),`${r.id} is not an ancestor of ${u.id}`);for(const p of u.ancestors()){if(p===r)break;a.add(p)}}}return{sources:c2(n,i.sources),targets:c2(a,i.targets),relationships:o}}const ZQ=S.createContext(null);function w$(){return mt(S.useContext(ZQ),"No RelationshipDetailsActorContext")}function KQ(e,r=Or){const n=it(e),o=w$();return pn(o,n,r)}function k$(){const e=w$();return S.useMemo(()=>({actor:e,get rootElementId(){return`relationship-details-${e.sessionId.replaceAll(":","_")}`},getState:()=>e.getSnapshot().context,send:e.send,navigateTo:(...r)=>{r.length===1?e.send({type:"navigate.to",params:{edgeId:r[0]}}):e.send({type:"navigate.to",params:{source:r[0],target:r[1]}})},fitDiagram:()=>{e.send({type:"fitDiagram"})},close:()=>{e._parent?e._parent?.send({type:"close",actorId:e.id}):e.send({type:"close"})}}),[e])}const cl={dagre:{ranksep:60,nodesep:35,edgesep:25},edgeLabel:{width:220,height:14},nodeWidth:330,nodeHeight:180,compound:{labelHeight:2,paddingTop:50,paddingBottom:32}};function $He(){const e=new e2.graphlib.Graph({directed:!0,compound:!0,multigraph:!0});return e.setGraph({...cl.dagre,rankdir:"LR"}),e.setDefaultEdgeLabel(()=>({...cl.edgeLabel})),e.setDefaultNodeLabel(()=>({})),e}const _$="-port";function QQ(e,r,n){const o=new Ln(i=>({id:`${e}-${i}`,portId:`${e}-${i}`})),a=Xb(r);for(const i of a.sorted){const l=a.children(i).length>0,s=i.id,c=`${e}-${s}`,d=l?`${c}${_$}`:c;o.set(s,{id:c,portId:d}),n.setNode(c,{column:e,element:i,isCompound:l,portId:d,inPorts:[],outPorts:[],width:cl.nodeWidth,height:cl.nodeHeight}),l&&(n.setNode(d,{element:i,portId:d,isCompound:l,inPorts:[],outPorts:[],width:cl.nodeWidth-cl.dagre.ranksep,height:cl.compound.labelHeight}),n.setParent(d,c));const u=a.parent(i);u&&n.setParent(c,`${e}-${u.id}`)}return{...a,byId:i=>{const l=a.byId(i),s=o.get(l.id);return{element:l,graph:s}},graphNodes:o}}function zHe(e){return e2.layout(e,{}),r=>{const n=e.node(r),{x:o,y:a,width:i,height:l}=n;return{position:{x:o-Math.round(i/2),y:a-Math.round(l/2)},width:i,height:l}}}function RHe(e,r){const n=$He(),o=QQ("sources",e.sources,n),a=QQ("targets",e.targets,n),i=Array.from(e.relationships).map(k=>{const C=o.byId(k.source.id).graph,_=a.byId(k.target.id).graph,$=k.id;return n.node(C.id).outPorts.push(_.id),n.node(_.id).inPorts.push(C.id),n.setEdge(C.portId,_.portId,{...cl.edgeLabel},$),{name:$,source:C.id,sourceHandle:C.id+"_out"+(n.node(C.id).outPorts.length-1),target:_.id,targetHandle:_.id+"_in"+(n.node(_.id).inPorts.length-1),relationship:k}}),l=[...o.graphNodes.values(),...a.graphNodes.values()];for(const{id:k}of l){const C=n.node(k);if(C.isCompound)continue;const _=Math.max(n.inEdges(k)?.length??0,n.outEdges(k)?.length??0);_>3&&(C.height=C.height+(_-4)*14)}const s=n.edgeCount();if(s>5)for(const k of n.edges())n.setEdge(k,{...cl.edgeLabel,width:s>10?800:400});const c=zHe(n),d=Jr(l,Wu(k=>k.id===k.portId),Yx(k=>[k.id,c(k.id)]));function u(k){return d[k]??=Jr(n.children(k)??[],Wu(C=>!C.endsWith(_$)),un(C=>u(C)),YV(C=>{He(C.length>0,`Node ${k} has no nested nodes`)}),Zx((C,_)=>({minY:Math.min(C.minY,_.position.y),maxY:Math.max(C.maxY,_.position.y+_.height)}),{minY:1/0,maxY:-1/0}),({minY:C,maxY:_})=>{const{position:{x:$},width:z}=c(k);return C=C-cl.compound.paddingTop,_=_+cl.compound.paddingBottom,{position:{x:$,y:C},width:z,height:_-C}})}function p(k){const C=n.parent(k);return C?p(C)+1:0}function f(k){const C=n.children(k)??[];return C.length===0?0:1+Math.max(...C.map(f))}const g=(k,C,_)=>Jr(_,un(($,z)=>({port:k+"_"+C+z,topY:u($).position.y})),Kx(Yu("topY")),un(Yu("port")));let v=0,w=0;const x=l.map(({id:k})=>{const{element:C,inPorts:_,outPorts:$,column:z}=n.node(k);let{position:j,width:A,height:R}=u(k);const T=n.parent(k),O=(n.children(k)??[]).filter(V=>!V.endsWith(_$));v=Math.min(v,j.x),w=Math.min(w,j.y);const P=r?f1(C.scopedViews(),V=>V.id!==r.id)?.id??null:null,L=r?.findNodeWithElement(C.id),H=r&&!L?f1(C.ancestors(),V=>!!r.findNodeWithElement(V.id))?.id:null,M=L??(H&&r?.findNodeWithElement(H));return p1({id:k,parent:T??null,x:j.x,y:j.y,title:C.title,description:Os(C.$element)??null,technology:C.technology,tags:[...C.tags],links:null,color:M?.color??C.color,shape:L?.shape??C.shape,icon:L?.icon??C.icon??"none",modelRef:C.id,kind:C.kind,level:p(k),labelBBox:{x:j.x,y:j.y,width:A,height:R},style:nd({...(L??M)?.style,...C.$element.style},["shape","color","icon"]),navigateTo:P,...O.length>0&&{depth:f(k)},children:O,width:A,height:R,column:z,ports:{in:g(k,"in",_),out:g(k,"out",$)}})});return{bounds:{x:Math.min(v,0),y:Math.min(w,0),width:n.graph().width??100,height:n.graph().height??100},nodes:x,edges:n.edges().reduce((k,C)=>{const _=n.edge(C),$=C.name;if(!$)return k;const{name:z,source:j,target:A,relationship:R,sourceHandle:T,targetHandle:O}=F1(i,V=>V.name===$),P=R.title??"untitled",L=R.navigateTo?.id??null,H=Os(R.$relationship)??null,M=R.technology??null;return k.push({id:z,source:j,sourceHandle:T,target:A,targetHandle:O,label:P,color:R.color,description:H,...L&&{navigateTo:L},...M&&{technology:M},points:_.points.map(V=>[V.x,V.y]),line:R.line,relationId:R.id,parent:null}),k},[])}}const S$=fe.raw({display:"inline-flex",alignItems:"center",padding:"[6px 2px 0 2px]","& .mantine-Text-root":{color:"mantine.colors.text/90",fontSize:"xs",fontWeight:500,lineHeight:"1.2"}}),JQ=fe({paddingLeft:"1",gridColumn:1},S$),jHe=fe({gridColumn:2},S$),eJ=fe({gridColumn:3,paddingRight:"1"},S$),tJ="likec4-edge-label",THe=Ge(tJ,fe({display:"grid",gridColumnStart:1,gridColumnEnd:4,borderBottom:"1px solid",borderBottomColor:"mantine.colors.defaultBorder",marginBottom:"0",padding:"[0 4px 5px 4px]",width:"100%","& .mantine-Text-root":{fontSize:"xxs",fontWeight:400,lineHeight:"xs",color:"mantine.colors.dimmed"}})),AHe=fe({display:"contents",[`&:last-child .${tJ}`]:{borderBottom:"none",marginBottom:"0"},"& > *":{transition:"all 0.15s ease-in"},"&:is(:hover, [data-selected=true]) > *":{transition:"all 0.15s ease-out",cursor:"pointer",backgroundColor:"mantine.colors.defaultHover"}}),DHe=fe({display:"grid",gridTemplateColumns:"1fr 30px 1fr",gridAutoRows:"min-content max-content",gap:"0",alignItems:"stretch"});fe({display:"grid",gridTemplateColumns:"min-content 1fr",gridAutoRows:"min-content max-content",gap:"[10px 12px]",alignItems:"baseline",justifyItems:"start"});const MHe=fe({maxHeight:["70vh","calc(100cqh - 70px)"]}),NHe=({edge:e,view:r})=>{const n=k$(),o=S.useRef(null),a=r.nodes.find(s=>s.id===e.source),i=r.nodes.find(s=>s.id===e.target),l=r.edges.flatMap(s=>{const c=r.nodes.find(u=>u.id===s.source),d=r.nodes.find(u=>u.id===s.target);return c&&d?{id:s.id,source:c,target:d,label:s.label}:[]});return!a||!i||l.length===0?null:y.jsxs(br,{position:"bottom-start",shadow:"md",keepMounted:!0,withinPortal:!1,closeOnClickOutside:!0,clickOutsideEvents:["pointerdown","mousedown","click"],onOpen:()=>{setTimeout(()=>{o.current?.querySelector(`[data-edge-id="${e.id}"]`)?.scrollIntoView({behavior:"instant",block:"nearest"})},100)},children:[y.jsx(hd,{children:y.jsxs(Vn,{size:"xs",variant:"default",fw:"500",style:{padding:"0.25rem 0.75rem"},rightSection:y.jsx(m$,{size:16}),children:[y.jsx(Se,{className:JQ,maw:160,p:0,mod:{"likec4-color":a.color},children:y.jsx(at,{component:"span",truncate:!0,children:a.title})}),y.jsx($a,{color:"dark",variant:"transparent",size:"xs",children:y.jsx(sm,{style:{width:"80%"}})}),y.jsx(Se,{className:eJ,maw:160,p:0,mod:{"likec4-color":i.color},children:y.jsx(at,{component:"span",truncate:!0,children:i.title})})]})}),y.jsx(Xs,{p:0,miw:250,maw:400,children:y.jsx(ta,{className:MHe,scrollbars:"y",type:"never",viewportRef:o,children:y.jsx(Se,{className:DHe,p:"xs",maw:400,children:l.map(s=>y.jsxs("div",{className:AHe,"data-selected":s.id===e.id,onClick:c=>{c.stopPropagation(),n.navigateTo(s.id)},children:[y.jsx(Se,{className:JQ,mod:{"edge-id":s.id,"likec4-color":s.source.color},children:y.jsx(at,{component:"span",truncate:!0,children:s.source.title})}),y.jsx(Se,{className:jHe,children:y.jsx($a,{color:"dark",variant:"transparent",size:"xs",children:y.jsx(sm,{style:{width:"80%"}})})}),y.jsx(Se,{className:eJ,mod:{"likec4-color":s.target.color},children:y.jsx(at,{component:"span",truncate:!0,children:s.target.title})}),y.jsx(Se,{className:THe,children:y.jsx(at,{component:"span",truncate:!0,children:s.label||"untitled"})})]},s.id))})})})]})},PHe=g$(e=>{const{enableNavigateTo:r}=sr(),{data:{navigateTo:n}}=e,[o,a,i]=Ax(e),l=Nt();return y.jsxs(Ky,{...e,children:[y.jsx(Qy,{edgeProps:e,svgPath:o}),y.jsx(o2,{edgeProps:e,labelPosition:{x:a,y:i,translate:"translate(-50%, 0)"},style:{maxWidth:Math.abs(e.targetX-e.sourceX-100)},children:y.jsx(Zy,{edgeProps:e,children:r&&n&&y.jsx(n2,{...e,onClick:s=>{s.stopPropagation(),l.navigateTo(n)}})})})]})}),BHe=e=>{const{enableNavigateTo:r,enableVscode:n}=sr(),o=Nt(),a=a2(),i=[],{navigateTo:l,fqn:s}=e.data;return l&&r&&a!==l&&i.push({key:"navigate",icon:y.jsx(gi,{}),onClick:c=>{c.stopPropagation(),o.navigateTo(l)}}),s&&i.push({key:"relationships",icon:y.jsx(Jy,{}),onClick:c=>{c.stopPropagation(),o.openRelationshipsBrowser(s)}}),s&&n&&i.push({key:"goToSource",icon:y.jsx(am,{}),onClick:c=>{c.stopPropagation(),o.openSource({element:s})}}),y.jsx(i2,{buttons:i,...e})};function OHe(e,r){return e.id===r.id&&tt(e.type,r.type)&&tt(e.selected??!1,r.selected??!1)&&tt(e.dragging??!1,r.dragging??!1)&&tt(e.width??0,r.width??0)&&tt(e.height??0,r.height??0)&&tt(e.zIndex??0,r.zIndex??0)&&tt(e.data,r.data)}const rJ=Symbol.for("isMemoized");function ac(e,r="Node"){if(e.hasOwnProperty(rJ))return e;const n=S.memo(e,OHe);return n.displayName=r,Object.defineProperty(n,rJ,{enumerable:!1,writable:!1,value:!0}),n}const nJ=e=>{const r=Nt();return y.jsx(v$,{...e,onClick:n=>{n.stopPropagation(),r.openElementDetails(e.data.fqn)}})},IHe=ac(e=>{const{enableElementTags:r}=sr();return y.jsxs(im,{nodeProps:e,children:[y.jsx(lm,{...e}),y.jsx(sl,{...e}),r&&y.jsx(Wy,{...e}),y.jsx(nJ,{...e}),y.jsx(BHe,{...e}),y.jsx(FHe,{...e})]})}),LHe=ac(e=>y.jsxs(e0,{nodeProps:e,children:[y.jsx(nJ,{...e}),y.jsx(t0,{...e}),y.jsx(VHe,{...e})]})),FHe=({data:{ports:e,height:r}})=>y.jsxs(y.Fragment,{children:[e.in.map((n,o)=>y.jsx(Oo,{id:n,type:"target",position:Ue.Left,style:{visibility:"hidden",top:`${15+(o+1)*((r-30)/(e.in.length+1))}px`}},n)),e.out.map((n,o)=>y.jsx(Oo,{id:n,type:"source",position:Ue.Right,style:{visibility:"hidden",top:`${15+(o+1)*((r-30)/(e.out.length+1))}px`}},n))]}),VHe=({data:e})=>y.jsxs(y.Fragment,{children:[e.ports.in.map((r,n)=>y.jsx(Oo,{id:r,type:"target",position:Ue.Left,style:{visibility:"hidden",top:`${20*(n+1)}px`}},r)),e.ports.out.map((r,n)=>y.jsx(Oo,{id:r,type:"source",position:Ue.Right,style:{visibility:"hidden",top:`${20*(n+1)}px`}},r))]}),qHe={element:IHe,compound:LHe},HHe={relationship:PHe};function UHe({actorRef:e}){const r=S.useRef(null);return r.current==null&&(r.current={defaultNodes:[],defaultEdges:[]}),y.jsx(ZQ.Provider,{value:e,children:y.jsx(qx,{...r.current,children:y.jsx(rm,{id:e.sessionId,inherit:!1,children:y.jsxs(Cn,{children:[y.jsx(XHe,{},"xyflow"),y.jsx(GHe,{},"sync")]})})})})}const WHe=e=>({...e.context.subject,viewId:e.context.viewId}),GHe=S.memo(()=>{const e=w$(),r=pn(e,WHe,tt),n=Lo(),o=n.findView(r.viewId)??null,a=S.useMemo(()=>{let s;if("edgeId"in r&&Kn(r.edgeId)){He(o,`view ${r.viewId} not found`);const c=mt(o.findEdge(r.edgeId),`edge ${r.edgeId} not found in ${r.viewId}`);s=EHe([c.id],o)}else if(r.source&&r.target)s=CHe({source:n.element(r.source),target:n.element(r.target)});else return null;return RHe(s,o)},[r,o,n]),i=vr(),l=cf();return S.useEffect(()=>{l.viewportInitialized&&e.send({type:"xyflow.init",instance:l,store:i})},[i,l.viewportInitialized,e]),S.useEffect(()=>{a!==null&&e.send({type:"update.layoutData",data:a})},[a,e]),null}),YHe=({context:e})=>({initialized:e.initialized.xydata&&e.initialized.xyflow,nodes:e.xynodes,edges:e.xyedges}),XHe=S.memo(()=>{const e=k$(),{initialized:r,nodes:n,edges:o}=KQ(YHe,tt);return y.jsxs(kC,{id:e.rootElementId,nodes:n,edges:o,className:Ge(r?"initialized":"not-initialized","likec4-relationship-details"),nodeTypes:qHe,edgeTypes:HHe,onNodesChange:Qn(a=>{e.send({type:"xyflow.applyNodeChanges",changes:a})}),onEdgesChange:Qn(a=>{e.send({type:"xyflow.applyEdgeChanges",changes:a})}),fitViewPadding:.05,onNodeClick:Qn((a,i)=>{a.stopPropagation(),e.send({type:"xyflow.nodeClick",node:i})}),onEdgeClick:Qn((a,i)=>{a.stopPropagation(),e.send({type:"xyflow.edgeClick",edge:i})}),onPaneClick:Qn(()=>{e.send({type:"xyflow.paneClick"})}),onDoubleClick:Qn(()=>{e.send({type:"xyflow.paneDblClick"})}),onViewportResize:Qn(()=>{e.send({type:"xyflow.resized"})}),onEdgeMouseEnter:Qn((a,i)=>{i.data.hovered||e.send({type:"xyflow.edgeMouseEnter",edge:i})}),onEdgeMouseLeave:Qn((a,i)=>{i.data.hovered&&e.send({type:"xyflow.edgeMouseLeave",edge:i})}),onSelectionChange:Qn(a=>{e.send({type:"xyflow.selectionChange",...a})}),nodesDraggable:!1,nodesSelectable:!0,fitView:!1,pannable:!0,zoomable:!0,children:[y.jsx(KHe,{}),y.jsx(ed,{position:"top-right",children:y.jsx(lr,{variant:"default",color:"gray",onClick:a=>{a.stopPropagation(),e.close()},children:y.jsx(lp,{})})})]})}),ZHe=({context:e})=>({subject:e.subject,viewId:e.viewId}),KHe=S.memo(()=>{const{subject:e,viewId:r}=KQ(ZHe,tt),n=Lo().findView(r);if(!n||!n.isDiagram())return null;const o=[...n.edges()];let a="edgeId"in e&&Kn(e.edgeId)?o.find(i=>i.id===e.edgeId):F1(o,i=>i.source.element?.id===e.source&&i.target.element?.id===e.target)||F1(o,i=>(i.source.element?.id===e.source||Yn(i.source.element?.id??"__",e.source??"__"))&&(i.target.element?.id===e.target||Yn(i.target.element?.id??"__",e.target??"__")));return a?y.jsx(QHe,{edge:a.$edge,view:n.$view}):null}),QHe=({edge:e,view:r})=>{const n=k$(),o=e.id,[a,i,{history:l,current:s}]=jq(e.id);S.useEffect(()=>{a!==o&&i.set(o)},[o]),S.useEffect(()=>{a!==o&&n.navigateTo(a)},[a]);const c=s>0,d=s+1{u.stopPropagation(),i.back()},children:y.jsx(VQ,{})})},"back"),d&&y.jsx(pi.div,{layout:!0,initial:{opacity:.05,transform:"translateX(5px)"},animate:{opacity:1,transform:"translateX(0)"},exit:{opacity:0,transform:"translateX(5px)"},children:y.jsx(lr,{variant:"default",color:"gray",onClick:u=>{u.stopPropagation(),i.forward()},children:y.jsx(Sd,{})})},"forward"),y.jsx(en,{gap:"xs",wrap:"nowrap",ml:"sm",children:y.jsx(NHe,{edge:e,view:r})})]})})})},JHe=e=>e.context.overlays.map(r=>{switch(r.type){case"relationshipsBrowser":return e.children[r.id]?{type:r.type,actorRef:e.children[r.id]}:null;case"relationshipDetails":return e.children[r.id]?{type:r.type,actorRef:e.children[r.id]}:null;case"elementDetails":return e.children[r.id]?{type:r.type,actorRef:e.children[r.id]}:null;default:Xo(r)}}).filter(IV),eUe=(e,r)=>e.length===r.length&&e.every((n,o)=>n.actorRef===r[o].actorRef);function tUe({overlaysActorRef:e}){const r=Nt(),n=pn(e,JHe,eUe),o=AZ()??!1,a=n.some(s=>s.type==="elementDetails");Ed(()=>{const s=r.getContext().xystore.getState().domNode?.querySelector(".react-flow__renderer");if(!s||o)return;const c=NOe(s,{opacity:a?.7:1,filter:a?"grayscale(1)":"grayscale(0)",transform:a?"perspective(400px) translateZ(-12px) translateY(3px)":"translateY(0)"},{duration:a?.35:.17});let d=null;return a||(d=setTimeout(()=>{s.style.transform="",s.style.filter="",d=null},450)),()=>{d&&clearTimeout(d),c.stop()}},[a]);const i=s=>{e.send({type:"close",actorId:s.id})},l=n.map((s,c)=>{switch(s.type){case"relationshipsBrowser":return y.jsx(n0,{overlayLevel:c,onClose:()=>i(s.actorRef),children:y.jsx(qQ,{actorRef:s.actorRef})},s.actorRef.sessionId);case"relationshipDetails":return y.jsx(n0,{overlayLevel:c,onClose:()=>i(s.actorRef),children:y.jsx(UHe,{actorRef:s.actorRef})},s.actorRef.sessionId);case"elementDetails":return y.jsx(_He,{actorRef:s.actorRef,onClose:()=>i(s.actorRef)},s.actorRef.sessionId);default:Xo(s)}});return y.jsx(sp.Overlays,{children:y.jsx(pS,{onReset:()=>e.send({type:"close.all"}),children:y.jsx(rm,{children:y.jsx(Cn,{mode:"popLayout",children:l})})})})}const[rUe,$d]=ei("SearchActorContext"),nUe=e=>e.context.searchValue;function oUe(){const e=$d(),r=pn(e,nUe),n=S.useCallback(o=>{e.send({type:"change.search",search:o})},[e]);return[r,n]}const aUe=e=>{const r=e.context.searchValue.trim().toLowerCase();return r.length>1?r:""};function E$(){const e=$d();return S.useDeferredValue(pn(e,aUe))}function iUe(){const e=$d();return S.useCallback(r=>{e.send({type:"change.search",search:r})},[e])}const lUe=e=>e.context.pickViewFor;function sUe(){const e=$d();return pn(e,lUe)}const C$=fe.raw({outline:"none",background:"mantine.colors.primary[8]",borderColor:"mantine.colors.primary[9]"}),d2=".mantine-Tree-node:focus > .mantine-Tree-label &",cUe=fe.raw({display:"flex",width:"100%",background:"mantine.colors.body",rounded:"sm",padding:"[12px 8px 12px 14px]",minHeight:"60px",gap:"2",border:"1px solid",borderColor:"mantine.colors.defaultBorder",_hover:{...C$,borderColor:"mantine.colors.primary[9]",background:"mantine.colors.primary[8]/60"},_focus:C$,[d2]:C$,_dark:{borderColor:"transparent",background:"mantine.colors.dark[6]/80"},_light:{background:"mantine.colors.white/80",_hover:{borderColor:"mantine.colors.primary[6]",backgroundColor:"mantine.colors.primary[5]"}}}),u2="likec4-focusable",p2={ref:"var(--likec4-icon-size, 24px)"},dUe=fe.raw({color:{base:"mantine.colors.dimmed",_light:"mantine.colors.gray[5]",_groupHover:"mantine.colors.primary[0]",_groupFocus:"mantine.colors.primary[0]"},[d2]:{color:"mantine.colors.primary[0]"},flex:`0 0 ${p2.ref}`,height:p2.ref,width:p2.ref,display:"flex",alignItems:"center",justifyContent:"center",alignSelf:"flex-start","--ti-size":p2.ref,"& svg, & img":{width:"100%",height:"auto",maxHeight:"100%",pointerEvents:"none"},"& img":{objectFit:"contain"},"&.likec4-shape-icon svg":{strokeWidth:1.5}}),uUe=fe.raw({fontSize:"16px",fontWeight:500,lineHeight:"1.1",":where([data-disabled]) &":{opacity:.4},color:{base:"mantine.colors.dark[1]",_light:"mantine.colors.gray[7]",_groupHover:{base:"mantine.colors.primary[1]",_light:"mantine.colors.white"},_groupFocus:{base:"mantine.colors.primary[1]",_light:"mantine.colors.white"}},[d2]:{color:{base:"mantine.colors.primary[1]",_light:"mantine.colors.white"}}}),oJ=fe.raw({color:{base:"mantine.colors.dimmed",_groupHover:{base:"mantine.colors.primary[1]",_light:"mantine.colors.primary[0]"},_groupFocus:"mantine.colors.primary[0]"},[d2]:{color:"mantine.colors.primary[0]"}}),pUe=fe.raw(oJ,{marginTop:"1",fontSize:"12px",lineHeight:"1.4",":where([data-disabled]) &":{opacity:.85}}),hUe=fe({width:"100%",height:"100%",border:"2px dashed",borderColor:"mantine.colors.defaultBorder",rounded:"md",display:"flex",justifyContent:"center",alignItems:"center",fontSize:"md",color:"mantine.colors.dimmed",padding:"md",paddingBlock:"xl"}),aJ=k4e({slots:["root","icon","title","description","descriptionColor"],className:"search-button",base:{root:cUe,icon:dUe,title:uUe,description:pUe,descriptionColor:oJ}}),$$="@container likec4-tree (max-width: 450px)",fUe=fe({outline:"none",marginBottom:"2"}),mUe=fe(FW.raw({containerName:"likec4-tree"}),{containerType:"inline-size",height:"100%"}),gUe=fe({display:"flex",alignItems:"baseline",outline:"none !important",gap:"1"}),yUe=fe({marginTop:"2"}),vUe=fe({color:"mantine.colors.dimmed"}),bUe=fe({[$$]:{flexDirection:"column-reverse",alignItems:"flex-start",gap:"0.5"}}),xUe=fe({fontSize:"10px",lineHeight:"1.3",display:"block",fontWeight:500,whiteSpace:"nowrap",padding:"[1px 5px]",borderRadius:"4px",background:"mantine.colors.dark[9]/30",_light:{background:"mantine.colors.gray[3]/20"}}),wUe=fe({"--likec4-icon-size":"24px",[$$]:{"--likec4-icon-size":"18px"}}),kUe=fe({flex:0,fontSize:"10px",fontWeight:500,whiteSpace:"nowrap",lineHeight:"1.1",[$$]:{display:"none"}});function bi(e){e.stopPropagation(),e.preventDefault()}function iJ(e){const r=e.getBoundingClientRect();return r.y+Math.floor(r.height/2)}function o0(e){if(!e){console.error("moveFocusToSearchInput: from is null or undefined");return}const r=e.getRootNode();if(!q1(r.querySelector)){console.error("moveFocusToSearchInput: root.querySelector is not a function");return}let n=r.querySelector("[data-likec4-search-input]");if(n){const o=n.value.length;n.focus(),n.setSelectionRange(o,o)}}function h2(e){if(!e){console.error("focusToFirstFoundElement: from is null or undefined");return}const r=e.getRootNode();if(!q1(r.querySelector)){console.error("focusToFirstFoundElement: root.querySelector is not a function");return}r.querySelector(`[data-likec4-search] .${u2}`)?.focus()}function lJ(e,r,n=`.${u2}`){if(!e)return console.error("queryAllFocusable: from is null or undefined"),[];const o=e.getRootNode();return q1(o.querySelectorAll)?[...o.querySelectorAll(`[data-likec4-search-${r}] ${n}`)]:(console.error("queryAllFocusable: root.querySelectorAll is not a function"),[])}const _Ue="likec4-view-btn",SUe=Ge(fe({flexWrap:"nowrap",display:"flex","&[data-disabled] .mantine-ThemeIcon-root":{opacity:.45}}),_Ue);fe({marginTop:"1",fontSize:"13px",lineHeight:"1.4",":where(.likec4-view-btn[data-disabled]) &":{opacity:.85}});const sJ=()=>y.jsx(hr,{className:hUe,children:"Nothing found"}),EUe=S.memo(()=>{const e=S.useRef(null);let r=[...Lo().views()],n=E$();return n&&(n.startsWith("kind:")?r=[]:r=r.filter(o=>n.startsWith("#")?o.tags.some(a=>a.toLocaleLowerCase().includes(n.slice(1))):`${o.id} ${o.title} ${o.description.text}`.toLocaleLowerCase().includes(n))),y.jsxs(Io,{ref:e,renderRoot:o=>y.jsx(zr,{layout:!0,...o}),gap:8,"data-likec4-search-views":!0,onKeyDown:o=>{if(o.key==="ArrowLeft"||o.key==="ArrowRight"){const a=o.target.getBoundingClientRect().y,i=lJ(e.current,"elements",".likec4-element-button");let l=i.length>1?i.find((s,c,d)=>iJ(s)>a||c===d.length-1):null;l??=df(i),l&&(o.stopPropagation(),l.focus());return}},children:[r.length===0&&y.jsx(sJ,{}),r.length>0&&y.jsx(Ow,{children:y.jsx(pr,{"data-likec4-view":!0,tabIndex:-1,onFocus:o=>{o.stopPropagation(),o0(e.current)}})}),r.map((o,a)=>y.jsx(zr,{layoutId:`@view${o.id}`,children:y.jsx(z$,{view:o,search:n,tabIndex:a===0?0:-1})},o.id))]})}),f2=aJ();function z$({className:e,view:r,loop:n=!1,search:o,focusOnElement:a,...i}){const l=$d(),s=Nt(),c=a2(),d=r.id===c,u=()=>{l.send({type:"close"}),setTimeout(d&&a?()=>{s.focusOnElement(a)}:()=>{s.navigateTo(r.id,void 0,a)},100)};return y.jsxs(pr,{...i,className:Ge(f2.root,"group",u2,SUe,e),"data-likec4-view":r.id,...d&&!a&&{"data-disabled":!0},onClick:p=>{p.stopPropagation(),u()},onKeyDown:Y1({siblingSelector:"[data-likec4-view]",parentSelector:"[data-likec4-search-views]",activateOnFocus:!1,loop:n,orientation:"vertical",onKeyDown:p=>{p.nativeEvent.code==="Space"&&(p.stopPropagation(),u())}}),children:[y.jsx($a,{variant:"transparent",className:f2.icon,children:r.isDeploymentView()?y.jsx(x$,{stroke:1.8}):y.jsx(gi,{stroke:1.8})}),y.jsxs(hr,{style:{flexGrow:1},children:[y.jsxs(en,{gap:"xs",wrap:"nowrap",align:"center",children:[y.jsx(Qs,{component:"div",highlight:o,className:f2.title,children:r.title||"untitled"}),d&&y.jsx(Ks,{size:"xs",fz:9,radius:"sm",children:"current"})]}),y.jsx(Qs,{highlight:r.description.nonEmpty?o:"",component:"div",className:f2.description,lineClamp:1,children:r.description.text||"No description"})]})]})}const dm=aJ(),CUe=S.memo(()=>{const e=Lo(),r=E$(),n=S.useMemo(()=>{const a=r.split(".");let i;Gu(a)||a[0]==="kind:"?i=e.elements():i=Bs(e.elements(),d=>r.startsWith("kind:")?d.kind.toLocaleLowerCase().startsWith(r.slice(5)):r.startsWith("#")?d.tags.some(u=>u.toLocaleLowerCase().includes(r.slice(1))):(d.title+" "+d.id+" "+d.summary.text).toLocaleLowerCase().includes(r));const l={},{all:s,roots:c}=Jr([...i],Wc,Zx((d,u)=>{const p={label:u.title,value:u.id,element:u,searchTerms:a,children:[]};l[p.value]=p;const f=d.all.findLast(g=>Yn(g.value,p.value));return f?(f.children.push(p),f.children.length>1&&f.children.sort(Xy)):d.roots.push(p),d.all.push(p),d},{all:[],roots:[]}));return{all:s,byid:l,roots:c.sort(Xy)}},[e,r]),o=cJ();return n.all.length===0?y.jsx(sJ,{}):y.jsx(zUe,{data:n,handleClick:o})}),$Ue=()=>{};function zUe({data:{all:e,byid:r,roots:n},handleClick:o}){const a=hy({multiple:!1});a.setHoveredNode=$Ue,S.useEffect(()=>{a.collapseAllNodes();for(const l of e)l.children.length>0&&a.expand(l.value)},[e]);const i=it(l=>{const s=l.target,c=s.getAttribute("data-value"),d=!!c&&r[c];if(d){if(l.key==="ArrowUp"){c===n[0]?.value&&(bi(l),o0(s));return}if(l.key==="ArrowRight"){if(d.children.length>0&&a.expandedState[c]===!1)return;const u=(l.target.querySelector(".mantine-Tree-label")??s).getBoundingClientRect().y,p=lJ(s,"views");let f=p.length>1?p.find((g,v,w)=>iJ(g)>u||v===w.length-1):null;f??=df(p),f&&(bi(l),f.focus());return}if(l.key===" "||l.key==="Enter"){bi(l),o(d.element);return}}});return y.jsx(Pf,{"data-likec4-search-elements":!0,allowRangeSelection:!1,clearSelectionOnOutsideClick:!0,selectOnClick:!1,tree:a,data:n,levelOffset:"lg",classNames:{root:mUe,node:Ge(u2,fUe),label:gUe,subtree:yUe},onKeyDownCapture:i,renderNode:RUe})}function RUe({node:e,elementProps:r,hasChildren:n,expanded:o}){const{element:a,searchTerms:i}=e,l=B4e({element:{id:a.id,title:a.title,shape:a.shape,icon:a.icon},className:Ge(dm.icon,wUe)}),s=[...a.views()],c=cJ(),d=`@tree.${e.value}`;return y.jsxs(zr,{layoutId:d,...r,children:[y.jsx(lr,{variant:"transparent",size:16,tabIndex:-1,className:Ge(vUe),style:{visibility:n?"visible":"hidden"},children:y.jsx(Sd,{stroke:3.5,style:{transition:"transform 150ms ease",transform:`rotate(${o?"90deg":"0"})`,width:"100%"}})}),y.jsxs(pr,{component:vi,layout:!0,tabIndex:-1,"data-value":a.id,className:Ge(dm.root,"group","likec4-element-button"),...s.length>0&&{onClick:u=>{(!n||o)&&(u.stopPropagation(),c(a))}},children:[l,y.jsxs(Se,{style:{flexGrow:1},children:[y.jsxs(en,{gap:"xs",wrap:"nowrap",align:"center",className:bUe,children:[y.jsx(Qs,{component:"div",highlight:i,className:dm.title,children:e.label}),y.jsx(_n,{label:a.id,withinPortal:!1,fz:"xs",disabled:!a.id.includes("."),children:y.jsx(Qs,{component:"div",highlight:i,className:Ge(xUe,dm.descriptionColor),children:qg(a.id)})})]}),y.jsx(Qs,{component:"div",highlight:i,className:dm.description,lineClamp:1,children:a.summary.text||"No description"})]}),y.jsx(at,{component:"div",className:Ge(kUe,dm.descriptionColor),fz:"xs",children:s.length===0?"No views":y.jsxs(y.Fragment,{children:[s.length," view",s.length>1?"s":""]})})]})]})}function cJ(){const e=Nt(),r=$d();return it(n=>{const o=[...n.views()];if(o.length===0)return;const a=Xx(o);if(a){r.send({type:"close"}),a.id===e.currentView.id?setTimeout(()=>{e.focusOnElement(n.id)},100):setTimeout(()=>{e.navigateTo(a.id,void 0,n.id)},100);return}r.send({type:"pickview.open",elementFqn:n.id})})}const jUe=fe({border:"transparent",background:{base:"transparent",_focusWithin:{base:"mantine.colors.gray[4]/55 !important",_dark:"mantine.colors.dark[5]/55 !important"},_groupHover:{base:"mantine.colors.gray[3]/35",_dark:"mantine.colors.dark[5]/35"}}}),TUe=fe({position:"absolute",inset:"0",width:"100%",height:"100%",backgroundColor:"[rgb(34 34 34 / 0.7)]",zIndex:902,backdropFilter:"auto",backdropBlur:"10px",_light:{backgroundColor:"[rgb(255 255 255 / 0.6)]"}}),AUe=fe({position:"absolute",top:"[2rem]",left:"[50%]",width:"100%",maxWidth:"600px",minWidth:"200px",transform:"translateX(-50%)",zIndex:903}),dJ=fe({marginTop:"2","& + &":{marginTop:"[32px]"}});fe({height:["100%","100cqh"],"& .mantine-ScrollArea-viewport":{minHeight:"100%","& > div":{minHeight:"100%",height:"100%"}}});function DUe({elementFqn:e}){const r=$d(),n=Lo().element(e),o=[],a=[];for(const l of n.views())l.viewOf===n?o.push(l):a.push(l);const i=()=>{r.send({type:"pickview.close"})};return yf("keydown",l=>{try{l.key==="Escape"&&(l.stopPropagation(),l.preventDefault(),i())}catch(s){console.warn(s)}},{capture:!0}),y.jsxs(y.Fragment,{children:[y.jsx(zr,{className:TUe,onClick:l=>{l.stopPropagation(),i()}},"pickview-backdrop"),y.jsx(Fw,{children:y.jsxs(zr,{initial:{opacity:0,scale:.95,originY:0,translateX:"-50%",translateY:-20},animate:{opacity:1,scale:1,translateY:0},exit:{opacity:0,scale:.98,translateY:-20,transition:{duration:.1}},className:AUe,"data-likec4-search-views":!0,children:[y.jsxs(en,{px:"sm",py:"md",justify:"space-between",children:[y.jsx(ap,{order:2,lh:1,children:"Select view"}),y.jsx(lr,{size:"md",variant:"default",onClick:l=>{l.stopPropagation(),i()},children:y.jsx(lp,{})})]}),y.jsxs(ta,{mah:"calc(100vh - 110px)",type:"never",children:[o.length>0&&y.jsxs(Io,{gap:"sm",px:"sm",className:dJ,children:[y.jsx(ap,{order:6,c:"dimmed",children:"scoped views of the element"}),o.map((l,s)=>y.jsx(z$,{view:l,search:"",loop:!0,focusOnElement:e,mod:{autofocus:s===0}},l.id))]}),a.length>0&&y.jsxs(Io,{gap:"sm",px:"sm",className:dJ,children:[y.jsx(ap,{order:6,c:"dimmed",children:"views including this element"}),a.map((l,s)=>y.jsx(z$,{view:l,search:"",loop:!0,focusOnElement:e,mod:{autofocus:s===0&&o.length===0}},l.id))]})]})]},"pickview")})]})}function MUe(){const e=S.useRef(null);let r=Lo().tagsSortedByUsage,n=iUe(),o=E$(),a=r.length,i=!1;if(o.startsWith("#")){const l=o.slice(1);r=r.filter(({tag:s})=>s.toLocaleLowerCase().includes(l)),i=r.length!==a}return r.length===0?null:(r=r.slice(0,15),y.jsxs(Ir,{ref:e,css:{gap:"md",paddingLeft:"[48px]",flexWrap:"nowrap"},children:[y.jsx(Ir,{css:{gap:"1.5",flexWrap:"wrap",opacity:i?1:.3,grayscale:i?0:.9,filter:"auto",transition:"fast",_groupHover:{opacity:1,grayscale:0},_groupFocusWithin:{opacity:1,grayscale:0}},children:r.map(({tag:l})=>y.jsx(U3,{tag:l,className:fe({userSelect:"none",cursor:"pointer"}),onClick:s=>{s.stopPropagation(),n(`#${l}`),setTimeout(()=>{h2(e.current)},350)}},l))}),i&&y.jsx(Vn,{size:"compact-xs",variant:"light",onClick:l=>{l.stopPropagation(),n(""),o0(e.current)},rightSection:y.jsx(lp,{size:14}),children:"Clear"})]}))}const NUe=[["path",{d:"M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0",key:"svg-0"}],["path",{d:"M21 21l-6 -6",key:"svg-1"}]],R$=wt("outline","search","Search",NUe);function uJ(e){return e.match(/^(k|ki|kin|kind|kind:)$/)!=null}const PUe=["#","kind:"],BUe=S.memo(()=>{const e=$d(),r=Lo(),n=S.useRef(null),{ref:o,focused:a}=cze(),[i,l]=oUe(),s=IU({scrollBehavior:"smooth",loop:!1});yf("keydown",u=>{try{!a&&(u.key==="Backspace"||u.key.startsWith("Arrow")||u.key.match(new RegExp("^\\p{L}$","u")))&&o0(n.current)}catch(p){console.warn(p)}});let c=[],d=!1;switch(!0){case i.startsWith("#"):{const u=i.toLocaleLowerCase().slice(1),p=r.tags.filter(f=>f.toLocaleLowerCase().includes(u));p.length===0?(d=!1,c=[y.jsx(oy,{children:"No tags found"},"empty-tags")]):(d=r.tags.some(f=>f.toLocaleLowerCase()===u),c=p.map(f=>y.jsxs(ay,{value:`#${f}`,children:[y.jsx(at,{component:"span",opacity:.5,mr:1,fz:"sm",children:"#"}),f]},f)));break}case i.startsWith("kind:"):case uJ(i):{const u=i.length>5?i.slice(5).toLocaleLowerCase():"";let p=x7(r.specification.elements);u&&(p=p.filter(f=>f.toLocaleLowerCase().includes(u))),p.length===0?(d=!1,c=[y.jsx(oy,{children:"No kinds found"},"empty-kinds")]):(d=p.some(f=>f.toLocaleLowerCase()===u),c=p.map(f=>y.jsxs(ay,{value:`kind:${f}`,children:[y.jsx(at,{component:"span",opacity:.5,mr:1,fz:"sm",children:"kind:"}),f]},f)));break}}return y.jsxs(eo,{onOptionSubmit:u=>{l(u),s.resetSelectedOption(),PUe.includes(u)||(s.closeDropdown(),setTimeout(()=>{h2(n.current)},350))},width:"max-content",position:"bottom-start",shadow:"md",offset:{mainAxis:4,crossAxis:50},store:s,withinPortal:!1,children:[y.jsx(P9,{children:y.jsx(Ca,{ref:$r(n,o),placeholder:"Search by title, description or start with # or kind:",autoFocus:!0,"data-autofocus":!0,"data-likec4-search-input":!0,tabIndex:0,classNames:{input:jUe},size:"lg",value:i,leftSection:y.jsx(R$,{style:{width:$e(20)},stroke:2}),rightSection:y.jsx(Ca.ClearButton,{onClick:u=>{u.stopPropagation();const p=e.getSnapshot().context.openedWithSearch;i===""||i===p?e.send({type:"close"}):l("")}}),rightSectionPointerEvents:"auto",onChange:u=>{l(u.currentTarget.value),s.openDropdown(),s.updateSelectedOptionIndex()},onClick:()=>s.openDropdown(),onFocus:()=>s.openDropdown(),onBlur:()=>s.closeDropdown(),onKeyDownCapture:u=>{if(u.key==="Tab"){switch(!0){case s.getSelectedOptionIndex()>=0:return s.clickSelectedOption(),bi(u);case c.length===1:return s.selectFirstOption()&&s.clickSelectedOption(),bi(u);case uJ(i):return l("kind:"),bi(u)}return}if(u.key==="Backspace"&&s.dropdownOpened){if(i==="kind:")return l(""),s.resetSelectedOption(),bi(u);if(i.startsWith("kind:")&&d)return l("kind:"),s.resetSelectedOption(),bi(u);if(i.startsWith("#")&&d)return l("#"),s.resetSelectedOption(),bi(u)}if(u.key==="Escape"&&s.dropdownOpened&&c.length>0){bi(u),s.closeDropdown();return}if(u.key==="ArrowUp"&&s.dropdownOpened&&i===""&&s.getSelectedOptionIndex()===0){s.closeDropdown(),bi(u);return}if(u.key==="ArrowDown"&&(!s.dropdownOpened||c.length===0||d||i===""&&s.getSelectedOptionIndex()===c.length-1)){s.closeDropdown(),bi(u),h2(n.current);return}}})}),y.jsx(Xw,{hidden:c.length===0,style:{minWidth:300},children:y.jsx(Zw,{children:y.jsx(ta,{mah:"min(322px, calc(100cqh - 50px))",type:"scroll",children:c})})})]})}),OUe=fe({backgroundColor:"[rgb(34 34 34 / var(--_opacity, 95%))]",_light:{backgroundColor:"[rgb(250 250 250 / var(--_opacity, 95%))]"},backdropFilter:"auto",backdropBlur:"var(--_blur, 10px)"}),IUe=fe({width:"100%",height:"100%",maxHeight:"100vh",overflow:"hidden",display:"flex",flexDirection:"column",justifyContent:"stretch",gap:"sm",paddingTop:"[20px]",paddingLeft:"md",paddingRight:"md",paddingBottom:"sm",background:"[transparent]"}),LUe=e=>!e.matches("inactive");function FUe({searchActorRef:e}){const r=pn(e,LUe),n=()=>{e.send({type:"open"})},o=it(()=>{e.send({type:"close"})});return ize([["mod+k",n,{preventDefault:!0}],["mod+f",n,{preventDefault:!0}]]),y.jsx(rUe,{value:e,children:y.jsx(sp.Overlays,{children:y.jsx(UW,{FallbackComponent:WW,onReset:o,children:y.jsx(Cn,{children:r&&y.jsx(n0,{fullscreen:!0,withBackdrop:!1,backdrop:{opacity:.9},classes:{dialog:OUe,body:IUe},openDelay:0,onClose:o,"data-likec4-search":"true",children:y.jsx(VUe,{searchActorRef:e})})})})})})}const pJ=fe({height:["100%","100cqh"],"& .mantine-ScrollArea-viewport":{minHeight:"100%","& > div":{minHeight:"100%",height:"100%"}}}),VUe=({searchActorRef:e})=>{const r=S.useRef(null),n=sUe();return nx(()=>{Kn(e.getSnapshot().context.openedWithSearch)&&h2(r.current)},150),y.jsxs(hr,{ref:r,display:"contents",children:[y.jsx(en,{className:"group",wrap:"nowrap",onClick:o=>{o.stopPropagation(),o0(r.current)},children:y.jsxs(ip,{flex:1,px:"sm",children:[y.jsx(BUe,{}),y.jsx(MUe,{})]})}),y.jsxs(ly,{children:[y.jsx(rp,{span:6,children:y.jsx(ap,{component:"div",order:6,c:"dimmed",pl:"sm",children:"Elements"})}),y.jsx(rp,{span:6,children:y.jsx(ap,{component:"div",order:6,c:"dimmed",pl:"sm",children:"Views"})})]}),y.jsxs(ly,{className:fe({containerName:"likec4-search-elements",containerType:"size",overflow:"hidden",flexGrow:1}),children:[y.jsx(rp,{span:6,children:y.jsx(Jl,{type:"scroll",className:pJ,pr:"xs",scrollbars:"y",children:y.jsx(Cn,{children:y.jsx(rm,{id:"likec4-search-elements",children:y.jsx(CUe,{})})})})}),y.jsx(rp,{span:6,children:y.jsx(Jl,{type:"scroll",className:pJ,pr:"xs",scrollbars:"y",children:y.jsx(Cn,{children:y.jsx(rm,{id:"likec4-search-views",children:y.jsx(EUe,{})})})})})]}),n&&y.jsx(DUe,{elementFqn:n})]})};function qUe({children:e}){const r=S.useContext(iS);if(!r)throw new Error("PortalToContainer must be used within RootContainer");return y.jsx(ry,{target:r.ref.current??`#${r.id}`,children:e})}const hJ={onNavigateTo:null,onNodeClick:null,onNodeContextMenu:null,onCanvasContextMenu:null,onEdgeClick:null,onEdgeContextMenu:null,onCanvasClick:null,onCanvasDblClick:null,onBurgerMenuClick:null,onOpenSource:null,onInitialized:null,onLayoutTypeChange:null},j$=x7(hJ),fJ=S.createContext({...Yx(j$,e=>[e,null]),handlersRef:{current:hJ}});function HUe({handlers:e,children:r}){const n=Yh(e),o=j$.map(i=>q1(e[i])),a=S.useMemo(()=>({...Yx(j$,i=>n.current[i]?[i,(...l)=>n.current[i]?.(...l)]:[i,null]),handlersRef:n}),[n,...o]);return y.jsx(fJ.Provider,{value:a,children:r})}function um(){return S.useContext(fJ)}const mJ=(e,r)=>e.find(o=>"modelFqn"in o.data&&o.data.modelFqn===r)||null;function Rr(e){return{get overlaysActorRef(){return e.get("overlays")??null},get diagramActorRef(){return mt(e.get("diagram"),"Diagram actor not found")},get searchActorRef(){return e.get("search")??null},get editorActorRef(){return e.get("editor")??null}}}Rr.editorActor=({system:e})=>e.get("editor"),Rr.overlaysActor=({system:e})=>e.get("overlays"),Rr.diagramActor=({system:e})=>e.get("diagram"),Rr.searchActor=({system:e})=>e.get("search");function pm(e,r){return e.view.nodes.find(n=>n.id===r)??null}function T$(e,r){return e.view.edges.find(n=>n.id===r)??null}function UUe(e){const r=new Map,n=e.context.xynodes.reduce((o,a)=>{let i=a.position;if(a.parentId){const c=r.get(a.parentId)??{x:0,y:0};i={x:i.x+c.x,y:i.y+c.y}}if(r.set(a.id,i),a.hidden||a.data.dimmed)return o;const l=a.measured?.width??a.width??a.initialWidth,s=a.measured?.height??a.height??a.initialHeight;return o.minX=Math.min(o.minX,i.x),o.minY=Math.min(o.minY,i.y),o.maxX=Math.max(o.maxX,i.x+l),o.maxY=Math.max(o.maxY,i.y+s),o},{minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0});return n.minX===1/0?{bounds:e.context.view.bounds}:{duration:350,bounds:{x:n.minX-10,y:n.minY-10,width:n.maxX-n.minX+20,height:n.maxY-n.minY+20}}}const WUe=32;function GUe(e){const r=mt(e.context.activeWalkthrough),n=mt(e.context.xyedges.find(c=>c.id===r.stepId)),o=e.context.xystore.getState(),a=mt(o.nodeLookup.get(n.source)),i=mt(o.nodeLookup.get(n.target)),l=SL([a,i],o);let s;if(r.parallelPrefix){const c=e.context.xynodes.find(d=>d.type==="seq-parallel"&&d.data.parallelPrefix===r.parallelPrefix);c&&(s={x:c.position.x,y:c.position.y,..._o(c)})}return s??=YUe(n,o),s?s=ko.merge(s,l):s=l,{duration:350,bounds:ko.expand(s,WUe)}}function YUe(e,r){const n=r.nodeLookup.get(e.source),o=r.nodeLookup.get(e.target);if(!n||!o)return null;const a=UL({id:e.id,sourceNode:n,targetNode:o,sourceHandle:e.sourceHandle||null,targetHandle:e.targetHandle||null,connectionMode:r.connectionMode});return a?ko.fromPoints([[a.sourceX,a.sourceY],[a.targetX,a.targetY]]):null}function A$(e){switch(e.type){case"element":case"compound-element":case"seq-actor":return e.data.modelFqn;case"deployment":case"compound-deployment":return e.data.modelFqn??e.data.deploymentFqn;case"seq-parallel":case"view-group":return null;default:Xo(e)}}function XUe(e,r){const n=e.lastOnNavigate?.fromNode,o=n&&e.xynodes.find(l=>l.id===n),a=o&&A$(o),i=a&&r.xynodes.find(l=>A$(l)===a);return{fromNode:o,toNode:i}}function ZUe(e,r){let{width:n,height:o,transform:a}=e.xystore.getState();const i=Math.max(a[2],1);return qs(r,n,o,yi,i,e.fitViewPadding)}const KUe=rs({delays:{"open timeout":({context:e})=>e.openTimeout,"close timeout":600,"long idle":1500},actions:{"update edgeId":Bt(({context:e,event:r})=>(ht(r,["xyedge.select","xyedge.mouseEnter"]),{edgeId:r.edgeId,edgeSelected:e.edgeSelected||r.type==="xyedge.select"})),"increase open timeout":Bt(()=>({openTimeout:800})),"decrease open timeout":Bt(()=>({openTimeout:300})),"reset edgeId":Bt({edgeId:null,edgeSelected:!1})},guards:{"edge was selected":({context:e})=>e.edgeSelected,"edge was hovered":({context:e})=>!e.edgeSelected}}).createMachine({id:"breadcrumbs",context:()=>({edgeId:null,edgeSelected:!1,openTimeout:800}),initial:"idle",on:{close:{target:"#idle",actions:["reset edgeId","increase open timeout"]}},states:{idle:{id:"idle",on:{"xyedge.mouseEnter":{target:"opening",actions:"update edgeId"},"xyedge.select":{target:"active",actions:"update edgeId"}},after:{"long idle":{actions:"increase open timeout"}}},opening:{on:{"xyedge.mouseLeave":{target:"idle"},"xyedge.select":{target:"active",actions:"update edgeId"}},after:{"open timeout":{actions:"decrease open timeout",target:"active"}}},active:{tags:["opened"],initial:"opened",exit:"reset edgeId",on:{"xyedge.unselect":{target:"idle",actions:"increase open timeout"},"xyedge.select":{actions:"update edgeId"}},states:{opened:{on:{"dropdown.mouseEnter":{target:"hovered"},"xyedge.mouseLeave":{guard:"edge was hovered",target:"closing"}}},hovered:{on:{"dropdown.mouseLeave":[{guard:"edge was selected",target:"opened"},{target:"closing"}]}},closing:{on:{"xyedge.mouseEnter":{guard:"edge was hovered",target:"opened",actions:"update edgeId"},"xyedge.select":{target:"opened",actions:"update edgeId"},"dropdown.mouseEnter":{target:"hovered"}},after:{"close timeout":{target:"#idle"}}}}}}}),QUe=KUe,gJ=fe({display:"block",fontSize:"xxs",fontWeight:500,whiteSpace:"nowrap",paddingX:"1",paddingY:"0.5",borderRadius:"[2px]",background:{_light:"var(--likec4-palette-fill)/90",_dark:"var(--likec4-palette-fill)/60"},lineHeight:"1",color:{_light:"var(--likec4-palette-hiContrast)",_dark:"var(--likec4-palette-loContrast)"}}),JUe=fe({whiteSpaceCollapse:"preserve-breaks",fontSize:"sm",lineHeight:"sm",userSelect:"all"});function eWe(e){let r=null;for(const n of e.xyedges)if(n.selected){if(r){r=null;break}r=n.data.id}return{viewId:e.view.id,selected:r}}const tWe=S.memo(()=>{const e=Lo(),r=AS(QUe),n=Nt(),{viewId:o,selected:a}=ci(eWe),i=pn(r,g=>g.hasTag("opened")?g.context.edgeId:null);za("navigateTo",()=>{r.send({type:"close"})}),za("edgeMouseEnter",({edge:g})=>{r.send({type:"xyedge.mouseEnter",edgeId:g.data.id})}),za("edgeMouseLeave",()=>{r.send({type:"xyedge.mouseLeave"})}),za("walkthroughStarted",()=>{r.send({type:"close"})}),S.useEffect(()=>{a?r.send({type:"xyedge.select",edgeId:a}):r.send({type:"xyedge.unselect"})},[a]);const l=S.useCallback(g=>{if(!i)return;r.send({type:"dropdown.mouseEnter"});const v=n.findEdge(i);v&&!v.data.hovered&&n.send({type:"xyflow.edgeMouseEnter",edge:v,event:g})},[r,n,i]),s=S.useCallback(g=>{if(!i)return;r.send({type:"dropdown.mouseLeave"});const v=n.findEdge(i);v?.data.hovered&&n.send({type:"xyflow.edgeMouseLeave",edge:v,event:g})},[r,n,i]),{diagramEdge:c,sourceNode:d,targetNode:u}=ci(g=>{const v=i?T$(g,i):null,w=v?pm(g,v.source):null,x=v?pm(g,v.target):null;return{diagramEdge:v,sourceNode:w,targetNode:x}},Or,[i]);if(!c||!d||!u||Gu(c.relations))return null;const[p,f]=Jr(c.relations,un(g=>{try{return e.relationship(g)}catch(v){return console.error(`View is cached and likec4model missing relationship ${g} from ${d.id} -> ${u.id}`,v),null}}),Wu(Kn),UV(g=>g.source.id===d.id&&g.target.id===u.id));return p.length===0&&f.length===0?(console.warn("No relationships found diagram edge",{diagramEdge:c,sourceNode:d,targetNode:u}),null):y.jsx(qUe,{children:y.jsx(oWe,{viewId:o,direct:p,nested:f,diagramEdge:c,sourceNode:d,targetNode:u,onMouseEnter:l,onMouseLeave:s})})}),rWe=(e,r)=>r?.querySelector(`.likec4-edge-label[data-edge-id="${e}"]`)??r?.querySelector(`.likec4-edge-middle-point[data-edge-id="${e}"]`)??null,nWe=8,oWe=({viewId:e,diagramEdge:r,direct:n,nested:o,sourceNode:a,targetNode:i,onMouseEnter:l,onMouseLeave:s})=>{const c=S.useRef(null),{enableNavigateTo:d,enableVscode:u,enableCompareWithLatest:p}=sr(),{onOpenSource:f}=um(),g=QDe(),[v,w]=S.useState(null);S.useLayoutEffect(()=>{w(rWe(r.id,g.current))},[r]),S.useEffect(()=>{const C=v,_=c.current;if(!C||!_)return;let $=!1;const z=jw(C,_,()=>{zH(C,_,{placement:"bottom-start",middleware:[SH(4),Ije({crossAxis:!0,allowedPlacements:["bottom-start","bottom-end","left-start","top-start","top-end","right-start","right-end","left-end"]}),EH({apply({availableHeight:j,availableWidth:A,elements:R}){$||Object.assign(R.floating.style,{maxWidth:`${Qa(Cd(A),{min:220,max:400})}px`,maxHeight:`${Qa(Cd(j),{min:100,max:500})}px`})}}),CH({padding:nWe*2})]}).then(({x:j,y:A,middlewareData:R})=>{$||(_.style.transform=`translate(${Cd(j)}px, ${Cd(A)}px)`,_.style.visibility=R.hide?.referenceHidden?"hidden":"visible")})},{ancestorResize:!1,animationFrame:!0});return()=>{$=!0,z()}},[v]);const x=Nt(),k=S.useCallback((C,_)=>y.jsxs(S.Fragment,{children:[_>0&&y.jsx(tp,{}),y.jsx(iWe,{viewId:e,relationship:C,sourceNode:a,targetNode:i,onNavigateTo:d?$=>{x.navigateTo($)}:void 0,...f&&u&&{onOpenSource:()=>f({relation:C.id})}})]},C.id),[e,a,i,x,d,f,u]);return y.jsx(ta,{ref:c,onMouseEnter:l,onMouseLeave:s,type:"auto",scrollbars:"y",scrollbarSize:6,styles:{viewport:{overscrollBehavior:"contain",minWidth:200,minHeight:40}},className:Ge(fe({layerStyle:"likec4.dropdown",p:"0",pointerEvents:{base:"all",_whenPanning:"none"},position:"absolute",top:"0",left:"0",width:"max-content",cursor:"default"})),children:y.jsxs(ip,{css:{gap:"3",padding:"4",paddingTop:"2"},children:[p&&y.jsx(aWe,{diagramEdge:r}),y.jsx(Vn,{variant:"default",color:"gray",size:"compact-xs",style:{alignSelf:"flex-start",fontWeight:500,"--button-fz":"var(--font-sizes-xxs)"},onClick:C=>{C.stopPropagation(),x.openRelationshipDetails(r.id)},children:"browse relationships"}),n.length>0&&y.jsxs(y.Fragment,{children:[y.jsx(hm,{children:"DIRECT RELATIONSHIPS"}),n.map(k)]}),o.length>0&&y.jsxs(y.Fragment,{children:[y.jsx(hm,{css:{mt:n.length>0?"2":"0"},children:"RESOLVED FROM NESTED"}),o.map(k)]})]})})},aWe=({diagramEdge:e})=>{const r=e.drifts;return!r||r.length===0?null:y.jsx(dy,{color:"orange",withBorder:!1,withCloseButton:!1,title:"Changes:",children:r.map(n=>y.jsxs(at,{mt:2,size:"sm",lh:"xs",children:["- ",n]},n))})},iWe=S.forwardRef(({viewId:e,relationship:r,sourceNode:n,targetNode:o,onNavigateTo:a,onOpenSource:i},l)=>{const s=yJ(r,"source",n),c=yJ(r,"target",o),d=a&&r.navigateTo?.id!==e?r.navigateTo?.id:void 0,u=r.links,p=r.hasMetadata()?Wx(r.getMetadata()).sort(([g],[v])=>g.localeCompare(v)):null,f=p&&y.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"6px"},children:[y.jsx("div",{style:{fontWeight:600,fontSize:"10px",color:"#868e96",marginBottom:"2px",letterSpacing:"0.5px",textTransform:"uppercase"},children:"Metadata"}),y.jsx("div",{style:{borderTop:"1px solid rgba(0, 0, 0, 0.1)",paddingTop:"6px",display:"flex",flexDirection:"column",gap:"6px"},children:p.map(([g,v])=>{const w=Array.isArray(v)?v.join(", "):v;return y.jsxs("div",{style:{display:"flex",gap:"12px",fontSize:"12px",lineHeight:"1.4"},children:[y.jsxs("span",{style:{fontWeight:600,minWidth:"110px",color:"#495057"},children:[g,":"]}),y.jsx("span",{style:{color:"#212529",wordBreak:"break-word",flex:1},children:w})]},g)})})]});return y.jsxs(ip,{ref:l,className:HW({block:"2",inline:"2",paddingY:"2.5",paddingX:"2",gap:"1",rounded:"sm",backgroundColor:{_hover:{base:"mantine.colors.gray[1]",_dark:"mantine.colors.dark[5]/70"}}}),children:[y.jsx(Ir,{gap:"0.5",children:y.jsxs(np,{openDelay:200,children:[y.jsx(a0,{label:s.full,offset:2,position:"top-start",children:y.jsx(at,{component:"div","data-likec4-color":n.color,className:gJ,children:s.short})}),y.jsx(sm,{stroke:2.5,size:"11px",opacity:.65}),y.jsx(a0,{label:c.full,offset:2,position:"top-start",children:y.jsx(at,{component:"div","data-likec4-color":o.color,className:gJ,children:c.short})}),d&&y.jsx(a0,{label:"Open dynamic view",children:y.jsx(lr,{size:"sm",radius:"sm",variant:"default",onClick:g=>{g.stopPropagation(),a?.(d)},style:{alignSelf:"flex-end"},role:"button",children:y.jsx(gi,{size:"80%",stroke:2})})}),i&&y.jsx(a0,{label:"Open source",children:y.jsx(lr,{size:"sm",radius:"sm",variant:"default",onClick:g=>{g.stopPropagation(),i()},role:"button",children:y.jsx(am,{size:"80%",stroke:2})})})]})}),y.jsxs(Ir,{gap:"xs",alignItems:"center",children:[y.jsx(hr,{className:JUe,children:r.title||"untitled"}),f&&y.jsx(a0,{label:f,w:350,position:"right",offset:10,openDelay:300,withArrow:!0,bg:"white",c:"dark",withinPortal:!0,styles:{tooltip:{boxShadow:"0 4px 12px rgba(0, 0, 0, 0.15)",border:"1px solid #dee2e6"}},children:y.jsx(hr,{display:"inline-flex",children:y.jsx(Gy,{size:14,opacity:.5,style:{flexShrink:0,cursor:"help"}})})})]}),r.kind&&y.jsxs(Ir,{gap:"2",children:[y.jsx(hm,{children:"kind"}),y.jsx(at,{size:"xs",className:fe({userSelect:"all"}),children:r.kind})]}),r.technology&&y.jsxs(Ir,{gap:"2",children:[y.jsx(hm,{children:"technology"}),y.jsx(at,{size:"xs",className:fe({userSelect:"all"}),children:r.technology})]}),r.summary.nonEmpty&&y.jsxs(y.Fragment,{children:[y.jsx(hm,{children:"description"}),y.jsx(hr,{css:{paddingLeft:"2.5",py:"1.5",borderLeft:"2px dotted",borderLeftColor:{base:"mantine.colors.gray[3]",_dark:"mantine.colors.dark[4]"}},children:y.jsx(wp,{value:r.summary,fontSize:"sm",textScale:.875})})]}),u.length>0&&y.jsxs(y.Fragment,{children:[y.jsx(hm,{children:"links"}),y.jsx(Ir,{gap:"1",flexWrap:"wrap",children:u.map(g=>y.jsx(vC,{size:"sm",value:g},g.url))})]})]})}),hm=gd("div",{base:{display:"block",fontSize:"xxs",fontWeight:500,userSelect:"none",lineHeight:"sm",color:"mantine.colors.dimmed"}}),a0=_n.withProps({color:"dark",fz:"xs",label:"",children:null,offset:8,withinPortal:!1});function yJ(e,r,n){const o=e.isDeploymentRelation()?n.id:n.modelRef||"",a=e[r].id,i=qg(o)+a.slice(o.length);return{full:a,short:i}}function fm(){const e=JDe();return S.useMemo(()=>e?{portalProps:{target:e},withinPortal:!0}:{withinPortal:!1},[e])}const lWe=rs({delays:{"open timeout":500,"close timeout":350},actions:{"update activatedBy":Bt({activatedBy:({context:e,event:r})=>{switch(!0){case r.type.includes("click"):return"click";case r.type.includes("mouseEnter"):return"hover";default:return e.activatedBy}}}),"keep dropdown open":Bt({activatedBy:"click"}),"update selected folder":Bt(({event:e})=>e.type==="breadcrumbs.click.root"?{selectedFolder:""}:(ht(e,["breadcrumbs.click.folder","select.folder"]),{selectedFolder:e.folderPath})),"reset selected folder":Bt({selectedFolder:({context:e})=>e.viewModel?.folder.path??""}),"update inputs":Bt(({context:e,event:r})=>{ht(r,"update.inputs");const n=r.inputs.viewModel?.id!==e.viewModel?.id;let o=e.selectedFolder;return r.inputs.viewModel?.folder.path.startsWith(o)||(o=r.inputs.viewModel?.folder.path??""),{view:r.inputs.view,viewModel:r.inputs.viewModel,selectedFolder:o,activatedBy:n?"hover":e.activatedBy}}),"reset search query":Bt({searchQuery:""}),"update search query":Bt(({event:e})=>(ht(e,"searchQuery.change"),{searchQuery:e.value??""})),"emit navigateTo":RS(({event:e})=>(ht(e,"select.view"),{type:"navigateTo",viewId:e.viewId}))},guards:{"was opened on hover":({context:e})=>e.activatedBy==="hover","has search query":({context:e})=>!Gu(e.searchQuery),"search query is empty":({context:e})=>Gu(e.searchQuery)}}).createMachine({id:"breadcrumbs",context:({input:e})=>({...e,breadcrumbs:[],activatedBy:"hover",selectedFolder:"",searchQuery:"",folderColumns:[]}),initial:"idle",entry:["update activatedBy","reset selected folder"],on:{"update.inputs":{actions:"update inputs"},"searchQuery.change":{actions:["update search query",na({type:"searchQuery.changed"})]}},states:{idle:{id:"idle",on:{"breadcrumbs.mouseEnter.*":{target:"pending",actions:"update activatedBy"},"breadcrumbs.click.*":{target:"active",actions:"update activatedBy"}}},pending:{on:{"breadcrumbs.mouseEnter.*":{actions:"update activatedBy"},"breadcrumbs.mouseLeave.*":{target:"idle"},"breadcrumbs.click.*":{target:"active",actions:"update activatedBy"}},after:{"open timeout":{target:"active"}}},active:{tags:["active"],initial:"decide",on:{"dropdown.dismiss":{target:"#idle"},"breadcrumbs.mouseLeave":{guard:"was opened on hover",target:".closing"},"dropdown.mouseLeave":{guard:"was opened on hover",target:".closing"},"searchQuery.changed":{target:".decide"}},states:{decide:{always:[{guard:"has search query",target:"search"},{target:"opened"}]},opened:{on:{"searchQuery.changed":{guard:"has search query",actions:"keep dropdown open",target:"search"},"breadcrumbs.click.viewtitle":{actions:"reset selected folder"},"breadcrumbs.click.*":{actions:"update selected folder"},"select.folder":{actions:["keep dropdown open","update selected folder"]},"select.view":{actions:["emit navigateTo"]}}},search:{on:{"breadcrumbs.click.viewtitle":{actions:["reset search query","reset selected folder"],target:"opened"},"breadcrumbs.click.*":{actions:["reset search query","update selected folder"],target:"opened"},"select.view":{actions:["emit navigateTo"]}}},closing:{on:{"breadcrumbs.mouseEnter.*":{target:"decide"},"dropdown.mouseEnter":{target:"decide"}},after:{"close timeout":{target:"#idle"}}}}}}}),sWe=lWe,D$=S.createContext(null);D$.displayName="NavigationPanelActorSafeContext";const cWe=D$.Provider,M$=()=>{const e=S.useContext(D$);if(e===null)throw new Error("NavigationPanelActorRef is not found in the context");return e};function N$(e,r=Or){const n=M$();return pn(n,e,r)}function dWe(e,r=Or){return N$(n=>e(n.context),r)}function i0(){const e=M$();return S.useMemo(()=>({actorRef:e,send:r=>e.send(r),selectFolder:r=>e.send({type:"select.folder",folderPath:r}),selectView:r=>e.send({type:"select.view",viewId:r}),isOpened:()=>e.getSnapshot().hasTag("active"),clearSearch:()=>e.send({type:"searchQuery.change",value:""}),closeDropdown:()=>e.send({type:"dropdown.dismiss"})}),[e])}const vJ=_n.withProps({color:"dark",fz:"xs",openDelay:600,closeDelay:120,label:"",children:null,offset:8,withinPortal:!1}),bJ=()=>y.jsx($a,{component:zr,variant:"transparent",size:16,className:fe({display:{base:"none","@/md":"flex"},color:{base:"mantine.colors.gray[5]",_dark:"mantine.colors.dark[3]"}}),children:y.jsx(Sd,{})});Kw.withProps({separator:y.jsx(bJ,{}),separatorMargin:4});const ic=S.forwardRef(({variant:e="default",className:r,disabled:n=!1,type:o,...a},i)=>y.jsx(lr,{size:"md",variant:"transparent",radius:"sm",component:vi,...!n&&{whileHover:{scale:1.085},whileTap:{scale:1,translateY:1}},disabled:n,...a,className:Ge(r,eK({variant:e,type:o})),ref:i})),m2=b1({base:{fontSize:"sm",fontWeight:"500",transition:"fast",color:{base:"likec4.panel.action",_hover:"likec4.panel.action.hover"}},variants:{truncate:{true:{truncate:!0}},dimmed:{true:{color:{base:"likec4.panel.text.dimmed",_hover:"likec4.panel.action"}}}}}),uWe=S.forwardRef((e,r)=>y.jsxs("svg",{ref:r,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 222 56",...e,children:[y.jsx("path",{fill:"#5E98AF",d:"M33.95 33.78V0H2.37A2.37 2.37 0 0 0 0 2.35V33.9h33.95v-.12ZM38.57 33.78H55.6v-14.6c0-1.3-1.06-2.35-2.36-2.35H38.57v16.95ZM33.95 38.37H17.04v14.6c0 1.29 1.06 2.35 2.36 2.35h14.67V38.37h-.12ZM38.57 38.37v16.95h14.67c1.3 0 2.36-1.06 2.36-2.36v-14.6H38.57Z"}),y.jsx("path",{className:fe({fill:"[#FCFBF7]",_light:{fill:"[#222221]"}}),d:"M71.61 12.08c-.06 3.61.3 29.95.23 31.87 0 1.8 0 3.6.06 5.41 0 .3.18.58.47.58 4.1.18 8.13-.17 12.22-.11 1.34.05 2.69 0 3.97 0 1.29-.06 1.4-.59 1.35-1.63-.06-1.63-.06-3.08-.06-4.65-.06-.82-.53-1.11-1.23-1.11-2.4.06-4.8-.06-7.19.06-.4.06-.82.06-1.23.06-.7-.06-.87-.24-.93-1v-.86c-.18-4.83.17-9.83.17-14.66-.06-4.07 0-7.73-.06-11.34 0-1.57 0-3.14-.05-4.65-.06-.93 0-1.92-.24-2.85-.11-.35-.29-.81-.7-.81h-5.5c-.93 0-1.22.64-1.28 1.57v4.12ZM103.81 35c-.17-6.63-.1-13.67-.05-20.24 0-2.04-.12-4.25-.12-6.28 0-2.21-.87-2.1-2.04-2.15-1.7-.06-2.46-.06-4.15-.06-1.11-.06-1.58.23-1.58 1.34 0 5.7-.18 21.8-.12 24.13.06 2.33.3 12.91.18 15.24-.06.81 0 1.62.06 2.44.05.29.23.58.7.58 1.93-.12 3.74-.12 5.67-.17.7-.06 1.28-.24 1.58-1 .05-.4-.12-11.04-.12-13.83Zm13.92 4.47c0-2.03-.3-7.56-.23-8.72 0-.17.11-.4.17-.4.12 0 .35.11.41.17 1.87 2.44 10.64 19.36 11.7 19.42.28.06.58.06.87.06 1.99-.12 3.74 0 5.73 0 2.04 0 .7-1.98.35-2.5-.53-.76-7.48-13.14-7.9-13.9-1.16-1.98-2.16-4.13-3.32-6.05-.12-.23-.24-.58-.18-.81.12-.7.3-1.34.59-1.98a93.18 93.18 0 0 1 4.55-8.14c1.88-2.97 2.93-4.83 4.45-7.5.35-.64.58-1.34.82-2.1.05-.29-.18-.58-.53-.58-1.11-.05-5.15 0-6.43 0-.59 0-1.17.12-1.46.64-.76 1.46-8.6 15.7-9.35 16.98-.06.12-.24.18-.41.18 0 0-.12-.18-.12-.3-.06-3.25.53-13.9.4-16.04-.05-1.28-.28-1.4-1.57-1.46-1.4-.05-3.33-.05-4.73-.05-1.3 0-1.4.7-1.58 1.62-.06.18-.06 5.64-.06 8.09 0 3.54-.3 25.76.11 32.8 0 .7.18 1.1.77 1.1 1.57-.12 3.91 0 5.49 0 1.11 0 1.29-.12 1.29-1.98 0-2.5.23-4.77.23-7.85 0-.23-.06-.46-.06-.7Zm25.66-1.4h-.06c0 1.46-.05 2.97 0 4.49.06 1.86.18 3.72.3 5.58 0 .64.17.81.76.93 1.22.29 2.4.35 3.62.35 3.16-.12 6.31.11 9.47 0 1.29-.06 1.87.06 3.16-.18 1.17-.23 1.58-.87 1.58-2.61-.12-1.1-.06-1.57-.06-2.91 0-1.92-1.35-2.56-2.52-2.5-.81.06-4.73-.06-6.31-.06-2.63.06-2.22.4-2.22-2.33 0-2.2.06-5.05.06-7.32 0-1.22.11-1.63 1.28-1.63h7.31c1.17.17 1.99-.64 1.99-1.86 0-1.22.12-1.28.12-2.5l-.18-1.75c-.12-.99-.47-1.33-1.46-1.33-.64 0-1.29.05-1.93.11-2.52.18-3.68-.17-6.14 0-.82 0-.93-.11-1-.87-.23-2.27 0-4.77.24-7.04.06-.93.3-1.1 1.17-1.16l8.24-.06c1.11-.11 1.46-.06 1.4-1.16-.11-1.69.06-3.43-.11-5.12-.12-.93-.41-1.1-1.46-1.1-1.76.05-2.17.05-3.92.17-1.75.06-8.77.06-10.46.06-2.46 0-2.63-.18-2.7 2.8-.1 2.32-.05 4.7-.05 7.09 0 4.07-.23 18.66-.12 21.92Zm47.76-24.82c.06-1.92 0-3.5 0-5.35 0-2.15-3.92-1.92-5.32-1.86a18.95 18.95 0 0 0-15.08 9.77c-.82 1.57-1.4 3.2-1.81 4.88a34 34 0 0 0-.59 12.15c.41 3.78 1.4 7.56 3.74 10.59 4.04 5.3 11.46 7.15 17.83 6.16.3-.06.59-.11.82-.29.18-.11.35-.35.35-.58l.18-3.31c.06-1.05 0-1 0-2.04 0-1.4-2.93-.35-4.74-.35-1.75 0-3.62-.06-5.2-.87-2.8-1.57-4.38-4.71-5.26-7.68-1-3.2-1.23-6.63-.64-9.88.7-4.25 2.74-9.13 7.25-10.59 2.57-.87 5.31-.58 7.89-.29.35.06.58-.17.58-.46Zm26.77 15.3c.06-2.5 0-14.84 0-18.38.06-.82 0-1.63-.11-2.45-.06-.99-.24-1.28-1.29-1.33h-4.44c-.82 0-1.35.4-1.82 1.27-1.34 3.2-10.75 24.02-12.15 26.58-.53.99-1 1.63-1 2.68v4.24c0 .76-.06 1.28 1.23 1.28l11.1-.06c1.47 0 1.47.3 1.47 1.1 0 .88-.12 4.9-.12 5.3 0 .58.12 1.16 1.23 1.16h5.08c1.23 0 1.23-.7 1.23-2.03.06-1.17-.06-3.5-.06-4.66 0-.93.18-.98 1.76-.98 1.22 0 1.75-.12 1.75-.88.06-1.57 0-2.67 0-4.42 0-1.04-.93-.98-2.92-.98-.65 0-.7-.18-.7-1.05-.12-1.8-.24-4.6-.24-6.4Zm-7.25-5.94c-.05.7-.11 10.82-.11 12.27-.06.81-.24 1.05-1 1.1-1.93.06-3.85.06-5.78.06-.47 0-.65-.4-.41-.87.23-.4 4.85-11.57 6.13-14.48.18-.17.24-.35.41-.52.18-.12.41-.18.59-.23.06 0 .23.29.23.46 0 .76-.06 1.51-.06 2.21Z"})]})),pWe=S.forwardRef((e,r)=>y.jsx("svg",{ref:r,xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 56 56",...e,children:y.jsx("path",{fill:"#5E98AF",d:"M33.95 33.78V0H2.37A2.37 2.37 0 0 0 0 2.35V33.9h33.95v-.12ZM38.57 33.78H55.6v-14.6c0-1.3-1.06-2.35-2.36-2.35H38.57v16.95ZM33.95 38.37H17.04v14.6c0 1.29 1.06 2.35 2.36 2.35h14.67V38.37h-.12ZM38.57 38.37v16.95h14.67c1.3 0 2.36-1.06 2.36-2.36v-14.6H38.57Z"})})),hWe=()=>{const e=i0(),{onBurgerMenuClick:r}=um();return y.jsx(zr,{layout:"position",children:y.jsxs(pr,{onMouseEnter:()=>{e.send({type:"breadcrumbs.mouseEnter.root"})},onMouseLeave:()=>{e.send({type:"breadcrumbs.mouseLeave.root"})},onClick:n=>{n.stopPropagation(),r&&e.isOpened()&&setTimeout(()=>{r()},100),e.send({type:"breadcrumbs.click.root"})},className:Ge("mantine-active",qn({padding:"0.5",width:{base:"[20px]","@/md":"[64px]"}})),children:[y.jsx(uWe,{className:fe({display:{base:"none","@/md":"block"}})}),y.jsx(pWe,{className:fe({display:{base:"block","@/md":"none"}})})]})})},fWe=[["path",{d:"M5 12l14 0",key:"svg-0"}],["path",{d:"M5 12l6 6",key:"svg-1"}],["path",{d:"M5 12l6 -6",key:"svg-2"}]],mWe=wt("outline","arrow-left","ArrowLeft",fWe),gWe=()=>{const e=Nt(),{hasStepBack:r,hasStepForward:n}=ci(o=>({hasStepBack:o.navigationHistory.currentIndex>0,hasStepForward:o.navigationHistory.currentIndex{o.stopPropagation(),e.navigate("back")},children:y.jsx(mWe,{size:14})}),y.jsx(ic,{disabled:!n,onClick:o=>{o.stopPropagation(),e.navigate("forward")},children:y.jsx(sm,{size:14})})]})},yWe=[["path",{d:"M9 15l6 -6",key:"svg-0"}],["path",{d:"M11 6l.463 -.536a5 5 0 0 1 7.071 7.072l-.534 .464",key:"svg-1"}],["path",{d:"M13 18l-.397 .534a5.068 5.068 0 0 1 -7.127 0a4.972 4.972 0 0 1 0 -7.071l.524 -.463",key:"svg-2"}]],vWe=wt("outline","link","Link",yWe),bWe=({context:e})=>{const r=e.view;return{id:r.id,title:e.viewModel?.title??(r.title&&y8(r.title))??"Untitled View",description:e.viewModel?.description??ur.from(r.description),tags:r.tags??[],links:r.links??[]}},xWe=e=>{const[r,n]=S.useState(!1),o=N$(bWe,tt),a=fm();return y.jsxs(br,{position:"bottom-end",shadow:"xl",clickOutsideEvents:["pointerdown","mousedown","click"],offset:{mainAxis:4},opened:r,onChange:n,...a,...e,children:[y.jsx(wWe,{linksCount:o.links.length,onOpen:()=>n(!0)}),r&&y.jsx(kWe,{data:o,onClose:()=>n(!1)})]})},wWe=({linksCount:e,onOpen:r})=>y.jsx(br.Target,{children:y.jsxs(pr,{component:vi,layout:"position",whileTap:{scale:.95,translateY:1},onClick:n=>{n.stopPropagation(),r()},className:Ge("group",qn({gap:"2",paddingInline:"2",paddingBlock:"1",rounded:"sm",userSelect:"none",cursor:"pointer",color:{base:"likec4.panel.action",_hover:"likec4.panel.action.hover"},backgroundColor:{_hover:"likec4.panel.action.bg.hover"},display:{base:"none","@/xs":"flex"}}),""),children:[y.jsx(y$,{size:16,stroke:1.8}),e>0&&y.jsxs(Ir,{gap:"[1px]",children:[y.jsx(vWe,{size:14,stroke:2}),y.jsx(hr,{css:{fontSize:"11px",fontWeight:600,lineHeight:1,opacity:.8},children:e})]})]})}),xJ=gd("div",{base:{fontSize:"xs",color:"mantine.colors.dimmed",fontWeight:500,userSelect:"none",mb:"xxs"}}),kWe=({data:{id:e,title:r,description:n,tags:o,links:a},onClose:i})=>{const l=Nt();return za("paneClick",i),za("nodeClick",i),y.jsxs(br.Dropdown,{className:Ge("nowheel nopan nodrag",my({margin:"xs",layerStyle:"likec4.dropdown",gap:"md",padding:"md",paddingBottom:"lg",pointerEvents:"all",maxWidth:"calc(100cqw - 52px)",minWidth:"200px",maxHeight:"calc(100cqh - 100px)",width:"max-content",cursor:"default",overflow:"auto",overscrollBehavior:"contain","@/sm":{minWidth:400,maxWidth:550},"@/lg":{maxWidth:700}})),children:[y.jsxs("section",{children:[y.jsx(at,{component:"div",fw:500,size:"xl",lh:"sm",children:r}),y.jsxs(Ir,{alignItems:"flex-start",mt:"1",children:[y.jsx(_We,{label:"id",value:e}),y.jsx(Ir,{gap:"xs",flexWrap:"wrap",children:o.map(s=>y.jsx(U3,{tag:s,cursor:"pointer",onClick:c=>{c.stopPropagation(),l.openSearch(`#${s}`)}},s))})]})]}),a.length>0&&y.jsxs("section",{className:qn({alignItems:"baseline"}),children:[y.jsx(xJ,{children:"Links"}),y.jsx(Ir,{gap:"xs",flexWrap:"wrap",children:a.map((s,c)=>y.jsx(vC,{value:s},`${c}-${s.url}`))})]}),n.isEmpty&&y.jsx(at,{component:"div",fw:500,size:"xs",c:"dimmed",style:{userSelect:"none"},children:"No description"}),n.nonEmpty&&y.jsxs("section",{children:[y.jsx(xJ,{children:"Description"}),y.jsx(wp,{value:n,fontSize:"sm",emptyText:"No description",className:fe({userSelect:"all"})})]})]})},_We=({label:e,value:r})=>y.jsxs(Ir,{gap:"0.5",children:[y.jsx(SWe,{children:e}),y.jsx(Ks,{size:"sm",radius:"sm",variant:"light",color:"gray",tt:"none",fw:500,classNames:{root:fe({width:"max-content",overflow:"visible",px:"1",color:{_dark:"mantine.colors.gray[4]",_light:"mantine.colors.gray[8]"}}),label:fe({overflow:"visible"}),section:fe({opacity:.5,userSelect:"none",marginInlineEnd:"0.5"})},children:r})]}),SWe=gd("div",{base:{color:"mantine.colors.dimmed",fontWeight:500,fontSize:"xxs",userSelect:"none"}}),EWe=()=>{const e=a2(),{enableVscode:r}=sr(),{onOpenSource:n}=um();return r?y.jsx(vJ,{label:"Open View Source",children:y.jsx(ic,{onClick:o=>{o.stopPropagation(),n?.({view:e})},children:y.jsx(am,{style:{width:"60%",height:"60%"}})})}):null};function wJ(e,r){if(e._type==="dynamic")try{if(r??=e.variant,r==="sequence")return e.sequenceLayout.bounds}catch{}return e.bounds}function CWe({points:e,controlPoints:r,labelBBox:n}){let o=1/0,a=1/0,i=-1/0,l=-1/0;if(r)for(const s of r)o=Math.min(o,s.x),a=Math.min(a,s.y),i=Math.max(i,s.x),l=Math.max(l,s.y);else for(const[s,c]of e)o=Math.min(o,s),a=Math.min(a,c),i=Math.max(i,s),l=Math.max(l,c);return n&&(o=Math.min(o,n.x),a=Math.min(a,n.y),i=Math.max(i,n.x+n.width),l=Math.max(l,n.y+n.height)),{x:o,y:a,width:i-o,height:l-a}}function $We({nodes:e,edges:r}){return ko.expand(ko.merge(...e,...r.map(CWe)),10)}function kJ(e){const{view:{drifts:r,_layout:n,...o},xynodes:a,xystore:i}=e,{nodeLookup:l,edgeLookup:s}=i.getState(),c=new Set,d=un(o.nodes,p=>{const f=l.get(p.id);if(!f)return console.error(`Internal node not found for ${p.id}`),p;const g=a.find(k=>k.id===p.id)?.data??f.data,v=f.internals.positionAbsolute,{width:w,height:x}=_o(f);return(!H3(v,p)||p.width!==w||p.height!==x)&&c.add(p.id),{...p,shape:g.shape,color:g.color,style:{...g.style},x:Math.floor(v.x),y:Math.floor(v.y),width:Math.ceil(w),height:Math.ceil(x)}}),u=un(o.edges,p=>{const f=s.get(p.id);if(!f)return console.error(`Internal edge not found for ${p.id}`),p;const g=f.data;let v=g.controlPoints??[];const w=c.has(f.source)||c.has(f.target);v.length===0&&w&&(v=q3(g.points));const x={...nd(p,["controlPoints","labelBBox"]),points:g.points};return g.labelBBox&&(x.labelBBox=g.labelBBox),xn(v,1)&&(x.controlPoints=v),x});return{op:"save-view-snapshot",layout:{...o,_layout:"manual",bounds:$We({nodes:d,edges:u}),nodes:d,edges:u}}}const zWe=function(e){return e.get("diagram")},_J=function(e){return e.get("diagram").getSnapshot().context},SJ=()=>zn.raise({type:"sync"},{delay:200,id:"sync"}),mm=()=>zn.cancel("sync"),EJ=(e=50)=>zn.raise(({event:r})=>r,{delay:e}),CJ=e=>e.op==="reset-manual-layout"||e.op==="save-view-snapshot",$J=Wu(uCe(CJ)),zJ=()=>zn.assign(({system:e})=>{const r=_J(e);return{beforeEditing:{xynodes:r.xynodes.map(({measured:n,...o})=>({...nd(o,["selected","dragging","resizing"]),data:nd(o.data,["dimmed","hovered"]),measured:n,initialWidth:n?.width??o.width??o.initialWidth,initialHeight:n?.height??o.height??o.initialHeight})),xyedges:r.xyedges.map(n=>({...nd(n,["selected"]),data:nd(n.data,["active","dimmed","hovered"])})),change:kJ(r),view:r.view,synched:!1}}}),RWe=()=>zn.enqueueActions(({enqueue:e,event:r})=>{e(zJ()),r.type==="edit.start"&&e.assign({editing:r.subject})}),jWe=()=>zn.stopChild("hotkey"),P$=()=>zn.enqueueActions(({check:e,enqueue:r,self:n})=>{const o=e("can undo"),a=n.getSnapshot().children.hotkey;if(!o&&a){r.stopChild(a);return}o&&!a&&r.spawnChild("hotkey",{id:"hotkey"})}),RJ=()=>zn.assign(({context:e})=>{const r=e.beforeEditing;return r?{beforeEditing:null,editing:null,history:[...e.history,r]}:{editing:null}}),B$=()=>zn.enqueueActions(({event:e,enqueue:r})=>{if(e.type==="edit.finish"&&e.wasChanged){r(RJ()),r(SJ());return}r.assign({beforeEditing:null,editing:null})}),TWe=()=>zn.assign(({context:e})=>({beforeEditing:e.beforeEditing&&e.beforeEditing.synched===!1?{...e.beforeEditing,synched:!0}:e.beforeEditing,history:e.history.map(r=>({...r,synched:!0}))})),AWe=()=>zn.assign(({context:e})=>e.history.length<=1?{history:[]}:{history:e.history.slice(0,e.history.length-1)}),DWe=()=>zn.enqueueActions(({context:e,enqueue:r,system:n})=>{const o=rd(e.history);if(!o)return;r(mm()),r(AWe()),r(P$());const a=zWe(n);r.sendTo(a,{type:"update.view",view:o.view,xyedges:o.xyedges,xynodes:o.xynodes,source:"editor"}),r.assign({pendingChanges:[]}),o.synched?r.raise({type:"change",change:o.change},{delay:50}):r(SJ())}),O$=()=>zn.assign(({context:e,system:r})=>{const n=_J(r),o=kJ(n);return{pendingChanges:[...$J(e.pendingChanges),o]}}),MWe=y3(({sendBack:e})=>{const r=lw([["mod + z",n=>{n.stopPropagation(),e({type:"undo"})},{preventDefault:!0}]]);return document.body.addEventListener("keydown",r,{capture:!0}),()=>{document.body.removeEventListener("keydown",r,{capture:!0})}}),NWe=by(()=>{throw new Error("Not implemented")}),PWe=by(()=>{throw new Error("Not implemented")}),jJ=function(e){return e.system.get("diagram")},zn=rs({delays:{"350ms":350,waitBeforeSync:2e3},actors:{applyLatest:NWe,executeChange:PWe,hotkey:MWe},guards:{"has pending":({context:e})=>e.pendingChanges.length>0,"can undo":({context:e})=>e.history.length>0}}),Hn={idle:{target:"#idle"},editing:{target:"#editing"},afterEdit:{target:"#afterEdit"},pending:{target:"#pending"},applyLatestToManual:{target:"#applyLatestToManual"},executeChanges:{target:"#executeChanges"}},BWe=zn.createStateConfig({id:"idle",on:{sync:{...Hn.pending},"edit.start":{...Hn.editing}}}),OWe=zn.createStateConfig({id:"editing",tags:"pending",entry:[RWe(),mm()],on:{change:{actions:B$(),...Hn.executeChanges},"edit.finish":{actions:B$(),...Hn.afterEdit},undo:{actions:B$(),...Hn.idle}}}),IWe=zn.createStateConfig({id:"pending",tags:["pending"],entry:P$(),on:{sync:{reenter:!0,...Hn.pending},"edit.start":{actions:[O$()],...Hn.editing}},after:{waitBeforeSync:{actions:[O$()],...Hn.executeChanges}}}),LWe=zn.createStateConfig({id:"afterEdit",always:[{guard:"has pending",...Hn.pending},{...Hn.idle}]}),FWe=zn.createStateConfig({id:"applyLatestToManual",entry:[mm(),zJ()],initial:"call",on:{"*":{actions:[TS(({event:e})=>`applyLatestToManual received unexpected event: ${e.type}`),EJ(350)]}},states:{call:{invoke:{src:"applyLatest",input:({context:e})=>{const r=e.beforeEditing?.change.layout;return{current:r&&r._layout==="manual"?r:void 0,viewId:e.viewId}},onDone:{actions:wy(jJ,({event:e})=>({type:"update.view",view:e.output.updated}),{delay:10}),target:"wait"},onError:{actions:[Bt({beforeEditing:null,pendingChanges:[]}),({event:e})=>{console.error(e.error)}],...Hn.idle}}},wait:{entry:RJ(),after:{"350ms":{actions:[O$(),P$()],...Hn.executeChanges}}}}}),VWe=zn.createStateConfig({id:"executeChanges",entry:[Bt(({event:e,context:r})=>{if(e.type==="change"){if(CJ(e.change))return{pendingChanges:[...$J(r.pendingChanges),e.change]};if(!r.pendingChanges.includes(e.change))return{pendingChanges:[...r.pendingChanges,e.change]}}return{}}),mm()],invoke:{src:"executeChange",input:({context:e})=>({changes:e.pendingChanges,viewId:e.viewId}),onDone:{actions:ts(({context:e,enqueue:r})=>{const n=F1(e.pendingChanges,o=>o.op==="save-view-snapshot");n&&r.sendTo(jJ,{type:"update.view-bounds",bounds:n.layout.bounds}),r.assign({pendingChanges:[]})}),...Hn.idle},onError:{actions:({event:e})=>{console.error(e.error)},...Hn.afterEdit}},on:{"*":{actions:EJ()}}}),qWe=zn.createMachine({id:"editor",context:({input:e})=>({viewId:e.viewId,beforeEditing:null,editing:null,pendingChanges:[],history:[]}),initial:"idle",states:{idle:BWe,editing:OWe,pending:IWe,afterEdit:LWe,applyLatestToManual:FWe,executeChanges:VWe},on:{cancel:{actions:[mm(),Bt({editing:null,beforeEditing:null,pendingChanges:[]})],...Hn.idle},synced:{actions:TWe()},undo:{guard:"can undo",actions:DWe(),...Hn.idle},change:{...Hn.executeChanges},applyLatestToManual:{...Hn.applyLatestToManual},reset:{actions:[mm(),Bt({history:[],editing:null,beforeEditing:null,pendingChanges:[]}),jWe()],...Hn.idle}}}),TJ=qWe,AJ={};function DJ(e,r){return e===r?e:(r=r.map(n=>{const o=e.find(l=>l.id===n.id&&l.type===n.type&&l.source===n.source&&l.target===n.target);if(!o)return n;const a=tt(o.data,n.data),i=a?o.data:n.data;return a&&tt(o.hidden,n.hidden??o.hidden)&&tt(o.selected,n.selected??o.selected)&&tt(o.selectable,n.selectable??o.selectable)&&tt(o.focusable,n.focusable??o.focusable)&&tt(o.animated,n.animated??o.animated)&&tt(o.className,n.className)&&tt(o.zIndex,n.zIndex??o.zIndex)&&tt(o.label,n.label)&&tt(o.sourceHandle,n.sourceHandle)&&tt(o.targetHandle,n.targetHandle)&&tt(o.style??AJ,n.style??AJ)?o:{...U1(o,Ja),...U1(n,Ja),data:i}}),FV(e,r)?e:r)}function I$(e,r){return Ja(r)?DJ(e,r):(r=e,n=>DJ(n,r))}const g2={};function MJ(e,r){return e===r?e:(r=r.map(n=>{const o=e.find(p=>p.id===n.id&&p.type===n.type);if(!o)return n;const a=BV(o.data,n.data);let i=a?o.data:n.data;a||(Ja(o.data.hovered)&&!Ja(n.data.hovered)&&(i={...i,hovered:o.data.hovered}),Ja(o.data.dimmed)&&!Ja(n.data.dimmed)&&(i={...i,dimmed:o.data.dimmed}));const{width:l,height:s}=_o(o),c=Object.hasOwn(o,"handles")||Object.hasOwn(n,"handles"),d=!c||tt(o.handles??[],n.handles??[]);if(a&&d&&tt(l,n.width??n.initialWidth)&&tt(s,n.height??n.initialHeight)&&tt(o.parentId??null,n.parentId??null)&&tt(o.hidden,n.hidden??o.hidden)&&tt(o.selected,n.selected??o.selected)&&tt(o.selectable,n.selectable??o.selectable)&&tt(o.focusable,n.focusable??o.focusable)&&tt(o.draggable,n.draggable??o.draggable)&&tt(o.dragHandle,n.dragHandle)&&tt(o.className,n.className)&&tt(o.zIndex,n.zIndex??o.zIndex)&&tt(o.position,n.position)&&tt(o.domAttributes??g2,n.domAttributes??g2)&&tt(o.style??g2,n.style??g2))return o;const u=c&&d?o.handles:n.handles;return{...U1(o,(p,f)=>Ja(p)&&f!=="parentId"),..."measured"in o&&{measured:{width:n.width??n.initialWidth,height:n.height??n.initialHeight}},...U1(n,Ja),width:n.width??n.initialWidth,height:n.height??n.initialHeight,...u&&{handles:u},data:i}}),FV(e,r)?e:r)}function y2(e,r){return Ja(r)?MJ(e,r):(r=e,n=>MJ(n,r))}const L$={top:"40px",bottom:"22px",left:"22px",right:"22px"};function NJ(e){const r=[],n=[],o=new Map,a=I_.from(e.nodes.reduce((s,c)=>(o.set(c.id,c),c.parent||s.push({node:c,parent:null}),s),[])),i=s=>mt(o.get(s),`Node not found: ${s}`);let l;for(;l=a.dequeue();){const{node:s,parent:c}=l,d=xn(s.children,1)||s.kind==d1;if(d)for(const w of s.children)a.enqueue({node:i(w),parent:s});const u={x:s.x,y:s.y};c&&(u.x-=c.x,u.y-=c.y);const p=s.id,f={id:p,position:u,zIndex:d?oc.Compound:oc.Element,style:{width:s.width,height:s.height},initialWidth:s.width,initialHeight:s.height,...c&&{parentId:c.id}},g=s.modelRef??null,v={navigateTo:s.navigateTo??null};switch(!0){case s.kind===t2.Empty:{r.push({...f,type:"empty",data:{column:s.column}});break}case(d&&!!g):{r.push({...f,type:"compound",data:{id:p,column:s.column,title:s.title,color:s.color,shape:s.shape,style:s.style,depth:s.depth??0,icon:s.icon??"none",ports:s.ports,existsInCurrentView:s.existsInCurrentView,fqn:g,...v}});break}default:He(g,"Element should have either modelRef or deploymentRef"),r.push({...f,type:"element",data:{id:p,column:s.column,fqn:g,title:s.title,technology:s.technology,description:s.description,height:s.height,width:s.width,color:s.color,shape:s.shape,icon:s.icon??"none",ports:s.ports,style:s.style,existsInCurrentView:s.existsInCurrentView,tags:s.tags,...v}})}}for(const s of e.edges){const c=s.source,d=s.target,u=s.id;if(!xn(s.points,2)){console.error("edge should have at least 2 points",s);continue}if(!xn(s.relations,1)){console.error("edge should have at least 1 relation",s);continue}n.push({id:u,type:"relationship",source:c,target:d,sourceHandle:s.sourceHandle,targetHandle:s.targetHandle,data:{sourceFqn:s.sourceFqn,targetFqn:s.targetFqn,relations:s.relations,color:s.color??"gray",label:s.label,navigateTo:s.navigateTo??null,line:s.line??"dashed",existsInCurrentView:s.existsInCurrentView},interactionWidth:20})}return{xynodes:r,xyedges:n}}const PJ=e=>e.find(r=>r.data.column==="subjects"&&H1(r.parentId)),HWe=by(async({input:e,self:r,signal:n})=>{const{subjectId:o,navigateFromNode:a,xyflow:i,xystore:l,update:s}=e;let{nodes:c,width:d,height:u}=l.getState();const p=NJ(s),f=()=>{const{nodes:T,edges:O}=l.getState();return{xynodes:y2(T,p.xynodes),xyedges:I$(O,p.xyedges)}},g=mt(r._parent);let v=i.getZoom();const w=Math.max(v,1),x=qs(s.bounds,d,u,yi,w,L$),k=p.xynodes.find(T=>T.type!=="empty"&&T.data.column==="subjects"&&T.data.fqn===o)??PJ(p.xynodes),C=PJ(c),_=a?c.find(T=>T.id===a):c.find(T=>T.type!=="empty"&&T.data.column!=="subjects"&&T.data.fqn===o);if(!k||!_||k.type==="empty"||!C||k.data.fqn===C.data.fqn)return await i.setViewport(x),f();const $={x:k.position.x+(k.initialWidth??0)/2,y:k.position.y+(k.initialHeight??0)/2},z=i.getInternalNode(C.id),j=yC(z),A=new Set;if(c.forEach(T=>{if(T.id!==_.id){if(T.data.column==="subjects"){A.add(T.id);return}T.parentId&&(T.parentId===_.id||A.has(T.parentId))&&A.add(T.id)}}),c=y2(c,c.flatMap(T=>A.has(T.id)?[]:T.id!==_.id?{...T,data:{...T.data,dimmed:T.data.column==="subjects"?"immediate":!0}}:{...nd(T,["parentId"]),position:{x:j.x-T.initialWidth/2,y:j.y-T.initialHeight/2},zIndex:oc.Max,hidden:!1,data:{...T.data,dimmed:!1}})),g.send({type:"update.xydata",xynodes:c,xyedges:[]}),await YO(120),p.xynodes=p.xynodes.map(tr.setDimmed(!1)),n.aborted)return f();const R=300;return i.setCenter(j.x,j.y,{zoom:v,duration:R,interpolate:"smooth"}),await YO(R),await i.setCenter($.x,$.y,{zoom:v}),f()}),lc=rs({actors:{layouter:HWe},guards:{hasViewId:({context:e})=>e.viewId!==null,isReady:({context:e})=>e.xyflow!==null&&e.xystore!==null&&e.layouted!==null,anotherSubject:({context:e,event:r})=>r.type==="update.view"?e.layouted?.subject!==r.layouted.subject:!1}}),BJ=()=>lc.assign(({event:e})=>(ht(e,"xyflow.init"),{xyflow:e.instance,xystore:e.store})),OJ=()=>lc.assign(({event:e})=>(ht(e,"update.view"),{layouted:e.layouted,...NJ(e.layouted)})),UWe=()=>lc.createAction(({context:e})=>{He(e.xystore,"xystore is not initialized");const{domNode:r,updateNodeInternals:n}=e.xystore.getState(),o=new Set(e.xyedges.flatMap(l=>[l.source,l.target]));if(o.size===0||!r)return;const a=new Map,i=r.querySelectorAll(".react-flow__node");for(const l of i){const s=l.getAttribute("data-id");s&&o.has(s)&&a.set(s,{id:s,nodeElement:l,force:!0})}n(a,{triggerFitView:!1})}),F$=e=>lc.createAction(({context:r,event:n})=>{e??=n.type==="fitDiagram"?n:{};let{duration:o,bounds:a}=e??{};o??=450;const{xyflow:i,xystore:l}=r;He(i,"xyflow is not initialized"),He(l,"xystore is not initialized"),a??=r.layouted?.bounds;const s=Math.max(i.getZoom(),1);if(a){const{width:c,height:d}=l.getState(),u=qs(a,c,d,yi,s,L$);i.setViewport(u,o>0?{duration:o,interpolate:"smooth"}:void 0).catch(console.error)}else i.fitView({minZoom:yi,maxZoom:s,padding:L$,...o>0&&{duration:o,interpolate:"smooth"}}).catch(console.error)}),WWe=()=>lc.assign(({context:e,event:r})=>(ht(r,"xyflow.applyNodeChanges"),{xynodes:Ox(r.changes,e.xynodes)})),GWe=()=>lc.assign(({context:e,event:r})=>(ht(r,"xyflow.applyEdgeChanges"),{xyedges:Ix(r.changes,e.xyedges)})),IJ=()=>lc.enqueueActions(({system:e,event:r})=>{if(r.type!=="xyflow.edgeClick")return;const n=Rr(e).diagramActorRef,o=r.edge.data.relations;xn(o,1)&&n.send({type:"open.source",relation:o[0]})}),LJ=()=>lc.assign({xyflow:null,layouted:null,xystore:null,xyedges:[],xynodes:[]}),YWe=lc.createMachine({id:"relationships-browser",context:({input:e})=>({subject:e.subject,viewId:e.viewId,scope:e.viewId?e.scope:"global",closeable:e.closeable??!0,enableSelectSubject:e.enableSelectSubject??!0,enableChangeScope:e.enableChangeScope??!0,xyflow:null,xystore:null,layouted:null,navigateFromNode:null,xynodes:[],xyedges:[]}),initial:"initializing",on:{"xyflow.applyNodeChanges":{actions:WWe()},"xyflow.applyEdgeChanges":{actions:GWe()}},states:{initializing:{on:{"xyflow.init":{actions:BJ(),target:"isReady"},"update.view":{actions:OJ(),target:"isReady"},stop:"closed",close:"closed"}},isReady:{always:[{guard:"isReady",actions:[F$({duration:0}),na({type:"xyflow.updateNodeInternals"},{delay:150})],target:"active"},{target:"initializing"}]},active:{initial:"idle",tags:["active"],on:{"xyflow.nodeClick":{actions:ts(({event:e,enqueue:r})=>{if("fqn"in e.node.data){const n=e.node.data.fqn;r.raise({type:"navigate.to",subject:n,fromNode:e.node.id})}})},"xyflow.edgeClick":[{guard:"hasViewId",actions:ts(({event:e,context:r,system:n,enqueue:o})=>{e.edge.selected||e.edge.data.relations.length>1?o.sendTo(Rr(n).overlaysActorRef,{type:"open.relationshipDetails",viewId:r.viewId,source:e.edge.data.sourceFqn,target:e.edge.data.targetFqn}):o(IJ())})},{actions:IJ()}],"navigate.to":{actions:[Bt({subject:({event:e})=>e.subject,viewId:({event:e,context:r})=>e.viewId??r.viewId??null,navigateFromNode:({event:e})=>e.fromNode??null})]},"xyflow.paneDblClick":{actions:F$()},"update.view":{actions:OJ(),target:".layouting"},"change.scope":{actions:Bt({scope:({event:e})=>e.scope})},"xyflow.updateNodeInternals":{actions:UWe()},fitDiagram:{actions:F$()},"xyflow.resized":{actions:[si("fitDiagram"),na({type:"fitDiagram"},{id:"fitDiagram",delay:300})]},"xyflow.init":{actions:BJ()},"xyflow.unmount":{target:"initializing"},close:"closed"},states:{idle:{on:{"xyflow.edgeMouseEnter":{actions:[Bt({xyedges:({context:e,event:r})=>{const n=e.xyedges.some(o=>o.data.dimmed!==!1||o.selected);return e.xyedges.map(o=>o.id===r.edge.id?tr.setData(o,{hovered:!0,dimmed:!1}):n&&!o.selected?tr.setDimmed(o,"immediate"):o)}}),si("undim.edges"),si("dim.nonhovered.edges"),na({type:"dim.nonhovered.edges"},{id:"dim.nonhovered.edges",delay:200})]},"xyflow.edgeMouseLeave":{actions:[Bt({xyedges:({context:e,event:r})=>e.xyedges.map(n=>n.id===r.edge.id?tr.setHovered(n,!1):n)}),si("dim.nonhovered.edges"),na({type:"undim.edges"},{id:"undim.edges",delay:400})]},"dim.nonhovered.edges":{actions:Bt({xyedges:({context:e})=>e.xyedges.map(r=>r.data.hovered?r:tr.setDimmed(r,r.data.dimmed==="immediate"?"immediate":!0))})},"undim.edges":{actions:Bt({xyedges:({context:e})=>e.xyedges.map(tr.setDimmed(!1))})},"xyflow.selectionChange":{actions:ts(({event:e,context:r,enqueue:n})=>{e.edges.length===0&&r.xyedges.some(o=>o.data.dimmed)&&!r.xyedges.some(o=>o.data.hovered)&&n.raise({type:"undim.edges"})})}}},layouting:{invoke:{id:"layouter",src:"layouter",input:({context:e})=>({subjectId:e.subject,navigateFromNode:e.navigateFromNode,xyflow:mt(e.xyflow),xystore:mt(e.xystore),update:mt(e.layouted)}),onDone:{target:"idle",actions:ts(({enqueue:e,event:r})=>{e.assign({xynodes:r.output.xynodes,xyedges:r.output.xyedges,navigateFromNode:null}),e.raise({type:"fitDiagram",duration:200},{id:"fitDiagram",delay:50});for(let n=1;n<8;n++)e.raise({type:"xyflow.updateNodeInternals"},{delay:120+n*75})})}},on:{"update.xydata":{actions:Bt({xynodes:({event:e})=>e.xynodes,xyedges:({event:e})=>e.xyedges})},"xyflow.applyEdgeChanges":{},"xyflow.applyNodeChanges":{}}}}},closed:{id:"closed",type:"final",entry:LJ()}},exit:LJ()}),FJ=YWe,XWe=rs({actors:{relationshipsBrowserLogic:FJ}}).createMachine({id:"element-details",context:({input:e})=>({...e,initiatedFrom:{node:e.initiatedFrom?.node??null,clientRect:e.initiatedFrom?.clientRect??null}}),initial:"active",states:{active:{entry:d3("relationshipsBrowserLogic",{id:({self:e})=>`${e.id}-relationships`,input:({context:e})=>({subject:e.subject,viewId:e.currentView.id,scope:"view",enableSelectSubject:!1,enableChangeScope:!0,closeable:!1})}),exit:[wy(({self:e})=>`${e.id}-relationships`,{type:"close"}),yy(({self:e})=>`${e.id}-relationships`)],on:{"change.subject":{actions:Bt({subject:({event:e})=>e.subject})},close:"closed"}},closed:{id:"closed",type:"final"}}}),ZWe=XWe;function KWe(e){const r=[],n=[],o=new Map,a=I_.from(e.nodes.reduce((s,c)=>(o.set(c.id,c),c.parent||s.push({node:c,parent:null}),s),[])),i=s=>mt(o.get(s),`Node not found: ${s}`);let l;for(;l=a.dequeue();){const{node:s,parent:c}=l,d=xn(s.children,1);if(d)for(const w of s.children)a.enqueue({node:i(w),parent:s});const u={x:s.x,y:s.y};c&&(u.x-=c.x,u.y-=c.y);const p=s.id,f={id:p,draggable:!1,deletable:!1,position:u,zIndex:d?oc.Compound:oc.Element,style:{width:s.width,height:s.height},initialWidth:s.width,initialHeight:s.height,...c&&{parentId:c.id}},g=s.modelRef,v={navigateTo:s.navigateTo??null};switch(!0){case d:{r.push({...f,type:"compound",data:{id:p,column:s.column,title:s.title,color:s.color,style:s.style,depth:s.depth??0,icon:s.icon??"none",ports:s.ports,fqn:g,...v}});break}default:r.push({...f,type:"element",data:{id:p,column:s.column,fqn:g,title:s.title,technology:s.technology,description:s.description??null,height:s.height,width:s.width,color:s.color,shape:s.shape,icon:s.icon??"none",ports:s.ports,style:s.style,tags:s.tags,...v}})}}for(const{source:s,target:c,relationId:d,label:u,technology:p,description:f,navigateTo:g=null,color:v="gray",line:w="dashed",...x}of e.edges){const k=x.id;n.push({id:k,type:"relationship",source:s,target:c,sourceHandle:x.sourceHandle,targetHandle:x.targetHandle,deletable:!1,data:{relationId:d,label:u,color:v,navigateTo:g,line:w,description:f??null,...p&&{technology:p}}})}return{xynodes:r,xyedges:n,bounds:e.bounds}}function VJ(e){return"edgeId"in e?(He(Gx(e.edgeId),"edgeId is required"),{edgeId:e.edgeId}):{source:e.source,target:e.target}}const qJ={x:"22px",y:"22px"},QWe=rs({actions:{"xyflow:fitDiagram":({context:e},r)=>{let{duration:n,bounds:o}=r??{};n??=450;const{xyflow:a,xystore:i}=e;He(a,"xyflow is not initialized"),He(i,"xystore is not initialized"),o??=e.bounds;const l=Math.max(a.getZoom(),1);if(o){const{width:s,height:c}=i.getState(),d=qs(o,s,c,yi,l,qJ);a.setViewport(d,n>0?{duration:n}:void 0).catch(console.error)}else a.fitView({minZoom:yi,maxZoom:l,padding:qJ,...n>0&&{duration:n,interpolate:"smooth"}}).catch(console.error)},"xyflow:updateNodeInternals":({context:e})=>{He(e.xystore,"xystore is not initialized");const{domNode:r,updateNodeInternals:n}=e.xystore.getState(),o=new Set(e.xyedges.flatMap(i=>[i.source,i.target]));if(o.size===0||!r)return;const a=new Map;for(const i of o){const l=r.querySelector(`.react-flow__node[data-id="${i}"]`);l&&a.set(i,{id:i,nodeElement:l,force:!0})}n(a,{triggerFitView:!1})},updateXYFlow:Bt(({context:e,event:r})=>{ht(r,"xyflow.init");let n=e.initialized;return n.xyflow||(n={...n,xyflow:!0}),{initialized:n,xyflow:r.instance,xystore:r.store}}),updateLayoutData:Bt(({context:e,event:r})=>{ht(r,"update.layoutData");const{xynodes:n,xyedges:o,bounds:a}=KWe(r.data);let i=e.initialized;return i.xydata||(i={...i,xydata:!0}),{initialized:i,xynodes:y2(e.xynodes,n),xyedges:I$(e.xyedges,o),bounds:Or(e.bounds,a)?e.bounds:a}}),"open relationship source":ts(({system:e,event:r})=>{if(r.type!=="xyflow.edgeClick")return;const n=Rr(e).diagramActorRef,o=r.edge.data.relationId;o&&n.send({type:"open.source",relation:o})})},guards:{isReady:({context:e})=>e.initialized.xydata&&e.initialized.xyflow,"enable: navigate.to":()=>!0}}).createMachine({initial:"initializing",context:({input:e})=>({subject:VJ(e),viewId:e.viewId,bounds:{x:0,y:0,width:200,height:200},initialized:{xydata:!1,xyflow:!1},xyflow:null,xystore:null,xynodes:[],xyedges:[]}),states:{initializing:{on:{"xyflow.init":{actions:"updateXYFlow",target:"isReady"},"update.layoutData":{actions:"updateLayoutData",target:"isReady"},close:{target:"closed"}}},isReady:{always:[{guard:"isReady",actions:[{type:"xyflow:fitDiagram",params:{duration:0}},na({type:"xyflow.updateNodeInternals"},{delay:50})],target:"ready"},{target:"initializing"}]},ready:{on:{"xyflow.edgeMouseEnter":{actions:[Bt({xyedges:({context:e,event:r})=>{const n=e.xyedges.some(o=>o.data.dimmed===!0||o.data.dimmed==="immediate");return e.xyedges.map(o=>o.id===r.edge.id?tr.setData(o,{hovered:!0,dimmed:!1}):n&&!o.selected?tr.setDimmed(o,"immediate"):o)}}),si("undim.edges"),si("dim.nonhovered.edges"),na({type:"dim.nonhovered.edges"},{id:"dim.nonhovered.edges",delay:100})]},"xyflow.edgeMouseLeave":{actions:[Bt({xyedges:({context:e,event:r})=>e.xyedges.map(n=>n.id===r.edge.id?tr.setHovered(n,!1):n)}),si("dim.nonhovered.edges"),na({type:"undim.edges"},{id:"undim.edges",delay:400})]},"dim.nonhovered.edges":{actions:Bt({xyedges:({context:e})=>e.xyedges.map(r=>tr.setDimmed(r,r.data.hovered!==!0))})},"undim.edges":{actions:Bt({xyedges:({context:e})=>e.xyedges.some(r=>r.selected===!0)?e.xyedges.map(r=>tr.setDimmed(r,r.selected!==!0?r.data.dimmed||"immediate":!1)):e.xyedges.map(tr.setDimmed(!1))})},"xyflow.selectionChange":{actions:ts(({event:e,context:r,enqueue:n})=>{e.edges.length===0&&r.xyedges.some(o=>o.data.dimmed)&&!r.xyedges.some(o=>o.data.hovered)&&n.raise({type:"undim.edges"})})},"update.layoutData":{actions:["updateLayoutData",si("fitDiagram"),na({type:"fitDiagram",duration:0},{id:"fitDiagram",delay:50}),na({type:"xyflow.updateNodeInternals"},{delay:75})]},"xyflow.init":{actions:"updateXYFlow"},"xyflow.applyNodeChanges":{actions:Bt({xynodes:({context:e,event:r})=>Ox(r.changes,e.xynodes)})},"xyflow.applyEdgeChanges":{actions:Bt({xyedges:({context:e,event:r})=>Ix(r.changes,e.xyedges)})},"xyflow.paneDblClick":{actions:"xyflow:fitDiagram"},"xyflow.edgeClick":{actions:"open relationship source"},"navigate.to":{actions:Bt({subject:({event:e})=>VJ(e.params),viewId:({context:e,event:r})=>r.params.viewId??e.viewId})},close:{target:"closed"}},exit:Bt({xyedges:[],xynodes:[],initialized:{xydata:!1,xyflow:!1},xyflow:null,xystore:null})},closed:{type:"final"}},on:{fitDiagram:{actions:{type:"xyflow:fitDiagram",params:Yu("event")}},"xyflow.resized":{actions:[si("fitDiagram"),na({type:"fitDiagram"},{id:"fitDiagram",delay:200})]},"xyflow.updateNodeInternals":{actions:"xyflow:updateNodeInternals"}}}),JWe=QWe;var zd={},ft={},HJ=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},gm={},UJ;function V$(){if(UJ)return gm;UJ=1,Object.defineProperty(gm,"__esModule",{value:!0});function e(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof HJ<"u")return HJ}function r(){const a=e();if(a.__xstate__)return a.__xstate__}function n(a){if(typeof window>"u")return;const i=r();i&&i.register(a)}const o=a=>{if(typeof window>"u")return;const i=r();i&&i.register(a)};return gm.devToolsAdapter=o,gm.getGlobal=e,gm.registerService=n,gm}var WJ;function v2(){if(WJ)return ft;WJ=1;var e=V$();class r{constructor(ee){this._process=ee,this._active=!1,this._current=null,this._last=null}start(){this._active=!0,this.flush()}clear(){this._current&&(this._current.next=null,this._last=this._current)}enqueue(ee){const oe={value:ee,next:null};if(this._current){this._last.next=oe,this._last=oe;return}this._current=oe,this._last=oe,this._active&&this.flush()}flush(){for(;this._current;){const ee=this._current;this._process(ee.value),this._current=ee.next}this._last=null}}const n=".",o="",a="",i="#",l="*",s="xstate.init",c="xstate.error",d="xstate.stop";function u(J,ee){return{type:`xstate.after.${J}.${ee}`}}function p(J,ee){return{type:`xstate.done.state.${J}`,output:ee}}function f(J,ee){return{type:`xstate.done.actor.${J}`,output:ee,actorId:J}}function g(J,ee){return{type:`xstate.error.actor.${J}`,error:ee,actorId:J}}function v(J){return{type:s,input:J}}function w(J){setTimeout(()=>{throw J})}const x=typeof Symbol=="function"&&Symbol.observable||"@@observable";function k(J,ee){const oe=_(J),ie=_(ee);return typeof ie=="string"?typeof oe=="string"?ie===oe:!1:typeof oe=="string"?oe in ie:Object.keys(oe).every(le=>le in ie?k(oe[le],ie[le]):!1)}function C(J){if(T(J))return J;const ee=[];let oe="";for(let ie=0;ietypeof ee>"u"||typeof ee=="string"?{target:ee}:ee)}function L(J){if(!(J===void 0||J===o))return A(J)}function H(J,ee,oe){const ie=typeof J=="object",le=ie?J:void 0;return{next:(ie?J.next:J)?.bind(le),error:(ie?J.error:ee)?.bind(le),complete:(ie?J.complete:oe)?.bind(le)}}function M(J,ee){return`${ee}.${J}`}function V(J,ee){const oe=ee.match(/^xstate\.invoke\.(\d+)\.(.*)/);if(!oe)return J.implementations.actors[ee];const[,ie,le]=oe,ve=J.getStateNodeById(le).config.invoke;return(Array.isArray(ve)?ve[ie]:ve).src}function B(J){return[...new Set([...J._nodes.flatMap(ee=>ee.ownEvents)])]}function F(J,ee){return`${J.sessionId}.${ee}`}let q=0;function G(J,ee){const oe=new Map,ie=new Map,le=new WeakMap,ve=new Set,Ae={},{clock:Fe,logger:rt}=ee,lt={schedule:(Ke,pt,vt,Lt,No=Math.random().toString(36).slice(2))=>{const dh={source:Ke,target:pt,event:vt,delay:Lt,id:No,startedAt:Date.now()},Ia=F(Ke,No);Ze._snapshot._scheduledEvents[Ia]=dh;const Kd=Fe.setTimeout(()=>{delete Ae[Ia],delete Ze._snapshot._scheduledEvents[Ia],Ze._relay(Ke,pt,vt)},Lt);Ae[Ia]=Kd},cancel:(Ke,pt)=>{const vt=F(Ke,pt),Lt=Ae[vt];delete Ae[vt],delete Ze._snapshot._scheduledEvents[vt],Lt!==void 0&&Fe.clearTimeout(Lt)},cancelAll:Ke=>{for(const pt in Ze._snapshot._scheduledEvents){const vt=Ze._snapshot._scheduledEvents[pt];vt.source===Ke&<.cancel(Ke,vt.id)}}},It=Ke=>{if(!ve.size)return;const pt={...Ke,rootId:J.sessionId};ve.forEach(vt=>vt.next?.(pt))},Ze={_snapshot:{_scheduledEvents:(ee?.snapshot&&ee.snapshot.scheduler)??{}},_bookId:()=>`x:${q++}`,_register:(Ke,pt)=>(oe.set(Ke,pt),Ke),_unregister:Ke=>{oe.delete(Ke.sessionId);const pt=le.get(Ke);pt!==void 0&&(ie.delete(pt),le.delete(Ke))},get:Ke=>ie.get(Ke),getAll:()=>Object.fromEntries(ie.entries()),_set:(Ke,pt)=>{const vt=ie.get(Ke);if(vt&&vt!==pt)throw new Error(`Actor with system ID '${Ke}' already exists.`);ie.set(Ke,pt),le.set(pt,Ke)},inspect:Ke=>{const pt=H(Ke);return ve.add(pt),{unsubscribe(){ve.delete(pt)}}},_sendInspectionEvent:It,_relay:(Ke,pt,vt)=>{Ze._sendInspectionEvent({type:"@xstate.event",sourceRef:Ke,actorRef:pt,event:vt}),pt._send(vt)},scheduler:lt,getSnapshot:()=>({_scheduledEvents:{...Ze._snapshot._scheduledEvents}}),start:()=>{const Ke=Ze._snapshot._scheduledEvents;Ze._snapshot._scheduledEvents={};for(const pt in Ke){const{source:vt,target:Lt,event:No,delay:dh,id:Ia}=Ke[pt];lt.schedule(vt,Lt,No,dh,Ia)}},_clock:Fe,_logger:rt};return Ze}let U=!1;const Y=1;let Z=(function(J){return J[J.NotStarted=0]="NotStarted",J[J.Running=1]="Running",J[J.Stopped=2]="Stopped",J})({});const I={clock:{setTimeout:(J,ee)=>setTimeout(J,ee),clearTimeout:J=>clearTimeout(J)},logger:console.log.bind(console),devTools:!1};class W{constructor(ee,oe){this.logic=ee,this._snapshot=void 0,this.clock=void 0,this.options=void 0,this.id=void 0,this.mailbox=new r(this._process.bind(this)),this.observers=new Set,this.eventListeners=new Map,this.logger=void 0,this._processingStatus=Z.NotStarted,this._parent=void 0,this._syncSnapshot=void 0,this.ref=void 0,this._actorScope=void 0,this.systemId=void 0,this.sessionId=void 0,this.system=void 0,this._doneEvent=void 0,this.src=void 0,this._deferred=[];const ie={...I,...oe},{clock:le,logger:ve,parent:Ae,syncSnapshot:Fe,id:rt,systemId:lt,inspect:It}=ie;this.system=Ae?Ae.system:G(this,{clock:le,logger:ve}),It&&!Ae&&this.system.inspect(H(It)),this.sessionId=this.system._bookId(),this.id=rt??this.sessionId,this.logger=oe?.logger??this.system._logger,this.clock=oe?.clock??this.system._clock,this._parent=Ae,this._syncSnapshot=Fe,this.options=ie,this.src=ie.src??ee,this.ref=this,this._actorScope={self:this,id:this.id,sessionId:this.sessionId,logger:this.logger,defer:Ze=>{this._deferred.push(Ze)},system:this.system,stopChild:Ze=>{if(Ze._parent!==this)throw new Error(`Cannot stop child actor ${Ze.id} of ${this.id} because it is not a child`);Ze._stop()},emit:Ze=>{const Ke=this.eventListeners.get(Ze.type),pt=this.eventListeners.get("*");if(!Ke&&!pt)return;const vt=[...Ke?Ke.values():[],...pt?pt.values():[]];for(const Lt of vt)try{Lt(Ze)}catch(No){w(No)}},actionExecutor:Ze=>{const Ke=()=>{if(this._actorScope.system._sendInspectionEvent({type:"@xstate.action",actorRef:this,action:{type:Ze.type,params:Ze.params}}),!Ze.exec)return;const pt=U;try{U=!0,Ze.exec(Ze.info,Ze.params)}finally{U=pt}};this._processingStatus===Z.Running?Ke():this._deferred.push(Ke)}},this.send=this.send.bind(this),this.system._sendInspectionEvent({type:"@xstate.actor",actorRef:this}),lt&&(this.systemId=lt,this.system._set(lt,this)),this._initState(oe?.snapshot??oe?.state),lt&&this._snapshot.status!=="active"&&this.system._unregister(this)}_initState(ee){try{this._snapshot=ee?this.logic.restoreSnapshot?this.logic.restoreSnapshot(ee,this._actorScope):ee:this.logic.getInitialSnapshot(this._actorScope,this.options?.input)}catch(oe){this._snapshot={status:"error",output:void 0,error:oe}}}update(ee,oe){this._snapshot=ee;let ie;for(;ie=this._deferred.shift();)try{ie()}catch(le){this._deferred.length=0,this._snapshot={...ee,status:"error",error:le}}switch(this._snapshot.status){case"active":for(const le of this.observers)try{le.next?.(ee)}catch(ve){w(ve)}break;case"done":for(const le of this.observers)try{le.next?.(ee)}catch(ve){w(ve)}this._stopProcedure(),this._complete(),this._doneEvent=f(this.id,this._snapshot.output),this._parent&&this.system._relay(this,this._parent,this._doneEvent);break;case"error":this._error(this._snapshot.error);break}this.system._sendInspectionEvent({type:"@xstate.snapshot",actorRef:this,event:oe,snapshot:ee})}subscribe(ee,oe,ie){const le=H(ee,oe,ie);if(this._processingStatus!==Z.Stopped)this.observers.add(le);else switch(this._snapshot.status){case"done":try{le.complete?.()}catch(ve){w(ve)}break;case"error":{const ve=this._snapshot.error;if(!le.error)w(ve);else try{le.error(ve)}catch(Ae){w(Ae)}break}}return{unsubscribe:()=>{this.observers.delete(le)}}}on(ee,oe){let ie=this.eventListeners.get(ee);ie||(ie=new Set,this.eventListeners.set(ee,ie));const le=oe.bind(void 0);return ie.add(le),{unsubscribe:()=>{ie.delete(le)}}}start(){if(this._processingStatus===Z.Running)return this;this._syncSnapshot&&this.subscribe({next:oe=>{oe.status==="active"&&this.system._relay(this,this._parent,{type:`xstate.snapshot.${this.id}`,snapshot:oe})},error:()=>{}}),this.system._register(this.sessionId,this),this.systemId&&this.system._set(this.systemId,this),this._processingStatus=Z.Running;const ee=v(this.options.input);switch(this.system._sendInspectionEvent({type:"@xstate.event",sourceRef:this._parent,actorRef:this,event:ee}),this._snapshot.status){case"done":return this.update(this._snapshot,ee),this;case"error":return this._error(this._snapshot.error),this}if(this._parent||this.system.start(),this.logic.start)try{this.logic.start(this._snapshot,this._actorScope)}catch(oe){return this._snapshot={...this._snapshot,status:"error",error:oe},this._error(oe),this}return this.update(this._snapshot,ee),this.options.devTools&&this.attachDevTools(),this.mailbox.start(),this}_process(ee){let oe,ie;try{oe=this.logic.transition(this._snapshot,ee,this._actorScope)}catch(le){ie={err:le}}if(ie){const{err:le}=ie;this._snapshot={...this._snapshot,status:"error",error:le},this._error(le);return}this.update(oe,ee),ee.type===d&&(this._stopProcedure(),this._complete())}_stop(){return this._processingStatus===Z.Stopped?this:(this.mailbox.clear(),this._processingStatus===Z.NotStarted?(this._processingStatus=Z.Stopped,this):(this.mailbox.enqueue({type:d}),this))}stop(){if(this._parent)throw new Error("A non-root actor cannot be stopped directly.");return this._stop()}_complete(){for(const ee of this.observers)try{ee.complete?.()}catch(oe){w(oe)}this.observers.clear()}_reportError(ee){if(!this.observers.size){this._parent||w(ee);return}let oe=!1;for(const ie of this.observers){const le=ie.error;oe||=!le;try{le?.(ee)}catch(ve){w(ve)}}this.observers.clear(),oe&&w(ee)}_error(ee){this._stopProcedure(),this._reportError(ee),this._parent&&this.system._relay(this,this._parent,g(this.id,ee))}_stopProcedure(){return this._processingStatus!==Z.Running?this:(this.system.scheduler.cancelAll(this),this.mailbox.clear(),this.mailbox=new r(this._process.bind(this)),this._processingStatus=Z.Stopped,this.system._unregister(this),this)}_send(ee){this._processingStatus!==Z.Stopped&&this.mailbox.enqueue(ee)}send(ee){this.system._relay(void 0,this,ee)}attachDevTools(){const{devTools:ee}=this.options;ee&&(typeof ee=="function"?ee:e.devToolsAdapter)(this)}toJSON(){return{xstate$$type:Y,id:this.id}}getPersistedSnapshot(ee){return this.logic.getPersistedSnapshot(this._snapshot,ee)}[x](){return this}getSnapshot(){return this._snapshot}}function K(J,...[ee]){return new W(J,ee)}const Q=K;function ae(J,ee,oe,ie,{sendId:le}){const ve=typeof le=="function"?le(oe,ie):le;return[ee,{sendId:ve},void 0]}function te(J,ee){J.defer(()=>{J.system.scheduler.cancel(J.self,ee.sendId)})}function re(J){function ee(oe,ie){}return ee.type="xstate.cancel",ee.sendId=J,ee.resolve=ae,ee.execute=te,ee}function ue(J,ee,oe,ie,{id:le,systemId:ve,src:Ae,input:Fe,syncSnapshot:rt}){const lt=typeof Ae=="string"?V(ee.machine,Ae):Ae,It=typeof le=="function"?le(oe):le;let Ze,Ke;return lt&&(Ke=typeof Fe=="function"?Fe({context:ee.context,event:oe.event,self:J.self}):Fe,Ze=K(lt,{id:It,src:Ae,parent:J.self,syncSnapshot:rt,systemId:ve,input:Ke})),[Gr(ee,{children:{...ee.children,[It]:Ze}}),{id:le,systemId:ve,actorRef:Ze,src:Ae,input:Ke},void 0]}function _e(J,{actorRef:ee}){ee&&J.defer(()=>{ee._processingStatus!==Z.Stopped&&ee.start()})}function ce(...[J,{id:ee,systemId:oe,input:ie,syncSnapshot:le=!1}={}]){function ve(Ae,Fe){}return ve.type="xstate.spawnChild",ve.id=ee,ve.systemId=oe,ve.src=J,ve.input=ie,ve.syncSnapshot=le,ve.resolve=ue,ve.execute=_e,ve}function pe(J,ee,oe,ie,{actorRef:le}){const ve=typeof le=="function"?le(oe,ie):le,Ae=typeof ve=="string"?ee.children[ve]:ve;let Fe=ee.children;return Ae&&(Fe={...Fe},delete Fe[Ae.id]),[Gr(ee,{children:Fe}),Ae,void 0]}function xe(J,ee){if(ee){if(J.system._unregister(ee),ee._processingStatus!==Z.Running){J.stopChild(ee);return}J.defer(()=>{J.stopChild(ee)})}}function De(J){function ee(oe,ie){}return ee.type="xstate.stopChild",ee.actorRef=J,ee.resolve=pe,ee.execute=xe,ee}const Be=De;function Je(J,ee,{stateValue:oe}){if(typeof oe=="string"&&Ht(oe)){const ie=J.machine.getStateNodeById(oe);return J._nodes.some(le=>le===ie)}return J.matches(oe)}function st(J){function ee(){return!1}return ee.check=Je,ee.stateValue=J,ee}function Le(J,{context:ee,event:oe},{guards:ie}){return!Et(ie[0],ee,oe,J)}function St(J){function ee(oe,ie){return!1}return ee.check=Le,ee.guards=[J],ee}function Ve(J,{context:ee,event:oe},{guards:ie}){return ie.every(le=>Et(le,ee,oe,J))}function qe(J){function ee(oe,ie){return!1}return ee.check=Ve,ee.guards=J,ee}function Xe(J,{context:ee,event:oe},{guards:ie}){return ie.some(le=>Et(le,ee,oe,J))}function Ot(J){function ee(oe,ie){return!1}return ee.check=Xe,ee.guards=J,ee}function Et(J,ee,oe,ie){const{machine:le}=ie,ve=typeof J=="function",Ae=ve?J:le.implementations.guards[typeof J=="string"?J:J.type];if(!ve&&!Ae)throw new Error(`Guard '${typeof J=="string"?J:J.type}' is not implemented.'.`);if(typeof Ae!="function")return Et(Ae,ee,oe,ie);const Fe={context:ee,event:oe},rt=ve||typeof J=="string"?void 0:"params"in J?typeof J.params=="function"?J.params({context:ee,event:oe}):J.params:void 0;return"check"in Ae?Ae.check(ie,Fe,Ae):Ae(Fe,rt)}const be=J=>J.type==="atomic"||J.type==="final";function ke(J){return Object.values(J.states).filter(ee=>ee.type!=="history")}function Ye(J,ee){const oe=[];if(ee===J)return oe;let ie=J.parent;for(;ie&&ie!==ee;)oe.push(ie),ie=ie.parent;return oe}function yt(J){const ee=new Set(J),oe=jr(ee);for(const ie of ee)if(ie.type==="compound"&&(!oe.get(ie)||!oe.get(ie).length))sa(ie).forEach(le=>ee.add(le));else if(ie.type==="parallel"){for(const le of ke(ie))if(le.type!=="history"&&!ee.has(le)){const ve=sa(le);for(const Ae of ve)ee.add(Ae)}}for(const ie of ee){let le=ie.parent;for(;le;)ee.add(le),le=le.parent}return ee}function xt(J,ee){const oe=ee.get(J);if(!oe)return{};if(J.type==="compound"){const le=oe[0];if(le){if(be(le))return le.key}else return{}}const ie={};for(const le of oe)ie[le.key]=xt(le,ee);return ie}function jr(J){const ee=new Map;for(const oe of J)ee.has(oe)||ee.set(oe,[]),oe.parent&&(ee.has(oe.parent)||ee.set(oe.parent,[]),ee.get(oe.parent).push(oe));return ee}function er(J,ee){const oe=yt(ee);return xt(J,jr(oe))}function qt(J,ee){return ee.type==="compound"?ke(ee).some(oe=>oe.type==="final"&&J.has(oe)):ee.type==="parallel"?ke(ee).every(oe=>qt(J,oe)):ee.type==="final"}const Ht=J=>J[0]===i;function Zr(J,ee){return J.transitions.get(ee)||[...J.transitions.keys()].filter(oe=>{if(oe===l)return!0;if(!oe.endsWith(".*"))return!1;const ie=oe.split("."),le=ee.split(".");for(let ve=0;veie.length-oe.length).flatMap(oe=>J.transitions.get(oe))}function Gt(J){const ee=J.config.after;if(!ee)return[];const oe=ie=>{const le=u(ie,J.id),ve=le.type;return J.entry.push(Zd(le,{id:ve,delay:ie})),J.exit.push(re(ve)),ve};return Object.keys(ee).flatMap(ie=>{const le=ee[ie],ve=typeof le=="string"?{target:le}:le,Ae=Number.isNaN(+ie)?ie:+ie,Fe=oe(Ae);return A(ve).map(rt=>({...rt,event:Fe,delay:Ae}))}).map(ie=>{const{delay:le}=ie;return{...ln(J,ie.event,ie),delay:le}})}function ln(J,ee,oe){const ie=L(oe.target),le=oe.reenter??!1,ve=oo(J,ie),Ae={...oe,actions:A(oe.actions),guard:oe.guard,target:ve,source:J,reenter:le,eventType:ee,toJSON:()=>({...Ae,source:`#${J.id}`,target:ve?ve.map(Fe=>`#${Fe.id}`):void 0})};return Ae}function Wn(J){const ee=new Map;if(J.config.on)for(const oe of Object.keys(J.config.on)){if(oe===a)throw new Error('Null events ("") cannot be specified as a transition key. Use `always: { ... }` instead.');const ie=J.config.on[oe];ee.set(oe,P(ie).map(le=>ln(J,oe,le)))}if(J.config.onDone){const oe=`xstate.done.state.${J.id}`;ee.set(oe,P(J.config.onDone).map(ie=>ln(J,oe,ie)))}for(const oe of J.invoke){if(oe.onDone){const ie=`xstate.done.actor.${oe.id}`;ee.set(ie,P(oe.onDone).map(le=>ln(J,ie,le)))}if(oe.onError){const ie=`xstate.error.actor.${oe.id}`;ee.set(ie,P(oe.onError).map(le=>ln(J,ie,le)))}if(oe.onSnapshot){const ie=`xstate.snapshot.${oe.id}`;ee.set(ie,P(oe.onSnapshot).map(le=>ln(J,ie,le)))}}for(const oe of J.after){let ie=ee.get(oe.eventType);ie||(ie=[],ee.set(oe.eventType,ie)),ie.push(oe)}return ee}function fn(J,ee){const oe=typeof ee=="string"?J.states[ee]:ee?J.states[ee.target]:void 0;if(!oe&&ee)throw new Error(`Initial state node "${ee}" not found on parent state node #${J.id}`);const ie={source:J,actions:!ee||typeof ee=="string"?[]:A(ee.actions),eventType:null,reenter:!1,target:oe?[oe]:[],toJSON:()=>({...ie,source:`#${J.id}`,target:oe?[`#${oe.id}`]:[]})};return ie}function oo(J,ee){if(ee!==void 0)return ee.map(oe=>{if(typeof oe!="string")return oe;if(Ht(oe))return J.machine.getStateNodeById(oe);const ie=oe[0]===n;if(ie&&!J.parent)return bs(J,oe.slice(1));const le=ie?J.key+oe:oe;if(J.parent)try{return bs(J.parent,le)}catch(ve){throw new Error(`Invalid transition definition for state node '${J.id}': +${ve.message}`)}else throw new Error(`Invalid target: "${oe}" is not a valid target from the root node. Did you mean ".${oe}"?`)})}function Uo(J){const ee=L(J.config.target);return ee?{target:ee.map(oe=>typeof oe=="string"?bs(J.parent,oe):oe)}:J.parent.initial}function To(J){return J.type==="history"}function sa(J){const ee=Al(J);for(const oe of ee)for(const ie of Ye(oe,J))ee.add(ie);return ee}function Al(J){const ee=new Set;function oe(ie){if(!ee.has(ie)){if(ee.add(ie),ie.type==="compound")oe(ie.initial.target[0]);else if(ie.type==="parallel")for(const le of ke(ie))oe(le)}}return oe(J),ee}function Ao(J,ee){if(Ht(ee))return J.machine.getStateNodeById(ee);if(!J.states)throw new Error(`Unable to retrieve child state '${ee}' from '${J.id}'; no child states exist.`);const oe=J.states[ee];if(!oe)throw new Error(`Child state '${ee}' does not exist on '${J.id}'`);return oe}function bs(J,ee){if(typeof ee=="string"&&Ht(ee))try{return J.machine.getStateNodeById(ee)}catch{}const oe=C(ee).slice();let ie=J;for(;oe.length;){const le=oe.shift();if(!le.length)break;ie=Ao(ie,le)}return ie}function xs(J,ee){if(typeof ee=="string"){const le=J.states[ee];if(!le)throw new Error(`State '${ee}' does not exist on '${J.id}'`);return[J,le]}const oe=Object.keys(ee),ie=oe.map(le=>Ao(J,le)).filter(Boolean);return[J.machine.root,J].concat(ie,oe.reduce((le,ve)=>{const Ae=Ao(J,ve);if(!Ae)return le;const Fe=xs(Ae,ee[ve]);return le.concat(Fe)},[]))}function kc(J,ee,oe,ie){const le=Ao(J,ee).next(oe,ie);return!le||!le.length?J.next(oe,ie):le}function Dl(J,ee,oe,ie){const le=Object.keys(ee),ve=Ao(J,le[0]),Ae=ws(ve,ee[le[0]],oe,ie);return!Ae||!Ae.length?J.next(oe,ie):Ae}function ih(J,ee,oe,ie){const le=[];for(const ve of Object.keys(ee)){const Ae=ee[ve];if(!Ae)continue;const Fe=Ao(J,ve),rt=ws(Fe,Ae,oe,ie);rt&&le.push(...rt)}return le.length?le:J.next(oe,ie)}function ws(J,ee,oe,ie){return typeof ee=="string"?kc(J,ee,oe,ie):Object.keys(ee).length===1?Dl(J,ee,oe,ie):ih(J,ee,oe,ie)}function Hd(J){return Object.keys(J.states).map(ee=>J.states[ee]).filter(ee=>ee.type==="history")}function Wo(J,ee){let oe=J;for(;oe.parent&&oe.parent!==ee;)oe=oe.parent;return oe.parent===ee}function _c(J,ee){const oe=new Set(J),ie=new Set(ee);for(const le of oe)if(ie.has(le))return!0;for(const le of ie)if(oe.has(le))return!0;return!1}function ks(J,ee,oe){const ie=new Set;for(const le of J){let ve=!1;const Ae=new Set;for(const Fe of ie)if(_c(Nr([le],ee,oe),Nr([Fe],ee,oe)))if(Wo(le.source,Fe.source))Ae.add(Fe);else{ve=!0;break}if(!ve){for(const Fe of Ae)ie.delete(Fe);ie.add(le)}}return Array.from(ie)}function Ud(J){const[ee,...oe]=J;for(const ie of Ye(ee,void 0))if(oe.every(le=>Wo(le,ie)))return ie}function _s(J,ee){if(!J.target)return[];const oe=new Set;for(const ie of J.target)if(To(ie))if(ee[ie.id])for(const le of ee[ie.id])oe.add(le);else for(const le of _s(Uo(ie),ee))oe.add(le);else oe.add(ie);return[...oe]}function Go(J,ee){const oe=_s(J,ee);if(!oe)return;if(!J.reenter&&oe.every(le=>le===J.source||Wo(le,J.source)))return J.source;const ie=Ud(oe.concat(J.source));if(ie)return ie;if(!J.reenter)return J.source.machine.root}function Nr(J,ee,oe){const ie=new Set;for(const le of J)if(le.target?.length){const ve=Go(le,oe);le.reenter&&le.source===ve&&ie.add(ve);for(const Ae of ee)Wo(Ae,ve)&&ie.add(Ae)}return[...ie]}function Mn(J,ee){if(J.length!==ee.size)return!1;for(const oe of J)if(!ee.has(oe))return!1;return!0}function Do(J,ee,oe,ie,le,ve){if(!J.length)return ee;const Ae=new Set(ee._nodes);let Fe=ee.historyValue;const rt=ks(J,Ae,Fe);let lt=ee;le||([lt,Fe]=Ci(lt,ie,oe,rt,Ae,Fe,ve,oe.actionExecutor)),lt=ho(lt,ie,oe,rt.flatMap(Ze=>Ze.actions),ve,void 0),lt=Sc(lt,ie,oe,rt,Ae,ve,Fe,le);const It=[...Ae];lt.status==="done"&&(lt=ho(lt,ie,oe,It.sort((Ze,Ke)=>Ke.order-Ze.order).flatMap(Ze=>Ze.exit),ve,void 0));try{return Fe===ee.historyValue&&Mn(ee._nodes,Ae)?lt:Gr(lt,{_nodes:It,historyValue:Fe})}catch(Ze){throw Ze}}function Ml(J,ee,oe,ie,le){if(ie.output===void 0)return;const ve=p(le.id,le.output!==void 0&&le.parent?R(le.output,J.context,ee,oe.self):void 0);return R(ie.output,J.context,ve,oe.self)}function Sc(J,ee,oe,ie,le,ve,Ae,Fe){let rt=J;const lt=new Set,It=new Set;lh(ie,Ae,It,lt),Fe&&It.add(J.machine.root);const Ze=new Set;for(const Ke of[...lt].sort((pt,vt)=>pt.order-vt.order)){le.add(Ke);const pt=[];pt.push(...Ke.entry);for(const vt of Ke.invoke)pt.push(ce(vt.src,{...vt,syncSnapshot:!!vt.onSnapshot}));if(It.has(Ke)){const vt=Ke.initial.actions;pt.push(...vt)}if(rt=ho(rt,ee,oe,pt,ve,Ke.invoke.map(vt=>vt.id)),Ke.type==="final"){const vt=Ke.parent;let Lt=vt?.type==="parallel"?vt:vt?.parent,No=Lt||Ke;for(vt?.type==="compound"&&ve.push(p(vt.id,Ke.output!==void 0?R(Ke.output,rt.context,ee,oe.self):void 0));Lt?.type==="parallel"&&!Ze.has(Lt)&&qt(le,Lt);)Ze.add(Lt),ve.push(p(Lt.id)),No=Lt,Lt=Lt.parent;if(Lt)continue;rt=Gr(rt,{status:"done",output:Ml(rt,ee,oe,rt.machine.root,No)})}}return rt}function lh(J,ee,oe,ie){for(const le of J){const ve=Go(le,ee);for(const Fe of le.target||[])!To(Fe)&&(le.source!==Fe||le.source!==ve||le.reenter)&&(ie.add(Fe),oe.add(Fe)),Ba(Fe,ee,oe,ie);const Ae=_s(le,ee);for(const Fe of Ae){const rt=Ye(Fe,ve);ve?.type==="parallel"&&rt.push(ve),Ei(ie,ee,oe,rt,!le.source.parent&&le.reenter?void 0:ve)}}}function Ba(J,ee,oe,ie){if(To(J))if(ee[J.id]){const le=ee[J.id];for(const ve of le)ie.add(ve),Ba(ve,ee,oe,ie);for(const ve of le)Nl(ve,J.parent,ie,ee,oe)}else{const le=Uo(J);for(const ve of le.target)ie.add(ve),le===J.parent?.initial&&oe.add(J.parent),Ba(ve,ee,oe,ie);for(const ve of le.target)Nl(ve,J.parent,ie,ee,oe)}else if(J.type==="compound"){const[le]=J.initial.target;To(le)||(ie.add(le),oe.add(le)),Ba(le,ee,oe,ie),Nl(le,J,ie,ee,oe)}else if(J.type==="parallel")for(const le of ke(J).filter(ve=>!To(ve)))[...ie].some(ve=>Wo(ve,le))||(To(le)||(ie.add(le),oe.add(le)),Ba(le,ee,oe,ie))}function Ei(J,ee,oe,ie,le){for(const ve of ie)if((!le||Wo(ve,le))&&J.add(ve),ve.type==="parallel")for(const Ae of ke(ve).filter(Fe=>!To(Fe)))[...J].some(Fe=>Wo(Fe,Ae))||(J.add(Ae),Ba(Ae,ee,oe,J))}function Nl(J,ee,oe,ie,le){Ei(oe,ie,le,Ye(J,ee))}function Ci(J,ee,oe,ie,le,ve,Ae,Fe){let rt=J;const lt=Nr(ie,le,ve);lt.sort((Ze,Ke)=>Ke.order-Ze.order);let It;for(const Ze of lt)for(const Ke of Hd(Ze)){let pt;Ke.history==="deep"?pt=vt=>be(vt)&&Wo(vt,Ze):pt=vt=>vt.parent===Ze,It??={...ve},It[Ke.id]=Array.from(le).filter(pt)}for(const Ze of lt)rt=ho(rt,ee,oe,[...Ze.exit,...Ze.invoke.map(Ke=>De(Ke.id))],Ae,void 0),le.delete(Ze);return[rt,It||ve]}function $i(J,ee){return J.implementations.actions[ee]}function ca(J,ee,oe,ie,le,ve){const{machine:Ae}=J;let Fe=J;for(const rt of ie){const lt=typeof rt=="function",It=lt?rt:$i(Ae,typeof rt=="string"?rt:rt.type),Ze={context:Fe.context,event:ee,self:oe.self,system:oe.system},Ke=lt||typeof rt=="string"?void 0:"params"in rt?typeof rt.params=="function"?rt.params({context:Fe.context,event:ee}):rt.params:void 0;if(!It||!("resolve"in It)){oe.actionExecutor({type:typeof rt=="string"?rt:typeof rt=="object"?rt.type:rt.name||"(anonymous)",info:Ze,params:Ke,exec:It});continue}const pt=It,[vt,Lt,No]=pt.resolve(oe,Fe,Ze,Ke,It,le);Fe=vt,"retryResolve"in pt&&ve?.push([pt,Lt]),"execute"in pt&&oe.actionExecutor({type:pt.type,info:Ze,params:Lt,exec:pt.execute.bind(null,oe,Lt)}),No&&(Fe=ca(Fe,ee,oe,No,le,ve))}return Fe}function ho(J,ee,oe,ie,le,ve){const Ae=ve?[]:void 0,Fe=ca(J,ee,oe,ie,{internalQueue:le,deferredActorIds:ve},Ae);return Ae?.forEach(([rt,lt])=>{rt.retryResolve(oe,Fe,lt)}),Fe}function Wr(J,ee,oe,ie){let le=J;const ve=[];function Ae(lt,It,Ze){oe.system._sendInspectionEvent({type:"@xstate.microstep",actorRef:oe.self,event:It,snapshot:lt,_transitions:Ze}),ve.push(lt)}if(ee.type===d)return le=Gr(Ec(le,ee,oe),{status:"stopped"}),Ae(le,ee,[]),{snapshot:le,microstates:ve};let Fe=ee;if(Fe.type!==s){const lt=Fe,It=O(lt),Ze=Cc(lt,le);if(It&&!Ze.length)return le=Gr(J,{status:"error",error:lt.error}),Ae(le,lt,[]),{snapshot:le,microstates:ve};le=Do(Ze,J,oe,Fe,!1,ie),Ae(le,lt,Ze)}let rt=!0;for(;le.status==="active";){let lt=rt?Oa(le,Fe):[];const It=lt.length?le:void 0;if(!lt.length){if(!ie.length)break;Fe=ie.shift(),lt=Cc(Fe,le)}le=Do(lt,le,oe,Fe,!1,ie),rt=le!==It,Ae(le,Fe,lt)}return le.status!=="active"&&Ec(le,Fe,oe),{snapshot:le,microstates:ve}}function Ec(J,ee,oe){return ho(J,ee,oe,Object.values(J.children).map(ie=>De(ie)),[],void 0)}function Cc(J,ee){return ee.machine.getTransitionData(ee,J)}function Oa(J,ee){const oe=new Set,ie=J._nodes.filter(be);for(const le of ie)e:for(const ve of[le].concat(Ye(le,void 0)))if(ve.always){for(const Ae of ve.always)if(Ae.guard===void 0||Et(Ae.guard,J.context,ee,J)){oe.add(Ae);break e}}return ks(Array.from(oe),new Set(J._nodes),J.historyValue)}function zi(J,ee){const oe=yt(xs(J,ee));return er(J,[...oe])}function Wd(J){return!!J&&typeof J=="object"&&"machine"in J&&"value"in J}const Ss=function(J){return k(J,this.value)},Gd=function(J){return this.tags.has(J)},sh=function(J){const ee=this.machine.getTransitionData(this,J);return!!ee?.length&&ee.some(oe=>oe.target!==void 0||oe.actions.length)},Es=function(){const{_nodes:J,tags:ee,machine:oe,getMeta:ie,toJSON:le,can:ve,hasTag:Ae,matches:Fe,...rt}=this;return{...rt,tags:Array.from(ee)}},Cs=function(){return this._nodes.reduce((J,ee)=>(ee.meta!==void 0&&(J[ee.id]=ee.meta),J),{})};function Mo(J,ee){return{status:J.status,output:J.output,error:J.error,machine:ee,context:J.context,_nodes:J._nodes,value:er(ee.root,J._nodes),tags:new Set(J._nodes.flatMap(oe=>oe.tags)),children:J.children,historyValue:J.historyValue||{},matches:Ss,hasTag:Gd,can:sh,getMeta:Cs,toJSON:Es}}function Gr(J,ee={}){return Mo({...J,...ee},J.machine)}function Yd(J){if(typeof J!="object"||J===null)return{};const ee={};for(const oe in J){const ie=J[oe];Array.isArray(ie)&&(ee[oe]=ie.map(le=>({id:le.id})))}return ee}function ch(J,ee){const{_nodes:oe,tags:ie,machine:le,children:ve,context:Ae,can:Fe,hasTag:rt,matches:lt,getMeta:It,toJSON:Ze,...Ke}=J,pt={};for(const vt in ve){const Lt=ve[vt];pt[vt]={snapshot:Lt.getPersistedSnapshot(ee),src:Lt.src,systemId:Lt.systemId,syncSnapshot:Lt._syncSnapshot}}return{...Ke,context:Ri(Ae),children:pt,historyValue:Yd(Ke.historyValue)}}function Ri(J){let ee;for(const oe in J){const ie=J[oe];if(ie&&typeof ie=="object")if("sessionId"in ie&&"send"in ie&&"ref"in ie)ee??=Array.isArray(J)?J.slice():{...J},ee[oe]={xstate$$type:Y,id:ie.id};else{const le=Ri(ie);le!==ie&&(ee??=Array.isArray(J)?J.slice():{...J},ee[oe]=le)}}return ee??J}function Xd(J,ee,oe,ie,{event:le,id:ve,delay:Ae},{internalQueue:Fe}){const rt=ee.machine.implementations.delays;if(typeof le=="string")throw new Error(`Only event objects may be used with raise; use raise({ type: "${le}" }) instead`);const lt=typeof le=="function"?le(oe,ie):le;let It;if(typeof Ae=="string"){const Ze=rt&&rt[Ae];It=typeof Ze=="function"?Ze(oe,ie):Ze}else It=typeof Ae=="function"?Ae(oe,ie):Ae;return typeof It!="number"&&Fe.push(lt),[ee,{event:lt,id:ve,delay:It},void 0]}function ji(J,ee){const{event:oe,delay:ie,id:le}=ee;if(typeof ie=="number"){J.defer(()=>{const ve=J.self;J.system.scheduler.schedule(ve,ve,oe,ie,le)});return}}function Zd(J,ee){function oe(ie,le){}return oe.type="xstate.raise",oe.event=J,oe.id=ee?.id,oe.delay=ee?.delay,oe.resolve=Xd,oe.execute=ji,oe}return ft.$$ACTOR_TYPE=Y,ft.Actor=W,ft.NULL_EVENT=a,ft.ProcessingStatus=Z,ft.STATE_DELIMITER=n,ft.XSTATE_ERROR=c,ft.XSTATE_STOP=d,ft.and=qe,ft.cancel=re,ft.cloneMachineSnapshot=Gr,ft.createActor=K,ft.createErrorActorEvent=g,ft.createInitEvent=v,ft.createInvokeId=M,ft.createMachineSnapshot=Mo,ft.evaluateGuard=Et,ft.formatInitialTransition=fn,ft.formatTransition=ln,ft.formatTransitions=Wn,ft.getAllOwnEventDescriptors=B,ft.getAllStateNodes=yt,ft.getCandidates=Zr,ft.getDelayedTransitions=Gt,ft.getInitialStateNodes=Al,ft.getPersistedSnapshot=ch,ft.getStateNodeByPath=bs,ft.getStateNodes=xs,ft.interpret=Q,ft.isInFinalState=qt,ft.isMachineSnapshot=Wd,ft.isStateId=Ht,ft.macrostep=Wr,ft.mapValues=z,ft.matchesState=k,ft.microstep=Do,ft.not=St,ft.or=Ot,ft.pathToStateValue=$,ft.raise=Zd,ft.resolveActionsAndContext=ho,ft.resolveReferencedActor=V,ft.resolveStateValue=zi,ft.spawnChild=ce,ft.stateIn=st,ft.stop=Be,ft.stopChild=De,ft.toArray=A,ft.toObserver=H,ft.toStatePath=C,ft.toTransitionConfigArray=P,ft.transitionNode=ws,ft}var GJ;function eGe(){if(GJ)return zd;GJ=1,Object.defineProperty(zd,"__esModule",{value:!0});var e=v2();return V$(),zd.and=e.and,zd.evaluateGuard=e.evaluateGuard,zd.not=e.not,zd.or=e.or,zd.stateIn=e.stateIn,zd}var Rd=eGe();const tGe=y3(({sendBack:e})=>{const r=lw([["Escape",n=>{n.stopPropagation(),e({type:"close"})},{preventDefault:!0}]]);return document.body.addEventListener("keydown",r,{capture:!0}),()=>{document.body.removeEventListener("keydown",r,{capture:!0})}}),dl=rs({actors:{relationshipDetails:JWe,elementDetails:ZWe,relationshipsBrowser:FJ,hotkey:tGe},guards:{"has overlays?":({context:e})=>e.overlays.length>0,"close specific overlay?":({context:e,event:r})=>(ht(r,"close"),Gx(r.actorId)&&e.overlays.some(n=>n.id===r.actorId)),"last: is relationshipDetails?":({context:e})=>rd(e.overlays)?.type==="relationshipDetails","last: is relationshipsBrowser?":({context:e})=>rd(e.overlays)?.type==="relationshipsBrowser"}}),rGe=()=>dl.enqueueActions(({context:e,enqueue:r})=>{if(e.overlays.length===0)return;const n=rd(e.overlays)?.id;n&&(r.sendTo(n,{type:"close"}),r.stopChild(n),r.assign({overlays:e.overlays.filter(o=>o.id!==n)}))}),nGe=()=>dl.enqueueActions(({context:e,enqueue:r,event:n})=>{ht(n,"close");const o=n.actorId;if(!Gx(o))return;const a=e.overlays.find(i=>i.id===o)?.id;a&&(r.sendTo(a,{type:"close"}),r.stopChild(a),r.assign({overlays:e.overlays.filter(i=>i.id!==a)}))}),YJ=()=>dl.enqueueActions(({context:e,enqueue:r})=>{for(const{id:n}of ACe(e.overlays))r.sendTo(n,{type:"close"}),r.stopChild(n);r.assign({overlays:[]})}),oGe=()=>dl.enqueueActions(({context:e,enqueue:r,event:n})=>{if(ht(n,"open.elementDetails"),e.overlays.some(a=>a.type==="elementDetails"&&a.subject===n.subject))return;const o=`elementDetails-${e.seq}`;r.spawnChild("elementDetails",{id:o,input:n,syncSnapshot:!0}),r.assign({seq:e.seq+1,overlays:[...e.overlays,{id:o,type:"elementDetails",subject:n.subject}]})}),aGe=()=>dl.enqueueActions(({context:e,enqueue:r,event:n})=>{ht(n,"open.relationshipDetails");const o=rd(e.overlays);if(o?.type==="relationshipDetails"){r.sendTo(o.id,{...n,type:"navigate.to"});return}const a=`relationshipDetails-${e.seq}`;r.spawnChild("relationshipDetails",{id:a,input:n,syncSnapshot:!0}),r.assign({seq:e.seq+1,overlays:[...e.overlays,{id:a,type:"relationshipDetails"}]})}),iGe=()=>dl.enqueueActions(({context:e,enqueue:r,event:n})=>{ht(n,"open.relationshipsBrowser");const o=rd(e.overlays);if(o?.type==="relationshipsBrowser"){r.sendTo(o.id,{type:"navigate.to",subject:n.subject,viewId:n.viewId});return}const a=`relationshipsBrowser-${e.seq}`;r.spawnChild("relationshipsBrowser",{id:a,input:n,syncSnapshot:!0}),r.assign({seq:e.seq+1,overlays:[...e.overlays,{id:a,type:"relationshipsBrowser",subject:n.subject}]})}),XJ=()=>dl.enqueueActions(({enqueue:e,event:r})=>{switch(console.log("openOverlay event",r),ht(r,["open.elementDetails","open.relationshipDetails","open.relationshipsBrowser"]),r.type){case"open.elementDetails":e(oGe());break;case"open.relationshipDetails":e(aGe());break;case"open.relationshipsBrowser":e(iGe());break}}),lGe=()=>dl.spawnChild("hotkey",{id:"hotkey"}),ZJ=()=>dl.stopChild("hotkey"),KJ=()=>dl.enqueueActions(({enqueue:e,context:r})=>{r.overlays.length===0&&(console.log("No overlays left, raising close event"),e.raise({type:"close"}))}),sGe=dl.createMachine({id:"overlays",context:()=>({seq:1,overlays:[]}),initial:"idle",states:{idle:{on:{"open.*":{actions:XJ(),target:"active"}}},active:{entry:[lGe()],exit:[ZJ()],on:{"open.*":{actions:XJ()},close:[{guard:Rd.not("has overlays?"),target:"idle"},{guard:"close specific overlay?",actions:[nGe(),KJ()]},{actions:[rGe(),KJ()]}],"close.all":{actions:[YJ()],target:"idle"}}},final:{entry:[YJ(),ZJ()],type:"final"}}}),cGe=sGe,dGe=rs({actions:{"change searchValue":Bt({searchValue:({event:e,context:r})=>(ht(e,["change.search","open"]),e.search??r.searchValue)}),"reset pickViewFor":Bt({pickViewFor:()=>null})}}).createMachine({id:"search",context:{openedWithSearch:null,searchValue:"",pickViewFor:null},initial:"inactive",on:{close:{target:".inactive",actions:"reset pickViewFor"}},states:{inactive:{on:{open:{target:"opened",actions:[Bt({openedWithSearch:({event:e})=>e.search??null,searchValue:({event:e,context:r})=>e.search??r.searchValue})]}}},opened:{on:{open:{actions:"change searchValue"},"change.search":{actions:"change searchValue"},"pickview.open":{target:"pickView",actions:Bt({pickViewFor:({event:e})=>e.elementFqn})}}},pickView:{on:{"pickview.close":{target:"opened",actions:"reset pickViewFor"}}}}}),uGe=dGe,pGe=y3(({sendBack:e})=>{const r=lw([["Escape",o=>{o.stopPropagation(),e({type:"key.esc"})},{preventDefault:!0}]]),n=lw([["ArrowLeft",o=>{o.stopPropagation(),e({type:"key.arrow.left"})},{preventDefault:!0}],["ArrowUp",o=>{o.stopPropagation(),e({type:"key.arrow.up"})},{preventDefault:!0}],["ArrowRight",o=>{o.stopPropagation(),e({type:"key.arrow.right"})},{preventDefault:!0}],["ArrowDown",o=>{o.stopPropagation(),e({type:"key.arrow.down"})},{preventDefault:!0}]]);return document.body.addEventListener("keydown",r),document.body.addEventListener("keydown",n,{capture:!0}),()=>{document.body.removeEventListener("keydown",r),document.body.removeEventListener("keydown",n,{capture:!0})}}),hGe=y3(({sendBack:e})=>{const r=()=>{e({type:"media.print.on"})},n=()=>{e({type:"media.print.off"})};return window.addEventListener("beforeprint",r),window.addEventListener("afterprint",n),()=>{window.removeEventListener("beforeprint",r),window.removeEventListener("afterprint",n)}}),b2=e=>{let r=e.toggledFeatures;const n=Kn(e.activeWalkthrough),o=e.features.enableCompareWithLatest&&(r.enableCompareWithLatest??!1)&&Kn(e.view._layout)&&!n,a=e.features.enableReadOnly||(r.enableReadOnly??!1)||n||e.dynamicViewVariant==="sequence"&&e.view._type==="dynamic"||o&&e.view._layout==="auto";return{enableCompareWithLatest:o,enableReadOnly:a}},q$=e=>b2(e).enableReadOnly,Qe=rs({actors:{hotkeyActorLogic:pGe,overlaysActorLogic:cGe,searchActorLogic:uGe,mediaPrintActorLogic:hGe,editorActor:TJ},guards:{isReady:({context:e})=>e.initialized.xydata&&e.initialized.xyflow,"enabled: Editor":({context:e})=>e.features.enableEditor,"enabled: FitView":({context:e})=>e.features.enableFitView,"enabled: FocusMode":({context:e})=>e.features.enableFocusMode&&q$(e),"enabled: Readonly":({context:e})=>q$(e),"enabled: RelationshipDetails":({context:e})=>e.features.enableRelationshipDetails,"enabled: Search":({context:e})=>e.features.enableSearch,"enabled: ElementDetails":({context:e})=>e.features.enableElementDetails,"enabled: OpenSource":({context:e})=>e.features.enableVscode,"enabled: DynamicViewWalkthrough":({context:e})=>e.features.enableDynamicViewWalkthrough,"focus.node: autoUnfocus":({event:e})=>(ht(e,"focus.node"),e.autoUnfocus===!0),"enabled: Overlays":({context:e})=>e.features.enableElementDetails||e.features.enableRelationshipBrowser||e.features.enableRelationshipDetails,"not readonly":({context:e})=>!q$(e),"is dynamic view":({context:e})=>e.view._type==="dynamic","is same view":({context:e,event:r})=>{if(ht(r,["update.view","navigate.to"]),r.type==="update.view")return e.view.id===r.view.id;if(r.type==="navigate.to")return e.view.id===r.viewId;Xo(r.type)},"is another view":({context:e,event:r})=>{if(ht(r,["update.view","navigate.to"]),r.type==="update.view")return e.view.id!==r.view.id;if(r.type==="navigate.to")return e.view.id!==r.viewId;Xo(r.type)},"click: node has modelFqn":({event:e})=>(ht(e,"xyflow.nodeClick"),"modelFqn"in e.node.data),"click: selected node":({event:e})=>(ht(e,"xyflow.nodeClick"),e.node.selected===!0),"click: same node":({context:e,event:r})=>(ht(r,"xyflow.nodeClick"),e.lastClickedNode?.id===r.node.id),"click: focused node":({context:e,event:r})=>(ht(r,"xyflow.nodeClick"),e.focusedNode===r.node.id),"click: node has connections":({context:e,event:r})=>(ht(r,"xyflow.nodeClick"),e.xyedges.some(n=>n.source===r.node.id||n.target===r.node.id)),"click: selected edge":({event:e})=>(ht(e,["xyflow.edgeClick","xyflow.edgeDoubleClick"]),e.edge.selected===!0||e.edge.data.active===!0)}}),Rn={idle:"#idle",focused:"#focused",walkthrough:"#walkthrough",printing:"#printing",navigating:"#navigating"},fGe=[["path",{d:"M3 13a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v6a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2z",key:"svg-0"}],["path",{d:"M9 16a1 1 0 1 0 2 0a1 1 0 0 0 -2 0",key:"svg-1"}],["path",{d:"M13 11v-4a4 4 0 1 1 8 0v4",key:"svg-2"}]],QJ=wt("outline","lock-open-2","LockOpen2",fGe),mGe=[["path",{d:"M5 13a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v6a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-6z",key:"svg-0"}],["path",{d:"M11 16a1 1 0 1 0 2 0a1 1 0 0 0 -2 0",key:"svg-1"}],["path",{d:"M8 11v-4a4 4 0 1 1 8 0v4",key:"svg-2"}]],gGe=wt("outline","lock","Lock",mGe),yGe=e=>{const r=b2(e).enableCompareWithLatest&&!!e.view.drifts&&e.view._layout==="auto",n=e.view._type==="dynamic"&&e.dynamicViewVariant==="sequence",o=!Kn(e.activeWalkthrough);return{visible:e.features.enableEditor&&o,disabled:r||n,isReadOnly:e.toggledFeatures.enableReadOnly??!1}},vGe=()=>{const{visible:e,disabled:r,isReadOnly:n}=ci(yGe),o=Nt();return y.jsx(Cn,{mode:"popLayout",children:e&&y.jsxs(pr,{component:vi,layout:"position",layoutDependency:n,disabled:r,onClick:a=>{a.stopPropagation(),!r&&o.toggleFeature("ReadOnly")},initial:{opacity:0,scale:.6},animate:{opacity:1,scale:r?.95:1},exit:{opacity:0,scale:.6},whileTap:{translateY:1},className:Ge("group",qn({gap:"0.5",paddingInline:"xxs",paddingBlock:"xxs",userSelect:"none",layerStyle:"likec4.panel.action",backgroundColor:{base:"none",_notDisabled:{_hover:"likec4.panel.action.bg.hover"}}})),children:[y.jsx(QJ,{size:14,stroke:2,style:{display:n?"none":void 0}}),y.jsx(gGe,{size:14,stroke:2,style:{display:n?void 0:"none"}}),y.jsx(zr,{className:fe({fontSize:"11px",fontWeight:600,lineHeight:1,opacity:.8}),style:{display:n?"block":"none"},children:"Edit"})]})})},bGe=[["path",{d:"M6 4v16a1 1 0 0 0 1.524 .852l13 -8a1 1 0 0 0 0 -1.704l-13 -8a1 1 0 0 0 -1.524 .852z",key:"svg-0"}]],xGe=wt("filled","player-play-filled","PlayerPlayFilled",bGe),JJ=S.forwardRef((e,r)=>y.jsx(Vn,{variant:"filled",size:"xs",fw:"500",...e,ref:r,component:vi,whileTap:{scale:.95},layout:"position",layoutId:"trigger-dynamic-walkthrough",className:fe({flexShrink:0})}));function wGe(){const{enableReadOnly:e,enableCompareWithLatest:r}=sr(),n=Nt(),o=i0();let a="Start Dynamic View Walkthrough";switch(!0){case!e:a="Walkthrough not available in Edit mode";break;case r:a="Walkthrough not available when Compare is active";break}return y.jsx(vJ,{label:a,children:y.jsx(JJ,{onClick:i=>{i.stopPropagation(),o.closeDropdown(),n.startWalkthrough()},initial:{opacity:0,scale:.6,translateX:-10},animate:{opacity:1,scale:1,translateX:0},exit:{opacity:0,translateX:-20},size:"compact-xs",h:26,disabled:!e||r,classNames:{label:fe({display:{base:"none","@/md":"inherit"}}),section:fe({marginInlineStart:{base:"0","@/md":"2"}})},rightSection:y.jsx(xGe,{size:10}),children:"Start"})})}const kGe=S.forwardRef(({value:e,onChange:r},n)=>y.jsx(zr,{ref:n,layout:"position",children:y.jsx(Mf,{size:"xs",value:e,component:zr,onChange:o=>{He(o==="diagram"||o==="sequence","Invalid dynamic view variant"),r(o)},classNames:{label:fe({fontSize:"xxs"})},data:[{value:"diagram",label:"Diagram"},{value:"sequence",label:"Sequence"}]})}));function _Ge(){const e=ci(n=>n.dynamicViewVariant),r=Nt();return y.jsxs(Cn,{children:[y.jsx(kGe,{value:e,onChange:n=>{r.switchDynamicViewVariant(n)}}),y.jsx(wGe,{},"trigger-dynamic-walkthrough")]})}const eee=S.memo(()=>{const{enableSearch:e,enableCompareWithLatest:r}=sr(),n=Nt(),o=nf();return y.jsx(Cn,{children:e&&!r&&y.jsxs(pr,{component:vi,layout:"position",onClick:a=>{a.stopPropagation(),n.openSearch()},whileTap:{scale:.95,translateY:1},className:Ge("group",qn({gap:"xxs",paddingInline:"sm",paddingBlock:"xxs",userSelect:"none",layerStyle:"likec4.panel.action.filled",display:{base:"none","@/md":"flex"}})),children:[y.jsx(R$,{size:14,stroke:2.5}),y.jsx(hr,{css:{fontSize:"11px",fontWeight:600,lineHeight:1,opacity:.8,whiteSpace:"nowrap"},children:o?"⌘ + K":"Ctrl + K"})]})})});eee.displayName="SearchControl";const SGe=({context:e})=>{const r=e.view.drifts??null;if(!e.features.enableCompareWithLatest||!r||r.length===0)return{hasEditor:!1,isEnabled:!1,isEditable:!1,isActive:!1,drifts:[],canApplyLatest:!1,layout:e.view._layout??"auto"};const{enableCompareWithLatest:n,enableReadOnly:o}=b2(e);return{hasEditor:e.features.enableEditor,isEnabled:!0,isEditable:!o,isActive:n===!0,drifts:r,canApplyLatest:!r.includes("type-changed"),layout:e.view._layout??"auto"}};function H$(){const e=Hf(),r=pn(e,SGe,Or),n=it(l=>{if(!r.isEnabled){console.warn("Compare with latest feature is not enabled");return}e.send({type:"emit.onLayoutTypeChange",layoutType:l})}),o=it(l=>{if(!r.isEnabled){console.warn("Compare with latest feature is not enabled");return}const s=l?l==="on":!r.isActive;r.isActive&&!s&&r.layout==="auto"&&n("manual"),e.send({type:"toggle.feature",feature:"CompareWithLatest",forceValue:s})}),a=it(()=>{if(!r.isEnabled){console.warn("Compare with latest feature is not enabled");return}e.send({type:"layout.resetManualLayout"})}),i=it(()=>{if(!r.isEnabled){console.warn("Compare with latest feature is not enabled");return}mt(e.system?.get("editor"),"editor actor not found").send({type:"applyLatestToManual"}),r.isActive&&e.send({type:"toggle.feature",feature:"CompareWithLatest",forceValue:!1})});return[r,{toggleCompare:o,switchLayout:n,resetManualLayout:a,applyLatestToManual:i}]}const EGe=[["path",{d:"M12 9v4",key:"svg-0"}],["path",{d:"M10.363 3.591l-8.106 13.534a1.914 1.914 0 0 0 1.636 2.871h16.214a1.914 1.914 0 0 0 1.636 -2.87l-8.106 -13.536a1.914 1.914 0 0 0 -3.274 0z",key:"svg-1"}],["path",{d:"M12 16h.01",key:"svg-2"}]],tee=wt("outline","alert-triangle","AlertTriangle",EGe),ree=S.memo(()=>{const[e,{toggleCompare:r}]=H$(),n=fm(),{drifts:o,isActive:a,isEnabled:i}=e;return y.jsx(Cn,{propagate:!0,children:i&&!a&&y.jsxs(Af,{position:"bottom-start",openDelay:600,closeDelay:200,floatingStrategy:"absolute",offset:{mainAxis:4,crossAxis:-22},...n,children:[y.jsx(W9,{children:y.jsx(pr,{component:vi,layout:"position",onClick:l=>{l.stopPropagation(),r()},whileTap:{scale:.95,translateY:1},className:Ge("group",eK({variant:"filled",type:"warning"}),qn({gap:"xxs",padding:"1.5",rounded:"sm",userSelect:"none",cursor:"pointer",fontSize:"xs",fontWeight:600})),children:a?y.jsx(y.Fragment,{children:"Stop Compare"}):y.jsx(tee,{size:18})})}),y.jsx(H9,{p:"0",children:y.jsxs(dy,{color:"orange",withBorder:!1,withCloseButton:!1,title:"View is out of sync",children:[y.jsx(at,{mt:2,size:"sm",lh:"xs",children:"Model has changed since this view was last updated."}),y.jsxs(at,{mt:4,size:"sm",lh:"xs",children:["Detected changes:",o.map(l=>y.jsxs(S.Fragment,{children:[y.jsx("br",{}),y.jsxs("span",{children:["- ",l]})]},l))]}),y.jsx(Vn,{mt:"xs",size:"compact-sm",variant:"default",onClick:l=>{l.stopPropagation(),r()},children:"Compare with current state"})]})})]})})});ree.displayName="ManualLayoutWarning";const CGe=({context:e})=>{const r=e.view,n=e.viewModel?.folder;return{folders:!n||n.isRoot?[]:n.breadcrumbs.map(o=>({folderPath:o.path,title:o.title})),viewId:r.id,viewTitle:e.viewModel?.title??(r.title&&y8(r.title))??"Untitled View",isDynamicView:(e.viewModel?._type??r._type)==="dynamic"}},nee=S.memo(()=>{const e=i0(),{enableNavigationButtons:r,enableDynamicViewWalkthrough:n}=sr(),{folders:o,viewTitle:a,isDynamicView:i}=pn(e.actorRef,CGe,tt),l=o.flatMap(({folderPath:c,title:d},u)=>[y.jsx(pr,{component:vi,className:Ge(m2({dimmed:!0,truncate:!0}),"mantine-active",fe({userSelect:"none",maxWidth:"200px",display:{base:"none","@/md":"block"}})),initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},title:d,onMouseEnter:()=>e.send({type:"breadcrumbs.mouseEnter.folder",folderPath:c}),onMouseLeave:()=>e.send({type:"breadcrumbs.mouseLeave.folder",folderPath:c}),onClick:p=>{p.stopPropagation(),e.send({type:"breadcrumbs.click.folder",folderPath:c})},children:d},c),y.jsx(bJ,{},`separator-${u}`)]),s=y.jsx(pr,{component:vi,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},className:Ge("mantine-active",m2({truncate:!0}),fe({userSelect:"none"})),title:a,onMouseEnter:()=>e.send({type:"breadcrumbs.mouseEnter.viewtitle"}),onMouseLeave:()=>e.send({type:"breadcrumbs.mouseLeave.viewtitle"}),onClick:c=>{c.stopPropagation(),e.send({type:"breadcrumbs.click.viewtitle"})},children:a},"view-title");return y.jsxs(Cn,{propagate:!0,mode:"popLayout",children:[y.jsx(hWe,{},"burger-button"),r&&y.jsx(gWe,{},"nav-buttons"),y.jsxs(zr,{layout:"position",className:qn({gap:"1",flexShrink:1,flexGrow:1,overflow:"hidden"}),children:[l,s]},"breadcrumbs"),y.jsxs(zr,{layout:"position",className:qn({gap:"0.5",flexGrow:0,_empty:{display:"none"}}),children:[y.jsx(xWe,{onOpen:()=>e.closeDropdown()}),y.jsx(EWe,{}),y.jsx(vGe,{})]},"actions"),n&&i&&y.jsx(_Ge,{},"dynamic-view-controls"),y.jsx(eee,{},"search-control"),y.jsx(ree,{},"outdated-manual-layout-warning")]})});nee.displayName="NavigationPanelControls";const U$=S.forwardRef(({className:e,truncateLabel:r=!0,...n},o)=>y.jsx(Q9,{...n,component:"button",classNames:gFe({truncateLabel:r}),className:Ge("group","mantine-active",e),ref:o}));U$.displayName="NavigationLink";const $Ge=S.createContext(null),zGe=[],RGe=()=>{},jGe={projects:zGe,onProjectChange:RGe};function TGe(){return S.useContext($Ge)??jGe}function AGe(){const e=S.useContext(fy);if(!e)throw new Error("No LikeC4ModelProvider found");return e.projectId}const DGe=S.memo(e=>{const{projects:r,onProjectChange:n}=TGe(),o=AGe();return r.length<=1?null:y.jsxs(Ir,{gap:"0.5",alignItems:"baseline",children:[y.jsx(hr,{css:{fontWeight:"400",fontSize:"xxs",color:"likec4.panel.text.dimmed",userSelect:"none"},children:"Project"}),y.jsxs(tn,{withinPortal:!1,shadow:"md",position:"bottom-start",offset:{mainAxis:2},children:[y.jsx(t3,{children:y.jsx(Vn,{tabIndex:-1,autoFocus:!1,variant:"subtle",size:"compact-xs",color:"gray",classNames:{root:fe({fontWeight:"400",fontSize:"xxs",height:"auto",lineHeight:1.1,color:{_light:"mantine.colors.gray[9]"}}),section:fe({'&:is([data-position="right"])':{marginInlineStart:"1"}})},rightSection:y.jsx(xC,{opacity:.5,size:12,stroke:1.5}),children:o})}),y.jsx(sy,{children:r.map(({id:a,title:i})=>y.jsx(cy,{onClick:l=>{if(o===a){l.stopPropagation();return}n(a)},children:i??a},a))})]})]})}),MGe=[["path",{d:"M10.52 2.614a2.095 2.095 0 0 1 2.835 -.117l.126 .117l7.905 7.905c.777 .777 .816 2.013 .117 2.836l-.117 .126l-7.905 7.905a2.094 2.094 0 0 1 -2.836 .117l-.126 -.117l-7.907 -7.906a2.096 2.096 0 0 1 -.115 -2.835l.117 -.126l7.905 -7.905zm5.969 9.535l.01 -.116l-.003 -.12l-.016 -.114l-.03 -.11l-.044 -.112l-.052 -.098l-.076 -.105l-.07 -.081l-3.5 -3.5l-.095 -.083a1 1 0 0 0 -1.226 0l-.094 .083l-.083 .094a1 1 0 0 0 0 1.226l.083 .094l1.792 1.793h-5.085l-.117 .007a1 1 0 0 0 0 1.986l.117 .007h5.085l-1.792 1.793l-.083 .094a1 1 0 0 0 1.403 1.403l.094 -.083l3.5 -3.5l.097 -.112l.05 -.074l.037 -.067l.05 -.112l.023 -.076l.025 -.117z",key:"svg-0"}]],NGe=wt("filled","direction-sign-filled","DirectionSignFilled",MGe),PGe=[["path",{d:"M8.243 7.34l-6.38 .925l-.113 .023a1 1 0 0 0 -.44 1.684l4.622 4.499l-1.09 6.355l-.013 .11a1 1 0 0 0 1.464 .944l5.706 -3l5.693 3l.1 .046a1 1 0 0 0 1.352 -1.1l-1.091 -6.355l4.624 -4.5l.078 -.085a1 1 0 0 0 -.633 -1.62l-6.38 -.926l-2.852 -5.78a1 1 0 0 0 -1.794 0l-2.853 5.78z",key:"svg-0"}]],BGe=wt("filled","star-filled","StarFilled",PGe),OGe=[["path",{d:"M9 3a1 1 0 0 1 .608 .206l.1 .087l2.706 2.707h6.586a3 3 0 0 1 2.995 2.824l.005 .176v8a3 3 0 0 1 -2.824 2.995l-.176 .005h-14a3 3 0 0 1 -2.995 -2.824l-.005 -.176v-11a3 3 0 0 1 2.824 -2.995l.176 -.005h4z",key:"svg-0"}]],IGe=wt("filled","folder-filled","FolderFilled",OGe),oee=Y1({siblingSelector:"[data-likec4-focusable]",parentSelector:"[data-likec4-breadcrumbs-dropdown]",activateOnFocus:!1,loop:!0,orientation:"vertical"});function LGe(e){return e.context.searchQuery.trim().length>=2}const aee=S.memo(()=>{const e=i0(),r=N$(LGe);za("paneClick",()=>{e.closeDropdown()}),za("nodeClick",()=>{e.closeDropdown()}),za("edgeClick",()=>{e.closeDropdown()});const n=pze(o=>{e.send({type:"searchQuery.change",value:o})},250);return y.jsxs(Xs,{className:Ge("nowheel",my({layerStyle:"likec4.dropdown",gap:"xs",pointerEvents:"all"})),"data-likec4-breadcrumbs-dropdown":!0,onMouseLeave:()=>e.send({type:"dropdown.mouseLeave"}),onMouseEnter:()=>e.send({type:"dropdown.mouseEnter"}),children:[y.jsx(DGe,{}),y.jsx(Ir,{gap:"xs",children:y.jsx(QGe,{defaultValue:e.actorRef.getSnapshot().context.searchQuery,onChange:n})}),y.jsx(ta,{scrollbars:"x",type:"auto",offsetScrollbars:"present",classNames:{root:fe({maxWidth:["calc(100vw - 50px)","calc(100cqw - 50px)"]})},styles:{viewport:{overscrollBehavior:"none"}},children:r?y.jsx(qGe,{}):y.jsx(XGe,{})})]})});aee.displayName="NavigationPanelDropdown";function FGe(e){return Qb(e.context.searchQuery)}const VGe=nP(xa),qGe=S.memo(()=>{const e=Lo(),r=i0(),n=pn(r.actorRef,FGe),o=S.useDeferredValue(n),a=o.includes(xa),i=a?o.split(xa):o,[l,s]=S.useState([]);return S.useEffect(()=>{s(c=>{const d=Jr(e.views(),Bs(u=>a&&u.$view.title?Qb(u.$view.title).toLowerCase().includes(o):u.id.toLowerCase().includes(o)||!!u.title?.toLowerCase().includes(o)),wke(20),m1(),MCe((u,p)=>VGe(u.folder.path,p.folder.path)));return Or(d,c)?c:d})},[e,o,a]),l.length===0?y.jsx("div",{children:"no results"}):y.jsx(ta,{scrollbars:"xy",offsetScrollbars:!1,className:fe({width:"100%",maxWidth:["calc(100vw - 250px)","calc(100cqw - 250px)"],maxHeight:["calc(100vh - 200px)","calc(100cqh - 200px)"]}),children:y.jsx(ip,{gap:"0.5",children:l.map(c=>y.jsx(UGe,{view:c,highlight:i,onClick:d=>{d.stopPropagation(),r.selectView(c.id)},"data-likec4-focusable":!0,onKeyDown:oee},c.id))})})}),HGe=qn({gap:"xxs",rounded:"sm",px:"xs",py:"xxs",_hover:{backgroundColor:{base:"mantine.colors.gray[1]",_dark:"mantine.colors.dark[5]"}},_focus:{outline:"none",color:"mantine.colors.primary.lightColor!",backgroundColor:"mantine.colors.primary.lightHover!"}}),iee=fe({_groupFocus:{color:"[inherit!]",transition:"none"}});function UGe({view:e,highlight:r,...n}){const o=e.folder,a=see[e.id==="index"?"index":e._type],i=y.jsx(Qs,{component:"div",className:Ge(iee,m2({truncate:!0}),fe({"& > mark":{backgroundColor:{base:"mantine.colors.yellow[2]/90",_dark:"mantine.colors.yellow[5]/80",_groupFocus:"[transparent]"},color:{_groupFocus:"[inherit!]"}}})),maw:350,highlight:r,children:e.title??e.id},e.id),l=Ge(n.className,"group",HGe);if(o.isRoot)return y.jsxs(pr,{...n,className:l,children:[a,i]});const s=o.breadcrumbs.map(c=>y.jsx(Qs,{component:"div",className:Ge(fe({_groupHover:{color:"mantine.colors.dimmed"}}),iee,m2({dimmed:!0,truncate:!0})),maw:170,highlight:v7(r)?r:[],children:c.title},c.path));return s.push(y.jsxs(Ir,{gap:"[4px]",children:[a,i]})),y.jsxs(pr,{...n,className:l,children:[lee,y.jsx(Kw,{separator:y.jsx(Sd,{size:12,stroke:1.5}),separatorMargin:3,children:s})]})}const WGe=y.jsx(Sd,{size:12,stroke:1.5,className:"mantine-rotate-rtl"}),lee=y.jsx(IGe,{size:16,className:fe({opacity:{base:.3,_groupHover:.5,_groupActive:.5,_groupFocus:.5}})}),x2=fe({opacity:{base:.3,_dark:.5,_groupHover:.8,_groupActive:.8,_groupFocus:.8}}),see={index:y.jsx(BGe,{size:16,className:x2}),element:y.jsx(gi,{size:18,stroke:2,className:x2}),deployment:y.jsx(x$,{size:16,stroke:1.5,className:x2}),dynamic:y.jsx(NGe,{size:18,className:x2})},GGe=ta.withProps({scrollbars:"y",className:fe({maxHeight:["calc(100vh - 160px)","calc(100cqh - 160px)"]})});function cee(e,r){return{folderPath:e.path,items:[...e.folders.map(n=>({type:"folder",folderPath:n.path,title:n.title,selected:r.selectedFolder.startsWith(n.path)})),...e.views.map(n=>({type:"view",viewType:n.id==="index"?"index":n._type,viewId:n.id,title:n.title??n.id,description:n.description.nonEmpty&&n.description.text||null,selected:n.id===r.viewModel?.id}))]}}const YGe=e=>{const r=e.viewModel;if(!r)return[];const n=r.$model,o=[cee(n.rootViewFolder,e)],a=n.viewFolder(e.selectedFolder);if(!a.isRoot)for(const i of a.breadcrumbs)o.push(cee(i,e));return o},XGe=S.memo(()=>{const e=dWe(YGe,tt);return y.jsx(Ir,{gap:"xs",alignItems:"stretch",children:e.flatMap((r,n)=>[n>0&&y.jsx(tp,{orientation:"vertical"},"divider"+n),y.jsx(ZGe,{data:r,isLast:n>0&&n==e.length-1},r.folderPath)])})});function ZGe({data:e,isLast:r}){const n=S.useRef(null),o=M$(),a=i=>l=>{l.stopPropagation(),i.type==="folder"?o.send({type:"select.folder",folderPath:i.folderPath}):o.send({type:"select.view",viewId:i.viewId})};return V4e(()=>{r&&n.current&&n.current.scrollIntoView({block:"nearest",inline:"nearest",behavior:"smooth"})}),y.jsx(hr,{mb:"1",ref:n,children:y.jsx(GGe,{children:y.jsx(ip,{gap:"0.5",children:e.items.map((i,l)=>y.jsx(KGe,{columnItem:i,onClick:a(i)},`${e.folderPath}/${i.type}/${l}`))})})})}function KGe({columnItem:e,...r}){switch(e.type){case"folder":return y.jsx(U$,{variant:"light",active:e.selected,label:e.title,leftSection:lee,rightSection:WGe,maw:"300px",miw:"200px",...r},e.folderPath);case"view":return y.jsx(U$,{variant:"filled",active:e.selected,label:e.title,description:e.description,leftSection:see[e.viewType],maw:"300px",miw:"200px",...r},e.viewId);default:Xo(e)}}function QGe(e){const[r,n]=Us({...e,finalValue:""});return y.jsx(Ca,{size:"xs",placeholder:"Search by title or id",variant:"unstyled",height:$e(26),value:r,onKeyDown:oee,onChange:o=>n(o.currentTarget.value),"data-likec4-focusable":!0,classNames:{wrapper:fe({flexGrow:1,backgroundColor:{base:"mantine.colors.gray[1]",_dark:"mantine.colors.dark[5]/80",_hover:{base:"mantine.colors.gray[2]",_dark:"mantine.colors.dark[4]"},_focus:{base:"mantine.colors.gray[2]",_dark:"mantine.colors.dark[4]"}},rounded:"sm"}),input:fe({_placeholder:{color:"mantine.colors.dimmed"},_focus:{outline:"none"}})},style:{"--input-fz":"var(--mantine-font-size-sm)"},leftSection:y.jsx(R$,{size:14}),rightSectionPointerEvents:"all",rightSectionWidth:"min-content",rightSection:!e.value||Gu(e.value)?null:y.jsx(Vn,{variant:"subtle",h:"100%",size:"compact-xs",color:"gray",onClick:o=>{o.stopPropagation(),n("")},children:"clear"})})}const JGe=gd("div",{base:{fontSize:"xs",color:"mantine.colors.dimmed",fontWeight:500,userSelect:"none",mb:"xxs"}});function eYe(e){const r=dCe(e.activeWalkthrough),n=r?e.xyedges.findIndex(o=>o.id===e.activeWalkthrough?.stepId):-1;return{isActive:r,isParallel:r&&Kn(e.activeWalkthrough?.parallelPrefix),hasNext:r&&n0,notes:r?e.xyedges[n]?.data?.notes??null:null}}const tYe=S.memo(()=>{const{isActive:e,notes:r}=ci(eYe),n=r?ur.from(r):ur.EMPTY;return y.jsx(Cn,{children:e&&!n.isEmpty&&y.jsx(pi.div,{layout:"position",className:fe({position:"relative"}),initial:{opacity:0,translateX:-20},animate:{opacity:1,translateX:0},exit:{opacity:0,translateX:-20},children:y.jsxs(ta,{className:my({position:"absolute",layerStyle:"likec4.dropdown",gap:"sm",padding:"md",paddingTop:"xxs",pointerEvents:"all",maxWidth:"calc(100cqw - 32px)",minWidth:"calc(100cqw - 50px)",maxHeight:"calc(100cqh - 100px)",width:"max-content",cursor:"default",overflow:"auto",overscrollBehavior:"contain","@/sm":{minWidth:400,maxWidth:550},"@/lg":{maxWidth:700}}),type:"scroll",children:[y.jsx(JGe,{children:"Notes"}),y.jsx(wp,{value:n,fontSize:"sm",emptyText:"No description",className:fe({userSelect:"all"})})]})})})});function rYe({disabled:e=!1,onApplyLatestToManual:r,onResetManualLayout:n}){return y.jsxs(tn,{withinPortal:!1,floatingStrategy:"absolute",shadow:"lg",position:"bottom-start",offset:{mainAxis:4},disabled:e,children:[y.jsx(tn.Target,{children:y.jsxs(pr,{disabled:e,className:Ge("mantine-active",qn({gap:"2",py:"1.5",px:"2",lineHeight:"1",textStyle:"xs",fontWeight:"medium",layerStyle:"likec4.panel.action",userSelect:"none"})),children:[y.jsx(hr,{children:"Actions"}),y.jsx(xC,{size:12,stroke:2,opacity:.7})]})}),y.jsxs(tn.Dropdown,{children:[y.jsxs(tn.Item,{disabled:!r,onClick:r,rightSection:r&&y.jsx(_n,{onClick:nn,position:"right-start",label:y.jsxs(y.Fragment,{children:["Applies changes from the latest auto-layouted",y.jsx("br",{}),"to saved snapshot, preserving (as possible)",y.jsx("br",{}),"manual adjustments.",y.jsx("br",{}),y.jsx("br",{}),"You can undo this action."]}),children:y.jsx(Gy,{size:14,stroke:1.7,opacity:.5})}),children:["Sync with latest",!r&&y.jsx(hr,{textStyle:"xs",children:"view type is changed"})]}),y.jsx(tn.Item,{onClick:n,children:"Remove manual layout"})]})]})}function nYe({value:e,onChange:r}){const n=S.useMemo(()=>[{value:"manual",label:"Saved manual"},{value:"auto",label:"Latest auto"}],[]);return y.jsx(zr,{layout:"position",children:y.jsx(Mf,{size:"xs",color:e==="manual"?"orange":"green",value:e,component:zr,onChange:o=>{He(o==="manual"||o==="auto","Invalid layout type"),r(o)},classNames:{label:fe({fontSize:"xxs",fontWeight:"medium"})},data:n})})}const dee=tp.withProps({mx:2,size:"xs",orientation:"vertical"});function oYe(){const[e,{toggleCompare:r,switchLayout:n,resetManualLayout:o,applyLatestToManual:a}]=H$();return y.jsxs(y.Fragment,{children:[y.jsx(hr,{css:{textStyle:"xs",color:"likec4.panel.text",userSelect:"none"},children:"Compare"}),y.jsx(nYe,{value:e.layout,onChange:n}),e.hasEditor&&y.jsxs(Ir,{gap:"1",children:[y.jsx(dee,{}),y.jsx(rYe,{disabled:e.layout==="auto",onResetManualLayout:o,onApplyLatestToManual:e.canApplyLatest?a:void 0}),y.jsx(dee,{})]}),y.jsx(ic,{size:"sm",onClick:i=>{i.stopPropagation(),r()},children:y.jsx(lp,{})})]})}const uee=S.memo(()=>{const{enableCompareWithLatest:e}=sr();return y.jsx(Cn,{children:e&&y.jsx(zr,{layout:"position",className:qn({gap:"2",layerStyle:"likec4.panel",position:"relative",px:"2",py:"1",pl:"3",pointerEvents:"all"}),initial:{opacity:0,translateX:-20},animate:{opacity:1,translateX:0},exit:{opacity:0,translateX:-20},children:y.jsx(oYe,{})})})});uee.displayName="ComparePanel";const l0=_n.withProps({color:"dark",fz:"xs",openDelay:600,closeDelay:120,label:"",children:null,offset:8,position:"right"}),aYe=[["path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-0"}],["path",{d:"M4 8v-2a2 2 0 0 1 2 -2h2",key:"svg-1"}],["path",{d:"M4 16v2a2 2 0 0 0 2 2h2",key:"svg-2"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v2",key:"svg-3"}],["path",{d:"M16 20h2a2 2 0 0 0 2 -2v-2",key:"svg-4"}]],iYe=wt("outline","focus-centered","FocusCentered",aYe),lYe=()=>{const e=Nt();return y.jsx(l0,{label:"Center camera",children:y.jsx(ic,{onClick:()=>e.fitDiagram(),children:y.jsx(iYe,{})})})};fe({gap:"xxs",_empty:{display:"none"}}),fe({top:"md",left:"md",margin:"0",pointerEvents:"none","& :where(button, .action-icon, [role='dialog'])":{pointerEvents:"all"},"& .action-icon":{"--ai-size":"2rem"},"& .tabler-icon":{width:"65%",height:"65%"},_reduceGraphics:{"& .action-icon":{"--ai-radius":"0px"}}}),fe({shadow:{base:"md",_whenPanning:"none"}}),fe({"& .tabler-icon":{width:"65%",height:"65%"}});const w2=fe({flex:"1 1 40%",textAlign:"center",fontWeight:500,padding:"[4px 6px]",fontSize:"11px",zIndex:1}),sYe=fe({background:"mantine.colors.gray[2]",borderRadius:"sm",border:"1px solid",borderColor:"mantine.colors.gray[4]",_dark:{background:"mantine.colors.dark[5]",borderColor:"mantine.colors.dark[4]"}}),cYe=fe({position:"relative",borderRadius:"sm",background:"mantine.colors.gray[3]",boxShadow:"inset 1px 1px 3px 0px #00000024",_dark:{background:"mantine.colors.dark[7]"}}),dYe=fe({position:"absolute",width:8,height:8,border:"2px solid",borderColor:"mantine.colors.gray[5]",borderRadius:3,transform:"translate(-50%, -50%)"}),uYe=[["path",{d:"M5 4h4a1 1 0 0 1 1 1v6a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1v-6a1 1 0 0 1 1 -1",key:"svg-0"}],["path",{d:"M5 16h4a1 1 0 0 1 1 1v2a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1v-2a1 1 0 0 1 1 -1",key:"svg-1"}],["path",{d:"M15 12h4a1 1 0 0 1 1 1v6a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1v-6a1 1 0 0 1 1 -1",key:"svg-2"}],["path",{d:"M15 4h4a1 1 0 0 1 1 1v2a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1v-2a1 1 0 0 1 1 -1",key:"svg-3"}]],pYe=wt("outline","layout-dashboard","LayoutDashboard",uYe),hYe=e=>({viewId:e.view.id,isManualLayout:e.view._layout==="manual",autoLayout:e.view.autoLayout}),fYe=()=>{const e=Nt(),[r,n]=S.useState(null),[o,a]=S.useState({}),{autoLayout:i,viewId:l,isManualLayout:s}=ci(hYe),{ref:c,hovered:d}=A7(),u=g=>v=>{o[g]=v,a(o)},p=g=>v=>{v.stopPropagation(),e.fitDiagram(),e.triggerChange({op:"change-autolayout",layout:{...i,direction:g}})},f=(g,v)=>{e.fitDiagram(),e.triggerChange({op:"change-autolayout",layout:{...i,nodeSep:g,rankSep:v}})};return s?null:y.jsxs(br,{position:"right-start",clickOutsideEvents:["pointerdown"],radius:"xs",shadow:"lg",offset:{mainAxis:10},children:[y.jsx(hd,{children:y.jsx(l0,{label:"Change Auto Layout",children:y.jsx(ic,{children:y.jsx(pYe,{})})})}),y.jsx(Xs,{className:"likec4-top-left-panel",p:8,pt:6,opacity:d?.6:1,children:y.jsxs(Se,{pos:"relative",ref:n,children:[y.jsx(Gw,{target:o[i.direction],parent:r,className:sYe}),y.jsx(Se,{mb:10,children:y.jsx(at,{inline:!0,fz:"xs",c:"dimmed",fw:500,children:"Auto layout:"})}),y.jsxs(Zs,{gap:2,wrap:"wrap",justify:"stretch",maw:160,children:[y.jsx(pr,{className:w2,ref:u("TB"),onClick:p("TB"),children:"Top-Bottom"}),y.jsx(pr,{className:w2,ref:u("BT"),onClick:p("BT"),children:"Bottom-Top"}),y.jsx(pr,{className:w2,ref:u("LR"),onClick:p("LR"),children:"Left-Right"}),y.jsx(pr,{className:w2,ref:u("RL"),onClick:p("RL"),children:"Right-Left"})]}),y.jsx(Se,{my:10,children:y.jsx(at,{inline:!0,fz:"xs",c:"dimmed",fw:500,children:"Spacing:"})}),y.jsx(mYe,{ref:c,isVertical:i.direction==="TB"||i.direction==="BT",nodeSep:i.nodeSep,rankSep:i.rankSep,onChange:f},l)]})})]})},ym=400,mYe=S.forwardRef(({isVertical:e,nodeSep:r,rankSep:n,onChange:o},a)=>{e||([r,n]=[n,r]);const i=$8(({x:f,y:g})=>{e||([f,g]=[g,f]),o(Math.round(f*ym),Math.round(g*ym))},[o,e],250,2e3),[l,s]=Us({defaultValue:K$e({x:(r??100)/ym,y:(n??120)/ym}),onChange:i}),{ref:c}=Sq(s);let d=Math.round(l.x*ym),u=Math.round(l.y*ym);e||([d,u]=[u,d]);const p=$r(c,a);return y.jsxs(Se,{ref:p,className:cYe,pt:"100%",children:[y.jsx(Se,{className:dYe,style:{left:`${l.x*100}%`,top:`${l.y*100}%`}}),y.jsx(Se,{pos:"absolute",left:2,bottom:2,children:y.jsxs(at,{component:"div",fz:8,c:"dimmed",fw:500,children:[u,", ",d]})})]})}),gYe=[["path",{d:"M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z",key:"svg-0"}],["path",{d:"M10 4l4 16",key:"svg-1"}],["path",{d:"M12 12l-8 2",key:"svg-2"}]],yYe=wt("outline","layout-collage","LayoutCollage",gYe),vYe=[["path",{d:"M4 4m0 2a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2z",key:"svg-0"}],["path",{d:"M4 12h8",key:"svg-1"}],["path",{d:"M12 15h8",key:"svg-2"}],["path",{d:"M12 9h8",key:"svg-3"}],["path",{d:"M12 4v16",key:"svg-4"}]],pee=wt("outline","layout-board-split","LayoutBoardSplit",vYe),bYe=[["path",{d:"M4 4l0 16",key:"svg-0"}],["path",{d:"M8 9m0 2a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v2a2 2 0 0 1 -2 2h-8a2 2 0 0 1 -2 -2z",key:"svg-1"}]],xYe=wt("outline","layout-align-left","LayoutAlignLeft",bYe),wYe=[["path",{d:"M12 4l0 5",key:"svg-0"}],["path",{d:"M12 15l0 5",key:"svg-1"}],["path",{d:"M6 9m0 2a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v2a2 2 0 0 1 -2 2h-8a2 2 0 0 1 -2 -2z",key:"svg-2"}]],kYe=wt("outline","layout-align-center","LayoutAlignCenter",wYe),_Ye=[["path",{d:"M20 4l0 16",key:"svg-0"}],["path",{d:"M4 9m0 2a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v2a2 2 0 0 1 -2 2h-8a2 2 0 0 1 -2 -2z",key:"svg-1"}]],SYe=wt("outline","layout-align-right","LayoutAlignRight",_Ye),EYe=[["path",{d:"M4 4l16 0",key:"svg-0"}],["path",{d:"M9 8m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z",key:"svg-1"}]],CYe=wt("outline","layout-align-top","LayoutAlignTop",EYe),$Ye=[["path",{d:"M4 12l5 0",key:"svg-0"}],["path",{d:"M15 12l5 0",key:"svg-1"}],["path",{d:"M9 6m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z",key:"svg-2"}]],zYe=wt("outline","layout-align-middle","LayoutAlignMiddle",$Ye),RYe=[["path",{d:"M4 20l16 0",key:"svg-0"}],["path",{d:"M9 4m0 2a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2z",key:"svg-1"}]],jYe=wt("outline","layout-align-bottom","LayoutAlignBottom",RYe),TYe=[["path",{d:"M6 19m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0",key:"svg-0"}],["path",{d:"M18 5m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0",key:"svg-1"}],["path",{d:"M12 19h4.5c.71 0 1.372 -.212 1.924 -.576m1.545 -2.459a3.5 3.5 0 0 0 -3.469 -3.965h-.499m-4 0h-3.501a3.5 3.5 0 0 1 -2.477 -5.972m2.477 -1.028h3.5",key:"svg-2"}],["path",{d:"M3 3l18 18",key:"svg-3"}]],AYe=wt("outline","route-off","RouteOff",TYe),sc=({label:e,icon:r,onClick:n})=>y.jsx(l0,{label:e,withinPortal:!1,position:"top",children:y.jsx(ic,{classNames:{root:"action-icon",icon:fe({"& > svg":{width:"70%",height:"70%"}})},onClick:n,children:r})}),hee=S.memo(()=>{const e=Nt(),r=fm();return y.jsxs(br,{position:"right",offset:{mainAxis:12},clickOutsideEvents:["pointerdown"],...r,children:[y.jsx(hd,{children:y.jsx(l0,{label:"Manual layouting tools",children:y.jsx(ic,{children:y.jsx(yYe,{})})})}),y.jsx(Xs,{className:qn({gap:"0.5",layerStyle:"likec4.panel",padding:"1",pointerEvents:"all"}),children:y.jsxs(np,{children:[y.jsx(sc,{label:"Align in columns",icon:y.jsx(pee,{}),onClick:n=>{n.stopPropagation(),e.align("Column")}}),y.jsx(sc,{label:"Align left",icon:y.jsx(xYe,{}),onClick:n=>{n.stopPropagation(),e.align("Left")}}),y.jsx(sc,{label:"Align center",icon:y.jsx(kYe,{}),onClick:n=>{n.stopPropagation(),e.align("Center")}}),y.jsx(sc,{label:"Align right",icon:y.jsx(SYe,{}),onClick:n=>{n.stopPropagation(),e.align("Right")}}),y.jsx(sc,{label:"Align in rows",icon:y.jsx(pee,{style:{transform:"rotate(90deg)"}}),onClick:n=>{n.stopPropagation(),e.align("Row")}}),y.jsx(sc,{label:"Align top",icon:y.jsx(CYe,{}),onClick:n=>{n.stopPropagation(),e.align("Top")}}),y.jsx(sc,{label:"Align middle",icon:y.jsx(zYe,{}),onClick:n=>{n.stopPropagation(),e.align("Middle")}}),y.jsx(sc,{label:"Align bottom",icon:y.jsx(jYe,{}),onClick:n=>{n.stopPropagation(),e.align("Bottom")}}),y.jsx(sc,{label:"Reset all control points",icon:y.jsx(AYe,{}),onClick:n=>{n.stopPropagation(),e.resetEdgeControlPoints()}})]})})]})});hee.displayName="ManualLayoutToolsButton";const DYe=()=>{const e=Nt();return y.jsx(l0,{label:"Switch to Read-only",children:y.jsx(ic,{onClick:()=>e.toggleFeature("ReadOnly"),children:y.jsx(QJ,{size:14,stroke:2})})})};function MYe(){const{enableReadOnly:e}=sr();return y.jsx(Cn,{children:!e&&y.jsx(zr,{layout:"position",className:my({gap:"xs",layerStyle:"likec4.panel",position:"relative",cursor:"pointer",padding:"xxs",pointerEvents:"all"}),initial:{opacity:0,translateX:-20},animate:{opacity:1,translateX:0},exit:{opacity:0,translateX:-20},children:y.jsxs(np,{openDelay:600,closeDelay:120,children:[y.jsx(fYe,{}),y.jsx(hee,{}),y.jsx(lYe,{}),y.jsx(DYe,{})]})})})}const NYe=[["path",{d:"M17 4h-10a3 3 0 0 0 -3 3v10a3 3 0 0 0 3 3h10a3 3 0 0 0 3 -3v-10a3 3 0 0 0 -3 -3z",key:"svg-0"}]],PYe=wt("filled","player-stop-filled","PlayerStopFilled",NYe),BYe=[["path",{d:"M19.496 4.136l-12 7a1 1 0 0 0 0 1.728l12 7a1 1 0 0 0 1.504 -.864v-14a1 1 0 0 0 -1.504 -.864z",key:"svg-0"}],["path",{d:"M4 4a1 1 0 0 1 .993 .883l.007 .117v14a1 1 0 0 1 -1.993 .117l-.007 -.117v-14a1 1 0 0 1 1 -1z",key:"svg-1"}]],OYe=wt("filled","player-skip-back-filled","PlayerSkipBackFilled",BYe),IYe=[["path",{d:"M3 5v14a1 1 0 0 0 1.504 .864l12 -7a1 1 0 0 0 0 -1.728l-12 -7a1 1 0 0 0 -1.504 .864z",key:"svg-0"}],["path",{d:"M20 4a1 1 0 0 1 .993 .883l.007 .117v14a1 1 0 0 1 -1.993 .117l-.007 -.117v-14a1 1 0 0 1 1 -1z",key:"svg-1"}]],LYe=wt("filled","player-skip-forward-filled","PlayerSkipForwardFilled",IYe),fee=Vn.withProps({component:vi,layout:"position",whileTap:{scale:.95},variant:"light",size:"xs",fw:"500"}),FYe=()=>{const{portalProps:e}=fm();return y.jsx(ry,{...e,children:y.jsx(hr,{css:{position:"absolute",margin:"0",padding:"0",top:"0",left:"0",width:"100%",height:"100%",border:"2px solid",borderColor:"mantine.colors.orange[6]",pointerEvents:"none",md:{borderWidth:4}}})})};function VYe(){const e=Nt(),{isParallel:r,hasNext:n,hasPrevious:o,currentStep:a,totalSteps:i}=ci(l=>{const s=l.xyedges.findIndex(c=>c.id===l.activeWalkthrough?.stepId);return{isParallel:Kn(l.activeWalkthrough?.parallelPrefix),hasNext:s0,currentStep:s+1,totalSteps:l.xyedges.length}});return y.jsxs(Cn,{propagate:!0,mode:"popLayout",children:[y.jsx(JJ,{variant:"light",size:"xs",color:"orange",mr:"sm",onClick:l=>{l.stopPropagation(),e.stopWalkthrough()},rightSection:y.jsx(PYe,{size:10}),children:"Stop"},"stop-walkthrough"),y.jsx(fee,{disabled:!o,onClick:()=>e.walkthroughStep("previous"),leftSection:y.jsx(OYe,{size:10}),children:"Previous"},"prev"),y.jsxs(Ks,{component:zr,layout:"position",size:"md",radius:"sm",variant:r?"gradient":"transparent",gradient:{from:"red",to:"orange",deg:90},rightSection:y.jsx(zr,{className:fe({fontSize:"xxs",display:r?"block":"none"}),children:"parallel"}),className:fe({alignItems:"baseline"}),children:[a," / ",i]},"step-badge"),y.jsx(fee,{disabled:!n,onClick:()=>e.walkthroughStep("next"),rightSection:y.jsx(LYe,{size:10}),children:"Next"},"next"),r&&y.jsx(FYe,{},"parallel-frame")]})}const mee=S.memo(()=>{const e=Nt(),r=Aqe(),n=NFe(),o=AS(sWe,{input:{view:r,viewModel:n}});return S.useEffect(()=>{const a=o.on("navigateTo",i=>{e.navigateTo(i.viewId)});return()=>a.unsubscribe()},[o,e]),S.useEffect(()=>{o.send({type:"update.inputs",inputs:{viewModel:n,view:r}})},[n,r]),y.jsx(ip,{css:{alignItems:"flex-start",pointerEvents:"none",position:"absolute",top:"0",left:"0",margin:"0",width:"100%",gap:"xxs",maxWidth:["calc(100vw)","calc(100cqw)"],"@/sm":{margin:"xs",gap:"xs",width:"max-content",maxWidth:["calc(100vw - 2 * {spacing.md})","calc(100cqw - 2 * {spacing.md})"]},_print:{display:"none"}},children:y.jsxs(cWe,{value:o,children:[y.jsx(qYe,{actor:o}),y.jsx(uee,{}),y.jsx(tYe,{}),y.jsx(MYe,{})]})})});mee.displayName="NavigationPanel";const qYe=({actor:e})=>{const r=pn(e,o=>o.hasTag("active")),n=fm();return y.jsxs(br,{offset:{mainAxis:4},opened:r,position:"bottom-start",trapFocus:r,...n,clickOutsideEvents:["pointerdown","mousedown","click"],onDismiss:()=>e.send({type:"dropdown.dismiss"}),children:[y.jsx(HYe,{actor:e}),r&&y.jsx(aee,{})]})},HYe=({actor:e})=>{const r=ci(n=>n.activeWalkthrough!==null);return y.jsx(rm,{children:y.jsx(hd,{children:y.jsx(zr,{layout:!0,layoutDependency:r,className:qn({layerStyle:"likec4.panel",position:"relative",gap:"xs",cursor:"pointer",pointerEvents:"all",width:"100%"}),onMouseLeave:()=>e.send({type:"breadcrumbs.mouseLeave"}),children:y.jsx(Cn,{children:r?y.jsx(VYe,{}):y.jsx(nee,{})})})})})},W$=fe({position:"absolute",bottom:"0",right:"0",padding:"2",margin:"0",width:"min-content",height:"min-content",_print:{display:"none"}}),UYe=fe({"--ai-radius":"0px",_noReduceGraphics:{"--ai-radius":"{radii.md}"}}),WYe=fe({cursor:"default",userSelect:"none",minWidth:200,maxWidth:"calc(100vw - 20px)",backgroundColor:"mantine.colors.body/80",sm:{minWidth:300,maxWidth:"65vw"},md:{maxWidth:"40vw"},_dark:{backgroundColor:"mantine.colors.dark[6]/80"}}),GYe=fe({padding:"xxs"}),YYe=fe({backgroundColor:"transparent",transition:"all 100ms ease-in",_hover:{transition:"all 120ms ease-out",backgroundColor:"mantine.colors.primary[2]/50"},_dark:{_hover:{backgroundColor:"mantine.colors.dark[3]/40"}}});fe({fill:"var(--likec4-palette-fill)",stroke:"var(--likec4-palette-stroke)",strokeWidth:1,overflow:"visible",width:"100%",height:"auto",filter:` drop-shadow(0 2px 3px rgb(0 0 0 / 22%)) drop-shadow(0 1px 8px rgb(0 0 0 / 10%)) - `});const tJe=be({fontWeight:500,letterSpacing:"0.2px",paddingTop:"0",paddingBottom:"0",textTransform:"lowercase",transition:"all 150ms ease-in-out",cursor:"pointer","--badge-radius":"2px","--badge-fz":"9.5px","--badge-padding-x":"3px","--badge-height":"13.5px","--badge-lh":"1","--badge-bg":"var(--likec4-palette-fill)","--badge-color":"var(--likec4-palette-hiContrast)"}),rJe=[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0",key:"svg-0"}],["path",{d:"M12 16v.01",key:"svg-1"}],["path",{d:"M12 13a2 2 0 0 0 .914 -3.782a1.98 1.98 0 0 0 -2.414 .483",key:"svg-2"}]],nJe=Nt("outline","help-circle","HelpCircle",rJe),oJe=[["path",{d:"M7 7l10 10",key:"svg-0"}],["path",{d:"M17 8l0 9l-9 0",key:"svg-1"}]],aJe=Nt("outline","arrow-down-right","ArrowDownRight",oJe),iJe=({value:e})=>{const{title:r,color:n="primary",shape:o="rectangle"}=e,[a,i]=E.useState(null),s=Qt(),l=300,c=200;return y.jsx(W2,{shadow:"none",px:"xs",py:"sm",className:et(eJe),"data-likec4-color":n,onMouseEnter:()=>{i(null),s.highlightNotation(e)},onMouseLeave:()=>{i(null),s.unhighlightNotation()},children:y.jsxs(pn,{gap:"sm",align:"stretch",wrap:"nowrap",children:[y.jsx(Re,{flex:"0 0 70px",style:{position:"relative",width:70,height:XRe(70*(c/l),0)},children:y.jsx(Om,{data:{shape:o,width:l,height:c}})}),y.jsxs(Xo,{gap:4,flex:1,children:[y.jsx(pn,{gap:4,flex:"0 0 auto",children:e.kinds.map(d=>y.jsx(vl,{className:et(tJe),onMouseEnter:()=>{i(d),s.highlightNotation(e,d)},onMouseLeave:()=>{i(null),s.highlightNotation(e)},opacity:Vq(a)&&a!==d?.25:1,children:d},d))}),y.jsx(ft,{component:"div",fz:"sm",fw:500,lh:"1.25",style:{textWrap:"pretty"},children:r})]})]})})},sJe=e=>({id:e.view.id,notations:e.view.notation?.nodes??[]}),lJe=E.memo(()=>{const e=Iw(l=>l.height),{id:r,notations:n}=vs(sJe),[o,a]=c$e({key:"notation-webview-collapsed",defaultValue:!0}),i=n.length>0,s=qm();return y.jsxs(Qn,{children:[!i&&y.jsx(Ei.div,{initial:{opacity:.75,translateX:"50%"},animate:{opacity:1,translateX:0},exit:{translateX:"100%",opacity:.6},className:QA,children:y.jsx(co,{label:"View has no notations",color:"orange",...s,children:y.jsx(Ba,{size:"lg",variant:"light",color:"orange",radius:"md",children:y.jsx(zte,{})})})},"empty"),i&&o&&y.jsx(Ei.div,{initial:{opacity:.75,translateX:"50%"},animate:{opacity:1,translateX:0},exit:{translateX:"100%",opacity:.6},className:QA,children:y.jsx(co,{label:"Show notation",color:"dark",fz:"xs",...s,children:y.jsx(br,{size:"lg",variant:"default",color:"gray",className:ZQe,onClick:()=>a(!1),children:y.jsx(nJe,{stroke:1.5})})})},"collapsed"),i&&!o&&y.jsx(Ei.div,{initial:{opacity:.75,scale:.2},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.25},className:et("react-flow__panel",QA),style:{transformOrigin:"bottom right"},children:y.jsx(om,{radius:"sm",withBorder:!0,shadow:"lg",className:QQe,children:y.jsxs(Sp,{defaultValue:"first",radius:"xs",children:[y.jsxs(Y0,{children:[y.jsx(br,{size:"md",variant:"subtle",color:"gray",ml:2,style:{alignSelf:"center"},onClick:()=>a(!0),children:y.jsx(aJe,{stroke:2})}),y.jsx(pm,{value:"first",fz:"xs",children:"Elements"}),y.jsx(pm,{value:"second",fz:"xs",disabled:!0,children:"Relationships"})]}),y.jsx(yc,{value:"first",className:JQe,hidden:o,children:y.jsx(pa,{viewportProps:{style:{maxHeight:`min(40vh, ${Math.max(e-60,50)}px)`}},children:y.jsx(Xo,{gap:0,children:n.map((l,c)=>y.jsx(iJe,{value:l},c))})})})]})})},r)]})}),cJe=E.memo(()=>{const[{layout:e,isActive:r},{toggleCompare:n}]=KA(),o=e==="manual"?"var(--mantine-color-orange-6)":"var(--mantine-color-green-6)";return y.jsx(zr,{className:Zn({position:"absolute",top:"0",left:"0",width:"full",height:"full",border:"default",borderWidth:4,pointerEvents:"none",alignItems:"flex-start",justifyContent:"center"}),style:{zIndex:"9999",display:r?void 0:"none",borderColor:o},children:y.jsx(dJe,{style:{backgroundColor:o},onClick:a=>{a.stopPropagation(),n()},children:"Close compare"})})}),dJe=Er.withProps({className:be({fontSize:"xs",fontWeight:"medium",py:"1.5",lineHeight:"1",borderBottomLeftRadius:"sm",borderBottomRightRadius:"sm",transform:"translateY(-4px)",px:"4",color:"mantine.colors.gray[9]",pointerEvents:"all",_active:{transform:"translateY(-3px)"}})}),Kte=E.memo(()=>{const{enableControls:e,enableNotations:r,enableSearch:n,enableRelationshipDetails:o,enableReadOnly:a,enableCompareWithLatest:i}=_r(),s=FEe(),l=IX(),c=VBe(),d=E.useCallback(()=>{console.warn("DiagramUI: resetting error boundary and rerendering..."),s()},[]);return y.jsxs(rX,{onReset:d,children:[e&&y.jsx(Xte,{}),l&&y.jsx(JXe,{overlaysActorRef:l}),r&&y.jsx(lJe,{}),n&&c&&y.jsx(LKe,{searchActorRef:c}),o&&a&&y.jsx(ZKe,{}),i&&y.jsx(cJe,{})]})});Kte.displayName="DiagramUI";const uJe=be({overflow:"visible",position:"absolute",pointerEvents:"none",top:"0",left:"0",mixBlendMode:"normal"}),pJe=be({fill:"var(--likec4-palette-relation-stroke)",stroke:"var(--likec4-palette-relation-stroke)",fillOpacity:.75,strokeWidth:1,cursor:"grab",pointerEvents:"auto",visibility:"hidden",_hover:{fillOpacity:1,stroke:"mantine.colors.primary.filledHover",strokeWidth:18,transition:"stroke 100ms ease-out, stroke-width 100ms ease-out"},":where([data-likec4-selected='true'], [data-likec4-hovered='true']) &":{visibility:"visible",transition:"fill-opacity 150ms ease-out, stroke 150ms ease-out, stroke-width 150ms ease-out",transitionDelay:"50ms",fillOpacity:1,strokeWidth:12}}),hJe=be({cursor:"grabbing","& *":{cursor:"grabbing !important"},"& .react-flow__edge-interaction":{cursor:"grabbing !important"}});function fJe({sourceX:e,sourceY:r,targetX:n,targetY:o,data:a}){const[i,s]=E.useState(()=>a.controlPoints??jw(a.points));qp(()=>{const c=a.controlPoints??jw(a.points);s(d=>lt(d,c)?d:c)},[a.controlPoints?.map(c=>`${c.x},${c.y}`).join("|")??"",a.points.map(c=>`${c[0]},${c[1]}`).join("|")]);const l=kt(({x:c,y:d})=>{const u=jo(e,r),h=jo(n,o),f=[a.dir==="back"?h:u,...i.map(jo)||[],a.dir==="back"?u:h],g=jo(Math.round(c),Math.round(d));let b=0,x=1/0;for(let k=0;k=0))throw new Error(`invalid digits: ${e}`);if(r>15)return Qte;const n=10**r;return function(o){this._+=o[0];for(let a=1,i=o.length;aYp)if(!(Math.abs(h*c-d*u)>Yp)||!i)this._append`L${this._x1=r},${this._y1=n}`;else{let g=o-s,b=a-l,x=c*c+d*d,w=g*g+b*b,k=Math.sqrt(x),C=Math.sqrt(f),_=i*Math.tan((JA-Math.acos((x+f-w)/(2*k*C)))/2),T=_/C,A=_/k;Math.abs(T-1)>Yp&&this._append`L${r+T*u},${n+T*h}`,this._append`A${i},${i},0,0,${+(h*g>u*b)},${this._x1=r+A*c},${this._y1=n+A*d}`}}arc(r,n,o,a,i,s){if(r=+r,n=+n,o=+o,s=!!s,o<0)throw new Error(`negative radius: ${o}`);let l=o*Math.cos(a),c=o*Math.sin(a),d=r+l,u=n+c,h=1^s,f=s?a-i:i-a;this._x1===null?this._append`M${d},${u}`:(Math.abs(this._x1-d)>Yp||Math.abs(this._y1-u)>Yp)&&this._append`L${d},${u}`,o&&(f<0&&(f=f%eR+eR),f>mJe?this._append`A${o},${o},0,1,${h},${r-l},${n-c}A${o},${o},0,1,${h},${this._x1=d},${this._y1=u}`:f>Yp&&this._append`A${o},${o},0,${+(f>=JA)},${h},${this._x1=r+o*Math.cos(i)},${this._y1=n+o*Math.sin(i)}`)}rect(r,n,o,a){this._append`M${this._x0=this._x1=+r},${this._y0=this._y1=+n}h${o=+o}v${+a}h${-o}Z`}toString(){return this._}}function bJe(e){let r=3;return e.digits=function(n){if(!arguments.length)return r;if(n==null)r=null;else{const o=Math.floor(n);if(!(o>=0))throw new RangeError(`invalid digits: ${n}`);r=o}return e},()=>new yJe(r)}function vJe(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Jte(e){this._context=e}Jte.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,r){switch(e=+e,r=+r,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break;case 1:this._point=2;default:this._context.lineTo(e,r);break}}};function xJe(e){return new Jte(e)}function wJe(e){return e[0]}function kJe(e){return e[1]}function _Je(e,r){var n=Wm(!0),o=null,a=xJe,i=null,s=bJe(l);e=typeof e=="function"?e:e===void 0?wJe:Wm(e),r=typeof r=="function"?r:r===void 0?kJe:Wm(r);function l(c){var d,u=(c=vJe(c)).length,h,f=!1,g;for(o==null&&(i=a(g=s())),d=0;d<=u;++d)!(dZte){var l=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,c=3*e._l01_a*(e._l01_a+e._l12_a);o=(o*l-e._x0*e._l12_2a+e._x2*e._l01_2a)/c,a=(a*l-e._y0*e._l12_2a+e._y2*e._l01_2a)/c}if(e._l23_a>Zte){var d=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,u=3*e._l23_a*(e._l23_a+e._l12_a);i=(i*d+e._x1*e._l23_2a-r*e._l12_2a)/u,s=(s*d+e._y1*e._l23_2a-n*e._l12_2a)/u}e._context.bezierCurveTo(o,a,i,s,e._x2,e._y2)}function tre(e,r){this._context=e,this._alpha=r}tre.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,r){if(e=+e,r=+r,this._point){var n=this._x2-e,o=this._y2-r;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+o*o,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break;case 1:this._point=2;break;case 2:this._point=3;default:ere(this,e,r);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=r}},(function e(r){function n(o){return r?new tre(o,r):new rR(o,0)}return n.alpha=function(o){return e(+o)},n})(.5);function rre(e,r){this._context=e,this._alpha=r}rre.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,r){if(e=+e,r=+r,this._point){var n=this._x2-e,o=this._y2-r;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+o*o,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:ere(this,e,r);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=r}};const EJe=(function e(r){function n(o){return r?new rre(o,r):new nR(o,0)}return n.alpha=function(o){return e(+o)},n})(.5),SJe=_Je().curve(EJe.alpha(.7)).x(e=>Math.round(e.x)).y(e=>Math.round(e.y)),CJe=(e,r)=>bJ(e.sourceNode,r.sourceNode)&&bJ(e.targetNode,r.targetNode);function TJe({props:{sourceX:e,sourceY:r,source:n,target:o,targetX:a,targetY:i,data:s},controlPoints:l,isControlPointDragging:c}){const{sourceNode:d,targetNode:u}=Iw(E.useCallback(({nodeLookup:h})=>{const f=bt(h.get(n),`source node ${n} not found`),g=bt(h.get(o),`target node ${o} not found`);return{sourceNode:yJ(f),targetNode:yJ(g)}},[n,o]),CJe);if(da(s.controlPoints)||c){const h={x:e,y:r},f={x:a,y:i},g=6,b=s.dir==="back"?[f,Ay(u,Ff(l)??h,g),...l,Ay(d,lc(l)??f,g),h]:[h,Ay(d,Ff(l)??f,g),...l,Ay(u,lc(l)??h,g),f];return bt(SJe(b))}return kWe(s.points)}const nre=e=>{const r=e.getPointAtLength(e.getTotalLength()*.5);return{x:Math.round(r.x),y:Math.round(r.y)}},ore=NA(e=>{const[r,n]=E.useState(!1),o=hJ(),a=Qt(),{enableNavigateTo:i,enableReadOnly:s}=_r(),l=!s,{id:c,selected:d=!1,data:{hovered:u=!1,active:h=!1,labelBBox:f,labelXY:g,...b}}=e,x=i?b.navigateTo:void 0,{controlPoints:w,setControlPoints:k,insertControlPoint:C}=fJe(e);let _=TJe({props:e,controlPoints:w,isControlPointDragging:r}),T=f?.x??0,A=f?.y??0;const[R,D]=E.useState({x:g?.x??T,y:g?.y??A});qp(()=>{D({x:T,y:A})},[T,A]);const N=E.useRef(null);qE(()=>{const V=N.current;!V||!r||D(nre(V))},[_,r]),r&&(T=R.x,A=R.y);const P=kt(V=>{const I=N.current?nre(N.current):null;f&&I?a.updateEdgeData(c,{controlPoints:V,labelBBox:{...f,...I},labelXY:I}):a.updateEdgeData(c,{controlPoints:V}),a.stopEditing(!0),n(!1)}),O=kt(()=>{a.startEditing("edge"),n(!0)}),F=kt(()=>{a.stopEditing(),n(!1)}),L=kt(V=>{k(V),requestAnimationFrame(()=>{P(V)})}),U=kt(V=>{a.startEditing("edge"),n(!0),k(V),requestAnimationFrame(()=>{P(V)})}),M=kt(V=>{if(V.pointerType!=="mouse"||V.button!==2)return;V.stopPropagation(),V.preventDefault(),a.startEditing("edge");const I=C(o.screenToFlowPosition({x:V.clientX,y:V.clientY},{snapToGrid:!1}));a.updateEdgeData(c,{controlPoints:I}),a.stopEditing(!0)});return r&&!e.data.hovered&&(e={...e,data:{...e.data,hovered:!0}}),y.jsxs(y.Fragment,{children:[y.jsxs(Py,{...e,className:et(r&&hJe),children:[y.jsx(My,{edgeProps:e,svgPath:_,ref:N,isDragging:r,...l&&{onEdgePointerDown:M}}),f&&y.jsx(Qw,{edgeProps:e,labelPosition:{x:T,y:A},children:y.jsx($y,{pointerEvents:l?"none":"all",edgeProps:e,children:!l&&x&&y.jsx(Zw,{onClick:V=>{V.stopPropagation(),a.navigateTo(x)}})})})]}),l&&w.length>0&&(d||h||u||r)&&y.jsx(AJe,{edgeProps:e,controlPoints:w,onMove:k,onStartMove:O,onCancelMove:F,onFinishMove:L,onDelete:U,zIndex:_l.Element+500})]})});ore.displayName="RelationshipEdge";function AJe({edgeProps:e,controlPoints:r,onMove:n,onStartMove:o,onCancelMove:a,onFinishMove:i,onDelete:s,zIndex:l}){const c=AT(),d=hJ(),u=e.data.id,h=(b,x,w)=>{let k=!1,C={x:x.clientX,y:x.clientY},_=null,T=r;const A=D=>{const N={x:D.clientX,y:D.clientY};wJ(C,N)||(k||(k=!0,o()),C=N,_??=requestAnimationFrame(()=>{_=null,T=T.slice();const{x:P,y:O}=d.screenToFlowPosition(C,{snapToGrid:!1});T[b]={x:Math.round(P),y:Math.round(O)},n(T)})),D.stopPropagation()},R=D=>{D.stopPropagation(),w.removeEventListener("pointermove",A,{capture:!0}),w.removeEventListener("click",oR,{capture:!0}),k?i(T):a()};w.addEventListener("pointermove",A,{capture:!0}),w.addEventListener("pointerup",R,{once:!0,capture:!0}),w.addEventListener("click",oR,{capture:!0,once:!0})},f=(b,x)=>{if(r.length<=1)return;x.stopPropagation(),x.preventDefault();const w=r.slice();w.splice(b,1),setTimeout(()=>{s(w)},10)},g=kt(b=>{const{domNode:x,addSelectedEdges:w}=c.getState();if(!x||b.pointerType!=="mouse")return;const k=parseFloat(b.currentTarget.getAttribute("data-control-point-index")||"");if(isNaN(k))throw new Error("data-control-point-index is not a number");switch(b.button){case 0:{b.stopPropagation(),w([u]),h(k,b,x);break}case 2:f(k,b);break}});return y.jsx(Dq,{children:y.jsx(Py,{component:"svg",className:uJe,...e,style:{...e.style,zIndex:l},children:y.jsx("g",{onContextMenu:oR,children:r.map((b,x)=>y.jsx("circle",{"data-control-point-index":x,onPointerDownCapture:g,className:et("nodrag nopan",pJe),cx:b.x,cy:b.y,r:3},"controlPoints"+u+"#"+x))})})})}const oR=e=>{e.stopPropagation(),e.preventDefault()},h4=16;function RJe(e){const{enableNavigateTo:r}=_r(),n=Qt(),{navigateTo:o}=e.data,a=e.source===e.target,i=e.sourceX>e.targetX,[s]=Tx({sourceX:e.sourceX,sourceY:e.sourceY,sourcePosition:e.sourcePosition,targetX:e.targetX,targetY:e.targetY,targetPosition:e.targetPosition,...a&&{offset:30,borderRadius:16}});let l=e.sourceX;switch(!0){case a:l=e.sourceX+24+h4;break;case i:l=e.sourceX-h4;break;default:l=e.sourceX+h4;break}return y.jsxs(Py,{...e,children:[y.jsx(My,{edgeProps:e,svgPath:s}),y.jsx(Qw,{edgeProps:e,labelPosition:{x:l,y:e.sourceY+(a?0:h4),translate:i?"translate(-100%, 0)":void 0},children:y.jsx($y,{edgeProps:e,children:r&&o&&y.jsx(Zw,{onClick:c=>{c.stopPropagation(),n.navigateTo(o)}})})})]})}const NJe=(e,r)=>lt(e.data.id,r.data.id)&<(e.selected??!1,r.selected??!1)&<(e.data.modelFqn??null,r.data.modelFqn??null)&<(e.data.navigateTo??null,r.data.navigateTo??null)&<(e.data.hovered??!1,r.data.hovered??!1)&&(!e.extraButtons&&!r.extraButtons||an(e.extraButtons,r.extraButtons)),are=E.memo(({extraButtons:e,...r})=>{const{enableNavigateTo:n,enableRelationshipBrowser:o}=_r(),a=Qt(),{id:i,navigateTo:s,modelFqn:l}=r.data;let c=E.useMemo(()=>{const d=[];return s&&n&&d.push({key:"navigate",icon:y.jsx(Ri,{}),onClick:u=>{u.stopPropagation(),a.navigateTo(s,i)}}),o&&d.push({key:"relationships",icon:y.jsx(zy,{}),onClick:u=>{u.stopPropagation(),a.openRelationshipsBrowser(l)}}),d},[n,o,l,s,i,a]);return e&&bo(e,1)&&(c=[...c,...e]),y.jsx(e4,{...r,buttons:c})},NJe),DJe=({extraButtons:e,...r})=>{const{enableNavigateTo:n,enableRelationshipBrowser:o}=_r(),a=Qt(),{id:i,navigateTo:s,modelFqn:l}=r.data;let c=E.useMemo(()=>{const d=[];return s&&n&&d.push({key:"navigate",icon:y.jsx(Ri,{}),onClick:u=>{u.stopPropagation(),a.navigateTo(s,i)}}),o&&l&&d.push({key:"relationships",icon:y.jsx(zy,{}),onClick:u=>{u.stopPropagation(),a.openRelationshipsBrowser(l)}}),d},[n,o,l,s,i]);return e&&bo(e,1)&&(c=[...c,...e]),y.jsx(e4,{...r,buttons:c})};function $Je({data:{hovered:e=!1},icon:r,onClick:n}){const o=W7(e,e?130:0)[0]&&e;return y.jsx(Br,{initial:!1,animate:{scale:o?1.2:1,x:o?-1:0,y:o?-1:0},whileHover:{scale:1.4,x:-3,y:-1},className:"likec4-compound-navigation compound-action",whileTap:{scale:1},onClick:Cn,children:y.jsx(br,{className:et("nodrag nopan",Vee({delay:e&&!o}),zw({variant:"transparent"})),onClick:n,onDoubleClick:Cn,children:r??y.jsx(Ri,{stroke:2})})})}const ire=e=>{const{enableNavigateTo:r}=_r(),n=Qt(),{navigateTo:o}=e.data;return o&&r?y.jsx($Je,{onClick:a=>{a.stopPropagation(),n.navigateTo(o,e.id)},...e}):null};function sre({data:e}){const r=e.drifts;return!r||r.length===0?null:y.jsx(zr,{className:"likec4-node-drifts",css:{position:"absolute",inset:"0",pointerEvents:"none","& + .likec4-element-shape":{outlineColor:"likec4.compare.manual.outline",outlineWidth:{base:"2px",_light:"4px"},outlineStyle:"solid",outlineOffset:"1"}},children:y.jsx(D7,{isVisible:e.hovered===!0,align:"start",position:tt.Bottom,children:y.jsx(Z2,{color:"orange",withBorder:!1,withCloseButton:!1,title:"Changes:",children:r.map(n=>y.jsxs(ft,{mt:2,size:"sm",lh:"xs",children:["- ",n]},n))})})})}const lre=co.withProps({color:"dark",fz:"xs",openDelay:400,closeDelay:150,label:"",children:null,offset:4,withinPortal:!1});function f4({fqn:e}){const r=Qt();return y.jsx(lre,{label:"Browse relationships",children:y.jsx(br,{size:"sm",variant:"subtle",color:"gray",onClick:n=>{n.stopPropagation(),r.openRelationshipsBrowser(e)},children:y.jsx(zy,{stroke:2,style:{width:"72%",height:"72%"}})})})}function m4(e){const{onOpenSource:r}=Fm();return r?y.jsx(lre,{label:"Open source",children:y.jsx(br,{size:"sm",variant:"subtle",color:"gray",onClick:n=>{n.stopPropagation(),e.elementId?r?.({element:e.elementId}):e.deploymentId&&r?.({deployment:e.deploymentId})},children:y.jsx(zm,{stroke:1.8,style:{width:"70%"}})})}):null}function cre(){const e=E.useContext(K0);e||console.error("No LikeC4ModelContext found");const r=e?.$styles??ZI.DEFAULT,[n,o]=E.useState(r);return E.useEffect(()=>{o(a=>a.equals(r)?a:r)},[r]),n}const dre=["primary","secondary","muted"];function g4({elementColor:e,elementOpacity:r,onColorPreview:n,isOpacityEditable:o=!1,onChange:a,...i}){const{theme:s}=cre();return y.jsxs(Rr,{clickOutsideEvents:["pointerdown","mousedown","click"],position:"right-end",offset:2,withinPortal:!1,...i,children:[y.jsx($d,{children:y.jsx(Kn,{variant:"subtle",color:"gray",size:"compact-xs",px:3,children:y.jsx(H0,{color:s.colors[e].elements.fill,size:14,withShadow:!0,style:{color:"#fff",cursor:"pointer"}})})}),y.jsxs(fc,{p:"xs",children:[y.jsx(PJe,{theme:s,elementColor:e,onColorPreview:n,onChange:l=>a({color:l})}),o&&y.jsxs(y.Fragment,{children:[y.jsx(xS,{h:"xs"}),y.jsx(kp,{label:"opacity",labelPosition:"left"}),y.jsx(xS,{h:"xs"}),y.jsx(MJe,{elementOpacity:r,onOpacityChange:l=>{a({opacity:l})}})]})]})]})}function PJe({theme:e,elementColor:r,onColorPreview:n,onChange:o}){const a=s=>l=>{l.stopPropagation(),n(null),r!==s&&o(s)},i=I7(e.colors).filter(s=>!dre.includes(s));return y.jsx(Xo,{gap:2,onMouseLeave:()=>n(null),children:y.jsxs(Ep,{openDelay:1e3,closeDelay:300,children:[y.jsx(mc,{maw:120,gap:"6",justify:"flex-start",align:"flex-start",direction:"row",wrap:"wrap",children:dre.map(s=>y.jsx(co,{label:s,fz:"xs",color:"dark",offset:2,withinPortal:!1,transitionProps:{duration:140,transition:"slide-up"},children:y.jsx(H0,{color:e.colors[s].elements.fill,size:18,withShadow:!0,onMouseEnter:()=>n(s),onClick:a(s),style:{color:"#fff",cursor:"pointer"},children:r===s&&y.jsx(HY,{style:{width:Pe(10),height:Pe(10)}})})},s))}),y.jsx(mc,{mt:"sm",maw:110,gap:"6",justify:"flex-start",align:"flex-start",direction:"row",wrap:"wrap",children:i.map(s=>y.jsx(co,{label:s,fz:"xs",color:"dark",offset:2,transitionProps:{duration:140,transition:"slide-up"},children:y.jsx(H0,{color:e.colors[s].elements.fill,size:18,onMouseEnter:()=>n(s),onClick:a(s),style:{color:"#fff",cursor:"pointer"},children:r===s&&y.jsx(HY,{style:{width:Pe(10),height:Pe(10)}})})},s))})]})})}function MJe({elementOpacity:e=100,onOpacityChange:r}){const[n,o]=E.useState(e);return OF(()=>{o(e)},[e]),y.jsx(vS,{size:"sm",color:"dark",value:n,onChange:o,onChangeEnd:r})}const zJe=be({color:"mantine.colors.dimmed",fontSize:"10px",fontWeight:600,maxWidth:"220px",cursor:"default",userSelect:"all",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"}),IJe=()=>vs(e=>e.xynodes.filter(r=>r.selected).length);function y4({title:e,children:r,nodeProps:n,...o}){const a=IJe(),{selected:i=!1,dragging:s=!1,data:{hovered:l=!1}}=n,c=l&&a===0||i&&a===1;let d=150;c?i?d=100:d=1e3:a>0&&(d=50);const[u]=W7(c,d);return u?y.jsx(D7,{isVisible:!s,offset:4,...o,children:y.jsx(om,{className:et("nodrag","nopan"),px:5,pb:8,pt:4,radius:"sm",shadow:"xl",onDoubleClickCapture:Cn,onPointerDown:Cn,onClick:Cn,onDoubleClick:Cn,withBorder:!0,children:y.jsxs(Xo,{gap:"6px",children:[y.jsx(Re,{px:"4px",children:y.jsx(ft,{className:zJe,children:e})}),y.jsx(pn,{gap:4,children:r})]})})}):null}function b4(e,r){const n=Qt(),[o,a]=E.useState(null),i=kt(l=>{if(l===null){if(!o)return;a(null),n.updateNodeData(r.data.id,{color:o});return}a(c=>c??r.data.color),n.updateNodeData(r.data.id,{color:l})}),s=kt(l=>{const{shape:c,color:d,...u}=l;n.updateNodeData(r.data.id,{...c&&{shape:c},...d&&{color:d},style:u}),n.triggerChange({op:"change-element-style",style:l,targets:[e]})});return{elementColor:o??r.data.color,onColorPreview:i,onChange:s}}function OJe(e){const{enableVscode:r,enableRelationshipBrowser:n}=_r(),{data:{style:o,modelFqn:a}}=e,{elementColor:i,onColorPreview:s,onChange:l}=b4(a,e),c=o?.opacity??100;return y.jsxs(y4,{nodeProps:e,title:a,align:"start",children:[y.jsx(g4,{elementColor:i,onColorPreview:s,isOpacityEditable:!0,elementOpacity:c,onChange:l,position:"left-start"}),y.jsx(ure,{elementBorderStyle:o?.border??(c<99?"dashed":"none"),onChange:l}),r&&y.jsx(m4,{elementId:a}),n&&y.jsx(f4,{fqn:a})]})}function jJe(e){const{enableVscode:r,enableRelationshipBrowser:n}=_r(),{data:{deploymentFqn:o,style:a,modelFqn:i}}=e,{elementColor:s,onColorPreview:l,onChange:c}=b4(o,e);return y.jsxs(y4,{nodeProps:e,title:o,align:"start",children:[y.jsx(g4,{elementColor:s,onColorPreview:l,isOpacityEditable:!0,elementOpacity:a?.opacity,onChange:c,position:"left-start"}),y.jsx(ure,{elementBorderStyle:a?.border,onChange:c}),r&&y.jsx(m4,{deploymentId:o}),n&&i&&y.jsx(f4,{fqn:i})]})}function ure({elementBorderStyle:e="dashed",onChange:r}){const[n,o]=E.useState(e);return E.useEffect(()=>{o(e)},[e]),y.jsx(Re,{children:y.jsx(um,{size:"xs",fullWidth:!0,withItemsBorders:!1,value:n,onChange:a=>{const i=a;o(i),r({border:i})},styles:{label:{paddingTop:"0.5",paddingBottom:"0.5"}},data:[{label:"Solid",value:"solid"},{label:"Dashed",value:"dashed"},{label:"Dotted",value:"dotted"},{label:"None",value:"none"}]})})}function LJe(e){const{enableVscode:r,enableRelationshipBrowser:n}=_r(),{data:{shape:o,modelFqn:a}}=e,{elementColor:i,onColorPreview:s,onChange:l}=b4(a,e);return y.jsxs(y4,{nodeProps:e,title:a,align:"start",children:[y.jsx(pre,{elementShape:o,onChange:l}),y.jsx(g4,{elementColor:i,onColorPreview:s,onChange:l,position:"right-end"}),r&&y.jsx(m4,{elementId:a}),n&&y.jsx(f4,{fqn:a})]})}function BJe(e){const{enableVscode:r,enableRelationshipBrowser:n}=_r(),{data:{shape:o,deploymentFqn:a,modelFqn:i}}=e,{elementColor:s,onColorPreview:l,onChange:c}=b4(a,e);return y.jsxs(y4,{nodeProps:e,title:a,align:"start",children:[y.jsx(pre,{elementShape:o,onChange:c}),y.jsx(g4,{elementColor:s,onColorPreview:l,onChange:c,position:"right-end"}),r&&y.jsx(m4,{deploymentId:a}),n&&i&&y.jsx(f4,{fqn:i})]})}function pre({elementShape:e,onChange:r}){return y.jsxs(hn,{openDelay:300,closeDelay:450,floatingStrategy:"fixed",closeOnClickOutside:!0,clickOutsideEvents:["pointerdown","mousedown","click"],closeOnEscape:!0,closeOnItemClick:!1,position:"top-start",offset:2,styles:{item:{padding:"calc(var(--mantine-spacing-xs) / 1.5) var(--mantine-spacing-xs)"}},withinPortal:!1,children:[y.jsx(G2,{children:y.jsx(Kn,{variant:"light",color:"gray",size:"compact-xs",rightSection:y.jsx(RA,{size:12}),children:e})}),y.jsx(q0,{onDoubleClick:Cn,onClick:Cn,children:Fye.map(n=>y.jsx(U0,{fz:12,fw:500,value:n,rightSection:e===n?y.jsx(kJ,{size:12}):void 0,onClick:o=>{o.stopPropagation(),r({shape:n})},children:n},n))})]})}const v4={top:"50%",left:"50%",right:"unset",bottom:"unset",visibility:"hidden",width:5,height:5,transform:"translate(-50%, -50%)"},Vy=()=>y.jsxs(y.Fragment,{children:[y.jsx(yo,{type:"target",position:tt.Top,style:v4}),y.jsx(yo,{type:"target",position:tt.Left,style:v4}),y.jsx(yo,{type:"source",position:tt.Right,style:v4}),y.jsx(yo,{type:"source",position:tt.Bottom,style:v4})]});function aR(e){const r=Qt(),n=e.data.modelFqn;return n?y.jsx($A,{...e,onClick:o=>{o.stopPropagation(),r.openElementDetails(n,e.id)}}):null}function hre(e){const r=Qt(),n=e.data.modelFqn;return n?y.jsx(qee,{...e,onClick:o=>{o.stopPropagation(),r.openElementDetails(n,e.id)}}):null}function FJe(e){const{enableElementTags:r,enableElementDetails:n,enableReadOnly:o,enableCompareWithLatest:a}=_r();return y.jsxs(Im,{nodeProps:e,children:[a&&y.jsx(sre,{...e}),y.jsx(Om,{...e}),y.jsx(Ss,{...e}),r&&y.jsx(Ry,{...e}),y.jsx(are,{...e}),n&&y.jsx(aR,{...e}),!o&&y.jsx(LJe,{...e}),y.jsx(Vy,{})]})}function HJe(e){const{enableElementTags:r,enableElementDetails:n,enableReadOnly:o,enableCompareWithLatest:a}=_r();return y.jsxs(Im,{nodeProps:e,children:[a&&y.jsx(sre,{...e}),y.jsx(Om,{...e}),y.jsx(Ss,{...e}),r&&y.jsx(Ry,{...e}),y.jsx(DJe,{...e}),n&&y.jsx(aR,{...e}),!o&&y.jsx(BJe,{...e}),y.jsx(Vy,{})]})}function VJe(e){const{enableElementDetails:r,enableReadOnly:n}=_r();return y.jsxs(Iy,{nodeProps:e,children:[y.jsx(Oy,{...e}),y.jsx(ire,{...e}),r&&y.jsx(hre,{...e}),!n&&y.jsx(OJe,{...e}),y.jsx(Vy,{})]})}function qJe(e){const{enableElementDetails:r,enableReadOnly:n}=_r();return y.jsxs(Iy,{nodeProps:e,children:[y.jsx(Oy,{...e}),y.jsx(ire,{...e}),r&&y.jsx(hre,{...e}),!n&&y.jsx(jJe,{...e}),y.jsx(Vy,{})]})}function UJe(e){return y.jsxs(Iy,{nodeProps:e,children:[y.jsx(Oy,{...e}),y.jsx(Vy,{})]})}const WJe={left:tt.Left,right:tt.Right,top:tt.Top,bottom:tt.Bottom},YJe=({data:e,port:r})=>y.jsxs(y.Fragment,{children:[y.jsx(zr,{"data-likec4-color":e.color,className:be({position:"absolute",backgroundColor:"var(--likec4-palette-fill)",rounded:"xs",width:{base:"5px",_whenHovered:"7px",_whenSelected:"7px"},transition:"fast",translateX:"-1/2",translateY:"-1/2",translate:"auto"}),style:{top:r.cy,left:r.cx,height:r.height}}),y.jsx(yo,{id:r.id,type:r.type,position:WJe[r.position],style:{top:r.cy-3,left:r.cx-3,width:6,height:6,right:"unset",bottom:"unset",visibility:"hidden",transform:r.position==="left"?"translate(-150%, 0)":"translate(100%, 0)"}})]}),GJe=e=>da(e.modelFqn);function XJe(e){const{enableElementDetails:r}=_r(),n=e.data,{id:o,positionAbsoluteY:a,data:{viewHeight:i,hovered:s=!1,ports:l}}=e;return y.jsxs(y.Fragment,{children:[y.jsx(zr,{"data-likec4-color":"gray",className:be({position:"absolute",rounded:"xs",top:"1",pointerEvents:"none",transition:"fast",translateX:"-1/2",translate:"auto"}),style:{backgroundColor:"var(--likec4-palette-stroke)",opacity:s?.6:.4,left:"50%",width:s?3:2,height:i-a,zIndex:-1,pointerEvents:"none"}}),y.jsxs(Im,{nodeProps:e,children:[y.jsx(Om,{...e}),y.jsx(Ss,{...e}),GJe(n)&&y.jsxs(y.Fragment,{children:[y.jsx(are,{...e,data:n}),r&&y.jsx(aR,{id:o,data:n})]})]}),l.map(c=>y.jsx(YJe,{port:c,data:e.data},c.id))]})}function KJe(e){return y.jsx(zr,{"data-likec4-color":e.data.color,css:{width:"100%",height:"100%",border:"default",rounded:"sm",borderWidth:1,"--_color":{base:"var(--likec4-palette-stroke)",_dark:"[color-mix(in srgb, var(--likec4-palette-hiContrast) 40%, var(--likec4-palette-fill))]"},borderColor:"[var(--_color)/30]",backgroundColor:"var(--likec4-palette-fill)/15",pointerEvents:"none",paddingLeft:"2",paddingTop:"0.5",fontSize:"xs",fontWeight:"bold",letterSpacing:".75px",color:"[var(--_color)/75]"},children:"PARALLEL"})}const Gp={ElementNode:FJe,DeploymentNode:HJe,CompoundElementNode:VJe,CompoundDeploymentNode:qJe,ViewGroupNode:UJe,SequenceActorNode:XJe,SequenceParallelArea:KJe},fre={RelationshipEdge:ore,SequenceStepEdge:RJe};var mre=Symbol.for("immer-nothing"),gre=Symbol.for("immer-draftable"),Ha=Symbol.for("immer-state");function Ts(e,...r){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var qy=Object.getPrototypeOf;function Ym(e){return!!e&&!!e[Ha]}function Xp(e){return e?bre(e)||Array.isArray(e)||!!e[gre]||!!e.constructor?.[gre]||Uy(e)||k4(e):!1}var ZJe=Object.prototype.constructor.toString(),yre=new WeakMap;function bre(e){if(!e||typeof e!="object")return!1;const r=Object.getPrototypeOf(e);if(r===null||r===Object.prototype)return!0;const n=Object.hasOwnProperty.call(r,"constructor")&&r.constructor;if(n===Object)return!0;if(typeof n!="function")return!1;let o=yre.get(n);return o===void 0&&(o=Function.toString.call(n),yre.set(n,o)),o===ZJe}function x4(e,r,n=!0){w4(e)===0?(n?Reflect.ownKeys(e):Object.keys(e)).forEach(o=>{r(o,e[o],e)}):e.forEach((o,a)=>r(a,o,e))}function w4(e){const r=e[Ha];return r?r.type_:Array.isArray(e)?1:Uy(e)?2:k4(e)?3:0}function iR(e,r){return w4(e)===2?e.has(r):Object.prototype.hasOwnProperty.call(e,r)}function vre(e,r,n){const o=w4(e);o===2?e.set(r,n):o===3?e.add(n):e[r]=n}function QJe(e,r){return e===r?e!==0||1/e===1/r:e!==e&&r!==r}function Uy(e){return e instanceof Map}function k4(e){return e instanceof Set}function Kp(e){return e.copy_||e.base_}function sR(e,r){if(Uy(e))return new Map(e);if(k4(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=bre(e);if(r===!0||r==="class_only"&&!n){const o=Object.getOwnPropertyDescriptors(e);delete o[Ha];let a=Reflect.ownKeys(o);for(let i=0;i1&&Object.defineProperties(e,{set:_4,add:_4,clear:_4,delete:_4}),Object.freeze(e),r&&Object.values(e).forEach(n=>lR(n,!0))),e}function JJe(){Ts(2)}var _4={value:JJe};function E4(e){return e===null||typeof e!="object"?!0:Object.isFrozen(e)}var eet={};function Zp(e){const r=eet[e];return r||Ts(0,e),r}var Wy;function xre(){return Wy}function tet(e,r){return{drafts_:[],parent_:e,immer_:r,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function wre(e,r){r&&(Zp("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=r)}function cR(e){dR(e),e.drafts_.forEach(ret),e.drafts_=null}function dR(e){e===Wy&&(Wy=e.parent_)}function kre(e){return Wy=tet(Wy,e)}function ret(e){const r=e[Ha];r.type_===0||r.type_===1?r.revoke_():r.revoked_=!0}function _re(e,r){r.unfinalizedDrafts_=r.drafts_.length;const n=r.drafts_[0];return e!==void 0&&e!==n?(n[Ha].modified_&&(cR(r),Ts(4)),Xp(e)&&(e=S4(r,e),r.parent_||C4(r,e)),r.patches_&&Zp("Patches").generateReplacementPatches_(n[Ha].base_,e,r.patches_,r.inversePatches_)):e=S4(r,n,[]),cR(r),r.patches_&&r.patchListener_(r.patches_,r.inversePatches_),e!==mre?e:void 0}function S4(e,r,n){if(E4(r))return r;const o=e.immer_.shouldUseStrictIteration(),a=r[Ha];if(!a)return x4(r,(i,s)=>Ere(e,a,r,i,s,n),o),r;if(a.scope_!==e)return r;if(!a.modified_)return C4(e,a.base_,!0),a.base_;if(!a.finalized_){a.finalized_=!0,a.scope_.unfinalizedDrafts_--;const i=a.copy_;let s=i,l=!1;a.type_===3&&(s=new Set(i),i.clear(),l=!0),x4(s,(c,d)=>Ere(e,a,i,c,d,n,l),o),C4(e,i,!1),n&&e.patches_&&Zp("Patches").generatePatches_(a,n,e.patches_,e.inversePatches_)}return a.copy_}function Ere(e,r,n,o,a,i,s){if(a==null||typeof a!="object"&&!s)return;const l=E4(a);if(!(l&&!s)){if(Ym(a)){const c=i&&r&&r.type_!==3&&!iR(r.assigned_,o)?i.concat(o):void 0,d=S4(e,a,c);if(vre(n,o,d),Ym(d))e.canAutoFreeze_=!1;else return}else s&&n.add(a);if(Xp(a)&&!l){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1||r&&r.base_&&r.base_[o]===a&&l)return;S4(e,a),(!r||!r.scope_.parent_)&&typeof o!="symbol"&&(Uy(n)?n.has(o):Object.prototype.propertyIsEnumerable.call(n,o))&&C4(e,a)}}}function C4(e,r,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&lR(r,n)}function net(e,r){const n=Array.isArray(e),o={type_:n?1:0,scope_:r?r.scope_:xre(),modified_:!1,finalized_:!1,assigned_:{},parent_:r,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let a=o,i=uR;n&&(a=[o],i=Yy);const{revoke:s,proxy:l}=Proxy.revocable(a,i);return o.draft_=l,o.revoke_=s,l}var uR={get(e,r){if(r===Ha)return e;const n=Kp(e);if(!iR(n,r))return oet(e,n,r);const o=n[r];return e.finalized_||!Xp(o)?o:o===pR(e.base_,r)?(fR(e),e.copy_[r]=mR(o,e)):o},has(e,r){return r in Kp(e)},ownKeys(e){return Reflect.ownKeys(Kp(e))},set(e,r,n){const o=Sre(Kp(e),r);if(o?.set)return o.set.call(e.draft_,n),!0;if(!e.modified_){const a=pR(Kp(e),r),i=a?.[Ha];if(i&&i.base_===n)return e.copy_[r]=n,e.assigned_[r]=!1,!0;if(QJe(n,a)&&(n!==void 0||iR(e.base_,r)))return!0;fR(e),hR(e)}return e.copy_[r]===n&&(n!==void 0||r in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[r])||(e.copy_[r]=n,e.assigned_[r]=!0),!0},deleteProperty(e,r){return pR(e.base_,r)!==void 0||r in e.base_?(e.assigned_[r]=!1,fR(e),hR(e)):delete e.assigned_[r],e.copy_&&delete e.copy_[r],!0},getOwnPropertyDescriptor(e,r){const n=Kp(e),o=Reflect.getOwnPropertyDescriptor(n,r);return o&&{writable:!0,configurable:e.type_!==1||r!=="length",enumerable:o.enumerable,value:n[r]}},defineProperty(){Ts(11)},getPrototypeOf(e){return qy(e.base_)},setPrototypeOf(){Ts(12)}},Yy={};x4(uR,(e,r)=>{Yy[e]=function(){return arguments[0]=arguments[0][0],r.apply(this,arguments)}}),Yy.deleteProperty=function(e,r){return Yy.set.call(this,e,r,void 0)},Yy.set=function(e,r,n){return uR.set.call(this,e[0],r,n,e[0])};function pR(e,r){const n=e[Ha];return(n?Kp(n):e)[r]}function oet(e,r,n){const o=Sre(r,n);return o?"value"in o?o.value:o.get?.call(e.draft_):void 0}function Sre(e,r){if(!(r in e))return;let n=qy(e);for(;n;){const o=Object.getOwnPropertyDescriptor(n,r);if(o)return o;n=qy(n)}}function hR(e){e.modified_||(e.modified_=!0,e.parent_&&hR(e.parent_))}function fR(e){e.copy_||(e.copy_=sR(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var aet=class{constructor(r){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!0,this.produce=(n,o,a)=>{if(typeof n=="function"&&typeof o!="function"){const s=o;o=n;const l=this;return function(c=s,...d){return l.produce(c,u=>o.call(this,u,...d))}}typeof o!="function"&&Ts(6),a!==void 0&&typeof a!="function"&&Ts(7);let i;if(Xp(n)){const s=kre(this),l=mR(n,void 0);let c=!0;try{i=o(l),c=!1}finally{c?cR(s):dR(s)}return wre(s,a),_re(i,s)}else if(!n||typeof n!="object"){if(i=o(n),i===void 0&&(i=n),i===mre&&(i=void 0),this.autoFreeze_&&lR(i,!0),a){const s=[],l=[];Zp("Patches").generateReplacementPatches_(n,i,s,l),a(s,l)}return i}else Ts(1,n)},this.produceWithPatches=(n,o)=>{if(typeof n=="function")return(s,...l)=>this.produceWithPatches(s,c=>n(c,...l));let a,i;return[this.produce(n,o,(s,l)=>{a=s,i=l}),a,i]},typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze),typeof r?.useStrictShallowCopy=="boolean"&&this.setUseStrictShallowCopy(r.useStrictShallowCopy),typeof r?.useStrictIteration=="boolean"&&this.setUseStrictIteration(r.useStrictIteration)}createDraft(r){Xp(r)||Ts(8),Ym(r)&&(r=iet(r));const n=kre(this),o=mR(r,void 0);return o[Ha].isManual_=!0,dR(n),o}finishDraft(r,n){const o=r&&r[Ha];(!o||!o.isManual_)&&Ts(9);const{scope_:a}=o;return wre(a,n),_re(void 0,a)}setAutoFreeze(r){this.autoFreeze_=r}setUseStrictShallowCopy(r){this.useStrictShallowCopy_=r}setUseStrictIteration(r){this.useStrictIteration_=r}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(r,n){let o;for(o=n.length-1;o>=0;o--){const i=n[o];if(i.path.length===0&&i.op==="replace"){r=i.value;break}}o>-1&&(n=n.slice(o+1));const a=Zp("Patches").applyPatches_;return Ym(r)?a(r,n):this.produce(r,i=>a(i,n))}};function mR(e,r){const n=Uy(e)?Zp("MapSet").proxyMap_(e,r):k4(e)?Zp("MapSet").proxySet_(e,r):net(e,r);return(r?r.scope_:xre()).drafts_.push(n),n}function iet(e){return Ym(e)||Ts(10,e),Cre(e)}function Cre(e){if(!Xp(e)||E4(e))return e;const r=e[Ha];let n,o=!0;if(r){if(!r.modified_)return r.base_;r.finalized_=!0,n=sR(e,r.scope_.immer_.useStrictShallowCopy_),o=r.scope_.immer_.shouldUseStrictIteration()}else n=sR(e,!0);return x4(n,(a,i)=>{vre(n,a,Cre(i))},o),r&&(r.finalized_=!1),n}var set=new aet,T4=set.produce;class Gm{static LeftPadding=42;static RightPadding=42;static TopPadding=60;static BottomPadding=42;id;minX=1/0;minY=1/0;maxX=-1/0;maxY=-1/0;initialX;initialY;get positionAbsolute(){return{x:this.minX,y:this.minY}}get initialPositionAbsolute(){return{x:this.initialX,y:this.initialY}}set positionAbsolute(r){const n=Math.round(r.x),o=Math.round(r.y);this.maxX+=n-this.minX,this.maxY+=o-this.minY,this.minX=n,this.minY=o}get dimensions(){return{width:this.maxX-this.minX,height:this.maxY-this.minY}}get diff(){return{x:this.positionAbsolute.x-this.initialX,y:this.positionAbsolute.y-this.initialY}}get isMoved(){return this.diff.x!==0||this.diff.y!==0}get position(){const r=this.positionAbsolute;if(!this.parent)return r;const n=this.parent.positionAbsolute;return{x:r.x-n.x,y:r.y-n.y}}constructor(r,n=null){this.id=r.id,this.positionAbsolute=n?{x:r.position.x+n.minX,y:r.position.y+n.minY}:r.position;const{width:o,height:a}=ao(r);this.maxX=this.minX+Math.ceil(o),this.maxY=this.minY+Math.ceil(a),this.initialX=this.positionAbsolute.x,this.initialY=this.positionAbsolute.y,n&&n.children.push(this)}}class A4 extends Gm{constructor(r,n=null){super(r,n),this.parent=n}children=[]}class cet extends Gm{constructor(r,n=null){super(r,n),this.parent=n}}function Tre(e,r){return n=>{const o=bt(n.get(e.id),`Edge ${e.id} not found`),{x:a,y:i}=r.diff;return a===0&&i===0?{id:e.id,type:"replace",item:T4(o,s=>{s.data.points=e.data.points,s.data.controlPoints=e.data.controlPoints,s.data.labelXY=e.data.labelXY,s.data.labelBBox=e.data.labelBBox})}:{id:e.id,type:"replace",item:T4(o,s=>{s.data.points=Sn(e.data.points,l=>[l[0]+a,l[1]+i]),e.data.controlPoints&&(s.data.controlPoints=(e.data.controlPoints??[]).map(l=>({x:l.x+a,y:l.y+i}))),e.data.labelXY&&(s.data.labelXY={x:e.data.labelXY.x+a,y:e.data.labelXY.y+i}),e.data.labelBBox&&(s.data.labelBBox={x:e.data.labelBBox.x+a,y:e.data.labelBBox.y+i,width:e.data.labelBBox.width,height:e.data.labelBBox.height})})}}}function Are(e,r){const{parentLookup:n,nodeLookup:o,edges:a,edgeLookup:i}=e.getState(),s=new Map,l=new Xn(T=>{let A=o.get(T)?.parentId;return A?[A,...l.get(A)]:[]}),c=new Xn(T=>{const A=n.get(T);if(!A||A.size===0)return new Set;const R=new Set;for(const D of A.values()){R.add(D.id);for(const N of c.get(D.id))R.add(N)}return R}),d=new Set(r.flatMap(T=>l.get(T))),u=[...o.values()].flatMap(T=>T.parentId?[]:{xynode:T,parent:null});for(;u.length>0;){const{xynode:T,parent:A}=u.shift();if(!r.includes(T.id)&&d.has(T.id)){const R=new A4(T,A);s.set(T.id,R),n.get(T.id)?.forEach(D=>{u.push({xynode:D,parent:R})})}else s.set(T.id,new cet(T,A))}const h=[...s.values()],f=new Map;for(const T of h){if(T instanceof A4)continue;const A=c.get(T.id);A.size!==0&&En(a,hp(R=>!f.has(R)&&A.has(R.source)&&A.has(R.target)),mNe(R=>{f.set(R,Tre(R,T))}))}const g=T=>s.get(T)??l.get(T).map(A=>s.get(A)).find(A=>!!A)??null,b=new Set(r.flatMap(T=>[T,...c.get(T)]));for(const T of a){if(f.has(T))continue;const A=b.has(T.source),R=b.has(T.target);if(A&&R){let D=s.get(T.source)??s.get(T.target)??l.get(T.source).map(N=>s.get(N)).find(N=>!!N)??l.get(T.target).map(N=>s.get(N)).find(N=>!!N);D&&f.set(T,Tre(T,D));continue}if(A!==R){const D=g(A?T.source:T.target);if(!D)continue;const N=T.data.controlPoints??jw(T.data.points),P=bt(o.get(T.source),`Source node ${T.source} not found`),O=bt(o.get(T.target),`Target node ${T.target} not found`),F=jo(vJ(P,O)),L=jo(vJ(O,P)),[U,M]=A?[F,L]:[L,F],V=U.subtract(M),I=V.length();f.set(T,H=>{const q=bt(H.get(T.id),`Edge ${T.id} not found`),{x:Z,y:W}=D.diff;if(Z===0&&W===0)return{id:T.id,type:"replace",item:T4(q,j=>{j.data.points=T.data.points,j.data.controlPoints=T.data.controlPoints,j.data.labelXY=T.data.labelXY,j.data.labelBBox=T.data.labelBBox})};const G=jo(Z,W),K=j=>{const Y=jo(j),Q=Y.subtract(M).dot(V),J=Math.min(Q/I**2,1),ie=Y.add(G.multiply(J));return{x:Math.round(ie.x),y:Math.round(ie.y)}};return{id:T.id,type:"replace",item:T4(q,j=>{if(j.data.controlPoints=N.map(K),T.data.labelBBox){const{x:Y,y:Q}=K(T.data.labelBBox);j.data.labelBBox={x:Y,y:Q,width:T.data.labelBBox.width,height:T.data.labelBBox.height}}T.data.labelXY&&(j.data.labelXY=K(T.data.labelXY))})}});continue}}function x(T){for(const A of T){if(!(A instanceof A4))continue;x(A.children);const R={minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};for(const D of A.children)R.minX=Math.min(R.minX,D.minX),R.minY=Math.min(R.minY,D.minY),R.maxX=Math.max(R.maxX,D.maxX),R.maxY=Math.max(R.maxY,D.maxY);A.minX=R.minX-Gm.LeftPadding,A.minY=R.minY-Gm.TopPadding,A.maxX=R.maxX+Gm.RightPadding,A.maxY=R.maxY+Gm.BottomPadding}}const w=[...f.values()];function k(){x(h);const T=h.reduce((R,D)=>(R.push({id:D.id,type:"position",dragging:!1,position:D.position,positionAbsolute:D.positionAbsolute}),D instanceof A4&&R.push({id:D.id,type:"dimensions",setAttributes:!0,dimensions:D.dimensions}),R),[]);e.getState().triggerNodeChanges(T);const A=w.map(R=>R(i));A.length>0&&e.getState().triggerEdgeChanges(A)}let C=null;function _(){h.length!==0&&(C??=requestAnimationFrame(()=>{C=null;for(const T of r){const A=bt(s.get(T)),R=bt(o.get(T));A.positionAbsolute=R.internals.positionAbsolute}k()}))}return{rects:s,onMove:_,updateXYFlow:k}}function det(){const e=AT(),r=Qt(),n=E.useRef(void 0);return E.useMemo(()=>({onNodeDragStart:(o,a)=>{r.startEditing("node");const{nodeLookup:i}=e.getState(),s=En(Array.from(i.values()),hp(l=>l.draggable!==!1&&(l.dragging===!0||l.id===a.id||l.selected===!0)));bo(s,1)&&(n.current=Are(e,Sn(s,l=>l.id)))},onNodeDrag:o=>{n.current?.onMove()},onNodeDragStop:o=>{const a=n.current?VB(n.current.rects.values(),i=>i.isMoved):!1;r.stopEditing(a),n.current=void 0}}),[e,r])}const uet={relationship:fre.RelationshipEdge,"seq-step":fre.SequenceStepEdge},Yd={element:_c(Gp.ElementNode),deployment:_c(Gp.DeploymentNode),"compound-element":_c(Gp.CompoundElementNode),"compound-deployment":_c(Gp.CompoundDeploymentNode),"view-group":_c(Gp.ViewGroupNode),"seq-actor":_c(Gp.SequenceActorNode),"seq-parallel":_c(Gp.SequenceParallelArea)};function pet(e){return!e||fp(e)?Yd:{element:e.element??Yd.element,deployment:e.deployment??Yd.deployment,"compound-element":e.compoundElement??Yd["compound-element"],"compound-deployment":e.compoundDeployment??Yd["compound-deployment"],"view-group":e.viewGroup??Yd["view-group"],"seq-actor":e.seqActor??Yd["seq-actor"],"seq-parallel":e.seqParallel??Yd["seq-parallel"]}}const het=({context:e,children:r})=>{const n=e.toggledFeatures,o=e.features.enableReadOnly||n.enableReadOnly===!0,a=o||r.syncLayout?.getSnapshot().context.editing!=="edge";return{enableReadOnly:o,initialized:e.initialized.xydata&&e.initialized.xyflow,nodes:e.xynodes,edges:e.xyedges,pannable:e.pannable,zoomable:e.zoomable,nodesDraggable:!o&&e.nodesDraggable,nodesSelectable:e.nodesSelectable&&a,fitViewPadding:e.fitViewPadding,enableFitView:e.toggledFeatures.enableFitView??e.features.enableFitView,...!e.features.enableFitView&&{viewport:{x:-Math.min(e.view.bounds.x,0),y:-Math.min(e.view.bounds.y,0),zoom:1}}}},fet=(e,r)=>e.enableReadOnly===r.enableReadOnly&&e.initialized===r.initialized&&e.pannable===r.pannable&&e.zoomable===r.zoomable&&e.nodesDraggable===r.nodesDraggable&&e.nodesSelectable===r.nodesSelectable&&e.enableFitView===r.enableFitView&&an(e.fitViewPadding,r.fitViewPadding)&&an(e.nodes,r.nodes)&&an(e.edges,r.edges)&&an(e.viewport??null,r.viewport??null);function met({background:e="dots",reactFlowProps:r={},children:n,renderNodes:o}){const a=Qt();let{enableReadOnly:i,initialized:s,nodes:l,edges:c,enableFitView:d,nodesDraggable:u,nodesSelectable:h,...f}=ZS(het,fet);const{onNodeContextMenu:g,onCanvasContextMenu:b,onEdgeContextMenu:x,onNodeClick:w,onEdgeClick:k,onCanvasClick:C,onCanvasDblClick:_}=Fm(),T=fje(),A=det(),R=gje(),D=NU(()=>{R.set(!0)},T?120:400),N=Yf(()=>{D.clear(),R.set(!1)},T?350:200),P=kt(U=>{U&&(R.get()||D.start(),N())}),O=kt((U,M)=>{D.clear(),a.send({type:"xyflow.viewportMoved",viewport:M,manually:!!U})}),F=kt(()=>{a.send({type:"xyflow.resized"})}),L=jF(()=>pet(o),[o],TJ);return qp(()=>{console.warn("renderNodes changed - this might degrade performance")},[L]),y.jsx(IT,{nodes:l,edges:c,className:et(s?"initialized":"not-initialized"),nodeTypes:L,edgeTypes:uet,onNodesChange:kt(U=>{a.send({type:"xyflow.applyNodeChanges",changes:U})}),onEdgesChange:kt(U=>{a.send({type:"xyflow.applyEdgeChanges",changes:U})}),background:s?e:"transparent",fitView:!1,onNodeClick:kt((U,M)=>{U.stopPropagation(),a.send({type:"xyflow.nodeClick",node:M}),w?.(a.findDiagramNode(M.id),U)}),onEdgeClick:kt((U,M)=>{U.stopPropagation(),a.send({type:"xyflow.edgeClick",edge:M}),k?.(a.findDiagramEdge(M.id),U)}),onEdgeDoubleClick:kt((U,M)=>{U.stopPropagation(),a.send({type:"xyflow.edgeDoubleClick",edge:M})}),onPaneClick:kt(U=>{U.stopPropagation(),a.send({type:"xyflow.paneClick"}),C?.(U)}),onDoubleClick:kt(U=>{U.stopPropagation(),U.preventDefault(),a.send({type:"xyflow.paneDblClick"}),_?.(U)}),onNodeMouseEnter:kt((U,M)=>{U.stopPropagation(),a.send({type:"xyflow.nodeMouseEnter",node:M})}),onNodeMouseLeave:kt((U,M)=>{U.stopPropagation(),a.send({type:"xyflow.nodeMouseLeave",node:M})}),onEdgeMouseEnter:kt((U,M)=>{U.stopPropagation(),a.send({type:"xyflow.edgeMouseEnter",edge:M,event:U})}),onEdgeMouseLeave:kt((U,M)=>{U.stopPropagation(),a.send({type:"xyflow.edgeMouseLeave",edge:M,event:U})}),onMove:P,onMoveEnd:O,onInit:kt(U=>{a.send({type:"xyflow.init",instance:U})}),onNodeContextMenu:kt((U,M)=>{const V=bt(a.findDiagramNode(M.id),`diagramNode ${M.id} not found`);g?.(V,U)}),onEdgeContextMenu:kt((U,M)=>{const V=bt(a.findDiagramEdge(M.id),`diagramEdge ${M.id} not found`);x?.(V,U)}),...b&&{onPaneContextMenu:b},...d&&{onViewportResize:F},nodesDraggable:u,nodesSelectable:h,elevateEdgesOnSelect:!i,...u&&A,...f,...r,children:n})}function get(e){const{view:r}=e,n=[],o=[],a=new Map,i=J8.from(r.nodes.reduce((u,h)=>(a.set(h.id,h),h.parent||u.push({node:h,parent:null}),u),[]));let s=u=>!0;if(e.where)try{const u=Xu(e.where);s=h=>u({...Gq(h,["tags","kind"]),..."source"in h?{source:c(h.source)}:h,..."target"in h?{target:c(h.target)}:h})}catch(u){console.error("Error in where filter:",u)}const l="",c=u=>bt(a.get(u),`Node not found: ${u}`);let d;for(;d=i.dequeue();){const{node:u,parent:h}=d,f=bo(u.children,1)||u.kind==V1;if(f)for(const R of u.children)i.enqueue({node:c(R),parent:u});const g={x:u.x,y:u.y};h&&(g.x-=h.x,g.y-=h.y);const b=l+u.id,x=u.drifts??null,w={id:b,deletable:!1,position:g,zIndex:f?_l.Compound:_l.Element,style:{width:u.width,height:u.height},initialWidth:u.width,initialHeight:u.height,hidden:u.kind!==V1&&!s(u),...h&&{parentId:l+h.id}},k={viewId:r.id,id:u.id,title:u.title,color:u.color,shape:u.shape,style:u.style,depth:u.depth??0,icon:u.icon??"none",tags:u.tags??null,x:u.x,y:u.y},C={viewId:r.id,id:u.id,title:u.title,technology:u.technology??null,description:or.from(u.description),height:u.height,width:u.width,level:u.level,color:u.color,shape:u.shape,style:u.style,icon:u.icon??null,tags:u.tags,x:u.x,y:u.y,isMultiple:u.style?.multiple??!1};if(u.kind===V1){n.push({...w,type:"view-group",data:{isViewGroup:!0,...k},dragHandle:".likec4-compound-title-container"});continue}const _=u.modelRef??null,T=u.deploymentRef??null;if(!_&&!T)throw console.error("Invalid node",u),new Error("Element should have either modelRef or deploymentRef");const A={navigateTo:u.navigateTo??null};switch(!0){case(f&&!!T):{n.push({...w,type:"compound-deployment",data:{...k,...A,deploymentFqn:T,modelFqn:_,drifts:x}});break}case f:{at(!!_,"ModelRef expected"),n.push({...w,type:"compound-element",data:{...k,...A,modelFqn:_,drifts:x}});break}case!!T:{n.push({...w,type:"deployment",data:{...C,...A,deploymentFqn:T,modelFqn:_,drifts:x}});break}default:at(!!_,"ModelRef expected"),n.push({...w,type:"element",data:{...C,...A,modelFqn:_,drifts:x}})}}for(const u of r.edges){const h=u.source,f=u.target,g=l+u.id;if(!bo(u.points,2)){console.error("edge should have at least 2 points",u);continue}o.push({id:g,type:"relationship",source:l+h,target:l+f,zIndex:_l.Edge,hidden:!s(u),deletable:!1,data:{id:u.id,label:u.label,technology:u.technology,notes:or.from(u.notes),navigateTo:u.navigateTo,controlPoints:u.controlPoints??null,labelBBox:u.labelBBox??null,labelXY:u.labelBBox?{x:u.labelBBox.x,y:u.labelBBox.y}:null,points:u.points,color:u.color??"gray",line:u.line??"dashed",dir:u.dir??"forward",head:u.head??"normal",tail:u.tail??"none",astPath:u.astPath,drifts:u.drifts??null},interactionWidth:20})}return{bounds:r.bounds,xynodes:n,xyedges:o}}const Rre={parallel:1,actor:10},R4={default:"gray",active:"amber"};function yet(e){const{actors:r,steps:n,compounds:o,parallelAreas:a,bounds:i}=e.sequenceLayout,s=[],l=[],c=d=>bt(e.nodes.find(u=>u.id===d));for(const d of o)s.push(bet(d,c(d.origin),e));for(const d of a)s.push(vet(d,e));for(const d of r)s.push(xet(d,c(d.id),i,e));for(const d of n){const u=e.edges.find(h=>h.id===d.id);if(!u)throw new Error(`Edge ${d.id} not found`);l.push(wet(d,u))}return{bounds:i,xynodes:s,xyedges:l}}function bet({id:e,x:r,y:n,width:o,height:a,depth:i},s,l){return{id:e,type:"view-group",data:{id:s.id,title:s.title,color:s.color??"gray",shape:s.shape,style:s.style,tags:s.tags,x:r,y:n,viewId:l.id,depth:i,isViewGroup:!0},position:{x:r,y:n},draggable:!1,selectable:!1,focusable:!1,style:{pointerEvents:"none"},width:o,initialWidth:o,height:a,initialHeight:a}}function vet({parallelPrefix:e,x:r,y:n,width:o,height:a},i){return{id:`seq-parallel-${e}`,type:"seq-parallel",data:{id:`seq-parallel-${e}`,title:"PARALLEL",technology:null,color:R4.default,shape:"rectangle",style:{},tags:[],x:r,y:n,level:0,icon:null,width:o,height:a,description:or.EMPTY,viewId:i.id,parallelPrefix:e},zIndex:Rre.parallel,position:{x:r,y:n},draggable:!1,deletable:!1,selectable:!1,focusable:!1,style:{pointerEvents:"none"},width:o,initialWidth:o,height:a,initialHeight:a}}function xet({id:e,x:r,y:n,width:o,height:a,ports:i},s,l,c){return{id:e,type:"seq-actor",data:{id:s.id,x:r,y:n,level:0,icon:s.icon??null,isMultiple:s.style.multiple??!1,title:s.title,width:o,height:a,color:s.color,navigateTo:s.navigateTo??null,shape:s.shape,style:s.style,tags:s.tags,modelFqn:s.modelRef??null,technology:s.technology??null,description:or.from(s.description),viewHeight:l.height,viewId:c.id,ports:i},deletable:!1,selectable:!0,zIndex:Rre.actor,position:{x:r,y:n},width:o,initialWidth:o,height:a,initialHeight:a}}function wet({id:e,labelBBox:r,sourceHandle:n,targetHandle:o},a){return{id:e,type:"seq-step",data:{id:e,label:a.label,technology:a.technology,notes:or.from(a.notes),navigateTo:a.navigateTo,controlPoints:null,labelBBox:{x:0,y:0,width:r?.width??a.labelBBox?.width??32,height:r?.height??a.labelBBox?.height??32},labelXY:null,points:a.points,color:a.color,line:a.line,dir:"forward",head:a.head??"normal",tail:a.tail??"none",astPath:a.astPath},selectable:!0,focusable:!1,zIndex:20,interactionWidth:40,source:a.source,sourceHandle:n,target:a.target,targetHandle:o}}function ket({dynamicViewVariant:e,...r}){const n=r.view,o=n._type==="dynamic",{bounds:a,xynodes:i,xyedges:s}=o&&e==="sequence"?yet(n):get(r);return o&&n.variant!==e?{view:{...n,bounds:a,variant:e},xynodes:i,xyedges:s}:{view:a===n.bounds?n:{...n,bounds:a},xynodes:i,xyedges:s}}function Nre(e){return{actor:e,send:r=>e.send(r),navigateTo:(r,n)=>{e.send({type:"navigate.to",viewId:r,...n&&{fromNode:n}})},navigate:r=>{e.send({type:`navigate.${r}`})},fitDiagram:(r=350)=>{e.send({type:"fitDiagram",duration:r})},openRelationshipsBrowser:r=>{e.send({type:"open.relationshipsBrowser",fqn:r})},openSource:r=>{e.send({type:"open.source",...r})},openElementDetails:(r,n)=>{e.send({type:"open.elementDetails",fqn:r,fromNode:n})},openRelationshipDetails:(...r)=>{r.length===1?e.send({type:"open.relationshipDetails",params:{edgeId:r[0]}}):e.send({type:"open.relationshipDetails",params:{source:r[0],target:r[1]}})},updateNodeData:(r,n)=>{e.send({type:"update.nodeData",nodeId:r,data:n})},updateEdgeData:(r,n)=>{e.send({type:"update.edgeData",edgeId:r,data:n})},startEditing:r=>{const n=jn(e.system).syncLayoutActorRef;at(n,"No sync layout actor found in diagram actor system"),n.send({type:"editing.start",subject:r})},stopEditing:(r=!1)=>{const n=jn(e.system).syncLayoutActorRef;at(n,"No sync layout actor found in diagram actor system"),n.send({type:"editing.stop",wasChanged:r})},undoEditing:()=>{const r=jn(e.system).syncLayoutActorRef;at(r,"No sync layout actor found in diagram actor system");const n=r.getSnapshot().context.history.length>0;return n&&r.send({type:"undo"}),n},align:r=>{e.send({type:"layout.align",mode:r})},resetEdgeControlPoints:()=>{e.send({type:"layout.resetEdgeControlPoints"})},focusNode:r=>{e.send({type:"focus.node",nodeId:r})},get currentView(){return e.getSnapshot().context.view},getSnapshot:()=>e.getSnapshot(),getContext:()=>e.getSnapshot().context,findDiagramNode:r=>Hm(e.getSnapshot().context,r),findEdge:r=>e.getSnapshot().context.xyedges.find(n=>n.data.id===r)??null,findDiagramEdge:r=>UA(e.getSnapshot().context,r),startWalkthrough:()=>{e.send({type:"walkthrough.start"})},walkthroughStep:(r="next")=>{e.send({type:"walkthrough.step",direction:r})},stopWalkthrough:()=>{e.send({type:"walkthrough.end"})},toggleFeature:(r,n)=>{e.send({type:"toggle.feature",feature:r,...n!==void 0&&{forceValue:n}})},highlightNotation:(r,n)=>{e.send({type:"notations.highlight",notation:r,...n&&{kind:n}})},unhighlightNotation:()=>{e.send({type:"notations.unhighlight"})},openSearch:r=>{e.send({type:"open.search",...r&&{search:r}})},triggerChange:r=>{e.send({type:"emit.onChange",change:r})},switchDynamicViewVariant:r=>{e.send({type:"switch.dynamicViewVariant",variant:r})}}}function _et({context:e,event:r}){Tt(r,"update.view");const n=r.view,o=e.view.id===n.id,a=e.xynodes,i=r.xynodes.map(l=>{const c=a.find(d=>d.id===l.id);if(c){if(c===l)return c;const{width:d,height:u}=ao(c);return lt(c.type,l.type)&<(d,l.initialWidth)&<(u,l.initialHeight)&<(c.hidden??!1,l.hidden??!1)&<(c.position,l.position)&<(c.data,l.data)&<(c.parentId??null,l.parentId??null)?c:{...Ed(c,["measured","parentId","hidden"]),...l,width:l.initialWidth,height:l.initialHeight}}return l});let s=r.xyedges;if(o&&(!n.drifts||n.drifts.length===0)){const l=e.xyedges;s=r.xyedges.map(c=>{const d=l.find(u=>u.id===c.id);return d===c?d:d&&d.type===c.type?lt(d.hidden??!1,c.hidden??!1)&<(d.data,c.data)&<(d.source,c.source)&<(d.target,c.target)&<(d.sourceHandle,c.sourceHandle)&<(d.targetHandle,c.targetHandle)?d:{...Ed(d,["hidden","sourceHandle","targetHandle"]),...c,data:{...d.data,...c.data}}:c})}return{xynodes:i,xyedges:s,view:n}}function Eet(e){const{xynodes:r,xyedges:n,focusedNode:o}=e.context;if(!o)return{};const a=new Set([o]),i=n.map(s=>s.source===o||s.target===o?(a.add(s.source),a.add(s.target),cr.setData(s,{dimmed:!1,active:!0})):cr.setData(s,{dimmed:!0,active:!1}));return{xynodes:r.map(s=>cr.setDimmed(s,!a.has(s.id))),xyedges:i}}function Dre({context:e,event:r}){Tt(r,"update.view");let{navigationHistory:{currentIndex:n,history:o},lastOnNavigate:a,viewport:i}=e;const s=o[n];if(!s)return{navigationHistory:{currentIndex:0,history:[{viewId:r.view.id,fromNode:null,viewport:{...i}}]}};if(s.viewId!==r.view.id){if(!a){const l=n>0?bt(o[n-1]):null;if(l&&l.viewId===r.view.id)return{navigationHistory:{currentIndex:n-1,history:o},lastOnNavigate:{fromView:s.viewId,toView:l.viewId,fromNode:s.fromNode}};const c=n0,"Cannot navigate back");const o=n[r],a=n[r-1];return{navigationHistory:{currentIndex:r-1,history:n},lastOnNavigate:{fromView:o.viewId,toView:a.viewId,fromNode:o.fromNode}}}function Tet({context:e}){const{navigationHistory:{currentIndex:r,history:n}}=e;at(r{if(n.id!==r.nodeId)return n;const o=Uq(n.data,r.data);return lt(o,n.data)?n:{...n,data:o}})}}function Ret({context:e,event:r}){return Tt(r,"update.edgeData"),{xyedges:e.xyedges.map(n=>{if(n.id!==r.edgeId)return n;const o=Uq(n.data,r.data);return lt(o,n.data)?n:{...n,data:o}})}}function $re(e,r,n){const o=ao(e),a=o.width/2/n.x,i=o.height/2/n.y,s=Math.min(Math.abs(a),Math.abs(i));return jo(n).multiply(s).add(r)}function Pre(e,r){const n=bt(e.get(r.source),`Source node ${r.source} not found`),o=bt(e.get(r.target),`Target node ${r.target} not found`),a=jo(Ty(n)),i=jo(Ty(o));if(n===o){const d=jo(0,n.height||0).multiply(-.5).add(a);return[d.add(jo(-32,-80)),d.add(jo(32,-80))]}const s=i.subtract(a),l=$re(n,a,s),c=$re(o,i,s.multiply(-1));return[l.add(c.subtract(l).multiply(.4))]}function Net({context:e}){const{stepId:r,parallelPrefix:n}=bt(e.activeWalkthrough,"activeWalkthrough is null"),o=bt(e.xyedges.find(a=>a.id===r));return{xyedges:e.xyedges.map(a=>{const i=r===a.id||!!n&&a.id.startsWith(n);return cr.setData(a,{active:i,dimmed:r!==a.id})}),xynodes:e.xynodes.map(a=>{const i=o.source!==a.id&&o.target!==a.id;return a.type==="seq-parallel"?cr.setData(a,{color:n===a.data.parallelPrefix?R4.active:R4.default,dimmed:i}):cr.setDimmed(a,i)})}}class Mre{}class Xm extends Mre{constructor(r,n,o){super(),this.getEdgePosition=r,this.computePosition=n,this.propertyToEdit=o}alignTo;computeLayout(r){this.alignTo=this.getEdgePosition(r)}applyPosition(r){return{[this.propertyToEdit]:this.computePosition(this.alignTo,r)}}}class Det extends Mre{layout=new Map;axisPreset;get primaryAxisCoord(){return this.axisPreset.primaryAxisCoord}get secondaryAxisCoord(){return this.axisPreset.secondaryAxisCoord}get primaryAxisDimension(){return this.axisPreset.primaryAxisDimension}get secondaryAxisDimension(){return this.axisPreset.secondaryAxisDimension}constructor(r){super(),this.axisPreset=r==="Column"?{primaryAxisDimension:"width",secondaryAxisDimension:"height",primaryAxisCoord:"x",secondaryAxisCoord:"y"}:{primaryAxisDimension:"height",secondaryAxisDimension:"width",primaryAxisCoord:"y",secondaryAxisCoord:"x"}}applyPosition(r){return this.layout?.get(r.id)??{}}computeLayout(r){const n=En(r,Wx(i=>i[this.primaryAxisCoord])),o=this.getLayoutRect(n),a=this.getLayers(n);this.layout=this.buildLayout(a,o,n)}getLayoutRect(r){const n=Math.min(...r.map(s=>s.x)),o=Math.min(...r.map(s=>s.y)),a=Math.max(...r.map(s=>s.x+s.width)),i=Math.max(...r.map(s=>s.y+s.height));return{x:n,y:o,width:a-n,height:i-o}}getLayers(r){const n=[];let o=0,a=null;for(let i of r)if(a&&i[this.primaryAxisCoord]i.nodes.sort((s,l)=>s[this.secondaryAxisCoord]-l[this.secondaryAxisCoord])),n}buildLayout(r,n,o){const a=new Map(o.map(b=>[b.id,b])),i=[],s=r.reduce((b,x)=>b+x.primaryAxisSize,0),l=r.length>1?(n[this.primaryAxisDimension]-s)/(r.length-1):0,c=r.reduce((b,x,w)=>r[b].occupiedSpaceb+x.primaryAxisSize+l,n[this.primaryAxisCoord]),h=this.buildLayerLayout(d,n,u,a,null);d.layout=h,i.push(...h.nodePositions);let f=u+d.primaryAxisSize+l,g=d;for(let b=c+1;b=0;b--){const x=r[b];f-=x.primaryAxisSize+l,x.layout=this.buildLayerLayout(x,n,f,a,g),i.push(...x.layout.nodePositions),g=x.layout.refLayer??x}return new Map(i)}buildLayerLayout(r,n,o,a,i){let s=this.scoreLayout(this.spaceAround(r,n,o),a);if(r.nodes.length!=1){const l=this.scoreLayout(this.spaceBetween(r,n,o),a);s=l[0]=r.nodes.length){const l=this.scoreLayout(this.placeInGaps(r,o,i),a);s=l[0]=r.nodes.length){const l=this.scoreLayout(this.placeInCells(r,o,i),a);s=l[0]c[this.secondaryAxisCoord]))s.set(l.id,{[this.secondaryAxisCoord]:i,[this.primaryAxisCoord]:o}),i+=l[this.secondaryAxisDimension]+a;return{nodePositions:s,refLayer:null}}placeInGaps(r,n,o){const a=new Map,i=r.nodes,s=this.getGapsPositions(o);let l=0;for(let c=0,d=i[c];c{const i=n.get(o);return at(i,`Could not find original rect for node ${o}`),[Gq(i,["x","y"]),a]}),Sn(([o,a])=>Math.abs(o[this.secondaryAxisCoord]-a[this.secondaryAxisCoord])),Ux((o,a)=>o+a,0)),r]}getGapsPositions(r){const n=[],{layout:o,nodes:a}=r;at(o,"Layout of the layer must be computed before calling getGapsPositions");for(let i=1;iMath.min(...r.map(n=>n.x)),(r,n)=>Math.floor(r),"x");case"Top":return new Xm(r=>Math.min(...r.map(n=>n.y)),(r,n)=>Math.floor(r),"y");case"Right":return new Xm(r=>Math.max(...r.map(n=>n.x+n.width)),(r,n)=>Math.floor(r-n.width),"x");case"Bottom":return new Xm(r=>Math.max(...r.map(n=>n.y+n.height)),(r,n)=>Math.floor(r-n.height),"y");case"Center":return new Xm(r=>Math.min(...r.map(n=>n.x+n.width/2)),(r,n)=>Math.floor(r-n.width/2),"x");case"Middle":return new Xm(r=>Math.min(...r.map(n=>n.y+n.height/2)),(r,n)=>Math.floor(r-n.height/2),"y")}}function zre(e){const{width:r,height:n}=ao(e);return{...e.internals.positionAbsolute,id:e.id,width:r,height:n}}function Pet(e){switch(e){case"Left":case"Right":case"Top":case"Bottom":case"Center":case"Middle":return $et(e);case"Column":case"Row":return new Det(e);default:Zi(e)}}function Ire(e,r){if(e._type==="dynamic")try{if(r??=e.variant,r==="sequence")return e.sequenceLayout.bounds}catch{}return e.bounds}function Met({points:e,controlPoints:r,labelBBox:n}){let o=1/0,a=1/0,i=-1/0,s=-1/0;for(const l of e)o=Math.min(o,l[0]),a=Math.min(a,l[1]),i=Math.max(i,l[0]),s=Math.max(s,l[1]);if(r)for(const l of r)o=Math.min(o,l.x),a=Math.min(a,l.y),i=Math.max(i,l.x),s=Math.max(s,l.y);return n&&(o=Math.min(o,n.x),a=Math.min(a,n.y),i=Math.max(i,n.x+n.width),s=Math.max(s,n.y+n.height)),{x:o,y:a,width:i-o,height:s-a}}function zet({nodes:e,edges:r}){return il.expand(il.merge(...e,...r.map(Met)),10)}function gR(e){const{view:{drifts:r,_layout:n,...o},xynodes:a,xyedges:i,xystore:s}=e,{nodeLookup:l}=s.getState(),c=new Set,d=Fq(a,g=>g.data.id),u=Fq(i,g=>g.data.id),h=Sn(o.nodes,g=>{const b=d[g.id];if(!b)return g;const x=l.get(b.id),w=ao(x);return!wJ(x.internals.positionAbsolute,g)||g.width!==w.width||g.height!==w.height||g.shape!==b.data.shape||g.color!==b.data.color||g.style.border!==b.data.style.border||g.style.opacity!==b.data.style.opacity?(c.add(b.id),{...g,shape:b.data.shape,color:b.data.color,style:{...g.style,...b.data.style},x:Math.floor(x.internals.positionAbsolute.x),y:Math.floor(x.internals.positionAbsolute.y),width:Math.ceil(w.width),height:Math.ceil(w.height)}):g}),f=Sn(o.edges,g=>{const b=u[g.id];if(!b)return g;const x=b.data;let w=x.controlPoints??[];const k=c.has(b.source)||c.has(b.target);w.length===0&&k&&(w=jw(x.points));const C={...Ed(g,["controlPoints"]),points:x.points};return x.labelXY&&x.labelBBox&&(C.labelBBox={...x.labelBBox,...x.labelXY}),x.labelBBox&&(C.labelBBox??=x.labelBBox),bo(w,1)&&(C.controlPoints=w),C});return{op:"save-view-snapshot",layout:{...o,bounds:zet({nodes:h,edges:f}),nodes:h,edges:f}}}function Ore(e,r){return r.map(n=>{const o=e.find(a=>a.id===n.id);if(o&&o.type===n.type&&o.source===n.source&&o.target===n.target){const a=lt(o.data,n.data);return a&<(o.hidden??!1,n.hidden??!1)&<(o.selected??!1,n.selected??!1)&<(o.animated??!1,n.animated??!1)&<(o.sourceHandle??null,n.sourceHandle??null)&<(o.targetHandle??null,n.targetHandle??null)&<(o.zIndex??0,n.zIndex??0)&<(o.label??null,n.label??null)?o:{...Ed(o,["hidden","zIndex"]),...n,data:a?o.data:n.data}}return n})}function jre(e,r){return Fx(r)?Ore(e,r):(r=e,n=>Ore(n,r))}function Lre(e,r){return r.map(n=>{const o=e.find(a=>a.id===n.id);if(o&<(o.type,n.type)){const a=lt(o.data,n.data),{width:i,height:s}=ao(o);return a&<(i,n.initialWidth)&<(s,n.initialHeight)&<(o.parentId??null,n.parentId??null)&<(o.hidden??!1,n.hidden??!1)&<(o.zIndex??0,n.zIndex??0)&<(o.position,n.position)?o:{...Ed(o,["measured","parentId","hidden","zIndex"]),...n,width:n.initialWidth,height:n.initialHeight,data:a?o.data:n.data}}return n})}function yR(e,r){return Fx(r)?Lre(e,r):(r=e,n=>Lre(n,r))}const bR={top:"40px",bottom:"22px",left:"22px",right:"22px"};function Bre(e){const r=[],n=[],o=new Map,a=J8.from(e.nodes.reduce((l,c)=>(o.set(c.id,c),c.parent||l.push({node:c,parent:null}),l),[])),i=l=>bt(o.get(l),`Node not found: ${l}`);let s;for(;s=a.dequeue();){const{node:l,parent:c}=s,d=bo(l.children,1)||l.kind==V1;if(d)for(const x of l.children)a.enqueue({node:i(x),parent:l});const u={x:l.x,y:l.y};c&&(u.x-=c.x,u.y-=c.y);const h=l.id,f={id:h,draggable:!1,selectable:!0,focusable:!0,position:u,zIndex:d?_l.Compound:_l.Element,style:{width:l.width,height:l.height},initialWidth:l.width,initialHeight:l.height,...c&&{parentId:c.id}},g=l.modelRef??null,b={navigateTo:l.navigateTo??null};switch(!0){case l.kind===Xw.Empty:{r.push({...f,type:"empty",data:{column:l.column}});break}case(d&&!!g):{r.push({...f,type:"compound",data:{id:h,column:l.column,title:l.title,color:l.color,shape:l.shape,style:l.style,depth:l.depth??0,icon:l.icon??"none",ports:l.ports,existsInCurrentView:l.existsInCurrentView,fqn:g,...b}});break}default:at(g,"Element should have either modelRef or deploymentRef"),r.push({...f,type:"element",data:{id:h,column:l.column,fqn:g,title:l.title,technology:l.technology,description:l.description,height:l.height,width:l.width,color:l.color,shape:l.shape,icon:l.icon??"none",ports:l.ports,style:l.style,existsInCurrentView:l.existsInCurrentView,tags:l.tags,...b}})}}for(const l of e.edges){const c=l.source,d=l.target,u=l.id;if(!bo(l.points,2)){console.error("edge should have at least 2 points",l);continue}if(!bo(l.relations,1)){console.error("edge should have at least 1 relation",l);continue}n.push({id:u,type:"relationship",source:c,target:d,sourceHandle:l.sourceHandle,targetHandle:l.targetHandle,data:{sourceFqn:l.sourceFqn,targetFqn:l.targetFqn,relations:l.relations,color:l.color??"gray",label:l.label,navigateTo:l.navigateTo??null,line:l.line??"dashed",existsInCurrentView:l.existsInCurrentView},interactionWidth:20})}return{xynodes:r,xyedges:n}}const Fre=e=>e.find(r=>r.data.column==="subjects"&&z7(r.parentId)),Iet=wBe(async({input:e,self:r,signal:n})=>{const{subjectId:o,navigateFromNode:a,xyflow:i,xystore:s,update:l}=e;let{nodes:c,width:d,height:u}=s.getState();const h=Bre(l),f=()=>{const{nodes:P,edges:O}=s.getState();return{xynodes:yR(P,h.xynodes),xyedges:jre(O,h.xyedges)}},g=bt(r._parent);let b=i.getZoom();const x=Math.max(b,1),w=vd(l.bounds,d,u,_s,x,bR),k=h.xynodes.find(P=>P.type!=="empty"&&P.data.column==="subjects"&&P.data.fqn===o)??Fre(h.xynodes),C=Fre(c),_=a?c.find(P=>P.id===a):c.find(P=>P.type!=="empty"&&P.data.column!=="subjects"&&P.data.fqn===o);if(!k||!_||k.type==="empty"||!C||k.data.fqn===C.data.fqn)return await i.setViewport(w),f();const T={x:k.position.x+(k.initialWidth??0)/2,y:k.position.y+(k.initialHeight??0)/2},A=i.getInternalNode(C.id),R=Ty(A),D=new Set;if(c.forEach(P=>{if(P.id!==_.id){if(P.data.column==="subjects"){D.add(P.id);return}P.parentId&&(P.parentId===_.id||D.has(P.parentId))&&D.add(P.id)}}),c=yR(c,c.flatMap(P=>D.has(P.id)?[]:P.id!==_.id?{...P,data:{...P.data,dimmed:P.data.column==="subjects"?"immediate":!0}}:{...Ed(P,["parentId"]),position:{x:R.x-P.initialWidth/2,y:R.y-P.initialHeight/2},zIndex:_l.Max,hidden:!1,data:{...P.data,dimmed:!1}})),g.send({type:"update.xydata",xynodes:c,xyedges:[]}),await qB(120),h.xynodes=h.xynodes.map(cr.setDimmed(!1)),n.aborted)return f();const N=300;return i.setCenter(R.x,R.y,{zoom:b,duration:N,interpolate:"smooth"}),await qB(N),await i.setCenter(T.x,T.y,{zoom:b}),f()}),Cc=wl({actors:{layouter:Iet},guards:{hasViewId:({context:e})=>e.viewId!==null,isReady:({context:e})=>e.xyflow!==null&&e.xystore!==null&&e.layouted!==null,anotherSubject:({context:e,event:r})=>r.type==="update.view"?e.layouted?.subject!==r.layouted.subject:!1}}),Hre=()=>Cc.assign(({event:e})=>(Tt(e,"xyflow.init"),{xyflow:e.instance,xystore:e.store})),Vre=()=>Cc.assign(({event:e})=>(Tt(e,"update.view"),{layouted:e.layouted,...Bre(e.layouted)})),Oet=()=>Cc.createAction(({context:e})=>{at(e.xystore,"xystore is not initialized");const{domNode:r,updateNodeInternals:n}=e.xystore.getState(),o=new Set(e.xyedges.flatMap(s=>[s.source,s.target]));if(o.size===0||!r)return;const a=new Map,i=r.querySelectorAll(".react-flow__node");for(const s of i){const l=s.getAttribute("data-id");l&&o.has(l)&&a.set(l,{id:l,nodeElement:s,force:!0})}n(a,{triggerFitView:!1})}),vR=e=>Cc.createAction(({context:r,event:n})=>{e??=n.type==="fitDiagram"?n:{};let{duration:o,bounds:a}=e??{};o??=450;const{xyflow:i,xystore:s}=r;at(i,"xyflow is not initialized"),at(s,"xystore is not initialized"),a??=r.layouted?.bounds;const l=Math.max(i.getZoom(),1);if(a){const{width:c,height:d}=s.getState(),u=vd(a,c,d,_s,l,bR);i.setViewport(u,o>0?{duration:o,interpolate:"smooth"}:void 0).catch(console.error)}else i.fitView({minZoom:_s,maxZoom:l,padding:bR,...o>0&&{duration:o,interpolate:"smooth"}}).catch(console.error)}),jet=()=>Cc.assign(({context:e,event:r})=>(Tt(r,"xyflow.applyNodeChanges"),{xynodes:$x(r.changes,e.xynodes)})),Let=()=>Cc.assign(({context:e,event:r})=>(Tt(r,"xyflow.applyEdgeChanges"),{xyedges:Px(r.changes,e.xyedges)})),qre=()=>Cc.enqueueActions(({system:e,event:r})=>{if(r.type!=="xyflow.edgeClick")return;const n=jn(e).diagramActorRef,o=r.edge.data.relations;bo(o,1)&&n.send({type:"open.source",relation:o[0]})}),Ure=()=>Cc.assign({xyflow:null,layouted:null,xystore:null,xyedges:[],xynodes:[]}),Bet=Cc.createMachine({id:"relationships-browser",context:({input:e})=>({subject:e.subject,viewId:e.viewId,scope:e.viewId?e.scope:"global",closeable:e.closeable??!0,enableSelectSubject:e.enableSelectSubject??!0,enableChangeScope:e.enableChangeScope??!0,xyflow:null,xystore:null,layouted:null,navigateFromNode:null,xynodes:[],xyedges:[]}),initial:"initializing",on:{"xyflow.applyNodeChanges":{actions:jet()},"xyflow.applyEdgeChanges":{actions:Let()}},states:{initializing:{on:{"xyflow.init":{actions:Hre(),target:"isReady"},"update.view":{actions:Vre(),target:"isReady"},stop:"closed",close:"closed"}},isReady:{always:[{guard:"isReady",actions:[vR({duration:0}),fa({type:"xyflow.updateNodeInternals"},{delay:150})],target:"active"},{target:"initializing"}]},active:{initial:"idle",tags:["active"],on:{"xyflow.nodeClick":{actions:Mp(({event:e,enqueue:r})=>{if("fqn"in e.node.data){const n=e.node.data.fqn;r.raise({type:"navigate.to",subject:n,fromNode:e.node.id})}})},"xyflow.edgeClick":[{guard:"hasViewId",actions:Mp(({event:e,context:r,system:n,enqueue:o})=>{e.edge.selected||e.edge.data.relations.length>1?o.sendTo(jn(n).overlaysActorRef,{type:"open.relationshipDetails",viewId:r.viewId,source:e.edge.data.sourceFqn,target:e.edge.data.targetFqn}):o(qre())})},{actions:qre()}],"navigate.to":{actions:[Zt({subject:({event:e})=>e.subject,viewId:({event:e,context:r})=>e.viewId??r.viewId??null,navigateFromNode:({event:e})=>e.fromNode??null})]},"xyflow.paneDblClick":{actions:vR()},"update.view":{actions:Vre(),target:".layouting"},"change.scope":{actions:Zt({scope:({event:e})=>e.scope})},"xyflow.updateNodeInternals":{actions:Oet()},fitDiagram:{actions:vR()},"xyflow.resized":{actions:[wi("fitDiagram"),fa({type:"fitDiagram"},{id:"fitDiagram",delay:300})]},"xyflow.init":{actions:Hre()},"xyflow.unmount":{target:"initializing"},close:"closed"},states:{idle:{on:{"xyflow.edgeMouseEnter":{actions:[Zt({xyedges:({context:e,event:r})=>{const n=e.xyedges.some(o=>o.data.dimmed!==!1||o.selected);return e.xyedges.map(o=>o.id===r.edge.id?cr.setData(o,{hovered:!0,dimmed:!1}):n&&!o.selected?cr.setDimmed(o,"immediate"):o)}}),wi("undim.edges"),wi("dim.nonhovered.edges"),fa({type:"dim.nonhovered.edges"},{id:"dim.nonhovered.edges",delay:200})]},"xyflow.edgeMouseLeave":{actions:[Zt({xyedges:({context:e,event:r})=>e.xyedges.map(n=>n.id===r.edge.id?cr.setHovered(n,!1):n)}),wi("dim.nonhovered.edges"),fa({type:"undim.edges"},{id:"undim.edges",delay:400})]},"dim.nonhovered.edges":{actions:Zt({xyedges:({context:e})=>e.xyedges.map(r=>r.data.hovered?r:cr.setDimmed(r,r.data.dimmed==="immediate"?"immediate":!0))})},"undim.edges":{actions:Zt({xyedges:({context:e})=>e.xyedges.map(cr.setDimmed(!1))})},"xyflow.selectionChange":{actions:Mp(({event:e,context:r,enqueue:n})=>{e.edges.length===0&&r.xyedges.some(o=>o.data.dimmed)&&!r.xyedges.some(o=>o.data.hovered)&&n.raise({type:"undim.edges"})})}}},layouting:{invoke:{id:"layouter",src:"layouter",input:({context:e})=>({subjectId:e.subject,navigateFromNode:e.navigateFromNode,xyflow:bt(e.xyflow),xystore:bt(e.xystore),update:bt(e.layouted)}),onDone:{target:"idle",actions:Mp(({enqueue:e,event:r})=>{e.assign({xynodes:r.output.xynodes,xyedges:r.output.xyedges,navigateFromNode:null}),e.raise({type:"fitDiagram",duration:200},{id:"fitDiagram",delay:50});for(let n=1;n<8;n++)e.raise({type:"xyflow.updateNodeInternals"},{delay:120+n*75})})}},on:{"update.xydata":{actions:Zt({xynodes:({event:e})=>e.xynodes,xyedges:({event:e})=>e.xyedges})},"xyflow.applyEdgeChanges":{},"xyflow.applyNodeChanges":{}}}}},closed:{id:"closed",type:"final",entry:Ure()}},exit:Ure()}),Wre=Bet,Fet=wl({actors:{relationshipsBrowserLogic:Wre}}).createMachine({id:"element-details",context:({input:e})=>({...e,initiatedFrom:{node:e.initiatedFrom?.node??null,clientRect:e.initiatedFrom?.clientRect??null}}),initial:"active",states:{active:{entry:aw("relationshipsBrowserLogic",{id:({self:e})=>`${e.id}-relationships`,input:({context:e})=>({subject:e.subject,viewId:e.currentView.id,scope:"view",enableSelectSubject:!1,enableChangeScope:!0,closeable:!1})}),exit:[fw(({self:e})=>`${e.id}-relationships`,{type:"close"}),J0(({self:e})=>`${e.id}-relationships`)],on:{"change.subject":{actions:Zt({subject:({event:e})=>e.subject})},close:"closed"}},closed:{id:"closed",type:"final"}}}),Het=Fet;function Vet(e){const r=[],n=[],o=new Map,a=J8.from(e.nodes.reduce((l,c)=>(o.set(c.id,c),c.parent||l.push({node:c,parent:null}),l),[])),i=l=>bt(o.get(l),`Node not found: ${l}`);let s;for(;s=a.dequeue();){const{node:l,parent:c}=s,d=bo(l.children,1);if(d)for(const x of l.children)a.enqueue({node:i(x),parent:l});const u={x:l.x,y:l.y};c&&(u.x-=c.x,u.y-=c.y);const h=l.id,f={id:h,draggable:!1,selectable:!0,focusable:!0,deletable:!1,position:u,zIndex:d?_l.Compound:_l.Element,style:{width:l.width,height:l.height},initialWidth:l.width,initialHeight:l.height,...c&&{parentId:c.id}},g=l.modelRef,b={navigateTo:l.navigateTo??null};switch(!0){case d:{r.push({...f,type:"compound",data:{id:h,column:l.column,title:l.title,color:l.color,style:l.style,depth:l.depth??0,icon:l.icon??"none",ports:l.ports,fqn:g,...b}});break}default:r.push({...f,type:"element",data:{id:h,column:l.column,fqn:g,title:l.title,technology:l.technology,description:or.from(l.description),height:l.height,width:l.width,color:l.color,shape:l.shape,icon:l.icon??"none",ports:l.ports,style:l.style,tags:l.tags,...b}})}}for(const{source:l,target:c,relationId:d,label:u,technology:h,description:f,navigateTo:g=null,color:b="gray",line:x="dashed",...w}of e.edges){const k=w.id;n.push({id:k,type:"relationship",source:l,target:c,sourceHandle:w.sourceHandle,targetHandle:w.targetHandle,deletable:!1,data:{relationId:d,label:u,color:b,navigateTo:g,line:x,description:or.from(f),...h&&{technology:h}}})}return{xynodes:r,xyedges:n,bounds:e.bounds}}function Yre(e){return"edgeId"in e?(at(Hx(e.edgeId),"edgeId is required"),{edgeId:e.edgeId}):{source:e.source,target:e.target}}const Gre={x:"22px",y:"22px"},qet=wl({actions:{"xyflow:fitDiagram":({context:e},r)=>{let{duration:n,bounds:o}=r??{};n??=450;const{xyflow:a,xystore:i}=e;at(a,"xyflow is not initialized"),at(i,"xystore is not initialized"),o??=e.bounds;const s=Math.max(a.getZoom(),1);if(o){const{width:l,height:c}=i.getState(),d=vd(o,l,c,_s,s,Gre);a.setViewport(d,n>0?{duration:n}:void 0).catch(console.error)}else a.fitView({minZoom:_s,maxZoom:s,padding:Gre,...n>0&&{duration:n,interpolate:"smooth"}}).catch(console.error)},"xyflow:updateNodeInternals":({context:e})=>{at(e.xystore,"xystore is not initialized");const{domNode:r,updateNodeInternals:n}=e.xystore.getState(),o=new Set(e.xyedges.flatMap(i=>[i.source,i.target]));if(o.size===0||!r)return;const a=new Map;for(const i of o){const s=r.querySelector(`.react-flow__node[data-id="${i}"]`);s&&a.set(i,{id:i,nodeElement:s,force:!0})}n(a,{triggerFitView:!1})},updateXYFlow:Zt(({context:e,event:r})=>{Tt(r,"xyflow.init");let n=e.initialized;return n.xyflow||(n={...n,xyflow:!0}),{initialized:n,xyflow:r.instance,xystore:r.store}}),updateLayoutData:Zt(({context:e,event:r})=>{Tt(r,"update.layoutData");const{xynodes:n,xyedges:o,bounds:a}=Vet(r.data);let i=e.initialized;return i.xydata||(i={...i,xydata:!0}),{initialized:i,xynodes:yR(e.xynodes,n),xyedges:jre(e.xyedges,o),bounds:an(e.bounds,a)?e.bounds:a}}),"open relationship source":Mp(({system:e,event:r})=>{if(r.type!=="xyflow.edgeClick")return;const n=jn(e).diagramActorRef,o=r.edge.data.relationId;o&&n.send({type:"open.source",relation:o})})},guards:{isReady:({context:e})=>e.initialized.xydata&&e.initialized.xyflow,"enable: navigate.to":()=>!0}}).createMachine({initial:"initializing",context:({input:e})=>({subject:Yre(e),viewId:e.viewId,bounds:{x:0,y:0,width:200,height:200},initialized:{xydata:!1,xyflow:!1},xyflow:null,xystore:null,xynodes:[],xyedges:[]}),states:{initializing:{on:{"xyflow.init":{actions:"updateXYFlow",target:"isReady"},"update.layoutData":{actions:"updateLayoutData",target:"isReady"},close:{target:"closed"}}},isReady:{always:[{guard:"isReady",actions:[{type:"xyflow:fitDiagram",params:{duration:0}},fa({type:"xyflow.updateNodeInternals"},{delay:50})],target:"ready"},{target:"initializing"}]},ready:{on:{"xyflow.edgeMouseEnter":{actions:[Zt({xyedges:({context:e,event:r})=>{const n=e.xyedges.some(o=>o.data.dimmed===!0||o.data.dimmed==="immediate");return e.xyedges.map(o=>o.id===r.edge.id?cr.setData(o,{hovered:!0,dimmed:!1}):n&&!o.selected?cr.setDimmed(o,"immediate"):o)}}),wi("undim.edges"),wi("dim.nonhovered.edges"),fa({type:"dim.nonhovered.edges"},{id:"dim.nonhovered.edges",delay:100})]},"xyflow.edgeMouseLeave":{actions:[Zt({xyedges:({context:e,event:r})=>e.xyedges.map(n=>n.id===r.edge.id?cr.setHovered(n,!1):n)}),wi("dim.nonhovered.edges"),fa({type:"undim.edges"},{id:"undim.edges",delay:400})]},"dim.nonhovered.edges":{actions:Zt({xyedges:({context:e})=>e.xyedges.map(r=>cr.setDimmed(r,r.data.hovered!==!0))})},"undim.edges":{actions:Zt({xyedges:({context:e})=>e.xyedges.some(r=>r.selected===!0)?e.xyedges.map(r=>cr.setDimmed(r,r.selected!==!0?r.data.dimmed||"immediate":!1)):e.xyedges.map(cr.setDimmed(!1))})},"xyflow.selectionChange":{actions:Mp(({event:e,context:r,enqueue:n})=>{e.edges.length===0&&r.xyedges.some(o=>o.data.dimmed)&&!r.xyedges.some(o=>o.data.hovered)&&n.raise({type:"undim.edges"})})},"update.layoutData":{actions:["updateLayoutData",wi("fitDiagram"),fa({type:"fitDiagram",duration:0},{id:"fitDiagram",delay:50}),fa({type:"xyflow.updateNodeInternals"},{delay:75})]},"xyflow.init":{actions:"updateXYFlow"},"xyflow.applyNodeChanges":{actions:Zt({xynodes:({context:e,event:r})=>$x(r.changes,e.xynodes)})},"xyflow.applyEdgeChanges":{actions:Zt({xyedges:({context:e,event:r})=>Px(r.changes,e.xyedges)})},"xyflow.paneDblClick":{actions:"xyflow:fitDiagram"},"xyflow.edgeClick":{actions:"open relationship source"},"navigate.to":{actions:Zt({subject:({event:e})=>Yre(e.params),viewId:({context:e,event:r})=>r.params.viewId??e.viewId})},close:{target:"closed"}},exit:Zt({xyedges:[],xynodes:[],initialized:{xydata:!1,xyflow:!1},xyflow:null,xystore:null})},closed:{type:"final"}},on:{fitDiagram:{actions:{type:"xyflow:fitDiagram",params:mp("event")}},"xyflow.resized":{actions:[wi("fitDiagram"),fa({type:"fitDiagram"},{id:"fitDiagram",delay:200})]},"xyflow.updateNodeInternals":{actions:"xyflow:updateNodeInternals"}}}),Uet=qet,Wet=WS(({sendBack:e})=>{const r=t2([["Escape",n=>{n.stopPropagation(),e({type:"close"})},{preventDefault:!0}]]);return document.body.addEventListener("keydown",r,{capture:!0}),()=>{document.body.removeEventListener("keydown",r,{capture:!0})}}),Tc=wl({actors:{relationshipDetails:Uet,elementDetails:Het,relationshipsBrowser:Wre,hotkey:Wet},guards:{"has overlays?":({context:e})=>e.overlays.length>0,"close specific overlay?":({context:e,event:r})=>(Tt(r,"close"),Hx(r.actorId)&&e.overlays.some(n=>n.id===r.actorId)),"last: is relationshipDetails?":({context:e})=>lc(e.overlays)?.type==="relationshipDetails","last: is relationshipsBrowser?":({context:e})=>lc(e.overlays)?.type==="relationshipsBrowser"}}),Yet=()=>Tc.enqueueActions(({context:e,enqueue:r})=>{if(e.overlays.length===0)return;const n=lc(e.overlays)?.id;n&&(r.sendTo(n,{type:"close"}),r.stopChild(n),r.assign({overlays:e.overlays.filter(o=>o.id!==n)}))}),Get=()=>Tc.enqueueActions(({context:e,enqueue:r,event:n})=>{Tt(n,"close");const o=n.actorId;if(!Hx(o))return;const a=e.overlays.find(i=>i.id===o)?.id;a&&(r.sendTo(a,{type:"close"}),r.stopChild(a),r.assign({overlays:e.overlays.filter(i=>i.id!==a)}))}),Xre=()=>Tc.enqueueActions(({context:e,enqueue:r})=>{for(const{id:n}of WNe(e.overlays))r.sendTo(n,{type:"close"}),r.stopChild(n);r.assign({overlays:[]})}),Xet=()=>Tc.enqueueActions(({context:e,enqueue:r,event:n})=>{if(Tt(n,"open.elementDetails"),e.overlays.some(a=>a.type==="elementDetails"&&a.subject===n.subject))return;const o=`elementDetails-${e.seq}`;r.spawnChild("elementDetails",{id:o,input:n}),r.assign({seq:e.seq+1,overlays:[...e.overlays,{type:"elementDetails",id:o,subject:n.subject}]})}),Ket=()=>Tc.enqueueActions(({context:e,enqueue:r,event:n})=>{Tt(n,"open.relationshipDetails");const o=lc(e.overlays);if(o?.type==="relationshipDetails"){r.sendTo(o.id,{...n,type:"navigate.to"});return}const a=`relationshipDetails-${e.seq}`;r.spawnChild("relationshipDetails",{id:a,input:n}),r.assign({seq:e.seq+1,overlays:[...e.overlays,{type:"relationshipDetails",id:a}]})}),Zet=()=>Tc.enqueueActions(({context:e,enqueue:r,event:n})=>{Tt(n,"open.relationshipsBrowser");const o=lc(e.overlays);if(o?.type==="relationshipsBrowser"){r.sendTo(o.id,{type:"navigate.to",subject:n.subject,viewId:n.viewId});return}const a=`relationshipsBrowser-${e.seq}`;r.spawnChild("relationshipsBrowser",{id:a,input:n}),r.assign({seq:e.seq+1,overlays:[...e.overlays,{type:"relationshipsBrowser",id:a,subject:n.subject}]})}),Qet=()=>Tc.spawnChild("hotkey",{id:"hotkey"}),N4=()=>Tc.stopChild("hotkey"),Jet=Tc.createMachine({id:"overlays",context:()=>({seq:1,overlays:[]}),initial:"idle",on:{"open.elementDetails":{actions:Xet(),target:".active",reenter:!1},"open.relationshipDetails":{actions:Ket(),target:".active",reenter:!1},"open.relationshipsBrowser":{actions:Zet(),target:".active",reenter:!1}},states:{idle:{},active:{entry:Qet(),exit:N4(),on:{close:[{guard:"close specific overlay?",actions:Get(),target:"closing"},{actions:Yet(),target:"closing"}],"close.all":{actions:[Xre(),N4()],target:"idle"}}},closing:{always:[{guard:"has overlays?",target:"active"},{actions:N4(),target:"idle"}]}},exit:[N4(),Xre()]}),ett=Jet,ttt=wl({actions:{"change searchValue":Zt({searchValue:({event:e,context:r})=>(Tt(e,["change.search","open"]),e.search??r.searchValue)}),"reset pickViewFor":Zt({pickViewFor:()=>null})}}).createMachine({id:"search",context:{openedWithSearch:null,searchValue:"",pickViewFor:null},initial:"inactive",on:{close:{target:".inactive",actions:"reset pickViewFor"}},states:{inactive:{on:{open:{target:"opened",actions:[Zt({openedWithSearch:({event:e})=>e.search??null,searchValue:({event:e,context:r})=>e.search??r.searchValue})]}}},opened:{on:{open:{actions:"change searchValue"},"change.search":{actions:"change searchValue"},"pickview.open":{target:"pickView",actions:Zt({pickViewFor:({event:e})=>e.elementFqn})}}},pickView:{on:{"pickview.close":{target:"opened",actions:"reset pickViewFor"}}}}}),rtt=ttt,ntt=WS(({sendBack:e})=>{const r=t2([["Escape",o=>{o.stopPropagation(),console.log("Escape karsarsey pressed"),e({type:"key.esc"})},{preventDefault:!0}]]),n=t2([["ArrowLeft",o=>{o.stopPropagation(),e({type:"key.arrow.left"})},{preventDefault:!0}],["ArrowRight",o=>{o.stopPropagation(),e({type:"key.arrow.right"})},{preventDefault:!0}]]);return document.body.addEventListener("keydown",r),document.body.addEventListener("keydown",n,{capture:!0}),()=>{document.body.removeEventListener("keydown",r),document.body.removeEventListener("keydown",n,{capture:!0})}}),ott=WS(({sendBack:e})=>{const r=t2([["mod + z",n=>{console.log("Undo hotkey pressed"),n.stopPropagation(),e({type:"undo"})},{preventDefault:!0}]]);return document.body.addEventListener("keydown",r,{capture:!0}),()=>{document.body.removeEventListener("keydown",r,{capture:!0})}}),D4=function(e){return e.get("diagram")},Va=wl({delays:{timeout:2e3},guards:{"can undo":({context:e})=>e.history.length>0},actors:{undoHotKeyActorLogic:ott}}),att=Va.assign(({context:e})=>{const r=e.beforeEditing;if(!r)return{};const n=lc(e.history);return lt(n?.xyedges,r.xyedges)&<(n?.xynodes,r.xynodes)?{beforeEditing:null}:{beforeEditing:null,history:[...e.history,r]}}),itt=Va.assign(({context:e})=>e.history.length===0?{}:{history:e.history.slice(0,-1)}),Kre=Va.assign(({system:e,event:r})=>{Tt(r,"editing.start");const n=D4(e).getSnapshot().context;return{editing:r.subject,beforeEditing:{xynodes:Sn(n.xynodes,o=>({...o})),xyedges:Sn(n.xyedges,o=>({...o})),change:gR(n),view:n.view,synched:!1}}}),$4=Va.enqueueActions(({check:e,enqueue:r,self:n})=>{const o=e("can undo"),a=n.getSnapshot().children.undoHotKey;if(a&&!o){r.stopChild(a);return}!a&&o&&r.spawnChild("undoHotKeyActorLogic",{id:"undoHotKey"})}),Zre=Va.enqueueActions(({event:e,enqueue:r})=>{Tt(e,"editing.stop"),e.wasChanged&&(r.cancel("sync"),r(att),r.raise({type:"sync"},{id:"sync",delay:50})),r.assign({beforeEditing:null,editing:null})}),stt=Va.sendTo(({system:e})=>D4(e),({system:e})=>{const r=D4(e).getSnapshot().context;return{type:"emit.onChange",change:gR(r)}}),ltt=Va.assign(({context:e,event:r})=>(Tt(r,"synced"),{history:e.history.map(n=>({...n,synched:!0})),beforeEditing:e.beforeEditing?{...e.beforeEditing,synched:!0}:null})),Qre=Va.enqueueActions(({context:e,enqueue:r,system:n})=>{const o=lc(e.history);if(!o)return;r(itt),r($4);const a=D4(n);r.sendTo(a,{type:"update.view",view:o.view,xyedges:o.xyedges,xynodes:o.xynodes}),o.synched&&r.sendTo(a,{type:"emit.onChange",change:o.change})}),ctt=Va.createStateConfig({tags:"ready",entry:[Zt({beforeEditing:null,editing:null})],on:{sync:{target:"pending"},"editing.start":{actions:Kre,target:"editing"},undo:{guard:"can undo",actions:Qre}}}),dtt=Va.createStateConfig({on:{"editing.stop":{actions:[Zre,$4],target:"idle"},undo:{}}}),utt=Va.createStateConfig({tags:"pending",on:{sync:{target:"pending",reenter:!0},"editing.start":{target:"paused",actions:Kre},undo:{guard:"can undo",actions:Qre,target:"idle"}},after:{timeout:{target:"idle",actions:stt}}}),ptt=Va.createStateConfig({tags:"pending",on:{"editing.stop":{actions:[Zre,$4],target:"pending"},undo:{}}}),htt=Va.createMachine({initial:"idle",context:({input:e})=>({...e,history:[],beforeEditing:null,editing:null}),states:{idle:ctt,editing:dtt,pending:utt,paused:ptt,stopped:{entry:[Zt({beforeEditing:null,history:[]}),$4],type:"final"}},on:{cancel:{target:".idle"},synced:{actions:ltt,target:".idle"},stop:{target:".stopped"}}}),ftt=htt,P4=e=>(e.features.enableReadOnly||e.toggledFeatures.enableReadOnly===!0)&&(e.view._type!=="dynamic"||e.dynamicViewVariant!=="sequence"),mt=wl({actors:{syncManualLayoutActorLogic:ftt,hotkeyActorLogic:ntt,overlaysActorLogic:ett,searchActorLogic:rtt},guards:{isReady:({context:e})=>e.initialized.xydata&&e.initialized.xyflow,"enabled: FitView":({context:e})=>e.features.enableFitView,"enabled: FocusMode":({context:e})=>(e.toggledFeatures.enableFocusMode??e.features.enableFocusMode)===!0&&P4(e),"enabled: Readonly":({context:e})=>P4(e),"enabled: RelationshipDetails":({context:e})=>e.features.enableRelationshipDetails,"enabled: Search":({context:e})=>e.features.enableSearch,"enabled: ElementDetails":({context:e})=>e.features.enableElementDetails,"enabled: DynamicViewWalkthrough":({context:e})=>P4(e)&&e.features.enableDynamicViewWalkthrough,"not readonly":({context:e})=>!P4(e),"is dynamic view":({context:e})=>e.view._type==="dynamic","is another view":({context:e,event:r})=>{if(Tt(r,["update.view","navigate.to"]),r.type==="update.view")return e.view.id!==r.view.id;if(r.type==="navigate.to")return e.view.id!==r.viewId;Zi(r.type)},"click: node has modelFqn":({event:e})=>(Tt(e,"xyflow.nodeClick"),"modelFqn"in e.node.data),"click: selected node":({event:e})=>(Tt(e,"xyflow.nodeClick"),e.node.selected===!0),"click: same node":({context:e,event:r})=>(Tt(r,"xyflow.nodeClick"),e.lastClickedNode?.id===r.node.id),"click: focused node":({context:e,event:r})=>(Tt(r,"xyflow.nodeClick"),e.focusedNode===r.node.id),"click: node has connections":({context:e,event:r})=>(Tt(r,"xyflow.nodeClick"),e.xyedges.some(n=>n.source===r.node.id||n.target===r.node.id)),"click: selected edge":({event:e})=>(Tt(e,["xyflow.edgeClick","xyflow.edgeDoubleClick"]),e.edge.selected===!0||e.edge.data.active===!0)}});function Jre(e){switch(e.type){case"element":case"compound-element":case"seq-actor":return e.data.modelFqn;case"deployment":case"compound-deployment":return e.data.modelFqn??e.data.deploymentFqn;case"seq-parallel":case"view-group":return null;default:Zi(e)}}function ene(e,r){const n=e.lastOnNavigate?.fromNode,o=n&&e.xynodes.find(s=>s.id===n),a=o&&Jre(o),i=a&&r.xynodes.find(s=>Jre(s)===a);return{fromNode:o,toNode:i}}const mtt={navigateTo:()=>mt.emit(({context:e})=>({type:"navigateTo",viewId:bt(e.lastOnNavigate,"Invalid state, lastOnNavigate is null").toView}))},ko={fitDiagram:e=>mt.createAction(({context:r,event:n})=>{e??=n.type==="fitDiagram"?n:{};const{bounds:o=r.view.bounds,duration:a=450}=e,{width:i,height:s,panZoom:l,transform:c}=bt(r.xystore).getState(),d=Math.max(1,c[2]),u=vd(o,i,s,_s,d,r.fitViewPadding);u.x=Math.round(u.x),u.y=Math.round(u.y),l?.setViewport(u,a>0?{duration:a,interpolate:"smooth"}:void 0).catch(console.error)}),fitFocusedBounds:()=>mt.createAction(({context:e})=>{const r=!!e.activeWalkthrough&&e.dynamicViewVariant==="sequence",{bounds:n,duration:o=450}=r?UKe({context:e}):VKe({context:e}),{width:a,height:i,panZoom:s,transform:l}=bt(e.xystore).getState(),c=Math.max(1,l[2]),d=vd(n,a,i,_s,c,e.fitViewPadding);d.x=Math.round(d.x),d.y=Math.round(d.y),s?.setViewport(d,o>0?{duration:o,interpolate:"smooth"}:void 0)}),alignNodeFromToAfterNavigate:e=>mt.createAction(({context:r})=>{const n=bt(r.xyflow,"xyflow is not initialized"),o=n.getInternalNode(e.fromNode);if(!o)return;const a=n.flowToScreenPosition({x:o.internals.positionAbsolute.x,y:o.internals.positionAbsolute.y}),i=n.flowToScreenPosition(e.toPosition),s={x:Math.round(a.x-i.x),y:Math.round(a.y-i.y)};r.xystore.getState().panBy(s)}),setViewportCenter:e=>mt.createAction(({context:r,event:n})=>{let o;e?o=e:n.type==="update.view"?o=il.center(n.view.bounds):o=il.center(r.view.bounds),at(r.xyflow,"xyflow is not initialized");const a=r.xyflow.getZoom();r.xyflow.setCenter(Math.round(o.x),Math.round(o.y),{zoom:a})}),setViewport:e=>mt.createAction(({context:r})=>{const{viewport:n,duration:o=350}=e;r.xystore?.getState().panZoom?.setViewport(n,o>0?{duration:o,interpolate:"smooth"}:void 0)})},xR=()=>mt.assign(({context:e})=>({toggledFeatures:{...e.toggledFeatures,enableCompareWithLatest:!1},viewportOnAutoLayout:null,viewportOnManualLayout:null})),gtt=()=>mt.assign(({context:e,event:r})=>{if(Tt(r,"xyflow.edgeDoubleClick"),!r.edge.data.controlPoints)return{};const{nodeLookup:n}=e.xystore.getState();return{xyedges:e.xyedges.map(o=>{if(o.id===r.edge.id){const a=Pre(n,o),i=a[0];return{...o,data:{...o.data,controlPoints:a,labelBBox:o.data.labelBBox?{...o.data.labelBBox,...i}:null,labelXY:o.data.labelXY?i:null}}}return o})}}),ytt=()=>mt.enqueueActions(({event:e,enqueue:r})=>{Tt(e,"emit.onChange"),r.assign({viewportChangedManually:!0}),r.emit({type:"onChange",change:e.change})}),btt=()=>mt.enqueueActions(({event:e,system:r,context:n,enqueue:o})=>{if(!n.features.enableCompareWithLatest){console.warn("Layout type cannot be changed while CompareWithLatest feature is disabled");return}const a=n.view._layout;let i=a==="auto"?"manual":"auto";if(e.type==="emit.onLayoutTypeChange"&&(i=e.layoutType),a===i){console.warn("Ignoring layout type change event, layout type is already",a);return}if(n.toggledFeatures.enableCompareWithLatest===!0){if(a==="manual"&&i==="auto"){const l=jn(r).syncLayoutActorRef,c=l?.getSnapshot().value;l&&(c==="pending"||c==="paused")&&(o.sendTo(l,{type:"cancel"}),o.emit({type:"onChange",change:gR(n)}))}const s=n.viewport;a==="auto"&&o.assign({viewportOnAutoLayout:s}),a==="manual"&&o.assign({viewportOnManualLayout:s})}o.emit({type:"onLayoutTypeChange",layoutType:i})}),Gy=()=>mt.assign(({context:e,event:r})=>{Tt(r,"xyflow.nodeClick");const{lastClickedNode:n}=e;return!n||n.id!==r.node.id?{lastClickedNode:{id:r.node.id,clicks:1,timestamp:Date.now()}}:{lastClickedNode:{id:n.id,clicks:n.clicks+1,timestamp:Date.now()}}}),wR=()=>mt.assign(({event:e})=>{let r;switch(e.type){case"xyflow.nodeClick":r=e.node.data.id;break;case"focus.node":r=e.nodeId;break;default:throw new Error(`Unexpected event type: ${e.type} in action 'assign: focusedNode'`)}return{focusedNode:r}}),Xy=()=>mt.assign(()=>({lastClickedNode:null})),vtt=()=>mt.assign(({event:e})=>(Tt(e,"update.features"),{features:{...e.features}})),xtt=()=>mt.assign(({event:e})=>(Tt(e,"update.inputs"),{...e.inputs})),kR=()=>mt.assign(({context:e,event:r})=>(Tt(r,"update.view"),{..._et({context:e,event:r}),lastClickedNode:null})),M4=()=>mt.assign(Eet),z4=()=>mt.assign(({context:e})=>({xynodes:e.xynodes.map(cr.setDimmed(!1)),xyedges:e.xyedges.map(cr.setData({dimmed:!1,active:!1}))})),Ky=()=>mt.assign(Net),wtt=()=>mt.assign(({event:e})=>(Tt(e,"switch.dynamicViewVariant"),{dynamicViewVariant:e.variant})),ktt=e=>mt.assign(({context:r,event:n})=>{let o=e?.node;return o||(Tt(n,"xyflow.nodeMouseEnter"),o=n.node),{xynodes:r.xynodes.map(a=>a.id===o.id?cr.setHovered(a,!0):a)}}),_tt=e=>mt.assign(({context:r,event:n})=>{let o=e?.node;return o||(Tt(n,"xyflow.nodeMouseLeave"),o=n.node),{xynodes:r.xynodes.map(a=>a.id===o.id?cr.setHovered(a,!1):a)}}),Ett=()=>mt.emit(()=>({type:"walkthroughStopped"})),_R=()=>mt.emit(()=>({type:"paneClick"})),tne=e=>mt.emit(({event:r})=>e?{type:"openSource",params:e}:(Tt(r,"open.source"),{type:"openSource",params:r})),Stt=()=>mt.emit(({context:e})=>(at(e.xyflow,"XYFlow instance not found"),{type:"initialized",instance:e.xyflow})),Qp=()=>mt.emit(({context:e,event:r})=>(Tt(r,"xyflow.nodeClick"),{type:"nodeClick",node:bt(Hm(e,r.node.id),`Node ${r.node.id} not found in diagram`),xynode:r.node})),ER=()=>mt.emit(({context:e,event:r})=>(Tt(r,"xyflow.edgeClick"),{type:"edgeClick",edge:bt(UA(e,r.edge.id),`Edge ${r.edge.id} not found in diagram`),xyedge:r.edge})),Ctt=()=>mt.emit(({context:e})=>{const r=e.xyedges.find(n=>n.id===e.activeWalkthrough?.stepId);return at(r,"Invalid walkthrough state"),{type:"walkthroughStarted",edge:r}}),rne=()=>mt.emit(({context:e})=>{const r=e.xyedges.find(n=>n.id===e.activeWalkthrough?.stepId);return at(r,"Invalid walkthrough state"),{type:"walkthroughStep",edge:r}}),Ttt=e=>mt.createAction(({context:r,event:n})=>{let o;Tt(n,"layout.align"),o=n.mode;const a=bt(r.xystore,"xystore is not initialized"),{nodeLookup:i,parentLookup:s}=a.getState(),l=[...new Set(i.values().filter(h=>h.selected).map(h=>h.id)).difference(new Set(s.keys()))];if(!bo(l,2)){console.warn("At least 2 nodes must be selected to align");return}const c=Are(a,l),d=Pet(o),u=l.map(h=>({node:bt(i.get(h)),rect:bt(c.rects.get(h))}));d.computeLayout(u.map(({node:h})=>zre(h)));for(const{rect:h,node:f}of u)h.positionAbsolute={...h.positionAbsolute,...d.applyPosition(zre(f))};c.updateXYFlow()}),Att=()=>mt.assign(({context:e})=>{const{nodeLookup:r}=e.xystore.getState();return{xyedges:e.xyedges.map(n=>{if(!n.data.controlPoints)return n;const o=Pre(r,n),a=o[0];return{...n,data:{...n.data,controlPoints:o,labelBBox:n.data.labelBBox?{...n.data.labelBBox,x:a.x,y:a.y}:null,labelXY:n.data.labelXY?a:null}}})}}),Rtt=e=>mt.assign(({context:r,event:n})=>{e||(Tt(n,"notations.highlight"),e={...n});const o=e.notation,a=e.kind?[e.kind]:o.kinds;return{xynodes:r.xynodes.map(i=>{const s=Hm(r,i.id);return s&&s.notation===o.title&&s.shape===o.shape&&s.color===o.color&&a.includes(s.kind)?cr.setDimmed(i,!1):cr.setDimmed(i,"immediate")}),xyedges:r.xyedges.map(cr.setDimmed("immediate"))}}),Ntt=()=>mt.assign(({context:e,event:r})=>(Tt(r,"tag.highlight"),{xynodes:e.xynodes.map(n=>n.data.tags?.includes(r.tag)?cr.setDimmed(n,!1):cr.setDimmed(n,!0))})),Dtt=()=>mt.assign(({context:e,event:r})=>{Tt(r,"toggle.feature");const n=e.toggledFeatures[`enable${r.feature}`]??e.features[`enable${r.feature}`],o=r.forceValue??!n;return{toggledFeatures:{...e.toggledFeatures,[`enable${r.feature}`]:o}}}),nne=()=>mt.sendTo(({system:e})=>jn(e).searchActorRef,{type:"close"}),one=()=>mt.sendTo(({system:e})=>jn(e).overlaysActorRef,{type:"close.all"}),$tt=e=>e.features.enableReadOnly||e.toggledFeatures.enableReadOnly===!0,I4=()=>mt.enqueueActions(({enqueue:e,system:r})=>{const n=jn(r).syncLayoutActorRef;n&&e.stopChild(n)}),Zy=()=>mt.enqueueActions(({context:e,enqueue:r,system:n})=>{const o=jn(n).syncLayoutActorRef;if($tt(e)){o&&r.stopChild(o);return}o||r.spawnChild("syncManualLayoutActorLogic",{id:"syncLayout",systemId:"syncLayout",input:{viewId:e.view.id},syncSnapshot:!0})}),ane=(e="node")=>mt.sendTo(({system:r})=>jn(r).syncLayoutActorRef,{type:"editing.start",subject:e}),ine=(e=!0)=>mt.sendTo(({system:r})=>jn(r).syncLayoutActorRef,{type:"editing.stop",wasChanged:e}),sne=e=>"modelFqn"in e.data&&da(e.data.modelFqn),SR=e=>mt.enqueueActions(({context:r,event:n,enqueue:o,system:a})=>{let i=null,s,l;switch(!0){case n.type==="xyflow.nodeClick":{if(!sne(n.node)){console.warn("No modelFqn in clicked node data");return}l=n.node.data.modelFqn,s=n.node.data.id;break}case n.type==="open.elementDetails":{l=n.fqn,s=n.fromNode;break}default:{if(!r.lastClickedNode){console.warn("No last clicked node");return}s=r.lastClickedNode.id;const d=r.xynodes.find(u=>u.id===s);if(!d||!sne(d)){console.warn("No modelFqn in last clicked node");return}l=d.data.modelFqn;break}}const c=s?r.xystore.getState().nodeLookup.get(s):null;if(s&&c){const d=up(c),u=r.xyflow.getZoom(),h={...r.xyflow.flowToScreenPosition(d),width:d.width*u,height:d.height*u};i={node:s,clientRect:h}}o.sendTo(jn(a).overlaysActorRef,{type:"open.elementDetails",subject:l,currentView:r.view,...i&&{initiatedFrom:i}})}),O4=()=>mt.enqueueActions(({context:e,enqueue:r})=>{const n=e.focusedNode??e.lastClickedNode?.id;if(!n||!e.features.enableVscode)return;const o=Hm(e,n);o&&(o.deploymentRef?r.raise({type:"open.source",deployment:o.deploymentRef}):o.modelRef&&r.raise({type:"open.source",element:o.modelRef}))}),Ptt=()=>mt.enqueueActions(({enqueue:e,context:{features:r},system:n})=>{const o=r.enableElementDetails||r.enableRelationshipDetails||r.enableRelationshipBrowser,a=jn(n).overlaysActorRef;if(o&&!a){e.spawnChild("overlaysActorLogic",{id:"overlays",systemId:"overlays"});return}!o&&a&&(e.sendTo(a,{type:"close.all"}),e.stopChild("overlays"))}),Mtt=()=>mt.enqueueActions(({enqueue:e,context:{features:{enableSearch:r}},system:n})=>{const o=jn(n).searchActorRef;if(r&&!o){e.spawnChild("searchActorLogic",{id:"search",systemId:"search"});return}!r&&o&&(e.sendTo(o,{type:"close"}),e.stopChild("search"))}),ztt=()=>mt.enqueueActions(({enqueue:e,context:r,event:n})=>{Tt(n,"xyflow.edgeMouseEnter");let o=n.edge;e.assign({xyedges:r.xyedges.map(a=>a.id===n.edge.id?(o=cr.setHovered(a,!0),o):a)}),e.emit({type:"edgeMouseEnter",edge:o,event:n.event})}),Itt=()=>mt.enqueueActions(({enqueue:e,context:r,event:n})=>{Tt(n,"xyflow.edgeMouseLeave");let o=n.edge;e.assign({xyedges:r.xyedges.map(a=>a.id===n.edge.id?(o=cr.setHovered(a,!1),o):a)}),e.emit({type:"edgeMouseLeave",edge:o,event:n.event})}),Qy=()=>mt.cancel("fitDiagram"),Km=e=>mt.enqueueActions(({enqueue:r})=>{r.cancel("fitDiagram"),r.raise({type:"fitDiagram",..._d(e?.duration)?{duration:e.duration}:{}},{id:"fitDiagram",..._d(e?.delay)?{delay:e.delay}:{}})}),Ott=()=>mt.enqueueActions(({enqueue:e,event:r,check:n,context:o,system:a})=>{Tt(r,"update.view");const i=n("is another view");if(e(Qy()),i){e(I4()),e(one()),e(nne()),e.assign({focusedNode:null}),e(xR());const{fromNode:d,toNode:u}=ene(o,r);d&&u?(e(ko.alignNodeFromToAfterNavigate({fromNode:d.id,toPosition:{x:u.data.x,y:u.data.y}})),e(Km({delay:80}))):(e(ko.setViewportCenter()),e(Km({duration:200,delay:25}))),e(kR()),e(Zy());return}e(kR());const s=jn(a).syncLayoutActorRef;s&&e.sendTo(s,{type:"synced"});const l=r.view;if(o.toggledFeatures.enableCompareWithLatest===!0&&o.view._layout!==l._layout){if(l._layout==="auto"&&o.viewportOnAutoLayout){e(ko.setViewport({viewport:o.viewportOnAutoLayout,duration:0}));return}if(l._layout==="manual"&&o.viewportOnManualLayout){e(ko.setViewport({viewport:o.viewportOnManualLayout,duration:0}));return}}let c=!o.viewportChangedManually;c=c||l._type==="dynamic"&&o.view._type==="dynamic"&&l.variant!==o.view.variant,c=c||o.toggledFeatures.enableCompareWithLatest===!0&&!!l._layout&&o.view._layout!==l._layout,c&&(e(ko.setViewportCenter(il.center(l.bounds))),e(Km({delay:50})))});var Qo={},CR={},_t={},lne=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Zm={},cne;function TR(){if(cne)return Zm;cne=1,Object.defineProperty(Zm,"__esModule",{value:!0});function e(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof lne<"u")return lne}function r(){const a=e();if(a.__xstate__)return a.__xstate__}function n(a){if(typeof window>"u")return;const i=r();i&&i.register(a)}const o=a=>{if(typeof window>"u")return;const i=r();i&&i.register(a)};return Zm.devToolsAdapter=o,Zm.getGlobal=e,Zm.registerService=n,Zm}var dne;function j4(){if(dne)return _t;dne=1;var e=TR();class r{constructor(te){this._process=te,this._active=!1,this._current=null,this._last=null}start(){this._active=!0,this.flush()}clear(){this._current&&(this._current.next=null,this._last=this._current)}enqueue(te){const ae={value:te,next:null};if(this._current){this._last.next=ae,this._last=ae;return}this._current=ae,this._last=ae,this._active&&this.flush()}flush(){for(;this._current;){const te=this._current;this._process(te.value),this._current=te.next}this._last=null}}const n=".",o="",a="",i="#",s="*",l="xstate.init",c="xstate.error",d="xstate.stop";function u(ee,te){return{type:`xstate.after.${ee}.${te}`}}function h(ee,te){return{type:`xstate.done.state.${ee}`,output:te}}function f(ee,te){return{type:`xstate.done.actor.${ee}`,output:te,actorId:ee}}function g(ee,te){return{type:`xstate.error.actor.${ee}`,error:te,actorId:ee}}function b(ee){return{type:l,input:ee}}function x(ee){setTimeout(()=>{throw ee})}const w=typeof Symbol=="function"&&Symbol.observable||"@@observable";function k(ee,te){const ae=_(ee),le=_(te);return typeof le=="string"?typeof ae=="string"?le===ae:!1:typeof ae=="string"?ae in le:Object.keys(ae).every(de=>de in le?k(ae[de],le[de]):!1)}function C(ee){if(P(ee))return ee;const te=[];let ae="";for(let le=0;letypeof te>"u"||typeof te=="string"?{target:te}:te)}function L(ee){if(!(ee===void 0||ee===o))return D(ee)}function U(ee,te,ae){const le=typeof ee=="object",de=le?ee:void 0;return{next:(le?ee.next:ee)?.bind(de),error:(le?ee.error:te)?.bind(de),complete:(le?ee.complete:ae)?.bind(de)}}function M(ee,te){return`${te}.${ee}`}function V(ee,te){const ae=te.match(/^xstate\.invoke\.(\d+)\.(.*)/);if(!ae)return ee.implementations.actors[te];const[,le,de]=ae,_e=ee.getStateNodeById(de).config.invoke;return(Array.isArray(_e)?_e[le]:_e).src}function I(ee){return[...new Set([...ee._nodes.flatMap(te=>te.ownEvents)])]}function H(ee,te){return`${ee.sessionId}.${te}`}let q=0;function Z(ee,te){const ae=new Map,le=new Map,de=new WeakMap,_e=new Set,Be={},{clock:Xe,logger:ut}=te,gt={schedule:(ot,wt,Ct,Gt,Wo=Math.random().toString(36).slice(2))=>{const Ph={source:ot,target:wt,event:Ct,delay:Gt,id:Wo,startedAt:Date.now()},Ja=H(ot,Wo);nt._snapshot._scheduledEvents[Ja]=Ph;const hu=Xe.setTimeout(()=>{delete Be[Ja],delete nt._snapshot._scheduledEvents[Ja],nt._relay(ot,wt,Ct)},Gt);Be[Ja]=hu},cancel:(ot,wt)=>{const Ct=H(ot,wt),Gt=Be[Ct];delete Be[Ct],delete nt._snapshot._scheduledEvents[Ct],Gt!==void 0&&Xe.clearTimeout(Gt)},cancelAll:ot=>{for(const wt in nt._snapshot._scheduledEvents){const Ct=nt._snapshot._scheduledEvents[wt];Ct.source===ot&>.cancel(ot,Ct.id)}}},Yt=ot=>{if(!_e.size)return;const wt={...ot,rootId:ee.sessionId};_e.forEach(Ct=>Ct.next?.(wt))},nt={_snapshot:{_scheduledEvents:(te?.snapshot&&te.snapshot.scheduler)??{}},_bookId:()=>`x:${q++}`,_register:(ot,wt)=>(ae.set(ot,wt),ot),_unregister:ot=>{ae.delete(ot.sessionId);const wt=de.get(ot);wt!==void 0&&(le.delete(wt),de.delete(ot))},get:ot=>le.get(ot),getAll:()=>Object.fromEntries(le.entries()),_set:(ot,wt)=>{const Ct=le.get(ot);if(Ct&&Ct!==wt)throw new Error(`Actor with system ID '${ot}' already exists.`);le.set(ot,wt),de.set(wt,ot)},inspect:ot=>{const wt=U(ot);return _e.add(wt),{unsubscribe(){_e.delete(wt)}}},_sendInspectionEvent:Yt,_relay:(ot,wt,Ct)=>{nt._sendInspectionEvent({type:"@xstate.event",sourceRef:ot,actorRef:wt,event:Ct}),wt._send(Ct)},scheduler:gt,getSnapshot:()=>({_scheduledEvents:{...nt._snapshot._scheduledEvents}}),start:()=>{const ot=nt._snapshot._scheduledEvents;nt._snapshot._scheduledEvents={};for(const wt in ot){const{source:Ct,target:Gt,event:Wo,delay:Ph,id:Ja}=ot[wt];gt.schedule(Ct,Gt,Wo,Ph,Ja)}},_clock:Xe,_logger:ut};return nt}let W=!1;const G=1;let K=(function(ee){return ee[ee.NotStarted=0]="NotStarted",ee[ee.Running=1]="Running",ee[ee.Stopped=2]="Stopped",ee})({});const j={clock:{setTimeout:(ee,te)=>setTimeout(ee,te),clearTimeout:ee=>clearTimeout(ee)},logger:console.log.bind(console),devTools:!1};class Y{constructor(te,ae){this.logic=te,this._snapshot=void 0,this.clock=void 0,this.options=void 0,this.id=void 0,this.mailbox=new r(this._process.bind(this)),this.observers=new Set,this.eventListeners=new Map,this.logger=void 0,this._processingStatus=K.NotStarted,this._parent=void 0,this._syncSnapshot=void 0,this.ref=void 0,this._actorScope=void 0,this.systemId=void 0,this.sessionId=void 0,this.system=void 0,this._doneEvent=void 0,this.src=void 0,this._deferred=[];const le={...j,...ae},{clock:de,logger:_e,parent:Be,syncSnapshot:Xe,id:ut,systemId:gt,inspect:Yt}=le;this.system=Be?Be.system:Z(this,{clock:de,logger:_e}),Yt&&!Be&&this.system.inspect(U(Yt)),this.sessionId=this.system._bookId(),this.id=ut??this.sessionId,this.logger=ae?.logger??this.system._logger,this.clock=ae?.clock??this.system._clock,this._parent=Be,this._syncSnapshot=Xe,this.options=le,this.src=le.src??te,this.ref=this,this._actorScope={self:this,id:this.id,sessionId:this.sessionId,logger:this.logger,defer:nt=>{this._deferred.push(nt)},system:this.system,stopChild:nt=>{if(nt._parent!==this)throw new Error(`Cannot stop child actor ${nt.id} of ${this.id} because it is not a child`);nt._stop()},emit:nt=>{const ot=this.eventListeners.get(nt.type),wt=this.eventListeners.get("*");if(!ot&&!wt)return;const Ct=[...ot?ot.values():[],...wt?wt.values():[]];for(const Gt of Ct)try{Gt(nt)}catch(Wo){x(Wo)}},actionExecutor:nt=>{const ot=()=>{if(this._actorScope.system._sendInspectionEvent({type:"@xstate.action",actorRef:this,action:{type:nt.type,params:nt.params}}),!nt.exec)return;const wt=W;try{W=!0,nt.exec(nt.info,nt.params)}finally{W=wt}};this._processingStatus===K.Running?ot():this._deferred.push(ot)}},this.send=this.send.bind(this),this.system._sendInspectionEvent({type:"@xstate.actor",actorRef:this}),gt&&(this.systemId=gt,this.system._set(gt,this)),this._initState(ae?.snapshot??ae?.state),gt&&this._snapshot.status!=="active"&&this.system._unregister(this)}_initState(te){try{this._snapshot=te?this.logic.restoreSnapshot?this.logic.restoreSnapshot(te,this._actorScope):te:this.logic.getInitialSnapshot(this._actorScope,this.options?.input)}catch(ae){this._snapshot={status:"error",output:void 0,error:ae}}}update(te,ae){this._snapshot=te;let le;for(;le=this._deferred.shift();)try{le()}catch(de){this._deferred.length=0,this._snapshot={...te,status:"error",error:de}}switch(this._snapshot.status){case"active":for(const de of this.observers)try{de.next?.(te)}catch(_e){x(_e)}break;case"done":for(const de of this.observers)try{de.next?.(te)}catch(_e){x(_e)}this._stopProcedure(),this._complete(),this._doneEvent=f(this.id,this._snapshot.output),this._parent&&this.system._relay(this,this._parent,this._doneEvent);break;case"error":this._error(this._snapshot.error);break}this.system._sendInspectionEvent({type:"@xstate.snapshot",actorRef:this,event:ae,snapshot:te})}subscribe(te,ae,le){const de=U(te,ae,le);if(this._processingStatus!==K.Stopped)this.observers.add(de);else switch(this._snapshot.status){case"done":try{de.complete?.()}catch(_e){x(_e)}break;case"error":{const _e=this._snapshot.error;if(!de.error)x(_e);else try{de.error(_e)}catch(Be){x(Be)}break}}return{unsubscribe:()=>{this.observers.delete(de)}}}on(te,ae){let le=this.eventListeners.get(te);le||(le=new Set,this.eventListeners.set(te,le));const de=ae.bind(void 0);return le.add(de),{unsubscribe:()=>{le.delete(de)}}}start(){if(this._processingStatus===K.Running)return this;this._syncSnapshot&&this.subscribe({next:ae=>{ae.status==="active"&&this.system._relay(this,this._parent,{type:`xstate.snapshot.${this.id}`,snapshot:ae})},error:()=>{}}),this.system._register(this.sessionId,this),this.systemId&&this.system._set(this.systemId,this),this._processingStatus=K.Running;const te=b(this.options.input);switch(this.system._sendInspectionEvent({type:"@xstate.event",sourceRef:this._parent,actorRef:this,event:te}),this._snapshot.status){case"done":return this.update(this._snapshot,te),this;case"error":return this._error(this._snapshot.error),this}if(this._parent||this.system.start(),this.logic.start)try{this.logic.start(this._snapshot,this._actorScope)}catch(ae){return this._snapshot={...this._snapshot,status:"error",error:ae},this._error(ae),this}return this.update(this._snapshot,te),this.options.devTools&&this.attachDevTools(),this.mailbox.start(),this}_process(te){let ae,le;try{ae=this.logic.transition(this._snapshot,te,this._actorScope)}catch(de){le={err:de}}if(le){const{err:de}=le;this._snapshot={...this._snapshot,status:"error",error:de},this._error(de);return}this.update(ae,te),te.type===d&&(this._stopProcedure(),this._complete())}_stop(){return this._processingStatus===K.Stopped?this:(this.mailbox.clear(),this._processingStatus===K.NotStarted?(this._processingStatus=K.Stopped,this):(this.mailbox.enqueue({type:d}),this))}stop(){if(this._parent)throw new Error("A non-root actor cannot be stopped directly.");return this._stop()}_complete(){for(const te of this.observers)try{te.complete?.()}catch(ae){x(ae)}this.observers.clear()}_reportError(te){if(!this.observers.size){this._parent||x(te);return}let ae=!1;for(const le of this.observers){const de=le.error;ae||=!de;try{de?.(te)}catch(_e){x(_e)}}this.observers.clear(),ae&&x(te)}_error(te){this._stopProcedure(),this._reportError(te),this._parent&&this.system._relay(this,this._parent,g(this.id,te))}_stopProcedure(){return this._processingStatus!==K.Running?this:(this.system.scheduler.cancelAll(this),this.mailbox.clear(),this.mailbox=new r(this._process.bind(this)),this._processingStatus=K.Stopped,this.system._unregister(this),this)}_send(te){this._processingStatus!==K.Stopped&&this.mailbox.enqueue(te)}send(te){this.system._relay(void 0,this,te)}attachDevTools(){const{devTools:te}=this.options;te&&(typeof te=="function"?te:e.devToolsAdapter)(this)}toJSON(){return{xstate$$type:G,id:this.id}}getPersistedSnapshot(te){return this.logic.getPersistedSnapshot(this._snapshot,te)}[w](){return this}getSnapshot(){return this._snapshot}}function Q(ee,...[te]){return new Y(ee,te)}const J=Q;function ie(ee,te,ae,le,{sendId:de}){const _e=typeof de=="function"?de(ae,le):de;return[te,{sendId:_e},void 0]}function ne(ee,te){ee.defer(()=>{ee.system.scheduler.cancel(ee.self,te.sendId)})}function re(ee){function te(ae,le){}return te.type="xstate.cancel",te.sendId=ee,te.resolve=ie,te.execute=ne,te}function ge(ee,te,ae,le,{id:de,systemId:_e,src:Be,input:Xe,syncSnapshot:ut}){const gt=typeof Be=="string"?V(te.machine,Be):Be,Yt=typeof de=="function"?de(ae):de;let nt,ot;return gt&&(ot=typeof Xe=="function"?Xe({context:te.context,event:ae.event,self:ee.self}):Xe,nt=Q(gt,{id:Yt,src:Be,parent:ee.self,syncSnapshot:ut,systemId:_e,input:ot})),[nn(te,{children:{...te.children,[Yt]:nt}}),{id:de,systemId:_e,actorRef:nt,src:Be,input:ot},void 0]}function De(ee,{actorRef:te}){te&&ee.defer(()=>{te._processingStatus!==K.Stopped&&te.start()})}function he(...[ee,{id:te,systemId:ae,input:le,syncSnapshot:de=!1}={}]){function _e(Be,Xe){}return _e.type="xstate.spawnChild",_e.id=te,_e.systemId=ae,_e.src=ee,_e.input=le,_e.syncSnapshot=de,_e.resolve=ge,_e.execute=De,_e}function me(ee,te,ae,le,{actorRef:de}){const _e=typeof de=="function"?de(ae,le):de,Be=typeof _e=="string"?te.children[_e]:_e;let Xe=te.children;return Be&&(Xe={...Xe},delete Xe[Be.id]),[nn(te,{children:Xe}),Be,void 0]}function Te(ee,te){if(te){if(ee.system._unregister(te),te._processingStatus!==K.Running){ee.stopChild(te);return}ee.defer(()=>{ee.stopChild(te)})}}function Ie(ee){function te(ae,le){}return te.type="xstate.stopChild",te.actorRef=ee,te.resolve=me,te.execute=Te,te}const Ze=Ie;function rt(ee,te,{stateValue:ae}){if(typeof ae=="string"&&fr(ae)){const le=ee.machine.getStateNodeById(ae);return ee._nodes.some(de=>de===le)}return ee.matches(ae)}function Rt(ee){function te(){return!1}return te.check=rt,te.stateValue=ee,te}function Qe(ee,{context:te,event:ae},{guards:le}){return!Ir(le[0],te,ae,ee)}function Mt(ee){function te(ae,le){return!1}return te.check=Qe,te.guards=[ee],te}function Ke(ee,{context:te,event:ae},{guards:le}){return le.every(de=>Ir(de,te,ae,ee))}function Ge(ee){function te(ae,le){return!1}return te.check=Ke,te.guards=ee,te}function ct(ee,{context:te,event:ae},{guards:le}){return le.some(de=>Ir(de,te,ae,ee))}function dt(ee){function te(ae,le){return!1}return te.check=ct,te.guards=ee,te}function Ir(ee,te,ae,le){const{machine:de}=le,_e=typeof ee=="function",Be=_e?ee:de.implementations.guards[typeof ee=="string"?ee:ee.type];if(!_e&&!Be)throw new Error(`Guard '${typeof ee=="string"?ee:ee.type}' is not implemented.'.`);if(typeof Be!="function")return Ir(Be,te,ae,le);const Xe={context:te,event:ae},ut=_e||typeof ee=="string"?void 0:"params"in ee?typeof ee.params=="function"?ee.params({context:te,event:ae}):ee.params:void 0;return"check"in Be?Be.check(le,Xe,Be):Be(Xe,ut)}const Ee=ee=>ee.type==="atomic"||ee.type==="final";function Se(ee){return Object.values(ee.states).filter(te=>te.type!=="history")}function it(ee,te){const ae=[];if(te===ee)return ae;let le=ee.parent;for(;le&&le!==te;)ae.push(le),le=le.parent;return ae}function xt(ee){const te=new Set(ee),ae=Fr(te);for(const le of te)if(le.type==="compound"&&(!ae.get(le)||!ae.get(le).length))wa(le).forEach(de=>te.add(de));else if(le.type==="parallel"){for(const de of Se(le))if(de.type!=="history"&&!te.has(de)){const _e=wa(de);for(const Be of _e)te.add(Be)}}for(const le of te){let de=le.parent;for(;de;)te.add(de),de=de.parent}return te}function zt(ee,te){const ae=te.get(ee);if(!ae)return{};if(ee.type==="compound"){const de=ae[0];if(de){if(Ee(de))return de.key}else return{}}const le={};for(const de of ae)le[de.key]=zt(de,te);return le}function Fr(ee){const te=new Map;for(const ae of ee)te.has(ae)||te.set(ae,[]),ae.parent&&(te.has(ae.parent)||te.set(ae.parent,[]),te.get(ae.parent).push(ae));return te}function It(ee,te){const ae=xt(te);return zt(ee,Fr(ae))}function vr(ee,te){return te.type==="compound"?Se(te).some(ae=>ae.type==="final"&&ee.has(ae)):te.type==="parallel"?Se(te).every(ae=>vr(ee,ae)):te.type==="final"}const fr=ee=>ee[0]===i;function dn(ee,te){return ee.transitions.get(te)||[...ee.transitions.keys()].filter(ae=>{if(ae===s)return!0;if(!ae.endsWith(".*"))return!1;const le=ae.split("."),de=te.split(".");for(let _e=0;_ele.length-ae.length).flatMap(ae=>ee.transitions.get(ae))}function ir(ee){const te=ee.config.after;if(!te)return[];const ae=le=>{const de=u(le,ee.id),_e=de.type;return ee.entry.push(pu(de,{id:_e,delay:le})),ee.exit.push(re(_e)),_e};return Object.keys(te).flatMap(le=>{const de=te[le],_e=typeof de=="string"?{target:de}:de,Be=Number.isNaN(+le)?le:+le,Xe=ae(Be);return D(_e).map(ut=>({...ut,event:Xe,delay:Be}))}).map(le=>{const{delay:de}=le;return{...vn(ee,le.event,le),delay:de}})}function vn(ee,te,ae){const le=L(ae.target),de=ae.reenter??!1,_e=xa(ee,le),Be={...ae,actions:D(ae.actions),guard:ae.guard,target:_e,source:ee,reenter:de,eventType:te,toJSON:()=>({...Be,source:`#${ee.id}`,target:_e?_e.map(Xe=>`#${Xe.id}`):void 0})};return Be}function xr(ee){const te=new Map;if(ee.config.on)for(const ae of Object.keys(ee.config.on)){if(ae===a)throw new Error('Null events ("") cannot be specified as a transition key. Use `always: { ... }` instead.');const le=ee.config.on[ae];te.set(ae,F(le).map(de=>vn(ee,ae,de)))}if(ee.config.onDone){const ae=`xstate.done.state.${ee.id}`;te.set(ae,F(ee.config.onDone).map(le=>vn(ee,ae,le)))}for(const ae of ee.invoke){if(ae.onDone){const le=`xstate.done.actor.${ae.id}`;te.set(le,F(ae.onDone).map(de=>vn(ee,le,de)))}if(ae.onError){const le=`xstate.error.actor.${ae.id}`;te.set(le,F(ae.onError).map(de=>vn(ee,le,de)))}if(ae.onSnapshot){const le=`xstate.snapshot.${ae.id}`;te.set(le,F(ae.onSnapshot).map(de=>vn(ee,le,de)))}}for(const ae of ee.after){let le=te.get(ae.eventType);le||(le=[],te.set(ae.eventType,le)),le.push(ae)}return te}function ea(ee,te){const ae=typeof te=="string"?ee.states[te]:te?ee.states[te.target]:void 0;if(!ae&&te)throw new Error(`Initial state node "${te}" not found on parent state node #${ee.id}`);const le={source:ee,actions:!te||typeof te=="string"?[]:D(te.actions),eventType:null,reenter:!1,target:ae?[ae]:[],toJSON:()=>({...le,source:`#${ee.id}`,target:ae?[`#${ae.id}`]:[]})};return le}function xa(ee,te){if(te!==void 0)return te.map(ae=>{if(typeof ae!="string")return ae;if(fr(ae))return ee.machine.getStateNodeById(ae);const le=ae[0]===n;if(le&&!ee.parent)return Ol(ee,ae.slice(1));const de=le?ee.key+ae:ae;if(ee.parent)try{return Ol(ee.parent,de)}catch(_e){throw new Error(`Invalid transition definition for state node '${ee.id}': -${_e.message}`)}else throw new Error(`Invalid target: "${ae}" is not a valid target from the root node. Did you mean ".${ae}"?`)})}function Gs(ee){const te=L(ee.config.target);return te?{target:te.map(ae=>typeof ae=="string"?Ol(ee.parent,ae):ae)}:ee.parent.initial}function Vo(ee){return ee.type==="history"}function wa(ee){const te=Xs(ee);for(const ae of te)for(const le of it(ae,ee))te.add(le);return te}function Xs(ee){const te=new Set;function ae(le){if(!te.has(le)){if(te.add(le),le.type==="compound")ae(le.initial.target[0]);else if(le.type==="parallel")for(const de of Se(le))ae(de)}}return ae(ee),te}function fo(ee,te){if(fr(te))return ee.machine.getStateNodeById(te);if(!ee.states)throw new Error(`Unable to retrieve child state '${te}' from '${ee.id}'; no child states exist.`);const ae=ee.states[te];if(!ae)throw new Error(`Child state '${te}' does not exist on '${ee.id}'`);return ae}function Ol(ee,te){if(typeof te=="string"&&fr(te))try{return ee.machine.getStateNodeById(te)}catch{}const ae=C(te).slice();let le=ee;for(;ae.length;){const de=ae.shift();if(!de.length)break;le=fo(le,de)}return le}function jl(ee,te){if(typeof te=="string"){const de=ee.states[te];if(!de)throw new Error(`State '${te}' does not exist on '${ee.id}'`);return[ee,de]}const ae=Object.keys(te),le=ae.map(de=>fo(ee,de)).filter(Boolean);return[ee.machine.root,ee].concat(le,ae.reduce((de,_e)=>{const Be=fo(ee,_e);if(!Be)return de;const Xe=jl(Be,te[_e]);return de.concat(Xe)},[]))}function Bc(ee,te,ae,le){const de=fo(ee,te).next(ae,le);return!de||!de.length?ee.next(ae,le):de}function Ks(ee,te,ae,le){const de=Object.keys(te),_e=fo(ee,de[0]),Be=Ll(_e,te[de[0]],ae,le);return!Be||!Be.length?ee.next(ae,le):Be}function Rh(ee,te,ae,le){const de=[];for(const _e of Object.keys(te)){const Be=te[_e];if(!Be)continue;const Xe=fo(ee,_e),ut=Ll(Xe,Be,ae,le);ut&&de.push(...ut)}return de.length?de:ee.next(ae,le)}function Ll(ee,te,ae,le){return typeof te=="string"?Bc(ee,te,ae,le):Object.keys(te).length===1?Ks(ee,te,ae,le):Rh(ee,te,ae,le)}function iu(ee){return Object.keys(ee.states).map(te=>ee.states[te]).filter(te=>te.type==="history")}function ta(ee,te){let ae=ee;for(;ae.parent&&ae.parent!==te;)ae=ae.parent;return ae.parent===te}function Fc(ee,te){const ae=new Set(ee),le=new Set(te);for(const de of ae)if(le.has(de))return!0;for(const de of le)if(ae.has(de))return!0;return!1}function Bl(ee,te,ae){const le=new Set;for(const de of ee){let _e=!1;const Be=new Set;for(const Xe of le)if(Fc(Wr([de],te,ae),Wr([Xe],te,ae)))if(ta(de.source,Xe.source))Be.add(Xe);else{_e=!0;break}if(!_e){for(const Xe of Be)le.delete(Xe);le.add(de)}}return Array.from(le)}function su(ee){const[te,...ae]=ee;for(const le of it(te,void 0))if(ae.every(de=>ta(de,le)))return le}function Fl(ee,te){if(!ee.target)return[];const ae=new Set;for(const le of ee.target)if(Vo(le))if(te[le.id])for(const de of te[le.id])ae.add(de);else for(const de of Fl(Gs(le),te))ae.add(de);else ae.add(le);return[...ae]}function ra(ee,te){const ae=Fl(ee,te);if(!ae)return;if(!ee.reenter&&ae.every(de=>de===ee.source||ta(de,ee.source)))return ee.source;const le=su(ae.concat(ee.source));if(le)return le;if(!ee.reenter)return ee.source.machine.root}function Wr(ee,te,ae){const le=new Set;for(const de of ee)if(de.target?.length){const _e=ra(de,ae);de.reenter&&de.source===_e&&le.add(_e);for(const Be of te)ta(Be,_e)&&le.add(Be)}return[...le]}function Vn(ee,te){if(ee.length!==te.size)return!1;for(const ae of ee)if(!te.has(ae))return!1;return!0}function qo(ee,te,ae,le,de,_e){if(!ee.length)return te;const Be=new Set(te._nodes);let Xe=te.historyValue;const ut=Bl(ee,Be,Xe);let gt=te;de||([gt,Xe]=ji(gt,le,ae,ut,Be,Xe,_e,ae.actionExecutor)),gt=So(gt,le,ae,ut.flatMap(nt=>nt.actions),_e,void 0),gt=Hc(gt,le,ae,ut,Be,_e,Xe,de);const Yt=[...Be];gt.status==="done"&&(gt=So(gt,le,ae,Yt.sort((nt,ot)=>ot.order-nt.order).flatMap(nt=>nt.exit),_e,void 0));try{return Xe===te.historyValue&&Vn(te._nodes,Be)?gt:nn(gt,{_nodes:Yt,historyValue:Xe})}catch(nt){throw nt}}function Zs(ee,te,ae,le,de){if(le.output===void 0)return;const _e=h(de.id,de.output!==void 0&&de.parent?N(de.output,ee.context,te,ae.self):void 0);return N(le.output,ee.context,_e,ae.self)}function Hc(ee,te,ae,le,de,_e,Be,Xe){let ut=ee;const gt=new Set,Yt=new Set;Nh(le,Be,Yt,gt),Xe&&Yt.add(ee.machine.root);const nt=new Set;for(const ot of[...gt].sort((wt,Ct)=>wt.order-Ct.order)){de.add(ot);const wt=[];wt.push(...ot.entry);for(const Ct of ot.invoke)wt.push(he(Ct.src,{...Ct,syncSnapshot:!!Ct.onSnapshot}));if(Yt.has(ot)){const Ct=ot.initial.actions;wt.push(...Ct)}if(ut=So(ut,te,ae,wt,_e,ot.invoke.map(Ct=>Ct.id)),ot.type==="final"){const Ct=ot.parent;let Gt=Ct?.type==="parallel"?Ct:Ct?.parent,Wo=Gt||ot;for(Ct?.type==="compound"&&_e.push(h(Ct.id,ot.output!==void 0?N(ot.output,ut.context,te,ae.self):void 0));Gt?.type==="parallel"&&!nt.has(Gt)&&vr(de,Gt);)nt.add(Gt),_e.push(h(Gt.id)),Wo=Gt,Gt=Gt.parent;if(Gt)continue;ut=nn(ut,{status:"done",output:Zs(ut,te,ae,ut.machine.root,Wo)})}}return ut}function Nh(ee,te,ae,le){for(const de of ee){const _e=ra(de,te);for(const Xe of de.target||[])!Vo(Xe)&&(de.source!==Xe||de.source!==_e||de.reenter)&&(le.add(Xe),ae.add(Xe)),Za(Xe,te,ae,le);const Be=Fl(de,te);for(const Xe of Be){const ut=it(Xe,_e);_e?.type==="parallel"&&ut.push(_e),Oi(le,te,ae,ut,!de.source.parent&&de.reenter?void 0:_e)}}}function Za(ee,te,ae,le){if(Vo(ee))if(te[ee.id]){const de=te[ee.id];for(const _e of de)le.add(_e),Za(_e,te,ae,le);for(const _e of de)Qs(_e,ee.parent,le,te,ae)}else{const de=Gs(ee);for(const _e of de.target)le.add(_e),de===ee.parent?.initial&&ae.add(ee.parent),Za(_e,te,ae,le);for(const _e of de.target)Qs(_e,ee.parent,le,te,ae)}else if(ee.type==="compound"){const[de]=ee.initial.target;Vo(de)||(le.add(de),ae.add(de)),Za(de,te,ae,le),Qs(de,ee,le,te,ae)}else if(ee.type==="parallel")for(const de of Se(ee).filter(_e=>!Vo(_e)))[...le].some(_e=>ta(_e,de))||(Vo(de)||(le.add(de),ae.add(de)),Za(de,te,ae,le))}function Oi(ee,te,ae,le,de){for(const _e of le)if((!de||ta(_e,de))&&ee.add(_e),_e.type==="parallel")for(const Be of Se(_e).filter(Xe=>!Vo(Xe)))[...ee].some(Xe=>ta(Xe,Be))||(ee.add(Be),Za(Be,te,ae,ee))}function Qs(ee,te,ae,le,de){Oi(ae,le,de,it(ee,te))}function ji(ee,te,ae,le,de,_e,Be,Xe){let ut=ee;const gt=Wr(le,de,_e);gt.sort((nt,ot)=>ot.order-nt.order);let Yt;for(const nt of gt)for(const ot of iu(nt)){let wt;ot.history==="deep"?wt=Ct=>Ee(Ct)&&ta(Ct,nt):wt=Ct=>Ct.parent===nt,Yt??={..._e},Yt[ot.id]=Array.from(de).filter(wt)}for(const nt of gt)ut=So(ut,te,ae,[...nt.exit,...nt.invoke.map(ot=>Ie(ot.id))],Be,void 0),de.delete(nt);return[ut,Yt||_e]}function Li(ee,te){return ee.implementations.actions[te]}function ka(ee,te,ae,le,de,_e){const{machine:Be}=ee;let Xe=ee;for(const ut of le){const gt=typeof ut=="function",Yt=gt?ut:Li(Be,typeof ut=="string"?ut:ut.type),nt={context:Xe.context,event:te,self:ae.self,system:ae.system},ot=gt||typeof ut=="string"?void 0:"params"in ut?typeof ut.params=="function"?ut.params({context:Xe.context,event:te}):ut.params:void 0;if(!Yt||!("resolve"in Yt)){ae.actionExecutor({type:typeof ut=="string"?ut:typeof ut=="object"?ut.type:ut.name||"(anonymous)",info:nt,params:ot,exec:Yt});continue}const wt=Yt,[Ct,Gt,Wo]=wt.resolve(ae,Xe,nt,ot,Yt,de);Xe=Ct,"retryResolve"in wt&&_e?.push([wt,Gt]),"execute"in wt&&ae.actionExecutor({type:wt.type,info:nt,params:Gt,exec:wt.execute.bind(null,ae,Gt)}),Wo&&(Xe=ka(Xe,te,ae,Wo,de,_e))}return Xe}function So(ee,te,ae,le,de,_e){const Be=_e?[]:void 0,Xe=ka(ee,te,ae,le,{internalQueue:de,deferredActorIds:_e},Be);return Be?.forEach(([ut,gt])=>{ut.retryResolve(ae,Xe,gt)}),Xe}function rn(ee,te,ae,le){let de=ee;const _e=[];function Be(gt,Yt,nt){ae.system._sendInspectionEvent({type:"@xstate.microstep",actorRef:ae.self,event:Yt,snapshot:gt,_transitions:nt}),_e.push(gt)}if(te.type===d)return de=nn(Vc(de,te,ae),{status:"stopped"}),Be(de,te,[]),{snapshot:de,microstates:_e};let Xe=te;if(Xe.type!==l){const gt=Xe,Yt=O(gt),nt=qc(gt,de);if(Yt&&!nt.length)return de=nn(ee,{status:"error",error:gt.error}),Be(de,gt,[]),{snapshot:de,microstates:_e};de=qo(nt,ee,ae,Xe,!1,le),Be(de,gt,nt)}let ut=!0;for(;de.status==="active";){let gt=ut?Qa(de,Xe):[];const Yt=gt.length?de:void 0;if(!gt.length){if(!le.length)break;Xe=le.shift(),gt=qc(Xe,de)}de=qo(gt,de,ae,Xe,!1,le),ut=de!==Yt,Be(de,Xe,gt)}return de.status!=="active"&&Vc(de,Xe,ae),{snapshot:de,microstates:_e}}function Vc(ee,te,ae){return So(ee,te,ae,Object.values(ee.children).map(le=>Ie(le)),[],void 0)}function qc(ee,te){return te.machine.getTransitionData(te,ee)}function Qa(ee,te){const ae=new Set,le=ee._nodes.filter(Ee);for(const de of le)e:for(const _e of[de].concat(it(de,void 0)))if(_e.always){for(const Be of _e.always)if(Be.guard===void 0||Ir(Be.guard,ee.context,te,ee)){ae.add(Be);break e}}return Bl(Array.from(ae),new Set(ee._nodes),ee.historyValue)}function Bi(ee,te){const ae=xt(jl(ee,te));return It(ee,[...ae])}function lu(ee){return!!ee&&typeof ee=="object"&&"machine"in ee&&"value"in ee}const Hl=function(ee){return k(ee,this.value)},cu=function(ee){return this.tags.has(ee)},Dh=function(ee){const te=this.machine.getTransitionData(this,ee);return!!te?.length&&te.some(ae=>ae.target!==void 0||ae.actions.length)},Vl=function(){const{_nodes:ee,tags:te,machine:ae,getMeta:le,toJSON:de,can:_e,hasTag:Be,matches:Xe,...ut}=this;return{...ut,tags:Array.from(te)}},ql=function(){return this._nodes.reduce((ee,te)=>(te.meta!==void 0&&(ee[te.id]=te.meta),ee),{})};function Uo(ee,te){return{status:ee.status,output:ee.output,error:ee.error,machine:te,context:ee.context,_nodes:ee._nodes,value:It(te.root,ee._nodes),tags:new Set(ee._nodes.flatMap(ae=>ae.tags)),children:ee.children,historyValue:ee.historyValue||{},matches:Hl,hasTag:cu,can:Dh,getMeta:ql,toJSON:Vl}}function nn(ee,te={}){return Uo({...ee,...te},ee.machine)}function du(ee){if(typeof ee!="object"||ee===null)return{};const te={};for(const ae in ee){const le=ee[ae];Array.isArray(le)&&(te[ae]=le.map(de=>({id:de.id})))}return te}function $h(ee,te){const{_nodes:ae,tags:le,machine:de,children:_e,context:Be,can:Xe,hasTag:ut,matches:gt,getMeta:Yt,toJSON:nt,...ot}=ee,wt={};for(const Ct in _e){const Gt=_e[Ct];wt[Ct]={snapshot:Gt.getPersistedSnapshot(te),src:Gt.src,systemId:Gt.systemId,syncSnapshot:Gt._syncSnapshot}}return{...ot,context:Fi(Be),children:wt,historyValue:du(ot.historyValue)}}function Fi(ee){let te;for(const ae in ee){const le=ee[ae];if(le&&typeof le=="object")if("sessionId"in le&&"send"in le&&"ref"in le)te??=Array.isArray(ee)?ee.slice():{...ee},te[ae]={xstate$$type:G,id:le.id};else{const de=Fi(le);de!==le&&(te??=Array.isArray(ee)?ee.slice():{...ee},te[ae]=de)}}return te??ee}function uu(ee,te,ae,le,{event:de,id:_e,delay:Be},{internalQueue:Xe}){const ut=te.machine.implementations.delays;if(typeof de=="string")throw new Error(`Only event objects may be used with raise; use raise({ type: "${de}" }) instead`);const gt=typeof de=="function"?de(ae,le):de;let Yt;if(typeof Be=="string"){const nt=ut&&ut[Be];Yt=typeof nt=="function"?nt(ae,le):nt}else Yt=typeof Be=="function"?Be(ae,le):Be;return typeof Yt!="number"&&Xe.push(gt),[te,{event:gt,id:_e,delay:Yt},void 0]}function Ul(ee,te){const{event:ae,delay:le,id:de}=te;if(typeof le=="number"){ee.defer(()=>{const _e=ee.self;ee.system.scheduler.schedule(_e,_e,ae,le,de)});return}}function pu(ee,te){function ae(le,de){}return ae.type="xstate.raise",ae.event=ee,ae.id=te?.id,ae.delay=te?.delay,ae.resolve=uu,ae.execute=Ul,ae}return _t.$$ACTOR_TYPE=G,_t.Actor=Y,_t.NULL_EVENT=a,_t.ProcessingStatus=K,_t.STATE_DELIMITER=n,_t.XSTATE_ERROR=c,_t.XSTATE_STOP=d,_t.and=Ge,_t.cancel=re,_t.cloneMachineSnapshot=nn,_t.createActor=Q,_t.createErrorActorEvent=g,_t.createInitEvent=b,_t.createInvokeId=M,_t.createMachineSnapshot=Uo,_t.evaluateGuard=Ir,_t.formatInitialTransition=ea,_t.formatTransition=vn,_t.formatTransitions=xr,_t.getAllOwnEventDescriptors=I,_t.getAllStateNodes=xt,_t.getCandidates=dn,_t.getDelayedTransitions=ir,_t.getInitialStateNodes=Xs,_t.getPersistedSnapshot=$h,_t.getStateNodeByPath=Ol,_t.getStateNodes=jl,_t.interpret=J,_t.isInFinalState=vr,_t.isMachineSnapshot=lu,_t.isStateId=fr,_t.macrostep=rn,_t.mapValues=A,_t.matchesState=k,_t.microstep=qo,_t.not=Mt,_t.or=dt,_t.pathToStateValue=T,_t.raise=pu,_t.resolveActionsAndContext=So,_t.resolveReferencedActor=V,_t.resolveStateValue=Bi,_t.spawnChild=he,_t.stateIn=Rt,_t.stop=Ze,_t.stopChild=Ie,_t.toArray=D,_t.toObserver=U,_t.toStatePath=C,_t.toTransitionConfigArray=F,_t.transitionNode=Ll,_t}var une;function pne(){if(une)return CR;une=1;var e=j4();function r(a,{machine:i,context:s},l,c){const d=(u,h)=>{if(typeof u=="string"){const f=e.resolveReferencedActor(i,u);if(!f)throw new Error(`Actor logic '${u}' not implemented in machine '${i.id}'`);const g=e.createActor(f,{id:h?.id,parent:a.self,syncSnapshot:h?.syncSnapshot,input:typeof h?.input=="function"?h.input({context:s,event:l,self:a.self}):h?.input,src:u,systemId:h?.systemId});return c[g.id]=g,g}else return e.createActor(u,{id:h?.id,parent:a.self,syncSnapshot:h?.syncSnapshot,input:h?.input,src:u,systemId:h?.systemId})};return(u,h)=>{const f=d(u,h);return c[f.id]=f,a.defer(()=>{f._processingStatus!==e.ProcessingStatus.Stopped&&f.start()}),f}}function n(a,i,s,l,{assignment:c}){if(!i.context)throw new Error("Cannot assign to undefined `context`. Ensure that `context` is defined in the machine config.");const d={},u={context:i.context,event:s.event,spawn:r(a,i,s.event,d),self:a.self,system:a.system};let h={};if(typeof c=="function")h=c(u,l);else for(const g of Object.keys(c)){const b=c[g];h[g]=typeof b=="function"?b(u,l):b}const f=Object.assign({},i.context,h);return[e.cloneMachineSnapshot(i,{context:f,children:Object.keys(d).length?{...i.children,...d}:i.children}),void 0,void 0]}function o(a){function i(s,l){}return i.type="xstate.assign",i.assignment=a,i.resolve=n,i}return CR.assign=o,CR}var Ac={},hne;function jtt(){if(hne)return Ac;hne=1;var e=j4(),r=pne();function n(k,C,_,T,{event:A}){const R=typeof A=="function"?A(_,T):A;return[C,{event:R},void 0]}function o(k,{event:C}){k.defer(()=>k.emit(C))}function a(k){function C(_,T){}return C.type="xstate.emit",C.event=k,C.resolve=n,C.execute=o,C}let i=(function(k){return k.Parent="#_parent",k.Internal="#_internal",k})({});function s(k,C,_,T,{to:A,event:R,id:D,delay:N},P){const O=C.machine.implementations.delays;if(typeof R=="string")throw new Error(`Only event objects may be used with sendTo; use sendTo({ type: "${R}" }) instead`);const F=typeof R=="function"?R(_,T):R;let L;if(typeof N=="string"){const V=O&&O[N];L=typeof V=="function"?V(_,T):V}else L=typeof N=="function"?N(_,T):N;const U=typeof A=="function"?A(_,T):A;let M;if(typeof U=="string"){if(U===i.Parent?M=k.self._parent:U===i.Internal?M=k.self:U.startsWith("#_")?M=C.children[U.slice(2)]:M=P.deferredActorIds?.includes(U)?U:C.children[U],!M)throw new Error(`Unable to send event to actor '${U}' from machine '${C.machine.id}'.`)}else M=U||k.self;return[C,{to:M,targetId:typeof U=="string"?U:void 0,event:F,id:D,delay:L},void 0]}function l(k,C,_){typeof _.to=="string"&&(_.to=C.children[_.to])}function c(k,C){k.defer(()=>{const{to:_,event:T,delay:A,id:R}=C;if(typeof A=="number"){k.system.scheduler.schedule(k.self,_,T,A,R);return}k.system._relay(k.self,_,T.type===e.XSTATE_ERROR?e.createErrorActorEvent(k.self.id,T.data):T)})}function d(k,C,_){function T(A,R){}return T.type="xstate.sendTo",T.to=k,T.event=C,T.id=_?.id,T.delay=_?.delay,T.resolve=s,T.retryResolve=l,T.execute=c,T}function u(k,C){return d(i.Parent,k,C)}function h(k,C){return d(k,({event:_})=>_,C)}function f(k,C,_,T,{collect:A}){const R=[],D=function(N){R.push(N)};return D.assign=(...N)=>{R.push(r.assign(...N))},D.cancel=(...N)=>{R.push(e.cancel(...N))},D.raise=(...N)=>{R.push(e.raise(...N))},D.sendTo=(...N)=>{R.push(d(...N))},D.sendParent=(...N)=>{R.push(u(...N))},D.spawnChild=(...N)=>{R.push(e.spawnChild(...N))},D.stopChild=(...N)=>{R.push(e.stopChild(...N))},D.emit=(...N)=>{R.push(a(...N))},A({context:_.context,event:_.event,enqueue:D,check:N=>e.evaluateGuard(N,C.context,_.event,C),self:k.self,system:k.system},T),[C,void 0,R]}function g(k){function C(_,T){}return C.type="xstate.enqueueActions",C.collect=k,C.resolve=f,C}function b(k,C,_,T,{value:A,label:R}){return[C,{value:typeof A=="function"?A(_,T):A,label:R},void 0]}function x({logger:k},{value:C,label:_}){_?k(_,C):k(C)}function w(k=({context:_,event:T})=>({context:_,event:T}),C){function _(T,A){}return _.type="xstate.log",_.value=k,_.label=C,_.resolve=b,_.execute=x,_}return Ac.SpecialTargets=i,Ac.emit=a,Ac.enqueueActions=g,Ac.forwardTo=h,Ac.log=w,Ac.sendParent=u,Ac.sendTo=d,Ac}var fne;function Ltt(){if(fne)return Qo;fne=1,Object.defineProperty(Qo,"__esModule",{value:!0});var e=pne(),r=j4(),n=jtt();return TR(),Qo.assign=e.assign,Qo.cancel=r.cancel,Qo.raise=r.raise,Qo.spawnChild=r.spawnChild,Qo.stop=r.stop,Qo.stopChild=r.stopChild,Qo.emit=n.emit,Qo.enqueueActions=n.enqueueActions,Qo.forwardTo=n.forwardTo,Qo.log=n.log,Qo.sendParent=n.sendParent,Qo.sendTo=n.sendTo,Qo}var ar=Ltt();const Btt=mt.createStateConfig({on:{"xyflow.init":{actions:ar.assign(({context:e,event:r})=>({initialized:{...e.initialized,xyflow:!0},xyflow:r.instance})),target:"isReady"},"update.view":{actions:ar.assign(({context:e,event:r})=>({initialized:{...e.initialized,xydata:!0},view:r.view,xynodes:r.xynodes,xyedges:r.xyedges})),target:"isReady"}}}),Ftt=mt.createStateConfig({always:[{guard:"isReady",actions:[ko.fitDiagram({duration:0}),ar.assign(({context:e})=>({navigationHistory:{currentIndex:0,history:[{viewId:e.view.id,fromNode:null,viewport:{...e.xyflow.getViewport()}}]}})),Zy(),Stt()],target:"ready"},{target:"initializing"}]}),Htt=mt.createStateConfig({id:"navigating",entry:[one(),nne(),I4(),Qy(),mtt.navigateTo()],on:{"update.view":{actions:ar.enqueueActions(({enqueue:e,context:r,event:n})=>{e(xR());const{fromNode:o,toNode:a}=ene(r,n);e(o&&a?ko.alignNodeFromToAfterNavigate({fromNode:o.id,toPosition:{x:a.data.x,y:a.data.y}}):ko.setViewportCenter()),e.assign(Dre),e(kR()),e(Zy()),e(Km({delay:25}))}),target:"#idle"}}});var Gd={},mne;function Vtt(){if(mne)return Gd;mne=1,Object.defineProperty(Gd,"__esModule",{value:!0});var e=j4();return TR(),Gd.and=e.and,Gd.evaluateGuard=e.evaluateGuard,Gd.not=e.not,Gd.or=e.or,Gd.stateIn=e.stateIn,Gd}var Qm=Vtt();const AR="#navigating",qtt=mt.createStateConfig({id:"idle",on:{"xyflow.nodeClick":[{guard:Qm.and(["enabled: FocusMode","click: node has connections",Qm.or(["click: same node","click: selected node"])]),actions:[Gy(),wR(),Qp()],target:"focused"},{guard:Qm.and(["enabled: Readonly","enabled: ElementDetails","click: node has modelFqn",Qm.or(["click: same node","click: selected node"])]),actions:[Gy(),O4(),SR(),Qp()]},{actions:[Gy(),O4(),Qp()]}],"xyflow.paneClick":{actions:[Xy(),_R()]},"xyflow.paneDblClick":{actions:[Xy(),ko.fitDiagram(),ar.enqueueActions(({context:e,enqueue:r})=>{r(tne({view:e.view.id}))})]},"focus.node":{guard:"enabled: FocusMode",actions:wR(),target:"focused"},"xyflow.edgeClick":{guard:Qm.and(["enabled: Readonly","is dynamic view","enabled: DynamicViewWalkthrough","click: selected edge"]),actions:[ar.raise(({event:e})=>({type:"walkthrough.start",stepId:e.edge.id})),ER()]}}}),Utt=mt.createStateConfig({entry:[M4(),ar.assign(e=>({viewportBeforeFocus:{...e.context.viewport}})),O4(),ar.spawnChild("hotkeyActorLogic",{id:"hotkey"}),ko.fitFocusedBounds()],exit:ar.enqueueActions(({enqueue:e,context:r})=>{e.stopChild("hotkey"),r.viewportBeforeFocus?e(ko.setViewport({viewport:r.viewportBeforeFocus})):e.raise({type:"fitDiagram"},{id:"fitDiagram",delay:20}),e(z4()),e.assign({viewportBeforeFocus:null,focusedNode:null})}),on:{"xyflow.nodeClick":[{guard:Qm.and(["click: focused node","click: node has modelFqn"]),actions:[SR(),Qp()]},{guard:"click: focused node",actions:Qp(),target:"#idle"},{actions:[Gy(),ar.raise(({event:e})=>({type:"focus.node",nodeId:e.node.id})),Qp()]}],"focus.node":{actions:[wR(),M4(),O4(),ko.fitFocusedBounds()]},"key.esc":{target:"idle"},"xyflow.paneClick":{actions:[Xy(),_R()],target:"idle"},"notations.unhighlight":{actions:M4()},"tag.unhighlight":{actions:M4()}}}),Wtt=mt.createStateConfig({entry:[ar.spawnChild("hotkeyActorLogic",{id:"hotkey"}),ar.assign({viewportBeforeFocus:({context:e})=>e.viewport,activeWalkthrough:({context:e,event:r})=>{Tt(r,"walkthrough.start");const n=r.stepId??Ff(e.xyedges).id;return{stepId:n,parallelPrefix:aE(n)}}}),Ky(),ko.fitFocusedBounds(),Ctt()],exit:ar.enqueueActions(({enqueue:e,context:r})=>{e.stopChild("hotkey"),r.viewportBeforeFocus?e(ko.setViewport({viewport:r.viewportBeforeFocus})):e(Km({delay:10})),r.dynamicViewVariant==="sequence"&&r.activeWalkthrough?.parallelPrefix&&e.assign({xynodes:r.xynodes.map(n=>n.type==="seq-parallel"?cr.setData(n,{color:R4.default}):n)}),e(z4()),e.assign({activeWalkthrough:null,viewportBeforeFocus:null}),e(Ett())}),on:{"key.esc":{target:"idle"},"key.arrow.left":{actions:ar.raise({type:"walkthrough.step",direction:"previous"})},"key.arrow.right":{actions:ar.raise({type:"walkthrough.step",direction:"next"})},"walkthrough.step":{actions:[ar.assign(({context:e,event:r})=>{const{stepId:n}=e.activeWalkthrough,o=e.xyedges.findIndex(s=>s.id===n),a=ds(r.direction==="next"?o+1:o-1,{min:0,max:e.xyedges.length-1});if(a===o)return{};const i=e.xyedges[a].id;return{activeWalkthrough:{stepId:i,parallelPrefix:aE(i)}}}),Ky(),ko.fitFocusedBounds(),rne()]},"xyflow.edgeClick":{actions:[ar.assign(({event:e,context:r})=>!q1(e.edge.id)||e.edge.id===r.activeWalkthrough?.stepId?{}:{activeWalkthrough:{stepId:e.edge.id,parallelPrefix:aE(e.edge.id)}}),Ky(),ko.fitFocusedBounds(),ER(),rne()]},"notations.unhighlight":{actions:Ky()},"tag.unhighlight":{actions:Ky()},"walkthrough.end":{target:"idle"},"xyflow.paneDblClick":{target:"idle"},"update.view":{guard:"is another view",actions:ar.raise(({event:e})=>e,{delay:50}),target:"idle"}}}),Ytt=mt.createStateConfig({initial:"idle",on:{"navigate.to":{guard:"is another view",actions:ar.assign({lastOnNavigate:({context:e,event:r})=>({fromView:e.view.id,toView:r.viewId,fromNode:r.fromNode??null})}),target:AR},"navigate.back":{guard:({context:e})=>e.navigationHistory.currentIndex>0,actions:ar.assign(Cet),target:AR},"navigate.forward":{guard:({context:e})=>e.navigationHistory.currentIndexe.features.enableFitView&&!e.viewportChangedManually,actions:[Qy(),Km({delay:200})]},"open.elementDetails":{guard:"enabled: ElementDetails",actions:SR()},"open.relationshipsBrowser":{actions:ar.sendTo(({system:e})=>jn(e).overlaysActorRef,({context:e,event:r,self:n})=>({type:"open.relationshipsBrowser",subject:r.fqn,viewId:e.view.id,scope:"view",closeable:!0,enableChangeScope:!0,enableSelectSubject:!0,openSourceActor:n}))},"open.relationshipDetails":{actions:ar.sendTo(({system:e})=>jn(e).overlaysActorRef,({context:e,event:r,self:n})=>({type:"open.relationshipDetails",viewId:e.view.id,openSourceActor:n,...r.params}))},"open.source":{actions:tne()},"walkthrough.start":{guard:"is dynamic view",target:".walkthrough"},"toggle.feature":{actions:[Dtt(),Zy()]},"xyflow.nodeMouseEnter":{actions:ktt()},"xyflow.nodeMouseLeave":{actions:_tt()},"xyflow.edgeMouseEnter":{actions:ztt()},"xyflow.edgeMouseLeave":{actions:Itt()},"xyflow.edgeDoubleClick":{guard:"not readonly",actions:gtt()},"notations.highlight":{actions:Rtt()},"notations.unhighlight":{actions:z4()},"tag.highlight":{actions:Ntt()},"tag.unhighlight":{actions:z4()},"open.search":{guard:"enabled: Search",actions:ar.sendTo(({system:e})=>jn(e).searchActorRef,({event:e})=>({type:"open",search:e.search}))}},exit:[Qy()],states:{idle:qtt,focused:Utt,walkthrough:Wtt}}),RR="likec4:diagram:toggledFeatures",gne={read(){try{let e=sessionStorage.getItem(RR);return e?JSON.parse(e):null}catch(e){return console.error(`Error reading fromStorage ${RR}:`,e),null}},write(e){return sessionStorage.setItem(RR,JSON.stringify(FNe(e,Hq))),e}},Gtt=mt.createMachine({initial:"initializing",context:({input:e})=>({...e,xyedges:[],xynodes:[],features:{...nX},toggledFeatures:gne.read()??{enableReadOnly:!0,enableCompareWithLatest:!1},initialized:{xydata:!1,xyflow:!1},viewportChangedManually:!1,lastOnNavigate:null,lastClickedNode:null,focusedNode:null,activeElementDetails:null,viewportBeforeFocus:null,viewportOnManualLayout:null,viewportOnAutoLayout:null,navigationHistory:{currentIndex:0,history:[]},viewport:{x:0,y:0,zoom:1},xyflow:null,dynamicViewVariant:e.dynamicViewVariant??(e.view._type==="dynamic"?e.view.variant:"diagram")??"diagram",activeWalkthrough:null}),states:{initializing:Btt,isReady:Ftt,ready:Ytt,navigating:Htt},on:{"xyflow.paneClick":{actions:[Xy(),_R()]},"xyflow.nodeClick":{actions:[Gy(),Qp()]},"xyflow.edgeClick":{actions:[Xy(),ER()]},"xyflow.applyNodeChanges":{actions:ar.assign({xynodes:({context:e,event:r})=>$x(r.changes,e.xynodes)})},"xyflow.applyEdgeChanges":{actions:ar.assign({xyedges:({context:e,event:r})=>Px(r.changes,e.xyedges)})},"xyflow.viewportMoved":{actions:ar.assign({viewportChangedManually:(({event:e})=>e.manually),viewport:(({event:e})=>e.viewport)})},fitDiagram:{guard:"enabled: FitView",actions:ko.fitDiagram()},"update.nodeData":{actions:ar.assign(Aet)},"update.edgeData":{actions:ar.assign(Ret)},"update.view":{actions:[ar.assign(Dre),Ott()]},"update.inputs":{actions:xtt()},"update.features":{actions:[vtt(),Ptt(),Mtt()]},"switch.dynamicViewVariant":{actions:wtt()},"emit.onChange":{actions:ytt()},"emit.onLayoutTypeChange":{actions:btt()}},exit:[I4(),Qy(),ar.stopChild("hotkey"),ar.stopChild("overlays"),ar.stopChild("search"),ar.assign({xyflow:null,xystore:null,xyedges:[],xynodes:[],initialized:{xydata:!1,xyflow:!1}})]}),Xtt=Gtt;function Ktt({view:e,zoomable:r,pannable:n,nodesDraggable:o,nodesSelectable:a,fitViewPadding:i,where:s,children:l,dynamicViewVariant:c}){const d=Ar(),u=KS(Xtt,{id:"diagram",systemId:"diagram",input:{xystore:d,view:e,zoomable:r,pannable:n,fitViewPadding:i,nodesDraggable:o,nodesSelectable:a,dynamicViewVariant:c}}),[h,f]=E.useState(()=>Nre(u));E.useEffect(()=>{f(b=>b.actor===u?b:Nre(u))},[u]),h.actor!==u&&console.warn("DiagramApi instance changed, this should not happen during the lifetime of the actor");const g=_r();return E.useEffect(()=>u.send({type:"update.features",features:g}),[g,u]),E.useEffect(()=>u.send({type:"update.inputs",inputs:{zoomable:r,pannable:n,fitViewPadding:i,nodesDraggable:o,nodesSelectable:a}}),[r,n,i,u,o,a]),qp(()=>{c&&u.send({type:"switch.dynamicViewVariant",variant:c})},[c,u]),console.debug("Render DiagramActorProvider for view",e.id),y.jsxs(BBe,{value:h,children:[y.jsxs(rX,{children:[y.jsx(trt,{view:e,where:s,actorRef:u}),y.jsx(Jtt,{actorRef:u,children:l})]}),y.jsx(rrt,{})]})}const Ztt=({context:e})=>{let r=e.toggledFeatures;const n=e.view.drifts!=null,o=e.features.enableCompareWithLatest&&(r.enableCompareWithLatest??!1)&&z7(e.activeWalkthrough)&&n,a=e.features.enableReadOnly||r.enableReadOnly||!!e.activeWalkthrough||e.dynamicViewVariant==="sequence"&&e.view._type==="dynamic"||o&&e.view._layout==="auto";return(r.enableReadOnly!==a||r.enableCompareWithLatest!==o)&&(r={...r,enableCompareWithLatest:o,enableReadOnly:a}),{toggledFeatures:r,viewId:e.view.id}},Qtt=(e,r)=>e.viewId===r.viewId&&an(e.toggledFeatures,r.toggledFeatures);function Jtt({children:e,actorRef:r}){const{viewId:n,toggledFeatures:o}=fn(r,Ztt,Qtt);qp(()=>{gne.write(o)},[o]);const a=Ko().findView(n);return y.jsx(ES.Provider,{value:a,children:y.jsx(Np,{overrides:o,children:e})})}const ert=e=>e.context.dynamicViewVariant;function trt({view:e,where:r,actorRef:n}){const o=fn(n,ert);return qE(()=>{n.send({type:"update.view",...ket({view:e,where:r,dynamicViewVariant:o})})},[e,r,o,n]),null}const rrt=E.memo(()=>{const e=Qt(),{onNavigateTo:r,onOpenSource:n,onChange:o,onLayoutTypeChange:a,handlersRef:i}=Fm();Fa("openSource",({params:l})=>n?.(l)),Fa("navigateTo",({viewId:l})=>r?.(l)),Fa("onChange",({change:l})=>o?.({change:l})),Fa("onLayoutTypeChange",({layoutType:l})=>{a?.(l)});const s=E.useRef(!1);return E.useEffect(()=>{if(s.current)return;let l=e.actor.on("initialized",({instance:c})=>{try{i.current.onInitialized?.({diagram:e,xyflow:c})}catch(d){console.error(d)}finally{s.current=!0,l?.unsubscribe(),l=null}});return()=>{l?.unsubscribe()}},[e]),null}),L4={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:e=>e>=255?255:e<0?0:e,g:e=>e>=255?255:e<0?0:e,b:e=>e>=255?255:e<0?0:e,h:e=>e%360,s:e=>e>=100?100:e<0?0:e,l:e=>e>=100?100:e<0?0:e,a:e=>e>=1?1:e<0?0:e},toLinear:e=>{const r=e/255;return e>.03928?Math.pow((r+.055)/1.055,2.4):r/12.92},hue2rgb:(e,r,n)=>(n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(r-e)*6*n:n<1/2?r:n<2/3?e+(r-e)*(2/3-n)*6:e),hsl2rgb:({h:e,s:r,l:n},o)=>{if(!r)return n*2.55;e/=360,r/=100,n/=100;const a=n<.5?n*(1+r):n+r-n*r,i=2*n-a;switch(o){case"r":return L4.hue2rgb(i,a,e+1/3)*255;case"g":return L4.hue2rgb(i,a,e)*255;case"b":return L4.hue2rgb(i,a,e-1/3)*255}},rgb2hsl:({r:e,g:r,b:n},o)=>{e/=255,r/=255,n/=255;const a=Math.max(e,r,n),i=Math.min(e,r,n),s=(a+i)/2;if(o==="l")return s*100;if(a===i)return 0;const l=a-i,c=s>.5?l/(2-a-i):l/(a+i);if(o==="s")return c*100;switch(a){case e:return((r-n)/l+(rr>n?Math.min(r,Math.max(n,e)):Math.min(n,Math.max(r,e)),round:e=>Math.round(e*1e10)/1e10},ort={dec2hex:e=>{const r=Math.round(e).toString(16);return r.length>1?r:`0${r}`}},Bt={channel:L4,lang:nrt,unit:ort},Xd={};for(let e=0;e<=255;e++)Xd[e]=Bt.unit.dec2hex(e);const Lo={ALL:0,RGB:1,HSL:2};class art{constructor(){this.type=Lo.ALL}get(){return this.type}set(r){if(this.type&&this.type!==r)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=r}reset(){this.type=Lo.ALL}is(r){return this.type===r}}class irt{constructor(r,n){this.color=n,this.changed=!1,this.data=r,this.type=new art}set(r,n){return this.color=n,this.changed=!1,this.data=r,this.type.type=Lo.ALL,this}_ensureHSL(){const r=this.data,{h:n,s:o,l:a}=r;n===void 0&&(r.h=Bt.channel.rgb2hsl(r,"h")),o===void 0&&(r.s=Bt.channel.rgb2hsl(r,"s")),a===void 0&&(r.l=Bt.channel.rgb2hsl(r,"l"))}_ensureRGB(){const r=this.data,{r:n,g:o,b:a}=r;n===void 0&&(r.r=Bt.channel.hsl2rgb(r,"r")),o===void 0&&(r.g=Bt.channel.hsl2rgb(r,"g")),a===void 0&&(r.b=Bt.channel.hsl2rgb(r,"b"))}get r(){const r=this.data,n=r.r;return!this.type.is(Lo.HSL)&&n!==void 0?n:(this._ensureHSL(),Bt.channel.hsl2rgb(r,"r"))}get g(){const r=this.data,n=r.g;return!this.type.is(Lo.HSL)&&n!==void 0?n:(this._ensureHSL(),Bt.channel.hsl2rgb(r,"g"))}get b(){const r=this.data,n=r.b;return!this.type.is(Lo.HSL)&&n!==void 0?n:(this._ensureHSL(),Bt.channel.hsl2rgb(r,"b"))}get h(){const r=this.data,n=r.h;return!this.type.is(Lo.RGB)&&n!==void 0?n:(this._ensureRGB(),Bt.channel.rgb2hsl(r,"h"))}get s(){const r=this.data,n=r.s;return!this.type.is(Lo.RGB)&&n!==void 0?n:(this._ensureRGB(),Bt.channel.rgb2hsl(r,"s"))}get l(){const r=this.data,n=r.l;return!this.type.is(Lo.RGB)&&n!==void 0?n:(this._ensureRGB(),Bt.channel.rgb2hsl(r,"l"))}get a(){return this.data.a}set r(r){this.type.set(Lo.RGB),this.changed=!0,this.data.r=r}set g(r){this.type.set(Lo.RGB),this.changed=!0,this.data.g=r}set b(r){this.type.set(Lo.RGB),this.changed=!0,this.data.b=r}set h(r){this.type.set(Lo.HSL),this.changed=!0,this.data.h=r}set s(r){this.type.set(Lo.HSL),this.changed=!0,this.data.s=r}set l(r){this.type.set(Lo.HSL),this.changed=!0,this.data.l=r}set a(r){this.changed=!0,this.data.a=r}}const B4=new irt({r:0,g:0,b:0,a:0},"transparent"),Jm={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:e=>{if(e.charCodeAt(0)!==35)return;const r=e.match(Jm.re);if(!r)return;const n=r[1],o=parseInt(n,16),a=n.length,i=a%4===0,s=a>4,l=s?1:17,c=s?8:4,d=i?0:-1,u=s?255:15;return B4.set({r:(o>>c*(d+3)&u)*l,g:(o>>c*(d+2)&u)*l,b:(o>>c*(d+1)&u)*l,a:i?(o&u)*l/255:1},e)},stringify:e=>{const{r,g:n,b:o,a}=e;return a<1?`#${Xd[Math.round(r)]}${Xd[Math.round(n)]}${Xd[Math.round(o)]}${Xd[Math.round(a*255)]}`:`#${Xd[Math.round(r)]}${Xd[Math.round(n)]}${Xd[Math.round(o)]}`}},Jp={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:e=>{const r=e.match(Jp.hueRe);if(r){const[,n,o]=r;switch(o){case"grad":return Bt.channel.clamp.h(parseFloat(n)*.9);case"rad":return Bt.channel.clamp.h(parseFloat(n)*180/Math.PI);case"turn":return Bt.channel.clamp.h(parseFloat(n)*360)}}return Bt.channel.clamp.h(parseFloat(e))},parse:e=>{const r=e.charCodeAt(0);if(r!==104&&r!==72)return;const n=e.match(Jp.re);if(!n)return;const[,o,a,i,s,l]=n;return B4.set({h:Jp._hue2deg(o),s:Bt.channel.clamp.s(parseFloat(a)),l:Bt.channel.clamp.l(parseFloat(i)),a:s?Bt.channel.clamp.a(l?parseFloat(s)/100:parseFloat(s)):1},e)},stringify:e=>{const{h:r,s:n,l:o,a}=e;return a<1?`hsla(${Bt.lang.round(r)}, ${Bt.lang.round(n)}%, ${Bt.lang.round(o)}%, ${a})`:`hsl(${Bt.lang.round(r)}, ${Bt.lang.round(n)}%, ${Bt.lang.round(o)}%)`}},Jy={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:e=>{e=e.toLowerCase();const r=Jy.colors[e];if(r)return Jm.parse(r)},stringify:e=>{const r=Jm.stringify(e);for(const n in Jy.colors)if(Jy.colors[n]===r)return n}},eb={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:e=>{const r=e.charCodeAt(0);if(r!==114&&r!==82)return;const n=e.match(eb.re);if(!n)return;const[,o,a,i,s,l,c,d,u]=n;return B4.set({r:Bt.channel.clamp.r(a?parseFloat(o)*2.55:parseFloat(o)),g:Bt.channel.clamp.g(s?parseFloat(i)*2.55:parseFloat(i)),b:Bt.channel.clamp.b(c?parseFloat(l)*2.55:parseFloat(l)),a:d?Bt.channel.clamp.a(u?parseFloat(d)/100:parseFloat(d)):1},e)},stringify:e=>{const{r,g:n,b:o,a}=e;return a<1?`rgba(${Bt.lang.round(r)}, ${Bt.lang.round(n)}, ${Bt.lang.round(o)}, ${Bt.lang.round(a)})`:`rgb(${Bt.lang.round(r)}, ${Bt.lang.round(n)}, ${Bt.lang.round(o)})`}},As={format:{keyword:Jy,hex:Jm,rgb:eb,rgba:eb,hsl:Jp,hsla:Jp},parse:e=>{if(typeof e!="string")return e;const r=Jm.parse(e)||eb.parse(e)||Jp.parse(e)||Jy.parse(e);if(r)return r;throw new Error(`Unsupported color format: "${e}"`)},stringify:e=>!e.changed&&e.color?e.color:e.type.is(Lo.HSL)||e.data.r===void 0?Jp.stringify(e):e.a<1||!Number.isInteger(e.r)||!Number.isInteger(e.g)||!Number.isInteger(e.b)?eb.stringify(e):Jm.stringify(e)},yne=(e,r)=>{const n=As.parse(e);for(const o in r)n[o]=Bt.channel.clamp[o](r[o]);return As.stringify(n)},srt=(e,r,n=0,o=1)=>{if(typeof e!="number")return yne(e,{a:r});const a=B4.set({r:Bt.channel.clamp.r(e),g:Bt.channel.clamp.g(r),b:Bt.channel.clamp.b(n),a:Bt.channel.clamp.a(o)});return As.stringify(a)},bne=e=>As.format.hex.stringify(As.parse(e)),vne=e=>As.format.rgba.stringify(As.parse(e)),lrt=(e,r)=>{const n=As.parse(e),o={};for(const a in r)r[a]&&(o[a]=n[a]+r[a]);return yne(e,o)},xne=(e,r,n=50)=>{const{r:o,g:a,b:i,a:s}=As.parse(e),{r:l,g:c,b:d,a:u}=As.parse(r),h=n/100,f=h*2-1,g=s-u,b=((f*g===-1?f:(f+g)/(1+f*g))+1)/2,x=1-b,w=o*b+l*x,k=a*b+c*x,C=i*b+d*x,_=s*h+u*(1-h);return srt(w,k,C,_)},wne=(e,r)=>{const n=As.parse(e),o={},a=(i,s,l)=>s>0?(l-i)*s/100:i*s/100;for(const i in r)o[i]=a(n[i],r[i],Bt.channel.max[i]);return lrt(e,o)},kne=e=>`[data-mantine-color-scheme="${e}"]`,_ne=kne("dark"),crt=kne("light"),drt=5,urt=(e,r,n,o)=>{const a=l=>bne(wne(l,{l:-22-5*o,s:-10-6*o})),i=l=>bne(wne(l,{l:-20-3*o,s:-3-6*o})),s=`:where(${e} [data-likec4-color="${r}"][data-compound-depth="${o}"])`;return` -${s} { + `});const XYe=fe({fontWeight:500,letterSpacing:"0.2px",paddingTop:"0",paddingBottom:"0",textTransform:"lowercase",transition:"all 150ms ease-in-out",cursor:"pointer","--badge-radius":"2px","--badge-fz":"9.5px","--badge-padding-x":"3px","--badge-height":"13.5px","--badge-lh":"1","--badge-bg":"var(--likec4-palette-fill)","--badge-color":"var(--likec4-palette-hiContrast)"}),ZYe=[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0",key:"svg-0"}],["path",{d:"M12 16v.01",key:"svg-1"}],["path",{d:"M12 13a2 2 0 0 0 .914 -3.782a1.98 1.98 0 0 0 -2.414 .483",key:"svg-2"}]],KYe=wt("outline","help-circle","HelpCircle",ZYe),QYe=[["path",{d:"M7 7l10 10",key:"svg-0"}],["path",{d:"M17 8l0 9l-9 0",key:"svg-1"}]],JYe=wt("outline","arrow-down-right","ArrowDownRight",QYe),eXe=({value:e})=>{const{title:r,color:n="primary",shape:o="rectangle"}=e,[a,i]=S.useState(null),l=Nt(),s=300,c=200;return y.jsx(Jw,{shadow:"none",px:"xs",py:"sm",className:Ge(YYe),"data-likec4-color":n,onMouseEnter:()=>{i(null),l.highlightNotation(e)},onMouseLeave:()=>{i(null),l.unhighlightNotation()},children:y.jsxs(en,{gap:"sm",align:"stretch",wrap:"nowrap",children:[y.jsx(Se,{flex:"0 0 70px",style:{position:"relative",width:70,height:MEe(70*(c/s),0)},children:y.jsx(lm,{data:{shape:o,width:s,height:c}})}),y.jsxs(Io,{gap:4,flex:1,children:[y.jsx(en,{gap:4,flex:"0 0 auto",children:e.kinds.map(d=>y.jsx(Ks,{className:Ge(XYe),onMouseEnter:()=>{i(d),l.highlightNotation(e,d)},onMouseLeave:()=>{i(null),l.highlightNotation(e)},opacity:IV(a)&&a!==d?.25:1,children:d},d))}),y.jsx(at,{component:"div",fz:"sm",fw:500,lh:"1.25",style:{textWrap:"pretty"},children:r})]})]})})},tXe=e=>({id:e.view.id,notations:e.view.notation?.nodes??[]}),rXe=S.memo(()=>{const e=pC(s=>s.height),{id:r,notations:n}=ci(tXe),[o,a]=X$e({key:"notation-webview-collapsed",defaultValue:!0}),i=n.length>0,l=fm();return y.jsxs(Cn,{children:[!i&&y.jsx(pi.div,{initial:{opacity:.75,translateX:"50%"},animate:{opacity:1,translateX:0},exit:{translateX:"100%",opacity:.6},className:W$,children:y.jsx(_n,{label:"View has no notations",color:"orange",...l,children:y.jsx($a,{size:"lg",variant:"light",color:"orange",radius:"md",children:y.jsx(tee,{})})})},"empty"),i&&o&&y.jsx(pi.div,{initial:{opacity:.75,translateX:"50%"},animate:{opacity:1,translateX:0},exit:{translateX:"100%",opacity:.6},className:W$,children:y.jsx(_n,{label:"Show notation",color:"dark",fz:"xs",...l,children:y.jsx(lr,{size:"lg",variant:"default",color:"gray",className:UYe,onClick:()=>a(!1),children:y.jsx(KYe,{stroke:1.5})})})},"collapsed"),i&&!o&&y.jsx(pi.div,{initial:{opacity:.75,scale:.2},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.25},className:Ge("react-flow__panel",W$),style:{transformOrigin:"bottom right"},children:y.jsx($f,{radius:"sm",withBorder:!0,shadow:"lg",className:WYe,children:y.jsxs(op,{defaultValue:"first",radius:"xs",children:[y.jsxs(py,{children:[y.jsx(lr,{size:"md",variant:"subtle",color:"gray",ml:2,style:{alignSelf:"center"},onClick:()=>a(!0),children:y.jsx(JYe,{stroke:2})}),y.jsx(Nf,{value:"first",fz:"xs",children:"Elements"}),y.jsx(Nf,{value:"second",fz:"xs",disabled:!0,children:"Relationships"})]}),y.jsx(Js,{value:"first",className:GYe,hidden:o,children:y.jsx(ta,{viewportProps:{style:{maxHeight:`min(40vh, ${Math.max(e-60,50)}px)`}},children:y.jsx(Io,{gap:0,children:n.map((s,c)=>y.jsx(eXe,{value:s},c))})})})]})})},r)]})}),nXe=S.memo(()=>{const[{layout:e,isActive:r},{toggleCompare:n}]=H$(),o=e==="manual"?"var(--mantine-color-orange-6)":"var(--mantine-color-green-6)";return y.jsx(hr,{className:qn({position:"absolute",top:"0",left:"0",width:"full",height:"full",border:"default",borderWidth:4,pointerEvents:"none",alignItems:"flex-start",justifyContent:"center"}),style:{zIndex:"9999",display:r?void 0:"none",borderColor:o},children:y.jsx(oXe,{style:{backgroundColor:o},onClick:a=>{a.stopPropagation(),n()},children:"Close compare"})})}),oXe=pr.withProps({className:fe({fontSize:"xs",fontWeight:"medium",py:"1.5",lineHeight:"1",borderBottomLeftRadius:"sm",borderBottomRightRadius:"sm",transform:"translateY(-4px)",px:"4",color:"mantine.colors.gray[9]",pointerEvents:"all",_active:{transform:"translateY(-3px)"}})}),gee=S.memo(()=>{const{enableControls:e,enableNotations:r,enableSearch:n,enableRelationshipDetails:o,enableReadOnly:a,enableCompareWithLatest:i}=sr(),l=H4e(),s=WNe(),c=YNe(),d=S.useCallback(()=>{console.warn("DiagramUI: resetting error boundary and rerendering..."),l()},[]);return y.jsxs(pS,{onReset:d,children:[e&&y.jsx(mee,{}),s&&y.jsx(tUe,{overlaysActorRef:s}),r&&y.jsx(rXe,{}),n&&c&&y.jsx(FUe,{searchActorRef:c}),o&&a&&y.jsx(tWe,{}),i&&y.jsx(nXe,{})]})});gee.displayName="DiagramUI";function yee({edgeProps:{data:e},svgPath:r}){const n=e.drifts;return!n||n.length===0?null:y.jsx("path",{className:Ge("react-flow__edge-path",fe({pointerEvents:"none",stroke:"likec4.compare.manual.outline",fill:"none",strokeWidth:{base:"8px",_whenHovered:"12px"},strokeOpacity:.5})),d:r,strokeLinecap:"round"})}const aXe=fe({overflow:"visible",position:"absolute",pointerEvents:"none",top:"0",left:"0",mixBlendMode:{_dark:"screen",_light:"multiply"}}),iXe=fe({fill:"[var(--xy-edge-stroke)]",stroke:"transparent",fillOpacity:.5,strokeWidth:10,r:4,cursor:"grab",pointerEvents:"all",visibility:"hidden",transitionDuration:"120ms",transitionProperty:"visibility, fill, fill-opacity, r",transitionTimingFunction:"inOut",transitionDelay:"20ms",":where([data-likec4-selected='true'], [data-likec4-hovered='true']) &":{visibility:"visible",fillOpacity:1,transitionTimingFunction:"out",transitionDelay:"0ms"},":where([data-likec4-selected='true']) &":{r:6},":is([data-likec4-hovered='true']) &":{r:8},_hover:{fill:"mantine.colors.primary.filledHover",r:10,transitionDuration:"100ms"},_groupActive:{cursor:"grabbing"}});function lXe({sourceX:e,sourceY:r,targetX:n,targetY:o,data:a}){const[i,l]=S.useState(()=>a.controlPoints??q3(a.points));Ed(()=>{const c=a.controlPoints??q3(a.points);l(d=>tt(d,c)?d:c)},[a.controlPoints?.map(c=>`${Math.round(c.x)},${Math.round(c.y)}`).join("|")??"",a.points.map(c=>`${Math.round(c[0])},${Math.round(c[1])}`).join("|")]);const s=it(({x:c,y:d})=>{const u=Qr(e,r),p=Qr(n,o),f=[a.dir==="back"?p:u,...i.map(Qr)||[],a.dir==="back"?u:p],g=Qr(c,d).round();let v=0,w=1/0;for(let k=0;k=0))throw new Error(`invalid digits: ${e}`);if(r>15)return bee;const n=10**r;return function(o){this._+=o[0];for(let a=1,i=o.length;akp)if(!(Math.abs(p*c-d*u)>kp)||!i)this._append`L${this._x1=r},${this._y1=n}`;else{let g=o-l,v=a-s,w=c*c+d*d,x=g*g+v*v,k=Math.sqrt(w),C=Math.sqrt(f),_=i*Math.tan((G$-Math.acos((w+f-x)/(2*k*C)))/2),$=_/C,z=_/k;Math.abs($-1)>kp&&this._append`L${r+$*u},${n+$*p}`,this._append`A${i},${i},0,0,${+(p*g>u*v)},${this._x1=r+z*c},${this._y1=n+z*d}`}}arc(r,n,o,a,i,l){if(r=+r,n=+n,o=+o,l=!!l,o<0)throw new Error(`negative radius: ${o}`);let s=o*Math.cos(a),c=o*Math.sin(a),d=r+s,u=n+c,p=1^l,f=l?a-i:i-a;this._x1===null?this._append`M${d},${u}`:(Math.abs(this._x1-d)>kp||Math.abs(this._y1-u)>kp)&&this._append`L${d},${u}`,o&&(f<0&&(f=f%Y$+Y$),f>sXe?this._append`A${o},${o},0,1,${p},${r-s},${n-c}A${o},${o},0,1,${p},${this._x1=d},${this._y1=u}`:f>kp&&this._append`A${o},${o},0,${+(f>=G$)},${p},${this._x1=r+o*Math.cos(i)},${this._y1=n+o*Math.sin(i)}`)}rect(r,n,o,a){this._append`M${this._x0=this._x1=+r},${this._y0=this._y1=+n}h${o=+o}v${+a}h${-o}Z`}toString(){return this._}}function uXe(e){let r=3;return e.digits=function(n){if(!arguments.length)return r;if(n==null)r=null;else{const o=Math.floor(n);if(!(o>=0))throw new RangeError(`invalid digits: ${n}`);r=o}return e},()=>new dXe(r)}function pXe(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function xee(e){this._context=e}xee.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,r){switch(e=+e,r=+r,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break;case 1:this._point=2;default:this._context.lineTo(e,r);break}}};function hXe(e){return new xee(e)}function fXe(e){return e[0]}function mXe(e){return e[1]}function gXe(e,r){var n=vm(!0),o=null,a=hXe,i=null,l=uXe(s);e=typeof e=="function"?e:e===void 0?fXe:vm(e),r=typeof r=="function"?r:r===void 0?mXe:vm(r);function s(c){var d,u=(c=pXe(c)).length,p,f=!1,g;for(o==null&&(i=a(g=l())),d=0;d<=u;++d)!(dvee){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,c=3*e._l01_a*(e._l01_a+e._l12_a);o=(o*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/c,a=(a*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/c}if(e._l23_a>vee){var d=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,u=3*e._l23_a*(e._l23_a+e._l12_a);i=(i*d+e._x1*e._l23_2a-r*e._l12_2a)/u,l=(l*d+e._y1*e._l23_2a-n*e._l12_2a)/u}e._context.bezierCurveTo(o,a,i,l,e._x2,e._y2)}function kee(e,r){this._context=e,this._alpha=r}kee.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,r){if(e=+e,r=+r,this._point){var n=this._x2-e,o=this._y2-r;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+o*o,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break;case 1:this._point=2;break;case 2:this._point=3;default:wee(this,e,r);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=r}},(function e(r){function n(o){return r?new kee(o,r):new Z$(o,0)}return n.alpha=function(o){return e(+o)},n})(.5);function _ee(e,r){this._context=e,this._alpha=r}_ee.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,r){if(e=+e,r=+r,this._point){var n=this._x2-e,o=this._y2-r;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+o*o,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:wee(this,e,r);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=r}};const yXe=(function e(r){function n(o){return r?new _ee(o,r):new K$(o,0)}return n.alpha=function(o){return e(+o)},n})(.5),vXe=gXe().curve(yXe.alpha(.7)).x(e=>Math.round(e.x)).y(e=>Math.round(e.y)),bXe=(e,r)=>cK(e.sourceNode,r.sourceNode)&&cK(e.targetNode,r.targetNode);function xXe({props:{sourceX:e,sourceY:r,source:n,target:o,targetX:a,targetY:i,data:l},controlPoints:s,isControlPointDragging:c}){const{sourceNode:d,targetNode:u}=pC(S.useCallback(({nodeLookup:p})=>{const f=mt(p.get(n),`source node ${n} not found`),g=mt(p.get(o),`target node ${o} not found`);return{sourceNode:gC(f),targetNode:gC(g)}},[n,o]),bXe);if(Kn(l.controlPoints)||c){const p={x:e,y:r},f={x:a,y:i},g=6,v=l.dir==="back"?[f,V3(u,df(s)??p,g),...s,V3(d,rd(s)??f,g),p]:[p,V3(d,df(s)??f,g),...s,V3(u,rd(s)??p,g),f];return mt(vXe(v))}return RFe(l.points)}const See=e=>{const r=e.getPointAtLength(e.getTotalLength()*.5);return{x:Math.round(r.x),y:Math.round(r.y)}},Eee=g$(e=>{const[r,n]=S.useState(!1),o=S.useRef(r);o.current=r;const a=aK(),i=Nt(),{enableNavigateTo:l,enableReadOnly:s,enableCompareWithLatest:c}=sr(),d=!s,{id:u,selected:p=!1,data:{labelBBox:f,labelXY:g,...v}}=e,w=l&&!r?v.navigateTo:void 0,{controlPoints:x,setControlPoints:k,insertControlPoint:C}=lXe(e);let _=xXe({props:e,controlPoints:x,isControlPointDragging:r}),$=f?.x??0,z=f?.y??0;const[j,A]=S.useState({x:g?.x??$,y:g?.y??z});Ed(()=>{if(o.current)return;const V={x:$,y:z};A(B=>H3(B,V)?B:V)},[$,z]);const R=S.useRef(null);S.useEffect(()=>{const V=R.current;if(!V||!r)return;const B=See(V);A(F=>H3(F,B)?F:B)},[_,r]);const T=it(V=>{const B=R.current?See(R.current):null;f&&B?i.updateEdgeData(u,{controlPoints:V,labelBBox:{...f,...B}}):i.updateEdgeData(u,{controlPoints:V}),i.stopEditing(!0),n(!1)}),O=it(()=>{i.startEditing("edge"),n(!0)}),P=it(()=>{i.stopEditing(),n(!1)}),L=it(V=>{k(V),requestAnimationFrame(()=>{T(V)})}),H=it(V=>{i.startEditing("edge"),n(!0),k(V),requestAnimationFrame(()=>{T(V)})}),M=it(V=>{if(V.pointerType!=="mouse"||V.button!==2&&!p)return;V.stopPropagation(),V.preventDefault(),i.startEditing("edge");const B=C(a.screenToFlowPosition({x:V.clientX,y:V.clientY},{snapToGrid:!1}));i.updateEdgeData(u,{controlPoints:B}),i.stopEditing(!0)});return r&&!e.data.hovered&&(e={...e,data:{...e.data,hovered:!0}}),y.jsxs(y.Fragment,{children:[y.jsxs(Ky,{...e,className:fe({"& .react-flow__edge-interaction":{cursor:d&&p?"copy":void 0}}),children:[y.jsx(Qy,{edgeProps:e,svgPath:_,ref:R,isDragging:r,...d&&{onEdgePointerDown:M}}),c&&y.jsx(yee,{edgeProps:e,svgPath:_}),f&&y.jsx(o2,{edgeProps:e,labelPosition:r?j:{x:$,y:z},children:y.jsx(Zy,{pointerEvents:d?"none":"all",edgeProps:e,children:w&&y.jsx(n2,{onClick:V=>{V.stopPropagation(),i.navigateTo(w)}})})})]}),d&&x.length>0&&y.jsx(wXe,{isControlPointDragging:r,edgeProps:e,controlPoints:x,onMove:k,onStartMove:O,onCancelMove:P,onFinishMove:L,onDelete:H,zIndex:9999})]})});Eee.displayName="RelationshipEdge";function wXe({isControlPointDragging:e,edgeProps:r,controlPoints:n,onMove:o,onStartMove:a,onCancelMove:i,onFinishMove:l,onDelete:s,zIndex:c}){const d=hC(),u=aK(),p=r.data.id,f=(x,k,C)=>{let _=!1,$={x:k.clientX,y:k.clientY},z=null,j=n;const A=T=>{const O={x:T.clientX,y:T.clientY};H3($,O)||(_||(_=!0,a()),$=O,z??=requestAnimationFrame(()=>{z=null,j=j.slice();const{x:P,y:L}=u.screenToFlowPosition($,{snapToGrid:!1});j[x]={x:Math.round(P),y:Math.round(L)},o(j)})),T.stopPropagation()},R=T=>{T.stopPropagation(),C.removeEventListener("pointermove",A,{capture:!0}),C.removeEventListener("click",Q$,{capture:!0}),_?l(j):i()};C.addEventListener("pointermove",A,{capture:!0}),C.addEventListener("pointerup",R,{once:!0,capture:!0}),C.addEventListener("click",Q$,{capture:!0,once:!0})},g=(x,k)=>{if(n.length<=1)return;k.stopPropagation(),k.preventDefault();const C=n.slice();C.splice(x,1),setTimeout(()=>{s(C)},10)},v=it(x=>{const{domNode:k,addSelectedEdges:C,edges:_,unselectNodesAndEdges:$}=d.getState();if(!k||x.pointerType!=="mouse")return;const z=parseFloat(x.currentTarget.getAttribute("data-control-point-index")||"");if(isNaN(z))throw new Error("data-control-point-index is not a number");switch(x.button){case 0:{x.stopPropagation(),$({edges:_.filter(j=>j.selected&&j.id!==p)}),C([p]),f(z,x,k);break}case 2:g(z,x);break}}),w=it(x=>{const{domNode:k}=d.getState();if(!k||x.pointerType!=="mouse")return;const C=parseFloat(x.currentTarget.getAttribute("data-control-point-index")||"");if(isNaN(C))throw new Error("data-control-point-index is not a number");g(C,x)});return y.jsx(gV,{children:y.jsx(Ky,{component:"svg",className:aXe,...r,style:{...r.style,zIndex:c},children:y.jsx("g",{"data-active":e?!0:void 0,className:"group",onContextMenu:Q$,children:n.map((x,k)=>y.jsx("circle",{"data-control-point-index":k,onPointerDownCapture:v,onDoubleClick:w,className:Ge("nodrag nopan",iXe),cx:x.x,cy:x.y},"controlPoints"+p+"#"+k))})})})}const Q$=e=>{e.stopPropagation(),e.preventDefault()},k2=16;function kXe(e){const{enableNavigateTo:r,enableCompareWithLatest:n}=sr(),o=Nt(),{navigateTo:a}=e.data,i=e.source===e.target,l=e.sourceX>e.targetX,[s]=Dx({sourceX:e.sourceX,sourceY:e.sourceY,sourcePosition:e.sourcePosition,targetX:e.targetX,targetY:e.targetY,targetPosition:e.targetPosition,...i&&{offset:30,borderRadius:16}});let c=e.sourceX;switch(!0){case i:c=e.sourceX+24+k2;break;case l:c=e.sourceX-k2;break;default:c=e.sourceX+k2;break}return y.jsxs(Ky,{...e,children:[y.jsx(Qy,{edgeProps:e,svgPath:s}),n&&y.jsx(yee,{edgeProps:e,svgPath:s}),y.jsx(o2,{edgeProps:e,labelPosition:{x:c,y:e.sourceY+(i?0:k2),translate:l?"translate(-100%, 0)":void 0},children:y.jsx(Zy,{edgeProps:e,children:r&&a&&y.jsx(n2,{onClick:d=>{d.stopPropagation(),o.navigateTo(a)}})})})]})}const _Xe=(e,r)=>tt(e.data.id,r.data.id)&&tt(e.selected??!1,r.selected??!1)&&tt(e.data.modelFqn??null,r.data.modelFqn??null)&&tt(e.data.navigateTo??null,r.data.navigateTo??null)&&tt(e.data.hovered??!1,r.data.hovered??!1)&&(!e.extraButtons&&!r.extraButtons||Or(e.extraButtons,r.extraButtons)),Cee=S.memo(({extraButtons:e,...r})=>{const{enableNavigateTo:n,enableRelationshipBrowser:o}=sr(),a=Nt(),{id:i,navigateTo:l,modelFqn:s}=r.data;let c=S.useMemo(()=>{const d=[];return l&&n&&d.push({key:"navigate",icon:y.jsx(gi,{}),onClick:u=>{u.stopPropagation(),a.navigateTo(l,i)}}),o&&d.push({key:"relationships",icon:y.jsx(Jy,{}),onClick:u=>{u.stopPropagation(),a.openRelationshipsBrowser(s)}}),d},[n,o,s,l,i,a]);return e&&xn(e,1)&&(c=[...c,...e]),y.jsx(i2,{...r,buttons:c})},_Xe),SXe=({extraButtons:e,...r})=>{const{enableNavigateTo:n,enableRelationshipBrowser:o}=sr(),a=Nt(),{id:i,navigateTo:l,modelFqn:s}=r.data;let c=S.useMemo(()=>{const d=[];return l&&n&&d.push({key:"navigate",icon:y.jsx(gi,{}),onClick:u=>{u.stopPropagation(),a.navigateTo(l,i)}}),o&&s&&d.push({key:"relationships",icon:y.jsx(Jy,{}),onClick:u=>{u.stopPropagation(),a.openRelationshipsBrowser(s)}}),d},[n,o,s,l,i]);return e&&xn(e,1)&&(c=[...c,...e]),y.jsx(i2,{...r,buttons:c})};function bm({nodeProps:{data:e},position:r="bottom"}){const n=e.drifts;if(!n||n.length===0)return null;const o=r==="top"?Ue.Top:Ue.Bottom;return y.jsx(hr,{className:"likec4-node-drifts",css:{display:"contents","& + .likec4-element-shape":{outlineColor:"likec4.compare.manual.outline",outlineWidth:"4px",outlineStyle:"dashed",outlineOffset:"1.5"}},children:y.jsx(g7,{isVisible:e.hovered===!0,align:"start",position:o,children:y.jsx(dy,{color:"orange",withBorder:!1,withCloseButton:!1,title:"Changes:",children:n.map(a=>y.jsxs(at,{mt:2,size:"sm",lh:"xs",children:["- ",a]},a))})})})}function EXe({data:{hovered:e=!1},icon:r,onClick:n}){const o=R7(e,e?130:0)[0]&&e;return y.jsx(zr,{initial:!1,animate:{scale:o?1.2:1,x:o?-1:0,y:o?-1:0},whileHover:{scale:1.4,x:-3,y:-1},className:"likec4-compound-navigation compound-action",whileTap:{scale:1},onClick:nn,children:y.jsx(lr,{className:Ge("nodrag nopan",TQ({delay:e&&!o}),L3({variant:"transparent"})),onClick:n,onDoubleClick:nn,children:r??y.jsx(gi,{stroke:2})})})}const $ee=e=>{const{enableNavigateTo:r}=sr(),n=Nt(),{navigateTo:o}=e.data;return o&&r?y.jsx(EXe,{onClick:a=>{a.stopPropagation(),n.navigateTo(o,e.id)},...e}):null},zee=_n.withProps({color:"dark",fz:"xs",openDelay:400,closeDelay:150,label:"",children:null,offset:4,withinPortal:!1});function _2({fqn:e}){const r=Nt();return y.jsx(zee,{label:"Browse relationships",children:y.jsx(lr,{size:"sm",variant:"subtle",color:"gray",onClick:n=>{n.stopPropagation(),r.openRelationshipsBrowser(e)},children:y.jsx(Jy,{stroke:2,style:{width:"72%",height:"72%"}})})})}function S2(e){const{onOpenSource:r}=um();return r?y.jsx(zee,{label:"Open source",children:y.jsx(lr,{size:"sm",variant:"subtle",color:"gray",onClick:n=>{n.stopPropagation(),e.elementId?r?.({element:e.elementId}):e.deploymentId&&r?.({deployment:e.deploymentId})},children:y.jsx(am,{stroke:1.8,style:{width:"70%"}})})}):null}function Ree(){const e=S.useContext(fy);e||console.error("No LikeC4ModelContext found");const r=e?.$styles??JN.DEFAULT,[n,o]=S.useState(r);return S.useEffect(()=>{o(a=>a.equals(r)?a:r)},[r]),n}const jee=["primary","secondary","muted"];function E2({elementColor:e,elementOpacity:r,onColorPreview:n,isOpacityEditable:o=!1,onChange:a,...i}){const{theme:l}=Ree();return y.jsxs(br,{clickOutsideEvents:["pointerdown","mousedown","click"],position:"right-end",offset:2,withinPortal:!1,...i,children:[y.jsx(hd,{children:y.jsx(Vn,{variant:"subtle",color:"gray",size:"compact-xs",px:3,children:y.jsx(iy,{color:l.colors[e].elements.fill,size:14,withShadow:!0,style:{color:"#fff",cursor:"pointer"}})})}),y.jsxs(Xs,{p:"xs",children:[y.jsx(CXe,{theme:l,elementColor:e,onColorPreview:n,onChange:s=>a({color:s})}),o&&y.jsxs(y.Fragment,{children:[y.jsx(nS,{h:"xs"}),y.jsx(tp,{label:"opacity",labelPosition:"left"}),y.jsx(nS,{h:"xs"}),y.jsx($Xe,{elementOpacity:r,onOpacityChange:s=>{a({opacity:s})}})]})]})]})}function CXe({theme:e,elementColor:r,onColorPreview:n,onChange:o}){const a=l=>s=>{s.stopPropagation(),n(null),r!==l&&o(l)},i=x7(e.colors).filter(l=>!jee.includes(l));return y.jsx(Io,{gap:2,onMouseLeave:()=>n(null),children:y.jsxs(np,{openDelay:1e3,closeDelay:300,children:[y.jsx(Zs,{maw:120,gap:"6",justify:"flex-start",align:"flex-start",direction:"row",wrap:"wrap",children:jee.map(l=>y.jsx(_n,{label:l,fz:"xs",color:"dark",offset:2,withinPortal:!1,transitionProps:{duration:140,transition:"slide-up"},children:y.jsx(iy,{color:e.colors[l].elements.fill,size:18,withShadow:!0,onMouseEnter:()=>n(l),onClick:a(l),style:{color:"#fff",cursor:"pointer"},children:r===l&&y.jsx(LU,{style:{width:$e(10),height:$e(10)}})})},l))}),y.jsx(Zs,{mt:"sm",maw:110,gap:"6",justify:"flex-start",align:"flex-start",direction:"row",wrap:"wrap",children:i.map(l=>y.jsx(_n,{label:l,fz:"xs",color:"dark",offset:2,transitionProps:{duration:140,transition:"slide-up"},children:y.jsx(iy,{color:e.colors[l].elements.fill,size:18,onMouseEnter:()=>n(l),onClick:a(l),style:{color:"#fff",cursor:"pointer"},children:r===l&&y.jsx(LU,{style:{width:$e(10),height:$e(10)}})})},l))})]})})}function $Xe({elementOpacity:e=100,onOpacityChange:r}){const[n,o]=S.useState(e);return U4e(()=>{o(e)},[e]),y.jsx(rS,{size:"sm",color:"dark",value:n,onChange:o,onChangeEnd:r})}const zXe=fe({color:"mantine.colors.dimmed",fontSize:"10px",fontWeight:600,maxWidth:"220px",cursor:"default",userSelect:"all",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"}),RXe=()=>ci(e=>e.xynodes.filter(r=>r.selected).length);function C2({title:e,children:r,nodeProps:n,...o}){const a=RXe(),{selected:i=!1,dragging:l=!1,data:{hovered:s=!1}}=n,c=s&&a===0||i&&a===1;let d=150;c?i?d=100:d=1e3:a>0&&(d=50);const[u]=R7(c,d);return u?y.jsx(g7,{isVisible:!l,offset:4,...o,children:y.jsx($f,{className:Ge("nodrag","nopan"),px:5,pb:8,pt:4,radius:"sm",shadow:"xl",onDoubleClickCapture:nn,onPointerDown:nn,onClick:nn,onDoubleClick:nn,withBorder:!0,children:y.jsxs(Io,{gap:"6px",children:[y.jsx(Se,{px:"4px",children:y.jsx(at,{className:zXe,children:e})}),y.jsx(en,{gap:4,children:r})]})})}):null}function $2(e,r){const n=Nt(),[o,a]=S.useState(null),i=it(s=>{if(s===null){if(!o)return;a(null),n.updateNodeData(r.data.id,{color:o});return}a(c=>c??r.data.color),n.updateNodeData(r.data.id,{color:s})}),l=it(s=>{const{shape:c,color:d,...u}=s;n.updateNodeData(r.data.id,{...c&&{shape:c},...d&&{color:d},style:u}),n.triggerChange({op:"change-element-style",style:s,targets:[e]})});return{elementColor:o??r.data.color,onColorPreview:i,onChange:l}}function jXe(e){const{enableVscode:r,enableRelationshipBrowser:n}=sr(),{data:{style:o,modelFqn:a}}=e,{elementColor:i,onColorPreview:l,onChange:s}=$2(a,e),c=o?.opacity??100;return y.jsxs(C2,{nodeProps:e,title:a,align:"start",children:[y.jsx(E2,{elementColor:i,onColorPreview:l,isOpacityEditable:!0,elementOpacity:c,onChange:s,position:"left-start"}),y.jsx(Tee,{elementBorderStyle:o?.border??(c<99?"dashed":"none"),onChange:s}),r&&y.jsx(S2,{elementId:a}),n&&y.jsx(_2,{fqn:a})]})}function TXe(e){const{enableVscode:r,enableRelationshipBrowser:n}=sr(),{data:{deploymentFqn:o,style:a,modelFqn:i}}=e,{elementColor:l,onColorPreview:s,onChange:c}=$2(o,e);return y.jsxs(C2,{nodeProps:e,title:o,align:"start",children:[y.jsx(E2,{elementColor:l,onColorPreview:s,isOpacityEditable:!0,elementOpacity:a?.opacity,onChange:c,position:"left-start"}),y.jsx(Tee,{elementBorderStyle:a?.border,onChange:c}),r&&y.jsx(S2,{deploymentId:o}),n&&i&&y.jsx(_2,{fqn:i})]})}function Tee({elementBorderStyle:e="dashed",onChange:r}){const[n,o]=S.useState(e);return S.useEffect(()=>{o(e)},[e]),y.jsx(Se,{children:y.jsx(Mf,{size:"xs",fullWidth:!0,withItemsBorders:!1,value:n,onChange:a=>{const i=a;o(i),r({border:i})},styles:{label:{paddingTop:"0.5",paddingBottom:"0.5"}},data:[{label:"Solid",value:"solid"},{label:"Dashed",value:"dashed"},{label:"Dotted",value:"dotted"},{label:"None",value:"none"}]})})}function AXe(e){const{enableVscode:r,enableRelationshipBrowser:n}=sr(),{data:{shape:o,modelFqn:a}}=e,{elementColor:i,onColorPreview:l,onChange:s}=$2(a,e);return y.jsxs(C2,{nodeProps:e,title:a,align:"start",children:[y.jsx(Aee,{elementShape:o,onChange:s}),y.jsx(E2,{elementColor:i,onColorPreview:l,onChange:s,position:"right-end"}),r&&y.jsx(S2,{elementId:a}),n&&y.jsx(_2,{fqn:a})]})}function DXe(e){const{enableVscode:r,enableRelationshipBrowser:n}=sr(),{data:{shape:o,deploymentFqn:a,modelFqn:i}}=e,{elementColor:l,onColorPreview:s,onChange:c}=$2(a,e);return y.jsxs(C2,{nodeProps:e,title:a,align:"start",children:[y.jsx(Aee,{elementShape:o,onChange:c}),y.jsx(E2,{elementColor:l,onColorPreview:s,onChange:c,position:"right-end"}),r&&y.jsx(S2,{deploymentId:a}),n&&i&&y.jsx(_2,{fqn:i})]})}function Aee({elementShape:e,onChange:r}){return y.jsxs(tn,{openDelay:300,closeDelay:450,floatingStrategy:"fixed",closeOnClickOutside:!0,clickOutsideEvents:["pointerdown","mousedown","click"],closeOnEscape:!0,closeOnItemClick:!1,position:"top-start",offset:2,styles:{item:{padding:"calc(var(--mantine-spacing-xs) / 1.5) var(--mantine-spacing-xs)"}},withinPortal:!1,children:[y.jsx(t3,{children:y.jsx(Vn,{variant:"light",color:"gray",size:"compact-xs",rightSection:y.jsx(m$,{size:12}),children:e})}),y.jsx(sy,{onDoubleClick:nn,onClick:nn,children:K1e.map(n=>y.jsx(cy,{fz:12,fw:500,value:n,rightSection:e===n?y.jsx(dK,{size:12}):void 0,onClick:o=>{o.stopPropagation(),r({shape:n})},children:n},n))})]})}const MXe=[Ue.Top,Ue.Right,Ue.Bottom,Ue.Left],s0=S.memo(()=>y.jsx(y.Fragment,{children:MXe.map(e=>y.jsxs(S.Fragment,{children:[y.jsx(Oo,{type:"source",position:e,className:"likec4-node-handle-center"}),y.jsx(Oo,{type:"target",position:e,className:"likec4-node-handle-center"})]},e))}));function J$(e){const r=Nt(),n=e.data.modelFqn;return n?y.jsx(v$,{...e,onClick:o=>{o.stopPropagation(),r.openElementDetails(n,e.id)}}):null}function Dee(e){const r=Nt(),n=e.data.modelFqn;return n?y.jsx(AQ,{...e,onClick:o=>{o.stopPropagation(),r.openElementDetails(n,e.id)}}):null}function NXe(e){const{enableElementTags:r,enableElementDetails:n,enableReadOnly:o,enableCompareWithLatest:a}=sr();return y.jsxs(im,{nodeProps:e,children:[a&&y.jsx(bm,{nodeProps:e}),y.jsx(lm,{...e}),y.jsx(sl,{...e}),r&&y.jsx(Wy,{...e}),y.jsx(Cee,{...e}),n&&y.jsx(J$,{...e}),!o&&y.jsx(AXe,{...e}),y.jsx(s0,{})]})}function PXe(e){const{enableElementTags:r,enableElementDetails:n,enableReadOnly:o,enableCompareWithLatest:a}=sr();return y.jsxs(im,{nodeProps:e,children:[a&&y.jsx(bm,{nodeProps:e}),y.jsx(lm,{...e}),y.jsx(sl,{...e}),r&&y.jsx(Wy,{...e}),y.jsx(SXe,{...e}),n&&y.jsx(J$,{...e}),!o&&y.jsx(DXe,{...e}),y.jsx(s0,{})]})}const ez=fe({outlineColor:"likec4.compare.manual.outline",outlineWidth:"4px",outlineStyle:"dashed",outlineOffset:"1.5"}),tz=e=>e.data.drifts&&e.data.drifts.length>0;function BXe(e){const{enableElementDetails:r,enableReadOnly:n,enableCompareWithLatest:o}=sr(),a=o&&tz(e);return y.jsxs(e0,{className:a?ez:void 0,nodeProps:e,children:[o&&y.jsx(bm,{nodeProps:e}),y.jsx(t0,{...e}),y.jsx($ee,{...e}),r&&y.jsx(Dee,{...e}),!n&&y.jsx(jXe,{...e}),y.jsx(s0,{})]})}function OXe(e){const{enableElementDetails:r,enableReadOnly:n,enableCompareWithLatest:o}=sr(),a=o&&tz(e);return y.jsxs(e0,{className:a?ez:void 0,nodeProps:e,children:[o&&y.jsx(bm,{nodeProps:e}),y.jsx(t0,{...e}),y.jsx($ee,{...e}),r&&y.jsx(Dee,{...e}),!n&&y.jsx(TXe,{...e}),y.jsx(s0,{})]})}function IXe(e){const{enableCompareWithLatest:r}=sr(),n=r&&tz(e);return y.jsxs(e0,{className:n?ez:void 0,nodeProps:e,children:[r&&y.jsx(bm,{nodeProps:e}),y.jsx(t0,{...e}),y.jsx(s0,{})]})}const LXe={left:Ue.Left,right:Ue.Right,top:Ue.Top,bottom:Ue.Bottom},FXe=({data:e,port:r})=>y.jsxs(y.Fragment,{children:[y.jsx(hr,{"data-likec4-color":e.color,className:fe({position:"absolute",backgroundColor:"var(--likec4-palette-fill)",rounded:"xs",width:{base:"5px",_whenHovered:"7px",_whenSelected:"7px"},transition:"fast",translateX:"-1/2",translateY:"-1/2",translate:"auto"}),style:{top:r.cy,left:r.cx,height:r.height}}),y.jsx(Oo,{id:r.id,type:r.type,position:LXe[r.position],style:{top:r.cy-3,left:r.cx-3,width:6,height:6,right:"unset",bottom:"unset",visibility:"hidden",transform:r.position==="left"?"translate(-150%, 0)":"translate(100%, 0)"}})]}),VXe=e=>Kn(e.modelFqn);function qXe(e){const{enableElementDetails:r,enableCompareWithLatest:n}=sr(),o=e.data,{id:a,positionAbsoluteY:i,data:{viewHeight:l,hovered:s=!1,ports:c}}=e;return y.jsxs(y.Fragment,{children:[y.jsx(hr,{"data-likec4-color":"gray",className:fe({position:"absolute",rounded:"xs",top:"1",pointerEvents:"none",transition:"fast",translateX:"-1/2",translate:"auto"}),style:{backgroundColor:"var(--likec4-palette-stroke)",opacity:s?.6:.4,left:"50%",width:s?3:2,height:l-i,zIndex:-1,pointerEvents:"none"}}),y.jsxs(im,{nodeProps:e,children:[n&&y.jsx(bm,{nodeProps:e}),y.jsx(lm,{...e}),y.jsx(sl,{...e}),VXe(o)&&y.jsxs(y.Fragment,{children:[y.jsx(Cee,{...e,data:o}),r&&y.jsx(J$,{id:a,data:o})]})]}),c.map(d=>y.jsx(FXe,{port:d,data:e.data},d.id))]})}function HXe(e){return y.jsx(hr,{"data-likec4-color":e.data.color,css:{width:"100%",height:"100%",border:"default",rounded:"sm",borderWidth:1,"--_color":{base:"var(--likec4-palette-stroke)",_dark:"[color-mix(in oklab, var(--likec4-palette-hiContrast) 40%, var(--likec4-palette-fill))]"},borderColor:"[var(--_color)/30]",backgroundColor:"var(--likec4-palette-fill)/15",pointerEvents:"none",paddingLeft:"2",paddingTop:"0.5",fontSize:"xs",fontWeight:"bold",letterSpacing:".75px",color:"[var(--_color)/75]"},children:"PARALLEL"})}const _p={ElementNode:NXe,DeploymentNode:PXe,CompoundElementNode:BXe,CompoundDeploymentNode:OXe,ViewGroupNode:IXe,SequenceActorNode:qXe,SequenceParallelArea:HXe},Mee={RelationshipEdge:Eee,SequenceStepEdge:kXe};var Nee=Symbol.for("immer-nothing"),Pee=Symbol.for("immer-draftable"),Ra=Symbol.for("immer-state");function ul(e,...r){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var c0=Object.getPrototypeOf;function xm(e){return!!e&&!!e[Ra]}function Sp(e){return e?Oee(e)||Array.isArray(e)||!!e[Pee]||!!e.constructor?.[Pee]||d0(e)||j2(e):!1}var UXe=Object.prototype.constructor.toString(),Bee=new WeakMap;function Oee(e){if(!e||typeof e!="object")return!1;const r=Object.getPrototypeOf(e);if(r===null||r===Object.prototype)return!0;const n=Object.hasOwnProperty.call(r,"constructor")&&r.constructor;if(n===Object)return!0;if(typeof n!="function")return!1;let o=Bee.get(n);return o===void 0&&(o=Function.toString.call(n),Bee.set(n,o)),o===UXe}function z2(e,r,n=!0){R2(e)===0?(n?Reflect.ownKeys(e):Object.keys(e)).forEach(o=>{r(o,e[o],e)}):e.forEach((o,a)=>r(a,o,e))}function R2(e){const r=e[Ra];return r?r.type_:Array.isArray(e)?1:d0(e)?2:j2(e)?3:0}function rz(e,r){return R2(e)===2?e.has(r):Object.prototype.hasOwnProperty.call(e,r)}function Iee(e,r,n){const o=R2(e);o===2?e.set(r,n):o===3?e.add(n):e[r]=n}function WXe(e,r){return e===r?e!==0||1/e===1/r:e!==e&&r!==r}function d0(e){return e instanceof Map}function j2(e){return e instanceof Set}function Ep(e){return e.copy_||e.base_}function nz(e,r){if(d0(e))return new Map(e);if(j2(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=Oee(e);if(r===!0||r==="class_only"&&!n){const o=Object.getOwnPropertyDescriptors(e);delete o[Ra];let a=Reflect.ownKeys(o);for(let i=0;i1&&Object.defineProperties(e,{set:T2,add:T2,clear:T2,delete:T2}),Object.freeze(e),r&&Object.values(e).forEach(n=>oz(n,!0))),e}function GXe(){ul(2)}var T2={value:GXe};function A2(e){return e===null||typeof e!="object"?!0:Object.isFrozen(e)}var YXe={};function Cp(e){const r=YXe[e];return r||ul(0,e),r}var u0;function Lee(){return u0}function XXe(e,r){return{drafts_:[],parent_:e,immer_:r,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function Fee(e,r){r&&(Cp("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=r)}function az(e){iz(e),e.drafts_.forEach(ZXe),e.drafts_=null}function iz(e){e===u0&&(u0=e.parent_)}function Vee(e){return u0=XXe(u0,e)}function ZXe(e){const r=e[Ra];r.type_===0||r.type_===1?r.revoke_():r.revoked_=!0}function qee(e,r){r.unfinalizedDrafts_=r.drafts_.length;const n=r.drafts_[0];return e!==void 0&&e!==n?(n[Ra].modified_&&(az(r),ul(4)),Sp(e)&&(e=D2(r,e),r.parent_||M2(r,e)),r.patches_&&Cp("Patches").generateReplacementPatches_(n[Ra].base_,e,r.patches_,r.inversePatches_)):e=D2(r,n,[]),az(r),r.patches_&&r.patchListener_(r.patches_,r.inversePatches_),e!==Nee?e:void 0}function D2(e,r,n){if(A2(r))return r;const o=e.immer_.shouldUseStrictIteration(),a=r[Ra];if(!a)return z2(r,(i,l)=>Hee(e,a,r,i,l,n),o),r;if(a.scope_!==e)return r;if(!a.modified_)return M2(e,a.base_,!0),a.base_;if(!a.finalized_){a.finalized_=!0,a.scope_.unfinalizedDrafts_--;const i=a.copy_;let l=i,s=!1;a.type_===3&&(l=new Set(i),i.clear(),s=!0),z2(l,(c,d)=>Hee(e,a,i,c,d,n,s),o),M2(e,i,!1),n&&e.patches_&&Cp("Patches").generatePatches_(a,n,e.patches_,e.inversePatches_)}return a.copy_}function Hee(e,r,n,o,a,i,l){if(a==null||typeof a!="object"&&!l)return;const s=A2(a);if(!(s&&!l)){if(xm(a)){const c=i&&r&&r.type_!==3&&!rz(r.assigned_,o)?i.concat(o):void 0,d=D2(e,a,c);if(Iee(n,o,d),xm(d))e.canAutoFreeze_=!1;else return}else l&&n.add(a);if(Sp(a)&&!s){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1||r&&r.base_&&r.base_[o]===a&&s)return;D2(e,a),(!r||!r.scope_.parent_)&&typeof o!="symbol"&&(d0(n)?n.has(o):Object.prototype.propertyIsEnumerable.call(n,o))&&M2(e,a)}}}function M2(e,r,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&oz(r,n)}function KXe(e,r){const n=Array.isArray(e),o={type_:n?1:0,scope_:r?r.scope_:Lee(),modified_:!1,finalized_:!1,assigned_:{},parent_:r,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let a=o,i=lz;n&&(a=[o],i=p0);const{revoke:l,proxy:s}=Proxy.revocable(a,i);return o.draft_=s,o.revoke_=l,s}var lz={get(e,r){if(r===Ra)return e;const n=Ep(e);if(!rz(n,r))return QXe(e,n,r);const o=n[r];return e.finalized_||!Sp(o)?o:o===sz(e.base_,r)?(dz(e),e.copy_[r]=uz(o,e)):o},has(e,r){return r in Ep(e)},ownKeys(e){return Reflect.ownKeys(Ep(e))},set(e,r,n){const o=Uee(Ep(e),r);if(o?.set)return o.set.call(e.draft_,n),!0;if(!e.modified_){const a=sz(Ep(e),r),i=a?.[Ra];if(i&&i.base_===n)return e.copy_[r]=n,e.assigned_[r]=!1,!0;if(WXe(n,a)&&(n!==void 0||rz(e.base_,r)))return!0;dz(e),cz(e)}return e.copy_[r]===n&&(n!==void 0||r in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[r])||(e.copy_[r]=n,e.assigned_[r]=!0),!0},deleteProperty(e,r){return sz(e.base_,r)!==void 0||r in e.base_?(e.assigned_[r]=!1,dz(e),cz(e)):delete e.assigned_[r],e.copy_&&delete e.copy_[r],!0},getOwnPropertyDescriptor(e,r){const n=Ep(e),o=Reflect.getOwnPropertyDescriptor(n,r);return o&&{writable:!0,configurable:e.type_!==1||r!=="length",enumerable:o.enumerable,value:n[r]}},defineProperty(){ul(11)},getPrototypeOf(e){return c0(e.base_)},setPrototypeOf(){ul(12)}},p0={};z2(lz,(e,r)=>{p0[e]=function(){return arguments[0]=arguments[0][0],r.apply(this,arguments)}}),p0.deleteProperty=function(e,r){return p0.set.call(this,e,r,void 0)},p0.set=function(e,r,n){return lz.set.call(this,e[0],r,n,e[0])};function sz(e,r){const n=e[Ra];return(n?Ep(n):e)[r]}function QXe(e,r,n){const o=Uee(r,n);return o?"value"in o?o.value:o.get?.call(e.draft_):void 0}function Uee(e,r){if(!(r in e))return;let n=c0(e);for(;n;){const o=Object.getOwnPropertyDescriptor(n,r);if(o)return o;n=c0(n)}}function cz(e){e.modified_||(e.modified_=!0,e.parent_&&cz(e.parent_))}function dz(e){e.copy_||(e.copy_=nz(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var JXe=class{constructor(r){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!0,this.produce=(n,o,a)=>{if(typeof n=="function"&&typeof o!="function"){const l=o;o=n;const s=this;return function(c=l,...d){return s.produce(c,u=>o.call(this,u,...d))}}typeof o!="function"&&ul(6),a!==void 0&&typeof a!="function"&&ul(7);let i;if(Sp(n)){const l=Vee(this),s=uz(n,void 0);let c=!0;try{i=o(s),c=!1}finally{c?az(l):iz(l)}return Fee(l,a),qee(i,l)}else if(!n||typeof n!="object"){if(i=o(n),i===void 0&&(i=n),i===Nee&&(i=void 0),this.autoFreeze_&&oz(i,!0),a){const l=[],s=[];Cp("Patches").generateReplacementPatches_(n,i,l,s),a(l,s)}return i}else ul(1,n)},this.produceWithPatches=(n,o)=>{if(typeof n=="function")return(l,...s)=>this.produceWithPatches(l,c=>n(c,...s));let a,i;return[this.produce(n,o,(l,s)=>{a=l,i=s}),a,i]},typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze),typeof r?.useStrictShallowCopy=="boolean"&&this.setUseStrictShallowCopy(r.useStrictShallowCopy),typeof r?.useStrictIteration=="boolean"&&this.setUseStrictIteration(r.useStrictIteration)}createDraft(r){Sp(r)||ul(8),xm(r)&&(r=eZe(r));const n=Vee(this),o=uz(r,void 0);return o[Ra].isManual_=!0,iz(n),o}finishDraft(r,n){const o=r&&r[Ra];(!o||!o.isManual_)&&ul(9);const{scope_:a}=o;return Fee(a,n),qee(void 0,a)}setAutoFreeze(r){this.autoFreeze_=r}setUseStrictShallowCopy(r){this.useStrictShallowCopy_=r}setUseStrictIteration(r){this.useStrictIteration_=r}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(r,n){let o;for(o=n.length-1;o>=0;o--){const i=n[o];if(i.path.length===0&&i.op==="replace"){r=i.value;break}}o>-1&&(n=n.slice(o+1));const a=Cp("Patches").applyPatches_;return xm(r)?a(r,n):this.produce(r,i=>a(i,n))}};function uz(e,r){const n=d0(e)?Cp("MapSet").proxyMap_(e,r):j2(e)?Cp("MapSet").proxySet_(e,r):KXe(e,r);return(r?r.scope_:Lee()).drafts_.push(n),n}function eZe(e){return xm(e)||ul(10,e),Wee(e)}function Wee(e){if(!Sp(e)||A2(e))return e;const r=e[Ra];let n,o=!0;if(r){if(!r.modified_)return r.base_;r.finalized_=!0,n=nz(e,r.scope_.immer_.useStrictShallowCopy_),o=r.scope_.immer_.shouldUseStrictIteration()}else n=nz(e,!0);return z2(n,(a,i)=>{Iee(n,a,Wee(i))},o),r&&(r.finalized_=!1),n}var pz=new JXe,as=pz.produce,Gee=pz.setAutoFreeze.bind(pz);class wm{static LeftPadding=42;static RightPadding=42;static TopPadding=60;static BottomPadding=42;id;minX=1/0;minY=1/0;maxX=-1/0;maxY=-1/0;initialX;initialY;get positionAbsolute(){return{x:this.minX,y:this.minY}}get initialPositionAbsolute(){return{x:this.initialX,y:this.initialY}}set positionAbsolute(r){const n=Math.round(r.x),o=Math.round(r.y);this.maxX+=n-this.minX,this.maxY+=o-this.minY,this.minX=n,this.minY=o}get dimensions(){return{width:Math.round(this.maxX-this.minX),height:Math.round(this.maxY-this.minY)}}get diff(){return{x:Math.round(this.positionAbsolute.x-this.initialX),y:Math.round(this.positionAbsolute.y-this.initialY)}}get isMoved(){return this.diff.x!==0||this.diff.y!==0}get position(){const r=this.positionAbsolute;if(!this.parent)return r;const n=this.parent.positionAbsolute;return{x:r.x-n.x,y:r.y-n.y}}constructor(r,n=null){this.id=r.id,this.positionAbsolute=n?{x:r.position.x+n.minX,y:r.position.y+n.minY}:r.position;const{width:o,height:a}=_o(r);this.maxX=this.minX+Math.ceil(o),this.maxY=this.minY+Math.ceil(a),this.initialX=this.positionAbsolute.x,this.initialY=this.positionAbsolute.y,n&&n.children.push(this)}}class hz extends wm{constructor(r,n=null){super(r,n),this.parent=n}children=[]}class tZe extends wm{constructor(r,n=null){super(r,n),this.parent=n}}function rZe(e,r){const n=e.data.controlPoints??null;return o=>{const a=mt(o.get(e.id),`Edge ${e.id} not found`),{x:i,y:l}=r.diff;return i===0&&l===0?{id:e.id,type:"replace",item:as(a,s=>{s.data.points=e.data.points,s.data.controlPoints=n,s.data.labelBBox=e.data.labelBBox})}:{id:e.id,type:"replace",item:as(a,s=>{s.data.points=un(e.data.points,c=>[c[0]+i,c[1]+l]),n&&(s.data.controlPoints=n.map(c=>({x:c.x+i,y:c.y+l}))),e.data.labelBBox&&(s.data.labelBBox={x:e.data.labelBBox.x+i,y:e.data.labelBBox.y+l,width:e.data.labelBBox.width,height:e.data.labelBBox.height})})}}}function nZe(e,r,n,o){const a=e.data.controlPoints??q3(e.data.points),i=Qr(ko.center(n)),l=Qr(ko.center(o)),s=i.subtract(l),c=s.length();return d=>{const u=mt(d.get(e.id),`Edge ${e.id} not found`),{x:p,y:f}=r.diff;if(p===0&&f===0)return{id:e.id,type:"replace",item:as(u,w=>{w.data.points=e.data.points,w.data.controlPoints=e.data.controlPoints,w.data.labelBBox=e.data.labelBBox})};const g=Qr(p,f),v=w=>{const x=Qr(w),k=x.subtract(l).dot(s),C=Qa(k/c**2,{min:-1,max:1});return x.add(g.multiply(C)).round().toObject()};return{id:e.id,type:"replace",item:as(u,w=>{if(w.data.controlPoints=a.map(v),e.data.labelBBox){w.data.labelBBox??=e.data.labelBBox;const{x,y:k}=v(e.data.labelBBox);w.data.labelBBox.x=x,w.data.labelBBox.y=k}})}}}function Yee(e,r){const{parentLookup:n,nodeLookup:o,edges:a}=e.getState(),i=new Map,l=new Ln(_=>{let $=o.get(_)?.parentId;return $?[$,...l.get($)]:[]}),s=new Ln(_=>{const $=n.get(_);if(!$||$.size===0)return new Set;const z=new Set;for(const j of $.values()){z.add(j.id);for(const A of s.get(j.id))z.add(A)}return z});if(xn(r,2)){const _=Jr(r,PV($=>[...s.get($)]),Qx(),$=>FEe(r,$));He(xn(_,1),"All editing nodes are nested within each other"),r=_}const c=new Set(r.flatMap(_=>l.get(_))),d=[...o.values()].flatMap(_=>_.parentId?[]:{xynode:_,parent:null});for(;d.length>0;){const{xynode:_,parent:$}=d.shift();if(!r.includes(_.id)&&c.has(_.id)){const z=new hz(_,$);i.set(_.id,z),n.get(_.id)?.forEach(j=>{d.push({xynode:j,parent:z})});continue}i.set(_.id,new tZe(_,$))}const u=[...i.values()],p=new Map,f=_=>i.get(_)??l.get(_).map($=>i.get($)).find($=>!!$)??null,g=new Set(r.flatMap(_=>[_,...s.get(_)]));for(const _ of a){const $=g.has(_.source),z=g.has(_.target);if($&&z){let j=i.get(_.source)??i.get(_.target)??f(_.source)??f(_.target);j&&p.set(_,rZe(_,j));continue}if($!==z){const j=f($?_.source:_.target);if(!j)continue;const[A,R]=Jr([_.source,_.target],un(P=>mt(o.get(P),`Node ${P} not found`)),un(gC)),[T,O]=$?[A,R]:[R,A];p.set(_,nZe(_,j,T,O));continue}}function v(_){for(const $ of _){if(!($ instanceof hz))continue;v($.children);const z={minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};for(const j of $.children)z.minX=Math.min(z.minX,j.minX),z.minY=Math.min(z.minY,j.minY),z.maxX=Math.max(z.maxX,j.maxX),z.maxY=Math.max(z.maxY,j.maxY);$.minX=z.minX-wm.LeftPadding,$.minY=z.minY-wm.TopPadding,$.maxX=z.maxX+wm.RightPadding,$.maxY=z.maxY+wm.BottomPadding}}const w=[...p.values()];function x(){v(u);const _=u.reduce((R,T)=>(R.push({id:T.id,type:"position",dragging:!1,position:T.position,positionAbsolute:T.positionAbsolute}),T instanceof hz&&R.push({id:T.id,type:"dimensions",setAttributes:!0,dimensions:T.dimensions}),R),[]),{edgeLookup:$,triggerNodeChanges:z,triggerEdgeChanges:j}=e.getState();z(_);const A=w.map(R=>R($));A.length>0&&j(A)}let k=null;function C(){u.length!==0&&(k??=requestAnimationFrame(()=>{k=null;for(const _ of r){const $=i.get(_);if(!$){console.warn(`Rect not found for id ${_}`);continue}const z=o.get(_);if(!z){console.warn(`Node not found for id ${_}`);continue}$.positionAbsolute=z.internals.positionAbsolute}x()}))}return{rects:i,onMove:C,updateXYFlow:x}}function oZe(){const e=hC(),r=Nt(),n=S.useRef(void 0);return S.useMemo(()=>({onNodeDragStart:(o,a)=>{r.startEditing("node");const{nodeLookup:i}=e.getState(),l=Jr(Array.from(i.values()),Wu(s=>s.dragging===!0||s.id===a.id||s.selected===!0),un(s=>s.id));xn(l,1)&&(n.current=Yee(e,l))},onNodeDrag:o=>{n.current?.onMove()},onNodeDragStop:o=>{const a=n.current?GO(n.current.rects.values(),i=>i.isMoved):!1;r.stopEditing(a),n.current=void 0}}),[e,r])}const aZe={relationship:Mee.RelationshipEdge,"seq-step":Mee.SequenceStepEdge},jd={element:ac(_p.ElementNode),deployment:ac(_p.DeploymentNode),"compound-element":ac(_p.CompoundElementNode),"compound-deployment":ac(_p.CompoundDeploymentNode),"view-group":ac(_p.ViewGroupNode),"seq-actor":ac(_p.SequenceActorNode),"seq-parallel":ac(_p.SequenceParallelArea)};function iZe(e){return!e||Gu(e)?jd:{element:e.element??jd.element,deployment:e.deployment??jd.deployment,"compound-element":e.compoundElement??jd["compound-element"],"compound-deployment":e.compoundDeployment??jd["compound-deployment"],"view-group":e.viewGroup??jd["view-group"],"seq-actor":e.seqActor??jd["seq-actor"],"seq-parallel":e.seqParallel??jd["seq-parallel"]}}const lZe=({context:e,children:r})=>{const{enableReadOnly:n}=b2(e),o=n||r.editor?.getSnapshot().context.editing!=="edge";return{enableReadOnly:n,initialized:e.initialized.xydata&&e.initialized.xyflow,nodes:e.xynodes,edges:e.xyedges,pannable:e.pannable,zoomable:e.zoomable,nodesDraggable:!n&&e.nodesDraggable,nodesSelectable:e.nodesSelectable&&o,fitViewPadding:e.fitViewPadding,enableFitView:e.features.enableFitView,...!e.features.enableFitView&&{viewport:{x:-e.view.bounds.x,y:-e.view.bounds.y,zoom:1}}}},sZe=(e,r)=>e.enableReadOnly===r.enableReadOnly&&e.initialized===r.initialized&&e.pannable===r.pannable&&e.zoomable===r.zoomable&&e.nodesDraggable===r.nodesDraggable&&e.nodesSelectable===r.nodesSelectable&&e.enableFitView===r.enableFitView&&Or(e.fitViewPadding,r.fitViewPadding)&&Or(e.nodes,r.nodes)&&Or(e.edges,r.edges)&&Or(e.viewport??null,r.viewport??null);function cZe({background:e="dots",reactFlowProps:r={},children:n,renderNodes:o}){const a=Nt();let{enableReadOnly:i,initialized:l,nodes:s,edges:c,enableFitView:d,nodesDraggable:u,nodesSelectable:p,...f}=NS(lZe,sZe);const{onNodeContextMenu:g,onCanvasContextMenu:v,onEdgeContextMenu:w,onNodeClick:x,onEdgeClick:k,onCanvasClick:C,onCanvasDblClick:_}=um(),$=eMe(),z=oZe(),j=rMe(),A=zq(()=>{j.set(!0)},$?120:400),R=gf(()=>{A.clear(),j.set(!1)},$?350:200),T=it(H=>{H&&(j.get()||A.start(),R())}),O=it((H,M)=>{A.clear(),a.send({type:"xyflow.viewportMoved",viewport:M,manually:!!H})}),P=it(()=>{a.send({type:"xyflow.resized"})}),L=_I(()=>iZe(o),[o],mK);return Ed(()=>{console.warn("renderNodes changed - this might degrade performance")},[L]),y.jsx(kC,{nodes:s,edges:c,className:Ge(l?"initialized":"not-initialized"),nodeTypes:L,edgeTypes:aZe,onNodesChange:it(H=>{a.send({type:"xyflow.applyNodeChanges",changes:H})}),onEdgesChange:it(H=>{a.send({type:"xyflow.applyEdgeChanges",changes:H})}),background:l?e:"transparent",fitView:!1,onNodeClick:it((H,M)=>{H.stopPropagation(),a.send({type:"xyflow.nodeClick",node:M}),x?.(a.findDiagramNode(M.id),H)}),onEdgeClick:it((H,M)=>{H.stopPropagation(),a.send({type:"xyflow.edgeClick",edge:M}),k?.(a.findDiagramEdge(M.id),H)}),onEdgeDoubleClick:it((H,M)=>{H.stopPropagation(),a.send({type:"xyflow.edgeDoubleClick",edge:M})}),onPaneClick:it(H=>{H.stopPropagation(),a.send({type:"xyflow.paneClick"}),C?.(H)}),onDoubleClick:it(H=>{H.stopPropagation(),H.preventDefault(),a.send({type:"xyflow.paneDblClick"}),_?.(H)}),onNodeMouseEnter:it((H,M)=>{H.stopPropagation(),a.send({type:"xyflow.nodeMouseEnter",node:M})}),onNodeMouseLeave:it((H,M)=>{H.stopPropagation(),a.send({type:"xyflow.nodeMouseLeave",node:M})}),onEdgeMouseEnter:it((H,M)=>{H.stopPropagation(),a.send({type:"xyflow.edgeMouseEnter",edge:M,event:H})}),onEdgeMouseLeave:it((H,M)=>{H.stopPropagation(),a.send({type:"xyflow.edgeMouseLeave",edge:M,event:H})}),onMove:T,onMoveEnd:O,onInit:it(H=>{a.send({type:"xyflow.init",instance:H})}),onNodeContextMenu:it((H,M)=>{const V=mt(a.findDiagramNode(M.id),`diagramNode ${M.id} not found`);g?.(V,H)}),onEdgeContextMenu:it((H,M)=>{const V=mt(a.findDiagramEdge(M.id),`diagramEdge ${M.id} not found`);w?.(V,H)}),...v&&{onPaneContextMenu:v},...d&&{onViewportResize:P},nodesDraggable:u,nodesSelectable:p,elevateEdgesOnSelect:!i,...u&&z,...f,...r,children:n})}function dZe(e,r){try{return Gee(!1),uZe(e,r)}finally{Gee(!0)}}const Xee=e=>H1(e.parent);function uZe(e,r){He(e.id===r.id,"View IDs do not match"),He(e._type===r._type,"View types do not match"),He(e._layout==="manual"&&r._layout==="auto","Views must be manual and auto");const n=new Set,o=new Set,a=u=>!n.has(typeof u=="string"?u:u.id),i=u=>o.has(u.source)&&o.has(u.target)&&a(u.source)&&a(u.target),l=new Map(r.nodes.map(u=>{u.children&&u.children.length>0&&n.add(u.id);const p=e.nodes.find(f=>f.id===u.id);return p?[u.id,hZe({latest:u,manual:p})]:(o.add(u.id),[u.id,fz(u)])}));if(o.size===l.size)return as(r,u=>{u._layout="manual",u.nodes=[...l.values()],u.edges=r.edges.map(fz),delete u.drifts});n.size>0&&pZe(l);const s=[...l.values()],c=r.edges.map(u=>{const p=u.dir??"forward",f=x=>x.source===u.source&&x.target===u.target&&(x.dir===p||!x.dir&&!u.dir);let g=e.edges.find(x=>x.id===u.id&&f(x));if(g||(g=e.edges.find(x=>f(x))),g)return fZe({latest:u,manual:g});if(i(u))return fz(u);const v=l.get(u.source),w=l.get(u.target);return mZe(u,v,w)}),d=ko.merge(...s.filter(Xee));return as(r,u=>{u._layout="manual",u.nodes=s,u.edges=c,u.bounds=d,delete u.drifts})}const km={Left:42,Right:42,Top:60,Bottom:42};function pZe(e){function r(n){const o=mt(e.get(n),`Node ${n} not found`);if(o.children.length===0)return o;const a=[];for(const l of o.children)a.push(r(l));const i=ko.merge(...a);return o.x=i.x-km.Left,o.y=i.y-km.Top,o.width=i.width+km.Left+km.Right,o.height=i.height+km.Top+km.Bottom,o}for(const n of e.values())!Xee(n)||n.children.length===0||r(n.id)}function hZe({latest:e,manual:r}){return He(r.id===e.id,"Node IDs do not match"),as(e,n=>{n.x=r.x,n.y=r.y,n.drifts=null})}function fZe(e){const{manual:r,latest:n}=e;return as(n,o=>{r.controlPoints?o.controlPoints=r.controlPoints:delete o.controlPoints,o.points=r.points,r.labelBBox&&(o.labelBBox=n.labelBBox??r.labelBBox,o.labelBBox.x=r.labelBBox.x,o.labelBBox.y=r.labelBBox.y),o.drifts=null})}function fz(e){if("drifts"in e&&e.drifts!==null){const r={...e};return r.drifts=null,r}return e}function mZe(e,r,n){const o=gZe(r,n),a=o[0];return as(e,i=>{i.controlPoints=o,e.labelBBox&&(i.labelBBox.x=a.x,i.labelBBox.y=a.y),delete i.drifts})}function Zee(e,r,n){const o=e.width/2/n.x,a=e.height/2/n.y,i=Math.min(Math.abs(o),Math.abs(a));return Qr(n).multiply(i).add(r)}function gZe(e,r){const n=Qr(ko.center(e)),o=Qr(ko.center(r));if(e===r){const s=Qr(0,e.height||0).multiply(-.5).add(n);return[s.add(Qr(-32,-80)).round().toObject(),s.add(Qr(32,-80)).round().toObject()]}const a=o.subtract(n),i=Zee(e,n,a),l=Zee(r,o,a.multiply(-1)).subtract(i);return[i.add(l.multiply(.4)).round().toObject(),i.add(l.multiply(.6)).round().toObject()]}const yZe=S.createContext(null);function Kee(){return S.useContext(yZe)}function vZe(e){const r=Kee(),n=it(async({input:{viewId:a,current:i}})=>{if(!r)return console.error("No editor port available for applying latest to manual layout"),Promise.reject(new Error("No editor port"));const[l,s]=await Promise.all([i??Promise.resolve().then(()=>r.fetchView(a,"manual")),Promise.resolve().then(()=>r.fetchView(a,"auto"))]).catch(c=>(console.error("Failed to fetch views for applying latest to manual layout",c),Promise.reject(c)));return{updated:dZe(l,s)}}),o=it(async({input:a})=>{if(!r)return console.error("No editor port available for executing change"),Promise.reject(new Error("No editor port"));for(const i of a.changes)await Promise.resolve().then(()=>r.handleChange(e,i)).catch(l=>(console.error("Failed to execute change",{change:i,err:l}),Promise.reject(l)));return{}});return TJ.provide({actors:{applyLatest:by(n),executeChange:by(o)}})}function Qee(e){return{ref:e,get actor(){return e.current},overlays(){return mt(e.current.getSnapshot().children.overlays,"Overlays actor not found")},send:r=>e.current.send(r),navigateTo:(r,n,o)=>{e.current.send({type:"navigate.to",viewId:r,...n&&{fromNode:n},...o&&{focusOnElement:o}})},navigate:r=>{e.current.send({type:`navigate.${r}`})},fitDiagram:(r=350)=>{e.current.send({type:"xyflow.fitDiagram",duration:r})},openRelationshipsBrowser:r=>{e.current.send({type:"open.relationshipsBrowser",fqn:r})},openSource:r=>{e.current.send({type:"open.source",...r})},openElementDetails:(r,n)=>{e.current.send({type:"open.elementDetails",fqn:r,fromNode:n})},openRelationshipDetails:(...r)=>{r.length===1?e.current.send({type:"open.relationshipDetails",params:{edgeId:r[0]}}):e.current.send({type:"open.relationshipDetails",params:{source:r[0],target:r[1]}})},updateNodeData:(r,n)=>{e.current.send({type:"update.nodeData",nodeId:r,data:n})},updateEdgeData:(r,n)=>{e.current.send({type:"update.edgeData",edgeId:r,data:n})},startEditing:r=>{const n=Rr(e.current.system).editorActorRef;He(n,"No editor actor found in diagram actor system"),n.send({type:"edit.start",subject:r})},stopEditing:(r=!1)=>{const n=Rr(e.current.system).editorActorRef;He(n,"No editor actor found in diagram actor system"),n.send({type:"edit.finish",wasChanged:r})},undoEditing:()=>{const r=Rr(e.current.system).editorActorRef;He(r,"No editor actor found in diagram actor system");const n=r.getSnapshot().context.history.length>0;return n&&r.send({type:"undo"}),n},align:r=>{e.current.send({type:"layout.align",mode:r})},resetEdgeControlPoints:()=>{e.current.send({type:"layout.resetEdgeControlPoints"})},focusNode:r=>{e.current.send({type:"focus.node",nodeId:r})},focusOnElement:r=>{const n=e.current.getSnapshot().context,o=mJ(n.xynodes,r);o&&e.current.send({type:"focus.node",nodeId:o.id,autoUnfocus:!0})},get currentView(){return e.current.getSnapshot().context.view},getContext:()=>e.current.getSnapshot().context,findDiagramNode:r=>pm(e.current.getSnapshot().context,r),findEdge:r=>e.current.getSnapshot().context.xyedges.find(n=>n.data.id===r)??null,findDiagramEdge:r=>T$(e.current.getSnapshot().context,r),startWalkthrough:()=>{e.current.send({type:"walkthrough.start"})},walkthroughStep:(r="next")=>{e.current.send({type:"walkthrough.step",direction:r})},stopWalkthrough:()=>{e.current.send({type:"walkthrough.end"})},toggleFeature:(r,n)=>{e.current.send({type:"toggle.feature",feature:r,...n!==void 0&&{forceValue:n}})},highlightNotation:(r,n)=>{e.current.send({type:"notations.highlight",notation:r,...n&&{kind:n}})},unhighlightNotation:()=>{e.current.send({type:"notations.unhighlight"})},openSearch:r=>{e.current.send({type:"open.search",...r&&{search:r}})},triggerChange:r=>{e.current.send({type:"trigger.change",change:r})},switchDynamicViewVariant:r=>{e.current.send({type:"switch.dynamicViewVariant",variant:r})}}}function mz(e,r){const n=r.view,o=e.view.id===n.id;if(n._type==="dynamic"&&n.variant==="sequence")return{xynodes:r.xynodes,xyedges:r.xyedges,view:n};const a=y2(e.xynodes,r.xynodes),i=o?I$(e.xyedges,r.xyedges):r.xyedges;return{xynodes:a,xyedges:i,view:n}}function bZe(e){const{xynodes:r,xyedges:n,focusedNode:o}=e;if(!o)return null;const a=new Set([o]),i=n.map(l=>l.source===o||l.target===o?(a.add(l.source),a.add(l.target),tr.setData(l,{dimmed:!1,active:!0})):tr.setData(l,{dimmed:!0,active:!1}));return{xynodes:r.map(l=>tr.setDimmed(l,!a.has(l.id))),xyedges:i}}function xZe({context:e,event:r}){return ht(r,"update.nodeData"),{xynodes:e.xynodes.map(n=>{if(n.id!==r.nodeId)return n;const o=qV(n.data,r.data);return tt(o,n.data)?n:{...n,data:o}})}}function wZe({context:e,event:r}){return ht(r,"update.edgeData"),{xyedges:e.xyedges.map(n=>{if(n.id!==r.edgeId)return n;const o=qV(n.data,r.data);return tt(o,n.data)?n:{...n,data:o}})}}function Jee(e,r,n){const o=_o(e),a=o.width/2/n.x,i=o.height/2/n.y,l=Math.min(Math.abs(a),Math.abs(i));return Qr(n).multiply(l).add(r)}function ete(e,r){const n=mt(e.get(r.source),`Source node ${r.source} not found`),o=mt(e.get(r.target),`Target node ${r.target} not found`),a=Qr(yC(n)),i=Qr(yC(o));if(n===o){const d=Qr(0,n.height||0).multiply(-.5).add(a);return[d.add(Qr(-32,-80)).round().toObject(),d.add(Qr(32,-80)).round().toObject()]}const l=i.subtract(a),s=Jee(n,a,l),c=Jee(o,i,l.multiply(-1)).subtract(s);return[s.add(c.multiply(.4)).round().toObject(),s.add(c.multiply(.6)).round().toObject()]}function kZe(e){const{view:r}=e,n=[],o=[],a=new Map,i=I_.from(r.nodes.reduce((u,p)=>(a.set(p.id,p),p.parent||u.push({node:p,parent:null}),u),[]));let l=u=>!0;if(e.where)try{const u=zu(e.where);l=p=>u({...WV(p,["tags","kind"]),..."source"in p?{source:c(p.source)}:p,..."target"in p?{target:c(p.target)}:p})}catch(u){console.error("Error in where filter:",u)}const s="",c=u=>mt(a.get(u),`Node not found: ${u}`);let d;for(;d=i.dequeue();){const{node:u,parent:p}=d,f=xn(u.children,1)||u.kind==d1;if(f)for(const $ of u.children)i.enqueue({node:c($),parent:u});const g={x:u.x,y:u.y};p&&(g.x-=p.x,g.y-=p.y);const v={id:s+u.id,deletable:!1,position:g,zIndex:f?oc.Compound:oc.Element,style:{width:u.width,height:u.height},initialWidth:u.width,initialHeight:u.height,hidden:u.kind!==d1&&!l(u),...p&&{parentId:s+p.id}},w={viewId:r.id,id:u.id,title:u.title,color:u.color,shape:u.shape,style:u.style,depth:u.depth??0,icon:u.icon??"none",tags:u.tags??null,x:u.x,y:u.y,drifts:u.drifts??null},x={viewId:r.id,id:u.id,title:u.title,technology:u.technology??null,description:u.description??null,height:u.height,width:u.width,level:u.level,color:u.color,shape:u.shape,style:u.style,icon:u.icon??null,tags:u.tags,x:u.x,y:u.y,isMultiple:u.style?.multiple??!1,drifts:u.drifts??null};if(u.kind===d1){n.push({...v,type:"view-group",data:{isViewGroup:!0,...w},dragHandle:".likec4-compound-title-container"});continue}const k=u.modelRef??null,C=u.deploymentRef??null;if(!k&&!C)throw console.error("Invalid node",u),new Error("Element should have either modelRef or deploymentRef");const _={navigateTo:u.navigateTo??null};switch(!0){case(f&&!!C):{n.push({...v,type:"compound-deployment",data:{...w,..._,deploymentFqn:C,modelFqn:k}});break}case f:{He(!!k,"ModelRef expected"),n.push({...v,type:"compound-element",data:{...w,..._,modelFqn:k}});break}case!!C:{n.push({...v,type:"deployment",data:{...x,..._,deploymentFqn:C,modelFqn:k}});break}default:He(!!k,"ModelRef expected"),n.push({...v,type:"element",data:{...x,..._,modelFqn:k}})}}for(const u of r.edges){const p=u.source,f=u.target,g=s+u.id;if(!xn(u.points,2)){console.error("edge should have at least 2 points",u);continue}o.push({id:g,type:"relationship",source:s+p,target:s+f,zIndex:oc.Edge,hidden:!l(u),deletable:!1,data:{id:u.id,label:u.label,technology:u.technology,notes:u.notes??null,navigateTo:u.navigateTo,controlPoints:u.controlPoints??null,labelBBox:u.labelBBox??null,labelXY:null,points:u.points,color:u.color??"gray",line:u.line??"dashed",dir:u.dir??"forward",head:u.head??"normal",tail:u.tail??"none",astPath:u.astPath,drifts:u.drifts??null},interactionWidth:20})}return{bounds:r.bounds,xynodes:n,xyedges:o}}const tte={parallel:1,actor:10},N2={default:"gray",active:"amber"};function _Ze(e){const{actors:r,steps:n,compounds:o,parallelAreas:a,bounds:i}=e.sequenceLayout,l=[],s=[],c=d=>mt(e.nodes.find(u=>u.id===d));for(const d of o)l.push(SZe(d,c(d.origin),e));for(const d of a)l.push(EZe(d,e));for(const d of r)l.push(CZe(d,c(d.id),i,e));for(const d of n){const u=e.edges.find(p=>p.id===d.id);if(!u)throw new Error(`Edge ${d.id} not found`);s.push($Ze(d,u))}return{bounds:i,xynodes:l,xyedges:s}}function SZe({id:e,x:r,y:n,width:o,height:a,depth:i},l,s){return{id:e,type:"view-group",data:{id:l.id,title:l.title,color:l.color??"gray",shape:l.shape,style:l.style,tags:l.tags,x:r,y:n,viewId:s.id,depth:i,isViewGroup:!0,drifts:l.drifts??null},position:{x:r,y:n},draggable:!1,selectable:!1,focusable:!1,style:{pointerEvents:"none"},width:o,initialWidth:o,height:a,initialHeight:a}}function EZe({parallelPrefix:e,x:r,y:n,width:o,height:a},i){return{id:`seq-parallel-${e}`,type:"seq-parallel",data:{id:`seq-parallel-${e}`,title:"PARALLEL",technology:null,color:N2.default,shape:"rectangle",style:{},tags:[],x:r,y:n,level:0,icon:null,width:o,height:a,description:null,viewId:i.id,parallelPrefix:e,drifts:null},zIndex:tte.parallel,position:{x:r,y:n},draggable:!1,deletable:!1,selectable:!1,focusable:!1,style:{pointerEvents:"none"},width:o,initialWidth:o,height:a,initialHeight:a}}function CZe({id:e,x:r,y:n,width:o,height:a,ports:i},l,s,c){return{id:e,type:"seq-actor",data:{id:l.id,x:r,y:n,level:0,icon:l.icon??null,isMultiple:l.style.multiple??!1,title:l.title,width:o,height:a,color:l.color,navigateTo:l.navigateTo??null,shape:l.shape,style:l.style,tags:l.tags,modelFqn:l.modelRef??null,technology:l.technology??null,description:l.description??null,viewHeight:s.height,viewId:c.id,ports:i,drifts:l.drifts??null},deletable:!1,selectable:!0,zIndex:tte.actor,position:{x:r,y:n},width:o,initialWidth:o,height:a,initialHeight:a}}function $Ze({id:e,labelBBox:r,sourceHandle:n,targetHandle:o},a){return{id:e,type:"seq-step",data:{id:e,label:a.label,technology:a.technology,notes:a.notes??null,navigateTo:a.navigateTo,controlPoints:null,labelBBox:{x:0,y:0,width:r?.width??a.labelBBox?.width??32,height:r?.height??a.labelBBox?.height??32},labelXY:null,points:a.points,color:a.color,line:a.line,dir:"forward",head:a.head??"normal",tail:a.tail??"none",astPath:a.astPath,drifts:a.drifts??null},selectable:!0,focusable:!1,zIndex:20,interactionWidth:40,source:a.source,sourceHandle:n,target:a.target,targetHandle:o}}function rte({dynamicViewVariant:e,...r}){const n=r.view,o=n._type==="dynamic",{bounds:a,xynodes:i,xyedges:l}=o&&e==="sequence"?_Ze(n):kZe(r);return o&&n.variant!==e?{view:{...n,bounds:a,variant:e},xynodes:i,xyedges:l}:{view:a===n.bounds?n:{...n,bounds:a},xynodes:i,xyedges:l}}class nte{}class _m extends nte{constructor(r,n,o){super(),this.getEdgePosition=r,this.computePosition=n,this.propertyToEdit=o}alignTo;computeLayout(r){this.alignTo=this.getEdgePosition(r)}applyPosition(r){return{[this.propertyToEdit]:this.computePosition(this.alignTo,r)}}}class zZe extends nte{layout=new Map;axisPreset;get primaryAxisCoord(){return this.axisPreset.primaryAxisCoord}get secondaryAxisCoord(){return this.axisPreset.secondaryAxisCoord}get primaryAxisDimension(){return this.axisPreset.primaryAxisDimension}get secondaryAxisDimension(){return this.axisPreset.secondaryAxisDimension}constructor(r){super(),this.axisPreset=r==="Column"?{primaryAxisDimension:"width",secondaryAxisDimension:"height",primaryAxisCoord:"x",secondaryAxisCoord:"y"}:{primaryAxisDimension:"height",secondaryAxisDimension:"width",primaryAxisCoord:"y",secondaryAxisCoord:"x"}}applyPosition(r){return this.layout?.get(r.id)??{}}computeLayout(r){const n=Jr(r,Kx(i=>i[this.primaryAxisCoord])),o=this.getLayoutRect(n),a=this.getLayers(n);this.layout=this.buildLayout(a,o,n)}getLayoutRect(r){const n=Math.min(...r.map(l=>l.x)),o=Math.min(...r.map(l=>l.y)),a=Math.max(...r.map(l=>l.x+l.width)),i=Math.max(...r.map(l=>l.y+l.height));return{x:n,y:o,width:a-n,height:i-o}}getLayers(r){const n=[];let o=0,a=null;for(let i of r)if(a&&i[this.primaryAxisCoord]i.nodes.sort((l,s)=>l[this.secondaryAxisCoord]-s[this.secondaryAxisCoord])),n}buildLayout(r,n,o){const a=new Map(o.map(v=>[v.id,v])),i=[],l=r.reduce((v,w)=>v+w.primaryAxisSize,0),s=r.length>1?(n[this.primaryAxisDimension]-l)/(r.length-1):0,c=r.reduce((v,w,x)=>r[v].occupiedSpacev+w.primaryAxisSize+s,n[this.primaryAxisCoord]),p=this.buildLayerLayout(d,n,u,a,null);d.layout=p,i.push(...p.nodePositions);let f=u+d.primaryAxisSize+s,g=d;for(let v=c+1;v=0;v--){const w=r[v];f-=w.primaryAxisSize+s,w.layout=this.buildLayerLayout(w,n,f,a,g),i.push(...w.layout.nodePositions),g=w.layout.refLayer??w}return new Map(i)}buildLayerLayout(r,n,o,a,i){let l=this.scoreLayout(this.spaceAround(r,n,o),a);if(r.nodes.length!=1){const s=this.scoreLayout(this.spaceBetween(r,n,o),a);l=s[0]=r.nodes.length){const s=this.scoreLayout(this.placeInGaps(r,o,i),a);l=s[0]=r.nodes.length){const s=this.scoreLayout(this.placeInCells(r,o,i),a);l=s[0]c[this.secondaryAxisCoord]))l.set(s.id,{[this.secondaryAxisCoord]:i,[this.primaryAxisCoord]:o}),i+=s[this.secondaryAxisDimension]+a;return{nodePositions:l,refLayer:null}}placeInGaps(r,n,o){const a=new Map,i=r.nodes,l=this.getGapsPositions(o);let s=0;for(let c=0,d=i[c];c{const i=n.get(o);return He(i,`Could not find original rect for node ${o}`),[WV(i,["x","y"]),a]}),un(([o,a])=>Math.abs(o[this.secondaryAxisCoord]-a[this.secondaryAxisCoord])),Zx((o,a)=>o+a,0)),r]}getGapsPositions(r){const n=[],{layout:o,nodes:a}=r;He(o,"Layout of the layer must be computed before calling getGapsPositions");for(let i=1;iMath.min(...r.map(n=>n.x)),(r,n)=>Math.floor(r),"x");case"Top":return new _m(r=>Math.min(...r.map(n=>n.y)),(r,n)=>Math.floor(r),"y");case"Right":return new _m(r=>Math.max(...r.map(n=>n.x+n.width)),(r,n)=>Math.floor(r-n.width),"x");case"Bottom":return new _m(r=>Math.max(...r.map(n=>n.y+n.height)),(r,n)=>Math.floor(r-n.height),"y");case"Center":return new _m(r=>Math.min(...r.map(n=>n.x+n.width/2)),(r,n)=>Math.floor(r-n.width/2),"x");case"Middle":return new _m(r=>Math.min(...r.map(n=>n.y+n.height/2)),(r,n)=>Math.floor(r-n.height/2),"y")}}function ote(e){const{width:r,height:n}=_o(e);return{...e.internals.positionAbsolute,id:e.id,width:r,height:n}}function jZe(e){switch(e){case"Left":case"Right":case"Top":case"Bottom":case"Center":case"Middle":return RZe(e);case"Column":case"Row":return new zZe(e);default:Xo(e)}}const h0=e=>Qe.createAction(({context:r,event:n})=>{let o,a;e?(o=e.viewport,a=e.duration):(ht(n,"xyflow.setViewport"),o=n.viewport,a=n.duration),a=a??400;const{panZoom:i}=mt(r.xystore).getState(),l=a>0?{duration:a,interpolate:"smooth"}:void 0;i?.setViewport({x:Math.round(o.x),y:Math.round(o.y),zoom:o.zoom},l).catch(s=>{console.error("Error during fitDiagram panZoom setViewport",{err:s})})}),P2=e=>Qe.enqueueActions(({context:r,event:n,enqueue:o})=>{let a=r.view.bounds,i;e?(a=e.bounds??r.view.bounds,i=e.duration):n.type==="xyflow.fitDiagram"&&(a=n.bounds??r.view.bounds,i=n.duration,o.assign({viewportChangedManually:!1})),i??=450;const{width:l,height:s,panZoom:c,transform:d}=mt(r.xystore).getState(),u=Math.max(1,d[2]),p=qs(a,l,s,yi,u,r.fitViewPadding);p.x=Math.round(p.x),p.y=Math.round(p.y);const f=i>0?{duration:i,interpolate:"smooth"}:void 0;c?.setViewport(p,f).catch(g=>{console.error("Error during fitDiagram panZoom setViewport",{err:g})})}),f0=()=>Qe.createAction(({context:e})=>{const r=!!e.activeWalkthrough&&e.dynamicViewVariant==="sequence",{bounds:n,duration:o=450}=r?GUe({context:e}):UUe({context:e}),{width:a,height:i,panZoom:l,transform:s}=mt(e.xystore).getState(),c=Math.max(1,s[2]),d=qs(n,a,i,yi,c,e.fitViewPadding);d.x=Math.round(d.x),d.y=Math.round(d.y);const u=o>0?{duration:o,interpolate:"smooth"}:void 0;l?.setViewport(d,u).catch(p=>{console.error("Error during fitFocusedBounds panZoom setViewport",{err:p})})}),gz=30,ate=e=>{const{delay:r=gz,...n}=e??{};return Qe.raise({type:"xyflow.setViewport",...n},{id:"fitDiagram",delay:r})},cc=()=>Qe.cancel("fitDiagram"),B2=e=>{const{delay:r=gz,...n}=e??{};return Qe.raise({type:"xyflow.fitDiagram",...n},{id:"fitDiagram",delay:r})},TZe=e=>Qe.raise(({context:r})=>({type:"update.view",view:r.view}),{delay:gz}),yz=e=>Qe.assign(({context:r})=>({viewportBefore:{wasChangedManually:r.viewportChangedManually,value:{...r.viewport}}})),vz=e=>Qe.enqueueActions(({enqueue:r,context:{viewportBefore:n}})=>{r(cc()),n?(r.assign({viewportChangedManually:n.wasChangedManually,viewportBefore:null}),e&&e.delay===0?r(h0({viewport:n.value,...e})):r(ate({viewport:n.value,...e}))):e&&e.delay===0?r(P2({...e})):r(B2({...e}))}),ite=()=>Qe.assign(({context:e})=>({toggledFeatures:{...e.toggledFeatures,enableCompareWithLatest:!1},viewportOnAutoLayout:null,viewportOnManualLayout:null})),AZe=()=>Qe.assign(({context:e,event:r})=>{if(ht(r,"xyflow.edgeDoubleClick"),!r.edge.data.controlPoints)return{};const{nodeLookup:n}=e.xystore.getState();return{xyedges:e.xyedges.map(o=>{if(o.id===r.edge.id){const a=ete(n,o),i=a[0];return{...o,data:{...o.data,controlPoints:a,labelBBox:o.data.labelBBox?{...o.data.labelBBox,...i}:null,labelXY:null}}}return o})}}),$p=()=>Qe.assign(({context:e,event:r})=>{ht(r,"xyflow.nodeClick");const{lastClickedNode:n}=e;return!n||n.id!==r.node.id?{lastClickedNode:{id:r.node.id,clicks:1,timestamp:Date.now()}}:{lastClickedNode:{id:n.id,clicks:n.clicks+1,timestamp:Date.now()}}}),O2=()=>Qe.assign(({event:e})=>{let r,n=!1;switch(e.type){case"xyflow.nodeClick":r=e.node.data.id;break;case"focus.node":r=e.nodeId,n=e.autoUnfocus===!0;break;default:throw new Error(`Unexpected event type: ${e.type} in action 'assign: focusedNode'`)}return{focusedNode:r,autoUnfocusTimer:n}}),Sm=()=>Qe.assign(()=>({lastClickedNode:null})),lte=()=>Qe.assign(({event:e})=>(ht(e,"update.features"),{features:{...e.features}})),DZe=()=>Qe.assign(({event:e})=>(ht(e,"update.inputs"),{...e.inputs})),ste=e=>Qe.assign(({context:r,event:n})=>{let o;ht(n,"update.view"),o="xynodes"in n?n:rte({dynamicViewVariant:r.dynamicViewVariant,view:n.view,where:r.where});const a=mz(r,o);let{lastClickedNode:i,focusedNode:l,activeWalkthrough:s}=r;if(i||l||s){const c=new Set(a.xynodes.map(u=>u.id));i&&!c.has(i.id)&&(i=null),l&&!c.has(l)&&(l=null);const d=s?.stepId;return d&&!a.xyedges.some(u=>u.id===d)&&(s=null),{...a,lastClickedNode:i,focusedNode:l,activeWalkthrough:s}}return a}),m0=()=>Qe.enqueueActions(({context:e,enqueue:r})=>{const n=bZe(e);n?r.assign(n):r.raise({type:"key.esc"})}),I2=()=>Qe.assign(({context:e})=>({xynodes:e.xynodes.map(tr.setDimmed(!1)),xyedges:e.xyedges.map(tr.setData({dimmed:!1,active:!1}))})),MZe=()=>Qe.assign(({event:e})=>(ht(e,"switch.dynamicViewVariant"),{dynamicViewVariant:e.variant})),NZe=e=>Qe.assign(({context:r,event:n})=>{let o=e?.node;return o||(ht(n,"xyflow.nodeMouseEnter"),o=n.node),{xynodes:r.xynodes.map(a=>a.id===o.id?tr.setHovered(a,!0):a)}}),PZe=e=>Qe.assign(({context:r,event:n})=>{let o=e?.node;return o||(ht(n,"xyflow.nodeMouseLeave"),o=n.node),{xynodes:r.xynodes.map(a=>a.id===o.id?tr.setHovered(a,!1):a)}}),bz=()=>Qe.emit(()=>({type:"paneClick"})),cte=e=>Qe.emit(({event:r})=>e?{type:"openSource",params:e}:(ht(r,"open.source"),{type:"openSource",params:r})),BZe=()=>Qe.emit(({context:e})=>(He(e.xyflow,"XYFlow instance not found"),{type:"initialized",instance:e.xyflow})),zp=()=>Qe.emit(({context:e,event:r})=>(ht(r,"xyflow.nodeClick"),{type:"nodeClick",node:mt(pm(e,r.node.id),`Node ${r.node.id} not found in diagram`),xynode:r.node})),xz=e=>Qe.emit(({context:r})=>({type:"navigateTo",viewId:e?.viewId??mt(r.lastOnNavigate,"Invalid state, lastOnNavigate is null").toView})),wz=()=>Qe.emit(({context:e,event:r})=>(ht(r,"xyflow.edgeClick"),{type:"edgeClick",edge:mt(T$(e,r.edge.id),`Edge ${r.edge.id} not found in diagram`),xyedge:r.edge})),dte=e=>Qe.enqueueActions(({event:r,enqueue:n})=>{let o=e;o||(ht(r,"trigger.change"),o=r.change),n.assign({viewportChangedManually:!0}),n.sendTo(Rr.editorActor,{type:"change",change:o})}),OZe=()=>Qe.enqueueActions(({event:e,system:r,context:n,enqueue:o})=>{if(!n.features.enableCompareWithLatest){console.warn("Layout type cannot be changed while CompareWithLatest feature is disabled");return}const a=n.view._layout;let i=a==="auto"?"manual":"auto";if(e.type==="emit.onLayoutTypeChange"&&(i=e.layoutType),a===i){console.warn("Ignoring layout type change event, layout type is already",a);return}if(n.toggledFeatures.enableCompareWithLatest===!0){a==="manual"&&i==="auto"&&Rr(r).editorActorRef?.send({type:"cancel"});const l=n.viewport;a==="auto"&&o.assign({viewportOnAutoLayout:l}),a==="manual"&&o.assign({viewportOnManualLayout:l})}o.emit({type:"onLayoutTypeChange",layoutType:i})}),IZe=e=>Qe.createAction(({context:r,event:n})=>{let o;ht(n,"layout.align"),o=n.mode;const a=mt(r.xystore,"xystore is not initialized"),{nodeLookup:i,parentLookup:l}=a.getState(),s=[...new Set(i.values().filter(p=>p.selected).map(p=>p.id)).difference(new Set(l.keys()))];if(!xn(s,2)){console.warn("At least 2 nodes must be selected to align");return}const c=Yee(a,s),d=jZe(o),u=s.map(p=>({node:mt(i.get(p)),rect:mt(c.rects.get(p))}));d.computeLayout(u.map(({node:p})=>ote(p)));for(const{rect:p,node:f}of u)p.positionAbsolute={...p.positionAbsolute,...d.applyPosition(ote(f))};c.updateXYFlow()}),LZe=()=>Qe.assign(({context:e})=>{const{nodeLookup:r}=e.xystore.getState();return{xyedges:e.xyedges.map(n=>{if(!n.data.controlPoints)return n;const o=ete(r,n),a=o[0];return{...n,data:{...n.data,controlPoints:o,labelBBox:n.data.labelBBox?{...n.data.labelBBox,x:a.x,y:a.y}:null,labelXY:n.data.labelXY?a:null}}})}}),FZe=()=>Qe.assign(({context:e,event:r})=>{ht(r,"notations.highlight");const{notation:n,kind:o}=r,a=o?[o]:n.kinds,i=c=>c.notation===n.title&&c.shape===n.shape&&c.color===n.color&&a.includes(c.kind),l=e.xynodes.map(c=>{const d=pm(e,c.id),u=d&&i(d);return tr.setDimmed(c,u?!1:"immediate")}),s=e.xyedges.map(c=>tr.setDimmed(c,!0));return{xynodes:l,xyedges:s}}),VZe=()=>Qe.assign(({context:e,event:r})=>(ht(r,"tag.highlight"),{xynodes:e.xynodes.map(n=>n.data.tags?.includes(r.tag)?tr.setDimmed(n,!1):tr.setDimmed(n,!0))})),qZe=()=>Qe.assign(({context:e,event:r})=>{ht(r,"toggle.feature");const n=e.toggledFeatures[`enable${r.feature}`]??e.features[`enable${r.feature}`],o=r.forceValue??!n;return{toggledFeatures:{...e.toggledFeatures,[`enable${r.feature}`]:o}}}),HZe=()=>Qe.sendTo(Rr.searchActor,{type:"close"}),UZe=()=>Qe.sendTo(Rr.overlaysActor,{type:"close.all"}),ute=()=>Qe.enqueueActions(({enqueue:e,system:r})=>{const n=Rr(r).editorActorRef;n&&e.stopChild(n)}),kz=()=>Qe.enqueueActions(({enqueue:e,context:r,system:n,check:o})=>{const a=o("enabled: Editor"),i=Rr(n).editorActorRef;if(!a&&i){e.stopChild(i);return}a&&!i&&e.spawnChild("editorActor",{id:"editor",systemId:"editor",input:{viewId:r.view.id},syncSnapshot:!0})}),_z=(e="node")=>Qe.sendTo(Rr.editorActor,{type:"edit.start",subject:e}),WZe=()=>Qe.sendTo(Rr.editorActor,{type:"synced"}),Sz=(e=!0)=>Qe.sendTo(Rr.editorActor,{type:"edit.finish",wasChanged:e}),pte=()=>Qe.sendTo(Rr.editorActor,{type:"cancel"}),hte=e=>"modelFqn"in e.data&&Kn(e.data.modelFqn),Ez=e=>Qe.enqueueActions(({context:r,event:n,enqueue:o})=>{let a=null,i,l;switch(!0){case n.type==="xyflow.nodeClick":{if(!hte(n.node)){console.warn("No modelFqn in clicked node data");return}l=n.node.data.modelFqn,i=n.node.data.id;break}case n.type==="open.elementDetails":{l=n.fqn,i=n.fromNode;break}default:{if(!r.lastClickedNode){console.warn("No last clicked node");return}i=r.lastClickedNode.id;const c=r.xynodes.find(d=>d.id===i);if(!c||!hte(c)){console.warn("No modelFqn in last clicked node");return}l=c.data.modelFqn;break}}const s=i?r.xystore.getState().nodeLookup.get(i):null;if(i&&s){const c=Vu(s),d=r.xyflow.getZoom(),u={...r.xyflow.flowToScreenPosition(c),width:c.width*d,height:c.height*d};a={node:i,clientRect:u}}o.sendTo(Rr.overlaysActor,{type:"open.elementDetails",subject:l,currentView:r.view,...a&&{initiatedFrom:a}})}),Cz=()=>Qe.enqueueActions(({context:e,event:r,enqueue:n,check:o})=>{if(ht(r,["open.relationshipsBrowser","open.relationshipDetails","open.elementDetails"]),!o("enabled: Overlays")){console.warn("Overlays feature is disabled");return}switch(r.type){case"open.elementDetails":{o("enabled: ElementDetails")?n(Ez()):console.warn("ElementDetails feature is disabled");break}case"open.relationshipsBrowser":{n.sendTo(Rr.overlaysActor,{type:"open.relationshipsBrowser",subject:r.fqn,viewId:e.view.id,scope:"view",closeable:!0,enableChangeScope:!0,enableSelectSubject:!0});break}case"open.relationshipDetails":{n.sendTo(Rr.overlaysActor,{type:"open.relationshipDetails",viewId:e.view.id,...r.params});break}default:Xo(r)}}),L2=()=>Qe.enqueueActions(({context:e,enqueue:r})=>{const n=e.focusedNode??e.lastClickedNode?.id;if(!n||!e.features.enableVscode)return;const o=pm(e,n);o&&(o.deploymentRef?r.raise({type:"open.source",deployment:o.deploymentRef}):o.modelRef&&r.raise({type:"open.source",element:o.modelRef}))}),fte=()=>Qe.enqueueActions(({enqueue:e,check:r,system:n})=>{const o=r("enabled: Overlays"),a=Rr(n).overlaysActorRef;if(o&&!a){e.spawnChild("overlaysActorLogic",{id:"overlays",systemId:"overlays"});return}!o&&a&&(e.sendTo(a,{type:"close.all"}),e.stopChild("overlays"))}),mte=()=>Qe.enqueueActions(({enqueue:e,context:{features:{enableSearch:r}},system:n})=>{const o=Rr(n).searchActorRef;if(r&&!o){e.spawnChild("searchActorLogic",{id:"search",systemId:"search"});return}!r&&o&&(e.sendTo(o,{type:"close"}),e.stopChild("search"))}),GZe=()=>Qe.enqueueActions(({enqueue:e,context:r,event:n})=>{ht(n,"xyflow.edgeMouseEnter");let o=n.edge;e.assign({xyedges:r.xyedges.map(a=>a.id===n.edge.id?(o=tr.setHovered(a,!0),o):a)}),e.emit({type:"edgeMouseEnter",edge:o,event:n.event})}),YZe=()=>Qe.enqueueActions(({enqueue:e,context:r,event:n})=>{ht(n,"xyflow.edgeMouseLeave");let o=n.edge;e.assign({xyedges:r.xyedges.map(a=>a.id===n.edge.id?(o=tr.setHovered(a,!1),o):a)}),e.emit({type:"edgeMouseLeave",edge:o,event:n.event})}),gte=()=>Qe.spawnChild("hotkeyActorLogic",{id:"hotkey"}),yte=()=>Qe.stopChild("hotkey"),vte=3e3,XZe=()=>Qe.enqueueActions(({context:e,enqueue:r})=>{e.autoUnfocusTimer&&vte>0&&r.raise({type:"focus.autoUnfocus"},{delay:vte,id:"autoUnfocusTimer"})}),ZZe=()=>Qe.cancel("autoUnfocusTimer"),KZe=()=>Qe.enqueueActions(({enqueue:e,context:r,event:n})=>{ht(n,["navigate.to","navigate.back","navigate.forward"]);const{view:o,focusedNode:a,activeWalkthrough:i,dynamicViewVariant:l,viewport:s,viewportChangedManually:c,viewportBefore:d,navigationHistory:{currentIndex:u,history:p}}=r;let f=[...p];if(u{v.viewport={...s},v.viewportChangedManually=c,v.focusedNode=a,o._type==="dynamic"?(v.activeWalkthrough=i?.stepId??null,v.dynamicViewVariant=l):(v.activeWalkthrough=null,v.dynamicViewVariant=null),d?v.viewportBefore=d:delete v.viewportBefore});f=[...p],f[u]=g}switch(n.type){case"navigate.to":{e.assign({navigationHistory:{currentIndex:u,history:f},lastOnNavigate:{fromView:r.view.id,toView:n.viewId,fromNode:n.fromNode??null,focusOnElement:n.focusOnElement??null}}),e(xz());break}case"navigate.back":{He(u>0,"Cannot navigate back");const g=f[u-1];e.assign({navigationHistory:{currentIndex:u-1,history:f},lastOnNavigate:null}),e(xz({viewId:g.viewId}));break}case"navigate.forward":{He(uQe.enqueueActions(({enqueue:e,event:r,context:n})=>{if(r.type!=="update.view"){console.warn(`Ignoring unexpected event type: ${r.type} in action 'update.view'`);return}const o=r.view;if(o.id!==n.view.id){console.warn("updateView called for another view - ignoring",{event:r});return}if(e(ste()),r.source==="editor")return;e(WZe());let a=!n.viewportChangedManually&&!n.focusedNode&&!n.activeWalkthrough;if(n.toggledFeatures.enableCompareWithLatest===!0&&n.view._layout!==o._layout){if(o._layout==="auto"&&n.viewportOnAutoLayout){e(h0({viewport:n.viewportOnAutoLayout,duration:0}));return}if(o._layout==="manual"&&n.viewportOnManualLayout){e(h0({viewport:n.viewportOnManualLayout,duration:0}));return}}a=a||o._type==="dynamic"&&n.view._type==="dynamic"&&o.variant!==n.view.variant,a=a||n.toggledFeatures.enableCompareWithLatest===!0&&!!o._layout&&n.view._layout!==o._layout,a&&(e(cc()),e(B2({bounds:r.view.bounds})))});var Vo={},zz={},bte;function xte(){if(bte)return zz;bte=1;var e=v2();function r(a,{machine:i,context:l},s,c){const d=(u,p)=>{if(typeof u=="string"){const f=e.resolveReferencedActor(i,u);if(!f)throw new Error(`Actor logic '${u}' not implemented in machine '${i.id}'`);const g=e.createActor(f,{id:p?.id,parent:a.self,syncSnapshot:p?.syncSnapshot,input:typeof p?.input=="function"?p.input({context:l,event:s,self:a.self}):p?.input,src:u,systemId:p?.systemId});return c[g.id]=g,g}else return e.createActor(u,{id:p?.id,parent:a.self,syncSnapshot:p?.syncSnapshot,input:p?.input,src:u,systemId:p?.systemId})};return(u,p)=>{const f=d(u,p);return c[f.id]=f,a.defer(()=>{f._processingStatus!==e.ProcessingStatus.Stopped&&f.start()}),f}}function n(a,i,l,s,{assignment:c}){if(!i.context)throw new Error("Cannot assign to undefined `context`. Ensure that `context` is defined in the machine config.");const d={},u={context:i.context,event:l.event,spawn:r(a,i,l.event,d),self:a.self,system:a.system};let p={};if(typeof c=="function")p=c(u,s);else for(const g of Object.keys(c)){const v=c[g];p[g]=typeof v=="function"?v(u,s):v}const f=Object.assign({},i.context,p);return[e.cloneMachineSnapshot(i,{context:f,children:Object.keys(d).length?{...i.children,...d}:i.children}),void 0,void 0]}function o(a){function i(l,s){}return i.type="xstate.assign",i.assignment=a,i.resolve=n,i}return zz.assign=o,zz}var dc={},wte;function QZe(){if(wte)return dc;wte=1;var e=v2(),r=xte();function n(k,C,_,$,{event:z}){const j=typeof z=="function"?z(_,$):z;return[C,{event:j},void 0]}function o(k,{event:C}){k.defer(()=>k.emit(C))}function a(k){function C(_,$){}return C.type="xstate.emit",C.event=k,C.resolve=n,C.execute=o,C}let i=(function(k){return k.Parent="#_parent",k.Internal="#_internal",k})({});function l(k,C,_,$,{to:z,event:j,id:A,delay:R},T){const O=C.machine.implementations.delays;if(typeof j=="string")throw new Error(`Only event objects may be used with sendTo; use sendTo({ type: "${j}" }) instead`);const P=typeof j=="function"?j(_,$):j;let L;if(typeof R=="string"){const V=O&&O[R];L=typeof V=="function"?V(_,$):V}else L=typeof R=="function"?R(_,$):R;const H=typeof z=="function"?z(_,$):z;let M;if(typeof H=="string"){if(H===i.Parent?M=k.self._parent:H===i.Internal?M=k.self:H.startsWith("#_")?M=C.children[H.slice(2)]:M=T.deferredActorIds?.includes(H)?H:C.children[H],!M)throw new Error(`Unable to send event to actor '${H}' from machine '${C.machine.id}'.`)}else M=H||k.self;return[C,{to:M,targetId:typeof H=="string"?H:void 0,event:P,id:A,delay:L},void 0]}function s(k,C,_){typeof _.to=="string"&&(_.to=C.children[_.to])}function c(k,C){k.defer(()=>{const{to:_,event:$,delay:z,id:j}=C;if(typeof z=="number"){k.system.scheduler.schedule(k.self,_,$,z,j);return}k.system._relay(k.self,_,$.type===e.XSTATE_ERROR?e.createErrorActorEvent(k.self.id,$.data):$)})}function d(k,C,_){function $(z,j){}return $.type="xstate.sendTo",$.to=k,$.event=C,$.id=_?.id,$.delay=_?.delay,$.resolve=l,$.retryResolve=s,$.execute=c,$}function u(k,C){return d(i.Parent,k,C)}function p(k,C){return d(k,({event:_})=>_,C)}function f(k,C,_,$,{collect:z}){const j=[],A=function(R){j.push(R)};return A.assign=(...R)=>{j.push(r.assign(...R))},A.cancel=(...R)=>{j.push(e.cancel(...R))},A.raise=(...R)=>{j.push(e.raise(...R))},A.sendTo=(...R)=>{j.push(d(...R))},A.sendParent=(...R)=>{j.push(u(...R))},A.spawnChild=(...R)=>{j.push(e.spawnChild(...R))},A.stopChild=(...R)=>{j.push(e.stopChild(...R))},A.emit=(...R)=>{j.push(a(...R))},z({context:_.context,event:_.event,enqueue:A,check:R=>e.evaluateGuard(R,C.context,_.event,C),self:k.self,system:k.system},$),[C,void 0,j]}function g(k){function C(_,$){}return C.type="xstate.enqueueActions",C.collect=k,C.resolve=f,C}function v(k,C,_,$,{value:z,label:j}){return[C,{value:typeof z=="function"?z(_,$):z,label:j},void 0]}function w({logger:k},{value:C,label:_}){_?k(_,C):k(C)}function x(k=({context:_,event:$})=>({context:_,event:$}),C){function _($,z){}return _.type="xstate.log",_.value=k,_.label=C,_.resolve=v,_.execute=w,_}return dc.SpecialTargets=i,dc.emit=a,dc.enqueueActions=g,dc.forwardTo=p,dc.log=x,dc.sendParent=u,dc.sendTo=d,dc}var kte;function JZe(){if(kte)return Vo;kte=1,Object.defineProperty(Vo,"__esModule",{value:!0});var e=xte(),r=v2(),n=QZe();return V$(),Vo.assign=e.assign,Vo.cancel=r.cancel,Vo.raise=r.raise,Vo.spawnChild=r.spawnChild,Vo.stop=r.stop,Vo.stopChild=r.stopChild,Vo.emit=n.emit,Vo.enqueueActions=n.enqueueActions,Vo.forwardTo=n.forwardTo,Vo.log=n.log,Vo.sendParent=n.sendParent,Vo.sendTo=n.sendTo,Vo}var fr=JZe();const eKe=Qe.createStateConfig({on:{"xyflow.init":{actions:fr.assign(({context:e,event:r})=>({initialized:{...e.initialized,xyflow:!0},xyflow:r.instance})),target:"isReady"},"update.view":{actions:[ste(),fr.assign(({context:e})=>({initialized:{...e.initialized,xydata:!0}}))],target:"isReady"}}}),tKe=Qe.createStateConfig({always:[{guard:"isReady",actions:[P2({duration:0}),fr.assign(({context:e})=>({navigationHistory:{currentIndex:0,history:[{viewId:e.view.id,viewport:{...e.xyflow.getViewport()},viewportChangedManually:!1}]}})),BZe()],target:"ready"},{target:"initializing"}]}),rKe=()=>Qe.assign(({context:e,event:r})=>{ht(r,"update.view");let{lastOnNavigate:n,navigationHistory:{currentIndex:o,history:a}}=e;const i=a[o];if(!i||i.viewId===r.view.id||n)return{};const l=o>0?mt(a[o-1]):null;if(l&&l.viewId===r.view.id)return{navigationHistory:{currentIndex:o-1,history:a},lastOnNavigate:null};const s=oA$(u)===c);if(d)return{lastOnNavigate:{fromView:e.view.id,toView:r.view.id,fromNode:d.id}}}return{}}),nKe=Qe.createStateConfig({id:Rn.navigating.slice(1),always:{target:Rn.idle,actions:[cc(),rKe(),ite(),ts(({enqueue:e,context:r,event:n})=>{ht(n,"update.view");const{xyflow:o,xystore:a,navigationHistory:{currentIndex:i,history:l}}=r,s="xynodes"in n?n:{...n,...rte({dynamicViewVariant:r.dynamicViewVariant,view:n.view,where:r.where})};He(o,"xyflow is not initialized");const c=x=>{const k=o.getZoom(),C=x.zoom({type:"focus.node",nodeId:e.node.id})),zp()]}],"focus.node":{actions:[O2(),m0(),L2(),f0()]},"key.esc":{target:Rn.idle},"xyflow.paneClick":{actions:[Sm(),bz()],target:Rn.idle},"notations.unhighlight":{actions:m0()},"tag.unhighlight":{actions:m0()},"update.view":{guard:"is same view",actions:[$z(),m0()]}}}),aKe=Qe.createStateConfig({id:Rn.idle.slice(1),on:{"xyflow.nodeClick":[{guard:Rd.and(["enabled: Readonly","enabled: FocusMode","click: node has connections",Rd.or(["click: same node","click: selected node"])]),actions:[$p(),O2(),zp()],target:Rn.focused},{guard:Rd.and(["enabled: Readonly","enabled: ElementDetails","click: node has modelFqn",Rd.or(["click: same node","click: selected node"])]),actions:[$p(),L2(),Ez(),zp()]},{actions:[$p(),L2(),zp()]}],"xyflow.paneClick":{actions:[Sm(),bz()]},"xyflow.paneDblClick":{actions:[Sm(),fr.enqueueActions(({context:e,enqueue:r,check:n})=>{n("enabled: FitView")&&r(P2()),r(cte({view:e.view.id}))})]},"focus.node":[{guard:"focus.node: autoUnfocus",actions:O2(),target:Rn.focused},{guard:"enabled: FocusMode",actions:O2(),target:Rn.focused}],"xyflow.edgeClick":{guard:Rd.and(["enabled: Readonly","is dynamic view","enabled: DynamicViewWalkthrough","click: selected edge"]),actions:[Sm(),fr.raise(({event:e})=>({type:"walkthrough.start",stepId:e.edge.id})),wz()]}}}),iKe=Qe.createStateConfig({id:Rn.printing.slice(1),entry:[cc(),yz(),ts(({enqueue:e,context:r})=>{const n=r.view.bounds,o=16;e(h0({viewport:{x:n.x+o,y:n.y+o,zoom:1},duration:0}))})],exit:[vz({delay:0,duration:0})],on:{"media.print.off":{target:Rn.idle},"*":{actions:[TS(({event:e})=>`Printing state - ignoring event: ${e.type}`)]}}}),Em=()=>Qe.enqueueActions(({context:e,enqueue:r})=>{const{activeWalkthrough:n}=e;if(!n){console.warn("Active walkthrough is null"),r.raise({type:"walkthrough.end"});return}const{stepId:o,parallelPrefix:a}=n,i=e.xyedges.find(l=>l.id===o);if(!i){console.warn("Invalid walkthrough stepId:",o),r.raise({type:"walkthrough.end"});return}r.assign({xyedges:e.xyedges.map(l=>{const s=o===l.id||!!a&&l.id.startsWith(a);return tr.setData(l,{active:s,dimmed:o!==l.id})}),xynodes:e.xynodes.map(l=>{const s=i.source!==l.id&&i.target!==l.id;return l.type==="seq-parallel"?tr.setData(l,{color:a===l.data.parallelPrefix?N2.active:N2.default,dimmed:s}):tr.setDimmed(l,s)})})}),lKe=()=>Qe.emit(({context:e})=>{const r=e.xyedges.find(n=>n.id===e.activeWalkthrough?.stepId);return He(r,"Invalid walkthrough state"),{type:"walkthroughStarted",edge:r}}),sKe=()=>Qe.emit(()=>({type:"walkthroughStopped"})),_te=()=>Qe.emit(({context:e})=>{const r=e.xyedges.find(n=>n.id===e.activeWalkthrough?.stepId);return He(r,"Invalid walkthrough state"),{type:"walkthroughStep",edge:r}}),cKe=Qe.createStateConfig({id:Rn.walkthrough.slice(1),entry:[gte(),pte(),cc(),yz(),fr.assign({activeWalkthrough:({context:e,event:r})=>{ht(r,"walkthrough.start");const n=r.stepId??df(e.xyedges).id;return{stepId:n,parallelPrefix:u8(n)}}}),Em(),f0(),lKe()],exit:[yte(),fr.enqueueActions(({enqueue:e,context:r})=>{e.assign({activeWalkthrough:null}),r.dynamicViewVariant==="sequence"&&r.activeWalkthrough?.parallelPrefix&&e.assign({xynodes:r.xynodes.map(n=>n.type==="seq-parallel"?tr.setData(n,{color:N2.default}):n)})}),I2(),vz(),sKe()],on:{"key.esc":{target:Rn.idle},"key.arrow.left":{actions:fr.raise({type:"walkthrough.step",direction:"previous"})},"key.arrow.up":{actions:fr.raise({type:"walkthrough.step",direction:"previous"})},"key.arrow.right":{actions:fr.raise({type:"walkthrough.step",direction:"next"})},"key.arrow.down":{actions:fr.raise({type:"walkthrough.step",direction:"next"})},"walkthrough.step":{actions:[fr.assign(({context:e,event:r})=>{const{stepId:n}=e.activeWalkthrough,o=e.xyedges.findIndex(l=>l.id===n),a=Qa(r.direction==="next"?o+1:o-1,{min:0,max:e.xyedges.length-1});if(a===o)return{};const i=e.xyedges[a].id;return{activeWalkthrough:{stepId:i,parallelPrefix:u8(i)}}}),Em(),f0(),_te()]},"xyflow.edgeClick":{actions:[fr.assign(({event:e,context:r})=>!u1(e.edge.id)||e.edge.id===r.activeWalkthrough?.stepId?{}:{activeWalkthrough:{stepId:e.edge.id,parallelPrefix:u8(e.edge.id)}}),Em(),f0(),wz(),_te()]},"notations.unhighlight":{actions:Em()},"tag.unhighlight":{actions:Em()},"update.view":{guard:"is same view",actions:[$z(),Em()]},"walkthrough.end":{target:Rn.idle},"xyflow.paneDblClick":{target:Rn.idle}}}),dKe=Qe.createStateConfig({initial:"idle",entry:[fr.spawnChild("mediaPrintActorLogic",{id:"mediaPrint"}),kz(),fte(),mte()],exit:[cc(),fr.stopChild("mediaPrint"),UZe(),HZe(),ute()],states:{idle:aKe,focused:oKe,walkthrough:cKe,printing:iKe},on:{"navigate.*":{actions:KZe()},"layout.align":{guard:"not readonly",actions:[_z("node"),IZe(),Sz(!0)]},"layout.resetEdgeControlPoints":{guard:"not readonly",actions:[_z("edge"),LZe(),Sz(!0)]},"layout.resetManualLayout":{guard:"not readonly",actions:[pte(),ite(),dte({op:"reset-manual-layout"})]},"xyflow.resized":{guard:({context:e})=>e.features.enableFitView&&!e.viewportChangedManually,actions:[cc(),B2({delay:200})]},"open.elementDetails":{actions:Cz()},"open.relationshipsBrowser":{actions:Cz()},"open.relationshipDetails":{actions:Cz()},"open.source":{guard:"enabled: OpenSource",actions:cte()},"walkthrough.start":{guard:"is dynamic view",target:Rn.walkthrough},"toggle.feature":{actions:[qZe(),kz()]},"update.features":{actions:[lte(),fte(),mte(),kz()]},"xyflow.nodeMouseEnter":{actions:NZe()},"xyflow.nodeMouseLeave":{actions:PZe()},"xyflow.edgeMouseEnter":{actions:GZe()},"xyflow.edgeMouseLeave":{actions:YZe()},"xyflow.edgeDoubleClick":{guard:Rd.and(["not readonly",({event:e})=>!!e.edge.data.controlPoints&&e.edge.data.controlPoints.length>0]),actions:[_z("edge"),AZe(),Sz(!0)]},"notations.highlight":{actions:FZe()},"notations.unhighlight":{actions:I2()},"tag.highlight":{actions:VZe()},"tag.unhighlight":{actions:I2()},"open.search":{guard:"enabled: Search",actions:fr.sendTo(({system:e})=>Rr(e).searchActorRef,({event:e})=>({type:"open",search:e.search}))},"xyflow.paneClick":{actions:[Sm(),bz()]},"xyflow.nodeClick":{actions:[$p(),zp()]},"xyflow.edgeClick":{actions:[Sm(),wz()]},"xyflow.fitDiagram":{guard:"enabled: FitView",actions:P2()},"xyflow.setViewport":{actions:h0()},"update.view":[{guard:"is another view",target:Rn.navigating},{actions:$z()}],"media.print.on":{target:Rn.printing}}}),Rz="likec4:diagram:toggledFeatures",Ste={read(){try{let e=sessionStorage.getItem(Rz);return e?JSON.parse(e):null}catch(e){return console.error(`Error reading fromStorage ${Rz}:`,e),null}},write(e){return sessionStorage.setItem(Rz,JSON.stringify(U1(e,OV))),e}},uKe=Qe.createMachine({initial:"initializing",context:({input:e})=>({...e,xyedges:[],xynodes:[],features:{...GW},toggledFeatures:Ste.read()??{enableReadOnly:!0,enableCompareWithLatest:!1},initialized:{xydata:!1,xyflow:!1},viewportChangedManually:!1,lastOnNavigate:null,lastClickedNode:null,focusedNode:null,autoUnfocusTimer:!1,activeElementDetails:null,viewportBefore:null,viewportOnManualLayout:null,viewportOnAutoLayout:null,navigationHistory:{currentIndex:0,history:[]},viewport:{x:0,y:0,zoom:1},xyflow:null,dynamicViewVariant:e.dynamicViewVariant??(e.view._type==="dynamic"?e.view.variant:"diagram")??"diagram",activeWalkthrough:null}),states:{initializing:eKe,isReady:tKe,ready:dKe,navigating:nKe,final:{type:"final",entry:[ute(),cc(),fr.stopChild("hotkey"),fr.stopChild("overlays"),fr.stopChild("search"),fr.stopChild("mediaPrint"),fr.assign({xyflow:null,xystore:null,xyedges:[],xynodes:[],initialized:{xydata:!1,xyflow:!1}})]}},on:{"update.nodeData":{actions:fr.assign(xZe)},"update.edgeData":{actions:fr.assign(wZe)},"switch.dynamicViewVariant":{guard:({context:e,event:r})=>e.dynamicViewVariant!==r.variant,actions:[MZe(),TZe()]},"update.inputs":{actions:DZe()},"update.view-bounds":{actions:fr.assign(({context:e,event:r})=>({view:{...e.view,bounds:r.bounds}}))},"update.features":{actions:lte()},"trigger.change":{actions:dte()},"emit.onLayoutTypeChange":{actions:OZe()},"xyflow.applyNodeChanges":{actions:fr.assign({xynodes:({context:e,event:r})=>Ox(r.changes,e.xynodes)})},"xyflow.applyEdgeChanges":{actions:fr.assign({xyedges:({context:e,event:r})=>Ix(r.changes,e.xyedges)})},"xyflow.viewportMoved":{actions:fr.assign(({event:e,context:r})=>({viewportChangedManually:r.viewportChangedManually||e.manually,viewport:e.viewport}))},destroy:{target:".final"}}}),pKe=uKe;function hKe({view:e,zoomable:r,pannable:n,nodesDraggable:o,nodesSelectable:a,fitViewPadding:i,where:l,children:s,dynamicViewVariant:c}){const d=vr(),u=vZe(e.id),p=AS(pKe.provide({actors:{editorActor:u}}),{id:"diagram",systemId:"diagram",input:{xystore:d,view:e,zoomable:r,pannable:n,fitViewPadding:i,nodesDraggable:o,nodesSelectable:a,where:l,dynamicViewVariant:c}}),f=S.useRef(p);f.current!==p&&(console.warn("DiagramMachine actor instance changed",{context:{previous:f.current.getSnapshot().context,current:p.getSnapshot().context}}),f.current=p);const[g,v]=S.useState(()=>Qee(f));S.useEffect(()=>{v(x=>x.ref===f?x:(console.warn("DiagramMachine actorRef changed, creating new DiagramApi instance, this should not happen during the lifetime of the actor"),Qee(f)))},[f]);const w=sr();return S.useEffect(()=>p.send({type:"update.features",features:w}),[w,p]),S.useEffect(()=>p.send({type:"update.inputs",inputs:{zoomable:r,where:l,pannable:n,fitViewPadding:i,nodesDraggable:o,nodesSelectable:a}}),[r,l,n,i,p,o,a]),Ed(()=>{c&&p.send({type:"switch.dynamicViewVariant",variant:c})},[c,p]),kI(()=>p.send({type:"update.view",view:e,source:"external"}),[p,e]),y.jsx(qNe,{value:p,children:y.jsxs(HNe,{value:g,children:[y.jsx(pS,{children:y.jsx(gKe,{actorRef:p,children:s})}),y.jsx(yKe,{})]})})}const fKe=({context:e})=>{let r=e.toggledFeatures;const n=e.view.drifts!=null&&e.view.drifts.length>0,o=e.features.enableCompareWithLatest&&(r.enableCompareWithLatest??!1)&&H1(e.activeWalkthrough)&&n,a=e.features.enableReadOnly||r.enableReadOnly||!!e.activeWalkthrough||e.dynamicViewVariant==="sequence"&&e.view._type==="dynamic"||o&&e.view._layout==="auto";return(r.enableReadOnly!==a||r.enableCompareWithLatest!==o)&&(r={...r,enableCompareWithLatest:o,enableReadOnly:a}),{toggledFeatures:r,viewId:e.view.id}},mKe=(e,r)=>e.viewId===r.viewId&&Or(e.toggledFeatures,r.toggledFeatures);function gKe({children:e,actorRef:r}){const{viewId:n,toggledFeatures:o}=pn(r,fKe,mKe),a=Lo().findView(n);return y.jsx(lS.Provider,{value:a,children:y.jsx(sp,{overrides:o,children:e})})}const yKe=S.memo(()=>{const e=Nt(),{onNavigateTo:r,onOpenSource:n,onLayoutTypeChange:o,handlersRef:a}=um();za("openSource",({params:l})=>n?.(l)),za("navigateTo",({viewId:l})=>r?.(l)),za("onLayoutTypeChange",({layoutType:l})=>{o?.(l)}),za("initialized",({instance:l})=>{try{a.current.onInitialized?.({diagram:e,xyflow:l})}catch(s){console.error(s)}},{once:!0});const i=ci(l=>l.toggledFeatures,Or);return Ed(()=>{Ste.write(_Ce(i,H1))},[i]),null}),F2={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:e=>e>=255?255:e<0?0:e,g:e=>e>=255?255:e<0?0:e,b:e=>e>=255?255:e<0?0:e,h:e=>e%360,s:e=>e>=100?100:e<0?0:e,l:e=>e>=100?100:e<0?0:e,a:e=>e>=1?1:e<0?0:e},toLinear:e=>{const r=e/255;return e>.03928?Math.pow((r+.055)/1.055,2.4):r/12.92},hue2rgb:(e,r,n)=>(n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(r-e)*6*n:n<1/2?r:n<2/3?e+(r-e)*(2/3-n)*6:e),hsl2rgb:({h:e,s:r,l:n},o)=>{if(!r)return n*2.55;e/=360,r/=100,n/=100;const a=n<.5?n*(1+r):n+r-n*r,i=2*n-a;switch(o){case"r":return F2.hue2rgb(i,a,e+1/3)*255;case"g":return F2.hue2rgb(i,a,e)*255;case"b":return F2.hue2rgb(i,a,e-1/3)*255}},rgb2hsl:({r:e,g:r,b:n},o)=>{e/=255,r/=255,n/=255;const a=Math.max(e,r,n),i=Math.min(e,r,n),l=(a+i)/2;if(o==="l")return l*100;if(a===i)return 0;const s=a-i,c=l>.5?s/(2-a-i):s/(a+i);if(o==="s")return c*100;switch(a){case e:return((r-n)/s+(rr>n?Math.min(r,Math.max(n,e)):Math.min(n,Math.max(r,e)),round:e=>Math.round(e*1e10)/1e10},bKe={dec2hex:e=>{const r=Math.round(e).toString(16);return r.length>1?r:`0${r}`}},jt={channel:F2,lang:vKe,unit:bKe},Td={};for(let e=0;e<=255;e++)Td[e]=jt.unit.dec2hex(e);const $o={ALL:0,RGB:1,HSL:2};class xKe{constructor(){this.type=$o.ALL}get(){return this.type}set(r){if(this.type&&this.type!==r)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=r}reset(){this.type=$o.ALL}is(r){return this.type===r}}class wKe{constructor(r,n){this.color=n,this.changed=!1,this.data=r,this.type=new xKe}set(r,n){return this.color=n,this.changed=!1,this.data=r,this.type.type=$o.ALL,this}_ensureHSL(){const r=this.data,{h:n,s:o,l:a}=r;n===void 0&&(r.h=jt.channel.rgb2hsl(r,"h")),o===void 0&&(r.s=jt.channel.rgb2hsl(r,"s")),a===void 0&&(r.l=jt.channel.rgb2hsl(r,"l"))}_ensureRGB(){const r=this.data,{r:n,g:o,b:a}=r;n===void 0&&(r.r=jt.channel.hsl2rgb(r,"r")),o===void 0&&(r.g=jt.channel.hsl2rgb(r,"g")),a===void 0&&(r.b=jt.channel.hsl2rgb(r,"b"))}get r(){const r=this.data,n=r.r;return!this.type.is($o.HSL)&&n!==void 0?n:(this._ensureHSL(),jt.channel.hsl2rgb(r,"r"))}get g(){const r=this.data,n=r.g;return!this.type.is($o.HSL)&&n!==void 0?n:(this._ensureHSL(),jt.channel.hsl2rgb(r,"g"))}get b(){const r=this.data,n=r.b;return!this.type.is($o.HSL)&&n!==void 0?n:(this._ensureHSL(),jt.channel.hsl2rgb(r,"b"))}get h(){const r=this.data,n=r.h;return!this.type.is($o.RGB)&&n!==void 0?n:(this._ensureRGB(),jt.channel.rgb2hsl(r,"h"))}get s(){const r=this.data,n=r.s;return!this.type.is($o.RGB)&&n!==void 0?n:(this._ensureRGB(),jt.channel.rgb2hsl(r,"s"))}get l(){const r=this.data,n=r.l;return!this.type.is($o.RGB)&&n!==void 0?n:(this._ensureRGB(),jt.channel.rgb2hsl(r,"l"))}get a(){return this.data.a}set r(r){this.type.set($o.RGB),this.changed=!0,this.data.r=r}set g(r){this.type.set($o.RGB),this.changed=!0,this.data.g=r}set b(r){this.type.set($o.RGB),this.changed=!0,this.data.b=r}set h(r){this.type.set($o.HSL),this.changed=!0,this.data.h=r}set s(r){this.type.set($o.HSL),this.changed=!0,this.data.s=r}set l(r){this.type.set($o.HSL),this.changed=!0,this.data.l=r}set a(r){this.changed=!0,this.data.a=r}}const V2=new wKe({r:0,g:0,b:0,a:0},"transparent"),Cm={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:e=>{if(e.charCodeAt(0)!==35)return;const r=e.match(Cm.re);if(!r)return;const n=r[1],o=parseInt(n,16),a=n.length,i=a%4===0,l=a>4,s=l?1:17,c=l?8:4,d=i?0:-1,u=l?255:15;return V2.set({r:(o>>c*(d+3)&u)*s,g:(o>>c*(d+2)&u)*s,b:(o>>c*(d+1)&u)*s,a:i?(o&u)*s/255:1},e)},stringify:e=>{const{r,g:n,b:o,a}=e;return a<1?`#${Td[Math.round(r)]}${Td[Math.round(n)]}${Td[Math.round(o)]}${Td[Math.round(a*255)]}`:`#${Td[Math.round(r)]}${Td[Math.round(n)]}${Td[Math.round(o)]}`}},Rp={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:e=>{const r=e.match(Rp.hueRe);if(r){const[,n,o]=r;switch(o){case"grad":return jt.channel.clamp.h(parseFloat(n)*.9);case"rad":return jt.channel.clamp.h(parseFloat(n)*180/Math.PI);case"turn":return jt.channel.clamp.h(parseFloat(n)*360)}}return jt.channel.clamp.h(parseFloat(e))},parse:e=>{const r=e.charCodeAt(0);if(r!==104&&r!==72)return;const n=e.match(Rp.re);if(!n)return;const[,o,a,i,l,s]=n;return V2.set({h:Rp._hue2deg(o),s:jt.channel.clamp.s(parseFloat(a)),l:jt.channel.clamp.l(parseFloat(i)),a:l?jt.channel.clamp.a(s?parseFloat(l)/100:parseFloat(l)):1},e)},stringify:e=>{const{h:r,s:n,l:o,a}=e;return a<1?`hsla(${jt.lang.round(r)}, ${jt.lang.round(n)}%, ${jt.lang.round(o)}%, ${a})`:`hsl(${jt.lang.round(r)}, ${jt.lang.round(n)}%, ${jt.lang.round(o)}%)`}},g0={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:e=>{e=e.toLowerCase();const r=g0.colors[e];if(r)return Cm.parse(r)},stringify:e=>{const r=Cm.stringify(e);for(const n in g0.colors)if(g0.colors[n]===r)return n}},y0={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:e=>{const r=e.charCodeAt(0);if(r!==114&&r!==82)return;const n=e.match(y0.re);if(!n)return;const[,o,a,i,l,s,c,d,u]=n;return V2.set({r:jt.channel.clamp.r(a?parseFloat(o)*2.55:parseFloat(o)),g:jt.channel.clamp.g(l?parseFloat(i)*2.55:parseFloat(i)),b:jt.channel.clamp.b(c?parseFloat(s)*2.55:parseFloat(s)),a:d?jt.channel.clamp.a(u?parseFloat(d)/100:parseFloat(d)):1},e)},stringify:e=>{const{r,g:n,b:o,a}=e;return a<1?`rgba(${jt.lang.round(r)}, ${jt.lang.round(n)}, ${jt.lang.round(o)}, ${jt.lang.round(a)})`:`rgb(${jt.lang.round(r)}, ${jt.lang.round(n)}, ${jt.lang.round(o)})`}},pl={format:{keyword:g0,hex:Cm,rgb:y0,rgba:y0,hsl:Rp,hsla:Rp},parse:e=>{if(typeof e!="string")return e;const r=Cm.parse(e)||y0.parse(e)||Rp.parse(e)||g0.parse(e);if(r)return r;throw new Error(`Unsupported color format: "${e}"`)},stringify:e=>!e.changed&&e.color?e.color:e.type.is($o.HSL)||e.data.r===void 0?Rp.stringify(e):e.a<1||!Number.isInteger(e.r)||!Number.isInteger(e.g)||!Number.isInteger(e.b)?y0.stringify(e):Cm.stringify(e)},Ete=(e,r)=>{const n=pl.parse(e);for(const o in r)n[o]=jt.channel.clamp[o](r[o]);return pl.stringify(n)},kKe=(e,r,n=0,o=1)=>{if(typeof e!="number")return Ete(e,{a:r});const a=V2.set({r:jt.channel.clamp.r(e),g:jt.channel.clamp.g(r),b:jt.channel.clamp.b(n),a:jt.channel.clamp.a(o)});return pl.stringify(a)},Cte=e=>pl.format.hex.stringify(pl.parse(e)),$te=e=>pl.format.rgba.stringify(pl.parse(e)),_Ke=(e,r)=>{const n=pl.parse(e),o={};for(const a in r)r[a]&&(o[a]=n[a]+r[a]);return Ete(e,o)},zte=(e,r,n=50)=>{const{r:o,g:a,b:i,a:l}=pl.parse(e),{r:s,g:c,b:d,a:u}=pl.parse(r),p=n/100,f=p*2-1,g=l-u,v=((f*g===-1?f:(f+g)/(1+f*g))+1)/2,w=1-v,x=o*v+s*w,k=a*v+c*w,C=i*v+d*w,_=l*p+u*(1-p);return kKe(x,k,C,_)},Rte=(e,r)=>{const n=pl.parse(e),o={},a=(i,l,s)=>l>0?(s-i)*l/100:i*l/100;for(const i in r)o[i]=a(n[i],r[i],jt.channel.max[i]);return _Ke(e,o)},SKe=e=>`[data-mantine-color-scheme="${e}"]`,jte=SKe("dark"),EKe=5,CKe=(e,r,n,o)=>{const a=s=>Cte(Rte(s,{l:-22-5*o,s:-10-6*o})),i=s=>Cte(Rte(s,{l:-20-3*o,s:-3-6*o})),l=`:where(${e} [data-likec4-color="${r}"][data-compound-depth="${o}"])`;return` +${l} { --likec4-palette-fill: ${i(n.elements.fill)}; --likec4-palette-stroke: ${i(n.elements.stroke)}; } -${_ne} ${s} { +${jte} ${l} { --likec4-palette-fill: ${a(n.elements.fill)}; --likec4-palette-stroke: ${a(n.elements.stroke)}; } - `.trim()};function prt(e,r,n){const{elements:o,relationships:a}=n,i=`:where(${e} [data-likec4-color=${r}])`;return[` + `.trim()};function $Ke(e,r,n){const{elements:o,relationships:a}=n,i=`:where(${e} [data-likec4-color=${r}])`;return[` ${i} { --likec4-palette-fill: ${o.fill}; --likec4-palette-stroke: ${o.stroke}; @@ -165,18 +166,16 @@ ${i} { --likec4-palette-relation-stroke: ${a.line}; --likec4-palette-relation-label: ${a.label}; --likec4-palette-relation-label-bg: ${a.labelBg}; + --likec4-palette-relation-stroke-selected: ${$te(zte(a.line,"black",85))}; } -${crt} ${i} { - --likec4-palette-relation-stroke-selected: ${vne(xne(a.line,"black",85))}; -} -${_ne} ${i} { - --likec4-palette-relation-stroke-selected: ${vne(xne(a.line,"white",70))}; +${jte} ${i} { + --likec4-palette-relation-stroke-selected: ${$te(zte(a.line,"white",70))}; } - `.trim(),...VNe(1,drt+1).map(s=>urt(e,r,n,s))].join(` -`)}function hrt(e,r){return En(r.colors,P7(),Sn(([n,o])=>prt(e,n,o)),qq(` -`))}const frt=E.memo(({id:e})=>{const r=`#${e}`,n=yp()?.(),{theme:o}=cre(),a=hrt(r,o);return y.jsx("style",{type:"text/css","data-likec4-colors":e,dangerouslySetInnerHTML:{__html:a},nonce:n})});function Ene({children:e}){const r=E.useContext(a2);return E.useEffect(()=>{r||console.warn("LikeC4Diagram must be a child of MantineProvider")},[]),r?y.jsx(y.Fragment,{children:e}):y.jsx(i9,{defaultColorScheme:"auto",children:e})}Ene.displayName="EnsureMantine";const NR=({reducedMotion:e="user",children:r})=>{const n=yp()?.();return y.jsx(UVe,{features:FUe,strict:!0,children:y.jsx(GVe,{reducedMotion:e,...n&&{nonce:n},children:r})})};function Sne({onCanvasClick:e,onCanvasContextMenu:r,onCanvasDblClick:n,onEdgeClick:o,onChange:a,onEdgeContextMenu:i,onNavigateTo:s,onNodeClick:l,onNodeContextMenu:c,onOpenSource:d,onBurgerMenuClick:u,onLayoutTypeChange:h,onInitialized:f,view:g,className:b,readonly:x=!0,controls:w=!x,fitView:k=!0,fitViewPadding:C=w?Uw.withControls:Uw.default,pannable:_=!0,zoomable:T=!0,background:A="dots",enableElementTags:R=!1,enableFocusMode:D=!1,enableElementDetails:N=!1,enableRelationshipDetails:P=!1,enableRelationshipBrowser:O=!1,enableCompareWithLatest:F=!!h,nodesDraggable:L=!x,nodesSelectable:U=!x||D||!!s||!!l,enableNotations:M=!1,showNavigationButtons:V=!!s,enableDynamicViewWalkthrough:I=!1,dynamicViewVariant:H,enableSearch:q=!1,initialWidth:Z,initialHeight:W,reduceGraphics:G="auto",renderIcon:K,where:j,reactFlowProps:Y,renderNodes:Q,children:J}){const ie=UG(),ne=E.useRef(null),re=Ire(g,H),ge=mrt(C);ne.current==null&&(ne.current={defaultEdges:[],defaultNodes:[],initialWidth:Z??re.width,initialHeight:W??re.height,initialFitViewOptions:{maxZoom:zT,minZoom:_s,padding:ge},initialMaxZoom:zT,initialMinZoom:_s});const De=G==="auto"?_&&(re.width??1)*(re.height??1)>6e6&&g.nodes.some(he=>he.children?.length>0):G;return y.jsx(Ene,{children:y.jsx(NR,{...De&&{reducedMotion:"always"},children:y.jsx($Ee,{value:K??null,children:y.jsx(Np,{features:{enableFitView:k,enableReadOnly:x,enableFocusMode:D,enableNavigateTo:!!s,enableElementDetails:N,enableRelationshipDetails:P,enableRelationshipBrowser:O,enableSearch:q,enableNavigationButtons:V&&!!s,enableDynamicViewWalkthrough:g._type==="dynamic"&&I,enableNotations:M,enableVscode:!!d,enableControls:w,enableElementTags:R,enableCompareWithLatest:F&&!!h},children:y.jsxs(HKe,{handlers:{onCanvasClick:e,onCanvasContextMenu:r,onCanvasDblClick:n,onEdgeClick:o,onChange:a,onEdgeContextMenu:i,onNavigateTo:s,onNodeClick:l,onNodeContextMenu:c,onOpenSource:d,onBurgerMenuClick:u,onInitialized:f,onLayoutTypeChange:h},children:[y.jsx(frt,{id:ie}),y.jsx(oLe,{rootSelector:`#${ie}`,children:y.jsx(yje,{id:ie,className:b,reduceGraphics:De,children:y.jsx(Ox,{fitView:k,...ne.current,children:y.jsxs(Ktt,{view:g,zoomable:T,pannable:_,fitViewPadding:ge,nodesDraggable:L,nodesSelectable:U,where:j??null,dynamicViewVariant:H,children:[y.jsx(met,{background:A,reactFlowProps:Y,renderNodes:Q,children:J}),y.jsx(Kte,{})]})})})})]})})})})})}const Cne=e=>typeof e=="number"?`${e}px`:e;function mrt(e){return jF(()=>T0(e)?zNe(e,Cne):Cne(e),[e],grt)}const grt=([e],[r])=>e===r||T0(e)&&T0(r)&&e.bottom==r.bottom&&e.left==r.left&&e.right==r.right&&e.top==r.top;function yrt({children:e,likec4model:r}){return y.jsx(K0.Provider,{value:r,children:e})}const DR=({children:e})=>y.jsx("div",{style:{margin:"1rem 0"},children:y.jsx("div",{style:{margin:"0 auto",display:"inline-block",padding:"2rem",background:"rgba(250,82,82,.15)",color:"#ffa8a8"},children:e})}),brt=({viewId:e})=>y.jsxs(DR,{children:["View ",y.jsx("code",{children:e})," not found"]}),vrt=e=>{throw new Error("LikeC4View is not available SSR")};var Tne={exports:{}},$R,Ane;function xrt(){if(Ane)return $R;Ane=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return $R=e,$R}var PR,Rne;function wrt(){if(Rne)return PR;Rne=1;var e=xrt();function r(){}function n(){}return n.resetWarningCache=r,PR=function(){function o(s,l,c,d,u,h){if(h!==e){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}o.isRequired=o;function a(){return o}var i={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:a,element:o,elementType:o,instanceOf:a,node:o,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:n,resetWarningCache:r};return i.PropTypes=i,i},PR}var Nne;function krt(){return Nne||(Nne=1,Tne.exports=wrt()()),Tne.exports}var _rt=krt();const Rs=_7(_rt);var Ert=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Dne(e,r){return e(r={exports:{}},r.exports),r.exports}var Srt=Dne((function(e){(function(r){var n=function(w,k,C){if(!c(k)||u(k)||h(k)||f(k)||l(k))return k;var _,T=0,A=0;if(d(k))for(_=[],A=k.length;Te.length)&&(r=e.length);for(var n=0,o=new Array(r);n=0||(a[n]=e[n]);return a},Mne=function(e,r){if(e==null)return{};var n,o,a=Drt(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a},$rt=E.createContext(null);function zne(e){var r=e.children,n=r===void 0?"":r,o=Mne(e,["children"]);return typeof n!="string"&&(n=vrt()),un.createElement("template",Pne({},o,{dangerouslySetInnerHTML:{__html:n}}))}function Ine(e){var r=e.root,n=e.children;return Ki.createPortal(n===void 0?null:n,r)}function Prt(e){var r=E.forwardRef((function(n,o){var a,i,s=n.mode,l=s===void 0?"open":s,c=n.delegatesFocus,d=c!==void 0&&c,u=n.styleSheets,h=u===void 0?[]:u,f=n.ssr,g=f!==void 0&&f,b=n.children,x=Mne(n,["mode","delegatesFocus","styleSheets","ssr","children"]),w=(i=E.useRef((a=o)&&a.current),E.useEffect((function(){a&&(a.current=i.current)}),[a]),i),k=E.useState(null),C=Nrt(k,2),_=C[0],T=C[1],A="node_".concat(l).concat(d);return E.useLayoutEffect((function(){if(w.current)try{if(typeof o=="function"&&o(w.current),g){var R=w.current.shadowRoot;return void T(R)}var D=w.current.attachShadow({mode:l,delegatesFocus:d});h.length>0&&(D.adoptedStyleSheets=h),T(D)}catch(N){(function(P){var O=P.error,F=P.styleSheets,L=P.root;switch(O.name){case"NotSupportedError":F.length>0&&(L.adoptedStyleSheets=F);break;default:throw O}})({error:N,styleSheets:h,root:_})}}),[o,w,h]),un.createElement(un.Fragment,null,un.createElement(e.tag,Pne({key:A,ref:w},x),(_||g)&&un.createElement($rt.Provider,{value:_},g?un.createElement(zne,{shadowroot:l,shadowrootmode:l},e.render({root:_,ssr:g,children:b})):un.createElement(Ine,{root:_},e.render({root:_,ssr:g,children:b})))))}));return r.propTypes={mode:Rs.oneOf(["open","closed"]),delegatesFocus:Rs.bool,styleSheets:Rs.arrayOf(Rs.instanceOf(globalThis.CSSStyleSheet)),ssr:Rs.bool,children:Rs.node},r}zne.propTypes={children:Rs.oneOfType([Rs.string,Rs.node])},Ine.propTypes={root:Rs.object.isRequired,children:Rs.node};var MR=new Map;function Mrt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"core",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(o){return o.children};return new Proxy(e,{get:function(o,a){var i=Srt(a,{separator:"-"}),s="".concat(r,"-").concat(i);return MR.has(s)||MR.set(s,Prt({tag:i,render:n})),MR.get(s)}})}var zrt=Mrt();const Irt='@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:400;src:url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/latin-400-normal.woff2) format("woff2"),url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/latin-400-normal.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:500;src:url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/latin-500-normal.woff2) format("woff2"),url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/latin-500-normal.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:600;src:url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/latin-600-normal.woff2) format("woff2"),url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/latin-600-normal.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:400;src:url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/cyrillic-400-normal.woff2) format("woff2"),url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/cyrillic-400-normal.woff) format("woff");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:500;src:url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/cyrillic-500-normal.woff2) format("woff2"),url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/cyrillic-500-normal.woff) format("woff");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:600;src:url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/cyrillic-600-normal.woff2) format("woff2"),url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/cyrillic-600-normal.woff) format("woff");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:400;src:url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/cyrillic-ext-400-normal.woff2) format("woff2"),url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/cyrillic-ext-400-normal.woff) format("woff");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:500;src:url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/cyrillic-ext-500-normal.woff2) format("woff2"),url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/cyrillic-ext-500-normal.woff) format("woff");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:600;src:url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/cyrillic-ext-600-normal.woff2) format("woff2"),url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/cyrillic-ext-600-normal.woff) format("woff");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:400;src:url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/latin-ext-400-normal.woff2) format("woff2"),url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/latin-ext-400-normal.woff) format("woff");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:500;src:url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/latin-ext-500-normal.woff2) format("woff2"),url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/latin-ext-500-normal.woff) format("woff");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:600;src:url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/latin-ext-600-normal.woff2) format("woff2"),url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/latin-ext-600-normal.woff) format("woff");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}',One=`@layer reset,base,mantine,xyflow,tokens,recipes,utilities;@layer mantine{:root{color-scheme:var(--mantine-color-scheme)}*,*:before,*:after{box-sizing:border-box}input,button,textarea,select{font:inherit}button,select{text-transform:none}body{margin:0;font-family:var(--mantine-font-family);font-size:var(--mantine-font-size-md);line-height:var(--mantine-line-height);background-color:var(--mantine-color-body);color:var(--mantine-color-text);-webkit-font-smoothing:var(--mantine-webkit-font-smoothing);-moz-osx-font-smoothing:var(--mantine-moz-font-smoothing)}@media screen and (max-device-width:31.25em){body{-webkit-text-size-adjust:100%}}@media(prefers-reduced-motion:reduce){[data-respect-reduced-motion] [data-reduce-motion]{transition:none;animation:none}}[data-mantine-color-scheme=light] .mantine-light-hidden,[data-mantine-color-scheme=dark] .mantine-dark-hidden{display:none}.mantine-focus-auto:focus-visible{outline:2px solid var(--mantine-primary-color-filled);outline-offset:calc(.125rem * var(--mantine-scale))}.mantine-focus-always:focus{outline:2px solid var(--mantine-primary-color-filled);outline-offset:calc(.125rem * var(--mantine-scale))}.mantine-focus-never:focus{outline:none}.mantine-active:active{transform:translateY(calc(.0625rem * var(--mantine-scale)))}fieldset:disabled .mantine-active:active{transform:none}:where([dir=rtl]) .mantine-rotate-rtl{transform:rotate(180deg)}:root{--mantine-z-index-app: 100;--mantine-z-index-modal: 200;--mantine-z-index-popover: 300;--mantine-z-index-overlay: 400;--mantine-z-index-max: 9999;--mantine-scale: 1;--mantine-cursor-type: default;--mantine-webkit-font-smoothing: antialiased;--mantine-moz-font-smoothing: grayscale;--mantine-color-white: #fff;--mantine-color-black: #000;--mantine-line-height: 1.55;--mantine-font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji;--mantine-font-family-monospace: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace;--mantine-font-family-headings: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji;--mantine-heading-font-weight: 700;--mantine-heading-text-wrap: wrap;--mantine-radius-default: calc(.25rem * var(--mantine-scale));--mantine-primary-color-filled: var(--mantine-color-blue-filled);--mantine-primary-color-filled-hover: var(--mantine-color-blue-filled-hover);--mantine-primary-color-light: var(--mantine-color-blue-light);--mantine-primary-color-light-hover: var(--mantine-color-blue-light-hover);--mantine-primary-color-light-color: var(--mantine-color-blue-light-color);--mantine-breakpoint-xs: 36em;--mantine-breakpoint-sm: 48em;--mantine-breakpoint-md: 62em;--mantine-breakpoint-lg: 75em;--mantine-breakpoint-xl: 88em;--mantine-spacing-xs: calc(.625rem * var(--mantine-scale));--mantine-spacing-sm: calc(.75rem * var(--mantine-scale));--mantine-spacing-md: calc(1rem * var(--mantine-scale));--mantine-spacing-lg: calc(1.25rem * var(--mantine-scale));--mantine-spacing-xl: calc(2rem * var(--mantine-scale));--mantine-font-size-xs: calc(.75rem * var(--mantine-scale));--mantine-font-size-sm: calc(.875rem * var(--mantine-scale));--mantine-font-size-md: calc(1rem * var(--mantine-scale));--mantine-font-size-lg: calc(1.125rem * var(--mantine-scale));--mantine-font-size-xl: calc(1.25rem * var(--mantine-scale));--mantine-line-height-xs: 1.4;--mantine-line-height-sm: 1.45;--mantine-line-height-md: 1.55;--mantine-line-height-lg: 1.6;--mantine-line-height-xl: 1.65;--mantine-shadow-xs: 0 calc(.0625rem * var(--mantine-scale)) calc(.1875rem * var(--mantine-scale)) rgba(0, 0, 0, .05), 0 calc(.0625rem * var(--mantine-scale)) calc(.125rem * var(--mantine-scale)) rgba(0, 0, 0, .1);--mantine-shadow-sm: 0 calc(.0625rem * var(--mantine-scale)) calc(.1875rem * var(--mantine-scale)) rgba(0, 0, 0, .05), rgba(0, 0, 0, .05) 0 calc(.625rem * var(--mantine-scale)) calc(.9375rem * var(--mantine-scale)) calc(-.3125rem * var(--mantine-scale)), rgba(0, 0, 0, .04) 0 calc(.4375rem * var(--mantine-scale)) calc(.4375rem * var(--mantine-scale)) calc(-.3125rem * var(--mantine-scale));--mantine-shadow-md: 0 calc(.0625rem * var(--mantine-scale)) calc(.1875rem * var(--mantine-scale)) rgba(0, 0, 0, .05), rgba(0, 0, 0, .05) 0 calc(1.25rem * var(--mantine-scale)) calc(1.5625rem * var(--mantine-scale)) calc(-.3125rem * var(--mantine-scale)), rgba(0, 0, 0, .04) 0 calc(.625rem * var(--mantine-scale)) calc(.625rem * var(--mantine-scale)) calc(-.3125rem * var(--mantine-scale));--mantine-shadow-lg: 0 calc(.0625rem * var(--mantine-scale)) calc(.1875rem * var(--mantine-scale)) rgba(0, 0, 0, .05), rgba(0, 0, 0, .05) 0 calc(1.75rem * var(--mantine-scale)) calc(1.4375rem * var(--mantine-scale)) calc(-.4375rem * var(--mantine-scale)), rgba(0, 0, 0, .04) 0 calc(.75rem * var(--mantine-scale)) calc(.75rem * var(--mantine-scale)) calc(-.4375rem * var(--mantine-scale));--mantine-shadow-xl: 0 calc(.0625rem * var(--mantine-scale)) calc(.1875rem * var(--mantine-scale)) rgba(0, 0, 0, .05), rgba(0, 0, 0, .05) 0 calc(2.25rem * var(--mantine-scale)) calc(1.75rem * var(--mantine-scale)) calc(-.4375rem * var(--mantine-scale)), rgba(0, 0, 0, .04) 0 calc(1.0625rem * var(--mantine-scale)) calc(1.0625rem * var(--mantine-scale)) calc(-.4375rem * var(--mantine-scale));--mantine-radius-xs: calc(.125rem * var(--mantine-scale));--mantine-radius-sm: calc(.25rem * var(--mantine-scale));--mantine-radius-md: calc(.5rem * var(--mantine-scale));--mantine-radius-lg: calc(1rem * var(--mantine-scale));--mantine-radius-xl: calc(2rem * var(--mantine-scale));--mantine-primary-color-0: var(--mantine-color-blue-0);--mantine-primary-color-1: var(--mantine-color-blue-1);--mantine-primary-color-2: var(--mantine-color-blue-2);--mantine-primary-color-3: var(--mantine-color-blue-3);--mantine-primary-color-4: var(--mantine-color-blue-4);--mantine-primary-color-5: var(--mantine-color-blue-5);--mantine-primary-color-6: var(--mantine-color-blue-6);--mantine-primary-color-7: var(--mantine-color-blue-7);--mantine-primary-color-8: var(--mantine-color-blue-8);--mantine-primary-color-9: var(--mantine-color-blue-9);--mantine-color-dark-0: #c9c9c9;--mantine-color-dark-1: #b8b8b8;--mantine-color-dark-2: #828282;--mantine-color-dark-3: #696969;--mantine-color-dark-4: #424242;--mantine-color-dark-5: #3b3b3b;--mantine-color-dark-6: #2e2e2e;--mantine-color-dark-7: #242424;--mantine-color-dark-8: #1f1f1f;--mantine-color-dark-9: #141414;--mantine-color-gray-0: #f8f9fa;--mantine-color-gray-1: #f1f3f5;--mantine-color-gray-2: #e9ecef;--mantine-color-gray-3: #dee2e6;--mantine-color-gray-4: #ced4da;--mantine-color-gray-5: #adb5bd;--mantine-color-gray-6: #868e96;--mantine-color-gray-7: #495057;--mantine-color-gray-8: #343a40;--mantine-color-gray-9: #212529;--mantine-color-red-0: #fff5f5;--mantine-color-red-1: #ffe3e3;--mantine-color-red-2: #ffc9c9;--mantine-color-red-3: #ffa8a8;--mantine-color-red-4: #ff8787;--mantine-color-red-5: #ff6b6b;--mantine-color-red-6: #fa5252;--mantine-color-red-7: #f03e3e;--mantine-color-red-8: #e03131;--mantine-color-red-9: #c92a2a;--mantine-color-pink-0: #fff0f6;--mantine-color-pink-1: #ffdeeb;--mantine-color-pink-2: #fcc2d7;--mantine-color-pink-3: #faa2c1;--mantine-color-pink-4: #f783ac;--mantine-color-pink-5: #f06595;--mantine-color-pink-6: #e64980;--mantine-color-pink-7: #d6336c;--mantine-color-pink-8: #c2255c;--mantine-color-pink-9: #a61e4d;--mantine-color-grape-0: #f8f0fc;--mantine-color-grape-1: #f3d9fa;--mantine-color-grape-2: #eebefa;--mantine-color-grape-3: #e599f7;--mantine-color-grape-4: #da77f2;--mantine-color-grape-5: #cc5de8;--mantine-color-grape-6: #be4bdb;--mantine-color-grape-7: #ae3ec9;--mantine-color-grape-8: #9c36b5;--mantine-color-grape-9: #862e9c;--mantine-color-violet-0: #f3f0ff;--mantine-color-violet-1: #e5dbff;--mantine-color-violet-2: #d0bfff;--mantine-color-violet-3: #b197fc;--mantine-color-violet-4: #9775fa;--mantine-color-violet-5: #845ef7;--mantine-color-violet-6: #7950f2;--mantine-color-violet-7: #7048e8;--mantine-color-violet-8: #6741d9;--mantine-color-violet-9: #5f3dc4;--mantine-color-indigo-0: #edf2ff;--mantine-color-indigo-1: #dbe4ff;--mantine-color-indigo-2: #bac8ff;--mantine-color-indigo-3: #91a7ff;--mantine-color-indigo-4: #748ffc;--mantine-color-indigo-5: #5c7cfa;--mantine-color-indigo-6: #4c6ef5;--mantine-color-indigo-7: #4263eb;--mantine-color-indigo-8: #3b5bdb;--mantine-color-indigo-9: #364fc7;--mantine-color-blue-0: #e7f5ff;--mantine-color-blue-1: #d0ebff;--mantine-color-blue-2: #a5d8ff;--mantine-color-blue-3: #74c0fc;--mantine-color-blue-4: #4dabf7;--mantine-color-blue-5: #339af0;--mantine-color-blue-6: #228be6;--mantine-color-blue-7: #1c7ed6;--mantine-color-blue-8: #1971c2;--mantine-color-blue-9: #1864ab;--mantine-color-cyan-0: #e3fafc;--mantine-color-cyan-1: #c5f6fa;--mantine-color-cyan-2: #99e9f2;--mantine-color-cyan-3: #66d9e8;--mantine-color-cyan-4: #3bc9db;--mantine-color-cyan-5: #22b8cf;--mantine-color-cyan-6: #15aabf;--mantine-color-cyan-7: #1098ad;--mantine-color-cyan-8: #0c8599;--mantine-color-cyan-9: #0b7285;--mantine-color-teal-0: #e6fcf5;--mantine-color-teal-1: #c3fae8;--mantine-color-teal-2: #96f2d7;--mantine-color-teal-3: #63e6be;--mantine-color-teal-4: #38d9a9;--mantine-color-teal-5: #20c997;--mantine-color-teal-6: #12b886;--mantine-color-teal-7: #0ca678;--mantine-color-teal-8: #099268;--mantine-color-teal-9: #087f5b;--mantine-color-green-0: #ebfbee;--mantine-color-green-1: #d3f9d8;--mantine-color-green-2: #b2f2bb;--mantine-color-green-3: #8ce99a;--mantine-color-green-4: #69db7c;--mantine-color-green-5: #51cf66;--mantine-color-green-6: #40c057;--mantine-color-green-7: #37b24d;--mantine-color-green-8: #2f9e44;--mantine-color-green-9: #2b8a3e;--mantine-color-lime-0: #f4fce3;--mantine-color-lime-1: #e9fac8;--mantine-color-lime-2: #d8f5a2;--mantine-color-lime-3: #c0eb75;--mantine-color-lime-4: #a9e34b;--mantine-color-lime-5: #94d82d;--mantine-color-lime-6: #82c91e;--mantine-color-lime-7: #74b816;--mantine-color-lime-8: #66a80f;--mantine-color-lime-9: #5c940d;--mantine-color-yellow-0: #fff9db;--mantine-color-yellow-1: #fff3bf;--mantine-color-yellow-2: #ffec99;--mantine-color-yellow-3: #ffe066;--mantine-color-yellow-4: #ffd43b;--mantine-color-yellow-5: #fcc419;--mantine-color-yellow-6: #fab005;--mantine-color-yellow-7: #f59f00;--mantine-color-yellow-8: #f08c00;--mantine-color-yellow-9: #e67700;--mantine-color-orange-0: #fff4e6;--mantine-color-orange-1: #ffe8cc;--mantine-color-orange-2: #ffd8a8;--mantine-color-orange-3: #ffc078;--mantine-color-orange-4: #ffa94d;--mantine-color-orange-5: #ff922b;--mantine-color-orange-6: #fd7e14;--mantine-color-orange-7: #f76707;--mantine-color-orange-8: #e8590c;--mantine-color-orange-9: #d9480f;--mantine-h1-font-size: calc(2.125rem * var(--mantine-scale));--mantine-h1-line-height: 1.3;--mantine-h1-font-weight: 700;--mantine-h2-font-size: calc(1.625rem * var(--mantine-scale));--mantine-h2-line-height: 1.35;--mantine-h2-font-weight: 700;--mantine-h3-font-size: calc(1.375rem * var(--mantine-scale));--mantine-h3-line-height: 1.4;--mantine-h3-font-weight: 700;--mantine-h4-font-size: calc(1.125rem * var(--mantine-scale));--mantine-h4-line-height: 1.45;--mantine-h4-font-weight: 700;--mantine-h5-font-size: calc(1rem * var(--mantine-scale));--mantine-h5-line-height: 1.5;--mantine-h5-font-weight: 700;--mantine-h6-font-size: calc(.875rem * var(--mantine-scale));--mantine-h6-line-height: 1.5;--mantine-h6-font-weight: 700}:root[data-mantine-color-scheme=dark]{--mantine-color-scheme: dark;--mantine-primary-color-contrast: var(--mantine-color-white);--mantine-color-bright: var(--mantine-color-white);--mantine-color-text: var(--mantine-color-dark-0);--mantine-color-body: var(--mantine-color-dark-7);--mantine-color-error: var(--mantine-color-red-8);--mantine-color-placeholder: var(--mantine-color-dark-3);--mantine-color-anchor: var(--mantine-color-blue-4);--mantine-color-default: var(--mantine-color-dark-6);--mantine-color-default-hover: var(--mantine-color-dark-5);--mantine-color-default-color: var(--mantine-color-white);--mantine-color-default-border: var(--mantine-color-dark-4);--mantine-color-dimmed: var(--mantine-color-dark-2);--mantine-color-disabled: var(--mantine-color-dark-6);--mantine-color-disabled-color: var(--mantine-color-dark-3);--mantine-color-disabled-border: var(--mantine-color-dark-4);--mantine-color-dark-text: var(--mantine-color-dark-4);--mantine-color-dark-filled: var(--mantine-color-dark-8);--mantine-color-dark-filled-hover: var(--mantine-color-dark-9);--mantine-color-dark-light: rgba(46, 46, 46, .15);--mantine-color-dark-light-hover: rgba(46, 46, 46, .2);--mantine-color-dark-light-color: var(--mantine-color-dark-3);--mantine-color-dark-outline: var(--mantine-color-dark-4);--mantine-color-dark-outline-hover: rgba(66, 66, 66, .05);--mantine-color-gray-text: var(--mantine-color-gray-4);--mantine-color-gray-filled: var(--mantine-color-gray-8);--mantine-color-gray-filled-hover: var(--mantine-color-gray-9);--mantine-color-gray-light: rgba(134, 142, 150, .15);--mantine-color-gray-light-hover: rgba(134, 142, 150, .2);--mantine-color-gray-light-color: var(--mantine-color-gray-3);--mantine-color-gray-outline: var(--mantine-color-gray-4);--mantine-color-gray-outline-hover: rgba(206, 212, 218, .05);--mantine-color-red-text: var(--mantine-color-red-4);--mantine-color-red-filled: var(--mantine-color-red-8);--mantine-color-red-filled-hover: var(--mantine-color-red-9);--mantine-color-red-light: rgba(250, 82, 82, .15);--mantine-color-red-light-hover: rgba(250, 82, 82, .2);--mantine-color-red-light-color: var(--mantine-color-red-3);--mantine-color-red-outline: var(--mantine-color-red-4);--mantine-color-red-outline-hover: rgba(255, 135, 135, .05);--mantine-color-pink-text: var(--mantine-color-pink-4);--mantine-color-pink-filled: var(--mantine-color-pink-8);--mantine-color-pink-filled-hover: var(--mantine-color-pink-9);--mantine-color-pink-light: rgba(230, 73, 128, .15);--mantine-color-pink-light-hover: rgba(230, 73, 128, .2);--mantine-color-pink-light-color: var(--mantine-color-pink-3);--mantine-color-pink-outline: var(--mantine-color-pink-4);--mantine-color-pink-outline-hover: rgba(247, 131, 172, .05);--mantine-color-grape-text: var(--mantine-color-grape-4);--mantine-color-grape-filled: var(--mantine-color-grape-8);--mantine-color-grape-filled-hover: var(--mantine-color-grape-9);--mantine-color-grape-light: rgba(190, 75, 219, .15);--mantine-color-grape-light-hover: rgba(190, 75, 219, .2);--mantine-color-grape-light-color: var(--mantine-color-grape-3);--mantine-color-grape-outline: var(--mantine-color-grape-4);--mantine-color-grape-outline-hover: rgba(218, 119, 242, .05);--mantine-color-violet-text: var(--mantine-color-violet-4);--mantine-color-violet-filled: var(--mantine-color-violet-8);--mantine-color-violet-filled-hover: var(--mantine-color-violet-9);--mantine-color-violet-light: rgba(121, 80, 242, .15);--mantine-color-violet-light-hover: rgba(121, 80, 242, .2);--mantine-color-violet-light-color: var(--mantine-color-violet-3);--mantine-color-violet-outline: var(--mantine-color-violet-4);--mantine-color-violet-outline-hover: rgba(151, 117, 250, .05);--mantine-color-indigo-text: var(--mantine-color-indigo-4);--mantine-color-indigo-filled: var(--mantine-color-indigo-8);--mantine-color-indigo-filled-hover: var(--mantine-color-indigo-9);--mantine-color-indigo-light: rgba(76, 110, 245, .15);--mantine-color-indigo-light-hover: rgba(76, 110, 245, .2);--mantine-color-indigo-light-color: var(--mantine-color-indigo-3);--mantine-color-indigo-outline: var(--mantine-color-indigo-4);--mantine-color-indigo-outline-hover: rgba(116, 143, 252, .05);--mantine-color-blue-text: var(--mantine-color-blue-4);--mantine-color-blue-filled: var(--mantine-color-blue-8);--mantine-color-blue-filled-hover: var(--mantine-color-blue-9);--mantine-color-blue-light: rgba(34, 139, 230, .15);--mantine-color-blue-light-hover: rgba(34, 139, 230, .2);--mantine-color-blue-light-color: var(--mantine-color-blue-3);--mantine-color-blue-outline: var(--mantine-color-blue-4);--mantine-color-blue-outline-hover: rgba(77, 171, 247, .05);--mantine-color-cyan-text: var(--mantine-color-cyan-4);--mantine-color-cyan-filled: var(--mantine-color-cyan-8);--mantine-color-cyan-filled-hover: var(--mantine-color-cyan-9);--mantine-color-cyan-light: rgba(21, 170, 191, .15);--mantine-color-cyan-light-hover: rgba(21, 170, 191, .2);--mantine-color-cyan-light-color: var(--mantine-color-cyan-3);--mantine-color-cyan-outline: var(--mantine-color-cyan-4);--mantine-color-cyan-outline-hover: rgba(59, 201, 219, .05);--mantine-color-teal-text: var(--mantine-color-teal-4);--mantine-color-teal-filled: var(--mantine-color-teal-8);--mantine-color-teal-filled-hover: var(--mantine-color-teal-9);--mantine-color-teal-light: rgba(18, 184, 134, .15);--mantine-color-teal-light-hover: rgba(18, 184, 134, .2);--mantine-color-teal-light-color: var(--mantine-color-teal-3);--mantine-color-teal-outline: var(--mantine-color-teal-4);--mantine-color-teal-outline-hover: rgba(56, 217, 169, .05);--mantine-color-green-text: var(--mantine-color-green-4);--mantine-color-green-filled: var(--mantine-color-green-8);--mantine-color-green-filled-hover: var(--mantine-color-green-9);--mantine-color-green-light: rgba(64, 192, 87, .15);--mantine-color-green-light-hover: rgba(64, 192, 87, .2);--mantine-color-green-light-color: var(--mantine-color-green-3);--mantine-color-green-outline: var(--mantine-color-green-4);--mantine-color-green-outline-hover: rgba(105, 219, 124, .05);--mantine-color-lime-text: var(--mantine-color-lime-4);--mantine-color-lime-filled: var(--mantine-color-lime-8);--mantine-color-lime-filled-hover: var(--mantine-color-lime-9);--mantine-color-lime-light: rgba(130, 201, 30, .15);--mantine-color-lime-light-hover: rgba(130, 201, 30, .2);--mantine-color-lime-light-color: var(--mantine-color-lime-3);--mantine-color-lime-outline: var(--mantine-color-lime-4);--mantine-color-lime-outline-hover: rgba(169, 227, 75, .05);--mantine-color-yellow-text: var(--mantine-color-yellow-4);--mantine-color-yellow-filled: var(--mantine-color-yellow-8);--mantine-color-yellow-filled-hover: var(--mantine-color-yellow-9);--mantine-color-yellow-light: rgba(250, 176, 5, .15);--mantine-color-yellow-light-hover: rgba(250, 176, 5, .2);--mantine-color-yellow-light-color: var(--mantine-color-yellow-3);--mantine-color-yellow-outline: var(--mantine-color-yellow-4);--mantine-color-yellow-outline-hover: rgba(255, 212, 59, .05);--mantine-color-orange-text: var(--mantine-color-orange-4);--mantine-color-orange-filled: var(--mantine-color-orange-8);--mantine-color-orange-filled-hover: var(--mantine-color-orange-9);--mantine-color-orange-light: rgba(253, 126, 20, .15);--mantine-color-orange-light-hover: rgba(253, 126, 20, .2);--mantine-color-orange-light-color: var(--mantine-color-orange-3);--mantine-color-orange-outline: var(--mantine-color-orange-4);--mantine-color-orange-outline-hover: rgba(255, 169, 77, .05)}:root[data-mantine-color-scheme=light]{--mantine-color-scheme: light;--mantine-primary-color-contrast: var(--mantine-color-white);--mantine-color-bright: var(--mantine-color-black);--mantine-color-text: #000;--mantine-color-body: #fff;--mantine-color-error: var(--mantine-color-red-6);--mantine-color-placeholder: var(--mantine-color-gray-5);--mantine-color-anchor: var(--mantine-color-blue-6);--mantine-color-default: var(--mantine-color-white);--mantine-color-default-hover: var(--mantine-color-gray-0);--mantine-color-default-color: var(--mantine-color-black);--mantine-color-default-border: var(--mantine-color-gray-4);--mantine-color-dimmed: var(--mantine-color-gray-6);--mantine-color-disabled: var(--mantine-color-gray-2);--mantine-color-disabled-color: var(--mantine-color-gray-5);--mantine-color-disabled-border: var(--mantine-color-gray-3);--mantine-color-dark-text: var(--mantine-color-dark-filled);--mantine-color-dark-filled: var(--mantine-color-dark-6);--mantine-color-dark-filled-hover: var(--mantine-color-dark-7);--mantine-color-dark-light: rgba(46, 46, 46, .1);--mantine-color-dark-light-hover: rgba(46, 46, 46, .12);--mantine-color-dark-light-color: var(--mantine-color-dark-6);--mantine-color-dark-outline: var(--mantine-color-dark-6);--mantine-color-dark-outline-hover: rgba(46, 46, 46, .05);--mantine-color-gray-text: var(--mantine-color-gray-filled);--mantine-color-gray-filled: var(--mantine-color-gray-6);--mantine-color-gray-filled-hover: var(--mantine-color-gray-7);--mantine-color-gray-light: rgba(134, 142, 150, .1);--mantine-color-gray-light-hover: rgba(134, 142, 150, .12);--mantine-color-gray-light-color: var(--mantine-color-gray-6);--mantine-color-gray-outline: var(--mantine-color-gray-6);--mantine-color-gray-outline-hover: rgba(134, 142, 150, .05);--mantine-color-red-text: var(--mantine-color-red-filled);--mantine-color-red-filled: var(--mantine-color-red-6);--mantine-color-red-filled-hover: var(--mantine-color-red-7);--mantine-color-red-light: rgba(250, 82, 82, .1);--mantine-color-red-light-hover: rgba(250, 82, 82, .12);--mantine-color-red-light-color: var(--mantine-color-red-6);--mantine-color-red-outline: var(--mantine-color-red-6);--mantine-color-red-outline-hover: rgba(250, 82, 82, .05);--mantine-color-pink-text: var(--mantine-color-pink-filled);--mantine-color-pink-filled: var(--mantine-color-pink-6);--mantine-color-pink-filled-hover: var(--mantine-color-pink-7);--mantine-color-pink-light: rgba(230, 73, 128, .1);--mantine-color-pink-light-hover: rgba(230, 73, 128, .12);--mantine-color-pink-light-color: var(--mantine-color-pink-6);--mantine-color-pink-outline: var(--mantine-color-pink-6);--mantine-color-pink-outline-hover: rgba(230, 73, 128, .05);--mantine-color-grape-text: var(--mantine-color-grape-filled);--mantine-color-grape-filled: var(--mantine-color-grape-6);--mantine-color-grape-filled-hover: var(--mantine-color-grape-7);--mantine-color-grape-light: rgba(190, 75, 219, .1);--mantine-color-grape-light-hover: rgba(190, 75, 219, .12);--mantine-color-grape-light-color: var(--mantine-color-grape-6);--mantine-color-grape-outline: var(--mantine-color-grape-6);--mantine-color-grape-outline-hover: rgba(190, 75, 219, .05);--mantine-color-violet-text: var(--mantine-color-violet-filled);--mantine-color-violet-filled: var(--mantine-color-violet-6);--mantine-color-violet-filled-hover: var(--mantine-color-violet-7);--mantine-color-violet-light: rgba(121, 80, 242, .1);--mantine-color-violet-light-hover: rgba(121, 80, 242, .12);--mantine-color-violet-light-color: var(--mantine-color-violet-6);--mantine-color-violet-outline: var(--mantine-color-violet-6);--mantine-color-violet-outline-hover: rgba(121, 80, 242, .05);--mantine-color-indigo-text: var(--mantine-color-indigo-filled);--mantine-color-indigo-filled: var(--mantine-color-indigo-6);--mantine-color-indigo-filled-hover: var(--mantine-color-indigo-7);--mantine-color-indigo-light: rgba(76, 110, 245, .1);--mantine-color-indigo-light-hover: rgba(76, 110, 245, .12);--mantine-color-indigo-light-color: var(--mantine-color-indigo-6);--mantine-color-indigo-outline: var(--mantine-color-indigo-6);--mantine-color-indigo-outline-hover: rgba(76, 110, 245, .05);--mantine-color-blue-text: var(--mantine-color-blue-filled);--mantine-color-blue-filled: var(--mantine-color-blue-6);--mantine-color-blue-filled-hover: var(--mantine-color-blue-7);--mantine-color-blue-light: rgba(34, 139, 230, .1);--mantine-color-blue-light-hover: rgba(34, 139, 230, .12);--mantine-color-blue-light-color: var(--mantine-color-blue-6);--mantine-color-blue-outline: var(--mantine-color-blue-6);--mantine-color-blue-outline-hover: rgba(34, 139, 230, .05);--mantine-color-cyan-text: var(--mantine-color-cyan-filled);--mantine-color-cyan-filled: var(--mantine-color-cyan-6);--mantine-color-cyan-filled-hover: var(--mantine-color-cyan-7);--mantine-color-cyan-light: rgba(21, 170, 191, .1);--mantine-color-cyan-light-hover: rgba(21, 170, 191, .12);--mantine-color-cyan-light-color: var(--mantine-color-cyan-6);--mantine-color-cyan-outline: var(--mantine-color-cyan-6);--mantine-color-cyan-outline-hover: rgba(21, 170, 191, .05);--mantine-color-teal-text: var(--mantine-color-teal-filled);--mantine-color-teal-filled: var(--mantine-color-teal-6);--mantine-color-teal-filled-hover: var(--mantine-color-teal-7);--mantine-color-teal-light: rgba(18, 184, 134, .1);--mantine-color-teal-light-hover: rgba(18, 184, 134, .12);--mantine-color-teal-light-color: var(--mantine-color-teal-6);--mantine-color-teal-outline: var(--mantine-color-teal-6);--mantine-color-teal-outline-hover: rgba(18, 184, 134, .05);--mantine-color-green-text: var(--mantine-color-green-filled);--mantine-color-green-filled: var(--mantine-color-green-6);--mantine-color-green-filled-hover: var(--mantine-color-green-7);--mantine-color-green-light: rgba(64, 192, 87, .1);--mantine-color-green-light-hover: rgba(64, 192, 87, .12);--mantine-color-green-light-color: var(--mantine-color-green-6);--mantine-color-green-outline: var(--mantine-color-green-6);--mantine-color-green-outline-hover: rgba(64, 192, 87, .05);--mantine-color-lime-text: var(--mantine-color-lime-filled);--mantine-color-lime-filled: var(--mantine-color-lime-6);--mantine-color-lime-filled-hover: var(--mantine-color-lime-7);--mantine-color-lime-light: rgba(130, 201, 30, .1);--mantine-color-lime-light-hover: rgba(130, 201, 30, .12);--mantine-color-lime-light-color: var(--mantine-color-lime-6);--mantine-color-lime-outline: var(--mantine-color-lime-6);--mantine-color-lime-outline-hover: rgba(130, 201, 30, .05);--mantine-color-yellow-text: var(--mantine-color-yellow-filled);--mantine-color-yellow-filled: var(--mantine-color-yellow-6);--mantine-color-yellow-filled-hover: var(--mantine-color-yellow-7);--mantine-color-yellow-light: rgba(250, 176, 5, .1);--mantine-color-yellow-light-hover: rgba(250, 176, 5, .12);--mantine-color-yellow-light-color: var(--mantine-color-yellow-6);--mantine-color-yellow-outline: var(--mantine-color-yellow-6);--mantine-color-yellow-outline-hover: rgba(250, 176, 5, .05);--mantine-color-orange-text: var(--mantine-color-orange-filled);--mantine-color-orange-filled: var(--mantine-color-orange-6);--mantine-color-orange-filled-hover: var(--mantine-color-orange-7);--mantine-color-orange-light: rgba(253, 126, 20, .1);--mantine-color-orange-light-hover: rgba(253, 126, 20, .12);--mantine-color-orange-light-color: var(--mantine-color-orange-6);--mantine-color-orange-outline: var(--mantine-color-orange-6);--mantine-color-orange-outline-hover: rgba(253, 126, 20, .05)}.m_d57069b5{--scrollarea-scrollbar-size: calc(.75rem * var(--mantine-scale));position:relative;overflow:hidden}.m_d57069b5:where([data-autosize]) .m_b1336c6{min-width:min-content}.m_c0783ff9{scrollbar-width:none;overscroll-behavior:var(--scrollarea-over-scroll-behavior);-ms-overflow-style:none;-webkit-overflow-scrolling:touch;width:100%;height:100%}.m_c0783ff9::-webkit-scrollbar{display:none}.m_c0783ff9:where([data-scrollbars=xy],[data-scrollbars=y]):where([data-offset-scrollbars=xy],[data-offset-scrollbars=y],[data-offset-scrollbars=present]):where([data-vertical-hidden]){padding-inline-end:0;padding-inline-start:0}.m_c0783ff9:where([data-scrollbars=xy],[data-scrollbars=y]):where([data-offset-scrollbars=xy],[data-offset-scrollbars=y],[data-offset-scrollbars=present]):not([data-vertical-hidden]){padding-inline-end:var(--scrollarea-scrollbar-size);padding-inline-start:unset}.m_c0783ff9:where([data-scrollbars=xy],[data-scrollbars=x]):where([data-offset-scrollbars=xy],[data-offset-scrollbars=x],[data-offset-scrollbars=present]):where([data-horizontal-hidden]){padding-bottom:0}.m_c0783ff9:where([data-scrollbars=xy],[data-scrollbars=x]):where([data-offset-scrollbars=xy],[data-offset-scrollbars=x],[data-offset-scrollbars=present]):not([data-horizontal-hidden]){padding-bottom:var(--scrollarea-scrollbar-size)}.m_f8f631dd{min-width:100%;display:table}.m_c44ba933{user-select:none;touch-action:none;box-sizing:border-box;transition:background-color .15s ease,opacity .15s ease;padding:calc(var(--scrollarea-scrollbar-size) / 5);display:flex;background-color:transparent;flex-direction:row}@media(hover:hover){:where([data-mantine-color-scheme=light]) .m_c44ba933:hover{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=light]) .m_c44ba933:hover>.m_d8b5e363{background-color:#00000080}:where([data-mantine-color-scheme=dark]) .m_c44ba933:hover{background-color:var(--mantine-color-dark-8)}:where([data-mantine-color-scheme=dark]) .m_c44ba933:hover>.m_d8b5e363{background-color:#ffffff80}}@media(hover:none){:where([data-mantine-color-scheme=light]) .m_c44ba933:active{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=light]) .m_c44ba933:active>.m_d8b5e363{background-color:#00000080}:where([data-mantine-color-scheme=dark]) .m_c44ba933:active{background-color:var(--mantine-color-dark-8)}:where([data-mantine-color-scheme=dark]) .m_c44ba933:active>.m_d8b5e363{background-color:#ffffff80}}.m_c44ba933:where([data-hidden],[data-state=hidden]){display:none}.m_c44ba933:where([data-orientation=vertical]){width:var(--scrollarea-scrollbar-size);top:0;bottom:var(--sa-corner-width);inset-inline-end:0}.m_c44ba933:where([data-orientation=horizontal]){height:var(--scrollarea-scrollbar-size);flex-direction:column;bottom:0;inset-inline-start:0;inset-inline-end:var(--sa-corner-width)}.m_d8b5e363{flex:1;border-radius:var(--scrollarea-scrollbar-size);position:relative;transition:background-color .15s ease;overflow:hidden;opacity:var(--thumb-opacity)}.m_d8b5e363:before{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:100%;height:100%;min-width:calc(2.75rem * var(--mantine-scale));min-height:calc(2.75rem * var(--mantine-scale))}:where([data-mantine-color-scheme=light]) .m_d8b5e363{background-color:#0006}:where([data-mantine-color-scheme=dark]) .m_d8b5e363{background-color:#fff6}.m_21657268{position:absolute;opacity:0;transition:opacity .15s ease;display:block;inset-inline-end:0;bottom:0}:where([data-mantine-color-scheme=light]) .m_21657268{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_21657268{background-color:var(--mantine-color-dark-8)}.m_21657268:where([data-hovered]){opacity:1}.m_21657268:where([data-hidden]){display:none}.m_b1336c6{min-width:100%}.m_87cf2631{background-color:transparent;cursor:pointer;border:0;padding:0;appearance:none;font-size:var(--mantine-font-size-md);text-align:left;text-decoration:none;color:inherit;touch-action:manipulation;-webkit-tap-highlight-color:transparent}:where([dir=rtl]) .m_87cf2631{text-align:right}.m_515a97f8{border:0;clip:rect(0 0 0 0);height:calc(.0625rem * var(--mantine-scale));width:calc(.0625rem * var(--mantine-scale));margin:calc(-.0625rem * var(--mantine-scale));overflow:hidden;padding:0;position:absolute;white-space:nowrap}.m_1b7284a3{--paper-radius: var(--mantine-radius-default);outline:0;-webkit-tap-highlight-color:transparent;display:block;touch-action:manipulation;text-decoration:none;border-radius:var(--paper-radius);box-shadow:var(--paper-shadow);background-color:var(--mantine-color-body)}[data-mantine-color-scheme=light] .m_1b7284a3{--paper-border-color: var(--mantine-color-gray-3)}[data-mantine-color-scheme=dark] .m_1b7284a3{--paper-border-color: var(--mantine-color-dark-4)}.m_1b7284a3:where([data-with-border]){border:calc(.0625rem * var(--mantine-scale)) solid var(--paper-border-color)}.m_9814e45f{inset:0;position:absolute;background:var(--overlay-bg, rgba(0, 0, 0, .6));-webkit-backdrop-filter:var(--overlay-filter);backdrop-filter:var(--overlay-filter);border-radius:var(--overlay-radius, 0);z-index:var(--overlay-z-index)}.m_9814e45f:where([data-fixed]){position:fixed}.m_9814e45f:where([data-center]){display:flex;align-items:center;justify-content:center}.m_38a85659{position:absolute;border:1px solid var(--popover-border-color);padding:var(--mantine-spacing-sm) var(--mantine-spacing-md);box-shadow:var(--popover-shadow, none);border-radius:var(--popover-radius, var(--mantine-radius-default))}.m_38a85659:where([data-fixed]){position:fixed}.m_38a85659:focus{outline:none}:where([data-mantine-color-scheme=light]) .m_38a85659{--popover-border-color: var(--mantine-color-gray-2);background-color:var(--mantine-color-white)}:where([data-mantine-color-scheme=dark]) .m_38a85659{--popover-border-color: var(--mantine-color-dark-4);background-color:var(--mantine-color-dark-6)}.m_a31dc6c1{background-color:inherit;border:1px solid var(--popover-border-color);z-index:1}.m_3d7bc908{position:fixed;inset:0}.m_5ae2e3c{--loader-size-xs: calc(1.125rem * var(--mantine-scale));--loader-size-sm: calc(1.375rem * var(--mantine-scale));--loader-size-md: calc(2.25rem * var(--mantine-scale));--loader-size-lg: calc(2.75rem * var(--mantine-scale));--loader-size-xl: calc(3.625rem * var(--mantine-scale));--loader-size: var(--loader-size-md);--loader-color: var(--mantine-primary-color-filled)}@keyframes m_5d2b3b9d{0%{transform:scale(.6);opacity:0}50%,to{transform:scale(1)}}.m_7a2bd4cd{position:relative;width:var(--loader-size);height:var(--loader-size);display:flex;gap:calc(var(--loader-size) / 5)}.m_870bb79{flex:1;background:var(--loader-color);animation:m_5d2b3b9d 1.2s cubic-bezier(0,.5,.5,1) infinite;border-radius:calc(.125rem * var(--mantine-scale))}.m_870bb79:nth-of-type(1){animation-delay:-.24s}.m_870bb79:nth-of-type(2){animation-delay:-.12s}.m_870bb79:nth-of-type(3){animation-delay:0}@keyframes m_aac34a1{0%,to{transform:scale(1);opacity:1}50%{transform:scale(.6);opacity:.5}}.m_4e3f22d7{display:flex;justify-content:center;align-items:center;gap:calc(var(--loader-size) / 10);position:relative;width:var(--loader-size);height:var(--loader-size)}.m_870c4af{width:calc(var(--loader-size) / 3 - var(--loader-size) / 15);height:calc(var(--loader-size) / 3 - var(--loader-size) / 15);border-radius:50%;background:var(--loader-color);animation:m_aac34a1 .8s infinite linear}.m_870c4af:nth-child(2){animation-delay:.4s}@keyframes m_f8e89c4b{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.m_b34414df{display:inline-block;width:var(--loader-size);height:var(--loader-size)}.m_b34414df:after{content:"";display:block;width:var(--loader-size);height:var(--loader-size);border-radius:calc(625rem * var(--mantine-scale));border-width:calc(var(--loader-size) / 8);border-style:solid;border-color:var(--loader-color) var(--loader-color) var(--loader-color) transparent;animation:m_f8e89c4b 1.2s linear infinite}.m_8d3f4000{--ai-size-xs: calc(1.125rem * var(--mantine-scale));--ai-size-sm: calc(1.375rem * var(--mantine-scale));--ai-size-md: calc(1.75rem * var(--mantine-scale));--ai-size-lg: calc(2.125rem * var(--mantine-scale));--ai-size-xl: calc(2.75rem * var(--mantine-scale));--ai-size-input-xs: calc(1.875rem * var(--mantine-scale));--ai-size-input-sm: calc(2.25rem * var(--mantine-scale));--ai-size-input-md: calc(2.625rem * var(--mantine-scale));--ai-size-input-lg: calc(3.125rem * var(--mantine-scale));--ai-size-input-xl: calc(3.75rem * var(--mantine-scale));--ai-size: var(--ai-size-md);--ai-color: var(--mantine-color-white);line-height:1;display:inline-flex;align-items:center;justify-content:center;position:relative;user-select:none;overflow:hidden;width:var(--ai-size);height:var(--ai-size);min-width:var(--ai-size);min-height:var(--ai-size);border-radius:var(--ai-radius, var(--mantine-radius-default));background:var(--ai-bg, var(--mantine-primary-color-filled));color:var(--ai-color, var(--mantine-color-white));border:var(--ai-bd, calc(.0625rem * var(--mantine-scale)) solid transparent);cursor:pointer}@media(hover:hover){.m_8d3f4000:hover:where(:not([data-loading],:disabled,[data-disabled])){background-color:var(--ai-hover, var(--mantine-primary-color-filled-hover));color:var(--ai-hover-color, var(--ai-color))}}@media(hover:none){.m_8d3f4000:active:where(:not([data-loading],:disabled,[data-disabled])){background-color:var(--ai-hover, var(--mantine-primary-color-filled-hover));color:var(--ai-hover-color, var(--ai-color))}}.m_8d3f4000[data-loading]{cursor:not-allowed}.m_8d3f4000[data-loading] .m_8d3afb97{opacity:0;transform:translateY(100%)}.m_8d3f4000:where(:disabled:not([data-loading]),[data-disabled]:not([data-loading])){cursor:not-allowed;border:calc(.0625rem * var(--mantine-scale)) solid transparent;color:var(--mantine-color-disabled-color);background-color:var(--mantine-color-disabled)}.m_8d3f4000:where(:disabled:not([data-loading]),[data-disabled]:not([data-loading])):active{transform:none}.m_302b9fb1{inset:calc(-.0625rem * var(--mantine-scale));position:absolute;border-radius:var(--ai-radius, var(--mantine-radius-default));display:flex;align-items:center;justify-content:center}:where([data-mantine-color-scheme=light]) .m_302b9fb1{background-color:#ffffff26}:where([data-mantine-color-scheme=dark]) .m_302b9fb1{background-color:#00000026}.m_1a0f1b21{--ai-border-width: calc(.0625rem * var(--mantine-scale));display:flex}.m_1a0f1b21 :where(*):focus{position:relative;z-index:1}.m_1a0f1b21[data-orientation=horizontal]{flex-direction:row}.m_1a0f1b21[data-orientation=horizontal] .m_8d3f4000:not(:only-child):first-child,.m_1a0f1b21[data-orientation=horizontal] .m_437b6484:not(:only-child):first-child{border-end-end-radius:0;border-start-end-radius:0;border-inline-end-width:calc(var(--ai-border-width) / 2)}.m_1a0f1b21[data-orientation=horizontal] .m_8d3f4000:not(:only-child):last-child,.m_1a0f1b21[data-orientation=horizontal] .m_437b6484:not(:only-child):last-child{border-end-start-radius:0;border-start-start-radius:0;border-inline-start-width:calc(var(--ai-border-width) / 2)}.m_1a0f1b21[data-orientation=horizontal] .m_8d3f4000:not(:only-child):not(:first-child):not(:last-child),.m_1a0f1b21[data-orientation=horizontal] .m_437b6484:not(:only-child):not(:first-child):not(:last-child){border-radius:0;border-inline-width:calc(var(--ai-border-width) / 2)}.m_1a0f1b21[data-orientation=vertical]{flex-direction:column}.m_1a0f1b21[data-orientation=vertical] .m_8d3f4000:not(:only-child):first-child,.m_1a0f1b21[data-orientation=vertical] .m_437b6484:not(:only-child):first-child{border-end-start-radius:0;border-end-end-radius:0;border-bottom-width:calc(var(--ai-border-width) / 2)}.m_1a0f1b21[data-orientation=vertical] .m_8d3f4000:not(:only-child):last-child,.m_1a0f1b21[data-orientation=vertical] .m_437b6484:not(:only-child):last-child{border-start-start-radius:0;border-start-end-radius:0;border-top-width:calc(var(--ai-border-width) / 2)}.m_1a0f1b21[data-orientation=vertical] .m_8d3f4000:not(:only-child):not(:first-child):not(:last-child),.m_1a0f1b21[data-orientation=vertical] .m_437b6484:not(:only-child):not(:first-child):not(:last-child){border-radius:0;border-bottom-width:calc(var(--ai-border-width) / 2);border-top-width:calc(var(--ai-border-width) / 2)}.m_8d3afb97{display:flex;align-items:center;justify-content:center;transition:transform .15s ease,opacity .1s ease;width:100%;height:100%}.m_437b6484{--section-height-xs: calc(1.125rem * var(--mantine-scale));--section-height-sm: calc(1.375rem * var(--mantine-scale));--section-height-md: calc(1.75rem * var(--mantine-scale));--section-height-lg: calc(2.125rem * var(--mantine-scale));--section-height-xl: calc(2.75rem * var(--mantine-scale));--section-height-input-xs: calc(1.875rem * var(--mantine-scale));--section-height-input-sm: calc(2.25rem * var(--mantine-scale));--section-height-input-md: calc(2.625rem * var(--mantine-scale));--section-height-input-lg: calc(3.125rem * var(--mantine-scale));--section-height-input-xl: calc(3.75rem * var(--mantine-scale));--section-padding-x-xs: calc(.375rem * var(--mantine-scale));--section-padding-x-sm: calc(.5rem * var(--mantine-scale));--section-padding-x-md: calc(.625rem * var(--mantine-scale));--section-padding-x-lg: calc(.75rem * var(--mantine-scale));--section-padding-x-xl: calc(1rem * var(--mantine-scale));--section-height: var(--section-height-sm);--section-padding-x: var(--section-padding-x-sm);--section-color: var(--mantine-color-white);font-weight:600;width:auto;border-radius:var(--section-radius, var(--mantine-radius-default));font-size:var(--section-fz, var(--mantine-font-size-sm));background:var(--section-bg, var(--mantine-primary-color-filled));border:var(--section-bd, calc(.0625rem * var(--mantine-scale)) solid transparent);color:var(--section-color, var(--mantine-color-white));height:var(--section-height, var(--section-height-sm));padding-inline:var(--section-padding-x, var(--section-padding-x-sm));vertical-align:middle;line-height:1;display:inline-flex;align-items:center;justify-content:center}.m_86a44da5{--cb-size-xs: calc(1.125rem * var(--mantine-scale));--cb-size-sm: calc(1.375rem * var(--mantine-scale));--cb-size-md: calc(1.75rem * var(--mantine-scale));--cb-size-lg: calc(2.125rem * var(--mantine-scale));--cb-size-xl: calc(2.75rem * var(--mantine-scale));--cb-size: var(--cb-size-md);--cb-icon-size: 70%;--cb-radius: var(--mantine-radius-default);line-height:1;display:inline-flex;align-items:center;justify-content:center;position:relative;user-select:none;width:var(--cb-size);height:var(--cb-size);min-width:var(--cb-size);min-height:var(--cb-size);border-radius:var(--cb-radius)}:where([data-mantine-color-scheme=light]) .m_86a44da5{color:var(--mantine-color-gray-7)}:where([data-mantine-color-scheme=dark]) .m_86a44da5{color:var(--mantine-color-dark-1)}.m_86a44da5[data-disabled],.m_86a44da5:disabled{cursor:not-allowed;opacity:.6}@media(hover:hover){:where([data-mantine-color-scheme=light]) .m_220c80f2:where(:not([data-disabled],:disabled)):hover{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_220c80f2:where(:not([data-disabled],:disabled)):hover{background-color:var(--mantine-color-dark-6)}}@media(hover:none){:where([data-mantine-color-scheme=light]) .m_220c80f2:where(:not([data-disabled],:disabled)):active{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_220c80f2:where(:not([data-disabled],:disabled)):active{background-color:var(--mantine-color-dark-6)}}.m_4081bf90{display:flex;flex-direction:row;flex-wrap:var(--group-wrap, wrap);justify-content:var(--group-justify, flex-start);align-items:var(--group-align, center);gap:var(--group-gap, var(--mantine-spacing-md))}.m_4081bf90:where([data-grow])>*{flex-grow:1;max-width:var(--group-child-width)}.m_615af6c9{line-height:1;padding:0;margin:0;font-weight:400;font-size:var(--mantine-font-size-md)}.m_b5489c3c{display:flex;justify-content:space-between;align-items:center;padding:var(--mb-padding, var(--mantine-spacing-md));padding-inline-end:calc(var(--mb-padding, var(--mantine-spacing-md)) - calc(.3125rem * var(--mantine-scale)));position:sticky;top:0;background-color:var(--mantine-color-body);z-index:1000;min-height:calc(3.75rem * var(--mantine-scale));transition:padding-inline-end .1s}.m_60c222c7{position:fixed;width:100%;top:0;bottom:0;z-index:var(--mb-z-index);pointer-events:none}.m_fd1ab0aa{pointer-events:all;box-shadow:var(--mb-shadow, var(--mantine-shadow-xl))}.m_fd1ab0aa [data-mantine-scrollbar]{z-index:1001}[data-offset-scrollbars] .m_fd1ab0aa:has([data-mantine-scrollbar]) .m_b5489c3c{padding-inline-end:calc(var(--mb-padding, var(--mantine-spacing-md)) + calc(.3125rem * var(--mantine-scale)))}.m_606cb269{margin-inline-start:auto}.m_5df29311{padding:var(--mb-padding, var(--mantine-spacing-md));padding-top:var(--mb-padding, var(--mantine-spacing-md))}.m_5df29311:where(:not(:only-child)){padding-top:0}.m_6c018570{position:relative;margin-top:var(--input-margin-top, 0rem);margin-bottom:var(--input-margin-bottom, 0rem);--input-height-xs: calc(1.875rem * var(--mantine-scale));--input-height-sm: calc(2.25rem * var(--mantine-scale));--input-height-md: calc(2.625rem * var(--mantine-scale));--input-height-lg: calc(3.125rem * var(--mantine-scale));--input-height-xl: calc(3.75rem * var(--mantine-scale));--input-padding-y-xs: calc(.3125rem * var(--mantine-scale));--input-padding-y-sm: calc(.375rem * var(--mantine-scale));--input-padding-y-md: calc(.5rem * var(--mantine-scale));--input-padding-y-lg: calc(.625rem * var(--mantine-scale));--input-padding-y-xl: calc(.8125rem * var(--mantine-scale));--input-height: var(--input-height-sm);--input-radius: var(--mantine-radius-default);--input-cursor: text;--input-text-align: left;--input-line-height: calc(var(--input-height) - calc(.125rem * var(--mantine-scale)));--input-padding: calc(var(--input-height) / 3);--input-padding-inline-start: var(--input-padding);--input-padding-inline-end: var(--input-padding);--input-placeholder-color: var(--mantine-color-placeholder);--input-color: var(--mantine-color-text);--input-disabled-bg: var(--mantine-color-disabled);--input-disabled-color: var(--mantine-color-disabled-color);--input-left-section-size: var(--input-left-section-width, calc(var(--input-height) - calc(.125rem * var(--mantine-scale))));--input-right-section-size: var( --input-right-section-width, calc(var(--input-height) - calc(.125rem * var(--mantine-scale))) );--input-size: var(--input-height);--section-y: calc(.0625rem * var(--mantine-scale));--left-section-start: calc(.0625rem * var(--mantine-scale));--left-section-border-radius: var(--input-radius) 0 0 var(--input-radius);--right-section-end: calc(.0625rem * var(--mantine-scale));--right-section-border-radius: 0 var(--input-radius) var(--input-radius) 0}.m_6c018570[data-variant=unstyled]{--input-padding: 0;--input-padding-y: 0;--input-padding-inline-start: 0;--input-padding-inline-end: 0}.m_6c018570[data-pointer]{--input-cursor: pointer}.m_6c018570[data-multiline]{--input-padding-y-xs: calc(.28125rem * var(--mantine-scale));--input-padding-y-sm: calc(.34375rem * var(--mantine-scale));--input-padding-y-md: calc(.4375rem * var(--mantine-scale));--input-padding-y-lg: calc(.59375rem * var(--mantine-scale));--input-padding-y-xl: calc(.8125rem * var(--mantine-scale));--input-size: auto;--input-line-height: var(--mantine-line-height)}.m_6c018570[data-with-left-section]{--input-padding-inline-start: var(--input-left-section-size)}.m_6c018570[data-with-right-section]{--input-padding-inline-end: var(--input-right-section-size)}.m_6c018570[data-size=xs] .m_6c018570[data-with-right-section]:has([data-combined-clear-section]){--input-padding-inline-end: calc(2.5625rem * var(--mantine-scale))}.m_6c018570[data-size=sm] .m_6c018570[data-with-right-section]:has([data-combined-clear-section]){--input-padding-inline-end: calc(3.125rem * var(--mantine-scale))}.m_6c018570[data-size=md] .m_6c018570[data-with-right-section]:has([data-combined-clear-section]){--input-padding-inline-end: calc(3.75rem * var(--mantine-scale))}.m_6c018570[data-size=lg] .m_6c018570[data-with-right-section]:has([data-combined-clear-section]){--input-padding-inline-end: calc(4.5rem * var(--mantine-scale))}.m_6c018570[data-size=xl] .m_6c018570[data-with-right-section]:has([data-combined-clear-section]){--input-padding-inline-end: calc(5.5625rem * var(--mantine-scale))}[data-mantine-color-scheme=light] .m_6c018570[data-variant=default]{--input-bd: var(--mantine-color-gray-4);--input-bg: var(--mantine-color-white);--input-bd-focus: var(--mantine-primary-color-filled)}[data-mantine-color-scheme=light] .m_6c018570[data-variant=filled]{--input-bd: transparent;--input-bg: var(--mantine-color-gray-1);--input-bd-focus: var(--mantine-primary-color-filled)}[data-mantine-color-scheme=light] .m_6c018570[data-variant=unstyled]{--input-bd: transparent;--input-bg: transparent;--input-bd-focus: transparent}[data-mantine-color-scheme=dark] .m_6c018570[data-variant=default]{--input-bd: var(--mantine-color-dark-4);--input-bg: var(--mantine-color-dark-6);--input-bd-focus: var(--mantine-primary-color-filled)}[data-mantine-color-scheme=dark] .m_6c018570[data-variant=filled]{--input-bd: transparent;--input-bg: var(--mantine-color-dark-5);--input-bd-focus: var(--mantine-primary-color-filled)}[data-mantine-color-scheme=dark] .m_6c018570[data-variant=unstyled]{--input-bd: transparent;--input-bg: transparent;--input-bd-focus: transparent}[data-mantine-color-scheme] .m_6c018570[data-error]:not([data-variant=unstyled]){--input-bd: var(--mantine-color-error)}[data-mantine-color-scheme] .m_6c018570[data-error]{--input-color: var(--mantine-color-error);--input-placeholder-color: var(--mantine-color-error);--input-section-color: var(--mantine-color-error)}:where([dir=rtl]) .m_6c018570{--input-text-align: right;--left-section-border-radius: 0 var(--input-radius) var(--input-radius) 0;--right-section-border-radius: var(--input-radius) 0 0 var(--input-radius)}.m_8fb7ebe7{-webkit-tap-highlight-color:transparent;appearance:none;resize:var(--input-resize, none);display:block;width:100%;transition:border-color .1s ease;text-align:var(--input-text-align);color:var(--input-color);border:calc(.0625rem * var(--mantine-scale)) solid var(--input-bd);background-color:var(--input-bg);font-family:var(--input-font-family, var(--mantine-font-family));height:var(--input-size);min-height:var(--input-height);line-height:var(--input-line-height);font-size:var(--_input-fz, var(--input-fz, var(--mantine-font-size-md)));border-radius:var(--input-radius);padding-inline-start:var(--input-padding-inline-start);padding-inline-end:var(--input-padding-inline-end);padding-top:var(--input-padding-y, 0rem);padding-bottom:var(--input-padding-y, 0rem);cursor:var(--input-cursor);overflow:var(--input-overflow)}.m_8fb7ebe7[data-no-overflow]{--input-overflow: hidden}.m_8fb7ebe7[data-monospace]{--input-font-family: var(--mantine-font-family-monospace);--_input-fz: calc(var(--input-fz) - calc(.125rem * var(--mantine-scale)))}.m_8fb7ebe7:focus,.m_8fb7ebe7:focus-within{outline:none;--input-bd: var(--input-bd-focus)}[data-error] .m_8fb7ebe7:focus,[data-error] .m_8fb7ebe7:focus-within{--input-bd: var(--mantine-color-error)}.m_8fb7ebe7::placeholder{color:var(--input-placeholder-color);opacity:1}.m_8fb7ebe7::-webkit-inner-spin-button,.m_8fb7ebe7::-webkit-outer-spin-button,.m_8fb7ebe7::-webkit-search-decoration,.m_8fb7ebe7::-webkit-search-cancel-button,.m_8fb7ebe7::-webkit-search-results-button,.m_8fb7ebe7::-webkit-search-results-decoration{appearance:none}.m_8fb7ebe7[type=number]{-moz-appearance:textfield}.m_8fb7ebe7:disabled,.m_8fb7ebe7[data-disabled]{cursor:not-allowed;opacity:.6;background-color:var(--input-disabled-bg);color:var(--input-disabled-color)}.m_8fb7ebe7:has(input:disabled){cursor:not-allowed;opacity:.6;background-color:var(--input-disabled-bg);color:var(--input-disabled-color)}.m_8fb7ebe7[readonly]{caret-color:transparent}.m_82577fc2{pointer-events:var(--section-pointer-events);position:absolute;z-index:1;inset-inline-start:var(--section-start);inset-inline-end:var(--section-end);bottom:var(--section-y);top:var(--section-y);display:flex;align-items:center;justify-content:center;width:var(--section-size);border-radius:var(--section-border-radius);color:var(--input-section-color, var(--mantine-color-dimmed))}.m_82577fc2[data-position=right]{--section-pointer-events: var(--input-right-section-pointer-events);--section-end: var(--right-section-end);--section-size: var(--input-right-section-size);--section-border-radius: var(--right-section-border-radius)}.m_6c018570[data-size=xs] .m_82577fc2[data-position=right]:has([data-combined-clear-section]){--section-size: calc(2.5625rem * var(--mantine-scale))}.m_6c018570[data-size=sm] .m_82577fc2[data-position=right]:has([data-combined-clear-section]){--section-size: calc(3.125rem * var(--mantine-scale))}.m_6c018570[data-size=md] .m_82577fc2[data-position=right]:has([data-combined-clear-section]){--section-size: calc(3.75rem * var(--mantine-scale))}.m_6c018570[data-size=lg] .m_82577fc2[data-position=right]:has([data-combined-clear-section]){--section-size: calc(4.5rem * var(--mantine-scale))}.m_6c018570[data-size=xl] .m_82577fc2[data-position=right]:has([data-combined-clear-section]){--section-size: calc(5.5625rem * var(--mantine-scale))}.m_82577fc2[data-position=left]{--section-pointer-events: var(--input-left-section-pointer-events);--section-start: var(--left-section-start);--section-size: var(--input-left-section-size);--section-border-radius: var(--left-section-border-radius)}.m_88bacfd0{color:var(--input-placeholder-color, var(--mantine-color-placeholder))}[data-error] .m_88bacfd0{--input-placeholder-color: var(--input-color, var(--mantine-color-placeholder))}.m_46b77525{line-height:var(--mantine-line-height)}.m_8fdc1311{display:inline-block;font-weight:500;overflow-wrap:break-word;cursor:default;-webkit-tap-highlight-color:transparent;font-size:var(--input-label-size, var(--mantine-font-size-sm))}.m_78a94662{color:var(--input-asterisk-color, var(--mantine-color-error))}.m_8f816625,.m_fe47ce59{word-wrap:break-word;line-height:1.2;display:block;margin:0;padding:0}.m_8f816625{color:var(--mantine-color-error);font-size:var(--input-error-size, calc(var(--mantine-font-size-sm) - calc(.125rem * var(--mantine-scale))))}.m_fe47ce59{color:var(--mantine-color-dimmed);font-size:var(--input-description-size, calc(var(--mantine-font-size-sm) - calc(.125rem * var(--mantine-scale))))}.m_8bffd616{display:flex}.m_96b553a6{--transition-duration: .15s;top:0;left:0;position:absolute;z-index:0;transition-property:transform,width,height;transition-timing-function:ease;transition-duration:0ms}.m_96b553a6:where([data-initialized]){transition-duration:var(--transition-duration)}.m_96b553a6:where([data-hidden]){background-color:red;display:none}.m_9bdbb667{--accordion-radius: var(--mantine-radius-default)}.m_df78851f{overflow-wrap:break-word}.m_4ba554d4{padding:var(--mantine-spacing-md);padding-top:calc(var(--mantine-spacing-xs) / 2)}.m_8fa820a0{margin:0;padding:0}.m_4ba585b8{width:100%;display:flex;align-items:center;flex-direction:row-reverse;padding-inline:var(--mantine-spacing-md);opacity:1;cursor:pointer;background-color:transparent;color:var(--mantine-color-bright)}.m_4ba585b8:where([data-chevron-position=left]){flex-direction:row;padding-inline-start:0}.m_4ba585b8:where(:disabled,[data-disabled]){opacity:.4;cursor:not-allowed}@media(hover:hover){:where([data-mantine-color-scheme=light]) .m_6939a5e9:where(:not(:disabled,[data-disabled])):hover,:where([data-mantine-color-scheme=light]) .m_4271d21b:where(:not(:disabled,[data-disabled])):hover{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_6939a5e9:where(:not(:disabled,[data-disabled])):hover,:where([data-mantine-color-scheme=dark]) .m_4271d21b:where(:not(:disabled,[data-disabled])):hover{background-color:var(--mantine-color-dark-6)}}@media(hover:none){:where([data-mantine-color-scheme=light]) .m_6939a5e9:where(:not(:disabled,[data-disabled])):active,:where([data-mantine-color-scheme=light]) .m_4271d21b:where(:not(:disabled,[data-disabled])):active{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_6939a5e9:where(:not(:disabled,[data-disabled])):active,:where([data-mantine-color-scheme=dark]) .m_4271d21b:where(:not(:disabled,[data-disabled])):active{background-color:var(--mantine-color-dark-6)}}.m_df3ffa0f{color:inherit;font-weight:400;flex:1;overflow:hidden;text-overflow:ellipsis;padding-top:var(--mantine-spacing-sm);padding-bottom:var(--mantine-spacing-sm)}.m_3f35ae96{display:flex;align-items:center;justify-content:flex-start;transition:transform var(--accordion-transition-duration, .2s) ease;width:var(--accordion-chevron-size, calc(.9375rem * var(--mantine-scale)));min-width:var(--accordion-chevron-size, calc(.9375rem * var(--mantine-scale)));transform:rotate(0)}.m_3f35ae96:where([data-rotate]){transform:rotate(180deg)}.m_3f35ae96:where([data-position=left]){margin-inline-end:var(--mantine-spacing-md);margin-inline-start:var(--mantine-spacing-md)}.m_9bd771fe{display:flex;align-items:center;justify-content:center;margin-inline-end:var(--mantine-spacing-sm)}.m_9bd771fe:where([data-chevron-position=left]){margin-inline-end:0;margin-inline-start:var(--mantine-spacing-lg)}:where([data-mantine-color-scheme=light]) .m_9bd7b098{--item-border-color: var(--mantine-color-gray-3);--item-filled-color: var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_9bd7b098{--item-border-color: var(--mantine-color-dark-4);--item-filled-color: var(--mantine-color-dark-6)}.m_fe19b709{border-bottom:1px solid var(--item-border-color)}.m_1f921b3b{border:1px solid var(--item-border-color);transition:background-color .15s ease}.m_1f921b3b:where([data-active]){background-color:var(--item-filled-color)}.m_1f921b3b:first-of-type{border-start-start-radius:var(--accordion-radius);border-start-end-radius:var(--accordion-radius)}.m_1f921b3b:first-of-type>[data-accordion-control]{border-start-start-radius:var(--accordion-radius);border-start-end-radius:var(--accordion-radius)}.m_1f921b3b:last-of-type{border-end-start-radius:var(--accordion-radius);border-end-end-radius:var(--accordion-radius)}.m_1f921b3b:last-of-type>[data-accordion-control]{border-end-start-radius:var(--accordion-radius);border-end-end-radius:var(--accordion-radius)}.m_1f921b3b+.m_1f921b3b{border-top:0}.m_2cdf939a{border-radius:var(--accordion-radius)}.m_2cdf939a:where([data-active]){background-color:var(--item-filled-color)}.m_9f59b069{background-color:var(--item-filled-color);border-radius:var(--accordion-radius);border:calc(.0625rem * var(--mantine-scale)) solid transparent;transition:background-color .15s ease}.m_9f59b069[data-active]{border-color:var(--item-border-color)}:where([data-mantine-color-scheme=light]) .m_9f59b069[data-active]{background-color:var(--mantine-color-white)}:where([data-mantine-color-scheme=dark]) .m_9f59b069[data-active]{background-color:var(--mantine-color-dark-7)}.m_9f59b069+.m_9f59b069{margin-top:var(--mantine-spacing-md)}.m_7f854edf{position:fixed;z-index:var(--affix-z-index);inset-inline-start:var(--affix-left);inset-inline-end:var(--affix-right);top:var(--affix-top);bottom:var(--affix-bottom)}.m_66836ed3{--alert-radius: var(--mantine-radius-default);--alert-bg: var(--mantine-primary-color-light);--alert-bd: calc(.0625rem * var(--mantine-scale)) solid transparent;--alert-color: var(--mantine-primary-color-light-color);padding:var(--mantine-spacing-md) var(--mantine-spacing-md);border-radius:var(--alert-radius);position:relative;overflow:hidden;background-color:var(--alert-bg);border:var(--alert-bd);color:var(--alert-color)}.m_a5d60502{display:flex}.m_667c2793{flex:1;display:flex;flex-direction:column;gap:var(--mantine-spacing-xs)}.m_6a03f287{display:flex;align-items:center;justify-content:space-between;font-size:var(--mantine-font-size-sm);font-weight:700}.m_6a03f287:where([data-with-close-button]){padding-inline-end:var(--mantine-spacing-md)}.m_698f4f23{display:block;overflow:hidden;text-overflow:ellipsis}.m_667f2a6a{line-height:1;width:calc(1.25rem * var(--mantine-scale));height:calc(1.25rem * var(--mantine-scale));display:flex;align-items:center;justify-content:flex-start;margin-inline-end:var(--mantine-spacing-md);margin-top:calc(.0625rem * var(--mantine-scale))}.m_7fa78076{text-overflow:ellipsis;overflow:hidden;font-size:var(--mantine-font-size-sm)}:where([data-mantine-color-scheme=light]) .m_7fa78076{color:var(--mantine-color-black)}:where([data-mantine-color-scheme=dark]) .m_7fa78076{color:var(--mantine-color-white)}.m_7fa78076:where([data-variant=filled]){color:var(--alert-color)}.m_7fa78076:where([data-variant=white]){color:var(--mantine-color-black)}.m_87f54839{width:calc(1.25rem * var(--mantine-scale));height:calc(1.25rem * var(--mantine-scale));color:var(--alert-color)}.m_b6d8b162{-webkit-tap-highlight-color:transparent;text-decoration:none;font-size:var(--text-fz, var(--mantine-font-size-md));line-height:var(--text-lh, var(--mantine-line-height-md));font-weight:400;margin:0;padding:0;color:var(--text-color)}.m_b6d8b162:where([data-truncate]){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.m_b6d8b162:where([data-truncate=start]){direction:rtl;text-align:right}:where([dir=rtl]) .m_b6d8b162:where([data-truncate=start]){direction:ltr;text-align:left}.m_b6d8b162:where([data-variant=gradient]){background-image:var(--text-gradient);background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent}.m_b6d8b162:where([data-line-clamp]){overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:var(--text-line-clamp);-webkit-box-orient:vertical}.m_b6d8b162:where([data-inherit]){line-height:inherit;font-weight:inherit;font-size:inherit}.m_b6d8b162:where([data-inline]){line-height:1}.m_849cf0da{color:var(--mantine-color-anchor);text-decoration:none;appearance:none;border:none;display:inline;padding:0;margin:0;background-color:transparent;cursor:pointer}@media(hover:hover){.m_849cf0da:where([data-underline=hover]):hover{text-decoration:underline}}@media(hover:none){.m_849cf0da:where([data-underline=hover]):active{text-decoration:underline}}.m_849cf0da:where([data-underline=not-hover]){text-decoration:underline}@media(hover:hover){.m_849cf0da:where([data-underline=not-hover]):hover{text-decoration:none}}@media(hover:none){.m_849cf0da:where([data-underline=not-hover]):active{text-decoration:none}}.m_849cf0da:where([data-underline=always]){text-decoration:underline}.m_849cf0da:where([data-variant=gradient]),.m_849cf0da:where([data-variant=gradient]):hover{text-decoration:none}.m_849cf0da:where([data-line-clamp]){display:-webkit-box}.m_48204f9b{width:var(--slider-size);height:var(--slider-size);position:relative;border-radius:100%;display:flex;align-items:center;justify-content:center;user-select:none}.m_48204f9b:focus-within{outline:2px solid var(--mantine-primary-color-filled);outline-offset:calc(.125rem * var(--mantine-scale))}.m_48204f9b{--slider-size: calc(3.75rem * var(--mantine-scale));--thumb-size: calc(var(--slider-size) / 5)}:where([data-mantine-color-scheme=light]) .m_48204f9b{background-color:var(--mantine-color-gray-1)}:where([data-mantine-color-scheme=dark]) .m_48204f9b{background-color:var(--mantine-color-dark-5)}.m_bb9cdbad{position:absolute;inset:calc(.0625rem * var(--mantine-scale));border-radius:var(--slider-size);pointer-events:none}.m_481dd586{width:calc(.125rem * var(--mantine-scale));position:absolute;top:0;bottom:0;left:calc(50% - 1px);transform:rotate(var(--angle))}.m_481dd586:before{content:"";position:absolute;top:calc(var(--thumb-size) / 3);left:calc(.03125rem * var(--mantine-scale));width:calc(.0625rem * var(--mantine-scale));height:calc(var(--thumb-size) / 1.5);transform:translate(-50%,-50%)}:where([data-mantine-color-scheme=light]) .m_481dd586:before{background-color:var(--mantine-color-gray-4)}:where([data-mantine-color-scheme=dark]) .m_481dd586:before{background-color:var(--mantine-color-dark-3)}.m_481dd586[data-label]:after{min-width:calc(1.125rem * var(--mantine-scale));text-align:center;content:attr(data-label);position:absolute;top:calc(-1.5rem * var(--mantine-scale));left:calc(-.4375rem * var(--mantine-scale));transform:rotate(calc(360deg - var(--angle)));font-size:var(--mantine-font-size-xs)}.m_bc02ba3d{position:absolute;inset-block:0;inset-inline-start:calc(50% - 1.5px);inset-inline-end:0;height:100%;width:calc(.1875rem * var(--mantine-scale));outline:none;pointer-events:none}.m_bc02ba3d:before{content:"";position:absolute;right:0;top:0;height:min(var(--thumb-size),calc(var(--slider-size) / 2));width:calc(.1875rem * var(--mantine-scale))}:where([data-mantine-color-scheme=light]) .m_bc02ba3d:before{background-color:var(--mantine-color-gray-7)}:where([data-mantine-color-scheme=dark]) .m_bc02ba3d:before{background-color:var(--mantine-color-dark-1)}.m_bb8e875b{font-size:var(--mantine-font-size-xs)}.m_89ab340[data-resizing]{--app-shell-transition-duration: 0ms !important}.m_89ab340[data-disabled]{--app-shell-header-offset: 0rem !important;--app-shell-navbar-offset: 0rem !important;--app-shell-aside-offset: 0rem !important;--app-shell-footer-offset: 0rem !important}[data-mantine-color-scheme=light] .m_89ab340{--app-shell-border-color: var(--mantine-color-gray-3)}[data-mantine-color-scheme=dark] .m_89ab340{--app-shell-border-color: var(--mantine-color-dark-4)}.m_45252eee,.m_9cdde9a,.m_3b16f56b,.m_8983817,.m_3840c879{transition-duration:var(--app-shell-transition-duration);transition-timing-function:var(--app-shell-transition-timing-function)}.m_45252eee,.m_9cdde9a{position:fixed;display:flex;flex-direction:column;top:var(--app-shell-header-offset, 0rem);height:calc(100dvh - var(--app-shell-header-offset, 0rem) - var(--app-shell-footer-offset, 0rem));background-color:var(--mantine-color-body);transition-property:transform,top,height}:where([data-layout=alt]) .m_45252eee,:where([data-layout=alt]) .m_9cdde9a{top:0rem;height:100dvh}.m_45252eee{inset-inline-start:0;width:var(--app-shell-navbar-width);transition-property:transform,top,height;transform:var(--app-shell-navbar-transform);z-index:var(--app-shell-navbar-z-index)}:where([dir=rtl]) .m_45252eee{transform:var(--app-shell-navbar-transform-rtl)}.m_45252eee:where([data-with-border]){border-inline-end:1px solid var(--app-shell-border-color)}.m_9cdde9a{inset-inline-end:0;width:var(--app-shell-aside-width);transform:var(--app-shell-aside-transform);z-index:var(--app-shell-aside-z-index)}:where([dir=rtl]) .m_9cdde9a{transform:var(--app-shell-aside-transform-rtl)}.m_9cdde9a:where([data-with-border]){border-inline-start:1px solid var(--app-shell-border-color)}:where([data-scroll-locked]) .m_9cdde9a{visibility:var(--app-shell-aside-scroll-locked-visibility)}.m_8983817{padding-inline-start:calc(var(--app-shell-navbar-offset, 0rem) + var(--app-shell-padding));padding-inline-end:calc(var(--app-shell-aside-offset, 0rem) + var(--app-shell-padding));padding-top:calc(var(--app-shell-header-offset, 0rem) + var(--app-shell-padding));padding-bottom:calc(var(--app-shell-footer-offset, 0rem) + var(--app-shell-padding));min-height:100dvh;transition-property:padding}.m_3b16f56b,.m_3840c879{position:fixed;inset-inline:0;transition-property:transform,margin-inline-start,margin-inline-end;background-color:var(--mantine-color-body)}:where([data-layout=alt]) .m_3b16f56b,:where([data-layout=alt]) .m_3840c879{margin-inline-start:var(--app-shell-navbar-offset, 0rem);margin-inline-end:var(--app-shell-aside-offset, 0rem)}.m_3b16f56b{top:0;height:var(--app-shell-header-height);background-color:var(--mantine-color-body);transform:var(--app-shell-header-transform);z-index:var(--app-shell-header-z-index)}.m_3b16f56b:where([data-with-border]){border-bottom:1px solid var(--app-shell-border-color)}.m_3840c879{bottom:0;height:calc(var(--app-shell-footer-height) + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);transform:var(--app-shell-footer-transform);z-index:var(--app-shell-footer-z-index)}.m_3840c879:where([data-with-border]){border-top:1px solid var(--app-shell-border-color)}.m_6dcfc7c7{flex-grow:0}.m_6dcfc7c7:where([data-grow]){flex-grow:1}.m_71ac47fc{--ar-ratio: 1;max-width:100%}.m_71ac47fc>:where(*:not(style)){aspect-ratio:var(--ar-ratio);width:100%}.m_71ac47fc>:where(img,video){object-fit:cover}.m_88b62a41{--combobox-padding: calc(.25rem * var(--mantine-scale));padding:var(--combobox-padding)}.m_88b62a41:has([data-mantine-scrollbar]) .m_985517d8{max-width:calc(100% + var(--combobox-padding))}.m_88b62a41[data-composed]{padding-inline-end:0}.m_88b62a41[data-hidden]{display:none}.m_88b62a41,.m_b2821a6e{--combobox-option-padding-xs: calc(.25rem * var(--mantine-scale)) calc(.5rem * var(--mantine-scale));--combobox-option-padding-sm: calc(.375rem * var(--mantine-scale)) calc(.625rem * var(--mantine-scale));--combobox-option-padding-md: calc(.5rem * var(--mantine-scale)) calc(.75rem * var(--mantine-scale));--combobox-option-padding-lg: calc(.625rem * var(--mantine-scale)) calc(1rem * var(--mantine-scale));--combobox-option-padding-xl: calc(.875rem * var(--mantine-scale)) calc(1.25rem * var(--mantine-scale));--combobox-option-padding: var(--combobox-option-padding-sm)}.m_92253aa5{padding:var(--combobox-option-padding);font-size:var(--combobox-option-fz, var(--mantine-font-size-sm));border-radius:var(--mantine-radius-default);background-color:transparent;color:inherit;cursor:pointer;overflow-wrap:break-word}.m_92253aa5:where([data-combobox-selected]){background-color:var(--mantine-primary-color-filled);color:var(--mantine-color-white)}.m_92253aa5:where([data-combobox-disabled]){cursor:not-allowed;opacity:.35}@media(hover:hover){:where([data-mantine-color-scheme=light]) .m_92253aa5:hover:where(:not([data-combobox-selected],[data-combobox-disabled])){background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_92253aa5:hover:where(:not([data-combobox-selected],[data-combobox-disabled])){background-color:var(--mantine-color-dark-7)}}@media(hover:none){:where([data-mantine-color-scheme=light]) .m_92253aa5:active:where(:not([data-combobox-selected],[data-combobox-disabled])){background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_92253aa5:active:where(:not([data-combobox-selected],[data-combobox-disabled])){background-color:var(--mantine-color-dark-7)}}.m_985517d8{margin-inline:calc(var(--combobox-padding) * -1);margin-top:calc(var(--combobox-padding) * -1);width:calc(100% + var(--combobox-padding) * 2);border-top-width:0;border-inline-width:0;border-end-start-radius:0;border-end-end-radius:0;margin-bottom:var(--combobox-padding);position:relative}:where([data-mantine-color-scheme=light]) .m_985517d8,:where([data-mantine-color-scheme=light]) .m_985517d8:focus{border-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_985517d8,:where([data-mantine-color-scheme=dark]) .m_985517d8:focus{border-color:var(--mantine-color-dark-4)}:where([data-mantine-color-scheme=light]) .m_985517d8{background-color:var(--mantine-color-white)}:where([data-mantine-color-scheme=dark]) .m_985517d8{background-color:var(--mantine-color-dark-7)}.m_2530cd1d{font-size:var(--combobox-option-fz, var(--mantine-font-size-sm));text-align:center;padding:var(--combobox-option-padding);color:var(--mantine-color-dimmed)}.m_858f94bd,.m_82b967cb{font-size:var(--combobox-option-fz, var(--mantine-font-size-sm));border:0 solid transparent;margin-inline:calc(var(--combobox-padding) * -1);padding:var(--combobox-option-padding)}:where([data-mantine-color-scheme=light]) .m_858f94bd,:where([data-mantine-color-scheme=light]) .m_82b967cb{border-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_858f94bd,:where([data-mantine-color-scheme=dark]) .m_82b967cb{border-color:var(--mantine-color-dark-4)}.m_82b967cb{border-top-width:calc(.0625rem * var(--mantine-scale));margin-top:var(--combobox-padding);margin-bottom:calc(var(--combobox-padding) * -1)}.m_858f94bd{border-bottom-width:calc(.0625rem * var(--mantine-scale));margin-bottom:var(--combobox-padding);margin-top:calc(var(--combobox-padding) * -1)}.m_254f3e4f:has(.m_2bb2e9e5:only-child){display:none}.m_2bb2e9e5{color:var(--mantine-color-dimmed);font-size:calc(var(--combobox-option-fz, var(--mantine-font-size-sm)) * .85);padding:var(--combobox-option-padding);font-weight:500;position:relative;display:flex;align-items:center}.m_2bb2e9e5:after{content:"";flex:1;inset-inline:0;height:calc(.0625rem * var(--mantine-scale));margin-inline-start:var(--mantine-spacing-xs)}:where([data-mantine-color-scheme=light]) .m_2bb2e9e5:after{background-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_2bb2e9e5:after{background-color:var(--mantine-color-dark-4)}.m_2bb2e9e5:only-child{display:none}.m_2943220b{--combobox-chevron-size-xs: calc(.875rem * var(--mantine-scale));--combobox-chevron-size-sm: calc(1.125rem * var(--mantine-scale));--combobox-chevron-size-md: calc(1.25rem * var(--mantine-scale));--combobox-chevron-size-lg: calc(1.5rem * var(--mantine-scale));--combobox-chevron-size-xl: calc(1.75rem * var(--mantine-scale));--combobox-chevron-size: var(--combobox-chevron-size-sm)}:where([data-mantine-color-scheme=light]) .m_2943220b{--_combobox-chevron-color: var(--combobox-chevron-color, var(--mantine-color-gray-6))}:where([data-mantine-color-scheme=dark]) .m_2943220b{--_combobox-chevron-color: var(--combobox-chevron-color, var(--mantine-color-dark-3))}.m_2943220b{width:var(--combobox-chevron-size);height:var(--combobox-chevron-size);color:var(--_combobox-chevron-color)}.m_2943220b:where([data-error]){color:var(--combobox-chevron-color, var(--mantine-color-error))}.m_390b5f4{display:flex;align-items:center;gap:calc(.5rem * var(--mantine-scale))}.m_390b5f4:where([data-reverse]){justify-content:space-between}.m_8ee53fc2{opacity:.4;width:.8em;min-width:.8em;height:.8em}:where([data-combobox-selected]) .m_8ee53fc2{opacity:1}.m_5f75b09e{--label-lh-xs: calc(1rem * var(--mantine-scale));--label-lh-sm: calc(1.25rem * var(--mantine-scale));--label-lh-md: calc(1.5rem * var(--mantine-scale));--label-lh-lg: calc(1.875rem * var(--mantine-scale));--label-lh-xl: calc(2.25rem * var(--mantine-scale));--label-lh: var(--label-lh-sm)}.m_5f75b09e[data-label-position=left]{--label-order: 1;--label-offset-end: var(--mantine-spacing-sm);--label-offset-start: 0}.m_5f75b09e[data-label-position=right]{--label-order: 2;--label-offset-end: 0;--label-offset-start: var(--mantine-spacing-sm)}.m_5f6e695e{-webkit-tap-highlight-color:transparent;display:flex}.m_d3ea56bb{--label-cursor: var(--mantine-cursor-type);-webkit-tap-highlight-color:transparent;display:inline-flex;flex-direction:column;font-size:var(--label-fz, var(--mantine-font-size-sm));line-height:var(--label-lh);cursor:var(--label-cursor);order:var(--label-order)}fieldset:disabled .m_d3ea56bb,.m_d3ea56bb[data-disabled]{--label-cursor: not-allowed}.m_8ee546b8{cursor:var(--label-cursor);color:inherit;padding-inline-start:var(--label-offset-start);padding-inline-end:var(--label-offset-end)}fieldset:disabled .m_8ee546b8,.m_8ee546b8:where([data-disabled]){color:var(--mantine-color-disabled-color)}.m_328f68c0,.m_8e8a99cc{margin-top:calc(var(--mantine-spacing-xs) / 2);padding-inline-start:var(--label-offset-start);padding-inline-end:var(--label-offset-end)}.m_26775b0a{--card-radius: var(--mantine-radius-default);display:block;width:100%;border-radius:var(--card-radius);cursor:pointer}.m_26775b0a :where(*){cursor:inherit}.m_26775b0a:where([data-with-border]){border:calc(.0625rem * var(--mantine-scale)) solid transparent}:where([data-mantine-color-scheme=light]) .m_26775b0a:where([data-with-border]){border-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_26775b0a:where([data-with-border]){border-color:var(--mantine-color-dark-4)}.m_5e5256ee{--checkbox-size-xs: calc(1rem * var(--mantine-scale));--checkbox-size-sm: calc(1.25rem * var(--mantine-scale));--checkbox-size-md: calc(1.5rem * var(--mantine-scale));--checkbox-size-lg: calc(1.875rem * var(--mantine-scale));--checkbox-size-xl: calc(2.25rem * var(--mantine-scale));--checkbox-size: var(--checkbox-size-sm);--checkbox-color: var(--mantine-primary-color-filled)}.m_5e5256ee:where([data-variant=filled]){--checkbox-icon-color: var(--mantine-color-white)}.m_5e5256ee:where([data-variant=outline]){--checkbox-icon-color: var(--checkbox-color)}.m_5e5256ee{position:relative;border:calc(.0625rem * var(--mantine-scale)) solid transparent;width:var(--checkbox-size);min-width:var(--checkbox-size);height:var(--checkbox-size);min-height:var(--checkbox-size);border-radius:var(--checkbox-radius, var(--mantine-radius-default));transition:border-color .1s ease,background-color .1s ease;cursor:var(--mantine-cursor-type);-webkit-tap-highlight-color:transparent;display:flex;align-items:center;justify-content:center}:where([data-mantine-color-scheme=light]) .m_5e5256ee{background-color:var(--mantine-color-white);border-color:var(--mantine-color-gray-4)}:where([data-mantine-color-scheme=dark]) .m_5e5256ee{background-color:var(--mantine-color-dark-6);border-color:var(--mantine-color-dark-4)}.m_5e5256ee[data-indeterminate],.m_5e5256ee[data-checked]{background-color:var(--checkbox-color);border-color:var(--checkbox-color)}.m_5e5256ee[data-indeterminate]>.m_1b1c543a,.m_5e5256ee[data-checked]>.m_1b1c543a{opacity:1;transform:none;color:var(--checkbox-icon-color)}.m_5e5256ee[data-disabled]{cursor:not-allowed;border-color:var(--mantine-color-disabled-border);background-color:var(--mantine-color-disabled)}[data-mantine-color-scheme=light] .m_5e5256ee[data-disabled][data-checked]>.m_1b1c543a{color:var(--mantine-color-gray-5)}[data-mantine-color-scheme=dark] .m_5e5256ee[data-disabled][data-checked]>.m_1b1c543a{color:var(--mantine-color-dark-3)}.m_76e20374[data-indeterminate]:not([data-disabled]),.m_76e20374[data-checked]:not([data-disabled]){background-color:transparent;border-color:var(--checkbox-color)}.m_76e20374[data-indeterminate]:not([data-disabled])>.m_1b1c543a,.m_76e20374[data-checked]:not([data-disabled])>.m_1b1c543a{color:var(--checkbox-icon-color);opacity:1;transform:none}.m_1b1c543a{display:block;width:60%;color:transparent;pointer-events:none;transform:translateY(calc(.3125rem * var(--mantine-scale))) scale(.5);opacity:1;transition:transform .1s ease,opacity .1s ease}.m_bf2d988c{--checkbox-size-xs: calc(1rem * var(--mantine-scale));--checkbox-size-sm: calc(1.25rem * var(--mantine-scale));--checkbox-size-md: calc(1.5rem * var(--mantine-scale));--checkbox-size-lg: calc(1.875rem * var(--mantine-scale));--checkbox-size-xl: calc(2.25rem * var(--mantine-scale));--checkbox-size: var(--checkbox-size-sm);--checkbox-color: var(--mantine-primary-color-filled)}.m_bf2d988c:where([data-variant=filled]){--checkbox-icon-color: var(--mantine-color-white)}.m_bf2d988c:where([data-variant=outline]){--checkbox-icon-color: var(--checkbox-color)}.m_26062bec{position:relative;width:var(--checkbox-size);height:var(--checkbox-size);order:1}.m_26062bec:where([data-label-position=left]){order:2}.m_26063560{appearance:none;border:calc(.0625rem * var(--mantine-scale)) solid transparent;width:var(--checkbox-size);height:var(--checkbox-size);border-radius:var(--checkbox-radius, var(--mantine-radius-default));padding:0;display:block;margin:0;transition:border-color .1s ease,background-color .1s ease;cursor:var(--mantine-cursor-type);-webkit-tap-highlight-color:transparent}:where([data-mantine-color-scheme=light]) .m_26063560{background-color:var(--mantine-color-white);border-color:var(--mantine-color-gray-4)}:where([data-mantine-color-scheme=dark]) .m_26063560{background-color:var(--mantine-color-dark-6);border-color:var(--mantine-color-dark-4)}.m_26063560:where([data-error]){border-color:var(--mantine-color-error)}.m_26063560[data-indeterminate],.m_26063560:checked{background-color:var(--checkbox-color);border-color:var(--checkbox-color)}.m_26063560[data-indeterminate]+.m_bf295423,.m_26063560:checked+.m_bf295423{opacity:1;transform:none}.m_26063560:disabled{cursor:not-allowed;border-color:var(--mantine-color-disabled-border);background-color:var(--mantine-color-disabled)}.m_26063560:disabled+.m_bf295423{color:var(--mantine-color-disabled-color)}.m_215c4542+.m_bf295423{color:var(--checkbox-color)}.m_215c4542[data-indeterminate]:not(:disabled),.m_215c4542:checked:not(:disabled){background-color:transparent;border-color:var(--checkbox-color)}.m_215c4542[data-indeterminate]:not(:disabled)+.m_bf295423,.m_215c4542:checked:not(:disabled)+.m_bf295423{color:var(--checkbox-icon-color);opacity:1;transform:none}.m_bf295423{position:absolute;inset:0;width:60%;margin:auto;color:var(--checkbox-icon-color);pointer-events:none;transform:translateY(calc(.3125rem * var(--mantine-scale))) scale(.5);opacity:0;transition:transform .1s ease,opacity .1s ease}.m_11def92b{--ag-spacing: var(--mantine-spacing-sm);--ag-offset: calc(var(--ag-spacing) * -1);display:flex;padding-inline-start:var(--ag-spacing)}.m_f85678b6{--avatar-size-xs: calc(1rem * var(--mantine-scale));--avatar-size-sm: calc(1.625rem * var(--mantine-scale));--avatar-size-md: calc(2.375rem * var(--mantine-scale));--avatar-size-lg: calc(3.5rem * var(--mantine-scale));--avatar-size-xl: calc(5.25rem * var(--mantine-scale));--avatar-size: var(--avatar-size-md);--avatar-radius: calc(62.5rem * var(--mantine-scale));--avatar-bg: var(--mantine-color-gray-light);--avatar-bd: calc(.0625rem * var(--mantine-scale)) solid transparent;--avatar-color: var(--mantine-color-gray-light-color);--avatar-placeholder-fz: calc(var(--avatar-size) / 2.5);-webkit-tap-highlight-color:transparent;position:relative;display:block;user-select:none;overflow:hidden;border-radius:var(--avatar-radius);text-decoration:none;padding:0;width:var(--avatar-size);height:var(--avatar-size);min-width:var(--avatar-size)}.m_f85678b6:where([data-within-group]){margin-inline-start:var(--ag-offset);border:2px solid var(--mantine-color-body);background:var(--mantine-color-body)}.m_11f8ac07{object-fit:cover;width:100%;height:100%;display:block}.m_104cd71f{font-weight:700;display:flex;align-items:center;justify-content:center;width:100%;height:100%;user-select:none;border-radius:var(--avatar-radius);font-size:var(--avatar-placeholder-fz);background:var(--avatar-bg);border:var(--avatar-bd);color:var(--avatar-color)}.m_104cd71f>[data-avatar-placeholder-icon]{width:70%;height:70%}.m_2ce0de02{background-size:cover;background-position:center;display:block;width:100%;border:0;text-decoration:none;border-radius:var(--bi-radius, 0)}.m_347db0ec{--badge-height-xs: calc(1rem * var(--mantine-scale));--badge-height-sm: calc(1.125rem * var(--mantine-scale));--badge-height-md: calc(1.25rem * var(--mantine-scale));--badge-height-lg: calc(1.625rem * var(--mantine-scale));--badge-height-xl: calc(2rem * var(--mantine-scale));--badge-fz-xs: calc(.5625rem * var(--mantine-scale));--badge-fz-sm: calc(.625rem * var(--mantine-scale));--badge-fz-md: calc(.6875rem * var(--mantine-scale));--badge-fz-lg: calc(.8125rem * var(--mantine-scale));--badge-fz-xl: calc(1rem * var(--mantine-scale));--badge-padding-x-xs: calc(.375rem * var(--mantine-scale));--badge-padding-x-sm: calc(.5rem * var(--mantine-scale));--badge-padding-x-md: calc(.625rem * var(--mantine-scale));--badge-padding-x-lg: calc(.75rem * var(--mantine-scale));--badge-padding-x-xl: calc(1rem * var(--mantine-scale));--badge-height: var(--badge-height-md);--badge-fz: var(--badge-fz-md);--badge-padding-x: var(--badge-padding-x-md);--badge-radius: calc(62.5rem * var(--mantine-scale));--badge-lh: calc(var(--badge-height) - calc(.125rem * var(--mantine-scale)));--badge-color: var(--mantine-color-white);--badge-bg: var(--mantine-primary-color-filled);--badge-border-width: calc(.0625rem * var(--mantine-scale));--badge-bd: var(--badge-border-width) solid transparent;-webkit-tap-highlight-color:transparent;font-size:var(--badge-fz);border-radius:var(--badge-radius);height:var(--badge-height);line-height:var(--badge-lh);text-decoration:none;padding:0 var(--badge-padding-x);display:inline-grid;align-items:center;justify-content:center;width:fit-content;text-transform:uppercase;font-weight:700;letter-spacing:calc(.015625rem * var(--mantine-scale));cursor:default;text-overflow:ellipsis;overflow:hidden;color:var(--badge-color);background:var(--badge-bg);border:var(--badge-bd)}.m_347db0ec:where([data-with-left-section],[data-variant=dot]){grid-template-columns:auto 1fr}.m_347db0ec:where([data-with-right-section]){grid-template-columns:1fr auto}.m_347db0ec:where([data-with-left-section][data-with-right-section],[data-variant=dot][data-with-right-section]){grid-template-columns:auto 1fr auto}.m_347db0ec:where([data-block]){display:flex;width:100%}.m_347db0ec:where([data-circle]){padding-inline:calc(.125rem * var(--mantine-scale));display:flex;width:var(--badge-height)}.m_fbd81e3d{--badge-dot-size: calc(var(--badge-height) / 3.4)}:where([data-mantine-color-scheme=light]) .m_fbd81e3d{background-color:var(--mantine-color-white);border-color:var(--mantine-color-gray-4);color:var(--mantine-color-black)}:where([data-mantine-color-scheme=dark]) .m_fbd81e3d{background-color:var(--mantine-color-dark-5);border-color:var(--mantine-color-dark-5);color:var(--mantine-color-white)}.m_fbd81e3d:before{content:"";display:block;width:var(--badge-dot-size);height:var(--badge-dot-size);border-radius:var(--badge-dot-size);background-color:var(--badge-dot-color);margin-inline-end:var(--badge-dot-size)}.m_5add502a{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center;cursor:inherit}.m_91fdda9b{--badge-section-margin: calc(var(--mantine-spacing-xs) / 2);display:inline-flex;justify-content:center;align-items:center;max-height:calc(var(--badge-height) - var(--badge-border-width) * 2)}.m_91fdda9b:where([data-position=left]){margin-inline-end:var(--badge-section-margin)}.m_91fdda9b:where([data-position=right]){margin-inline-start:var(--badge-section-margin)}.m_ddec01c0{--blockquote-border: 3px solid var(--bq-bd);position:relative;margin:0;border-inline-start:var(--blockquote-border);border-start-end-radius:var(--bq-radius);border-end-end-radius:var(--bq-radius);padding:var(--mantine-spacing-xl) calc(2.375rem * var(--mantine-scale))}:where([data-mantine-color-scheme=light]) .m_ddec01c0{background-color:var(--bq-bg-light)}:where([data-mantine-color-scheme=dark]) .m_ddec01c0{background-color:var(--bq-bg-dark)}.m_dde7bd57{--blockquote-icon-offset: calc(var(--bq-icon-size) / -2);position:absolute;color:var(--bq-bd);background-color:var(--mantine-color-body);display:flex;align-items:center;justify-content:center;top:var(--blockquote-icon-offset);inset-inline-start:var(--blockquote-icon-offset);width:var(--bq-icon-size);height:var(--bq-icon-size);border-radius:var(--bq-icon-size)}.m_dde51a35{display:block;margin-top:var(--mantine-spacing-md);opacity:.6;font-size:85%}.m_8b3717df{display:flex;align-items:center;flex-wrap:wrap}.m_f678d540{line-height:1;white-space:nowrap;-webkit-tap-highlight-color:transparent}.m_3b8f2208{margin-inline:var(--bc-separator-margin, var(--mantine-spacing-xs));line-height:1;display:flex;align-items:center;justify-content:center}:where([data-mantine-color-scheme=light]) .m_3b8f2208{color:var(--mantine-color-gray-7)}:where([data-mantine-color-scheme=dark]) .m_3b8f2208{color:var(--mantine-color-dark-2)}.m_fea6bf1a{--burger-size-xs: calc(.75rem * var(--mantine-scale));--burger-size-sm: calc(1.125rem * var(--mantine-scale));--burger-size-md: calc(1.5rem * var(--mantine-scale));--burger-size-lg: calc(2.125rem * var(--mantine-scale));--burger-size-xl: calc(2.625rem * var(--mantine-scale));--burger-size: var(--burger-size-md);--burger-line-size: calc(var(--burger-size) / 12);width:calc(var(--burger-size) + var(--mantine-spacing-xs));height:calc(var(--burger-size) + var(--mantine-spacing-xs));padding:calc(var(--mantine-spacing-xs) / 2);cursor:pointer}:where([data-mantine-color-scheme=light]) .m_fea6bf1a{--burger-color: var(--mantine-color-black)}:where([data-mantine-color-scheme=dark]) .m_fea6bf1a{--burger-color: var(--mantine-color-white)}.m_d4fb9cad{position:relative;user-select:none}.m_d4fb9cad,.m_d4fb9cad:before,.m_d4fb9cad:after{display:block;width:var(--burger-size);height:var(--burger-line-size);background-color:var(--burger-color);outline:calc(.0625rem * var(--mantine-scale)) solid transparent;transition-property:background-color,transform;transition-duration:var(--burger-transition-duration, .3s);transition-timing-function:var(--burger-transition-timing-function, ease)}.m_d4fb9cad:before,.m_d4fb9cad:after{position:absolute;content:"";inset-inline-start:0}.m_d4fb9cad:before{top:calc(var(--burger-size) / -3)}.m_d4fb9cad:after{top:calc(var(--burger-size) / 3)}.m_d4fb9cad[data-opened]{background-color:transparent}.m_d4fb9cad[data-opened]:before{transform:translateY(calc(var(--burger-size) / 3)) rotate(45deg)}.m_d4fb9cad[data-opened]:after{transform:translateY(calc(var(--burger-size) / -3)) rotate(-45deg)}.m_77c9d27d{--button-height-xs: calc(1.875rem * var(--mantine-scale));--button-height-sm: calc(2.25rem * var(--mantine-scale));--button-height-md: calc(2.625rem * var(--mantine-scale));--button-height-lg: calc(3.125rem * var(--mantine-scale));--button-height-xl: calc(3.75rem * var(--mantine-scale));--button-height-compact-xs: calc(1.375rem * var(--mantine-scale));--button-height-compact-sm: calc(1.625rem * var(--mantine-scale));--button-height-compact-md: calc(1.875rem * var(--mantine-scale));--button-height-compact-lg: calc(2.125rem * var(--mantine-scale));--button-height-compact-xl: calc(2.5rem * var(--mantine-scale));--button-padding-x-xs: calc(.875rem * var(--mantine-scale));--button-padding-x-sm: calc(1.125rem * var(--mantine-scale));--button-padding-x-md: calc(1.375rem * var(--mantine-scale));--button-padding-x-lg: calc(1.625rem * var(--mantine-scale));--button-padding-x-xl: calc(2rem * var(--mantine-scale));--button-padding-x-compact-xs: calc(.4375rem * var(--mantine-scale));--button-padding-x-compact-sm: calc(.5rem * var(--mantine-scale));--button-padding-x-compact-md: calc(.625rem * var(--mantine-scale));--button-padding-x-compact-lg: calc(.75rem * var(--mantine-scale));--button-padding-x-compact-xl: calc(.875rem * var(--mantine-scale));--button-height: var(--button-height-sm);--button-padding-x: var(--button-padding-x-sm);--button-color: var(--mantine-color-white);user-select:none;font-weight:600;position:relative;line-height:1;text-align:center;overflow:hidden;width:auto;cursor:pointer;display:inline-block;border-radius:var(--button-radius, var(--mantine-radius-default));font-size:var(--button-fz, var(--mantine-font-size-sm));background:var(--button-bg, var(--mantine-primary-color-filled));border:var(--button-bd, calc(.0625rem * var(--mantine-scale)) solid transparent);color:var(--button-color, var(--mantine-color-white));height:var(--button-height, var(--button-height-sm));padding-inline:var(--button-padding-x, var(--button-padding-x-sm));vertical-align:middle}.m_77c9d27d:where([data-block]){display:block;width:100%}.m_77c9d27d:where([data-with-left-section]){padding-inline-start:calc(var(--button-padding-x) / 1.5)}.m_77c9d27d:where([data-with-right-section]){padding-inline-end:calc(var(--button-padding-x) / 1.5)}.m_77c9d27d:where(:disabled:not([data-loading]),[data-disabled]:not([data-loading])){cursor:not-allowed;border:calc(.0625rem * var(--mantine-scale)) solid transparent;transform:none;color:var(--mantine-color-disabled-color);background:var(--mantine-color-disabled)}.m_77c9d27d:before{content:"";pointer-events:none;position:absolute;inset:calc(-.0625rem * var(--mantine-scale));border-radius:var(--button-radius, var(--mantine-radius-default));transform:translateY(-100%);opacity:0;filter:blur(12px);transition:transform .15s ease,opacity .1s ease}:where([data-mantine-color-scheme=light]) .m_77c9d27d:before{background-color:#ffffff26}:where([data-mantine-color-scheme=dark]) .m_77c9d27d:before{background-color:#00000026}.m_77c9d27d:where([data-loading]){cursor:not-allowed;transform:none}.m_77c9d27d:where([data-loading]):before{transform:translateY(0);opacity:1}.m_77c9d27d:where([data-loading]) .m_80f1301b{opacity:0;transform:translateY(100%)}@media(hover:hover){.m_77c9d27d:hover:where(:not([data-loading],:disabled,[data-disabled])){background-color:var(--button-hover, var(--mantine-primary-color-filled-hover));color:var(--button-hover-color, var(--button-color))}}@media(hover:none){.m_77c9d27d:active:where(:not([data-loading],:disabled,[data-disabled])){background-color:var(--button-hover, var(--mantine-primary-color-filled-hover));color:var(--button-hover-color, var(--button-color))}}.m_80f1301b{display:flex;align-items:center;justify-content:var(--button-justify, center);height:100%;overflow:visible;transition:transform .15s ease,opacity .1s ease}.m_811560b9{white-space:nowrap;height:100%;overflow:hidden;display:flex;align-items:center;opacity:1}.m_811560b9:where([data-loading]){opacity:.2}.m_a74036a{display:flex;align-items:center}.m_a74036a:where([data-position=left]){margin-inline-end:var(--mantine-spacing-xs)}.m_a74036a:where([data-position=right]){margin-inline-start:var(--mantine-spacing-xs)}.m_a25b86ee{position:absolute;left:50%;top:50%}.m_80d6d844{--button-border-width: calc(.0625rem * var(--mantine-scale));display:flex}.m_80d6d844 :where(.m_77c9d27d):focus{position:relative;z-index:1}.m_80d6d844[data-orientation=horizontal]{flex-direction:row}.m_80d6d844[data-orientation=horizontal] .m_77c9d27d:not(:only-child):first-child,.m_80d6d844[data-orientation=horizontal] .m_70be2a01:not(:only-child):first-child{border-end-end-radius:0;border-start-end-radius:0;border-inline-end-width:calc(var(--button-border-width) / 2)}.m_80d6d844[data-orientation=horizontal] .m_77c9d27d:not(:only-child):last-child,.m_80d6d844[data-orientation=horizontal] .m_70be2a01:not(:only-child):last-child{border-end-start-radius:0;border-start-start-radius:0;border-inline-start-width:calc(var(--button-border-width) / 2)}.m_80d6d844[data-orientation=horizontal] .m_77c9d27d:not(:only-child):not(:first-child):not(:last-child),.m_80d6d844[data-orientation=horizontal] .m_70be2a01:not(:only-child):not(:first-child):not(:last-child){border-radius:0;border-inline-width:calc(var(--button-border-width) / 2)}.m_80d6d844[data-orientation=vertical]{flex-direction:column}.m_80d6d844[data-orientation=vertical] .m_77c9d27d:not(:only-child):first-child,.m_80d6d844[data-orientation=vertical] .m_70be2a01:not(:only-child):first-child{border-end-start-radius:0;border-end-end-radius:0;border-bottom-width:calc(var(--button-border-width) / 2)}.m_80d6d844[data-orientation=vertical] .m_77c9d27d:not(:only-child):last-child,.m_80d6d844[data-orientation=vertical] .m_70be2a01:not(:only-child):last-child{border-start-start-radius:0;border-start-end-radius:0;border-top-width:calc(var(--button-border-width) / 2)}.m_80d6d844[data-orientation=vertical] .m_77c9d27d:not(:only-child):not(:first-child):not(:last-child),.m_80d6d844[data-orientation=vertical] .m_70be2a01:not(:only-child):not(:first-child):not(:last-child){border-radius:0;border-bottom-width:calc(var(--button-border-width) / 2);border-top-width:calc(var(--button-border-width) / 2)}.m_70be2a01{--section-height-xs: calc(1.875rem * var(--mantine-scale));--section-height-sm: calc(2.25rem * var(--mantine-scale));--section-height-md: calc(2.625rem * var(--mantine-scale));--section-height-lg: calc(3.125rem * var(--mantine-scale));--section-height-xl: calc(3.75rem * var(--mantine-scale));--section-height-compact-xs: calc(1.375rem * var(--mantine-scale));--section-height-compact-sm: calc(1.625rem * var(--mantine-scale));--section-height-compact-md: calc(1.875rem * var(--mantine-scale));--section-height-compact-lg: calc(2.125rem * var(--mantine-scale));--section-height-compact-xl: calc(2.5rem * var(--mantine-scale));--section-padding-x-xs: calc(.875rem * var(--mantine-scale));--section-padding-x-sm: calc(1.125rem * var(--mantine-scale));--section-padding-x-md: calc(1.375rem * var(--mantine-scale));--section-padding-x-lg: calc(1.625rem * var(--mantine-scale));--section-padding-x-xl: calc(2rem * var(--mantine-scale));--section-padding-x-compact-xs: calc(.4375rem * var(--mantine-scale));--section-padding-x-compact-sm: calc(.5rem * var(--mantine-scale));--section-padding-x-compact-md: calc(.625rem * var(--mantine-scale));--section-padding-x-compact-lg: calc(.75rem * var(--mantine-scale));--section-padding-x-compact-xl: calc(.875rem * var(--mantine-scale));--section-height: var(--section-height-sm);--section-padding-x: var(--section-padding-x-sm);--section-color: var(--mantine-color-white);font-weight:600;width:auto;border-radius:var(--section-radius, var(--mantine-radius-default));font-size:var(--section-fz, var(--mantine-font-size-sm));background:var(--section-bg, var(--mantine-primary-color-filled));border:var(--section-bd, calc(.0625rem * var(--mantine-scale)) solid transparent);color:var(--section-color, var(--mantine-color-white));height:var(--section-height, var(--section-height-sm));padding-inline:var(--section-padding-x, var(--section-padding-x-sm));vertical-align:middle;line-height:1;display:inline-flex;align-items:center;justify-content:center}.m_e615b15f{--card-padding: var(--mantine-spacing-md);position:relative;overflow:hidden;display:flex;flex-direction:column;padding:var(--card-padding);color:var(--mantine-color-text)}:where([data-mantine-color-scheme=light]) .m_e615b15f{background-color:var(--mantine-color-white)}:where([data-mantine-color-scheme=dark]) .m_e615b15f{background-color:var(--mantine-color-dark-6)}.m_599a2148{display:block;margin-inline:calc(var(--card-padding) * -1)}.m_599a2148:where(:first-child){margin-top:calc(var(--card-padding) * -1);border-top:none!important}.m_599a2148:where(:last-child){margin-bottom:calc(var(--card-padding) * -1);border-bottom:none!important}.m_599a2148:where([data-inherit-padding]){padding-inline:var(--card-padding)}.m_599a2148:where([data-with-border]){border-top:calc(.0625rem * var(--mantine-scale)) solid;border-bottom:calc(.0625rem * var(--mantine-scale)) solid}:where([data-mantine-color-scheme=light]) .m_599a2148{border-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_599a2148{border-color:var(--mantine-color-dark-4)}.m_599a2148+.m_599a2148{border-top:none!important}.m_4451eb3a{display:flex;align-items:center;justify-content:center}.m_4451eb3a:where([data-inline]){display:inline-flex}.m_f59ffda3{--chip-size-xs: calc(1.4375rem * var(--mantine-scale));--chip-size-sm: calc(1.75rem * var(--mantine-scale));--chip-size-md: calc(2rem * var(--mantine-scale));--chip-size-lg: calc(2.25rem * var(--mantine-scale));--chip-size-xl: calc(2.5rem * var(--mantine-scale));--chip-icon-size-xs: calc(.5625rem * var(--mantine-scale));--chip-icon-size-sm: calc(.75rem * var(--mantine-scale));--chip-icon-size-md: calc(.875rem * var(--mantine-scale));--chip-icon-size-lg: calc(1rem * var(--mantine-scale));--chip-icon-size-xl: calc(1.125rem * var(--mantine-scale));--chip-padding-xs: calc(1rem * var(--mantine-scale));--chip-padding-sm: calc(1.25rem * var(--mantine-scale));--chip-padding-md: calc(1.5rem * var(--mantine-scale));--chip-padding-lg: calc(1.75rem * var(--mantine-scale));--chip-padding-xl: calc(2rem * var(--mantine-scale));--chip-checked-padding-xs: calc(.5125rem * var(--mantine-scale));--chip-checked-padding-sm: calc(.625rem * var(--mantine-scale));--chip-checked-padding-md: calc(.73125rem * var(--mantine-scale));--chip-checked-padding-lg: calc(.84375rem * var(--mantine-scale));--chip-checked-padding-xl: calc(.98125rem * var(--mantine-scale));--chip-spacing-xs: calc(.625rem * var(--mantine-scale));--chip-spacing-sm: calc(.75rem * var(--mantine-scale));--chip-spacing-md: calc(1rem * var(--mantine-scale));--chip-spacing-lg: calc(1.25rem * var(--mantine-scale));--chip-spacing-xl: calc(1.375rem * var(--mantine-scale));--chip-size: var(--chip-size-sm);--chip-icon-size: var(--chip-icon-size-sm);--chip-padding: var(--chip-padding-sm);--chip-spacing: var(--chip-spacing-sm);--chip-checked-padding: var(--chip-checked-padding-sm);--chip-bg: var(--mantine-primary-color-filled);--chip-hover: var(--mantine-primary-color-filled-hover);--chip-color: var(--mantine-color-white);--chip-bd: calc(.0625rem * var(--mantine-scale)) solid transparent}.m_be049a53{display:inline-flex;align-items:center;user-select:none;border-radius:var(--chip-radius, 1000rem);height:var(--chip-size);font-size:var(--chip-fz, var(--mantine-font-size-sm));line-height:calc(var(--chip-size) - calc(.125rem * var(--mantine-scale)));padding-inline:var(--chip-padding);cursor:pointer;white-space:nowrap;-webkit-tap-highlight-color:transparent;border:calc(.0625rem * var(--mantine-scale)) solid transparent;color:var(--mantine-color-text)}.m_be049a53:where([data-checked]){padding:var(--chip-checked-padding)}.m_be049a53:where([data-disabled]){cursor:not-allowed;background-color:var(--mantine-color-disabled);color:var(--mantine-color-disabled-color)}:where([data-mantine-color-scheme=light]) .m_3904c1af:not([data-disabled]){background-color:var(--mantine-color-white);border:1px solid var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_3904c1af:not([data-disabled]){background-color:var(--mantine-color-dark-6);border:1px solid var(--mantine-color-dark-4)}@media(hover:hover){:where([data-mantine-color-scheme=light]) .m_3904c1af:not([data-disabled]):hover{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_3904c1af:not([data-disabled]):hover{background-color:var(--mantine-color-dark-5)}}@media(hover:none){:where([data-mantine-color-scheme=light]) .m_3904c1af:not([data-disabled]):active{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_3904c1af:not([data-disabled]):active{background-color:var(--mantine-color-dark-5)}}.m_3904c1af:not([data-disabled]):where([data-checked]){--chip-icon-color: var(--chip-color);border:var(--chip-bd)}@media(hover:hover){.m_3904c1af:not([data-disabled]):where([data-checked]):hover{background-color:var(--chip-hover)}}@media(hover:none){.m_3904c1af:not([data-disabled]):where([data-checked]):active{background-color:var(--chip-hover)}}.m_fa109255:not([data-disabled]),.m_f7e165c3:not([data-disabled]){border:calc(.0625rem * var(--mantine-scale)) solid transparent;color:var(--mantine-color-text)}:where([data-mantine-color-scheme=light]) .m_fa109255:not([data-disabled]),:where([data-mantine-color-scheme=light]) .m_f7e165c3:not([data-disabled]){background-color:var(--mantine-color-gray-1)}:where([data-mantine-color-scheme=dark]) .m_fa109255:not([data-disabled]),:where([data-mantine-color-scheme=dark]) .m_f7e165c3:not([data-disabled]){background-color:var(--mantine-color-dark-5)}@media(hover:hover){:where([data-mantine-color-scheme=light]) .m_fa109255:not([data-disabled]):hover,:where([data-mantine-color-scheme=light]) .m_f7e165c3:not([data-disabled]):hover{background-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_fa109255:not([data-disabled]):hover,:where([data-mantine-color-scheme=dark]) .m_f7e165c3:not([data-disabled]):hover{background-color:var(--mantine-color-dark-4)}}@media(hover:none){:where([data-mantine-color-scheme=light]) .m_fa109255:not([data-disabled]):active,:where([data-mantine-color-scheme=light]) .m_f7e165c3:not([data-disabled]):active{background-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_fa109255:not([data-disabled]):active,:where([data-mantine-color-scheme=dark]) .m_f7e165c3:not([data-disabled]):active{background-color:var(--mantine-color-dark-4)}}.m_fa109255:not([data-disabled]):where([data-checked]),.m_f7e165c3:not([data-disabled]):where([data-checked]){--chip-icon-color: var(--chip-color);color:var(--chip-color);background-color:var(--chip-bg)}@media(hover:hover){.m_fa109255:not([data-disabled]):where([data-checked]):hover,.m_f7e165c3:not([data-disabled]):where([data-checked]):hover{background-color:var(--chip-hover)}}@media(hover:none){.m_fa109255:not([data-disabled]):where([data-checked]):active,.m_f7e165c3:not([data-disabled]):where([data-checked]):active{background-color:var(--chip-hover)}}.m_9ac86df9{width:calc(var(--chip-icon-size) + (var(--chip-spacing) / 1.5));max-width:calc(var(--chip-icon-size) + (var(--chip-spacing) / 1.5));height:var(--chip-icon-size);display:flex;align-items:center;overflow:hidden}.m_d6d72580{width:var(--chip-icon-size);height:var(--chip-icon-size);display:block;color:var(--chip-icon-color, inherit)}.m_bde07329{width:0;height:0;padding:0;opacity:0;margin:0}.m_bde07329:focus-visible+.m_be049a53{outline:2px solid var(--mantine-primary-color-filled);outline-offset:calc(.125rem * var(--mantine-scale))}.m_b183c0a2{font-family:var(--mantine-font-family-monospace);line-height:var(--mantine-line-height);padding:2px calc(var(--mantine-spacing-xs) / 2);border-radius:var(--mantine-radius-sm);font-size:var(--mantine-font-size-xs);margin:0;overflow:auto}:where([data-mantine-color-scheme=light]) .m_b183c0a2{background-color:var(--code-bg, var(--mantine-color-gray-0))}:where([data-mantine-color-scheme=dark]) .m_b183c0a2{background-color:var(--code-bg, var(--mantine-color-dark-6))}.m_b183c0a2[data-block]{padding:var(--mantine-spacing-xs)}.m_de3d2490{--cs-size: calc(1.75rem * var(--mantine-scale));--cs-radius: calc(62.5rem * var(--mantine-scale));-webkit-tap-highlight-color:transparent;border:none;appearance:none;display:block;line-height:1;position:relative;width:var(--cs-size);height:var(--cs-size);min-width:var(--cs-size);min-height:var(--cs-size);border-radius:var(--cs-radius);color:inherit;text-decoration:none}[data-mantine-color-scheme=light] .m_de3d2490{--alpha-overlay-color: var(--mantine-color-gray-3);--alpha-overlay-bg: var(--mantine-color-white)}[data-mantine-color-scheme=dark] .m_de3d2490{--alpha-overlay-color: var(--mantine-color-dark-4);--alpha-overlay-bg: var(--mantine-color-dark-7)}.m_862f3d1b{position:absolute;inset:0;border-radius:var(--cs-radius)}.m_98ae7f22{position:absolute;inset:0;border-radius:var(--cs-radius);z-index:1;box-shadow:#0000001a 0 0 0 calc(.0625rem * var(--mantine-scale)) inset,#00000026 0 0 calc(.25rem * var(--mantine-scale)) inset}.m_95709ac0{position:absolute;inset:0;border-radius:var(--cs-radius);background-size:calc(.5rem * var(--mantine-scale)) calc(.5rem * var(--mantine-scale));background-position:0 0,0 calc(.25rem * var(--mantine-scale)),calc(.25rem * var(--mantine-scale)) calc(-.25rem * var(--mantine-scale)),calc(-.25rem * var(--mantine-scale)) 0;background-image:linear-gradient(45deg,var(--alpha-overlay-color) 25%,transparent 25%),linear-gradient(-45deg,var(--alpha-overlay-color) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,var(--alpha-overlay-color) 75%),linear-gradient(-45deg,var(--alpha-overlay-bg) 75%,var(--alpha-overlay-color) 75%)}.m_93e74e3{position:absolute;inset:0;border-radius:var(--cs-radius);z-index:2;display:flex;align-items:center;justify-content:center}.m_fee9c77{--cp-width-xs: calc(11.25rem * var(--mantine-scale));--cp-width-sm: calc(12.5rem * var(--mantine-scale));--cp-width-md: calc(15rem * var(--mantine-scale));--cp-width-lg: calc(17.5rem * var(--mantine-scale));--cp-width-xl: calc(20rem * var(--mantine-scale));--cp-preview-size-xs: calc(1.625rem * var(--mantine-scale));--cp-preview-size-sm: calc(2.125rem * var(--mantine-scale));--cp-preview-size-md: calc(2.625rem * var(--mantine-scale));--cp-preview-size-lg: calc(3.125rem * var(--mantine-scale));--cp-preview-size-xl: calc(3.375rem * var(--mantine-scale));--cp-thumb-size-xs: calc(.5rem * var(--mantine-scale));--cp-thumb-size-sm: calc(.75rem * var(--mantine-scale));--cp-thumb-size-md: calc(1rem * var(--mantine-scale));--cp-thumb-size-lg: calc(1.25rem * var(--mantine-scale));--cp-thumb-size-xl: calc(1.375rem * var(--mantine-scale));--cp-saturation-height-xs: calc(6.25rem * var(--mantine-scale));--cp-saturation-height-sm: calc(6.875rem * var(--mantine-scale));--cp-saturation-height-md: calc(7.5rem * var(--mantine-scale));--cp-saturation-height-lg: calc(8.75rem * var(--mantine-scale));--cp-saturation-height-xl: calc(10rem * var(--mantine-scale));--cp-preview-size: var(--cp-preview-size-sm);--cp-thumb-size: var(--cp-thumb-size-sm);--cp-saturation-height: var(--cp-saturation-height-sm);--cp-width: var(--cp-width-sm);--cp-body-spacing: var(--mantine-spacing-sm);width:var(--cp-width);padding:calc(.0625rem * var(--mantine-scale))}.m_fee9c77:where([data-full-width]){width:100%}.m_9dddfbac{width:var(--cp-preview-size);height:var(--cp-preview-size)}.m_bffecc3e{display:flex;padding-top:calc(var(--cp-body-spacing) / 2)}.m_3283bb96{flex:1}.m_3283bb96:not(:only-child){margin-inline-end:var(--mantine-spacing-xs)}.m_40d572ba{overflow:hidden;position:absolute;box-shadow:0 0 1px #0009;border:2px solid var(--mantine-color-white);width:var(--cp-thumb-size);height:var(--cp-thumb-size);border-radius:var(--cp-thumb-size);left:calc(var(--thumb-x-offset) - var(--cp-thumb-size) / 2);top:calc(var(--thumb-y-offset) - var(--cp-thumb-size) / 2)}.m_d8ee6fd8{height:unset!important;width:unset!important;min-width:0!important;min-height:0!important;margin:calc(.125rem * var(--mantine-scale));cursor:pointer;padding-bottom:calc(var(--cp-swatch-size) - calc(.25rem * var(--mantine-scale)));flex:0 0 calc(var(--cp-swatch-size) - calc(.25rem * var(--mantine-scale)))}.m_5711e686{margin-top:calc(.3125rem * var(--mantine-scale));margin-inline:calc(-.125rem * var(--mantine-scale));display:flex;flex-wrap:wrap}.m_5711e686:only-child{margin-top:0}.m_202a296e{--cp-thumb-size-xs: calc(.5rem * var(--mantine-scale));--cp-thumb-size-sm: calc(.75rem * var(--mantine-scale));--cp-thumb-size-md: calc(1rem * var(--mantine-scale));--cp-thumb-size-lg: calc(1.25rem * var(--mantine-scale));--cp-thumb-size-xl: calc(1.375rem * var(--mantine-scale));-webkit-tap-highlight-color:transparent;position:relative;height:var(--cp-saturation-height);border-radius:var(--mantine-radius-sm);margin:calc(var(--cp-thumb-size) / 2)}.m_202a296e:where([data-focus-ring=auto]):focus:focus-visible .m_40d572ba{outline:2px solid var(--mantine-color-blue-filled)}.m_202a296e:where([data-focus-ring=always]):focus .m_40d572ba{outline:2px solid var(--mantine-color-blue-filled)}.m_11b3db02{position:absolute;border-radius:var(--mantine-radius-sm);inset:calc(var(--cp-thumb-size) * -1 / 2 - calc(.0625rem * var(--mantine-scale)))}.m_d856d47d{--cp-thumb-size-xs: calc(.5rem * var(--mantine-scale));--cp-thumb-size-sm: calc(.75rem * var(--mantine-scale));--cp-thumb-size-md: calc(1rem * var(--mantine-scale));--cp-thumb-size-lg: calc(1.25rem * var(--mantine-scale));--cp-thumb-size-xl: calc(1.375rem * var(--mantine-scale));--cp-thumb-size: var(--cp-thumb-size, calc(.75rem * var(--mantine-scale)));position:relative;height:calc(var(--cp-thumb-size) + calc(.125rem * var(--mantine-scale)));margin-inline:calc(var(--cp-thumb-size) / 2);outline:none}.m_d856d47d+.m_d856d47d{margin-top:calc(.375rem * var(--mantine-scale))}.m_d856d47d:where([data-focus-ring=auto]):focus:focus-visible .m_40d572ba{outline:2px solid var(--mantine-color-blue-filled)}.m_d856d47d:where([data-focus-ring=always]):focus .m_40d572ba{outline:2px solid var(--mantine-color-blue-filled)}:where([data-mantine-color-scheme=light]) .m_d856d47d{--slider-checkers: var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_d856d47d{--slider-checkers: var(--mantine-color-dark-4)}.m_8f327113{position:absolute;top:0;bottom:0;inset-inline:calc(var(--cp-thumb-size) * -1 / 2 - calc(.0625rem * var(--mantine-scale)));border-radius:10000rem}.m_b077c2bc{--ci-eye-dropper-icon-size-xs: calc(.875rem * var(--mantine-scale));--ci-eye-dropper-icon-size-sm: calc(1rem * var(--mantine-scale));--ci-eye-dropper-icon-size-md: calc(1.125rem * var(--mantine-scale));--ci-eye-dropper-icon-size-lg: calc(1.25rem * var(--mantine-scale));--ci-eye-dropper-icon-size-xl: calc(1.375rem * var(--mantine-scale));--ci-eye-dropper-icon-size: var(--ci-eye-dropper-icon-size-sm)}.m_c5ccdcab{--ci-preview-size-xs: calc(1rem * var(--mantine-scale));--ci-preview-size-sm: calc(1.125rem * var(--mantine-scale));--ci-preview-size-md: calc(1.375rem * var(--mantine-scale));--ci-preview-size-lg: calc(1.75rem * var(--mantine-scale));--ci-preview-size-xl: calc(2.25rem * var(--mantine-scale));--ci-preview-size: var(--ci-preview-size-sm)}.m_5ece2cd7{padding:calc(.5rem * var(--mantine-scale))}.m_7485cace{--container-size-xs: calc(33.75rem * var(--mantine-scale));--container-size-sm: calc(45rem * var(--mantine-scale));--container-size-md: calc(60rem * var(--mantine-scale));--container-size-lg: calc(71.25rem * var(--mantine-scale));--container-size-xl: calc(82.5rem * var(--mantine-scale));--container-size: var(--container-size-md)}.m_7485cace:where([data-strategy=block]){max-width:var(--container-size);padding-inline:var(--mantine-spacing-md);margin-inline:auto}.m_7485cace:where([data-strategy=block]):where([data-fluid]){max-width:100%}.m_7485cace:where([data-strategy=grid]){display:grid;grid-template-columns:1fr min(100%,var(--container-size)) 1fr;margin-inline:auto}.m_7485cace:where([data-strategy=grid])>*{grid-column:2}.m_7485cace:where([data-strategy=grid])>[data-breakout]{grid-column:1 / -1}.m_7485cace:where([data-strategy=grid])>[data-breakout]>[data-container]{max-width:var(--container-size);margin-inline:auto}.m_e2125a27{--dialog-size-xs: calc(10rem * var(--mantine-scale));--dialog-size-sm: calc(12.5rem * var(--mantine-scale));--dialog-size-md: calc(21.25rem * var(--mantine-scale));--dialog-size-lg: calc(25rem * var(--mantine-scale));--dialog-size-xl: calc(31.25rem * var(--mantine-scale));--dialog-size: var(--dialog-size-md);position:relative;width:var(--dialog-size);max-width:calc(100vw - var(--mantine-spacing-xl) * 2);min-height:calc(3.125rem * var(--mantine-scale))}.m_5abab665{position:absolute;top:calc(var(--mantine-spacing-md) / 2);inset-inline-end:calc(var(--mantine-spacing-md) / 2)}.m_3eebeb36{--divider-size-xs: calc(.0625rem * var(--mantine-scale));--divider-size-sm: calc(.125rem * var(--mantine-scale));--divider-size-md: calc(.1875rem * var(--mantine-scale));--divider-size-lg: calc(.25rem * var(--mantine-scale));--divider-size-xl: calc(.3125rem * var(--mantine-scale));--divider-size: var(--divider-size-xs)}:where([data-mantine-color-scheme=light]) .m_3eebeb36{--divider-color: var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_3eebeb36{--divider-color: var(--mantine-color-dark-4)}.m_3eebeb36:where([data-orientation=horizontal]){border-top:var(--divider-size) var(--divider-border-style, solid) var(--divider-color)}.m_3eebeb36:where([data-orientation=vertical]){border-inline-start:var(--divider-size) var(--divider-border-style, solid) var(--divider-color);height:auto;align-self:stretch}.m_3eebeb36:where([data-with-label]){border:0}.m_9e365f20{display:flex;align-items:center;font-size:var(--mantine-font-size-xs);color:var(--mantine-color-dimmed);white-space:nowrap}.m_9e365f20:where([data-position=left]):before{display:none}.m_9e365f20:where([data-position=right]):after{display:none}.m_9e365f20:before{content:"";flex:1;height:calc(.0625rem * var(--mantine-scale));border-top:var(--divider-size) var(--divider-border-style, solid) var(--divider-color);margin-inline-end:var(--mantine-spacing-xs)}.m_9e365f20:after{content:"";flex:1;height:calc(.0625rem * var(--mantine-scale));border-top:var(--divider-size) var(--divider-border-style, solid) var(--divider-color);margin-inline-start:var(--mantine-spacing-xs)}.m_f11b401e{--drawer-size-xs: calc(20rem * var(--mantine-scale));--drawer-size-sm: calc(23.75rem * var(--mantine-scale));--drawer-size-md: calc(27.5rem * var(--mantine-scale));--drawer-size-lg: calc(38.75rem * var(--mantine-scale));--drawer-size-xl: calc(48.75rem * var(--mantine-scale));--drawer-size: var(--drawer-size-md);--drawer-offset: 0rem}.m_5a7c2c9{z-index:1000}.m_b8a05bbd{flex:var(--drawer-flex, 0 0 var(--drawer-size));height:var(--drawer-height, calc(100% - var(--drawer-offset) * 2));margin:var(--drawer-offset);max-width:calc(100% - var(--drawer-offset) * 2);max-height:calc(100% - var(--drawer-offset) * 2);overflow-y:auto}.m_b8a05bbd[data-hidden]{opacity:0!important;pointer-events:none}.m_31cd769a{display:flex;justify-content:var(--drawer-justify, flex-start);align-items:var(--drawer-align, flex-start)}.m_e9408a47{padding:var(--mantine-spacing-lg);padding-top:var(--mantine-spacing-xs);border-radius:var(--fieldset-radius, var(--mantine-radius-default));min-inline-size:auto}.m_84c9523a{border:calc(.0625rem * var(--mantine-scale)) solid}:where([data-mantine-color-scheme=light]) .m_84c9523a{border-color:var(--mantine-color-gray-3);background-color:var(--mantine-color-white)}:where([data-mantine-color-scheme=dark]) .m_84c9523a{border-color:var(--mantine-color-dark-4);background-color:var(--mantine-color-dark-7)}.m_ef274e49{border:calc(.0625rem * var(--mantine-scale)) solid}:where([data-mantine-color-scheme=light]) .m_ef274e49{border-color:var(--mantine-color-gray-3);background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_ef274e49{border-color:var(--mantine-color-dark-4);background-color:var(--mantine-color-dark-6)}.m_eda993d3{padding:0;border:0;border-radius:0}.m_90794832{font-size:var(--mantine-font-size-sm)}.m_74ca27fe{padding:0;margin-bottom:var(--mantine-spacing-sm)}.m_8478a6da{container:mantine-grid / inline-size}.m_410352e9{--grid-overflow: visible;--grid-margin: calc(var(--grid-gutter) / -2);--grid-col-padding: calc(var(--grid-gutter) / 2);overflow:var(--grid-overflow)}.m_dee7bd2f{width:calc(100% + var(--grid-gutter));display:flex;flex-wrap:wrap;justify-content:var(--grid-justify);align-items:var(--grid-align);margin:var(--grid-margin)}.m_96bdd299{--col-flex-grow: 0;--col-offset: 0rem;flex-shrink:0;order:var(--col-order);flex-basis:var(--col-flex-basis);width:var(--col-width);max-width:var(--col-max-width);flex-grow:var(--col-flex-grow);margin-inline-start:var(--col-offset);padding:var(--grid-col-padding)}.m_bcb3f3c2{color:var(--mantine-color-black)}:where([data-mantine-color-scheme=light]) .m_bcb3f3c2{background-color:var(--mark-bg-light)}:where([data-mantine-color-scheme=dark]) .m_bcb3f3c2{background-color:var(--mark-bg-dark)}.m_9e117634{display:block;object-fit:var(--image-object-fit, cover);width:100%;border-radius:var(--image-radius, 0)}@keyframes m_885901b1{0%{opacity:.6;transform:scale(0)}to{opacity:0;transform:scale(2.8)}}.m_e5262200{--indicator-size: calc(.625rem * var(--mantine-scale));--indicator-color: var(--mantine-primary-color-filled);position:relative;display:block}.m_e5262200:where([data-inline]){display:inline-block}.m_760d1fb1{position:absolute;top:var(--indicator-top);left:var(--indicator-left);right:var(--indicator-right);bottom:var(--indicator-bottom);transform:translate(var(--indicator-translate-x),var(--indicator-translate-y));min-width:var(--indicator-size);height:var(--indicator-size);border-radius:var(--indicator-radius, 1000rem);z-index:var(--indicator-z-index, 200);display:flex;align-items:center;justify-content:center;font-size:var(--mantine-font-size-xs);background-color:var(--indicator-color);color:var(--indicator-text-color, var(--mantine-color-white));white-space:nowrap}.m_760d1fb1:before{content:"";position:absolute;inset:0;background-color:var(--indicator-color);border-radius:var(--indicator-radius, 1000rem);z-index:-1}.m_760d1fb1:where([data-with-label]){padding-inline:calc(var(--mantine-spacing-xs) / 2)}.m_760d1fb1:where([data-with-border]){border:2px solid var(--mantine-color-body)}.m_760d1fb1[data-processing]:before{animation:m_885901b1 1s linear infinite}.m_dc6f14e2{--kbd-fz-xs: calc(.625rem * var(--mantine-scale));--kbd-fz-sm: calc(.75rem * var(--mantine-scale));--kbd-fz-md: calc(.875rem * var(--mantine-scale));--kbd-fz-lg: calc(1rem * var(--mantine-scale));--kbd-fz-xl: calc(1.25rem * var(--mantine-scale));--kbd-fz: var(--kbd-fz-sm);font-family:var(--mantine-font-family-monospace);line-height:var(--mantine-line-height);font-weight:700;font-size:var(--kbd-fz);border-radius:var(--mantine-radius-sm);border:calc(.0625rem * var(--mantine-scale)) solid;border-bottom-width:calc(.1875rem * var(--mantine-scale));unicode-bidi:embed;text-align:center;padding:.12em .45em}:where([data-mantine-color-scheme=light]) .m_dc6f14e2{border-color:var(--mantine-color-gray-3);color:var(--mantine-color-gray-7);background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_dc6f14e2{border-color:var(--mantine-color-dark-4);color:var(--mantine-color-dark-0);background-color:var(--mantine-color-dark-6)}.m_abbac491{--list-fz: var(--mantine-font-size-md);--list-lh: var(--mantine-line-height-md);--list-marker-gap: var(--mantine-spacing-lg);list-style-position:outside;font-size:var(--list-fz);line-height:var(--list-lh);margin:0;padding:0;padding-inline-start:var(--list-marker-gap)}.m_abbac491[data-type=none]{--list-marker-gap: 0}.m_abbac491:where([data-with-padding]){padding-inline-start:calc(var(--list-marker-gap) + var(--mantine-spacing-md))}.m_abb6bec2{white-space:normal;line-height:var(--list-lh)}.m_abb6bec2:where([data-with-icon]){list-style:none}.m_abb6bec2:where([data-with-icon]) .m_75cd9f71{--li-direction: row;--li-align: center}.m_abb6bec2:where(:not(:first-of-type)){margin-top:var(--list-spacing, 0)}.m_abb6bec2:where([data-centered]){line-height:1}.m_75cd9f71{display:inline-flex;flex-direction:var(--li-direction, column);align-items:var(--li-align, flex-start);white-space:normal}.m_60f83e5b{display:inline-block;vertical-align:middle;margin-inline-end:var(--mantine-spacing-sm)}.m_6e45937b{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;overflow:hidden;z-index:var(--lo-z-index)}.m_e8eb006c{position:relative;z-index:calc(var(--lo-z-index) + 1)}.m_df587f17{z-index:var(--lo-z-index)}.m_dc9b7c9f{padding:calc(.25rem * var(--mantine-scale))}.m_9bfac126{color:var(--mantine-color-dimmed);font-weight:500;font-size:var(--mantine-font-size-xs);padding:calc(var(--mantine-spacing-xs) / 2) var(--mantine-spacing-sm);cursor:default}.m_efdf90cb{margin-top:calc(.25rem * var(--mantine-scale));margin-bottom:calc(.25rem * var(--mantine-scale));border-top:calc(.0625rem * var(--mantine-scale)) solid}:where([data-mantine-color-scheme=light]) .m_efdf90cb{border-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_efdf90cb{border-color:var(--mantine-color-dark-4)}.m_99ac2aa1{font-size:var(--mantine-font-size-sm);width:100%;padding:calc(var(--mantine-spacing-xs) / 1.5) var(--mantine-spacing-sm);border-radius:var(--popover-radius, var(--mantine-radius-default));color:var(--menu-item-color, var(--mantine-color-text));display:flex;align-items:center;user-select:none}.m_99ac2aa1:where([data-disabled],:disabled){color:var(--mantine-color-disabled-color);opacity:.6;cursor:not-allowed}:where([data-mantine-color-scheme=light]) .m_99ac2aa1:where(:hover,:focus):where(:not(:disabled,[data-disabled])){background-color:var(--menu-item-hover, var(--mantine-color-gray-1))}:where([data-mantine-color-scheme=dark]) .m_99ac2aa1:where(:hover,:focus):where(:not(:disabled,[data-disabled])){background-color:var(--menu-item-hover, var(--mantine-color-dark-4))}.m_99ac2aa1:where([data-sub-menu-item]){padding-inline-end:calc(.3125rem * var(--mantine-scale))}.m_5476e0d3{flex:1}.m_8b75e504{display:flex;justify-content:center;align-items:center}.m_8b75e504:where([data-position=left]){margin-inline-end:var(--mantine-spacing-xs)}.m_8b75e504:where([data-position=right]){margin-inline-start:var(--mantine-spacing-xs)}.m_b85b0bed{transform:rotate(-90deg)}:where([dir=rtl]) .m_b85b0bed{transform:rotate(90deg)}.m_9df02822{--modal-size-xs: calc(20rem * var(--mantine-scale));--modal-size-sm: calc(23.75rem * var(--mantine-scale));--modal-size-md: calc(27.5rem * var(--mantine-scale));--modal-size-lg: calc(38.75rem * var(--mantine-scale));--modal-size-xl: calc(48.75rem * var(--mantine-scale));--modal-size: var(--modal-size-md);--modal-y-offset: 5dvh;--modal-x-offset: 5vw}.m_9df02822[data-full-screen]{--modal-border-radius: 0 !important}.m_9df02822[data-full-screen] .m_54c44539{--modal-content-flex: 0 0 100%;--modal-content-max-height: auto;--modal-content-height: 100dvh}.m_9df02822[data-full-screen] .m_1f958f16{--modal-inner-y-offset: 0;--modal-inner-x-offset: 0}.m_9df02822[data-centered] .m_1f958f16{--modal-inner-align: center}.m_d0e2b9cd{border-start-start-radius:var(--modal-radius, var(--mantine-radius-default));border-start-end-radius:var(--modal-radius, var(--mantine-radius-default))}.m_54c44539{flex:var(--modal-content-flex, 0 0 var(--modal-size));max-width:100%;max-height:var(--modal-content-max-height, calc(100dvh - var(--modal-y-offset) * 2));height:var(--modal-content-height, auto);overflow-y:auto}.m_54c44539[data-full-screen]{border-radius:0}.m_54c44539[data-hidden]{opacity:0!important;pointer-events:none}.m_1f958f16{display:flex;justify-content:center;align-items:var(--modal-inner-align, flex-start);padding-top:var(--modal-inner-y-offset, var(--modal-y-offset));padding-bottom:var(--modal-inner-y-offset, var(--modal-y-offset));padding-inline:var(--modal-inner-x-offset, var(--modal-x-offset))}.m_7cda1cd6{--pill-fz-xs: calc(.625rem * var(--mantine-scale));--pill-fz-sm: calc(.75rem * var(--mantine-scale));--pill-fz-md: calc(.875rem * var(--mantine-scale));--pill-fz-lg: calc(1rem * var(--mantine-scale));--pill-fz-xl: calc(1.125rem * var(--mantine-scale));--pill-height-xs: calc(1.125rem * var(--mantine-scale));--pill-height-sm: calc(1.375rem * var(--mantine-scale));--pill-height-md: calc(1.5625rem * var(--mantine-scale));--pill-height-lg: calc(1.75rem * var(--mantine-scale));--pill-height-xl: calc(2rem * var(--mantine-scale));--pill-fz: var(--pill-fz-sm);--pill-height: var(--pill-height-sm);font-size:var(--pill-fz);flex:0;height:var(--pill-height);padding-inline:.8em;display:inline-flex;align-items:center;border-radius:var(--pill-radius, 1000rem);line-height:1;white-space:nowrap;user-select:none;-webkit-user-select:none;max-width:100%}:where([data-mantine-color-scheme=dark]) .m_7cda1cd6{background-color:var(--mantine-color-dark-7);color:var(--mantine-color-dark-0)}:where([data-mantine-color-scheme=light]) .m_7cda1cd6{color:var(--mantine-color-black)}.m_7cda1cd6:where([data-with-remove]:not(:has(button:disabled))){padding-inline-end:0}.m_7cda1cd6:where([data-disabled],:has(button:disabled)){cursor:not-allowed}:where([data-mantine-color-scheme=light]) .m_44da308b{background-color:var(--mantine-color-gray-1)}:where([data-mantine-color-scheme=light]) .m_44da308b:where([data-disabled],:has(button:disabled)){background-color:var(--mantine-color-disabled)}:where([data-mantine-color-scheme=light]) .m_e3a01f8{background-color:var(--mantine-color-white)}:where([data-mantine-color-scheme=light]) .m_e3a01f8:where([data-disabled],:has(button:disabled)){background-color:var(--mantine-color-disabled)}.m_1e0e6180{cursor:inherit;overflow:hidden;height:100%;line-height:var(--pill-height);text-overflow:ellipsis}.m_ae386778{color:inherit;font-size:inherit;height:100%;min-height:unset;min-width:2em;width:unset;border-radius:0;padding-inline-start:.1em;padding-inline-end:.3em;flex:0;border-end-end-radius:var(--pill-radius, 50%);border-start-end-radius:var(--pill-radius, 50%)}.m_7cda1cd6[data-disabled]>.m_ae386778,.m_ae386778:disabled{display:none;background-color:transparent;width:.8em;min-width:.8em;padding:0;cursor:not-allowed}.m_7cda1cd6[data-disabled]>.m_ae386778>svg,.m_ae386778:disabled>svg{display:none}.m_ae386778>svg{pointer-events:none}.m_1dcfd90b{--pg-gap-xs: calc(.375rem * var(--mantine-scale));--pg-gap-sm: calc(.5rem * var(--mantine-scale));--pg-gap-md: calc(.625rem * var(--mantine-scale));--pg-gap-lg: calc(.75rem * var(--mantine-scale));--pg-gap-xl: calc(.75rem * var(--mantine-scale));--pg-gap: var(--pg-gap-sm);display:flex;align-items:center;gap:var(--pg-gap);flex-wrap:wrap}.m_45c4369d{background-color:transparent;appearance:none;min-width:calc(6.25rem * var(--mantine-scale));flex:1;border:0;font-size:inherit;height:1.6em;color:inherit;padding:0}.m_45c4369d::placeholder{color:var(--input-placeholder-color);opacity:1}.m_45c4369d:where([data-type=hidden],[data-type=auto]){height:calc(.0625rem * var(--mantine-scale));width:calc(.0625rem * var(--mantine-scale));top:0;left:0;pointer-events:none;position:absolute;opacity:0}.m_45c4369d:focus{outline:none}.m_45c4369d:where([data-type=auto]:focus){height:1.6em;visibility:visible;opacity:1;position:static}.m_45c4369d:where([data-pointer]:not([data-disabled],:disabled)){cursor:pointer}.m_45c4369d:where([data-disabled],:disabled){cursor:not-allowed}.m_f0824112{--nl-bg: var(--mantine-primary-color-light);--nl-hover: var(--mantine-primary-color-light-hover);--nl-color: var(--mantine-primary-color-light-color);display:flex;align-items:center;width:100%;padding:8px var(--mantine-spacing-sm);user-select:none}@media(hover:hover){:where([data-mantine-color-scheme=light]) .m_f0824112:hover{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_f0824112:hover{background-color:var(--mantine-color-dark-6)}}@media(hover:none){:where([data-mantine-color-scheme=light]) .m_f0824112:active{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_f0824112:active{background-color:var(--mantine-color-dark-6)}}.m_f0824112:where([data-disabled]){opacity:.4;pointer-events:none}.m_f0824112:where([data-active],[aria-current=page]){background-color:var(--nl-bg);color:var(--nl-color)}@media(hover:hover){.m_f0824112:where([data-active],[aria-current=page]):hover{background-color:var(--nl-hover)}}@media(hover:none){.m_f0824112:where([data-active],[aria-current=page]):active{background-color:var(--nl-hover)}}.m_f0824112:where([data-active],[aria-current=page]) .m_57492dcc{--description-opacity: .9;--description-color: var(--nl-color)}.m_690090b5{display:flex;align-items:center;justify-content:center;transition:transform .15s ease}.m_690090b5>svg{display:block}.m_690090b5:where([data-position=left]){margin-inline-end:var(--mantine-spacing-sm)}.m_690090b5:where([data-position=right]){margin-inline-start:var(--mantine-spacing-sm)}.m_690090b5:where([data-rotate]){transform:rotate(90deg)}.m_1f6ac4c4{font-size:var(--mantine-font-size-sm)}.m_f07af9d2{flex:1;overflow:hidden;text-overflow:ellipsis}.m_f07af9d2:where([data-no-wrap]){white-space:nowrap}.m_57492dcc{display:block;font-size:var(--mantine-font-size-xs);opacity:var(--description-opacity, 1);color:var(--description-color, var(--mantine-color-dimmed));overflow:hidden;text-overflow:ellipsis}:where([data-no-wrap]) .m_57492dcc{white-space:nowrap}.m_e17b862f{padding-inline-start:var(--nl-offset, var(--mantine-spacing-lg))}.m_1fd8a00b{transform:rotate(-90deg)}.m_a513464{--notification-radius: var(--mantine-radius-default);--notification-color: var(--mantine-primary-color-filled);overflow:hidden;box-sizing:border-box;position:relative;display:flex;align-items:center;padding-inline-start:calc(1.375rem * var(--mantine-scale));padding-inline-end:var(--mantine-spacing-xs);padding-top:var(--mantine-spacing-xs);padding-bottom:var(--mantine-spacing-xs);border-radius:var(--notification-radius);box-shadow:var(--mantine-shadow-lg)}.m_a513464:before{content:"";display:block;position:absolute;width:calc(.375rem * var(--mantine-scale));top:var(--notification-radius);bottom:var(--notification-radius);inset-inline-start:calc(.25rem * var(--mantine-scale));border-radius:var(--notification-radius);background-color:var(--notification-color)}:where([data-mantine-color-scheme=light]) .m_a513464{background-color:var(--mantine-color-white)}:where([data-mantine-color-scheme=dark]) .m_a513464{background-color:var(--mantine-color-dark-6)}.m_a513464:where([data-with-icon]):before{display:none}:where([data-mantine-color-scheme=light]) .m_a513464:where([data-with-border]){border:1px solid var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_a513464:where([data-with-border]){border:1px solid var(--mantine-color-dark-4)}.m_a4ceffb{box-sizing:border-box;margin-inline-end:var(--mantine-spacing-md);width:calc(1.75rem * var(--mantine-scale));height:calc(1.75rem * var(--mantine-scale));border-radius:calc(1.75rem * var(--mantine-scale));display:flex;align-items:center;justify-content:center;background-color:var(--notification-color);color:var(--mantine-color-white)}.m_b0920b15{margin-inline-end:var(--mantine-spacing-md)}.m_a49ed24{flex:1;overflow:hidden;margin-inline-end:var(--mantine-spacing-xs)}.m_3feedf16{margin-bottom:calc(.125rem * var(--mantine-scale));overflow:hidden;text-overflow:ellipsis;font-size:var(--mantine-font-size-sm);line-height:var(--mantine-line-height-sm);font-weight:500}:where([data-mantine-color-scheme=light]) .m_3feedf16{color:var(--mantine-color-gray-9)}:where([data-mantine-color-scheme=dark]) .m_3feedf16{color:var(--mantine-color-white)}.m_3d733a3a{font-size:var(--mantine-font-size-sm);line-height:var(--mantine-line-height-sm);overflow:hidden;text-overflow:ellipsis}:where([data-mantine-color-scheme=light]) .m_3d733a3a{color:var(--mantine-color-black)}:where([data-mantine-color-scheme=dark]) .m_3d733a3a{color:var(--mantine-color-dark-0)}:where([data-mantine-color-scheme=light]) .m_3d733a3a:where([data-with-title]){color:var(--mantine-color-gray-6)}:where([data-mantine-color-scheme=dark]) .m_3d733a3a:where([data-with-title]){color:var(--mantine-color-dark-2)}@media(hover:hover){:where([data-mantine-color-scheme=light]) .m_919a4d88:hover{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_919a4d88:hover{background-color:var(--mantine-color-dark-8)}}@media(hover:none){:where([data-mantine-color-scheme=light]) .m_919a4d88:active{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_919a4d88:active{background-color:var(--mantine-color-dark-8)}}.m_e2f5cd4e{--ni-right-section-width-xs: calc(1.0625rem * var(--mantine-scale));--ni-right-section-width-sm: calc(1.5rem * var(--mantine-scale));--ni-right-section-width-md: calc(1.6875rem * var(--mantine-scale));--ni-right-section-width-lg: calc(1.9375rem * var(--mantine-scale));--ni-right-section-width-xl: calc(2.125rem * var(--mantine-scale))}.m_95e17d22{--ni-chevron-size-xs: calc(.625rem * var(--mantine-scale));--ni-chevron-size-sm: calc(.875rem * var(--mantine-scale));--ni-chevron-size-md: calc(1rem * var(--mantine-scale));--ni-chevron-size-lg: calc(1.125rem * var(--mantine-scale));--ni-chevron-size-xl: calc(1.25rem * var(--mantine-scale));--ni-chevron-size: var(--ni-chevron-size-sm);display:flex;flex-direction:column;width:100%;height:calc(var(--input-height) - calc(.125rem * var(--mantine-scale)));max-width:calc(var(--ni-chevron-size) * 1.7);margin-inline-start:auto}.m_80b4b171{--control-border: 1px solid var(--input-bd);--control-radius: calc(var(--input-radius) - calc(.0625rem * var(--mantine-scale)));flex:0 0 50%;width:100%;padding:0;height:calc(var(--input-height) / 2 - calc(.0625rem * var(--mantine-scale)));border-inline-start:var(--control-border);display:flex;align-items:center;justify-content:center;color:var(--mantine-color-text);background-color:transparent;cursor:pointer}.m_80b4b171:where(:disabled){background-color:transparent;cursor:not-allowed;opacity:.6;color:var(--mantine-color-disabled-color)}.m_e2f5cd4e[data-error] :where(.m_80b4b171){color:var(--mantine-color-error)}@media(hover:hover){:where([data-mantine-color-scheme=light]) .m_80b4b171:hover{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_80b4b171:hover{background-color:var(--mantine-color-dark-4)}}@media(hover:none){:where([data-mantine-color-scheme=light]) .m_80b4b171:active{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_80b4b171:active{background-color:var(--mantine-color-dark-4)}}.m_80b4b171:where(:first-of-type){border-radius:0;border-start-end-radius:var(--control-radius)}.m_80b4b171:last-of-type{border-radius:0;border-end-end-radius:var(--control-radius)}.m_4addd315{--pagination-control-size-xs: calc(1.375rem * var(--mantine-scale));--pagination-control-size-sm: calc(1.625rem * var(--mantine-scale));--pagination-control-size-md: calc(2rem * var(--mantine-scale));--pagination-control-size-lg: calc(2.375rem * var(--mantine-scale));--pagination-control-size-xl: calc(2.75rem * var(--mantine-scale));--pagination-control-size: var(--pagination-control-size-md);--pagination-control-fz: var(--mantine-font-size-md);--pagination-active-bg: var(--mantine-primary-color-filled)}.m_326d024a{display:flex;align-items:center;justify-content:center;border:calc(.0625rem * var(--mantine-scale)) solid;cursor:pointer;color:var(--mantine-color-text);height:var(--pagination-control-size);min-width:var(--pagination-control-size);font-size:var(--pagination-control-fz);line-height:1;border-radius:var(--pagination-control-radius, var(--mantine-radius-default))}.m_326d024a:where([data-with-padding]){padding:calc(var(--pagination-control-size) / 4)}.m_326d024a:where(:disabled,[data-disabled]){cursor:not-allowed;opacity:.4}:where([data-mantine-color-scheme=light]) .m_326d024a{border-color:var(--mantine-color-gray-4);background-color:var(--mantine-color-white)}@media(hover:hover){:where([data-mantine-color-scheme=light]) .m_326d024a:hover:where(:not(:disabled,[data-disabled])){background-color:var(--mantine-color-gray-0)}}@media(hover:none){:where([data-mantine-color-scheme=light]) .m_326d024a:active:where(:not(:disabled,[data-disabled])){background-color:var(--mantine-color-gray-0)}}:where([data-mantine-color-scheme=dark]) .m_326d024a{border-color:var(--mantine-color-dark-4);background-color:var(--mantine-color-dark-6)}@media(hover:hover){:where([data-mantine-color-scheme=dark]) .m_326d024a:hover:where(:not(:disabled,[data-disabled])){background-color:var(--mantine-color-dark-5)}}@media(hover:none){:where([data-mantine-color-scheme=dark]) .m_326d024a:active:where(:not(:disabled,[data-disabled])){background-color:var(--mantine-color-dark-5)}}.m_326d024a:where([data-active]){background-color:var(--pagination-active-bg);border-color:var(--pagination-active-bg);color:var(--pagination-active-color, var(--mantine-color-white))}@media(hover:hover){.m_326d024a:where([data-active]):hover{background-color:var(--pagination-active-bg)}}@media(hover:none){.m_326d024a:where([data-active]):active{background-color:var(--pagination-active-bg)}}.m_4ad7767d{height:var(--pagination-control-size);min-width:var(--pagination-control-size);display:flex;align-items:center;justify-content:center;pointer-events:none}.m_f61ca620{--psi-button-size-xs: calc(1.375rem * var(--mantine-scale));--psi-button-size-sm: calc(1.625rem * var(--mantine-scale));--psi-button-size-md: calc(1.75rem * var(--mantine-scale));--psi-button-size-lg: calc(2rem * var(--mantine-scale));--psi-button-size-xl: calc(2.5rem * var(--mantine-scale));--psi-icon-size-xs: calc(.75rem * var(--mantine-scale));--psi-icon-size-sm: calc(.9375rem * var(--mantine-scale));--psi-icon-size-md: calc(1.0625rem * var(--mantine-scale));--psi-icon-size-lg: calc(1.1875rem * var(--mantine-scale));--psi-icon-size-xl: calc(1.3125rem * var(--mantine-scale));--psi-button-size: var(--psi-button-size-sm);--psi-icon-size: var(--psi-icon-size-sm)}.m_ccf8da4c{position:relative;overflow:hidden}.m_f2d85dd2{font-family:var(--mantine-font-family);background-color:transparent;border:0;padding-inline-end:var(--input-padding-inline-end);padding-inline-start:var(--input-padding-inline-start);position:absolute;inset:0;outline:0;font-size:inherit;line-height:var(--mantine-line-height);height:100%;width:100%;color:inherit}.m_ccf8da4c[data-disabled] .m_f2d85dd2,.m_f2d85dd2:disabled{cursor:not-allowed}.m_f2d85dd2::placeholder{color:var(--input-placeholder-color);opacity:1}.m_f2d85dd2::-ms-reveal{display:none}.m_b1072d44{width:var(--psi-button-size);height:var(--psi-button-size);min-width:var(--psi-button-size);min-height:var(--psi-button-size)}.m_b1072d44:disabled{display:none}.m_f1cb205a{--pin-input-size-xs: calc(1.875rem * var(--mantine-scale));--pin-input-size-sm: calc(2.25rem * var(--mantine-scale));--pin-input-size-md: calc(2.625rem * var(--mantine-scale));--pin-input-size-lg: calc(3.125rem * var(--mantine-scale));--pin-input-size-xl: calc(3.75rem * var(--mantine-scale));--pin-input-size: var(--pin-input-size-sm)}.m_cb288ead{width:var(--pin-input-size);height:var(--pin-input-size)}@keyframes m_81a374bd{0%{background-position:0 0}to{background-position:calc(2.5rem * var(--mantine-scale)) 0}}@keyframes m_e0fb7a86{0%{background-position:0 0}to{background-position:0 calc(2.5rem * var(--mantine-scale))}}.m_db6d6462{--progress-radius: var(--mantine-radius-default);--progress-size: var(--progress-size-md);--progress-size-xs: calc(.1875rem * var(--mantine-scale));--progress-size-sm: calc(.3125rem * var(--mantine-scale));--progress-size-md: calc(.5rem * var(--mantine-scale));--progress-size-lg: calc(.75rem * var(--mantine-scale));--progress-size-xl: calc(1rem * var(--mantine-scale));position:relative;height:var(--progress-size);border-radius:var(--progress-radius);overflow:hidden;display:flex}:where([data-mantine-color-scheme=light]) .m_db6d6462{background-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_db6d6462{background-color:var(--mantine-color-dark-4)}.m_db6d6462:where([data-orientation=vertical]){height:auto;width:var(--progress-size);flex-direction:column-reverse}.m_2242eb65{background-color:var(--progress-section-color);height:100%;width:var(--progress-section-size);display:flex;align-items:center;justify-content:center;overflow:hidden;background-size:calc(1.25rem * var(--mantine-scale)) calc(1.25rem * var(--mantine-scale));transition:width var(--progress-transition-duration, .1s) ease}.m_2242eb65:where([data-striped]){background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.m_2242eb65:where([data-animated]){animation:m_81a374bd 1s linear infinite}.m_2242eb65:where(:last-of-type){border-radius:0;border-start-end-radius:var(--progress-radius);border-end-end-radius:var(--progress-radius)}.m_2242eb65:where(:first-of-type){border-radius:0;border-start-start-radius:var(--progress-radius);border-end-start-radius:var(--progress-radius)}.m_db6d6462:where([data-orientation=vertical]) .m_2242eb65{width:100%;height:var(--progress-section-size);transition:height var(--progress-transition-duration, .1s) ease}.m_db6d6462:where([data-orientation=vertical]) .m_2242eb65:where([data-striped]){background-image:linear-gradient(135deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.m_db6d6462:where([data-orientation=vertical]) .m_2242eb65:where([data-animated]){animation:m_e0fb7a86 1s linear infinite}.m_db6d6462:where([data-orientation=vertical]) .m_2242eb65:where(:last-of-type){border-radius:0;border-start-start-radius:var(--progress-radius);border-start-end-radius:var(--progress-radius)}.m_db6d6462:where([data-orientation=vertical]) .m_2242eb65:where(:first-of-type){border-radius:0;border-end-start-radius:var(--progress-radius);border-end-end-radius:var(--progress-radius)}.m_91e40b74{color:var(--progress-label-color, var(--mantine-color-white));font-weight:700;user-select:none;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:min(calc(var(--progress-size) * .65),calc(1.125rem * var(--mantine-scale)));line-height:1;padding-inline:calc(.25rem * var(--mantine-scale))}.m_db6d6462:where([data-orientation=vertical]) .m_91e40b74{writing-mode:vertical-rl}.m_9dc8ae12{--card-radius: var(--mantine-radius-default);display:block;width:100%;border-radius:var(--card-radius);cursor:pointer}.m_9dc8ae12 :where(*){cursor:inherit}.m_9dc8ae12:where([data-with-border]){border:calc(.0625rem * var(--mantine-scale)) solid transparent}:where([data-mantine-color-scheme=light]) .m_9dc8ae12:where([data-with-border]){border-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_9dc8ae12:where([data-with-border]){border-color:var(--mantine-color-dark-4)}.m_717d7ff6{--radio-size-xs: calc(1rem * var(--mantine-scale));--radio-size-sm: calc(1.25rem * var(--mantine-scale));--radio-size-md: calc(1.5rem * var(--mantine-scale));--radio-size-lg: calc(1.875rem * var(--mantine-scale));--radio-size-xl: calc(2.25rem * var(--mantine-scale));--radio-icon-size-xs: calc(.375rem * var(--mantine-scale));--radio-icon-size-sm: calc(.5rem * var(--mantine-scale));--radio-icon-size-md: calc(.625rem * var(--mantine-scale));--radio-icon-size-lg: calc(.875rem * var(--mantine-scale));--radio-icon-size-xl: calc(1rem * var(--mantine-scale));--radio-icon-size: var(--radio-icon-size-sm);--radio-size: var(--radio-size-sm);--radio-color: var(--mantine-primary-color-filled);--radio-icon-color: var(--mantine-color-white);position:relative;border:calc(.0625rem * var(--mantine-scale)) solid transparent;width:var(--radio-size);min-width:var(--radio-size);height:var(--radio-size);min-height:var(--radio-size);border-radius:var(--radio-radius, 10000px);transition:border-color .1s ease,background-color .1s ease;cursor:var(--mantine-cursor-type);-webkit-tap-highlight-color:transparent;display:flex;align-items:center;justify-content:center}:where([data-mantine-color-scheme=light]) .m_717d7ff6{background-color:var(--mantine-color-white);border-color:var(--mantine-color-gray-4)}:where([data-mantine-color-scheme=dark]) .m_717d7ff6{background-color:var(--mantine-color-dark-6);border-color:var(--mantine-color-dark-4)}.m_717d7ff6[data-indeterminate],.m_717d7ff6[data-checked]{background-color:var(--radio-color);border-color:var(--radio-color)}.m_717d7ff6[data-indeterminate]>.m_3e4da632,.m_717d7ff6[data-checked]>.m_3e4da632{opacity:1;transform:none;color:var(--radio-icon-color)}.m_717d7ff6[data-disabled]{cursor:not-allowed;background-color:var(--mantine-color-disabled);border-color:var(--mantine-color-disabled-border)}.m_717d7ff6[data-disabled][data-checked]>.m_3e4da632{color:var(--mantine-color-disabled-color)}.m_2980836c[data-indeterminate]:not([data-disabled]),.m_2980836c[data-checked]:not([data-disabled]){background-color:transparent;border-color:var(--radio-color)}.m_2980836c[data-indeterminate]:not([data-disabled])>.m_3e4da632,.m_2980836c[data-checked]:not([data-disabled])>.m_3e4da632{color:var(--radio-color);opacity:1;transform:none}.m_3e4da632{display:block;width:var(--radio-icon-size);height:var(--radio-icon-size);color:transparent;pointer-events:none;transform:translateY(calc(.3125rem * var(--mantine-scale))) scale(.5);opacity:1;transition:transform .1s ease,opacity .1s ease}.m_f3f1af94{--radio-size-xs: calc(1rem * var(--mantine-scale));--radio-size-sm: calc(1.25rem * var(--mantine-scale));--radio-size-md: calc(1.5rem * var(--mantine-scale));--radio-size-lg: calc(1.875rem * var(--mantine-scale));--radio-size-xl: calc(2.25rem * var(--mantine-scale));--radio-size: var(--radio-size-sm);--radio-icon-size-xs: calc(.375rem * var(--mantine-scale));--radio-icon-size-sm: calc(.5rem * var(--mantine-scale));--radio-icon-size-md: calc(.625rem * var(--mantine-scale));--radio-icon-size-lg: calc(.875rem * var(--mantine-scale));--radio-icon-size-xl: calc(1rem * var(--mantine-scale));--radio-icon-size: var(--radio-icon-size-sm);--radio-icon-color: var(--mantine-color-white)}.m_89c4f5e4{position:relative;width:var(--radio-size);height:var(--radio-size);order:1}.m_89c4f5e4:where([data-label-position=left]){order:2}.m_f3ed6b2b{color:var(--radio-icon-color);opacity:var(--radio-icon-opacity, 0);transform:var(--radio-icon-transform, scale(.2) translateY(calc(.625rem * var(--mantine-scale))));transition:opacity .1s ease,transform .2s ease;pointer-events:none;width:var(--radio-icon-size);height:var(--radio-icon-size);position:absolute;top:calc(50% - var(--radio-icon-size) / 2);left:calc(50% - var(--radio-icon-size) / 2)}.m_8a3dbb89{border:calc(.0625rem * var(--mantine-scale)) solid;position:relative;appearance:none;width:var(--radio-size);height:var(--radio-size);border-radius:var(--radio-radius, var(--radio-size));margin:0;display:flex;align-items:center;justify-content:center;transition-property:background-color,border-color;transition-timing-function:ease;transition-duration:.1s;cursor:var(--mantine-cursor-type);-webkit-tap-highlight-color:transparent}:where([data-mantine-color-scheme=light]) .m_8a3dbb89{background-color:var(--mantine-color-white);border-color:var(--mantine-color-gray-4)}:where([data-mantine-color-scheme=dark]) .m_8a3dbb89{background-color:var(--mantine-color-dark-6);border-color:var(--mantine-color-dark-4)}.m_8a3dbb89:checked{background-color:var(--radio-color, var(--mantine-primary-color-filled));border-color:var(--radio-color, var(--mantine-primary-color-filled))}.m_8a3dbb89:checked+.m_f3ed6b2b{--radio-icon-opacity: 1;--radio-icon-transform: scale(1)}.m_8a3dbb89:disabled{cursor:not-allowed;background-color:var(--mantine-color-disabled);border-color:var(--mantine-color-disabled-border)}.m_8a3dbb89:disabled+.m_f3ed6b2b{--radio-icon-color: var(--mantine-color-disabled-color)}.m_8a3dbb89:where([data-error]){border-color:var(--mantine-color-error)}.m_1bfe9d39+.m_f3ed6b2b{--radio-icon-color: var(--radio-color)}.m_1bfe9d39:checked:not(:disabled){background-color:transparent;border-color:var(--radio-color)}.m_1bfe9d39:checked:not(:disabled)+.m_f3ed6b2b{--radio-icon-color: var(--radio-color);--radio-icon-opacity: 1;--radio-icon-transform: none}.m_f8d312f2{--rating-size-xs: calc(.875rem * var(--mantine-scale));--rating-size-sm: calc(1.125rem * var(--mantine-scale));--rating-size-md: calc(1.25rem * var(--mantine-scale));--rating-size-lg: calc(1.75rem * var(--mantine-scale));--rating-size-xl: calc(2rem * var(--mantine-scale));display:flex;width:max-content}.m_f8d312f2:where(:has(input:disabled)){pointer-events:none}.m_61734bb7{position:relative;transition:transform .1s ease}.m_61734bb7:where([data-active]){z-index:1;transform:scale(1.1)}.m_5662a89a{width:var(--rating-size);height:var(--rating-size);display:block}:where([data-mantine-color-scheme=light]) .m_5662a89a{fill:var(--mantine-color-gray-3);stroke:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_5662a89a{fill:var(--mantine-color-dark-3);stroke:var(--mantine-color-dark-3)}.m_5662a89a:where([data-filled]){fill:var(--rating-color);stroke:var(--rating-color)}.m_211007ba{height:0;width:0;position:absolute;overflow:hidden;white-space:nowrap;opacity:0;-webkit-tap-highlight-color:transparent}.m_211007ba:focus-visible+label{outline:2px solid var(--mantine-primary-color-filled);outline-offset:calc(.125rem * var(--mantine-scale))}.m_21342ee4{display:block;cursor:pointer;position:absolute;top:0;left:0;z-index:var(--rating-item-z-index, 0);-webkit-tap-highlight-color:transparent}.m_21342ee4:where([data-read-only]){cursor:default}.m_21342ee4:where(:last-of-type){position:relative}.m_fae05d6a{clip-path:var(--rating-symbol-clip-path)}.m_1b3c8819{--tooltip-radius: var(--mantine-radius-default);position:absolute;padding:calc(var(--mantine-spacing-xs) / 2) var(--mantine-spacing-xs);pointer-events:none;font-size:var(--mantine-font-size-sm);white-space:nowrap;border-radius:var(--tooltip-radius)}:where([data-mantine-color-scheme=light]) .m_1b3c8819{background-color:var(--tooltip-bg, var(--mantine-color-gray-9));color:var(--tooltip-color, var(--mantine-color-white))}:where([data-mantine-color-scheme=dark]) .m_1b3c8819{background-color:var(--tooltip-bg, var(--mantine-color-gray-2));color:var(--tooltip-color, var(--mantine-color-black))}.m_1b3c8819:where([data-multiline]){white-space:normal}.m_1b3c8819:where([data-fixed]){position:fixed}.m_f898399f{background-color:inherit;border:0;z-index:1}.m_b32e4812{position:relative;width:var(--rp-size);height:var(--rp-size);min-width:var(--rp-size);min-height:var(--rp-size);--rp-transition-duration: 0ms}.m_d43b5134{width:var(--rp-size);height:var(--rp-size);min-width:var(--rp-size);min-height:var(--rp-size);transform:rotate(-90deg)}.m_b1ca1fbf{stroke:var(--curve-color, var(--rp-curve-root-color));transition:stroke-dashoffset var(--rp-transition-duration) ease,stroke-dasharray var(--rp-transition-duration) ease,stroke var(--rp-transition-duration)}[data-mantine-color-scheme=light] .m_b1ca1fbf{--rp-curve-root-color: var(--mantine-color-gray-2)}[data-mantine-color-scheme=dark] .m_b1ca1fbf{--rp-curve-root-color: var(--mantine-color-dark-4)}.m_b23f9dc4{position:absolute;top:50%;transform:translateY(-50%);inset-inline:var(--rp-label-offset)}.m_cf365364{--sc-padding-xs: calc(.125rem * var(--mantine-scale)) calc(.375rem * var(--mantine-scale));--sc-padding-sm: calc(.1875rem * var(--mantine-scale)) calc(.625rem * var(--mantine-scale));--sc-padding-md: calc(.25rem * var(--mantine-scale)) calc(.875rem * var(--mantine-scale));--sc-padding-lg: calc(.4375rem * var(--mantine-scale)) calc(1rem * var(--mantine-scale));--sc-padding-xl: calc(.625rem * var(--mantine-scale)) calc(1.25rem * var(--mantine-scale));--sc-transition-duration: .2s;--sc-padding: var(--sc-padding-sm);--sc-transition-timing-function: ease;--sc-font-size: var(--mantine-font-size-sm);position:relative;display:inline-flex;flex-direction:row;width:auto;border-radius:var(--sc-radius, var(--mantine-radius-default));overflow:hidden;padding:calc(.25rem * var(--mantine-scale))}.m_cf365364:where([data-full-width]){display:flex}.m_cf365364:where([data-orientation=vertical]){display:flex;flex-direction:column;width:max-content}.m_cf365364:where([data-orientation=vertical]):where([data-full-width]){width:auto}:where([data-mantine-color-scheme=light]) .m_cf365364{background-color:var(--mantine-color-gray-1)}:where([data-mantine-color-scheme=dark]) .m_cf365364{background-color:var(--mantine-color-dark-8)}.m_9e182ccd{position:absolute;display:block;z-index:1;border-radius:var(--sc-radius, var(--mantine-radius-default))}:where([data-mantine-color-scheme=light]) .m_9e182ccd{box-shadow:var(--sc-shadow, none);background-color:var(--sc-color, var(--mantine-color-white))}:where([data-mantine-color-scheme=dark]) .m_9e182ccd{box-shadow:none;background-color:var(--sc-color, var(--mantine-color-dark-5))}.m_1738fcb2{-webkit-tap-highlight-color:transparent;font-weight:500;display:block;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;user-select:none;border-radius:var(--sc-radius, var(--mantine-radius-default));font-size:var(--sc-font-size);padding:var(--sc-padding);transition:color var(--sc-transition-duration) var(--sc-transition-timing-function);cursor:pointer;outline:var(--segmented-control-outline, none)}:where([data-mantine-color-scheme=light]) .m_1738fcb2{color:var(--mantine-color-gray-7)}:where([data-mantine-color-scheme=dark]) .m_1738fcb2{color:var(--mantine-color-dark-1)}.m_1738fcb2:where([data-read-only]){cursor:default}fieldset:disabled .m_1738fcb2,.m_1738fcb2:where([data-disabled]){cursor:not-allowed;color:var(--mantine-color-disabled-color)}:where([data-mantine-color-scheme=light]) .m_1738fcb2:where([data-active]){color:var(--sc-label-color, var(--mantine-color-black))}:where([data-mantine-color-scheme=dark]) .m_1738fcb2:where([data-active]){color:var(--sc-label-color, var(--mantine-color-white))}.m_cf365364:where([data-initialized]) .m_1738fcb2:where([data-active]):before{display:none}.m_1738fcb2:where([data-active]):before{content:"";inset:0;z-index:0;position:absolute;border-radius:var(--sc-radius, var(--mantine-radius-default))}:where([data-mantine-color-scheme=light]) .m_1738fcb2:where([data-active]):before{box-shadow:var(--sc-shadow, none);background-color:var(--sc-color, var(--mantine-color-white))}:where([data-mantine-color-scheme=dark]) .m_1738fcb2:where([data-active]):before{box-shadow:none;background-color:var(--sc-color, var(--mantine-color-dark-5))}@media(hover:hover){:where([data-mantine-color-scheme=light]) .m_1738fcb2:where(:not([data-disabled],[data-active],[data-read-only])):hover{color:var(--mantine-color-black)}:where([data-mantine-color-scheme=dark]) .m_1738fcb2:where(:not([data-disabled],[data-active],[data-read-only])):hover{color:var(--mantine-color-white)}}@media(hover:none){:where([data-mantine-color-scheme=light]) .m_1738fcb2:where(:not([data-disabled],[data-active],[data-read-only])):active{color:var(--mantine-color-black)}:where([data-mantine-color-scheme=dark]) .m_1738fcb2:where(:not([data-disabled],[data-active],[data-read-only])):active{color:var(--mantine-color-white)}}@media(hover:hover){fieldset:disabled .m_1738fcb2:hover{color:var(--mantine-color-disabled-color)!important}}@media(hover:none){fieldset:disabled .m_1738fcb2:active{color:var(--mantine-color-disabled-color)!important}}.m_1714d588{height:0;width:0;position:absolute;overflow:hidden;white-space:nowrap;opacity:0}.m_1714d588[data-focus-ring=auto]:focus:focus-visible+.m_1738fcb2{--segmented-control-outline: 2px solid var(--mantine-primary-color-filled)}.m_1714d588[data-focus-ring=always]:focus+.m_1738fcb2{--segmented-control-outline: 2px solid var(--mantine-primary-color-filled)}.m_69686b9b{position:relative;flex:1;z-index:2;transition:border-color var(--sc-transition-duration) var(--sc-transition-timing-function)}.m_cf365364[data-with-items-borders] :where(.m_69686b9b):before{content:"";position:absolute;top:0;bottom:0;inset-inline-start:0;background-color:var(--separator-color);width:calc(.0625rem * var(--mantine-scale));transition:background-color var(--sc-transition-duration) var(--sc-transition-timing-function)}.m_69686b9b[data-orientation=vertical]:before{top:0;inset-inline:0;bottom:auto;height:calc(.0625rem * var(--mantine-scale));width:auto}:where([data-mantine-color-scheme=light]) .m_69686b9b{--separator-color: var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_69686b9b{--separator-color: var(--mantine-color-dark-4)}.m_69686b9b:first-of-type:before{--separator-color: transparent}[data-mantine-color-scheme] .m_69686b9b[data-active]:before,[data-mantine-color-scheme] .m_69686b9b[data-active]+.m_69686b9b:before{--separator-color: transparent}.m_78882f40{position:relative;z-index:2}.m_fa528724{--scp-filled-segment-color: var(--mantine-primary-color-filled);--scp-transition-duration: 0ms;--scp-thickness: calc(.625rem * var(--mantine-scale))}:where([data-mantine-color-scheme=light]) .m_fa528724{--scp-empty-segment-color: var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_fa528724{--scp-empty-segment-color: var(--mantine-color-dark-4)}.m_fa528724{position:relative;width:fit-content}.m_62e9e7e2{display:block;transform:var(--scp-rotation);overflow:hidden}.m_c573fb6f{transition:stroke-dashoffset var(--scp-transition-duration) ease,stroke-dasharray var(--scp-transition-duration) ease,stroke var(--scp-transition-duration)}.m_4fa340f2{position:absolute;margin:0;padding:0;inset-inline:0;text-align:center;z-index:1}.m_4fa340f2:where([data-position=bottom]){bottom:0;padding-inline:calc(var(--scp-thickness) * 2)}.m_4fa340f2:where([data-position=bottom]):where([data-orientation=down]){bottom:auto;top:0}.m_4fa340f2:where([data-position=center]){top:50%;padding-inline:calc(var(--scp-thickness) * 3)}.m_925c2d2c{container:simple-grid / inline-size}.m_2415a157{display:grid;grid-template-columns:repeat(var(--sg-cols),minmax(0,1fr));gap:var(--sg-spacing-y) var(--sg-spacing-x)}@keyframes m_299c329c{0%,to{opacity:.4}50%{opacity:1}}.m_18320242{height:var(--skeleton-height, auto);width:var(--skeleton-width, 100%);border-radius:var(--skeleton-radius, var(--mantine-radius-default));position:relative;transform:translateZ(0);-webkit-transform:translateZ(0)}.m_18320242:where([data-animate]):after{animation:m_299c329c 1.5s linear infinite}.m_18320242:where([data-visible]){overflow:hidden}.m_18320242:where([data-visible]):before{position:absolute;content:"";inset:0;z-index:10;background-color:var(--mantine-color-body)}.m_18320242:where([data-visible]):after{position:absolute;content:"";inset:0;z-index:11}:where([data-mantine-color-scheme=light]) .m_18320242:where([data-visible]):after{background-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_18320242:where([data-visible]):after{background-color:var(--mantine-color-dark-4)}.m_dd36362e{--slider-size-xs: calc(.25rem * var(--mantine-scale));--slider-size-sm: calc(.375rem * var(--mantine-scale));--slider-size-md: calc(.5rem * var(--mantine-scale));--slider-size-lg: calc(.625rem * var(--mantine-scale));--slider-size-xl: calc(.75rem * var(--mantine-scale));--slider-size: var(--slider-size-md);--slider-radius: calc(62.5rem * var(--mantine-scale));--slider-color: var(--mantine-primary-color-filled);--slider-track-disabled-bg: var(--mantine-color-disabled);-webkit-tap-highlight-color:transparent;outline:none;height:calc(var(--slider-size) * 2);padding-inline:var(--slider-size);display:flex;flex-direction:column;align-items:center;touch-action:none;position:relative}[data-mantine-color-scheme=light] .m_dd36362e{--slider-track-bg: var(--mantine-color-gray-2)}[data-mantine-color-scheme=dark] .m_dd36362e{--slider-track-bg: var(--mantine-color-dark-4)}.m_c9357328{position:absolute;top:calc(-2.25rem * var(--mantine-scale));font-size:var(--mantine-font-size-xs);color:var(--mantine-color-white);padding:calc(var(--mantine-spacing-xs) / 2);border-radius:var(--mantine-radius-sm);white-space:nowrap;pointer-events:none;user-select:none;touch-action:none}:where([data-mantine-color-scheme=light]) .m_c9357328{background-color:var(--mantine-color-gray-9)}:where([data-mantine-color-scheme=dark]) .m_c9357328{background-color:var(--mantine-color-dark-4)}.m_c9a9a60a{position:absolute;display:flex;height:var(--slider-thumb-size);width:var(--slider-thumb-size);border:calc(.25rem * var(--mantine-scale)) solid;transform:translate(-50%,-50%);top:50%;cursor:pointer;border-radius:var(--slider-radius);align-items:center;justify-content:center;transition:box-shadow .1s ease,transform .1s ease;z-index:3;user-select:none;touch-action:none;outline-offset:calc(.125rem * var(--mantine-scale));left:var(--slider-thumb-offset)}:where([dir=rtl]) .m_c9a9a60a{left:auto;right:calc(var(--slider-thumb-offset) - var(--slider-thumb-size))}fieldset:disabled .m_c9a9a60a,.m_c9a9a60a:where([data-disabled]){display:none}.m_c9a9a60a:where([data-dragging]){transform:translate(-50%,-50%) scale(1.05);box-shadow:var(--mantine-shadow-sm)}:where([data-mantine-color-scheme=light]) .m_c9a9a60a{color:var(--slider-color);border-color:var(--slider-color);background-color:var(--mantine-color-white)}:where([data-mantine-color-scheme=dark]) .m_c9a9a60a{color:var(--mantine-color-white);border-color:var(--mantine-color-white);background-color:var(--slider-color)}.m_a8645c2{display:flex;align-items:center;width:100%;height:calc(var(--slider-size) * 2);cursor:pointer}fieldset:disabled .m_a8645c2,.m_a8645c2:where([data-disabled]){cursor:not-allowed}.m_c9ade57f{position:relative;width:100%;height:var(--slider-size)}.m_c9ade57f:where([data-inverted]:not([data-disabled])){--track-bg: var(--slider-color)}fieldset:disabled .m_c9ade57f:where([data-inverted]),.m_c9ade57f:where([data-inverted][data-disabled]){--track-bg: var(--slider-track-disabled-bg)}.m_c9ade57f:before{content:"";position:absolute;top:0;bottom:0;border-radius:var(--slider-radius);inset-inline:calc(var(--slider-size) * -1);background-color:var(--track-bg, var(--slider-track-bg));z-index:0}.m_38aeed47{position:absolute;z-index:1;top:0;bottom:0;background-color:var(--slider-color);border-radius:var(--slider-radius);width:var(--slider-bar-width);inset-inline-start:var(--slider-bar-offset)}.m_38aeed47:where([data-inverted]){background-color:var(--slider-track-bg)}fieldset:disabled .m_38aeed47:where(:not([data-inverted])),.m_38aeed47:where([data-disabled]:not([data-inverted])){background-color:var(--mantine-color-disabled-color)}.m_b7b0423a{position:absolute;inset-inline-start:calc(var(--mark-offset) - var(--slider-size) / 2);top:0;z-index:2;height:0;pointer-events:none}.m_dd33bc19{border:calc(.125rem * var(--mantine-scale)) solid;height:var(--slider-size);width:var(--slider-size);border-radius:calc(62.5rem * var(--mantine-scale));background-color:var(--mantine-color-white);pointer-events:none}:where([data-mantine-color-scheme=light]) .m_dd33bc19{border-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_dd33bc19{border-color:var(--mantine-color-dark-4)}.m_dd33bc19:where([data-filled]){border-color:var(--slider-color)}.m_dd33bc19:where([data-filled]):where([data-disabled]){border-color:var(--mantine-color-disabled-border)}.m_68c77a5b{transform:translate(calc(-50% + var(--slider-size) / 2),calc(var(--mantine-spacing-xs) / 2));font-size:var(--mantine-font-size-sm);white-space:nowrap;cursor:pointer;user-select:none}:where([data-mantine-color-scheme=light]) .m_68c77a5b{color:var(--mantine-color-gray-6)}:where([data-mantine-color-scheme=dark]) .m_68c77a5b{color:var(--mantine-color-dark-2)}.m_559cce2d{position:relative}.m_559cce2d:where([data-has-spoiler]){margin-bottom:calc(1.5rem * var(--mantine-scale))}.m_b912df4e{display:flex;flex-direction:column;overflow:hidden;transition:max-height var(--spoiler-transition-duration, .2s) ease}.m_b9131032{position:absolute;inset-inline-start:0;top:100%;height:calc(1.5rem * var(--mantine-scale))}.m_6d731127{display:flex;flex-direction:column;align-items:var(--stack-align, stretch);justify-content:var(--stack-justify, flex-start);gap:var(--stack-gap, var(--mantine-spacing-md))}.m_cbb4ea7e{--stepper-icon-size-xs: calc(2.125rem * var(--mantine-scale));--stepper-icon-size-sm: calc(2.25rem * var(--mantine-scale));--stepper-icon-size-md: calc(2.625rem * var(--mantine-scale));--stepper-icon-size-lg: calc(3rem * var(--mantine-scale));--stepper-icon-size-xl: calc(3.25rem * var(--mantine-scale));--stepper-icon-size: var(--stepper-icon-size-md);--stepper-color: var(--mantine-primary-color-filled);--stepper-content-padding: var(--mantine-spacing-md);--stepper-spacing: var(--mantine-spacing-md);--stepper-radius: calc(62.5rem * var(--mantine-scale));--stepper-fz: var(--mantine-font-size-md);--stepper-outline-thickness: calc(.125rem * var(--mantine-scale))}[data-mantine-color-scheme=light] .m_cbb4ea7e{--stepper-outline-color: var(--mantine-color-gray-2)}[data-mantine-color-scheme=dark] .m_cbb4ea7e{--stepper-outline-color: var(--mantine-color-dark-5)}.m_aaf89d0b{display:flex;flex-wrap:nowrap;align-items:center}.m_aaf89d0b:where([data-wrap]){flex-wrap:wrap;gap:var(--mantine-spacing-md) 0}.m_aaf89d0b:where([data-orientation=vertical]){flex-direction:column}.m_aaf89d0b:where([data-orientation=vertical]):where([data-icon-position=left]){align-items:flex-start}.m_aaf89d0b:where([data-orientation=vertical]):where([data-icon-position=right]){align-items:flex-end}.m_aaf89d0b:where([data-orientation=horizontal]){flex-direction:row}.m_2a371ac9{transition:background-color .15s ease;flex:1;height:var(--stepper-outline-thickness);margin-inline:var(--mantine-spacing-md);background-color:var(--stepper-outline-color)}.m_2a371ac9:where([data-active]){background-color:var(--stepper-color)}.m_78da155d{padding-top:var(--stepper-content-padding)}.m_cbb57068{--step-color: var(--stepper-color);display:flex;cursor:default}.m_cbb57068:where([data-allow-click]){cursor:pointer}.m_cbb57068:where([data-icon-position=left]){flex-direction:row}.m_cbb57068:where([data-icon-position=right]){flex-direction:row-reverse}.m_f56b1e2c{align-items:center}.m_833edb7e{--separator-spacing: calc(var(--mantine-spacing-xs) / 2);justify-content:flex-start;min-height:calc(var(--stepper-icon-size) + var(--mantine-spacing-xl) + var(--separator-spacing));margin-top:var(--separator-spacing);overflow:hidden}.m_833edb7e:where(:first-of-type){margin-top:0}.m_833edb7e:where(:last-of-type){min-height:auto}.m_833edb7e:where(:last-of-type) .m_6496b3f3{display:none}.m_818e70b{position:relative}.m_6496b3f3{top:calc(var(--stepper-icon-size) + var(--separator-spacing));inset-inline-start:calc(var(--stepper-icon-size) / 2);height:100vh;position:absolute;border-inline-start:var(--stepper-outline-thickness) solid var(--stepper-outline-color)}.m_6496b3f3:where([data-active]){border-color:var(--stepper-color)}.m_1959ad01{height:var(--stepper-icon-size);width:var(--stepper-icon-size);min-height:var(--stepper-icon-size);min-width:var(--stepper-icon-size);border-radius:var(--stepper-radius);font-size:var(--stepper-fz);display:flex;align-items:center;justify-content:center;position:relative;font-weight:700;transition:background-color .15s ease,border-color .15s ease;border:var(--stepper-outline-thickness) solid var(--stepper-outline-color);background-color:var(--stepper-outline-color)}:where([data-mantine-color-scheme=light]) .m_1959ad01{color:var(--mantine-color-gray-7)}:where([data-mantine-color-scheme=dark]) .m_1959ad01{color:var(--mantine-color-dark-1)}.m_1959ad01:where([data-progress]){border-color:var(--step-color)}.m_1959ad01:where([data-completed]){color:var(--stepper-icon-color, var(--mantine-color-white));background-color:var(--step-color);border-color:var(--step-color)}.m_a79331dc{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:var(--stepper-icon-color, var(--mantine-color-white))}.m_1956aa2a{display:flex;flex-direction:column}.m_1956aa2a:where([data-icon-position=left]){margin-inline-start:var(--mantine-spacing-sm)}.m_1956aa2a:where([data-icon-position=right]){text-align:right;margin-inline-end:var(--mantine-spacing-sm)}:where([dir=rtl]) .m_1956aa2a:where([data-icon-position=right]){text-align:left}.m_12051f6c{font-weight:500;font-size:var(--stepper-fz);line-height:1}.m_164eea74{margin-top:calc(var(--stepper-spacing) / 3);margin-bottom:calc(var(--stepper-spacing) / 3);font-size:calc(var(--stepper-fz) - calc(.125rem * var(--mantine-scale)));line-height:1;color:var(--mantine-color-dimmed)}.m_5f93f3bb{--switch-height-xs: calc(1rem * var(--mantine-scale));--switch-height-sm: calc(1.25rem * var(--mantine-scale));--switch-height-md: calc(1.5rem * var(--mantine-scale));--switch-height-lg: calc(1.875rem * var(--mantine-scale));--switch-height-xl: calc(2.25rem * var(--mantine-scale));--switch-width-xs: calc(2rem * var(--mantine-scale));--switch-width-sm: calc(2.375rem * var(--mantine-scale));--switch-width-md: calc(2.875rem * var(--mantine-scale));--switch-width-lg: calc(3.5rem * var(--mantine-scale));--switch-width-xl: calc(4.5rem * var(--mantine-scale));--switch-thumb-size-xs: calc(.75rem * var(--mantine-scale));--switch-thumb-size-sm: calc(.875rem * var(--mantine-scale));--switch-thumb-size-md: calc(1.125rem * var(--mantine-scale));--switch-thumb-size-lg: calc(1.375rem * var(--mantine-scale));--switch-thumb-size-xl: calc(1.75rem * var(--mantine-scale));--switch-label-font-size-xs: calc(.3125rem * var(--mantine-scale));--switch-label-font-size-sm: calc(.375rem * var(--mantine-scale));--switch-label-font-size-md: calc(.4375rem * var(--mantine-scale));--switch-label-font-size-lg: calc(.5625rem * var(--mantine-scale));--switch-label-font-size-xl: calc(.6875rem * var(--mantine-scale));--switch-track-label-padding-xs: calc(.125rem * var(--mantine-scale));--switch-track-label-padding-sm: calc(.15625rem * var(--mantine-scale));--switch-track-label-padding-md: calc(.1875rem * var(--mantine-scale));--switch-track-label-padding-lg: calc(.1875rem * var(--mantine-scale));--switch-track-label-padding-xl: calc(.21875rem * var(--mantine-scale));--switch-height: var(--switch-height-sm);--switch-width: var(--switch-width-sm);--switch-thumb-size: var(--switch-thumb-size-sm);--switch-label-font-size: var(--switch-label-font-size-sm);--switch-track-label-padding: var(--switch-track-label-padding-sm);--switch-radius: calc(62.5rem * var(--mantine-scale));--switch-color: var(--mantine-primary-color-filled);--switch-disabled-color: var(--mantine-color-disabled);position:relative}.m_926b4011{height:0;width:0;opacity:0;margin:0;padding:0;position:absolute;overflow:hidden;white-space:nowrap}.m_9307d992{-webkit-tap-highlight-color:transparent;cursor:var(--switch-cursor, var(--mantine-cursor-type));overflow:hidden;position:relative;border-radius:var(--switch-radius);background-color:var(--switch-bg);height:var(--switch-height);min-width:var(--switch-width);margin:0;transition:background-color .15s ease,border-color .15s ease;appearance:none;display:flex;align-items:center;font-size:var(--switch-label-font-size);font-weight:600;order:var(--switch-order, 1);user-select:none;z-index:0;line-height:0;color:var(--switch-text-color)}.m_9307d992:where([data-without-labels]){width:var(--switch-width)}.m_926b4011:focus-visible+.m_9307d992{outline:2px solid var(--mantine-primary-color-filled);outline-offset:calc(.125rem * var(--mantine-scale))}.m_926b4011:checked+.m_9307d992{--switch-bg: var(--switch-color);--switch-text-color: var(--mantine-color-white)}.m_926b4011:disabled+.m_9307d992,.m_926b4011[data-disabled]+.m_9307d992{--switch-bg: var(--switch-disabled-color);--switch-cursor: not-allowed}[data-mantine-color-scheme=light] .m_9307d992{--switch-bg: var(--mantine-color-gray-3);--switch-text-color: var(--mantine-color-gray-6)}[data-mantine-color-scheme=dark] .m_9307d992{--switch-bg: var(--mantine-color-dark-5);--switch-text-color: var(--mantine-color-dark-1)}.m_9307d992[data-label-position=left]{--switch-order: 2}.m_93039a1d{position:absolute;z-index:1;border-radius:var(--switch-radius);display:flex;background-color:var(--switch-thumb-bg, var(--mantine-color-white));height:var(--switch-thumb-size);width:var(--switch-thumb-size);inset-inline-start:var(--switch-thumb-start, var(--switch-track-label-padding));transition:inset-inline-start .15s ease}.m_93039a1d:where([data-with-thumb-indicator]):before{content:"";width:40%;height:40%;background-color:var(--switch-bg);position:absolute;border-radius:var(--switch-radius);top:50%;left:50%;transform:translate(-50%,-50%)}.m_93039a1d>*{margin:auto}.m_926b4011:checked+*>.m_93039a1d{--switch-thumb-start: calc(100% - var(--switch-thumb-size) - var(--switch-track-label-padding))}.m_926b4011:disabled+*>.m_93039a1d,.m_926b4011[data-disabled]+*>.m_93039a1d{--switch-thumb-bg: var(--switch-thumb-bg-disabled)}[data-mantine-color-scheme=light] .m_93039a1d{--switch-thumb-bg-disabled: var(--mantine-color-gray-0)}[data-mantine-color-scheme=dark] .m_93039a1d{--switch-thumb-bg-disabled: var(--mantine-color-dark-3)}.m_8277e082{height:100%;display:grid;place-content:center;min-width:calc(var(--switch-width) - var(--switch-thumb-size));padding-inline:var(--switch-track-label-padding);margin-inline-start:calc(var(--switch-thumb-size) + var(--switch-track-label-padding));transition:margin .15s ease}.m_926b4011:checked+*>.m_8277e082{margin-inline-end:calc(var(--switch-thumb-size) + var(--switch-track-label-padding));margin-inline-start:0}.m_b23fa0ef{width:100%;border-collapse:collapse;border-spacing:0;line-height:var(--mantine-line-height);font-size:var(--mantine-font-size-sm);table-layout:var(--table-layout, auto);caption-side:var(--table-caption-side, bottom);border:none}:where([data-mantine-color-scheme=light]) .m_b23fa0ef{--table-hover-color: var(--mantine-color-gray-1);--table-striped-color: var(--mantine-color-gray-0);--table-border-color: var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_b23fa0ef{--table-hover-color: var(--mantine-color-dark-5);--table-striped-color: var(--mantine-color-dark-6);--table-border-color: var(--mantine-color-dark-4)}.m_b23fa0ef:where([data-with-table-border]){border:calc(.0625rem * var(--mantine-scale)) solid var(--table-border-color)}.m_b23fa0ef:where([data-tabular-nums]){font-variant-numeric:tabular-nums}.m_b23fa0ef:where([data-variant=vertical]) :where(.m_4e7aa4f3){font-weight:500}:where([data-mantine-color-scheme=light]) .m_b23fa0ef:where([data-variant=vertical]) :where(.m_4e7aa4f3){background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_b23fa0ef:where([data-variant=vertical]) :where(.m_4e7aa4f3){background-color:var(--mantine-color-dark-6)}.m_4e7aa4f3{text-align:left}:where([dir=rtl]) .m_4e7aa4f3{text-align:right}.m_4e7aa4fd{border-bottom:none;background-color:transparent}@media(hover:hover){.m_4e7aa4fd:hover:where([data-hover]){background-color:var(--tr-hover-bg)}}@media(hover:none){.m_4e7aa4fd:active:where([data-hover]){background-color:var(--tr-hover-bg)}}.m_4e7aa4fd:where([data-with-row-border]){border-bottom:calc(.0625rem * var(--mantine-scale)) solid var(--table-border-color)}.m_4e7aa4ef,.m_4e7aa4f3{padding:var(--table-vertical-spacing) var(--table-horizontal-spacing, var(--mantine-spacing-xs))}.m_4e7aa4ef:where([data-with-column-border]:not(:first-child)),.m_4e7aa4f3:where([data-with-column-border]:not(:first-child)){border-inline-start:calc(.0625rem * var(--mantine-scale)) solid var(--table-border-color)}.m_4e7aa4ef:where([data-with-column-border]:not(:last-child)),.m_4e7aa4f3:where([data-with-column-border]:not(:last-child)){border-inline-end:calc(.0625rem * var(--mantine-scale)) solid var(--table-border-color)}.m_b2404537>:where(tr):where([data-with-row-border]:last-of-type){border-bottom:none}.m_b2404537>:where(tr):where([data-striped=odd]:nth-of-type(odd)){background-color:var(--table-striped-color)}.m_b2404537>:where(tr):where([data-striped=even]:nth-of-type(2n)){background-color:var(--table-striped-color)}.m_b2404537>:where(tr)[data-hover]{--tr-hover-bg: var(--table-highlight-on-hover-color, var(--table-hover-color))}.m_b242d975{top:var(--table-sticky-header-offset, 0);z-index:3}.m_b242d975:where([data-sticky]){position:sticky}.m_b242d975:where([data-sticky]) :where(.m_4e7aa4f3){position:sticky;top:var(--table-sticky-header-offset, 0);background-color:var(--mantine-color-body)}:where([data-with-table-border]) .m_b242d975[data-sticky]{position:sticky;top:var(--table-sticky-header-offset, 0);z-index:4;border-top:none}:where([data-with-table-border]) .m_b242d975[data-sticky]:before{content:"";display:block;position:absolute;left:0;top:calc(-.03125rem * var(--mantine-scale));width:100%;height:calc(.0625rem * var(--mantine-scale));background-color:var(--table-border-color);z-index:5}:where([data-with-table-border]) .m_b242d975[data-sticky] .m_4e7aa4f3:first-child{border-top:none}.m_9e5a3ac7{color:var(--mantine-color-dimmed)}.m_9e5a3ac7:where([data-side=top]){margin-bottom:var(--mantine-spacing-xs)}.m_9e5a3ac7:where([data-side=bottom]){margin-top:var(--mantine-spacing-xs)}.m_a100c15{overflow-x:var(--table-overflow)}.m_62259741{min-width:var(--table-min-width);max-height:var(--table-max-height)}.m_bcaa9990{display:flex;flex-direction:column;--toc-depth-offset: .8em}.m_375a65ef{display:block;padding:.3em .8em;font-size:var(--toc-size, var(--mantine-font-size-md));border-radius:var(--toc-radius, var(--mantine-radius-default));padding-left:max(calc(var(--depth-offset) * var(--toc-depth-offset)),.8em)}@media(hover:hover){:where([data-mantine-color-scheme=light]) .m_375a65ef:where(:hover):where(:not([data-variant=none])){background-color:var(--mantine-color-gray-1)}:where([data-mantine-color-scheme=dark]) .m_375a65ef:where(:hover):where(:not([data-variant=none])){background-color:var(--mantine-color-dark-5)}}@media(hover:none){:where([data-mantine-color-scheme=light]) .m_375a65ef:where(:active):where(:not([data-variant=none])){background-color:var(--mantine-color-gray-1)}:where([data-mantine-color-scheme=dark]) .m_375a65ef:where(:active):where(:not([data-variant=none])){background-color:var(--mantine-color-dark-5)}}.m_375a65ef:where([data-active]){background-color:var(--toc-bg);color:var(--toc-color)}[data-mantine-color-scheme=light] .m_89d60db1{--tab-border-color: var(--mantine-color-gray-3)}[data-mantine-color-scheme=dark] .m_89d60db1{--tab-border-color: var(--mantine-color-dark-4)}.m_89d60db1{display:var(--tabs-display);flex-direction:var(--tabs-flex-direction);--tabs-list-direction: row;--tabs-panel-grow: unset;--tabs-display: block;--tabs-flex-direction: row;--tabs-list-border-width: 0;--tabs-list-border-size: 0 0 var(--tabs-list-border-width) 0;--tabs-list-gap: unset;--tabs-list-line-bottom: 0;--tabs-list-line-top: unset;--tabs-list-line-start: 0;--tabs-list-line-end: 0;--tab-radius: var(--tabs-radius) var(--tabs-radius) 0 0;--tab-border-width: 0 0 var(--tabs-list-border-width) 0}.m_89d60db1[data-inverted]{--tabs-list-line-bottom: unset;--tabs-list-line-top: 0;--tab-radius: 0 0 var(--tabs-radius) var(--tabs-radius);--tab-border-width: var(--tabs-list-border-width) 0 0 0}.m_89d60db1[data-inverted] .m_576c9d4:before{top:0;bottom:unset}.m_89d60db1[data-orientation=vertical]{--tabs-list-line-start: unset;--tabs-list-line-end: 0;--tabs-list-line-top: 0;--tabs-list-line-bottom: 0;--tabs-list-border-size: 0 var(--tabs-list-border-width) 0 0;--tab-border-width: 0 var(--tabs-list-border-width) 0 0;--tab-radius: var(--tabs-radius) 0 0 var(--tabs-radius);--tabs-list-direction: column;--tabs-panel-grow: 1;--tabs-display: flex}[dir=rtl] .m_89d60db1[data-orientation=vertical]{--tabs-list-border-size: 0 0 0 var(--tabs-list-border-width);--tab-border-width: 0 0 0 var(--tabs-list-border-width);--tab-radius: 0 var(--tabs-radius) var(--tabs-radius) 0}.m_89d60db1[data-orientation=vertical][data-placement=right]{--tabs-flex-direction: row-reverse;--tabs-list-line-start: 0;--tabs-list-line-end: unset;--tabs-list-border-size: 0 0 0 var(--tabs-list-border-width);--tab-border-width: 0 0 0 var(--tabs-list-border-width);--tab-radius: 0 var(--tabs-radius) var(--tabs-radius) 0}[dir=rtl] .m_89d60db1[data-orientation=vertical][data-placement=right]{--tabs-list-border-size: 0 var(--tabs-list-border-width) 0 0;--tab-border-width: 0 var(--tabs-list-border-width) 0 0;--tab-radius: var(--tabs-radius) 0 0 var(--tabs-radius)}.m_89d60db1[data-variant=default]{--tabs-list-border-width: calc(.125rem * var(--mantine-scale))}[data-mantine-color-scheme=light] .m_89d60db1[data-variant=default]{--tab-hover-color: var(--mantine-color-gray-0)}[data-mantine-color-scheme=dark] .m_89d60db1[data-variant=default]{--tab-hover-color: var(--mantine-color-dark-6)}.m_89d60db1[data-variant=outline]{--tabs-list-border-width: calc(.0625rem * var(--mantine-scale))}.m_89d60db1[data-variant=pills]{--tabs-list-gap: calc(var(--mantine-spacing-sm) / 2)}[data-mantine-color-scheme=light] .m_89d60db1[data-variant=pills]{--tab-hover-color: var(--mantine-color-gray-0)}[data-mantine-color-scheme=dark] .m_89d60db1[data-variant=pills]{--tab-hover-color: var(--mantine-color-dark-6)}.m_89d33d6d{display:flex;flex-wrap:wrap;justify-content:var(--tabs-justify, flex-start);flex-direction:var(--tabs-list-direction);gap:var(--tabs-list-gap)}.m_89d33d6d:where([data-grow]) .m_4ec4dce6{flex:1}.m_b0c91715{flex-grow:var(--tabs-panel-grow)}.m_4ec4dce6{position:relative;padding:var(--mantine-spacing-xs) var(--mantine-spacing-md);font-size:var(--mantine-font-size-sm);white-space:nowrap;z-index:0;display:flex;align-items:center;line-height:1;user-select:none}.m_4ec4dce6:where(:disabled,[data-disabled]){opacity:.5;cursor:not-allowed}.m_4ec4dce6:focus{z-index:1}.m_fc420b1f{display:flex;align-items:center;justify-content:center}.m_fc420b1f:where([data-position=left]:not(:only-child)){margin-inline-end:var(--mantine-spacing-xs)}.m_fc420b1f:where([data-position=right]:not(:only-child)){margin-inline-start:var(--mantine-spacing-xs)}.m_42bbd1ae{flex:1;text-align:center}.m_576c9d4{position:relative}.m_576c9d4:before{content:"";position:absolute;border:1px solid var(--tab-border-color);bottom:var(--tabs-list-line-bottom);inset-inline-start:var(--tabs-list-line-start);inset-inline-end:var(--tabs-list-line-end);top:var(--tabs-list-line-top)}.m_539e827b{border-radius:var(--tab-radius);border-width:var(--tab-border-width);border-style:solid;border-color:transparent;background-color:transparent}.m_539e827b:where([data-active]){border-color:var(--tabs-color)}@media(hover:hover){.m_539e827b:hover{background-color:var(--tab-hover-color)}.m_539e827b:hover:where(:not([data-active])){border-color:var(--tab-border-color)}}@media(hover:none){.m_539e827b:active{background-color:var(--tab-hover-color)}.m_539e827b:active:where(:not([data-active])){border-color:var(--tab-border-color)}}@media(hover:hover){.m_539e827b:disabled:hover,.m_539e827b[data-disabled]:hover{background-color:transparent}}@media(hover:none){.m_539e827b:disabled:active,.m_539e827b[data-disabled]:active{background-color:transparent}}.m_6772fbd5{position:relative}.m_6772fbd5:before{content:"";position:absolute;border-color:var(--tab-border-color);border-width:var(--tabs-list-border-size);border-style:solid;bottom:var(--tabs-list-line-bottom);inset-inline-start:var(--tabs-list-line-start);inset-inline-end:var(--tabs-list-line-end);top:var(--tabs-list-line-top)}.m_b59ab47c{border-top:calc(.0625rem * var(--mantine-scale)) solid transparent;border-bottom:calc(.0625rem * var(--mantine-scale)) solid transparent;border-right:calc(.0625rem * var(--mantine-scale)) solid transparent;border-left:calc(.0625rem * var(--mantine-scale)) solid transparent;border-top-color:var(--tab-border-top-color);border-bottom-color:var(--tab-border-bottom-color);border-radius:var(--tab-radius);position:relative;--tab-border-bottom-color: transparent;--tab-border-top-color: transparent;--tab-border-inline-end-color: transparent;--tab-border-inline-start-color: transparent}.m_b59ab47c:where([data-active]):before{content:"";position:absolute;background-color:var(--tab-border-color);bottom:var(--tab-before-bottom, calc(-.0625rem * var(--mantine-scale)));left:var(--tab-before-left, calc(-.0625rem * var(--mantine-scale)));right:var(--tab-before-right, auto);top:var(--tab-before-top, auto);width:calc(.0625rem * var(--mantine-scale));height:calc(.0625rem * var(--mantine-scale))}.m_b59ab47c:where([data-active]):after{content:"";position:absolute;background-color:var(--tab-border-color);bottom:var(--tab-after-bottom, calc(-.0625rem * var(--mantine-scale)));right:var(--tab-after-right, calc(-.0625rem * var(--mantine-scale)));left:var(--tab-after-left, auto);top:var(--tab-after-top, auto);width:calc(.0625rem * var(--mantine-scale));height:calc(.0625rem * var(--mantine-scale))}.m_b59ab47c:where([data-active]){border-top-color:var(--tab-border-top-color);border-bottom-color:var(--tab-border-bottom-color);border-inline-start-color:var(--tab-border-inline-start-color);border-inline-end-color:var(--tab-border-inline-end-color);--tab-border-top-color: var(--tab-border-color);--tab-border-inline-start-color: var(--tab-border-color);--tab-border-inline-end-color: var(--tab-border-color);--tab-border-bottom-color: var(--mantine-color-body)}.m_b59ab47c:where([data-active])[data-inverted]{--tab-border-bottom-color: var(--tab-border-color);--tab-border-top-color: var(--mantine-color-body);--tab-before-bottom: auto;--tab-before-top: calc(-.0625rem * var(--mantine-scale));--tab-after-bottom: auto;--tab-after-top: calc(-.0625rem * var(--mantine-scale))}.m_b59ab47c:where([data-active])[data-orientation=vertical][data-placement=left]{--tab-border-inline-end-color: var(--mantine-color-body);--tab-border-inline-start-color: var(--tab-border-color);--tab-border-bottom-color: var(--tab-border-color);--tab-before-right: calc(-.0625rem * var(--mantine-scale));--tab-before-left: auto;--tab-before-bottom: auto;--tab-before-top: calc(-.0625rem * var(--mantine-scale));--tab-after-left: auto;--tab-after-right: calc(-.0625rem * var(--mantine-scale))}[dir=rtl] .m_b59ab47c:where([data-active])[data-orientation=vertical][data-placement=left]{--tab-before-right: auto;--tab-before-left: calc(-.0625rem * var(--mantine-scale));--tab-after-left: calc(-.0625rem * var(--mantine-scale));--tab-after-right: auto}.m_b59ab47c:where([data-active])[data-orientation=vertical][data-placement=right]{--tab-border-inline-start-color: var(--mantine-color-body);--tab-border-inline-end-color: var(--tab-border-color);--tab-border-bottom-color: var(--tab-border-color);--tab-before-left: calc(-.0625rem * var(--mantine-scale));--tab-before-right: auto;--tab-before-bottom: auto;--tab-before-top: calc(-.0625rem * var(--mantine-scale));--tab-after-right: auto;--tab-after-left: calc(-.0625rem * var(--mantine-scale))}[dir=rtl] .m_b59ab47c:where([data-active])[data-orientation=vertical][data-placement=right]{--tab-before-left: auto;--tab-before-right: calc(-.0625rem * var(--mantine-scale));--tab-after-right: calc(-.0625rem * var(--mantine-scale));--tab-after-left: auto}.m_c3381914{border-radius:var(--tabs-radius);background-color:var(--tab-bg);color:var(--tab-color);--tab-bg: transparent;--tab-color: inherit}@media(hover:hover){.m_c3381914:not([data-disabled]):hover{--tab-bg: var(--tab-hover-color)}}@media(hover:none){.m_c3381914:not([data-disabled]):active{--tab-bg: var(--tab-hover-color)}}.m_c3381914[data-active][data-active]{--tab-bg: var(--tabs-color);--tab-color: var(--tabs-text-color, var(--mantine-color-white))}@media(hover:hover){.m_c3381914[data-active][data-active]:hover{--tab-bg: var(--tabs-color)}}@media(hover:none){.m_c3381914[data-active][data-active]:active{--tab-bg: var(--tabs-color)}}.m_7341320d{--ti-size-xs: calc(1.125rem * var(--mantine-scale));--ti-size-sm: calc(1.375rem * var(--mantine-scale));--ti-size-md: calc(1.75rem * var(--mantine-scale));--ti-size-lg: calc(2.125rem * var(--mantine-scale));--ti-size-xl: calc(2.75rem * var(--mantine-scale));--ti-size: var(--ti-size-md);line-height:1;display:inline-flex;align-items:center;justify-content:center;position:relative;user-select:none;width:var(--ti-size);height:var(--ti-size);min-width:var(--ti-size);min-height:var(--ti-size);border-radius:var(--ti-radius, var(--mantine-radius-default));background:var(--ti-bg, var(--mantine-primary-color-filled));color:var(--ti-color, var(--mantine-color-white));border:var(--ti-bd, 1px solid transparent)}.m_43657ece{--offset: calc(var(--tl-bullet-size) / 2 + var(--tl-line-width) / 2);--tl-bullet-size: calc(1.25rem * var(--mantine-scale));--tl-line-width: calc(.25rem * var(--mantine-scale));--tl-radius: calc(62.5rem * var(--mantine-scale));--tl-color: var(--mantine-primary-color-filled)}.m_43657ece:where([data-align=left]){padding-inline-start:var(--offset)}.m_43657ece:where([data-align=right]){padding-inline-end:var(--offset)}.m_2ebe8099{font-weight:500;line-height:1;margin-bottom:calc(var(--mantine-spacing-xs) / 2)}.m_436178ff{--item-border: var(--tl-line-width) var(--tli-border-style, solid) var(--item-border-color);position:relative;color:var(--mantine-color-text)}.m_436178ff:before{content:"";pointer-events:none;position:absolute;top:0;left:var(--timeline-line-left, 0);right:var(--timeline-line-right, 0);bottom:calc(var(--mantine-spacing-xl) * -1);border-inline-start:var(--item-border);display:var(--timeline-line-display, none)}.m_43657ece[data-align=left] .m_436178ff:before{--timeline-line-left: calc(var(--tl-line-width) * -1);--timeline-line-right: auto}[dir=rtl] .m_43657ece[data-align=left] .m_436178ff:before{--timeline-line-left: auto;--timeline-line-right: calc(var(--tl-line-width) * -1)}.m_43657ece[data-align=right] .m_436178ff:before{--timeline-line-left: auto;--timeline-line-right: calc(var(--tl-line-width) * -1)}[dir=rtl] .m_43657ece[data-align=right] .m_436178ff:before{--timeline-line-left: calc(var(--tl-line-width) * -1);--timeline-line-right: auto}.m_43657ece:where([data-align=left]) .m_436178ff{padding-inline-start:var(--offset);text-align:left}.m_43657ece:where([data-align=right]) .m_436178ff{padding-inline-end:var(--offset);text-align:right}:where([data-mantine-color-scheme=light]) .m_436178ff{--item-border-color: var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_436178ff{--item-border-color: var(--mantine-color-dark-4)}.m_436178ff:where([data-line-active]):before{border-color:var(--tli-color, var(--tl-color))}.m_436178ff:where(:not(:last-of-type)){--timeline-line-display: block}.m_436178ff:where(:not(:first-of-type)){margin-top:var(--mantine-spacing-xl)}.m_8affcee1{width:var(--tl-bullet-size);height:var(--tl-bullet-size);border-radius:var(--tli-radius, var(--tl-radius));border:var(--tl-line-width) solid;background-color:var(--mantine-color-body);position:absolute;top:0;display:flex;align-items:center;justify-content:center;color:var(--mantine-color-text)}:where([data-mantine-color-scheme=light]) .m_8affcee1{border-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_8affcee1{border-color:var(--mantine-color-dark-4)}.m_43657ece:where([data-align=left]) .m_8affcee1{left:calc((var(--tl-bullet-size) / 2 + var(--tl-line-width) / 2) * -1);right:auto}:where([dir=rtl]) .m_43657ece:where([data-align=left]) .m_8affcee1{left:auto;right:calc((var(--tl-bullet-size) / 2 + var(--tl-line-width) / 2) * -1)}.m_43657ece:where([data-align=right]) .m_8affcee1{left:auto;right:calc((var(--tl-bullet-size) / 2 + var(--tl-line-width) / 2) * -1)}:where([dir=rtl]) .m_43657ece:where([data-align=right]) .m_8affcee1{left:calc((var(--tl-bullet-size) / 2 + var(--tl-line-width) / 2) * -1);right:auto}.m_8affcee1:where([data-with-child]){border-width:var(--tl-line-width)}:where([data-mantine-color-scheme=light]) .m_8affcee1:where([data-with-child]){background-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_8affcee1:where([data-with-child]){background-color:var(--mantine-color-dark-4)}.m_8affcee1:where([data-active]){border-color:var(--tli-color, var(--tl-color));background-color:var(--mantine-color-white);color:var(--tl-icon-color, var(--mantine-color-white))}.m_8affcee1:where([data-active]):where([data-with-child]){background-color:var(--tli-color, var(--tl-color));color:var(--tl-icon-color, var(--mantine-color-white))}.m_43657ece:where([data-align=left]) .m_540e8f41{padding-inline-start:var(--offset);text-align:left}:where([dir=rtl]) .m_43657ece:where([data-align=left]) .m_540e8f41{text-align:right}.m_43657ece:where([data-align=right]) .m_540e8f41{padding-inline-end:var(--offset);text-align:right}:where([dir=rtl]) .m_43657ece:where([data-align=right]) .m_540e8f41{text-align:left}.m_8a5d1357{margin:0;font-weight:var(--title-fw);font-size:var(--title-fz);line-height:var(--title-lh);font-family:var(--mantine-font-family-headings);text-wrap:var(--title-text-wrap, var(--mantine-heading-text-wrap))}.m_8a5d1357:where([data-line-clamp]){overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:var(--title-line-clamp);-webkit-box-orient:vertical}.m_f698e191{--level-offset: var(--mantine-spacing-lg);margin:0;padding:0;user-select:none}.m_75f3ecf{margin:0;padding:0}.m_f6970eb1{cursor:pointer;list-style:none;margin:0;padding:0;outline:0}.m_f6970eb1:focus-visible>.m_dc283425{outline:2px solid var(--mantine-primary-color-filled);outline-offset:calc(.125rem * var(--mantine-scale))}.m_dc283425{padding-inline-start:var(--label-offset)}:where([data-mantine-color-scheme=light]) .m_dc283425:where([data-selected]){background-color:var(--mantine-color-gray-1)}:where([data-mantine-color-scheme=dark]) .m_dc283425:where([data-selected]){background-color:var(--mantine-color-dark-5)}.m_d08caa0 :first-child{margin-top:0}.m_d08caa0 :last-child{margin-bottom:0}.m_d08caa0 :where(h1,h2,h3,h4,h5,h6){margin-bottom:var(--mantine-spacing-xs);text-wrap:var(--mantine-heading-text-wrap);font-family:var(--mantine-font-family-headings)}.m_d08caa0 :where(h1){margin-top:calc(1.5 * var(--mantine-spacing-xl));font-size:var(--mantine-h1-font-size);line-height:var(--mantine-h1-line-height);font-weight:var(--mantine-h1-font-weight)}.m_d08caa0 :where(h2){margin-top:var(--mantine-spacing-xl);font-size:var(--mantine-h2-font-size);line-height:var(--mantine-h2-line-height);font-weight:var(--mantine-h2-font-weight)}.m_d08caa0 :where(h3){margin-top:calc(.8 * var(--mantine-spacing-xl));font-size:var(--mantine-h3-font-size);line-height:var(--mantine-h3-line-height);font-weight:var(--mantine-h3-font-weight)}.m_d08caa0 :where(h4){margin-top:calc(.8 * var(--mantine-spacing-xl));font-size:var(--mantine-h4-font-size);line-height:var(--mantine-h4-line-height);font-weight:var(--mantine-h4-font-weight)}.m_d08caa0 :where(h5){margin-top:calc(.5 * var(--mantine-spacing-xl));font-size:var(--mantine-h5-font-size);line-height:var(--mantine-h5-line-height);font-weight:var(--mantine-h5-font-weight)}.m_d08caa0 :where(h6){margin-top:calc(.5 * var(--mantine-spacing-xl));font-size:var(--mantine-h6-font-size);line-height:var(--mantine-h6-line-height);font-weight:var(--mantine-h6-font-weight)}.m_d08caa0 :where(img){max-width:100%;margin-bottom:var(--mantine-spacing-xs)}.m_d08caa0 :where(p){margin-top:0;margin-bottom:var(--mantine-spacing-lg)}:where([data-mantine-color-scheme=light]) .m_d08caa0 :where(mark){background-color:var(--mantine-color-yellow-2);color:inherit}:where([data-mantine-color-scheme=dark]) .m_d08caa0 :where(mark){background-color:var(--mantine-color-yellow-5);color:var(--mantine-color-black)}.m_d08caa0 :where(a){color:var(--mantine-color-anchor);text-decoration:none}@media(hover:hover){.m_d08caa0 :where(a):hover{text-decoration:underline}}@media(hover:none){.m_d08caa0 :where(a):active{text-decoration:underline}}.m_d08caa0 :where(hr){margin-top:var(--mantine-spacing-md);margin-bottom:var(--mantine-spacing-md);border:0;border-top:calc(.0625rem * var(--mantine-scale)) solid}:where([data-mantine-color-scheme=light]) .m_d08caa0 :where(hr){border-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_d08caa0 :where(hr){border-color:var(--mantine-color-dark-3)}.m_d08caa0 :where(pre){padding:var(--mantine-spacing-xs);line-height:var(--mantine-line-height);margin:0;margin-top:var(--mantine-spacing-md);margin-bottom:var(--mantine-spacing-md);overflow-x:auto;font-family:var(--mantine-font-family-monospace);font-size:var(--mantine-font-size-xs);border-radius:var(--mantine-radius-sm)}:where([data-mantine-color-scheme=light]) .m_d08caa0 :where(pre){background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_d08caa0 :where(pre){background-color:var(--mantine-color-dark-8)}.m_d08caa0 :where(pre) :where(code){background-color:transparent;padding:0;border-radius:0;color:inherit;border:0}.m_d08caa0 :where(kbd){--kbd-fz: calc(.75rem * var(--mantine-scale));--kbd-padding: calc(.1875rem * var(--mantine-scale)) calc(.3125rem * var(--mantine-scale));font-family:var(--mantine-font-family-monospace);line-height:var(--mantine-line-height);font-weight:700;padding:var(--kbd-padding);font-size:var(--kbd-fz);border-radius:var(--mantine-radius-sm);border:calc(.0625rem * var(--mantine-scale)) solid;border-bottom-width:calc(.1875rem * var(--mantine-scale))}:where([data-mantine-color-scheme=light]) .m_d08caa0 :where(kbd){border-color:var(--mantine-color-gray-3);color:var(--mantine-color-gray-7);background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_d08caa0 :where(kbd){border-color:var(--mantine-color-dark-3);color:var(--mantine-color-dark-0);background-color:var(--mantine-color-dark-5)}.m_d08caa0 :where(code){line-height:var(--mantine-line-height);padding:calc(.0625rem * var(--mantine-scale)) calc(.3125rem * var(--mantine-scale));border-radius:var(--mantine-radius-sm);font-family:var(--mantine-font-family-monospace);font-size:var(--mantine-font-size-xs)}:where([data-mantine-color-scheme=light]) .m_d08caa0 :where(code){background-color:var(--mantine-color-gray-0);color:var(--mantine-color-black)}:where([data-mantine-color-scheme=dark]) .m_d08caa0 :where(code){background-color:var(--mantine-color-dark-5);color:var(--mantine-color-white)}.m_d08caa0 :where(ul,ol):not([data-type=taskList]){margin-bottom:var(--mantine-spacing-md);padding-inline-start:var(--mantine-spacing-xl);list-style-position:outside}.m_d08caa0 :where(table){width:100%;border-collapse:collapse;caption-side:bottom;margin-bottom:var(--mantine-spacing-md)}:where([data-mantine-color-scheme=light]) .m_d08caa0 :where(table){--table-border-color: var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_d08caa0 :where(table){--table-border-color: var(--mantine-color-dark-4)}.m_d08caa0 :where(table) :where(caption){margin-top:var(--mantine-spacing-xs);font-size:var(--mantine-font-size-sm);color:var(--mantine-color-dimmed)}.m_d08caa0 :where(table) :where(th){text-align:left;font-weight:700;font-size:var(--mantine-font-size-sm);padding:var(--mantine-spacing-xs) var(--mantine-spacing-sm)}.m_d08caa0 :where(table) :where(thead th){border-bottom:calc(.0625rem * var(--mantine-scale)) solid;border-color:var(--table-border-color)}.m_d08caa0 :where(table) :where(tfoot th){border-top:calc(.0625rem * var(--mantine-scale)) solid;border-color:var(--table-border-color)}.m_d08caa0 :where(table) :where(td){padding:var(--mantine-spacing-xs) var(--mantine-spacing-sm);border-bottom:calc(.0625rem * var(--mantine-scale)) solid;border-color:var(--table-border-color);font-size:var(--mantine-font-size-sm)}.m_d08caa0 :where(table) :where(tr:last-of-type td){border-bottom:0}.m_d08caa0 :where(blockquote){font-size:var(--mantine-font-size-lg);line-height:var(--mantine-line-height);margin:var(--mantine-spacing-md) 0;border-radius:var(--mantine-radius-sm);padding:var(--mantine-spacing-md) var(--mantine-spacing-lg)}:where([data-mantine-color-scheme=light]) .m_d08caa0 :where(blockquote){background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_d08caa0 :where(blockquote){background-color:var(--mantine-color-dark-8)}}@layer xyflow{.react-flow{direction:ltr;--xy-edge-stroke-default: #b1b1b7;--xy-edge-stroke-width-default: 1;--xy-edge-stroke-selected-default: #555;--xy-connectionline-stroke-default: #b1b1b7;--xy-connectionline-stroke-width-default: 1;--xy-attribution-background-color-default: rgba(255, 255, 255, .5);--xy-minimap-background-color-default: #fff;--xy-minimap-mask-background-color-default: rgba(240, 240, 240, .6);--xy-minimap-mask-stroke-color-default: transparent;--xy-minimap-mask-stroke-width-default: 1;--xy-minimap-node-background-color-default: #e2e2e2;--xy-minimap-node-stroke-color-default: transparent;--xy-minimap-node-stroke-width-default: 2;--xy-background-color-default: transparent;--xy-background-pattern-dots-color-default: #91919a;--xy-background-pattern-lines-color-default: #eee;--xy-background-pattern-cross-color-default: #e2e2e2;background-color:var(--xy-background-color, var(--xy-background-color-default));--xy-node-color-default: inherit;--xy-node-border-default: 1px solid #1a192b;--xy-node-background-color-default: #fff;--xy-node-group-background-color-default: rgba(240, 240, 240, .25);--xy-node-boxshadow-hover-default: 0 1px 4px 1px rgba(0, 0, 0, .08);--xy-node-boxshadow-selected-default: 0 0 0 .5px #1a192b;--xy-node-border-radius-default: 3px;--xy-handle-background-color-default: #1a192b;--xy-handle-border-color-default: #fff;--xy-selection-background-color-default: rgba(0, 89, 220, .08);--xy-selection-border-default: 1px dotted rgba(0, 89, 220, .8);--xy-controls-button-background-color-default: #fefefe;--xy-controls-button-background-color-hover-default: #f4f4f4;--xy-controls-button-color-default: inherit;--xy-controls-button-color-hover-default: inherit;--xy-controls-button-border-color-default: #eee;--xy-controls-box-shadow-default: 0 0 2px 1px rgba(0, 0, 0, .08);--xy-edge-label-background-color-default: #ffffff;--xy-edge-label-color-default: inherit;--xy-resize-background-color-default: #3367d9}.react-flow.dark{--xy-edge-stroke-default: #3e3e3e;--xy-edge-stroke-width-default: 1;--xy-edge-stroke-selected-default: #727272;--xy-connectionline-stroke-default: #b1b1b7;--xy-connectionline-stroke-width-default: 1;--xy-attribution-background-color-default: rgba(150, 150, 150, .25);--xy-minimap-background-color-default: #141414;--xy-minimap-mask-background-color-default: rgba(60, 60, 60, .6);--xy-minimap-mask-stroke-color-default: transparent;--xy-minimap-mask-stroke-width-default: 1;--xy-minimap-node-background-color-default: #2b2b2b;--xy-minimap-node-stroke-color-default: transparent;--xy-minimap-node-stroke-width-default: 2;--xy-background-color-default: #141414;--xy-background-pattern-dots-color-default: #777;--xy-background-pattern-lines-color-default: #777;--xy-background-pattern-cross-color-default: #777;--xy-node-color-default: #f8f8f8;--xy-node-border-default: 1px solid #3c3c3c;--xy-node-background-color-default: #1e1e1e;--xy-node-group-background-color-default: rgba(240, 240, 240, .25);--xy-node-boxshadow-hover-default: 0 1px 4px 1px rgba(255, 255, 255, .08);--xy-node-boxshadow-selected-default: 0 0 0 .5px #999;--xy-handle-background-color-default: #bebebe;--xy-handle-border-color-default: #1e1e1e;--xy-selection-background-color-default: rgba(200, 200, 220, .08);--xy-selection-border-default: 1px dotted rgba(200, 200, 220, .8);--xy-controls-button-background-color-default: #2b2b2b;--xy-controls-button-background-color-hover-default: #3e3e3e;--xy-controls-button-color-default: #f8f8f8;--xy-controls-button-color-hover-default: #fff;--xy-controls-button-border-color-default: #5b5b5b;--xy-controls-box-shadow-default: 0 0 2px 1px rgba(0, 0, 0, .08);--xy-edge-label-background-color-default: #141414;--xy-edge-label-color-default: #f8f8f8}.react-flow__background{background-color:var(--xy-background-color-props, var(--xy-background-color, var(--xy-background-color-default)));pointer-events:none;z-index:-1}.react-flow__container{position:absolute;width:100%;height:100%;top:0;left:0}.react-flow__pane{z-index:1}.react-flow__pane.draggable{cursor:grab}.react-flow__pane.dragging{cursor:grabbing}.react-flow__pane.selection{cursor:pointer}.react-flow__viewport{transform-origin:0 0;z-index:2;pointer-events:none}.react-flow__renderer{z-index:4}.react-flow__selection{z-index:6}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible{outline:none}.react-flow__edge-path{stroke:var(--xy-edge-stroke, var(--xy-edge-stroke-default));stroke-width:var(--xy-edge-stroke-width, var(--xy-edge-stroke-width-default));fill:none}.react-flow__connection-path{stroke:var(--xy-connectionline-stroke, var(--xy-connectionline-stroke-default));stroke-width:var(--xy-connectionline-stroke-width, var(--xy-connectionline-stroke-width-default));fill:none}.react-flow .react-flow__edges{position:absolute}.react-flow .react-flow__edges svg{overflow:visible;position:absolute;pointer-events:none}.react-flow__edge{pointer-events:visibleStroke}.react-flow__edge.selectable{cursor:pointer}.react-flow__edge.animated path{stroke-dasharray:5;animation:dashdraw .5s linear infinite}.react-flow__edge.animated path.react-flow__edge-interaction{stroke-dasharray:none;animation:none}.react-flow__edge.inactive{pointer-events:none}.react-flow__edge.selected,.react-flow__edge:focus,.react-flow__edge:focus-visible{outline:none}.react-flow__edge.selected .react-flow__edge-path,.react-flow__edge.selectable:focus .react-flow__edge-path,.react-flow__edge.selectable:focus-visible .react-flow__edge-path{stroke:var(--xy-edge-stroke-selected, var(--xy-edge-stroke-selected-default))}.react-flow__edge-textwrapper{pointer-events:all}.react-flow__edge .react-flow__edge-text{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__arrowhead polyline{stroke:var(--xy-edge-stroke, var(--xy-edge-stroke-default))}.react-flow__arrowhead polyline.arrowclosed{fill:var(--xy-edge-stroke, var(--xy-edge-stroke-default))}.react-flow__connection{pointer-events:none}.react-flow__connection .animated{stroke-dasharray:5;animation:dashdraw .5s linear infinite}svg.react-flow__connectionline{z-index:1001;overflow:visible;position:absolute}.react-flow__nodes{pointer-events:none;transform-origin:0 0}.react-flow__node{position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:all;transform-origin:0 0;box-sizing:border-box;cursor:default}.react-flow__node.selectable{cursor:pointer}.react-flow__node.draggable{cursor:grab;pointer-events:all}.react-flow__node.draggable.dragging{cursor:grabbing}.react-flow__nodesselection{z-index:3;transform-origin:left top;pointer-events:none}.react-flow__nodesselection-rect{position:absolute;pointer-events:all;cursor:grab}.react-flow__handle{position:absolute;pointer-events:none;min-width:5px;min-height:5px;width:6px;height:6px;background-color:var(--xy-handle-background-color, var(--xy-handle-background-color-default));border:1px solid var(--xy-handle-border-color, var(--xy-handle-border-color-default));border-radius:100%}.react-flow__handle.connectingfrom{pointer-events:all}.react-flow__handle.connectionindicator{pointer-events:all;cursor:crosshair}.react-flow__handle-bottom{top:auto;left:50%;bottom:0;transform:translate(-50%,50%)}.react-flow__handle-top{top:0;left:50%;transform:translate(-50%,-50%)}.react-flow__handle-left{top:50%;left:0;transform:translate(-50%,-50%)}.react-flow__handle-right{top:50%;right:0;transform:translate(50%,-50%)}.react-flow__edgeupdater{cursor:move;pointer-events:all}.react-flow__pane.selection .react-flow__panel{pointer-events:none}.react-flow__panel{position:absolute;z-index:5;margin:15px}.react-flow__panel.top{top:0}.react-flow__panel.bottom{bottom:0}.react-flow__panel.top.center,.react-flow__panel.bottom.center{left:50%;transform:translate(-15px) translate(-50%)}.react-flow__panel.left{left:0}.react-flow__panel.right{right:0}.react-flow__panel.left.center,.react-flow__panel.right.center{top:50%;transform:translateY(-15px) translateY(-50%)}.react-flow__attribution{font-size:10px;background:var(--xy-attribution-background-color, var(--xy-attribution-background-color-default));padding:2px 3px;margin:0}.react-flow__attribution a{text-decoration:none;color:#999}@keyframes dashdraw{0%{stroke-dashoffset:10}}.react-flow__edgelabel-renderer{position:absolute;width:100%;height:100%;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;left:0;top:0}.react-flow__viewport-portal{position:absolute;width:100%;height:100%;left:0;top:0;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__minimap{background:var( --xy-minimap-background-color-props, var(--xy-minimap-background-color, var(--xy-minimap-background-color-default)) )}.react-flow__minimap-svg{display:block}.react-flow__minimap-mask{fill:var( --xy-minimap-mask-background-color-props, var(--xy-minimap-mask-background-color, var(--xy-minimap-mask-background-color-default)) );stroke:var( --xy-minimap-mask-stroke-color-props, var(--xy-minimap-mask-stroke-color, var(--xy-minimap-mask-stroke-color-default)) );stroke-width:var( --xy-minimap-mask-stroke-width-props, var(--xy-minimap-mask-stroke-width, var(--xy-minimap-mask-stroke-width-default)) )}.react-flow__minimap-node{fill:var( --xy-minimap-node-background-color-props, var(--xy-minimap-node-background-color, var(--xy-minimap-node-background-color-default)) );stroke:var( --xy-minimap-node-stroke-color-props, var(--xy-minimap-node-stroke-color, var(--xy-minimap-node-stroke-color-default)) );stroke-width:var( --xy-minimap-node-stroke-width-props, var(--xy-minimap-node-stroke-width, var(--xy-minimap-node-stroke-width-default)) )}.react-flow__background-pattern.dots{fill:var( --xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-dots-color-default)) )}.react-flow__background-pattern.lines{stroke:var( --xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-lines-color-default)) )}.react-flow__background-pattern.cross{stroke:var( --xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-cross-color-default)) )}.react-flow__controls{display:flex;flex-direction:column;box-shadow:var(--xy-controls-box-shadow, var(--xy-controls-box-shadow-default))}.react-flow__controls.horizontal{flex-direction:row}.react-flow__controls-button{display:flex;justify-content:center;align-items:center;height:26px;width:26px;padding:4px;border:none;background:var(--xy-controls-button-background-color, var(--xy-controls-button-background-color-default));border-bottom:1px solid var( --xy-controls-button-border-color-props, var(--xy-controls-button-border-color, var(--xy-controls-button-border-color-default)) );color:var( --xy-controls-button-color-props, var(--xy-controls-button-color, var(--xy-controls-button-color-default)) );cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__controls-button svg{width:100%;max-width:12px;max-height:12px;fill:currentColor}.react-flow__edge.updating .react-flow__edge-path{stroke:#777}.react-flow__edge-text{font-size:10px}.react-flow__node.selectable:focus,.react-flow__node.selectable:focus-visible{outline:none}.react-flow__node-input,.react-flow__node-default,.react-flow__node-output,.react-flow__node-group{padding:10px;border-radius:var(--xy-node-border-radius, var(--xy-node-border-radius-default));width:150px;font-size:12px;color:var(--xy-node-color, var(--xy-node-color-default));text-align:center;border:var(--xy-node-border, var(--xy-node-border-default));background-color:var(--xy-node-background-color, var(--xy-node-background-color-default))}.react-flow__node-input.selectable:hover,.react-flow__node-default.selectable:hover,.react-flow__node-output.selectable:hover,.react-flow__node-group.selectable:hover{box-shadow:var(--xy-node-boxshadow-hover, var(--xy-node-boxshadow-hover-default))}.react-flow__node-input.selectable.selected,.react-flow__node-input.selectable:focus,.react-flow__node-input.selectable:focus-visible,.react-flow__node-default.selectable.selected,.react-flow__node-default.selectable:focus,.react-flow__node-default.selectable:focus-visible,.react-flow__node-output.selectable.selected,.react-flow__node-output.selectable:focus,.react-flow__node-output.selectable:focus-visible,.react-flow__node-group.selectable.selected,.react-flow__node-group.selectable:focus,.react-flow__node-group.selectable:focus-visible{box-shadow:var(--xy-node-boxshadow-selected, var(--xy-node-boxshadow-selected-default))}.react-flow__node-group{background-color:var(--xy-node-group-background-color, var(--xy-node-group-background-color-default))}.react-flow__nodesselection-rect,.react-flow__selection{background:var(--xy-selection-background-color, var(--xy-selection-background-color-default));border:var(--xy-selection-border, var(--xy-selection-border-default))}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible,.react-flow__selection:focus,.react-flow__selection:focus-visible{outline:none}.react-flow__controls-button:hover{background:var( --xy-controls-button-background-color-hover-props, var(--xy-controls-button-background-color-hover, var(--xy-controls-button-background-color-hover-default)) );color:var( --xy-controls-button-color-hover-props, var(--xy-controls-button-color-hover, var(--xy-controls-button-color-hover-default)) )}.react-flow__controls-button:disabled{pointer-events:none}.react-flow__controls-button:disabled svg{fill-opacity:.4}.react-flow__controls-button:last-child{border-bottom:none}.react-flow__controls.horizontal .react-flow__controls-button{border-bottom:none;border-right:1px solid var( --xy-controls-button-border-color-props, var(--xy-controls-button-border-color, var(--xy-controls-button-border-color-default)) )}.react-flow__controls.horizontal .react-flow__controls-button:last-child{border-right:none}.react-flow__resize-control{position:absolute}.react-flow__resize-control.left,.react-flow__resize-control.right{cursor:ew-resize}.react-flow__resize-control.top,.react-flow__resize-control.bottom{cursor:ns-resize}.react-flow__resize-control.top.left,.react-flow__resize-control.bottom.right{cursor:nwse-resize}.react-flow__resize-control.bottom.left,.react-flow__resize-control.top.right{cursor:nesw-resize}.react-flow__resize-control.handle{width:5px;height:5px;border:1px solid #fff;border-radius:1px;background-color:var(--xy-resize-background-color, var(--xy-resize-background-color-default));translate:-50% -50%}.react-flow__resize-control.handle.left{left:0;top:50%}.react-flow__resize-control.handle.right{left:100%;top:50%}.react-flow__resize-control.handle.top{left:50%;top:0}.react-flow__resize-control.handle.bottom{left:50%;top:100%}.react-flow__resize-control.handle.top.left,.react-flow__resize-control.handle.bottom.left{left:0}.react-flow__resize-control.handle.top.right,.react-flow__resize-control.handle.bottom.right{left:100%}.react-flow__resize-control.line{border-color:var(--xy-resize-background-color, var(--xy-resize-background-color-default));border-width:0;border-style:solid}.react-flow__resize-control.line.left,.react-flow__resize-control.line.right{width:1px;transform:translate(-50%);top:0;height:100%}.react-flow__resize-control.line.left{left:0;border-left-width:1px}.react-flow__resize-control.line.right{left:100%;border-right-width:1px}.react-flow__resize-control.line.top,.react-flow__resize-control.line.bottom{height:1px;transform:translateY(-50%);left:0;width:100%}.react-flow__resize-control.line.top{top:0;border-top-width:1px}.react-flow__resize-control.line.bottom{border-bottom-width:1px;top:100%}.react-flow__edge-textbg{fill:var(--xy-edge-label-background-color, var(--xy-edge-label-background-color-default))}.react-flow__edge-text{fill:var(--xy-edge-label-color, var(--xy-edge-label-color-default))}}@layer base{:root{--made-with-panda: "🐼"}*,:before,:after,::backdrop{--blur: ;--brightness: ;--contrast: ;--grayscale: ;--hue-rotate: ;--invert: ;--saturate: ;--sepia: ;--drop-shadow: ;--backdrop-blur: ;--backdrop-brightness: ;--backdrop-contrast: ;--backdrop-grayscale: ;--backdrop-hue-rotate: ;--backdrop-invert: ;--backdrop-opacity: ;--backdrop-saturate: ;--backdrop-sepia: ;--gradient-from-position: ;--gradient-to-position: ;--gradient-via-position: ;--scroll-snap-strictness: proximity;--border-spacing-x: 0;--border-spacing-y: 0;--translate-x: 0;--translate-y: 0;--rotate: 0;--rotate-x: 0;--rotate-y: 0;--skew-x: 0;--skew-y: 0;--scale-x: 1;--scale-y: 1}:where(:root,:host){--likec4-app-font-default: "IBM Plex Sans",'ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"'}:where([data-likec4-text-size=xs]){--likec4-text-size: var(--font-sizes-likec4-xs)}:where([data-likec4-text-size=sm]){--likec4-text-size: var(--font-sizes-likec4-sm)}:where([data-likec4-text-size=md]){--likec4-text-size: var(--font-sizes-likec4-md)}:where([data-likec4-text-size=lg]){--likec4-text-size: var(--font-sizes-likec4-lg)}:where([data-likec4-text-size=xl]){--likec4-text-size: var(--font-sizes-likec4-xl)}:where([data-likec4-spacing=xs]){--likec4-spacing: var(--spacing-likec4-xs)}:where([data-likec4-spacing=sm]){--likec4-spacing: var(--spacing-likec4-sm)}:where([data-likec4-spacing=md]){--likec4-spacing: var(--spacing-likec4-md)}:where([data-likec4-spacing=lg]){--likec4-spacing: var(--spacing-likec4-lg)}:where([data-likec4-spacing=xl]){--likec4-spacing: var(--spacing-likec4-xl)}.likec4-shadow-root{--mantine-font-family: var(--likec4-app-font, var(--likec4-app-font-default));--mantine-font-family-headings: var(--likec4-app-font, var(--likec4-app-font-default));display:contents}.likec4-shadow-root dialog{color:var(--mantine-color-text)}.likec4-edge-label-container{position:absolute;top:var(--spacing-0);left:var(--spacing-0);width:auto;height:auto}.likec4-root:is([data-likec4-reduced-graphics][data-likec4-diagram-panning=true]) .likec4-edge-label-container{display:none}:where([data-likec4-zoom-small=true]) .likec4-edge-label-container{display:none}.likec4-root{padding:var(--spacing-0);margin:var(--spacing-0);border:0px solid transparent;overflow:hidden;position:relative;container-name:likec4-root;container-type:size;width:var(--sizes-100\\%);height:var(--sizes-100\\%)}.likec4-root .react-flow{--xy-background-color: var(--colors-likec4-background);--xy-background-pattern-color: var(--colors-likec4-background-pattern, var(--colors-likec4-background));contain:paint}.likec4-root .react-flow:is(.bg-transparent){--xy-background-color: transparent !important;background:var(--colors-transparent)!important}.likec4-root .react-flow:is(.not-initialized){opacity:0}.likec4-root .react-flow .react-flow__pane{-webkit-user-select:none;user-select:none}.likec4-root .react-flow :where(.react-flow__nodes,.react-flow__edges,.react-flow__edgelabel-renderer){display:contents}.likec4-root .react-flow .react-flow__node.draggable:has(.likec4-compound-node){cursor:default}.likec4-root :where(.react-flow__edge,.likec4-edge-container,.likec4-edge-label-container){--xy-edge-stroke-width: 3;--xy-edge-stroke: var(--likec4-palette-relation-stroke);--xy-edge-stroke-selected: var(--likec4-palette-relation-stroke-selected);--xy-edge-label-color: var(--likec4-palette-relation-label);--xy-edge-label-background-color: var(--likec4-palette-relation-label-bg)}[data-mantine-color-scheme=dark] .likec4-root :where(.react-flow__edge,.likec4-edge-container,.likec4-edge-label-container){--xy-edge-label-background-color: color-mix(in srgb, var(--likec4-palette-relation-label-bg) 50%, transparent)}[data-mantine-color-scheme=light] .likec4-root :where(.react-flow__edge,.likec4-edge-container,.likec4-edge-label-container){--xy-edge-label-color: color-mix(in srgb, var(--likec4-palette-relation-label), rgba(255 255 255 / .85) 40%);--xy-edge-label-background-color: color-mix(in srgb, var(--likec4-palette-relation-label-bg) 60%, transparent)}.likec4-root :where(.react-flow__edge,.likec4-edge-container,.likec4-edge-label-container):is([data-likec4-hovered=true],[data-edge-active=true]){--xy-edge-stroke-width: 4;--xy-edge-stroke: var(--likec4-palette-relation-stroke-selected)}.likec4-root :where(.react-flow__node,.react-flow__edge):has([data-likec4-dimmed]){opacity:.25}.likec4-root .likec4-edge-label-container:is([data-likec4-dimmed]){opacity:.25}.likec4-root:is([data-likec4-reduced-graphics]) .hide-on-reduced-graphics{display:none}.likec4-root :where(.relationships-browser,.likec4-relationship-details) .react-flow__attribution{display:none}.likec4-root .mantine-ActionIcon-icon .tabler-icon{width:75%;height:75%}.likec4-root:not([data-likec4-reduced-graphics]) :where(.react-flow__node,.react-flow__edge):has([data-likec4-dimmed]){filter:grayscale(85%)}.likec4-root:not([data-likec4-reduced-graphics]) :where(.react-flow__node,.react-flow__edge):has([data-likec4-dimmed=true]){--transition-prop: opacity, filter;transition-property:opacity,filter;--transition-easing: cubic-bezier(.5, 0, .2, 1);transition-timing-function:cubic-bezier(.5,0,.2,1);--transition-duration: .4s;transition-duration:.4s}.likec4-root:not([data-likec4-reduced-graphics]) .likec4-edge-label-container:is([data-likec4-dimmed]){filter:grayscale(85%)}.likec4-root:not([data-likec4-reduced-graphics]) .likec4-edge-label-container:is([data-likec4-dimmed=true]){--transition-prop: opacity, filter;transition-property:opacity,filter;--transition-easing: cubic-bezier(.5, 0, .2, 1);transition-timing-function:cubic-bezier(.5,0,.2,1);--transition-duration: .4s;transition-duration:.4s}[data-mantine-color-scheme=dark] .likec4-root:not([data-likec4-reduced-graphics]) :where(.react-flow__edges,.react-flow__edgelabel-renderer)>:where(svg,.likec4-edge-label-container){mix-blend-mode:plus-lighter}[data-mantine-color-scheme=light] .likec4-root:not([data-likec4-reduced-graphics]) :where(.react-flow__edges,.react-flow__edgelabel-renderer)>:where(svg,.likec4-edge-label-container){mix-blend-mode:screen}[data-mantine-color-scheme=light] .likec4-root:not([data-likec4-reduced-graphics]):has(.react-flow__node-seq-parallel) :where(.react-flow__edges>svg){mix-blend-mode:color-burn}[data-mantine-color-scheme=dark] .likec4-root:not([data-likec4-reduced-graphics]) .react-flow__node-seq-parallel{mix-blend-mode:luminosity}[data-mantine-color-scheme=light] .likec4-root:not([data-likec4-reduced-graphics]) .react-flow__node-seq-parallel{mix-blend-mode:color-burn}.likec4-static-view .react-flow .react-flow__attribution{display:none}:where(:root,:host){--likec4-text-size: 1.2rem;--likec4-palette-fill: #3b82f6;--likec4-palette-stroke: #2563eb;--likec4-palette-hiContrast: #eff6ff;--likec4-palette-loContrast: #bfdbfe;--likec4-palette-relation-stroke: #6E6E6E;--likec4-palette-relation-label: #C6C6C6;--likec4-palette-relation-label-bg: #18191b;--mantine-scale: 1;--likec4-palette-outline: var(--likec4-palette-loContrast);--likec4-spacing: ;--text-fz: ;--likec4-icon-size: }}@layer tokens{:where(:root,:host){--spacing-0: 0px;--spacing-1: 4px;--spacing-2: 8px;--spacing-3: 12px;--spacing-4: 16px;--spacing-5: 20px;--spacing-6: 24px;--spacing-7: 28px;--spacing-8: 32px;--spacing-9: 36px;--spacing-10: 40px;--spacing-likec4-xs: 8px;--spacing-likec4-sm: 10px;--spacing-likec4-md: 16px;--spacing-likec4-lg: 24px;--spacing-likec4-xl: 32px;--spacing-0\\.5: 2px;--spacing-1\\.5: 6px;--spacing-2\\.5: 10px;--spacing-3\\.5: 14px;--spacing-4\\.5: 18px;--spacing-xxs: calc(.5rem * var(--mantine-scale));--spacing-xs: calc(.625rem * var(--mantine-scale));--spacing-sm: calc(.75rem * var(--mantine-scale));--spacing-md: calc(1rem * var(--mantine-scale));--spacing-lg: calc(1.25rem * var(--mantine-scale));--spacing-xl: calc(2rem * var(--mantine-scale));--font-sizes-xxs: .625rem;--font-sizes-xs: calc(.75rem * var(--mantine-scale));--font-sizes-sm: calc(.875rem * var(--mantine-scale));--font-sizes-md: calc(1rem * var(--mantine-scale));--font-sizes-lg: calc(1.125rem * var(--mantine-scale));--font-sizes-xl: calc(1.25rem * var(--mantine-scale));--font-sizes-likec4-xs: .833rem;--font-sizes-likec4-sm: 1rem;--font-sizes-likec4-md: 1.2rem;--font-sizes-likec4-lg: 1.44rem;--font-sizes-likec4-xl: 1.73rem;--line-heights-1: 1;--line-heights-xs: 1.4;--line-heights-sm: 1.45;--line-heights-md: 1.55;--line-heights-lg: 1.6;--line-heights-xl: 1.65;--colors-mantine-colors-primary: var(--mantine-primary-color-6);--colors-mantine-colors-primary-filled: var(--mantine-primary-color-filled);--colors-mantine-colors-primary-filled-hover: var(--mantine-primary-color-filled-hover);--colors-mantine-colors-primary-light: var(--mantine-primary-color-light);--colors-mantine-colors-primary-light-hover: var(--mantine-primary-color-light-hover);--colors-mantine-colors-primary-light-color: var(--mantine-primary-color-light-color);--colors-mantine-colors-primary-outline: var(--mantine-primary-color-outline);--colors-mantine-colors-primary-outline-hover: var(--mantine-primary-color-outline-hover);--colors-mantine-colors-primary\\[0\\]: var(--mantine-primary-color-0);--colors-mantine-colors-primary\\[1\\]: var(--mantine-primary-color-1);--colors-mantine-colors-primary\\[2\\]: var(--mantine-primary-color-2);--colors-mantine-colors-primary\\[3\\]: var(--mantine-primary-color-3);--colors-mantine-colors-primary\\[4\\]: var(--mantine-primary-color-4);--colors-mantine-colors-primary\\[5\\]: var(--mantine-primary-color-5);--colors-mantine-colors-primary\\[6\\]: var(--mantine-primary-color-6);--colors-mantine-colors-primary\\[7\\]: var(--mantine-primary-color-7);--colors-mantine-colors-primary\\[8\\]: var(--mantine-primary-color-8);--colors-mantine-colors-primary\\[9\\]: var(--mantine-primary-color-9);--colors-mantine-colors-white: var(--mantine-color-white);--colors-mantine-colors-text: var(--mantine-color-text);--colors-mantine-colors-body: var(--mantine-color-body);--colors-mantine-colors-dimmed: var(--mantine-color-dimmed);--colors-mantine-colors-default-border: var(--mantine-color-default-border);--colors-mantine-colors-default-color: var(--mantine-color-default-color);--colors-mantine-colors-default-hover: var(--mantine-color-default-hover);--colors-mantine-colors-default: var(--mantine-color-default);--colors-mantine-colors-error: var(--mantine-color-error);--colors-mantine-colors-placeholder: var(--mantine-color-placeholder);--colors-mantine-colors-gray: var(--mantine-color-gray-6);--colors-mantine-colors-gray-filled: var(--mantine-color-gray-filled);--colors-mantine-colors-gray-filled-hover: var(--mantine-color-gray-filled-hover);--colors-mantine-colors-gray-light: var(--mantine-color-gray-light);--colors-mantine-colors-gray-light-hover: var(--mantine-color-gray-light-hover);--colors-mantine-colors-gray-light-color: var(--mantine-color-gray-light-color);--colors-mantine-colors-gray-outline: var(--mantine-color-gray-outline);--colors-mantine-colors-gray-outline-hover: var(--mantine-color-gray-outline-hover);--colors-mantine-colors-gray\\[0\\]: var(--mantine-color-gray-0);--colors-mantine-colors-gray\\[1\\]: var(--mantine-color-gray-1);--colors-mantine-colors-gray\\[2\\]: var(--mantine-color-gray-2);--colors-mantine-colors-gray\\[3\\]: var(--mantine-color-gray-3);--colors-mantine-colors-gray\\[4\\]: var(--mantine-color-gray-4);--colors-mantine-colors-gray\\[5\\]: var(--mantine-color-gray-5);--colors-mantine-colors-gray\\[6\\]: var(--mantine-color-gray-6);--colors-mantine-colors-gray\\[7\\]: var(--mantine-color-gray-7);--colors-mantine-colors-gray\\[8\\]: var(--mantine-color-gray-8);--colors-mantine-colors-gray\\[9\\]: var(--mantine-color-gray-9);--colors-mantine-colors-dark: var(--mantine-color-dark-6);--colors-mantine-colors-dark-filled: var(--mantine-color-dark-filled);--colors-mantine-colors-dark-filled-hover: var(--mantine-color-dark-filled-hover);--colors-mantine-colors-dark-light: var(--mantine-color-dark-light);--colors-mantine-colors-dark-light-hover: var(--mantine-color-dark-light-hover);--colors-mantine-colors-dark-light-color: var(--mantine-color-dark-light-color);--colors-mantine-colors-dark-outline: var(--mantine-color-dark-outline);--colors-mantine-colors-dark-outline-hover: var(--mantine-color-dark-outline-hover);--colors-mantine-colors-dark\\[0\\]: var(--mantine-color-dark-0);--colors-mantine-colors-dark\\[1\\]: var(--mantine-color-dark-1);--colors-mantine-colors-dark\\[2\\]: var(--mantine-color-dark-2);--colors-mantine-colors-dark\\[3\\]: var(--mantine-color-dark-3);--colors-mantine-colors-dark\\[4\\]: var(--mantine-color-dark-4);--colors-mantine-colors-dark\\[5\\]: var(--mantine-color-dark-5);--colors-mantine-colors-dark\\[6\\]: var(--mantine-color-dark-6);--colors-mantine-colors-dark\\[7\\]: var(--mantine-color-dark-7);--colors-mantine-colors-dark\\[8\\]: var(--mantine-color-dark-8);--colors-mantine-colors-dark\\[9\\]: var(--mantine-color-dark-9);--colors-mantine-colors-orange: var(--mantine-color-orange-6);--colors-mantine-colors-orange-filled: var(--mantine-color-orange-filled);--colors-mantine-colors-orange-filled-hover: var(--mantine-color-orange-filled-hover);--colors-mantine-colors-orange-light: var(--mantine-color-orange-light);--colors-mantine-colors-orange-light-hover: var(--mantine-color-orange-light-hover);--colors-mantine-colors-orange-light-color: var(--mantine-color-orange-light-color);--colors-mantine-colors-orange-outline: var(--mantine-color-orange-outline);--colors-mantine-colors-orange-outline-hover: var(--mantine-color-orange-outline-hover);--colors-mantine-colors-orange\\[0\\]: var(--mantine-color-orange-0);--colors-mantine-colors-orange\\[1\\]: var(--mantine-color-orange-1);--colors-mantine-colors-orange\\[2\\]: var(--mantine-color-orange-2);--colors-mantine-colors-orange\\[3\\]: var(--mantine-color-orange-3);--colors-mantine-colors-orange\\[4\\]: var(--mantine-color-orange-4);--colors-mantine-colors-orange\\[5\\]: var(--mantine-color-orange-5);--colors-mantine-colors-orange\\[6\\]: var(--mantine-color-orange-6);--colors-mantine-colors-orange\\[7\\]: var(--mantine-color-orange-7);--colors-mantine-colors-orange\\[8\\]: var(--mantine-color-orange-8);--colors-mantine-colors-orange\\[9\\]: var(--mantine-color-orange-9);--colors-mantine-colors-teal: var(--mantine-color-teal-6);--colors-mantine-colors-teal-filled: var(--mantine-color-teal-filled);--colors-mantine-colors-teal-filled-hover: var(--mantine-color-teal-filled-hover);--colors-mantine-colors-teal-light: var(--mantine-color-teal-light);--colors-mantine-colors-teal-light-hover: var(--mantine-color-teal-light-hover);--colors-mantine-colors-teal-light-color: var(--mantine-color-teal-light-color);--colors-mantine-colors-teal-outline: var(--mantine-color-teal-outline);--colors-mantine-colors-teal-outline-hover: var(--mantine-color-teal-outline-hover);--colors-mantine-colors-teal\\[0\\]: var(--mantine-color-teal-0);--colors-mantine-colors-teal\\[1\\]: var(--mantine-color-teal-1);--colors-mantine-colors-teal\\[2\\]: var(--mantine-color-teal-2);--colors-mantine-colors-teal\\[3\\]: var(--mantine-color-teal-3);--colors-mantine-colors-teal\\[4\\]: var(--mantine-color-teal-4);--colors-mantine-colors-teal\\[5\\]: var(--mantine-color-teal-5);--colors-mantine-colors-teal\\[6\\]: var(--mantine-color-teal-6);--colors-mantine-colors-teal\\[7\\]: var(--mantine-color-teal-7);--colors-mantine-colors-teal\\[8\\]: var(--mantine-color-teal-8);--colors-mantine-colors-teal\\[9\\]: var(--mantine-color-teal-9);--colors-mantine-colors-red: var(--mantine-color-red-6);--colors-mantine-colors-red-filled: var(--mantine-color-red-filled);--colors-mantine-colors-red-filled-hover: var(--mantine-color-red-filled-hover);--colors-mantine-colors-red-light: var(--mantine-color-red-light);--colors-mantine-colors-red-light-hover: var(--mantine-color-red-light-hover);--colors-mantine-colors-red-light-color: var(--mantine-color-red-light-color);--colors-mantine-colors-red-outline: var(--mantine-color-red-outline);--colors-mantine-colors-red-outline-hover: var(--mantine-color-red-outline-hover);--colors-mantine-colors-red\\[0\\]: var(--mantine-color-red-0);--colors-mantine-colors-red\\[1\\]: var(--mantine-color-red-1);--colors-mantine-colors-red\\[2\\]: var(--mantine-color-red-2);--colors-mantine-colors-red\\[3\\]: var(--mantine-color-red-3);--colors-mantine-colors-red\\[4\\]: var(--mantine-color-red-4);--colors-mantine-colors-red\\[5\\]: var(--mantine-color-red-5);--colors-mantine-colors-red\\[6\\]: var(--mantine-color-red-6);--colors-mantine-colors-red\\[7\\]: var(--mantine-color-red-7);--colors-mantine-colors-red\\[8\\]: var(--mantine-color-red-8);--colors-mantine-colors-red\\[9\\]: var(--mantine-color-red-9);--colors-mantine-colors-green: var(--mantine-color-green-6);--colors-mantine-colors-green-filled: var(--mantine-color-green-filled);--colors-mantine-colors-green-filled-hover: var(--mantine-color-green-filled-hover);--colors-mantine-colors-green-light: var(--mantine-color-green-light);--colors-mantine-colors-green-light-hover: var(--mantine-color-green-light-hover);--colors-mantine-colors-green-light-color: var(--mantine-color-green-light-color);--colors-mantine-colors-green-outline: var(--mantine-color-green-outline);--colors-mantine-colors-green-outline-hover: var(--mantine-color-green-outline-hover);--colors-mantine-colors-green\\[0\\]: var(--mantine-color-green-0);--colors-mantine-colors-green\\[1\\]: var(--mantine-color-green-1);--colors-mantine-colors-green\\[2\\]: var(--mantine-color-green-2);--colors-mantine-colors-green\\[3\\]: var(--mantine-color-green-3);--colors-mantine-colors-green\\[4\\]: var(--mantine-color-green-4);--colors-mantine-colors-green\\[5\\]: var(--mantine-color-green-5);--colors-mantine-colors-green\\[6\\]: var(--mantine-color-green-6);--colors-mantine-colors-green\\[7\\]: var(--mantine-color-green-7);--colors-mantine-colors-green\\[8\\]: var(--mantine-color-green-8);--colors-mantine-colors-green\\[9\\]: var(--mantine-color-green-9);--colors-mantine-colors-yellow: var(--mantine-color-yellow-6);--colors-mantine-colors-yellow-filled: var(--mantine-color-yellow-filled);--colors-mantine-colors-yellow-filled-hover: var(--mantine-color-yellow-filled-hover);--colors-mantine-colors-yellow-light: var(--mantine-color-yellow-light);--colors-mantine-colors-yellow-light-hover: var(--mantine-color-yellow-light-hover);--colors-mantine-colors-yellow-light-color: var(--mantine-color-yellow-light-color);--colors-mantine-colors-yellow-outline: var(--mantine-color-yellow-outline);--colors-mantine-colors-yellow-outline-hover: var(--mantine-color-yellow-outline-hover);--colors-mantine-colors-yellow\\[0\\]: var(--mantine-color-yellow-0);--colors-mantine-colors-yellow\\[1\\]: var(--mantine-color-yellow-1);--colors-mantine-colors-yellow\\[2\\]: var(--mantine-color-yellow-2);--colors-mantine-colors-yellow\\[3\\]: var(--mantine-color-yellow-3);--colors-mantine-colors-yellow\\[4\\]: var(--mantine-color-yellow-4);--colors-mantine-colors-yellow\\[5\\]: var(--mantine-color-yellow-5);--colors-mantine-colors-yellow\\[6\\]: var(--mantine-color-yellow-6);--colors-mantine-colors-yellow\\[7\\]: var(--mantine-color-yellow-7);--colors-mantine-colors-yellow\\[8\\]: var(--mantine-color-yellow-8);--colors-mantine-colors-yellow\\[9\\]: var(--mantine-color-yellow-9);--colors-transparent: transparent;--colors-none: none;--sizes-100\\%: 100%;--sizes-full: 100%;--sizes-breakpoint-xs: 36em;--sizes-breakpoint-sm: 48em;--sizes-breakpoint-md: 62em;--sizes-breakpoint-lg: 75em;--sizes-breakpoint-xl: 88em;--borders-none: none;--borders-transparent: 0px solid transparent;--borders-default: 1px solid var(--mantine-color-default-border);--radii-0: 0px;--radii-xs: .125rem;--radii-sm: .25rem;--radii-md: .5rem;--radii-lg: 1rem;--radii-xl: 2rem;--font-weights-normal: 400;--font-weights-medium: 500;--fonts-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--fonts-body: var(--likec4-app-font, var(--likec4-app-font-default));--fonts-likec4: var(--likec4-app-font, var(--likec4-app-font-default));--fonts-likec4-element: var(--likec4-element-font, var(--fonts-likec4));--fonts-likec4-compound: var(--likec4-compound-font, var(--fonts-likec4));--fonts-likec4-relation: var(--likec4-relation-font, var(--fonts-likec4));--easings-default: cubic-bezier(.4, 0, .2, 1);--easings-in: cubic-bezier(.4, 0, 1, 1);--easings-out: cubic-bezier(0, 0, .4, 1);--easings-in-out: cubic-bezier(.5, 0, .2, 1);--durations-fastest: 50ms;--durations-faster: .1s;--durations-fast: .13s;--durations-normal: .17s;--durations-slow: .3s;--durations-slower: .4s;--durations-slowest: .5s;--shadows-none: none;--shadows-xs: 0 1px 3px rgb(0 0 0/5%), 0 1px 2px rgb(0 0 0/10%);--shadows-sm: 0 1px 3px rgb(0 0 0/5%), 0 10px 15px -5px rgb(0 0 0/5%), 0 7px 7px -5px rgb(0 0 0/4%);--shadows-md: 0 1px 3px rgb(0 0 0/5%), 0 20px 25px -5px rgb(0 0 0/5%), 0 10px 10px -5px rgb(0 0 0/4%);--shadows-lg: 0 1px 3px rgb(0 0 0/5%), 0 28px 23px -7px rgb(0 0 0/5%), 0 12px 12px -7px rgb(0 0 0/4%);--shadows-xl: 0 1px 3px rgb(0 0 0/5%), 0 36px 28px -7px rgb(0 0 0/5%), 0 17px 17px -7px rgb(0 0 0/4%);--z-index-0: 0;--z-index-1: 1;--z-index--1: -1;--z-index-likec4-panel: 100;--z-index-likec4-dropdown: 200;--breakpoints-xs: 36em;--breakpoints-sm: 48em;--breakpoints-md: 62em;--breakpoints-lg: 75em;--breakpoints-xl: 88em;--colors-amber-1: var(--colors-amber-light-1);--colors-amber-2: var(--colors-amber-light-2);--colors-amber-3: var(--colors-amber-light-3);--colors-amber-4: var(--colors-amber-light-4);--colors-amber-5: var(--colors-amber-light-5);--colors-amber-6: var(--colors-amber-light-6);--colors-amber-7: var(--colors-amber-light-7);--colors-amber-8: var(--colors-amber-light-8);--colors-amber-9: var(--colors-amber-light-9);--colors-amber-10: var(--colors-amber-light-10);--colors-amber-11: var(--colors-amber-light-11);--colors-amber-12: var(--colors-amber-light-12);--colors-amber-light-1: #fefdfb;--colors-amber-light-2: #fefbe9;--colors-amber-light-3: #fff7c2;--colors-amber-light-4: #ffee9c;--colors-amber-light-5: #fbe577;--colors-amber-light-6: #f3d673;--colors-amber-light-7: #e9c162;--colors-amber-light-8: #e2a336;--colors-amber-light-9: #ffc53d;--colors-amber-light-10: #ffba18;--colors-amber-light-11: #ab6400;--colors-amber-light-12: #4f3422;--colors-amber-light-a-1: #c0800004;--colors-amber-light-a-2: #f4d10016;--colors-amber-light-a-3: #ffde003d;--colors-amber-light-a-4: #ffd40063;--colors-amber-light-a-5: #f8cf0088;--colors-amber-light-a-6: #eab5008c;--colors-amber-light-a-7: #dc9b009d;--colors-amber-light-a-8: #da8a00c9;--colors-amber-light-a-9: #ffb300c2;--colors-amber-light-a-10: #ffb300e7;--colors-amber-light-a-11: #ab6400;--colors-amber-light-a-12: #341500dd;--colors-amber-light-p3-1: color(display-p3 .995 .992 .985);--colors-amber-light-p3-2: color(display-p3 .994 .986 .921);--colors-amber-light-p3-3: color(display-p3 .994 .969 .782);--colors-amber-light-p3-4: color(display-p3 .989 .937 .65);--colors-amber-light-p3-5: color(display-p3 .97 .902 .527);--colors-amber-light-p3-6: color(display-p3 .936 .844 .506);--colors-amber-light-p3-7: color(display-p3 .89 .762 .443);--colors-amber-light-p3-8: color(display-p3 .85 .65 .3);--colors-amber-light-p3-9: color(display-p3 1 .77 .26);--colors-amber-light-p3-10: color(display-p3 .959 .741 .274);--colors-amber-light-p3-11: color(display-p3 .64 .4 0);--colors-amber-light-p3-12: color(display-p3 .294 .208 .145);--colors-amber-light-p3-a-1: color(display-p3 .757 .514 .024 / .016);--colors-amber-light-p3-a-2: color(display-p3 .902 .804 .008 / .079);--colors-amber-light-p3-a-3: color(display-p3 .965 .859 .004 / .22);--colors-amber-light-p3-a-4: color(display-p3 .969 .82 .004 / .35);--colors-amber-light-p3-a-5: color(display-p3 .933 .796 .004 / .475);--colors-amber-light-p3-a-6: color(display-p3 .875 .682 .004 / .495);--colors-amber-light-p3-a-7: color(display-p3 .804 .573 0 / .557);--colors-amber-light-p3-a-8: color(display-p3 .788 .502 0 / .699);--colors-amber-light-p3-a-9: color(display-p3 1 .686 0 / .742);--colors-amber-light-p3-a-10: color(display-p3 .945 .643 0 / .726);--colors-amber-light-p3-a-11: color(display-p3 .64 .4 0);--colors-amber-light-p3-a-12: color(display-p3 .294 .208 .145);--colors-amber-dark-1: #16120c;--colors-amber-dark-2: #1d180f;--colors-amber-dark-3: #302008;--colors-amber-dark-4: #3f2700;--colors-amber-dark-5: #4d3000;--colors-amber-dark-6: #5c3d05;--colors-amber-dark-7: #714f19;--colors-amber-dark-8: #8f6424;--colors-amber-dark-9: #ffc53d;--colors-amber-dark-10: #ffd60a;--colors-amber-dark-11: #ffca16;--colors-amber-dark-12: #ffe7b3;--colors-amber-dark-a-1: #e63c0006;--colors-amber-dark-a-2: #fd9b000d;--colors-amber-dark-a-3: #fa820022;--colors-amber-dark-a-4: #fc820032;--colors-amber-dark-a-5: #fd8b0041;--colors-amber-dark-a-6: #fd9b0051;--colors-amber-dark-a-7: #ffab2567;--colors-amber-dark-a-8: #ffae3587;--colors-amber-dark-a-9: #ffc53d;--colors-amber-dark-a-10: #ffd60a;--colors-amber-dark-a-11: #ffca16;--colors-amber-dark-a-12: #ffe7b3;--colors-amber-dark-p3-1: color(display-p3 .082 .07 .05);--colors-amber-dark-p3-2: color(display-p3 .111 .094 .064);--colors-amber-dark-p3-3: color(display-p3 .178 .128 .049);--colors-amber-dark-p3-4: color(display-p3 .239 .156 0);--colors-amber-dark-p3-5: color(display-p3 .29 .193 0);--colors-amber-dark-p3-6: color(display-p3 .344 .245 .076);--colors-amber-dark-p3-7: color(display-p3 .422 .314 .141);--colors-amber-dark-p3-8: color(display-p3 .535 .399 .189);--colors-amber-dark-p3-9: color(display-p3 1 .77 .26);--colors-amber-dark-p3-10: color(display-p3 1 .87 .15);--colors-amber-dark-p3-11: color(display-p3 1 .8 .29);--colors-amber-dark-p3-12: color(display-p3 .984 .909 .726);--colors-amber-dark-p3-a-1: color(display-p3 .992 .298 0 / .017);--colors-amber-dark-p3-a-2: color(display-p3 .988 .651 0 / .047);--colors-amber-dark-p3-a-3: color(display-p3 1 .6 0 / .118);--colors-amber-dark-p3-a-4: color(display-p3 1 .557 0 / .185);--colors-amber-dark-p3-a-5: color(display-p3 1 .592 0 / .24);--colors-amber-dark-p3-a-6: color(display-p3 1 .659 .094 / .299);--colors-amber-dark-p3-a-7: color(display-p3 1 .714 .263 / .383);--colors-amber-dark-p3-a-8: color(display-p3 .996 .729 .306 / .5);--colors-amber-dark-p3-a-9: color(display-p3 1 .769 .259);--colors-amber-dark-p3-a-10: color(display-p3 1 .871 .149);--colors-amber-dark-p3-a-11: color(display-p3 1 .8 .29);--colors-amber-dark-p3-a-12: color(display-p3 .984 .909 .726);--colors-amber-a-1: var(--colors-amber-light-a-1);--colors-amber-a-2: var(--colors-amber-light-a-2);--colors-amber-a-3: var(--colors-amber-light-a-3);--colors-amber-a-4: var(--colors-amber-light-a-4);--colors-amber-a-5: var(--colors-amber-light-a-5);--colors-amber-a-6: var(--colors-amber-light-a-6);--colors-amber-a-7: var(--colors-amber-light-a-7);--colors-amber-a-8: var(--colors-amber-light-a-8);--colors-amber-a-9: var(--colors-amber-light-a-9);--colors-amber-a-10: var(--colors-amber-light-a-10);--colors-amber-a-11: var(--colors-amber-light-a-11);--colors-amber-a-12: var(--colors-amber-light-a-12);--colors-amber-p3-1: var(--colors-amber-light-p3-1);--colors-amber-p3-2: var(--colors-amber-light-p3-2);--colors-amber-p3-3: var(--colors-amber-light-p3-3);--colors-amber-p3-4: var(--colors-amber-light-p3-4);--colors-amber-p3-5: var(--colors-amber-light-p3-5);--colors-amber-p3-6: var(--colors-amber-light-p3-6);--colors-amber-p3-7: var(--colors-amber-light-p3-7);--colors-amber-p3-8: var(--colors-amber-light-p3-8);--colors-amber-p3-9: var(--colors-amber-light-p3-9);--colors-amber-p3-10: var(--colors-amber-light-p3-10);--colors-amber-p3-11: var(--colors-amber-light-p3-11);--colors-amber-p3-12: var(--colors-amber-light-p3-12);--colors-amber-p3-a-1: var(--colors-amber-light-p3-a-1);--colors-amber-p3-a-2: var(--colors-amber-light-p3-a-2);--colors-amber-p3-a-3: var(--colors-amber-light-p3-a-3);--colors-amber-p3-a-4: var(--colors-amber-light-p3-a-4);--colors-amber-p3-a-5: var(--colors-amber-light-p3-a-5);--colors-amber-p3-a-6: var(--colors-amber-light-p3-a-6);--colors-amber-p3-a-7: var(--colors-amber-light-p3-a-7);--colors-amber-p3-a-8: var(--colors-amber-light-p3-a-8);--colors-amber-p3-a-9: var(--colors-amber-light-p3-a-9);--colors-amber-p3-a-10: var(--colors-amber-light-p3-a-10);--colors-amber-p3-a-11: var(--colors-amber-light-p3-a-11);--colors-amber-p3-a-12: var(--colors-amber-light-p3-a-12);--colors-blue-1: var(--colors-blue-light-1);--colors-blue-2: var(--colors-blue-light-2);--colors-blue-3: var(--colors-blue-light-3);--colors-blue-4: var(--colors-blue-light-4);--colors-blue-5: var(--colors-blue-light-5);--colors-blue-6: var(--colors-blue-light-6);--colors-blue-7: var(--colors-blue-light-7);--colors-blue-8: var(--colors-blue-light-8);--colors-blue-9: var(--colors-blue-light-9);--colors-blue-10: var(--colors-blue-light-10);--colors-blue-11: var(--colors-blue-light-11);--colors-blue-12: var(--colors-blue-light-12);--colors-blue-light-1: #fbfdff;--colors-blue-light-2: #f4faff;--colors-blue-light-3: #e6f4fe;--colors-blue-light-4: #d5efff;--colors-blue-light-5: #c2e5ff;--colors-blue-light-6: #acd8fc;--colors-blue-light-7: #8ec8f6;--colors-blue-light-8: #5eb1ef;--colors-blue-light-9: #0090ff;--colors-blue-light-10: #0588f0;--colors-blue-light-11: #0d74ce;--colors-blue-light-12: #113264;--colors-blue-light-a-1: #0080ff04;--colors-blue-light-a-2: #008cff0b;--colors-blue-light-a-3: #008ff519;--colors-blue-light-a-4: #009eff2a;--colors-blue-light-a-5: #0093ff3d;--colors-blue-light-a-6: #0088f653;--colors-blue-light-a-7: #0083eb71;--colors-blue-light-a-8: #0084e6a1;--colors-blue-light-a-9: #0090ff;--colors-blue-light-a-10: #0086f0fa;--colors-blue-light-a-11: #006dcbf2;--colors-blue-light-a-12: #002359ee;--colors-blue-light-p3-1: color(display-p3 .986 .992 .999);--colors-blue-light-p3-2: color(display-p3 .96 .979 .998);--colors-blue-light-p3-3: color(display-p3 .912 .956 .991);--colors-blue-light-p3-4: color(display-p3 .853 .932 1);--colors-blue-light-p3-5: color(display-p3 .788 .894 .998);--colors-blue-light-p3-6: color(display-p3 .709 .843 .976);--colors-blue-light-p3-7: color(display-p3 .606 .777 .947);--colors-blue-light-p3-8: color(display-p3 .451 .688 .917);--colors-blue-light-p3-9: color(display-p3 .247 .556 .969);--colors-blue-light-p3-10: color(display-p3 .234 .523 .912);--colors-blue-light-p3-11: color(display-p3 .15 .44 .84);--colors-blue-light-p3-12: color(display-p3 .102 .193 .379);--colors-blue-light-p3-a-1: color(display-p3 .024 .514 1 / .016);--colors-blue-light-p3-a-2: color(display-p3 .024 .514 .906 / .04);--colors-blue-light-p3-a-3: color(display-p3 .012 .506 .914 / .087);--colors-blue-light-p3-a-4: color(display-p3 .008 .545 1 / .146);--colors-blue-light-p3-a-5: color(display-p3 .004 .502 .984 / .212);--colors-blue-light-p3-a-6: color(display-p3 .004 .463 .922 / .291);--colors-blue-light-p3-a-7: color(display-p3 .004 .431 .863 / .393);--colors-blue-light-p3-a-8: color(display-p3 0 .427 .851 / .55);--colors-blue-light-p3-a-9: color(display-p3 0 .412 .961 / .753);--colors-blue-light-p3-a-10: color(display-p3 0 .376 .886 / .765);--colors-blue-light-p3-a-11: color(display-p3 .15 .44 .84);--colors-blue-light-p3-a-12: color(display-p3 .102 .193 .379);--colors-blue-dark-1: #0d1520;--colors-blue-dark-2: #111927;--colors-blue-dark-3: #0d2847;--colors-blue-dark-4: #003362;--colors-blue-dark-5: #004074;--colors-blue-dark-6: #104d87;--colors-blue-dark-7: #205d9e;--colors-blue-dark-8: #2870bd;--colors-blue-dark-9: #0090ff;--colors-blue-dark-10: #3b9eff;--colors-blue-dark-11: #70b8ff;--colors-blue-dark-12: #c2e6ff;--colors-blue-dark-a-1: #004df211;--colors-blue-dark-a-2: #1166fb18;--colors-blue-dark-a-3: #0077ff3a;--colors-blue-dark-a-4: #0075ff57;--colors-blue-dark-a-5: #0081fd6b;--colors-blue-dark-a-6: #0f89fd7f;--colors-blue-dark-a-7: #2a91fe98;--colors-blue-dark-a-8: #3094feb9;--colors-blue-dark-a-9: #0090ff;--colors-blue-dark-a-10: #3b9eff;--colors-blue-dark-a-11: #70b8ff;--colors-blue-dark-a-12: #c2e6ff;--colors-blue-dark-p3-1: color(display-p3 .057 .081 .122);--colors-blue-dark-p3-2: color(display-p3 .072 .098 .147);--colors-blue-dark-p3-3: color(display-p3 .078 .154 .27);--colors-blue-dark-p3-4: color(display-p3 .033 .197 .37);--colors-blue-dark-p3-5: color(display-p3 .08 .245 .441);--colors-blue-dark-p3-6: color(display-p3 .14 .298 .511);--colors-blue-dark-p3-7: color(display-p3 .195 .361 .6);--colors-blue-dark-p3-8: color(display-p3 .239 .434 .72);--colors-blue-dark-p3-9: color(display-p3 .247 .556 .969);--colors-blue-dark-p3-10: color(display-p3 .344 .612 .973);--colors-blue-dark-p3-11: color(display-p3 .49 .72 1);--colors-blue-dark-p3-12: color(display-p3 .788 .898 .99);--colors-blue-dark-p3-a-1: color(display-p3 0 .333 1 / .059);--colors-blue-dark-p3-a-2: color(display-p3 .114 .435 .988 / .085);--colors-blue-dark-p3-a-3: color(display-p3 .122 .463 1 / .219);--colors-blue-dark-p3-a-4: color(display-p3 0 .467 1 / .324);--colors-blue-dark-p3-a-5: color(display-p3 .098 .51 1 / .4);--colors-blue-dark-p3-a-6: color(display-p3 .224 .557 1 / .475);--colors-blue-dark-p3-a-7: color(display-p3 .294 .584 1 / .572);--colors-blue-dark-p3-a-8: color(display-p3 .314 .592 1 / .702);--colors-blue-dark-p3-a-9: color(display-p3 .251 .573 .996 / .967);--colors-blue-dark-p3-a-10: color(display-p3 .357 .631 1 / .971);--colors-blue-dark-p3-a-11: color(display-p3 .49 .72 1);--colors-blue-dark-p3-a-12: color(display-p3 .788 .898 .99);--colors-blue-a-1: var(--colors-blue-light-a-1);--colors-blue-a-2: var(--colors-blue-light-a-2);--colors-blue-a-3: var(--colors-blue-light-a-3);--colors-blue-a-4: var(--colors-blue-light-a-4);--colors-blue-a-5: var(--colors-blue-light-a-5);--colors-blue-a-6: var(--colors-blue-light-a-6);--colors-blue-a-7: var(--colors-blue-light-a-7);--colors-blue-a-8: var(--colors-blue-light-a-8);--colors-blue-a-9: var(--colors-blue-light-a-9);--colors-blue-a-10: var(--colors-blue-light-a-10);--colors-blue-a-11: var(--colors-blue-light-a-11);--colors-blue-a-12: var(--colors-blue-light-a-12);--colors-blue-p3-1: var(--colors-blue-light-p3-1);--colors-blue-p3-2: var(--colors-blue-light-p3-2);--colors-blue-p3-3: var(--colors-blue-light-p3-3);--colors-blue-p3-4: var(--colors-blue-light-p3-4);--colors-blue-p3-5: var(--colors-blue-light-p3-5);--colors-blue-p3-6: var(--colors-blue-light-p3-6);--colors-blue-p3-7: var(--colors-blue-light-p3-7);--colors-blue-p3-8: var(--colors-blue-light-p3-8);--colors-blue-p3-9: var(--colors-blue-light-p3-9);--colors-blue-p3-10: var(--colors-blue-light-p3-10);--colors-blue-p3-11: var(--colors-blue-light-p3-11);--colors-blue-p3-12: var(--colors-blue-light-p3-12);--colors-blue-p3-a-1: var(--colors-blue-light-p3-a-1);--colors-blue-p3-a-2: var(--colors-blue-light-p3-a-2);--colors-blue-p3-a-3: var(--colors-blue-light-p3-a-3);--colors-blue-p3-a-4: var(--colors-blue-light-p3-a-4);--colors-blue-p3-a-5: var(--colors-blue-light-p3-a-5);--colors-blue-p3-a-6: var(--colors-blue-light-p3-a-6);--colors-blue-p3-a-7: var(--colors-blue-light-p3-a-7);--colors-blue-p3-a-8: var(--colors-blue-light-p3-a-8);--colors-blue-p3-a-9: var(--colors-blue-light-p3-a-9);--colors-blue-p3-a-10: var(--colors-blue-light-p3-a-10);--colors-blue-p3-a-11: var(--colors-blue-light-p3-a-11);--colors-blue-p3-a-12: var(--colors-blue-light-p3-a-12);--colors-crimson-1: var(--colors-crimson-light-1);--colors-crimson-2: var(--colors-crimson-light-2);--colors-crimson-3: var(--colors-crimson-light-3);--colors-crimson-4: var(--colors-crimson-light-4);--colors-crimson-5: var(--colors-crimson-light-5);--colors-crimson-6: var(--colors-crimson-light-6);--colors-crimson-7: var(--colors-crimson-light-7);--colors-crimson-8: var(--colors-crimson-light-8);--colors-crimson-9: var(--colors-crimson-light-9);--colors-crimson-10: var(--colors-crimson-light-10);--colors-crimson-11: var(--colors-crimson-light-11);--colors-crimson-12: var(--colors-crimson-light-12);--colors-crimson-light-1: #fffcfd;--colors-crimson-light-2: #fef7f9;--colors-crimson-light-3: #ffe9f0;--colors-crimson-light-4: #fedce7;--colors-crimson-light-5: #facedd;--colors-crimson-light-6: #f3bed1;--colors-crimson-light-7: #eaacc3;--colors-crimson-light-8: #e093b2;--colors-crimson-light-9: #e93d82;--colors-crimson-light-10: #df3478;--colors-crimson-light-11: #cb1d63;--colors-crimson-light-12: #621639;--colors-crimson-light-a-1: #ff005503;--colors-crimson-light-a-2: #e0004008;--colors-crimson-light-a-3: #ff005216;--colors-crimson-light-a-4: #f8005123;--colors-crimson-light-a-5: #e5004f31;--colors-crimson-light-a-6: #d0004b41;--colors-crimson-light-a-7: #bf004753;--colors-crimson-light-a-8: #b6004a6c;--colors-crimson-light-a-9: #e2005bc2;--colors-crimson-light-a-10: #d70056cb;--colors-crimson-light-a-11: #c4004fe2;--colors-crimson-light-a-12: #530026e9;--colors-crimson-light-p3-1: color(display-p3 .998 .989 .992);--colors-crimson-light-p3-2: color(display-p3 .991 .969 .976);--colors-crimson-light-p3-3: color(display-p3 .987 .917 .941);--colors-crimson-light-p3-4: color(display-p3 .975 .866 .904);--colors-crimson-light-p3-5: color(display-p3 .953 .813 .864);--colors-crimson-light-p3-6: color(display-p3 .921 .755 .817);--colors-crimson-light-p3-7: color(display-p3 .88 .683 .761);--colors-crimson-light-p3-8: color(display-p3 .834 .592 .694);--colors-crimson-light-p3-9: color(display-p3 .843 .298 .507);--colors-crimson-light-p3-10: color(display-p3 .807 .266 .468);--colors-crimson-light-p3-11: color(display-p3 .731 .195 .388);--colors-crimson-light-p3-12: color(display-p3 .352 .111 .221);--colors-crimson-light-p3-a-1: color(display-p3 .675 .024 .349 / .012);--colors-crimson-light-p3-a-2: color(display-p3 .757 .02 .267 / .032);--colors-crimson-light-p3-a-3: color(display-p3 .859 .008 .294 / .083);--colors-crimson-light-p3-a-4: color(display-p3 .827 .008 .298 / .134);--colors-crimson-light-p3-a-5: color(display-p3 .753 .008 .275 / .189);--colors-crimson-light-p3-a-6: color(display-p3 .682 .004 .247 / .244);--colors-crimson-light-p3-a-7: color(display-p3 .62 .004 .251 / .318);--colors-crimson-light-p3-a-8: color(display-p3 .6 .004 .251 / .408);--colors-crimson-light-p3-a-9: color(display-p3 .776 0 .298 / .702);--colors-crimson-light-p3-a-10: color(display-p3 .737 0 .275 / .734);--colors-crimson-light-p3-a-11: color(display-p3 .731 .195 .388);--colors-crimson-light-p3-a-12: color(display-p3 .352 .111 .221);--colors-crimson-dark-1: #191114;--colors-crimson-dark-2: #201318;--colors-crimson-dark-3: #381525;--colors-crimson-dark-4: #4d122f;--colors-crimson-dark-5: #5c1839;--colors-crimson-dark-6: #6d2545;--colors-crimson-dark-7: #873356;--colors-crimson-dark-8: #b0436e;--colors-crimson-dark-9: #e93d82;--colors-crimson-dark-10: #ee518a;--colors-crimson-dark-11: #ff92ad;--colors-crimson-dark-12: #fdd3e8;--colors-crimson-dark-a-1: #f4126709;--colors-crimson-dark-a-2: #f22f7a11;--colors-crimson-dark-a-3: #fe2a8b2a;--colors-crimson-dark-a-4: #fd158741;--colors-crimson-dark-a-5: #fd278f51;--colors-crimson-dark-a-6: #fe459763;--colors-crimson-dark-a-7: #fd559b7f;--colors-crimson-dark-a-8: #fe5b9bab;--colors-crimson-dark-a-9: #fe418de8;--colors-crimson-dark-a-10: #ff5693ed;--colors-crimson-dark-a-11: #ff92ad;--colors-crimson-dark-a-12: #ffd5eafd;--colors-crimson-dark-p3-1: color(display-p3 .093 .068 .078);--colors-crimson-dark-p3-2: color(display-p3 .117 .078 .095);--colors-crimson-dark-p3-3: color(display-p3 .203 .091 .143);--colors-crimson-dark-p3-4: color(display-p3 .277 .087 .182);--colors-crimson-dark-p3-5: color(display-p3 .332 .115 .22);--colors-crimson-dark-p3-6: color(display-p3 .394 .162 .268);--colors-crimson-dark-p3-7: color(display-p3 .489 .222 .336);--colors-crimson-dark-p3-8: color(display-p3 .638 .289 .429);--colors-crimson-dark-p3-9: color(display-p3 .843 .298 .507);--colors-crimson-dark-p3-10: color(display-p3 .864 .364 .539);--colors-crimson-dark-p3-11: color(display-p3 1 .56 .66);--colors-crimson-dark-p3-12: color(display-p3 .966 .834 .906);--colors-crimson-dark-p3-a-1: color(display-p3 .984 .071 .463 / .03);--colors-crimson-dark-p3-a-2: color(display-p3 .996 .282 .569 / .055);--colors-crimson-dark-p3-a-3: color(display-p3 .996 .227 .573 / .148);--colors-crimson-dark-p3-a-4: color(display-p3 1 .157 .569 / .227);--colors-crimson-dark-p3-a-5: color(display-p3 1 .231 .604 / .286);--colors-crimson-dark-p3-a-6: color(display-p3 1 .337 .643 / .349);--colors-crimson-dark-p3-a-7: color(display-p3 1 .416 .663 / .454);--colors-crimson-dark-p3-a-8: color(display-p3 .996 .427 .651 / .614);--colors-crimson-dark-p3-a-9: color(display-p3 1 .345 .596 / .832);--colors-crimson-dark-p3-a-10: color(display-p3 1 .42 .62 / .853);--colors-crimson-dark-p3-a-11: color(display-p3 1 .56 .66);--colors-crimson-dark-p3-a-12: color(display-p3 .966 .834 .906);--colors-crimson-a-1: var(--colors-crimson-light-a-1);--colors-crimson-a-2: var(--colors-crimson-light-a-2);--colors-crimson-a-3: var(--colors-crimson-light-a-3);--colors-crimson-a-4: var(--colors-crimson-light-a-4);--colors-crimson-a-5: var(--colors-crimson-light-a-5);--colors-crimson-a-6: var(--colors-crimson-light-a-6);--colors-crimson-a-7: var(--colors-crimson-light-a-7);--colors-crimson-a-8: var(--colors-crimson-light-a-8);--colors-crimson-a-9: var(--colors-crimson-light-a-9);--colors-crimson-a-10: var(--colors-crimson-light-a-10);--colors-crimson-a-11: var(--colors-crimson-light-a-11);--colors-crimson-a-12: var(--colors-crimson-light-a-12);--colors-crimson-p3-1: var(--colors-crimson-light-p3-1);--colors-crimson-p3-2: var(--colors-crimson-light-p3-2);--colors-crimson-p3-3: var(--colors-crimson-light-p3-3);--colors-crimson-p3-4: var(--colors-crimson-light-p3-4);--colors-crimson-p3-5: var(--colors-crimson-light-p3-5);--colors-crimson-p3-6: var(--colors-crimson-light-p3-6);--colors-crimson-p3-7: var(--colors-crimson-light-p3-7);--colors-crimson-p3-8: var(--colors-crimson-light-p3-8);--colors-crimson-p3-9: var(--colors-crimson-light-p3-9);--colors-crimson-p3-10: var(--colors-crimson-light-p3-10);--colors-crimson-p3-11: var(--colors-crimson-light-p3-11);--colors-crimson-p3-12: var(--colors-crimson-light-p3-12);--colors-crimson-p3-a-1: var(--colors-crimson-light-p3-a-1);--colors-crimson-p3-a-2: var(--colors-crimson-light-p3-a-2);--colors-crimson-p3-a-3: var(--colors-crimson-light-p3-a-3);--colors-crimson-p3-a-4: var(--colors-crimson-light-p3-a-4);--colors-crimson-p3-a-5: var(--colors-crimson-light-p3-a-5);--colors-crimson-p3-a-6: var(--colors-crimson-light-p3-a-6);--colors-crimson-p3-a-7: var(--colors-crimson-light-p3-a-7);--colors-crimson-p3-a-8: var(--colors-crimson-light-p3-a-8);--colors-crimson-p3-a-9: var(--colors-crimson-light-p3-a-9);--colors-crimson-p3-a-10: var(--colors-crimson-light-p3-a-10);--colors-crimson-p3-a-11: var(--colors-crimson-light-p3-a-11);--colors-crimson-p3-a-12: var(--colors-crimson-light-p3-a-12);--colors-grass-1: var(--colors-grass-light-1);--colors-grass-2: var(--colors-grass-light-2);--colors-grass-3: var(--colors-grass-light-3);--colors-grass-4: var(--colors-grass-light-4);--colors-grass-5: var(--colors-grass-light-5);--colors-grass-6: var(--colors-grass-light-6);--colors-grass-7: var(--colors-grass-light-7);--colors-grass-8: var(--colors-grass-light-8);--colors-grass-9: var(--colors-grass-light-9);--colors-grass-10: var(--colors-grass-light-10);--colors-grass-11: var(--colors-grass-light-11);--colors-grass-12: var(--colors-grass-light-12);--colors-grass-light-1: #fbfefb;--colors-grass-light-2: #f5fbf5;--colors-grass-light-3: #e9f6e9;--colors-grass-light-4: #daf1db;--colors-grass-light-5: #c9e8ca;--colors-grass-light-6: #b2ddb5;--colors-grass-light-7: #94ce9a;--colors-grass-light-8: #65ba74;--colors-grass-light-9: #46a758;--colors-grass-light-10: #3e9b4f;--colors-grass-light-11: #2a7e3b;--colors-grass-light-12: #203c25;--colors-grass-light-a-1: #00c00004;--colors-grass-light-a-2: #0099000a;--colors-grass-light-a-3: #00970016;--colors-grass-light-a-4: #009f0725;--colors-grass-light-a-5: #00930536;--colors-grass-light-a-6: #008f0a4d;--colors-grass-light-a-7: #018b0f6b;--colors-grass-light-a-8: #008d199a;--colors-grass-light-a-9: #008619b9;--colors-grass-light-a-10: #007b17c1;--colors-grass-light-a-11: #006514d5;--colors-grass-light-a-12: #002006df;--colors-grass-light-p3-1: color(display-p3 .986 .996 .985);--colors-grass-light-p3-2: color(display-p3 .966 .983 .964);--colors-grass-light-p3-3: color(display-p3 .923 .965 .917);--colors-grass-light-p3-4: color(display-p3 .872 .94 .865);--colors-grass-light-p3-5: color(display-p3 .811 .908 .802);--colors-grass-light-p3-6: color(display-p3 .733 .864 .724);--colors-grass-light-p3-7: color(display-p3 .628 .803 .622);--colors-grass-light-p3-8: color(display-p3 .477 .72 .482);--colors-grass-light-p3-9: color(display-p3 .38 .647 .378);--colors-grass-light-p3-10: color(display-p3 .344 .598 .342);--colors-grass-light-p3-11: color(display-p3 .263 .488 .261);--colors-grass-light-p3-12: color(display-p3 .151 .233 .153);--colors-grass-light-p3-a-1: color(display-p3 .024 .757 .024 / .016);--colors-grass-light-p3-a-2: color(display-p3 .024 .565 .024 / .036);--colors-grass-light-p3-a-3: color(display-p3 .059 .576 .008 / .083);--colors-grass-light-p3-a-4: color(display-p3 .035 .565 .008 / .134);--colors-grass-light-p3-a-5: color(display-p3 .047 .545 .008 / .197);--colors-grass-light-p3-a-6: color(display-p3 .031 .502 .004 / .275);--colors-grass-light-p3-a-7: color(display-p3 .012 .482 .004 / .377);--colors-grass-light-p3-a-8: color(display-p3 0 .467 .008 / .522);--colors-grass-light-p3-a-9: color(display-p3 .008 .435 0 / .624);--colors-grass-light-p3-a-10: color(display-p3 .008 .388 0 / .659);--colors-grass-light-p3-a-11: color(display-p3 .263 .488 .261);--colors-grass-light-p3-a-12: color(display-p3 .151 .233 .153);--colors-grass-dark-1: #0e1511;--colors-grass-dark-2: #141a15;--colors-grass-dark-3: #1b2a1e;--colors-grass-dark-4: #1d3a24;--colors-grass-dark-5: #25482d;--colors-grass-dark-6: #2d5736;--colors-grass-dark-7: #366740;--colors-grass-dark-8: #3e7949;--colors-grass-dark-9: #46a758;--colors-grass-dark-10: #53b365;--colors-grass-dark-11: #71d083;--colors-grass-dark-12: #c2f0c2;--colors-grass-dark-a-1: #00de1205;--colors-grass-dark-a-2: #5ef7780a;--colors-grass-dark-a-3: #70fe8c1b;--colors-grass-dark-a-4: #57ff802c;--colors-grass-dark-a-5: #68ff8b3b;--colors-grass-dark-a-6: #71ff8f4b;--colors-grass-dark-a-7: #77fd925d;--colors-grass-dark-a-8: #77fd9070;--colors-grass-dark-a-9: #65ff82a1;--colors-grass-dark-a-10: #72ff8dae;--colors-grass-dark-a-11: #89ff9fcd;--colors-grass-dark-a-12: #ceffceef;--colors-grass-dark-p3-1: color(display-p3 .062 .083 .067);--colors-grass-dark-p3-2: color(display-p3 .083 .103 .085);--colors-grass-dark-p3-3: color(display-p3 .118 .163 .122);--colors-grass-dark-p3-4: color(display-p3 .142 .225 .15);--colors-grass-dark-p3-5: color(display-p3 .178 .279 .186);--colors-grass-dark-p3-6: color(display-p3 .217 .337 .224);--colors-grass-dark-p3-7: color(display-p3 .258 .4 .264);--colors-grass-dark-p3-8: color(display-p3 .302 .47 .305);--colors-grass-dark-p3-9: color(display-p3 .38 .647 .378);--colors-grass-dark-p3-10: color(display-p3 .426 .694 .426);--colors-grass-dark-p3-11: color(display-p3 .535 .807 .542);--colors-grass-dark-p3-12: color(display-p3 .797 .936 .776);--colors-grass-dark-p3-a-1: color(display-p3 0 .992 .071 / .017);--colors-grass-dark-p3-a-2: color(display-p3 .482 .996 .584 / .038);--colors-grass-dark-p3-a-3: color(display-p3 .549 .992 .588 / .106);--colors-grass-dark-p3-a-4: color(display-p3 .51 .996 .557 / .169);--colors-grass-dark-p3-a-5: color(display-p3 .553 1 .588 / .227);--colors-grass-dark-p3-a-6: color(display-p3 .584 1 .608 / .29);--colors-grass-dark-p3-a-7: color(display-p3 .604 1 .616 / .358);--colors-grass-dark-p3-a-8: color(display-p3 .608 1 .62 / .433);--colors-grass-dark-p3-a-9: color(display-p3 .573 1 .569 / .622);--colors-grass-dark-p3-a-10: color(display-p3 .6 .996 .6 / .673);--colors-grass-dark-p3-a-11: color(display-p3 .535 .807 .542);--colors-grass-dark-p3-a-12: color(display-p3 .797 .936 .776);--colors-grass-a-1: var(--colors-grass-light-a-1);--colors-grass-a-2: var(--colors-grass-light-a-2);--colors-grass-a-3: var(--colors-grass-light-a-3);--colors-grass-a-4: var(--colors-grass-light-a-4);--colors-grass-a-5: var(--colors-grass-light-a-5);--colors-grass-a-6: var(--colors-grass-light-a-6);--colors-grass-a-7: var(--colors-grass-light-a-7);--colors-grass-a-8: var(--colors-grass-light-a-8);--colors-grass-a-9: var(--colors-grass-light-a-9);--colors-grass-a-10: var(--colors-grass-light-a-10);--colors-grass-a-11: var(--colors-grass-light-a-11);--colors-grass-a-12: var(--colors-grass-light-a-12);--colors-grass-p3-1: var(--colors-grass-light-p3-1);--colors-grass-p3-2: var(--colors-grass-light-p3-2);--colors-grass-p3-3: var(--colors-grass-light-p3-3);--colors-grass-p3-4: var(--colors-grass-light-p3-4);--colors-grass-p3-5: var(--colors-grass-light-p3-5);--colors-grass-p3-6: var(--colors-grass-light-p3-6);--colors-grass-p3-7: var(--colors-grass-light-p3-7);--colors-grass-p3-8: var(--colors-grass-light-p3-8);--colors-grass-p3-9: var(--colors-grass-light-p3-9);--colors-grass-p3-10: var(--colors-grass-light-p3-10);--colors-grass-p3-11: var(--colors-grass-light-p3-11);--colors-grass-p3-12: var(--colors-grass-light-p3-12);--colors-grass-p3-a-1: var(--colors-grass-light-p3-a-1);--colors-grass-p3-a-2: var(--colors-grass-light-p3-a-2);--colors-grass-p3-a-3: var(--colors-grass-light-p3-a-3);--colors-grass-p3-a-4: var(--colors-grass-light-p3-a-4);--colors-grass-p3-a-5: var(--colors-grass-light-p3-a-5);--colors-grass-p3-a-6: var(--colors-grass-light-p3-a-6);--colors-grass-p3-a-7: var(--colors-grass-light-p3-a-7);--colors-grass-p3-a-8: var(--colors-grass-light-p3-a-8);--colors-grass-p3-a-9: var(--colors-grass-light-p3-a-9);--colors-grass-p3-a-10: var(--colors-grass-light-p3-a-10);--colors-grass-p3-a-11: var(--colors-grass-light-p3-a-11);--colors-grass-p3-a-12: var(--colors-grass-light-p3-a-12);--colors-indigo-1: var(--colors-indigo-light-1);--colors-indigo-2: var(--colors-indigo-light-2);--colors-indigo-3: var(--colors-indigo-light-3);--colors-indigo-4: var(--colors-indigo-light-4);--colors-indigo-5: var(--colors-indigo-light-5);--colors-indigo-6: var(--colors-indigo-light-6);--colors-indigo-7: var(--colors-indigo-light-7);--colors-indigo-8: var(--colors-indigo-light-8);--colors-indigo-9: var(--colors-indigo-light-9);--colors-indigo-10: var(--colors-indigo-light-10);--colors-indigo-11: var(--colors-indigo-light-11);--colors-indigo-12: var(--colors-indigo-light-12);--colors-indigo-light-1: #fdfdfe;--colors-indigo-light-2: #f7f9ff;--colors-indigo-light-3: #edf2fe;--colors-indigo-light-4: #e1e9ff;--colors-indigo-light-5: #d2deff;--colors-indigo-light-6: #c1d0ff;--colors-indigo-light-7: #abbdf9;--colors-indigo-light-8: #8da4ef;--colors-indigo-light-9: #3e63dd;--colors-indigo-light-10: #3358d4;--colors-indigo-light-11: #3a5bc7;--colors-indigo-light-12: #1f2d5c;--colors-indigo-light-a-1: #00008002;--colors-indigo-light-a-2: #0040ff08;--colors-indigo-light-a-3: #0047f112;--colors-indigo-light-a-4: #0044ff1e;--colors-indigo-light-a-5: #0044ff2d;--colors-indigo-light-a-6: #003eff3e;--colors-indigo-light-a-7: #0037ed54;--colors-indigo-light-a-8: #0034dc72;--colors-indigo-light-a-9: #0031d2c1;--colors-indigo-light-a-10: #002ec9cc;--colors-indigo-light-a-11: #002bb7c5;--colors-indigo-light-a-12: #001046e0;--colors-indigo-light-p3-1: color(display-p3 .992 .992 .996);--colors-indigo-light-p3-2: color(display-p3 .971 .977 .998);--colors-indigo-light-p3-3: color(display-p3 .933 .948 .992);--colors-indigo-light-p3-4: color(display-p3 .885 .914 1);--colors-indigo-light-p3-5: color(display-p3 .831 .87 1);--colors-indigo-light-p3-6: color(display-p3 .767 .814 .995);--colors-indigo-light-p3-7: color(display-p3 .685 .74 .957);--colors-indigo-light-p3-8: color(display-p3 .569 .639 .916);--colors-indigo-light-p3-9: color(display-p3 .276 .384 .837);--colors-indigo-light-p3-10: color(display-p3 .234 .343 .801);--colors-indigo-light-p3-11: color(display-p3 .256 .354 .755);--colors-indigo-light-p3-12: color(display-p3 .133 .175 .348);--colors-indigo-light-p3-a-1: color(display-p3 .02 .02 .51 / .008);--colors-indigo-light-p3-a-2: color(display-p3 .024 .161 .863 / .028);--colors-indigo-light-p3-a-3: color(display-p3 .008 .239 .886 / .067);--colors-indigo-light-p3-a-4: color(display-p3 .004 .247 1 / .114);--colors-indigo-light-p3-a-5: color(display-p3 .004 .235 1 / .169);--colors-indigo-light-p3-a-6: color(display-p3 .004 .208 .984 / .232);--colors-indigo-light-p3-a-7: color(display-p3 .004 .176 .863 / .314);--colors-indigo-light-p3-a-8: color(display-p3 .004 .165 .812 / .432);--colors-indigo-light-p3-a-9: color(display-p3 0 .153 .773 / .726);--colors-indigo-light-p3-a-10: color(display-p3 0 .137 .737 / .765);--colors-indigo-light-p3-a-11: color(display-p3 .256 .354 .755);--colors-indigo-light-p3-a-12: color(display-p3 .133 .175 .348);--colors-indigo-dark-1: #11131f;--colors-indigo-dark-2: #141726;--colors-indigo-dark-3: #182449;--colors-indigo-dark-4: #1d2e62;--colors-indigo-dark-5: #253974;--colors-indigo-dark-6: #304384;--colors-indigo-dark-7: #3a4f97;--colors-indigo-dark-8: #435db1;--colors-indigo-dark-9: #3e63dd;--colors-indigo-dark-10: #5472e4;--colors-indigo-dark-11: #9eb1ff;--colors-indigo-dark-12: #d6e1ff;--colors-indigo-dark-a-1: #1133ff0f;--colors-indigo-dark-a-2: #3354fa17;--colors-indigo-dark-a-3: #2f62ff3c;--colors-indigo-dark-a-4: #3566ff57;--colors-indigo-dark-a-5: #4171fd6b;--colors-indigo-dark-a-6: #5178fd7c;--colors-indigo-dark-a-7: #5a7fff90;--colors-indigo-dark-a-8: #5b81feac;--colors-indigo-dark-a-9: #4671ffdb;--colors-indigo-dark-a-10: #5c7efee3;--colors-indigo-dark-a-11: #9eb1ff;--colors-indigo-dark-a-12: #d6e1ff;--colors-indigo-dark-p3-1: color(display-p3 .068 .074 .118);--colors-indigo-dark-p3-2: color(display-p3 .081 .089 .144);--colors-indigo-dark-p3-3: color(display-p3 .105 .141 .275);--colors-indigo-dark-p3-4: color(display-p3 .129 .18 .369);--colors-indigo-dark-p3-5: color(display-p3 .163 .22 .439);--colors-indigo-dark-p3-6: color(display-p3 .203 .262 .5);--colors-indigo-dark-p3-7: color(display-p3 .245 .309 .575);--colors-indigo-dark-p3-8: color(display-p3 .285 .362 .674);--colors-indigo-dark-p3-9: color(display-p3 .276 .384 .837);--colors-indigo-dark-p3-10: color(display-p3 .354 .445 .866);--colors-indigo-dark-p3-11: color(display-p3 .63 .69 1);--colors-indigo-dark-p3-12: color(display-p3 .848 .881 .99);--colors-indigo-dark-p3-a-1: color(display-p3 .071 .212 .996 / .055);--colors-indigo-dark-p3-a-2: color(display-p3 .251 .345 .988 / .085);--colors-indigo-dark-p3-a-3: color(display-p3 .243 .404 1 / .223);--colors-indigo-dark-p3-a-4: color(display-p3 .263 .42 1 / .324);--colors-indigo-dark-p3-a-5: color(display-p3 .314 .451 1 / .4);--colors-indigo-dark-p3-a-6: color(display-p3 .361 .49 1 / .467);--colors-indigo-dark-p3-a-7: color(display-p3 .388 .51 1 / .547);--colors-indigo-dark-p3-a-8: color(display-p3 .404 .518 1 / .652);--colors-indigo-dark-p3-a-9: color(display-p3 .318 .451 1 / .824);--colors-indigo-dark-p3-a-10: color(display-p3 .404 .506 1 / .858);--colors-indigo-dark-p3-a-11: color(display-p3 .63 .69 1);--colors-indigo-dark-p3-a-12: color(display-p3 .848 .881 .99);--colors-indigo-a-1: var(--colors-indigo-light-a-1);--colors-indigo-a-2: var(--colors-indigo-light-a-2);--colors-indigo-a-3: var(--colors-indigo-light-a-3);--colors-indigo-a-4: var(--colors-indigo-light-a-4);--colors-indigo-a-5: var(--colors-indigo-light-a-5);--colors-indigo-a-6: var(--colors-indigo-light-a-6);--colors-indigo-a-7: var(--colors-indigo-light-a-7);--colors-indigo-a-8: var(--colors-indigo-light-a-8);--colors-indigo-a-9: var(--colors-indigo-light-a-9);--colors-indigo-a-10: var(--colors-indigo-light-a-10);--colors-indigo-a-11: var(--colors-indigo-light-a-11);--colors-indigo-a-12: var(--colors-indigo-light-a-12);--colors-indigo-p3-1: var(--colors-indigo-light-p3-1);--colors-indigo-p3-2: var(--colors-indigo-light-p3-2);--colors-indigo-p3-3: var(--colors-indigo-light-p3-3);--colors-indigo-p3-4: var(--colors-indigo-light-p3-4);--colors-indigo-p3-5: var(--colors-indigo-light-p3-5);--colors-indigo-p3-6: var(--colors-indigo-light-p3-6);--colors-indigo-p3-7: var(--colors-indigo-light-p3-7);--colors-indigo-p3-8: var(--colors-indigo-light-p3-8);--colors-indigo-p3-9: var(--colors-indigo-light-p3-9);--colors-indigo-p3-10: var(--colors-indigo-light-p3-10);--colors-indigo-p3-11: var(--colors-indigo-light-p3-11);--colors-indigo-p3-12: var(--colors-indigo-light-p3-12);--colors-indigo-p3-a-1: var(--colors-indigo-light-p3-a-1);--colors-indigo-p3-a-2: var(--colors-indigo-light-p3-a-2);--colors-indigo-p3-a-3: var(--colors-indigo-light-p3-a-3);--colors-indigo-p3-a-4: var(--colors-indigo-light-p3-a-4);--colors-indigo-p3-a-5: var(--colors-indigo-light-p3-a-5);--colors-indigo-p3-a-6: var(--colors-indigo-light-p3-a-6);--colors-indigo-p3-a-7: var(--colors-indigo-light-p3-a-7);--colors-indigo-p3-a-8: var(--colors-indigo-light-p3-a-8);--colors-indigo-p3-a-9: var(--colors-indigo-light-p3-a-9);--colors-indigo-p3-a-10: var(--colors-indigo-light-p3-a-10);--colors-indigo-p3-a-11: var(--colors-indigo-light-p3-a-11);--colors-indigo-p3-a-12: var(--colors-indigo-light-p3-a-12);--colors-lime-1: var(--colors-lime-light-1);--colors-lime-2: var(--colors-lime-light-2);--colors-lime-3: var(--colors-lime-light-3);--colors-lime-4: var(--colors-lime-light-4);--colors-lime-5: var(--colors-lime-light-5);--colors-lime-6: var(--colors-lime-light-6);--colors-lime-7: var(--colors-lime-light-7);--colors-lime-8: var(--colors-lime-light-8);--colors-lime-9: var(--colors-lime-light-9);--colors-lime-10: var(--colors-lime-light-10);--colors-lime-11: var(--colors-lime-light-11);--colors-lime-12: var(--colors-lime-light-12);--colors-lime-light-1: #fcfdfa;--colors-lime-light-2: #f8faf3;--colors-lime-light-3: #eef6d6;--colors-lime-light-4: #e2f0bd;--colors-lime-light-5: #d3e7a6;--colors-lime-light-6: #c2da91;--colors-lime-light-7: #abc978;--colors-lime-light-8: #8db654;--colors-lime-light-9: #bdee63;--colors-lime-light-10: #b0e64c;--colors-lime-light-11: #5c7c2f;--colors-lime-light-12: #37401c;--colors-lime-light-a-1: #66990005;--colors-lime-light-a-2: #6b95000c;--colors-lime-light-a-3: #96c80029;--colors-lime-light-a-4: #8fc60042;--colors-lime-light-a-5: #81bb0059;--colors-lime-light-a-6: #72aa006e;--colors-lime-light-a-7: #61990087;--colors-lime-light-a-8: #559200ab;--colors-lime-light-a-9: #93e4009c;--colors-lime-light-a-10: #8fdc00b3;--colors-lime-light-a-11: #375f00d0;--colors-lime-light-a-12: #1e2900e3;--colors-lime-light-p3-1: color(display-p3 .989 .992 .981);--colors-lime-light-p3-2: color(display-p3 .975 .98 .954);--colors-lime-light-p3-3: color(display-p3 .939 .965 .851);--colors-lime-light-p3-4: color(display-p3 .896 .94 .76);--colors-lime-light-p3-5: color(display-p3 .843 .903 .678);--colors-lime-light-p3-6: color(display-p3 .778 .852 .599);--colors-lime-light-p3-7: color(display-p3 .694 .784 .508);--colors-lime-light-p3-8: color(display-p3 .585 .707 .378);--colors-lime-light-p3-9: color(display-p3 .78 .928 .466);--colors-lime-light-p3-10: color(display-p3 .734 .896 .397);--colors-lime-light-p3-11: color(display-p3 .386 .482 .227);--colors-lime-light-p3-12: color(display-p3 .222 .25 .128);--colors-lime-light-p3-a-1: color(display-p3 .412 .608 .02 / .02);--colors-lime-light-p3-a-2: color(display-p3 .514 .592 .024 / .048);--colors-lime-light-p3-a-3: color(display-p3 .584 .765 .008 / .15);--colors-lime-light-p3-a-4: color(display-p3 .561 .757 .004 / .24);--colors-lime-light-p3-a-5: color(display-p3 .514 .698 .004 / .322);--colors-lime-light-p3-a-6: color(display-p3 .443 .627 0 / .4);--colors-lime-light-p3-a-7: color(display-p3 .376 .561 .004 / .491);--colors-lime-light-p3-a-8: color(display-p3 .333 .529 0 / .624);--colors-lime-light-p3-a-9: color(display-p3 .588 .867 0 / .534);--colors-lime-light-p3-a-10: color(display-p3 .561 .827 0 / .604);--colors-lime-light-p3-a-11: color(display-p3 .386 .482 .227);--colors-lime-light-p3-a-12: color(display-p3 .222 .25 .128);--colors-lime-dark-1: #11130c;--colors-lime-dark-2: #151a10;--colors-lime-dark-3: #1f2917;--colors-lime-dark-4: #29371d;--colors-lime-dark-5: #334423;--colors-lime-dark-6: #3d522a;--colors-lime-dark-7: #496231;--colors-lime-dark-8: #577538;--colors-lime-dark-9: #bdee63;--colors-lime-dark-10: #d4ff70;--colors-lime-dark-11: #bde56c;--colors-lime-dark-12: #e3f7ba;--colors-lime-dark-a-1: #11bb0003;--colors-lime-dark-a-2: #78f7000a;--colors-lime-dark-a-3: #9bfd4c1a;--colors-lime-dark-a-4: #a7fe5c29;--colors-lime-dark-a-5: #affe6537;--colors-lime-dark-a-6: #b2fe6d46;--colors-lime-dark-a-7: #b6ff6f57;--colors-lime-dark-a-8: #b6fd6d6c;--colors-lime-dark-a-9: #caff69ed;--colors-lime-dark-a-10: #d4ff70;--colors-lime-dark-a-11: #d1fe77e4;--colors-lime-dark-a-12: #e9febff7;--colors-lime-dark-p3-1: color(display-p3 .067 .073 .048);--colors-lime-dark-p3-2: color(display-p3 .086 .1 .067);--colors-lime-dark-p3-3: color(display-p3 .13 .16 .099);--colors-lime-dark-p3-4: color(display-p3 .172 .214 .126);--colors-lime-dark-p3-5: color(display-p3 .213 .266 .153);--colors-lime-dark-p3-6: color(display-p3 .257 .321 .182);--colors-lime-dark-p3-7: color(display-p3 .307 .383 .215);--colors-lime-dark-p3-8: color(display-p3 .365 .456 .25);--colors-lime-dark-p3-9: color(display-p3 .78 .928 .466);--colors-lime-dark-p3-10: color(display-p3 .865 .995 .519);--colors-lime-dark-p3-11: color(display-p3 .771 .893 .485);--colors-lime-dark-p3-12: color(display-p3 .905 .966 .753);--colors-lime-dark-p3-a-1: color(display-p3 .067 .941 0 / .009);--colors-lime-dark-p3-a-2: color(display-p3 .584 .996 .071 / .038);--colors-lime-dark-p3-a-3: color(display-p3 .69 1 .38 / .101);--colors-lime-dark-p3-a-4: color(display-p3 .729 1 .435 / .16);--colors-lime-dark-p3-a-5: color(display-p3 .745 1 .471 / .215);--colors-lime-dark-p3-a-6: color(display-p3 .769 1 .482 / .274);--colors-lime-dark-p3-a-7: color(display-p3 .769 1 .506 / .341);--colors-lime-dark-p3-a-8: color(display-p3 .784 1 .51 / .416);--colors-lime-dark-p3-a-9: color(display-p3 .839 1 .502 / .925);--colors-lime-dark-p3-a-10: color(display-p3 .871 1 .522 / .996);--colors-lime-dark-p3-a-11: color(display-p3 .771 .893 .485);--colors-lime-dark-p3-a-12: color(display-p3 .905 .966 .753);--colors-lime-a-1: var(--colors-lime-light-a-1);--colors-lime-a-2: var(--colors-lime-light-a-2);--colors-lime-a-3: var(--colors-lime-light-a-3);--colors-lime-a-4: var(--colors-lime-light-a-4);--colors-lime-a-5: var(--colors-lime-light-a-5);--colors-lime-a-6: var(--colors-lime-light-a-6);--colors-lime-a-7: var(--colors-lime-light-a-7);--colors-lime-a-8: var(--colors-lime-light-a-8);--colors-lime-a-9: var(--colors-lime-light-a-9);--colors-lime-a-10: var(--colors-lime-light-a-10);--colors-lime-a-11: var(--colors-lime-light-a-11);--colors-lime-a-12: var(--colors-lime-light-a-12);--colors-lime-p3-1: var(--colors-lime-light-p3-1);--colors-lime-p3-2: var(--colors-lime-light-p3-2);--colors-lime-p3-3: var(--colors-lime-light-p3-3);--colors-lime-p3-4: var(--colors-lime-light-p3-4);--colors-lime-p3-5: var(--colors-lime-light-p3-5);--colors-lime-p3-6: var(--colors-lime-light-p3-6);--colors-lime-p3-7: var(--colors-lime-light-p3-7);--colors-lime-p3-8: var(--colors-lime-light-p3-8);--colors-lime-p3-9: var(--colors-lime-light-p3-9);--colors-lime-p3-10: var(--colors-lime-light-p3-10);--colors-lime-p3-11: var(--colors-lime-light-p3-11);--colors-lime-p3-12: var(--colors-lime-light-p3-12);--colors-lime-p3-a-1: var(--colors-lime-light-p3-a-1);--colors-lime-p3-a-2: var(--colors-lime-light-p3-a-2);--colors-lime-p3-a-3: var(--colors-lime-light-p3-a-3);--colors-lime-p3-a-4: var(--colors-lime-light-p3-a-4);--colors-lime-p3-a-5: var(--colors-lime-light-p3-a-5);--colors-lime-p3-a-6: var(--colors-lime-light-p3-a-6);--colors-lime-p3-a-7: var(--colors-lime-light-p3-a-7);--colors-lime-p3-a-8: var(--colors-lime-light-p3-a-8);--colors-lime-p3-a-9: var(--colors-lime-light-p3-a-9);--colors-lime-p3-a-10: var(--colors-lime-light-p3-a-10);--colors-lime-p3-a-11: var(--colors-lime-light-p3-a-11);--colors-lime-p3-a-12: var(--colors-lime-light-p3-a-12);--colors-orange-1: var(--colors-orange-light-1);--colors-orange-2: var(--colors-orange-light-2);--colors-orange-3: var(--colors-orange-light-3);--colors-orange-4: var(--colors-orange-light-4);--colors-orange-5: var(--colors-orange-light-5);--colors-orange-6: var(--colors-orange-light-6);--colors-orange-7: var(--colors-orange-light-7);--colors-orange-8: var(--colors-orange-light-8);--colors-orange-9: var(--colors-orange-light-9);--colors-orange-10: var(--colors-orange-light-10);--colors-orange-11: var(--colors-orange-light-11);--colors-orange-12: var(--colors-orange-light-12);--colors-orange-light-1: #fefcfb;--colors-orange-light-2: #fff7ed;--colors-orange-light-3: #ffefd6;--colors-orange-light-4: #ffdfb5;--colors-orange-light-5: #ffd19a;--colors-orange-light-6: #ffc182;--colors-orange-light-7: #f5ae73;--colors-orange-light-8: #ec9455;--colors-orange-light-9: #f76b15;--colors-orange-light-10: #ef5f00;--colors-orange-light-11: #cc4e00;--colors-orange-light-12: #582d1d;--colors-orange-light-a-1: #c0400004;--colors-orange-light-a-2: #ff8e0012;--colors-orange-light-a-3: #ff9c0029;--colors-orange-light-a-4: #ff91014a;--colors-orange-light-a-5: #ff8b0065;--colors-orange-light-a-6: #ff81007d;--colors-orange-light-a-7: #ed6c008c;--colors-orange-light-a-8: #e35f00aa;--colors-orange-light-a-9: #f65e00ea;--colors-orange-light-a-10: #ef5f00;--colors-orange-light-a-11: #cc4e00;--colors-orange-light-a-12: #431200e2;--colors-orange-light-p3-1: color(display-p3 .995 .988 .985);--colors-orange-light-p3-2: color(display-p3 .994 .968 .934);--colors-orange-light-p3-3: color(display-p3 .989 .938 .85);--colors-orange-light-p3-4: color(display-p3 1 .874 .687);--colors-orange-light-p3-5: color(display-p3 1 .821 .583);--colors-orange-light-p3-6: color(display-p3 .975 .767 .545);--colors-orange-light-p3-7: color(display-p3 .919 .693 .486);--colors-orange-light-p3-8: color(display-p3 .877 .597 .379);--colors-orange-light-p3-9: color(display-p3 .9 .45 .2);--colors-orange-light-p3-10: color(display-p3 .87 .409 .164);--colors-orange-light-p3-11: color(display-p3 .76 .34 0);--colors-orange-light-p3-12: color(display-p3 .323 .185 .127);--colors-orange-light-p3-a-1: color(display-p3 .757 .267 .024 / .016);--colors-orange-light-p3-a-2: color(display-p3 .886 .533 .008 / .067);--colors-orange-light-p3-a-3: color(display-p3 .922 .584 .008 / .15);--colors-orange-light-p3-a-4: color(display-p3 1 .604 .004 / .314);--colors-orange-light-p3-a-5: color(display-p3 1 .569 .004 / .416);--colors-orange-light-p3-a-6: color(display-p3 .949 .494 .004 / .455);--colors-orange-light-p3-a-7: color(display-p3 .839 .408 0 / .514);--colors-orange-light-p3-a-8: color(display-p3 .804 .349 0 / .62);--colors-orange-light-p3-a-9: color(display-p3 .878 .314 0 / .8);--colors-orange-light-p3-a-10: color(display-p3 .843 .29 0 / .836);--colors-orange-light-p3-a-11: color(display-p3 .76 .34 0);--colors-orange-light-p3-a-12: color(display-p3 .323 .185 .127);--colors-orange-dark-1: #17120e;--colors-orange-dark-2: #1e160f;--colors-orange-dark-3: #331e0b;--colors-orange-dark-4: #462100;--colors-orange-dark-5: #562800;--colors-orange-dark-6: #66350c;--colors-orange-dark-7: #7e451d;--colors-orange-dark-8: #a35829;--colors-orange-dark-9: #f76b15;--colors-orange-dark-10: #ff801f;--colors-orange-dark-11: #ffa057;--colors-orange-dark-12: #ffe0c2;--colors-orange-dark-a-1: #ec360007;--colors-orange-dark-a-2: #fe6d000e;--colors-orange-dark-a-3: #fb6a0025;--colors-orange-dark-a-4: #ff590039;--colors-orange-dark-a-5: #ff61004a;--colors-orange-dark-a-6: #fd75045c;--colors-orange-dark-a-7: #ff832c75;--colors-orange-dark-a-8: #fe84389d;--colors-orange-dark-a-9: #fe6d15f7;--colors-orange-dark-a-10: #ff801f;--colors-orange-dark-a-11: #ffa057;--colors-orange-dark-a-12: #ffe0c2;--colors-orange-dark-p3-1: color(display-p3 .088 .07 .057);--colors-orange-dark-p3-2: color(display-p3 .113 .089 .061);--colors-orange-dark-p3-3: color(display-p3 .189 .12 .056);--colors-orange-dark-p3-4: color(display-p3 .262 .132 0);--colors-orange-dark-p3-5: color(display-p3 .315 .168 .016);--colors-orange-dark-p3-6: color(display-p3 .376 .219 .088);--colors-orange-dark-p3-7: color(display-p3 .465 .283 .147);--colors-orange-dark-p3-8: color(display-p3 .601 .359 .201);--colors-orange-dark-p3-9: color(display-p3 .9 .45 .2);--colors-orange-dark-p3-10: color(display-p3 .98 .51 .23);--colors-orange-dark-p3-11: color(display-p3 1 .63 .38);--colors-orange-dark-p3-12: color(display-p3 .98 .883 .775);--colors-orange-dark-p3-a-1: color(display-p3 .961 .247 0 / .022);--colors-orange-dark-p3-a-2: color(display-p3 .992 .529 0 / .051);--colors-orange-dark-p3-a-3: color(display-p3 .996 .486 0 / .131);--colors-orange-dark-p3-a-4: color(display-p3 .996 .384 0 / .211);--colors-orange-dark-p3-a-5: color(display-p3 1 .455 0 / .265);--colors-orange-dark-p3-a-6: color(display-p3 1 .529 .129 / .332);--colors-orange-dark-p3-a-7: color(display-p3 1 .569 .251 / .429);--colors-orange-dark-p3-a-8: color(display-p3 1 .584 .302 / .572);--colors-orange-dark-p3-a-9: color(display-p3 1 .494 .216 / .895);--colors-orange-dark-p3-a-10: color(display-p3 1 .522 .235 / .979);--colors-orange-dark-p3-a-11: color(display-p3 1 .63 .38);--colors-orange-dark-p3-a-12: color(display-p3 .98 .883 .775);--colors-orange-a-1: var(--colors-orange-light-a-1);--colors-orange-a-2: var(--colors-orange-light-a-2);--colors-orange-a-3: var(--colors-orange-light-a-3);--colors-orange-a-4: var(--colors-orange-light-a-4);--colors-orange-a-5: var(--colors-orange-light-a-5);--colors-orange-a-6: var(--colors-orange-light-a-6);--colors-orange-a-7: var(--colors-orange-light-a-7);--colors-orange-a-8: var(--colors-orange-light-a-8);--colors-orange-a-9: var(--colors-orange-light-a-9);--colors-orange-a-10: var(--colors-orange-light-a-10);--colors-orange-a-11: var(--colors-orange-light-a-11);--colors-orange-a-12: var(--colors-orange-light-a-12);--colors-orange-p3-1: var(--colors-orange-light-p3-1);--colors-orange-p3-2: var(--colors-orange-light-p3-2);--colors-orange-p3-3: var(--colors-orange-light-p3-3);--colors-orange-p3-4: var(--colors-orange-light-p3-4);--colors-orange-p3-5: var(--colors-orange-light-p3-5);--colors-orange-p3-6: var(--colors-orange-light-p3-6);--colors-orange-p3-7: var(--colors-orange-light-p3-7);--colors-orange-p3-8: var(--colors-orange-light-p3-8);--colors-orange-p3-9: var(--colors-orange-light-p3-9);--colors-orange-p3-10: var(--colors-orange-light-p3-10);--colors-orange-p3-11: var(--colors-orange-light-p3-11);--colors-orange-p3-12: var(--colors-orange-light-p3-12);--colors-orange-p3-a-1: var(--colors-orange-light-p3-a-1);--colors-orange-p3-a-2: var(--colors-orange-light-p3-a-2);--colors-orange-p3-a-3: var(--colors-orange-light-p3-a-3);--colors-orange-p3-a-4: var(--colors-orange-light-p3-a-4);--colors-orange-p3-a-5: var(--colors-orange-light-p3-a-5);--colors-orange-p3-a-6: var(--colors-orange-light-p3-a-6);--colors-orange-p3-a-7: var(--colors-orange-light-p3-a-7);--colors-orange-p3-a-8: var(--colors-orange-light-p3-a-8);--colors-orange-p3-a-9: var(--colors-orange-light-p3-a-9);--colors-orange-p3-a-10: var(--colors-orange-light-p3-a-10);--colors-orange-p3-a-11: var(--colors-orange-light-p3-a-11);--colors-orange-p3-a-12: var(--colors-orange-light-p3-a-12);--colors-pink-1: var(--colors-pink-light-1);--colors-pink-2: var(--colors-pink-light-2);--colors-pink-3: var(--colors-pink-light-3);--colors-pink-4: var(--colors-pink-light-4);--colors-pink-5: var(--colors-pink-light-5);--colors-pink-6: var(--colors-pink-light-6);--colors-pink-7: var(--colors-pink-light-7);--colors-pink-8: var(--colors-pink-light-8);--colors-pink-9: var(--colors-pink-light-9);--colors-pink-10: var(--colors-pink-light-10);--colors-pink-11: var(--colors-pink-light-11);--colors-pink-12: var(--colors-pink-light-12);--colors-pink-light-1: #fffcfe;--colors-pink-light-2: #fef7fb;--colors-pink-light-3: #fee9f5;--colors-pink-light-4: #fbdcef;--colors-pink-light-5: #f6cee7;--colors-pink-light-6: #efbfdd;--colors-pink-light-7: #e7acd0;--colors-pink-light-8: #dd93c2;--colors-pink-light-9: #d6409f;--colors-pink-light-10: #cf3897;--colors-pink-light-11: #c2298a;--colors-pink-light-12: #651249;--colors-pink-light-a-1: #ff00aa03;--colors-pink-light-a-2: #e0008008;--colors-pink-light-a-3: #f4008c16;--colors-pink-light-a-4: #e2008b23;--colors-pink-light-a-5: #d1008331;--colors-pink-light-a-6: #c0007840;--colors-pink-light-a-7: #b6006f53;--colors-pink-light-a-8: #af006f6c;--colors-pink-light-a-9: #c8007fbf;--colors-pink-light-a-10: #c2007ac7;--colors-pink-light-a-11: #b60074d6;--colors-pink-light-a-12: #59003bed;--colors-pink-light-p3-1: color(display-p3 .998 .989 .996);--colors-pink-light-p3-2: color(display-p3 .992 .97 .985);--colors-pink-light-p3-3: color(display-p3 .981 .917 .96);--colors-pink-light-p3-4: color(display-p3 .963 .867 .932);--colors-pink-light-p3-5: color(display-p3 .939 .815 .899);--colors-pink-light-p3-6: color(display-p3 .907 .756 .859);--colors-pink-light-p3-7: color(display-p3 .869 .683 .81);--colors-pink-light-p3-8: color(display-p3 .825 .59 .751);--colors-pink-light-p3-9: color(display-p3 .775 .297 .61);--colors-pink-light-p3-10: color(display-p3 .748 .27 .581);--colors-pink-light-p3-11: color(display-p3 .698 .219 .528);--colors-pink-light-p3-12: color(display-p3 .363 .101 .279);--colors-pink-light-p3-a-1: color(display-p3 .675 .024 .675 / .012);--colors-pink-light-p3-a-2: color(display-p3 .757 .02 .51 / .032);--colors-pink-light-p3-a-3: color(display-p3 .765 .008 .529 / .083);--colors-pink-light-p3-a-4: color(display-p3 .737 .008 .506 / .134);--colors-pink-light-p3-a-5: color(display-p3 .663 .004 .451 / .185);--colors-pink-light-p3-a-6: color(display-p3 .616 .004 .424 / .244);--colors-pink-light-p3-a-7: color(display-p3 .596 .004 .412 / .318);--colors-pink-light-p3-a-8: color(display-p3 .573 .004 .404 / .412);--colors-pink-light-p3-a-9: color(display-p3 .682 0 .447 / .702);--colors-pink-light-p3-a-10: color(display-p3 .655 0 .424 / .73);--colors-pink-light-p3-a-11: color(display-p3 .698 .219 .528);--colors-pink-light-p3-a-12: color(display-p3 .363 .101 .279);--colors-pink-dark-1: #191117;--colors-pink-dark-2: #21121d;--colors-pink-dark-3: #37172f;--colors-pink-dark-4: #4b143d;--colors-pink-dark-5: #591c47;--colors-pink-dark-6: #692955;--colors-pink-dark-7: #833869;--colors-pink-dark-8: #a84885;--colors-pink-dark-9: #d6409f;--colors-pink-dark-10: #de51a8;--colors-pink-dark-11: #ff8dcc;--colors-pink-dark-12: #fdd1ea;--colors-pink-dark-a-1: #f412bc09;--colors-pink-dark-a-2: #f420bb12;--colors-pink-dark-a-3: #fe37cc29;--colors-pink-dark-a-4: #fc1ec43f;--colors-pink-dark-a-5: #fd35c24e;--colors-pink-dark-a-6: #fd51c75f;--colors-pink-dark-a-7: #fd62c87b;--colors-pink-dark-a-8: #ff68c8a2;--colors-pink-dark-a-9: #fe49bcd4;--colors-pink-dark-a-10: #ff5cc0dc;--colors-pink-dark-a-11: #ff8dcc;--colors-pink-dark-a-12: #ffd3ecfd;--colors-pink-dark-p3-1: color(display-p3 .093 .068 .089);--colors-pink-dark-p3-2: color(display-p3 .121 .073 .11);--colors-pink-dark-p3-3: color(display-p3 .198 .098 .179);--colors-pink-dark-p3-4: color(display-p3 .271 .095 .231);--colors-pink-dark-p3-5: color(display-p3 .32 .127 .273);--colors-pink-dark-p3-6: color(display-p3 .382 .177 .326);--colors-pink-dark-p3-7: color(display-p3 .477 .238 .405);--colors-pink-dark-p3-8: color(display-p3 .612 .304 .51);--colors-pink-dark-p3-9: color(display-p3 .775 .297 .61);--colors-pink-dark-p3-10: color(display-p3 .808 .356 .645);--colors-pink-dark-p3-11: color(display-p3 1 .535 .78);--colors-pink-dark-p3-12: color(display-p3 .964 .826 .912);--colors-pink-dark-p3-a-1: color(display-p3 .984 .071 .855 / .03);--colors-pink-dark-p3-a-2: color(display-p3 1 .2 .8 / .059);--colors-pink-dark-p3-a-3: color(display-p3 1 .294 .886 / .139);--colors-pink-dark-p3-a-4: color(display-p3 1 .192 .82 / .219);--colors-pink-dark-p3-a-5: color(display-p3 1 .282 .827 / .274);--colors-pink-dark-p3-a-6: color(display-p3 1 .396 .835 / .337);--colors-pink-dark-p3-a-7: color(display-p3 1 .459 .831 / .442);--colors-pink-dark-p3-a-8: color(display-p3 1 .478 .827 / .585);--colors-pink-dark-p3-a-9: color(display-p3 1 .373 .784 / .761);--colors-pink-dark-p3-a-10: color(display-p3 1 .435 .792 / .795);--colors-pink-dark-p3-a-11: color(display-p3 1 .535 .78);--colors-pink-dark-p3-a-12: color(display-p3 .964 .826 .912);--colors-pink-a-1: var(--colors-pink-light-a-1);--colors-pink-a-2: var(--colors-pink-light-a-2);--colors-pink-a-3: var(--colors-pink-light-a-3);--colors-pink-a-4: var(--colors-pink-light-a-4);--colors-pink-a-5: var(--colors-pink-light-a-5);--colors-pink-a-6: var(--colors-pink-light-a-6);--colors-pink-a-7: var(--colors-pink-light-a-7);--colors-pink-a-8: var(--colors-pink-light-a-8);--colors-pink-a-9: var(--colors-pink-light-a-9);--colors-pink-a-10: var(--colors-pink-light-a-10);--colors-pink-a-11: var(--colors-pink-light-a-11);--colors-pink-a-12: var(--colors-pink-light-a-12);--colors-pink-p3-1: var(--colors-pink-light-p3-1);--colors-pink-p3-2: var(--colors-pink-light-p3-2);--colors-pink-p3-3: var(--colors-pink-light-p3-3);--colors-pink-p3-4: var(--colors-pink-light-p3-4);--colors-pink-p3-5: var(--colors-pink-light-p3-5);--colors-pink-p3-6: var(--colors-pink-light-p3-6);--colors-pink-p3-7: var(--colors-pink-light-p3-7);--colors-pink-p3-8: var(--colors-pink-light-p3-8);--colors-pink-p3-9: var(--colors-pink-light-p3-9);--colors-pink-p3-10: var(--colors-pink-light-p3-10);--colors-pink-p3-11: var(--colors-pink-light-p3-11);--colors-pink-p3-12: var(--colors-pink-light-p3-12);--colors-pink-p3-a-1: var(--colors-pink-light-p3-a-1);--colors-pink-p3-a-2: var(--colors-pink-light-p3-a-2);--colors-pink-p3-a-3: var(--colors-pink-light-p3-a-3);--colors-pink-p3-a-4: var(--colors-pink-light-p3-a-4);--colors-pink-p3-a-5: var(--colors-pink-light-p3-a-5);--colors-pink-p3-a-6: var(--colors-pink-light-p3-a-6);--colors-pink-p3-a-7: var(--colors-pink-light-p3-a-7);--colors-pink-p3-a-8: var(--colors-pink-light-p3-a-8);--colors-pink-p3-a-9: var(--colors-pink-light-p3-a-9);--colors-pink-p3-a-10: var(--colors-pink-light-p3-a-10);--colors-pink-p3-a-11: var(--colors-pink-light-p3-a-11);--colors-pink-p3-a-12: var(--colors-pink-light-p3-a-12);--colors-purple-1: var(--colors-purple-light-1);--colors-purple-2: var(--colors-purple-light-2);--colors-purple-3: var(--colors-purple-light-3);--colors-purple-4: var(--colors-purple-light-4);--colors-purple-5: var(--colors-purple-light-5);--colors-purple-6: var(--colors-purple-light-6);--colors-purple-7: var(--colors-purple-light-7);--colors-purple-8: var(--colors-purple-light-8);--colors-purple-9: var(--colors-purple-light-9);--colors-purple-10: var(--colors-purple-light-10);--colors-purple-11: var(--colors-purple-light-11);--colors-purple-12: var(--colors-purple-light-12);--colors-purple-light-1: #fefcfe;--colors-purple-light-2: #fbf7fe;--colors-purple-light-3: #f7edfe;--colors-purple-light-4: #f2e2fc;--colors-purple-light-5: #ead5f9;--colors-purple-light-6: #e0c4f4;--colors-purple-light-7: #d1afec;--colors-purple-light-8: #be93e4;--colors-purple-light-9: #8e4ec6;--colors-purple-light-10: #8347b9;--colors-purple-light-11: #8145b5;--colors-purple-light-12: #402060;--colors-purple-light-a-1: #aa00aa03;--colors-purple-light-a-2: #8000e008;--colors-purple-light-a-3: #8e00f112;--colors-purple-light-a-4: #8d00e51d;--colors-purple-light-a-5: #8000db2a;--colors-purple-light-a-6: #7a01d03b;--colors-purple-light-a-7: #6d00c350;--colors-purple-light-a-8: #6600c06c;--colors-purple-light-a-9: #5c00adb1;--colors-purple-light-a-10: #53009eb8;--colors-purple-light-a-11: #52009aba;--colors-purple-light-a-12: #250049df;--colors-purple-light-p3-1: color(display-p3 .995 .988 .996);--colors-purple-light-p3-2: color(display-p3 .983 .971 .993);--colors-purple-light-p3-3: color(display-p3 .963 .931 .989);--colors-purple-light-p3-4: color(display-p3 .937 .888 .981);--colors-purple-light-p3-5: color(display-p3 .904 .837 .966);--colors-purple-light-p3-6: color(display-p3 .86 .774 .942);--colors-purple-light-p3-7: color(display-p3 .799 .69 .91);--colors-purple-light-p3-8: color(display-p3 .719 .583 .874);--colors-purple-light-p3-9: color(display-p3 .523 .318 .751);--colors-purple-light-p3-10: color(display-p3 .483 .289 .7);--colors-purple-light-p3-11: color(display-p3 .473 .281 .687);--colors-purple-light-p3-12: color(display-p3 .234 .132 .363);--colors-purple-light-p3-a-1: color(display-p3 .675 .024 .675 / .012);--colors-purple-light-p3-a-2: color(display-p3 .443 .024 .722 / .028);--colors-purple-light-p3-a-3: color(display-p3 .506 .008 .835 / .071);--colors-purple-light-p3-a-4: color(display-p3 .451 .004 .831 / .114);--colors-purple-light-p3-a-5: color(display-p3 .431 .004 .788 / .165);--colors-purple-light-p3-a-6: color(display-p3 .384 .004 .745 / .228);--colors-purple-light-p3-a-7: color(display-p3 .357 .004 .71 / .31);--colors-purple-light-p3-a-8: color(display-p3 .322 .004 .702 / .416);--colors-purple-light-p3-a-9: color(display-p3 .298 0 .639 / .683);--colors-purple-light-p3-a-10: color(display-p3 .271 0 .58 / .71);--colors-purple-light-p3-a-11: color(display-p3 .473 .281 .687);--colors-purple-light-p3-a-12: color(display-p3 .234 .132 .363);--colors-purple-dark-1: #18111b;--colors-purple-dark-2: #1e1523;--colors-purple-dark-3: #301c3b;--colors-purple-dark-4: #3d224e;--colors-purple-dark-5: #48295c;--colors-purple-dark-6: #54346b;--colors-purple-dark-7: #664282;--colors-purple-dark-8: #8457aa;--colors-purple-dark-9: #8e4ec6;--colors-purple-dark-10: #9a5cd0;--colors-purple-dark-11: #d19dff;--colors-purple-dark-12: #ecd9fa;--colors-purple-dark-a-1: #b412f90b;--colors-purple-dark-a-2: #b744f714;--colors-purple-dark-a-3: #c150ff2d;--colors-purple-dark-a-4: #bb53fd42;--colors-purple-dark-a-5: #be5cfd51;--colors-purple-dark-a-6: #c16dfd61;--colors-purple-dark-a-7: #c378fd7a;--colors-purple-dark-a-8: #c47effa4;--colors-purple-dark-a-9: #b661ffc2;--colors-purple-dark-a-10: #bc6fffcd;--colors-purple-dark-a-11: #d19dff;--colors-purple-dark-a-12: #f1ddfffa;--colors-purple-dark-p3-1: color(display-p3 .09 .068 .103);--colors-purple-dark-p3-2: color(display-p3 .113 .082 .134);--colors-purple-dark-p3-3: color(display-p3 .175 .112 .224);--colors-purple-dark-p3-4: color(display-p3 .224 .137 .297);--colors-purple-dark-p3-5: color(display-p3 .264 .167 .349);--colors-purple-dark-p3-6: color(display-p3 .311 .208 .406);--colors-purple-dark-p3-7: color(display-p3 .381 .266 .496);--colors-purple-dark-p3-8: color(display-p3 .49 .349 .649);--colors-purple-dark-p3-9: color(display-p3 .523 .318 .751);--colors-purple-dark-p3-10: color(display-p3 .57 .373 .791);--colors-purple-dark-p3-11: color(display-p3 .8 .62 1);--colors-purple-dark-p3-12: color(display-p3 .913 .854 .971);--colors-purple-dark-p3-a-1: color(display-p3 .686 .071 .996 / .038);--colors-purple-dark-p3-a-2: color(display-p3 .722 .286 .996 / .072);--colors-purple-dark-p3-a-3: color(display-p3 .718 .349 .996 / .169);--colors-purple-dark-p3-a-4: color(display-p3 .702 .353 1 / .248);--colors-purple-dark-p3-a-5: color(display-p3 .718 .404 1 / .303);--colors-purple-dark-p3-a-6: color(display-p3 .733 .455 1 / .366);--colors-purple-dark-p3-a-7: color(display-p3 .753 .506 1 / .458);--colors-purple-dark-p3-a-8: color(display-p3 .749 .522 1 / .622);--colors-purple-dark-p3-a-9: color(display-p3 .686 .408 1 / .736);--colors-purple-dark-p3-a-10: color(display-p3 .71 .459 1 / .778);--colors-purple-dark-p3-a-11: color(display-p3 .8 .62 1);--colors-purple-dark-p3-a-12: color(display-p3 .913 .854 .971);--colors-purple-a-1: var(--colors-purple-light-a-1);--colors-purple-a-2: var(--colors-purple-light-a-2);--colors-purple-a-3: var(--colors-purple-light-a-3);--colors-purple-a-4: var(--colors-purple-light-a-4);--colors-purple-a-5: var(--colors-purple-light-a-5);--colors-purple-a-6: var(--colors-purple-light-a-6);--colors-purple-a-7: var(--colors-purple-light-a-7);--colors-purple-a-8: var(--colors-purple-light-a-8);--colors-purple-a-9: var(--colors-purple-light-a-9);--colors-purple-a-10: var(--colors-purple-light-a-10);--colors-purple-a-11: var(--colors-purple-light-a-11);--colors-purple-a-12: var(--colors-purple-light-a-12);--colors-purple-p3-1: var(--colors-purple-light-p3-1);--colors-purple-p3-2: var(--colors-purple-light-p3-2);--colors-purple-p3-3: var(--colors-purple-light-p3-3);--colors-purple-p3-4: var(--colors-purple-light-p3-4);--colors-purple-p3-5: var(--colors-purple-light-p3-5);--colors-purple-p3-6: var(--colors-purple-light-p3-6);--colors-purple-p3-7: var(--colors-purple-light-p3-7);--colors-purple-p3-8: var(--colors-purple-light-p3-8);--colors-purple-p3-9: var(--colors-purple-light-p3-9);--colors-purple-p3-10: var(--colors-purple-light-p3-10);--colors-purple-p3-11: var(--colors-purple-light-p3-11);--colors-purple-p3-12: var(--colors-purple-light-p3-12);--colors-purple-p3-a-1: var(--colors-purple-light-p3-a-1);--colors-purple-p3-a-2: var(--colors-purple-light-p3-a-2);--colors-purple-p3-a-3: var(--colors-purple-light-p3-a-3);--colors-purple-p3-a-4: var(--colors-purple-light-p3-a-4);--colors-purple-p3-a-5: var(--colors-purple-light-p3-a-5);--colors-purple-p3-a-6: var(--colors-purple-light-p3-a-6);--colors-purple-p3-a-7: var(--colors-purple-light-p3-a-7);--colors-purple-p3-a-8: var(--colors-purple-light-p3-a-8);--colors-purple-p3-a-9: var(--colors-purple-light-p3-a-9);--colors-purple-p3-a-10: var(--colors-purple-light-p3-a-10);--colors-purple-p3-a-11: var(--colors-purple-light-p3-a-11);--colors-purple-p3-a-12: var(--colors-purple-light-p3-a-12);--colors-red-1: var(--colors-red-light-1);--colors-red-2: var(--colors-red-light-2);--colors-red-3: var(--colors-red-light-3);--colors-red-4: var(--colors-red-light-4);--colors-red-5: var(--colors-red-light-5);--colors-red-6: var(--colors-red-light-6);--colors-red-7: var(--colors-red-light-7);--colors-red-8: var(--colors-red-light-8);--colors-red-9: var(--colors-red-light-9);--colors-red-10: var(--colors-red-light-10);--colors-red-11: var(--colors-red-light-11);--colors-red-12: var(--colors-red-light-12);--colors-red-light-1: #fffcfc;--colors-red-light-2: #fff7f7;--colors-red-light-3: #feebec;--colors-red-light-4: #ffdbdc;--colors-red-light-5: #ffcdce;--colors-red-light-6: #fdbdbe;--colors-red-light-7: #f4a9aa;--colors-red-light-8: #eb8e90;--colors-red-light-9: #e5484d;--colors-red-light-10: #dc3e42;--colors-red-light-11: #ce2c31;--colors-red-light-12: #641723;--colors-red-light-a-1: #ff000003;--colors-red-light-a-2: #ff000008;--colors-red-light-a-3: #f3000d14;--colors-red-light-a-4: #ff000824;--colors-red-light-a-5: #ff000632;--colors-red-light-a-6: #f8000442;--colors-red-light-a-7: #df000356;--colors-red-light-a-8: #d2000571;--colors-red-light-a-9: #db0007b7;--colors-red-light-a-10: #d10005c1;--colors-red-light-a-11: #c40006d3;--colors-red-light-a-12: #55000de8;--colors-red-light-p3-1: color(display-p3 .998 .989 .988);--colors-red-light-p3-2: color(display-p3 .995 .971 .971);--colors-red-light-p3-3: color(display-p3 .985 .925 .925);--colors-red-light-p3-4: color(display-p3 .999 .866 .866);--colors-red-light-p3-5: color(display-p3 .984 .812 .811);--colors-red-light-p3-6: color(display-p3 .955 .751 .749);--colors-red-light-p3-7: color(display-p3 .915 .675 .672);--colors-red-light-p3-8: color(display-p3 .872 .575 .572);--colors-red-light-p3-9: color(display-p3 .83 .329 .324);--colors-red-light-p3-10: color(display-p3 .798 .294 .285);--colors-red-light-p3-11: color(display-p3 .744 .234 .222);--colors-red-light-p3-12: color(display-p3 .36 .115 .143);--colors-red-light-p3-a-1: color(display-p3 .675 .024 .024 / .012);--colors-red-light-p3-a-2: color(display-p3 .863 .024 .024 / .028);--colors-red-light-p3-a-3: color(display-p3 .792 .008 .008 / .075);--colors-red-light-p3-a-4: color(display-p3 1 .008 .008 / .134);--colors-red-light-p3-a-5: color(display-p3 .918 .008 .008 / .189);--colors-red-light-p3-a-6: color(display-p3 .831 .02 .004 / .251);--colors-red-light-p3-a-7: color(display-p3 .741 .016 .004 / .33);--colors-red-light-p3-a-8: color(display-p3 .698 .012 .004 / .428);--colors-red-light-p3-a-9: color(display-p3 .749 .008 0 / .675);--colors-red-light-p3-a-10: color(display-p3 .714 .012 0 / .714);--colors-red-light-p3-a-11: color(display-p3 .744 .234 .222);--colors-red-light-p3-a-12: color(display-p3 .36 .115 .143);--colors-red-dark-1: #191111;--colors-red-dark-2: #201314;--colors-red-dark-3: #3b1219;--colors-red-dark-4: #500f1c;--colors-red-dark-5: #611623;--colors-red-dark-6: #72232d;--colors-red-dark-7: #8c333a;--colors-red-dark-8: #b54548;--colors-red-dark-9: #e5484d;--colors-red-dark-10: #ec5d5e;--colors-red-dark-11: #ff9592;--colors-red-dark-12: #ffd1d9;--colors-red-dark-a-1: #f4121209;--colors-red-dark-a-2: #f22f3e11;--colors-red-dark-a-3: #ff173f2d;--colors-red-dark-a-4: #fe0a3b44;--colors-red-dark-a-5: #ff204756;--colors-red-dark-a-6: #ff3e5668;--colors-red-dark-a-7: #ff536184;--colors-red-dark-a-8: #ff5d61b0;--colors-red-dark-a-9: #fe4e54e4;--colors-red-dark-a-10: #ff6465eb;--colors-red-dark-a-11: #ff9592;--colors-red-dark-a-12: #ffd1d9;--colors-red-dark-p3-1: color(display-p3 .093 .068 .067);--colors-red-dark-p3-2: color(display-p3 .118 .077 .079);--colors-red-dark-p3-3: color(display-p3 .211 .081 .099);--colors-red-dark-p3-4: color(display-p3 .287 .079 .113);--colors-red-dark-p3-5: color(display-p3 .348 .11 .142);--colors-red-dark-p3-6: color(display-p3 .414 .16 .183);--colors-red-dark-p3-7: color(display-p3 .508 .224 .236);--colors-red-dark-p3-8: color(display-p3 .659 .298 .297);--colors-red-dark-p3-9: color(display-p3 .83 .329 .324);--colors-red-dark-p3-10: color(display-p3 .861 .403 .387);--colors-red-dark-p3-11: color(display-p3 1 .57 .55);--colors-red-dark-p3-12: color(display-p3 .971 .826 .852);--colors-red-dark-p3-a-1: color(display-p3 .984 .071 .071 / .03);--colors-red-dark-p3-a-2: color(display-p3 .996 .282 .282 / .055);--colors-red-dark-p3-a-3: color(display-p3 1 .169 .271 / .156);--colors-red-dark-p3-a-4: color(display-p3 1 .118 .267 / .236);--colors-red-dark-p3-a-5: color(display-p3 1 .212 .314 / .303);--colors-red-dark-p3-a-6: color(display-p3 1 .318 .38 / .374);--colors-red-dark-p3-a-7: color(display-p3 1 .4 .424 / .475);--colors-red-dark-p3-a-8: color(display-p3 1 .431 .431 / .635);--colors-red-dark-p3-a-9: color(display-p3 1 .388 .384 / .82);--colors-red-dark-p3-a-10: color(display-p3 1 .463 .447 / .853);--colors-red-dark-p3-a-11: color(display-p3 1 .57 .55);--colors-red-dark-p3-a-12: color(display-p3 .971 .826 .852);--colors-red-a-1: var(--colors-red-light-a-1);--colors-red-a-2: var(--colors-red-light-a-2);--colors-red-a-3: var(--colors-red-light-a-3);--colors-red-a-4: var(--colors-red-light-a-4);--colors-red-a-5: var(--colors-red-light-a-5);--colors-red-a-6: var(--colors-red-light-a-6);--colors-red-a-7: var(--colors-red-light-a-7);--colors-red-a-8: var(--colors-red-light-a-8);--colors-red-a-9: var(--colors-red-light-a-9);--colors-red-a-10: var(--colors-red-light-a-10);--colors-red-a-11: var(--colors-red-light-a-11);--colors-red-a-12: var(--colors-red-light-a-12);--colors-red-p3-1: var(--colors-red-light-p3-1);--colors-red-p3-2: var(--colors-red-light-p3-2);--colors-red-p3-3: var(--colors-red-light-p3-3);--colors-red-p3-4: var(--colors-red-light-p3-4);--colors-red-p3-5: var(--colors-red-light-p3-5);--colors-red-p3-6: var(--colors-red-light-p3-6);--colors-red-p3-7: var(--colors-red-light-p3-7);--colors-red-p3-8: var(--colors-red-light-p3-8);--colors-red-p3-9: var(--colors-red-light-p3-9);--colors-red-p3-10: var(--colors-red-light-p3-10);--colors-red-p3-11: var(--colors-red-light-p3-11);--colors-red-p3-12: var(--colors-red-light-p3-12);--colors-red-p3-a-1: var(--colors-red-light-p3-a-1);--colors-red-p3-a-2: var(--colors-red-light-p3-a-2);--colors-red-p3-a-3: var(--colors-red-light-p3-a-3);--colors-red-p3-a-4: var(--colors-red-light-p3-a-4);--colors-red-p3-a-5: var(--colors-red-light-p3-a-5);--colors-red-p3-a-6: var(--colors-red-light-p3-a-6);--colors-red-p3-a-7: var(--colors-red-light-p3-a-7);--colors-red-p3-a-8: var(--colors-red-light-p3-a-8);--colors-red-p3-a-9: var(--colors-red-light-p3-a-9);--colors-red-p3-a-10: var(--colors-red-light-p3-a-10);--colors-red-p3-a-11: var(--colors-red-light-p3-a-11);--colors-red-p3-a-12: var(--colors-red-light-p3-a-12);--colors-ruby-1: var(--colors-ruby-light-1);--colors-ruby-2: var(--colors-ruby-light-2);--colors-ruby-3: var(--colors-ruby-light-3);--colors-ruby-4: var(--colors-ruby-light-4);--colors-ruby-5: var(--colors-ruby-light-5);--colors-ruby-6: var(--colors-ruby-light-6);--colors-ruby-7: var(--colors-ruby-light-7);--colors-ruby-8: var(--colors-ruby-light-8);--colors-ruby-9: var(--colors-ruby-light-9);--colors-ruby-10: var(--colors-ruby-light-10);--colors-ruby-11: var(--colors-ruby-light-11);--colors-ruby-12: var(--colors-ruby-light-12);--colors-ruby-light-1: #fffcfd;--colors-ruby-light-2: #fff7f8;--colors-ruby-light-3: #feeaed;--colors-ruby-light-4: #ffdce1;--colors-ruby-light-5: #ffced6;--colors-ruby-light-6: #f8bfc8;--colors-ruby-light-7: #efacb8;--colors-ruby-light-8: #e592a3;--colors-ruby-light-9: #e54666;--colors-ruby-light-10: #dc3b5d;--colors-ruby-light-11: #ca244d;--colors-ruby-light-12: #64172b;--colors-ruby-light-a-1: #ff005503;--colors-ruby-light-a-2: #ff002008;--colors-ruby-light-a-3: #f3002515;--colors-ruby-light-a-4: #ff002523;--colors-ruby-light-a-5: #ff002a31;--colors-ruby-light-a-6: #e4002440;--colors-ruby-light-a-7: #ce002553;--colors-ruby-light-a-8: #c300286d;--colors-ruby-light-a-9: #db002cb9;--colors-ruby-light-a-10: #d2002cc4;--colors-ruby-light-a-11: #c10030db;--colors-ruby-light-a-12: #550016e8;--colors-ruby-light-p3-1: color(display-p3 .998 .989 .992);--colors-ruby-light-p3-2: color(display-p3 .995 .971 .974);--colors-ruby-light-p3-3: color(display-p3 .983 .92 .928);--colors-ruby-light-p3-4: color(display-p3 .987 .869 .885);--colors-ruby-light-p3-5: color(display-p3 .968 .817 .839);--colors-ruby-light-p3-6: color(display-p3 .937 .758 .786);--colors-ruby-light-p3-7: color(display-p3 .897 .685 .721);--colors-ruby-light-p3-8: color(display-p3 .851 .588 .639);--colors-ruby-light-p3-9: color(display-p3 .83 .323 .408);--colors-ruby-light-p3-10: color(display-p3 .795 .286 .375);--colors-ruby-light-p3-11: color(display-p3 .728 .211 .311);--colors-ruby-light-p3-12: color(display-p3 .36 .115 .171);--colors-ruby-light-p3-a-1: color(display-p3 .675 .024 .349 / .012);--colors-ruby-light-p3-a-2: color(display-p3 .863 .024 .024 / .028);--colors-ruby-light-p3-a-3: color(display-p3 .804 .008 .11 / .079);--colors-ruby-light-p3-a-4: color(display-p3 .91 .008 .125 / .13);--colors-ruby-light-p3-a-5: color(display-p3 .831 .004 .133 / .185);--colors-ruby-light-p3-a-6: color(display-p3 .745 .004 .118 / .244);--colors-ruby-light-p3-a-7: color(display-p3 .678 .004 .114 / .314);--colors-ruby-light-p3-a-8: color(display-p3 .639 .004 .125 / .412);--colors-ruby-light-p3-a-9: color(display-p3 .753 0 .129 / .679);--colors-ruby-light-p3-a-10: color(display-p3 .714 0 .125 / .714);--colors-ruby-light-p3-a-11: color(display-p3 .728 .211 .311);--colors-ruby-light-p3-a-12: color(display-p3 .36 .115 .171);--colors-ruby-dark-1: #191113;--colors-ruby-dark-2: #1e1517;--colors-ruby-dark-3: #3a141e;--colors-ruby-dark-4: #4e1325;--colors-ruby-dark-5: #5e1a2e;--colors-ruby-dark-6: #6f2539;--colors-ruby-dark-7: #883447;--colors-ruby-dark-8: #b3445a;--colors-ruby-dark-9: #e54666;--colors-ruby-dark-10: #ec5a72;--colors-ruby-dark-11: #ff949d;--colors-ruby-dark-12: #fed2e1;--colors-ruby-dark-a-1: #f4124a09;--colors-ruby-dark-a-2: #fe5a7f0e;--colors-ruby-dark-a-3: #ff235d2c;--colors-ruby-dark-a-4: #fd195e42;--colors-ruby-dark-a-5: #fe2d6b53;--colors-ruby-dark-a-6: #ff447665;--colors-ruby-dark-a-7: #ff577d80;--colors-ruby-dark-a-8: #ff5c7cae;--colors-ruby-dark-a-9: #fe4c70e4;--colors-ruby-dark-a-10: #ff617beb;--colors-ruby-dark-a-11: #ff949d;--colors-ruby-dark-a-12: #ffd3e2fe;--colors-ruby-dark-p3-1: color(display-p3 .093 .068 .074);--colors-ruby-dark-p3-2: color(display-p3 .113 .083 .089);--colors-ruby-dark-p3-3: color(display-p3 .208 .088 .117);--colors-ruby-dark-p3-4: color(display-p3 .279 .092 .147);--colors-ruby-dark-p3-5: color(display-p3 .337 .12 .18);--colors-ruby-dark-p3-6: color(display-p3 .401 .166 .223);--colors-ruby-dark-p3-7: color(display-p3 .495 .224 .281);--colors-ruby-dark-p3-8: color(display-p3 .652 .295 .359);--colors-ruby-dark-p3-9: color(display-p3 .83 .323 .408);--colors-ruby-dark-p3-10: color(display-p3 .857 .392 .455);--colors-ruby-dark-p3-11: color(display-p3 1 .57 .59);--colors-ruby-dark-p3-12: color(display-p3 .968 .83 .88);--colors-ruby-dark-p3-a-1: color(display-p3 .984 .071 .329 / .03);--colors-ruby-dark-p3-a-2: color(display-p3 .992 .376 .529 / .051);--colors-ruby-dark-p3-a-3: color(display-p3 .996 .196 .404 / .152);--colors-ruby-dark-p3-a-4: color(display-p3 1 .173 .416 / .227);--colors-ruby-dark-p3-a-5: color(display-p3 1 .259 .459 / .29);--colors-ruby-dark-p3-a-6: color(display-p3 1 .341 .506 / .358);--colors-ruby-dark-p3-a-7: color(display-p3 1 .412 .541 / .458);--colors-ruby-dark-p3-a-8: color(display-p3 1 .431 .537 / .627);--colors-ruby-dark-p3-a-9: color(display-p3 1 .376 .482 / .82);--colors-ruby-dark-p3-a-10: color(display-p3 1 .447 .522 / .849);--colors-ruby-dark-p3-a-11: color(display-p3 1 .57 .59);--colors-ruby-dark-p3-a-12: color(display-p3 .968 .83 .88);--colors-ruby-a-1: var(--colors-ruby-light-a-1);--colors-ruby-a-2: var(--colors-ruby-light-a-2);--colors-ruby-a-3: var(--colors-ruby-light-a-3);--colors-ruby-a-4: var(--colors-ruby-light-a-4);--colors-ruby-a-5: var(--colors-ruby-light-a-5);--colors-ruby-a-6: var(--colors-ruby-light-a-6);--colors-ruby-a-7: var(--colors-ruby-light-a-7);--colors-ruby-a-8: var(--colors-ruby-light-a-8);--colors-ruby-a-9: var(--colors-ruby-light-a-9);--colors-ruby-a-10: var(--colors-ruby-light-a-10);--colors-ruby-a-11: var(--colors-ruby-light-a-11);--colors-ruby-a-12: var(--colors-ruby-light-a-12);--colors-ruby-p3-1: var(--colors-ruby-light-p3-1);--colors-ruby-p3-2: var(--colors-ruby-light-p3-2);--colors-ruby-p3-3: var(--colors-ruby-light-p3-3);--colors-ruby-p3-4: var(--colors-ruby-light-p3-4);--colors-ruby-p3-5: var(--colors-ruby-light-p3-5);--colors-ruby-p3-6: var(--colors-ruby-light-p3-6);--colors-ruby-p3-7: var(--colors-ruby-light-p3-7);--colors-ruby-p3-8: var(--colors-ruby-light-p3-8);--colors-ruby-p3-9: var(--colors-ruby-light-p3-9);--colors-ruby-p3-10: var(--colors-ruby-light-p3-10);--colors-ruby-p3-11: var(--colors-ruby-light-p3-11);--colors-ruby-p3-12: var(--colors-ruby-light-p3-12);--colors-ruby-p3-a-1: var(--colors-ruby-light-p3-a-1);--colors-ruby-p3-a-2: var(--colors-ruby-light-p3-a-2);--colors-ruby-p3-a-3: var(--colors-ruby-light-p3-a-3);--colors-ruby-p3-a-4: var(--colors-ruby-light-p3-a-4);--colors-ruby-p3-a-5: var(--colors-ruby-light-p3-a-5);--colors-ruby-p3-a-6: var(--colors-ruby-light-p3-a-6);--colors-ruby-p3-a-7: var(--colors-ruby-light-p3-a-7);--colors-ruby-p3-a-8: var(--colors-ruby-light-p3-a-8);--colors-ruby-p3-a-9: var(--colors-ruby-light-p3-a-9);--colors-ruby-p3-a-10: var(--colors-ruby-light-p3-a-10);--colors-ruby-p3-a-11: var(--colors-ruby-light-p3-a-11);--colors-ruby-p3-a-12: var(--colors-ruby-light-p3-a-12);--colors-teal-1: var(--colors-teal-light-1);--colors-teal-2: var(--colors-teal-light-2);--colors-teal-3: var(--colors-teal-light-3);--colors-teal-4: var(--colors-teal-light-4);--colors-teal-5: var(--colors-teal-light-5);--colors-teal-6: var(--colors-teal-light-6);--colors-teal-7: var(--colors-teal-light-7);--colors-teal-8: var(--colors-teal-light-8);--colors-teal-9: var(--colors-teal-light-9);--colors-teal-10: var(--colors-teal-light-10);--colors-teal-11: var(--colors-teal-light-11);--colors-teal-12: var(--colors-teal-light-12);--colors-teal-light-1: #fafefd;--colors-teal-light-2: #f3fbf9;--colors-teal-light-3: #e0f8f3;--colors-teal-light-4: #ccf3ea;--colors-teal-light-5: #b8eae0;--colors-teal-light-6: #a1ded2;--colors-teal-light-7: #83cdc1;--colors-teal-light-8: #53b9ab;--colors-teal-light-9: #12a594;--colors-teal-light-10: #0d9b8a;--colors-teal-light-11: #008573;--colors-teal-light-12: #0d3d38;--colors-teal-light-a-1: #00cc9905;--colors-teal-light-a-2: #00aa800c;--colors-teal-light-a-3: #00c69d1f;--colors-teal-light-a-4: #00c39633;--colors-teal-light-a-5: #00b49047;--colors-teal-light-a-6: #00a6855e;--colors-teal-light-a-7: #0099807c;--colors-teal-light-a-8: #009783ac;--colors-teal-light-a-9: #009e8ced;--colors-teal-light-a-10: #009684f2;--colors-teal-light-a-11: #008573;--colors-teal-light-a-12: #00332df2;--colors-teal-light-p3-1: color(display-p3 .983 .996 .992);--colors-teal-light-p3-2: color(display-p3 .958 .983 .976);--colors-teal-light-p3-3: color(display-p3 .895 .971 .952);--colors-teal-light-p3-4: color(display-p3 .831 .949 .92);--colors-teal-light-p3-5: color(display-p3 .761 .914 .878);--colors-teal-light-p3-6: color(display-p3 .682 .864 .825);--colors-teal-light-p3-7: color(display-p3 .581 .798 .756);--colors-teal-light-p3-8: color(display-p3 .433 .716 .671);--colors-teal-light-p3-9: color(display-p3 .297 .637 .581);--colors-teal-light-p3-10: color(display-p3 .275 .599 .542);--colors-teal-light-p3-11: color(display-p3 .08 .5 .43);--colors-teal-light-p3-12: color(display-p3 .11 .235 .219);--colors-teal-light-p3-a-1: color(display-p3 .024 .757 .514 / .016);--colors-teal-light-p3-a-2: color(display-p3 .02 .647 .467 / .044);--colors-teal-light-p3-a-3: color(display-p3 .004 .741 .557 / .106);--colors-teal-light-p3-a-4: color(display-p3 .004 .702 .537 / .169);--colors-teal-light-p3-a-5: color(display-p3 .004 .643 .494 / .24);--colors-teal-light-p3-a-6: color(display-p3 .004 .569 .447 / .318);--colors-teal-light-p3-a-7: color(display-p3 .004 .518 .424 / .42);--colors-teal-light-p3-a-8: color(display-p3 0 .506 .424 / .569);--colors-teal-light-p3-a-9: color(display-p3 0 .482 .404 / .702);--colors-teal-light-p3-a-10: color(display-p3 0 .451 .369 / .726);--colors-teal-light-p3-a-11: color(display-p3 .08 .5 .43);--colors-teal-light-p3-a-12: color(display-p3 .11 .235 .219);--colors-teal-dark-1: #0d1514;--colors-teal-dark-2: #111c1b;--colors-teal-dark-3: #0d2d2a;--colors-teal-dark-4: #023b37;--colors-teal-dark-5: #084843;--colors-teal-dark-6: #145750;--colors-teal-dark-7: #1c6961;--colors-teal-dark-8: #207e73;--colors-teal-dark-9: #12a594;--colors-teal-dark-10: #0eb39e;--colors-teal-dark-11: #0bd8b6;--colors-teal-dark-12: #adf0dd;--colors-teal-dark-a-1: #00deab05;--colors-teal-dark-a-2: #12fbe60c;--colors-teal-dark-a-3: #00ffe61e;--colors-teal-dark-a-4: #00ffe92d;--colors-teal-dark-a-5: #00ffea3b;--colors-teal-dark-a-6: #1cffe84b;--colors-teal-dark-a-7: #2efde85f;--colors-teal-dark-a-8: #32ffe775;--colors-teal-dark-a-9: #13ffe49f;--colors-teal-dark-a-10: #0dffe0ae;--colors-teal-dark-a-11: #0afed5d6;--colors-teal-dark-a-12: #b8ffebef;--colors-teal-dark-p3-1: color(display-p3 .059 .083 .079);--colors-teal-dark-p3-2: color(display-p3 .075 .11 .107);--colors-teal-dark-p3-3: color(display-p3 .087 .175 .165);--colors-teal-dark-p3-4: color(display-p3 .087 .227 .214);--colors-teal-dark-p3-5: color(display-p3 .12 .277 .261);--colors-teal-dark-p3-6: color(display-p3 .162 .335 .314);--colors-teal-dark-p3-7: color(display-p3 .205 .406 .379);--colors-teal-dark-p3-8: color(display-p3 .245 .489 .453);--colors-teal-dark-p3-9: color(display-p3 .297 .637 .581);--colors-teal-dark-p3-10: color(display-p3 .319 .69 .62);--colors-teal-dark-p3-11: color(display-p3 .388 .835 .719);--colors-teal-dark-p3-12: color(display-p3 .734 .934 .87);--colors-teal-dark-p3-a-1: color(display-p3 0 .992 .761 / .017);--colors-teal-dark-p3-a-2: color(display-p3 .235 .988 .902 / .047);--colors-teal-dark-p3-a-3: color(display-p3 .235 1 .898 / .118);--colors-teal-dark-p3-a-4: color(display-p3 .18 .996 .929 / .173);--colors-teal-dark-p3-a-5: color(display-p3 .31 1 .933 / .227);--colors-teal-dark-p3-a-6: color(display-p3 .396 1 .933 / .286);--colors-teal-dark-p3-a-7: color(display-p3 .443 1 .925 / .366);--colors-teal-dark-p3-a-8: color(display-p3 .459 1 .925 / .454);--colors-teal-dark-p3-a-9: color(display-p3 .443 .996 .906 / .61);--colors-teal-dark-p3-a-10: color(display-p3 .439 .996 .89 / .669);--colors-teal-dark-p3-a-11: color(display-p3 .388 .835 .719);--colors-teal-dark-p3-a-12: color(display-p3 .734 .934 .87);--colors-teal-a-1: var(--colors-teal-light-a-1);--colors-teal-a-2: var(--colors-teal-light-a-2);--colors-teal-a-3: var(--colors-teal-light-a-3);--colors-teal-a-4: var(--colors-teal-light-a-4);--colors-teal-a-5: var(--colors-teal-light-a-5);--colors-teal-a-6: var(--colors-teal-light-a-6);--colors-teal-a-7: var(--colors-teal-light-a-7);--colors-teal-a-8: var(--colors-teal-light-a-8);--colors-teal-a-9: var(--colors-teal-light-a-9);--colors-teal-a-10: var(--colors-teal-light-a-10);--colors-teal-a-11: var(--colors-teal-light-a-11);--colors-teal-a-12: var(--colors-teal-light-a-12);--colors-teal-p3-1: var(--colors-teal-light-p3-1);--colors-teal-p3-2: var(--colors-teal-light-p3-2);--colors-teal-p3-3: var(--colors-teal-light-p3-3);--colors-teal-p3-4: var(--colors-teal-light-p3-4);--colors-teal-p3-5: var(--colors-teal-light-p3-5);--colors-teal-p3-6: var(--colors-teal-light-p3-6);--colors-teal-p3-7: var(--colors-teal-light-p3-7);--colors-teal-p3-8: var(--colors-teal-light-p3-8);--colors-teal-p3-9: var(--colors-teal-light-p3-9);--colors-teal-p3-10: var(--colors-teal-light-p3-10);--colors-teal-p3-11: var(--colors-teal-light-p3-11);--colors-teal-p3-12: var(--colors-teal-light-p3-12);--colors-teal-p3-a-1: var(--colors-teal-light-p3-a-1);--colors-teal-p3-a-2: var(--colors-teal-light-p3-a-2);--colors-teal-p3-a-3: var(--colors-teal-light-p3-a-3);--colors-teal-p3-a-4: var(--colors-teal-light-p3-a-4);--colors-teal-p3-a-5: var(--colors-teal-light-p3-a-5);--colors-teal-p3-a-6: var(--colors-teal-light-p3-a-6);--colors-teal-p3-a-7: var(--colors-teal-light-p3-a-7);--colors-teal-p3-a-8: var(--colors-teal-light-p3-a-8);--colors-teal-p3-a-9: var(--colors-teal-light-p3-a-9);--colors-teal-p3-a-10: var(--colors-teal-light-p3-a-10);--colors-teal-p3-a-11: var(--colors-teal-light-p3-a-11);--colors-teal-p3-a-12: var(--colors-teal-light-p3-a-12);--colors-tomato-1: var(--colors-tomato-light-1);--colors-tomato-2: var(--colors-tomato-light-2);--colors-tomato-3: var(--colors-tomato-light-3);--colors-tomato-4: var(--colors-tomato-light-4);--colors-tomato-5: var(--colors-tomato-light-5);--colors-tomato-6: var(--colors-tomato-light-6);--colors-tomato-7: var(--colors-tomato-light-7);--colors-tomato-8: var(--colors-tomato-light-8);--colors-tomato-9: var(--colors-tomato-light-9);--colors-tomato-10: var(--colors-tomato-light-10);--colors-tomato-11: var(--colors-tomato-light-11);--colors-tomato-12: var(--colors-tomato-light-12);--colors-tomato-light-1: #fffcfc;--colors-tomato-light-2: #fff8f7;--colors-tomato-light-3: #feebe7;--colors-tomato-light-4: #ffdcd3;--colors-tomato-light-5: #ffcdc2;--colors-tomato-light-6: #fdbdaf;--colors-tomato-light-7: #f5a898;--colors-tomato-light-8: #ec8e7b;--colors-tomato-light-9: #e54d2e;--colors-tomato-light-10: #dd4425;--colors-tomato-light-11: #d13415;--colors-tomato-light-12: #5c271f;--colors-tomato-light-a-1: #ff000003;--colors-tomato-light-a-2: #ff200008;--colors-tomato-light-a-3: #f52b0018;--colors-tomato-light-a-4: #ff35002c;--colors-tomato-light-a-5: #ff2e003d;--colors-tomato-light-a-6: #f92d0050;--colors-tomato-light-a-7: #e7280067;--colors-tomato-light-a-8: #db250084;--colors-tomato-light-a-9: #df2600d1;--colors-tomato-light-a-10: #d72400da;--colors-tomato-light-a-11: #cd2200ea;--colors-tomato-light-a-12: #460900e0;--colors-tomato-light-p3-1: color(display-p3 .998 .989 .988);--colors-tomato-light-p3-2: color(display-p3 .994 .974 .969);--colors-tomato-light-p3-3: color(display-p3 .985 .924 .909);--colors-tomato-light-p3-4: color(display-p3 .996 .868 .835);--colors-tomato-light-p3-5: color(display-p3 .98 .812 .77);--colors-tomato-light-p3-6: color(display-p3 .953 .75 .698);--colors-tomato-light-p3-7: color(display-p3 .917 .673 .611);--colors-tomato-light-p3-8: color(display-p3 .875 .575 .502);--colors-tomato-light-p3-9: color(display-p3 .831 .345 .231);--colors-tomato-light-p3-10: color(display-p3 .802 .313 .2);--colors-tomato-light-p3-11: color(display-p3 .755 .259 .152);--colors-tomato-light-p3-12: color(display-p3 .335 .165 .132);--colors-tomato-light-p3-a-1: color(display-p3 .675 .024 .024 / .012);--colors-tomato-light-p3-a-2: color(display-p3 .757 .145 .02 / .032);--colors-tomato-light-p3-a-3: color(display-p3 .831 .184 .012 / .091);--colors-tomato-light-p3-a-4: color(display-p3 .976 .192 .004 / .165);--colors-tomato-light-p3-a-5: color(display-p3 .918 .192 .004 / .232);--colors-tomato-light-p3-a-6: color(display-p3 .847 .173 .004 / .302);--colors-tomato-light-p3-a-7: color(display-p3 .788 .165 .004 / .389);--colors-tomato-light-p3-a-8: color(display-p3 .749 .153 .004 / .499);--colors-tomato-light-p3-a-9: color(display-p3 .78 .149 0 / .769);--colors-tomato-light-p3-a-10: color(display-p3 .757 .141 0 / .8);--colors-tomato-light-p3-a-11: color(display-p3 .755 .259 .152);--colors-tomato-light-p3-a-12: color(display-p3 .335 .165 .132);--colors-tomato-dark-1: #181111;--colors-tomato-dark-2: #1f1513;--colors-tomato-dark-3: #391714;--colors-tomato-dark-4: #4e1511;--colors-tomato-dark-5: #5e1c16;--colors-tomato-dark-6: #6e2920;--colors-tomato-dark-7: #853a2d;--colors-tomato-dark-8: #ac4d39;--colors-tomato-dark-9: #e54d2e;--colors-tomato-dark-10: #ec6142;--colors-tomato-dark-11: #ff977d;--colors-tomato-dark-12: #fbd3cb;--colors-tomato-dark-a-1: #f1121208;--colors-tomato-dark-a-2: #ff55330f;--colors-tomato-dark-a-3: #ff35232b;--colors-tomato-dark-a-4: #fd201142;--colors-tomato-dark-a-5: #fe332153;--colors-tomato-dark-a-6: #ff4f3864;--colors-tomato-dark-a-7: #fd644a7d;--colors-tomato-dark-a-8: #fe6d4ea7;--colors-tomato-dark-a-9: #fe5431e4;--colors-tomato-dark-a-10: #ff6847eb;--colors-tomato-dark-a-11: #ff977d;--colors-tomato-dark-a-12: #ffd6cefb;--colors-tomato-dark-p3-1: color(display-p3 .09 .068 .067);--colors-tomato-dark-p3-2: color(display-p3 .115 .084 .076);--colors-tomato-dark-p3-3: color(display-p3 .205 .097 .083);--colors-tomato-dark-p3-4: color(display-p3 .282 .099 .077);--colors-tomato-dark-p3-5: color(display-p3 .339 .129 .101);--colors-tomato-dark-p3-6: color(display-p3 .398 .179 .141);--colors-tomato-dark-p3-7: color(display-p3 .487 .245 .194);--colors-tomato-dark-p3-8: color(display-p3 .629 .322 .248);--colors-tomato-dark-p3-9: color(display-p3 .831 .345 .231);--colors-tomato-dark-p3-10: color(display-p3 .862 .415 .298);--colors-tomato-dark-p3-11: color(display-p3 1 .585 .455);--colors-tomato-dark-p3-12: color(display-p3 .959 .833 .802);--colors-tomato-dark-p3-a-1: color(display-p3 .973 .071 .071 / .026);--colors-tomato-dark-p3-a-2: color(display-p3 .992 .376 .224 / .051);--colors-tomato-dark-p3-a-3: color(display-p3 .996 .282 .176 / .148);--colors-tomato-dark-p3-a-4: color(display-p3 1 .204 .118 / .232);--colors-tomato-dark-p3-a-5: color(display-p3 1 .286 .192 / .29);--colors-tomato-dark-p3-a-6: color(display-p3 1 .392 .278 / .353);--colors-tomato-dark-p3-a-7: color(display-p3 1 .459 .349 / .45);--colors-tomato-dark-p3-a-8: color(display-p3 1 .49 .369 / .601);--colors-tomato-dark-p3-a-9: color(display-p3 1 .408 .267 / .82);--colors-tomato-dark-p3-a-10: color(display-p3 1 .478 .341 / .853);--colors-tomato-dark-p3-a-11: color(display-p3 1 .585 .455);--colors-tomato-dark-p3-a-12: color(display-p3 .959 .833 .802);--colors-tomato-a-1: var(--colors-tomato-light-a-1);--colors-tomato-a-2: var(--colors-tomato-light-a-2);--colors-tomato-a-3: var(--colors-tomato-light-a-3);--colors-tomato-a-4: var(--colors-tomato-light-a-4);--colors-tomato-a-5: var(--colors-tomato-light-a-5);--colors-tomato-a-6: var(--colors-tomato-light-a-6);--colors-tomato-a-7: var(--colors-tomato-light-a-7);--colors-tomato-a-8: var(--colors-tomato-light-a-8);--colors-tomato-a-9: var(--colors-tomato-light-a-9);--colors-tomato-a-10: var(--colors-tomato-light-a-10);--colors-tomato-a-11: var(--colors-tomato-light-a-11);--colors-tomato-a-12: var(--colors-tomato-light-a-12);--colors-tomato-p3-1: var(--colors-tomato-light-p3-1);--colors-tomato-p3-2: var(--colors-tomato-light-p3-2);--colors-tomato-p3-3: var(--colors-tomato-light-p3-3);--colors-tomato-p3-4: var(--colors-tomato-light-p3-4);--colors-tomato-p3-5: var(--colors-tomato-light-p3-5);--colors-tomato-p3-6: var(--colors-tomato-light-p3-6);--colors-tomato-p3-7: var(--colors-tomato-light-p3-7);--colors-tomato-p3-8: var(--colors-tomato-light-p3-8);--colors-tomato-p3-9: var(--colors-tomato-light-p3-9);--colors-tomato-p3-10: var(--colors-tomato-light-p3-10);--colors-tomato-p3-11: var(--colors-tomato-light-p3-11);--colors-tomato-p3-12: var(--colors-tomato-light-p3-12);--colors-tomato-p3-a-1: var(--colors-tomato-light-p3-a-1);--colors-tomato-p3-a-2: var(--colors-tomato-light-p3-a-2);--colors-tomato-p3-a-3: var(--colors-tomato-light-p3-a-3);--colors-tomato-p3-a-4: var(--colors-tomato-light-p3-a-4);--colors-tomato-p3-a-5: var(--colors-tomato-light-p3-a-5);--colors-tomato-p3-a-6: var(--colors-tomato-light-p3-a-6);--colors-tomato-p3-a-7: var(--colors-tomato-light-p3-a-7);--colors-tomato-p3-a-8: var(--colors-tomato-light-p3-a-8);--colors-tomato-p3-a-9: var(--colors-tomato-light-p3-a-9);--colors-tomato-p3-a-10: var(--colors-tomato-light-p3-a-10);--colors-tomato-p3-a-11: var(--colors-tomato-light-p3-a-11);--colors-tomato-p3-a-12: var(--colors-tomato-light-p3-a-12);--colors-violet-1: var(--colors-violet-light-1);--colors-violet-2: var(--colors-violet-light-2);--colors-violet-3: var(--colors-violet-light-3);--colors-violet-4: var(--colors-violet-light-4);--colors-violet-5: var(--colors-violet-light-5);--colors-violet-6: var(--colors-violet-light-6);--colors-violet-7: var(--colors-violet-light-7);--colors-violet-8: var(--colors-violet-light-8);--colors-violet-9: var(--colors-violet-light-9);--colors-violet-10: var(--colors-violet-light-10);--colors-violet-11: var(--colors-violet-light-11);--colors-violet-12: var(--colors-violet-light-12);--colors-violet-light-1: #fdfcfe;--colors-violet-light-2: #faf8ff;--colors-violet-light-3: #f4f0fe;--colors-violet-light-4: #ebe4ff;--colors-violet-light-5: #e1d9ff;--colors-violet-light-6: #d4cafe;--colors-violet-light-7: #c2b5f5;--colors-violet-light-8: #aa99ec;--colors-violet-light-9: #6e56cf;--colors-violet-light-10: #654dc4;--colors-violet-light-11: #6550b9;--colors-violet-light-12: #2f265f;--colors-violet-light-a-1: #5500aa03;--colors-violet-light-a-2: #4900ff07;--colors-violet-light-a-3: #4400ee0f;--colors-violet-light-a-4: #4300ff1b;--colors-violet-light-a-5: #3600ff26;--colors-violet-light-a-6: #3100fb35;--colors-violet-light-a-7: #2d01dd4a;--colors-violet-light-a-8: #2b00d066;--colors-violet-light-a-9: #2400b7a9;--colors-violet-light-a-10: #2300abb2;--colors-violet-light-a-11: #1f0099af;--colors-violet-light-a-12: #0b0043d9;--colors-violet-light-p3-1: color(display-p3 .991 .988 .995);--colors-violet-light-p3-2: color(display-p3 .978 .974 .998);--colors-violet-light-p3-3: color(display-p3 .953 .943 .993);--colors-violet-light-p3-4: color(display-p3 .916 .897 1);--colors-violet-light-p3-5: color(display-p3 .876 .851 1);--colors-violet-light-p3-6: color(display-p3 .825 .793 .981);--colors-violet-light-p3-7: color(display-p3 .752 .712 .943);--colors-violet-light-p3-8: color(display-p3 .654 .602 .902);--colors-violet-light-p3-9: color(display-p3 .417 .341 .784);--colors-violet-light-p3-10: color(display-p3 .381 .306 .741);--colors-violet-light-p3-11: color(display-p3 .383 .317 .702);--colors-violet-light-p3-12: color(display-p3 .179 .15 .359);--colors-violet-light-p3-a-1: color(display-p3 .349 .024 .675 / .012);--colors-violet-light-p3-a-2: color(display-p3 .161 .024 .863 / .028);--colors-violet-light-p3-a-3: color(display-p3 .204 .004 .871 / .059);--colors-violet-light-p3-a-4: color(display-p3 .196 .004 1 / .102);--colors-violet-light-p3-a-5: color(display-p3 .165 .008 1 / .15);--colors-violet-light-p3-a-6: color(display-p3 .153 .004 .906 / .208);--colors-violet-light-p3-a-7: color(display-p3 .141 .004 .796 / .287);--colors-violet-light-p3-a-8: color(display-p3 .133 .004 .753 / .397);--colors-violet-light-p3-a-9: color(display-p3 .114 0 .675 / .659);--colors-violet-light-p3-a-10: color(display-p3 .11 0 .627 / .695);--colors-violet-light-p3-a-11: color(display-p3 .383 .317 .702);--colors-violet-light-p3-a-12: color(display-p3 .179 .15 .359);--colors-violet-dark-1: #14121f;--colors-violet-dark-2: #1b1525;--colors-violet-dark-3: #291f43;--colors-violet-dark-4: #33255b;--colors-violet-dark-5: #3c2e69;--colors-violet-dark-6: #473876;--colors-violet-dark-7: #56468b;--colors-violet-dark-8: #6958ad;--colors-violet-dark-9: #6e56cf;--colors-violet-dark-10: #7d66d9;--colors-violet-dark-11: #baa7ff;--colors-violet-dark-12: #e2ddfe;--colors-violet-dark-a-1: #4422ff0f;--colors-violet-dark-a-2: #853ff916;--colors-violet-dark-a-3: #8354fe36;--colors-violet-dark-a-4: #7d51fd50;--colors-violet-dark-a-5: #845ffd5f;--colors-violet-dark-a-6: #8f6cfd6d;--colors-violet-dark-a-7: #9879ff83;--colors-violet-dark-a-8: #977dfea8;--colors-violet-dark-a-9: #8668ffcc;--colors-violet-dark-a-10: #9176fed7;--colors-violet-dark-a-11: #baa7ff;--colors-violet-dark-a-12: #e3defffe;--colors-violet-dark-p3-1: color(display-p3 .077 .071 .118);--colors-violet-dark-p3-2: color(display-p3 .101 .084 .141);--colors-violet-dark-p3-3: color(display-p3 .154 .123 .256);--colors-violet-dark-p3-4: color(display-p3 .191 .148 .345);--colors-violet-dark-p3-5: color(display-p3 .226 .182 .396);--colors-violet-dark-p3-6: color(display-p3 .269 .223 .449);--colors-violet-dark-p3-7: color(display-p3 .326 .277 .53);--colors-violet-dark-p3-8: color(display-p3 .399 .346 .656);--colors-violet-dark-p3-9: color(display-p3 .417 .341 .784);--colors-violet-dark-p3-10: color(display-p3 .477 .402 .823);--colors-violet-dark-p3-11: color(display-p3 .72 .65 1);--colors-violet-dark-p3-12: color(display-p3 .883 .867 .986);--colors-violet-dark-p3-a-1: color(display-p3 .282 .141 .996 / .055);--colors-violet-dark-p3-a-2: color(display-p3 .51 .263 1 / .08);--colors-violet-dark-p3-a-3: color(display-p3 .494 .337 .996 / .202);--colors-violet-dark-p3-a-4: color(display-p3 .49 .345 1 / .299);--colors-violet-dark-p3-a-5: color(display-p3 .525 .392 1 / .353);--colors-violet-dark-p3-a-6: color(display-p3 .569 .455 1 / .408);--colors-violet-dark-p3-a-7: color(display-p3 .588 .494 1 / .496);--colors-violet-dark-p3-a-8: color(display-p3 .596 .51 1 / .631);--colors-violet-dark-p3-a-9: color(display-p3 .522 .424 1 / .769);--colors-violet-dark-p3-a-10: color(display-p3 .576 .482 1 / .811);--colors-violet-dark-p3-a-11: color(display-p3 .72 .65 1);--colors-violet-dark-p3-a-12: color(display-p3 .883 .867 .986);--colors-violet-a-1: var(--colors-violet-light-a-1);--colors-violet-a-2: var(--colors-violet-light-a-2);--colors-violet-a-3: var(--colors-violet-light-a-3);--colors-violet-a-4: var(--colors-violet-light-a-4);--colors-violet-a-5: var(--colors-violet-light-a-5);--colors-violet-a-6: var(--colors-violet-light-a-6);--colors-violet-a-7: var(--colors-violet-light-a-7);--colors-violet-a-8: var(--colors-violet-light-a-8);--colors-violet-a-9: var(--colors-violet-light-a-9);--colors-violet-a-10: var(--colors-violet-light-a-10);--colors-violet-a-11: var(--colors-violet-light-a-11);--colors-violet-a-12: var(--colors-violet-light-a-12);--colors-violet-p3-1: var(--colors-violet-light-p3-1);--colors-violet-p3-2: var(--colors-violet-light-p3-2);--colors-violet-p3-3: var(--colors-violet-light-p3-3);--colors-violet-p3-4: var(--colors-violet-light-p3-4);--colors-violet-p3-5: var(--colors-violet-light-p3-5);--colors-violet-p3-6: var(--colors-violet-light-p3-6);--colors-violet-p3-7: var(--colors-violet-light-p3-7);--colors-violet-p3-8: var(--colors-violet-light-p3-8);--colors-violet-p3-9: var(--colors-violet-light-p3-9);--colors-violet-p3-10: var(--colors-violet-light-p3-10);--colors-violet-p3-11: var(--colors-violet-light-p3-11);--colors-violet-p3-12: var(--colors-violet-light-p3-12);--colors-violet-p3-a-1: var(--colors-violet-light-p3-a-1);--colors-violet-p3-a-2: var(--colors-violet-light-p3-a-2);--colors-violet-p3-a-3: var(--colors-violet-light-p3-a-3);--colors-violet-p3-a-4: var(--colors-violet-light-p3-a-4);--colors-violet-p3-a-5: var(--colors-violet-light-p3-a-5);--colors-violet-p3-a-6: var(--colors-violet-light-p3-a-6);--colors-violet-p3-a-7: var(--colors-violet-light-p3-a-7);--colors-violet-p3-a-8: var(--colors-violet-light-p3-a-8);--colors-violet-p3-a-9: var(--colors-violet-light-p3-a-9);--colors-violet-p3-a-10: var(--colors-violet-light-p3-a-10);--colors-violet-p3-a-11: var(--colors-violet-light-p3-a-11);--colors-violet-p3-a-12: var(--colors-violet-light-p3-a-12);--colors-yellow-1: var(--colors-yellow-light-1);--colors-yellow-2: var(--colors-yellow-light-2);--colors-yellow-3: var(--colors-yellow-light-3);--colors-yellow-4: var(--colors-yellow-light-4);--colors-yellow-5: var(--colors-yellow-light-5);--colors-yellow-6: var(--colors-yellow-light-6);--colors-yellow-7: var(--colors-yellow-light-7);--colors-yellow-8: var(--colors-yellow-light-8);--colors-yellow-9: var(--colors-yellow-light-9);--colors-yellow-10: var(--colors-yellow-light-10);--colors-yellow-11: var(--colors-yellow-light-11);--colors-yellow-12: var(--colors-yellow-light-12);--colors-yellow-light-1: #fdfdf9;--colors-yellow-light-2: #fefce9;--colors-yellow-light-3: #fffab8;--colors-yellow-light-4: #fff394;--colors-yellow-light-5: #ffe770;--colors-yellow-light-6: #f3d768;--colors-yellow-light-7: #e4c767;--colors-yellow-light-8: #d5ae39;--colors-yellow-light-9: #ffe629;--colors-yellow-light-10: #ffdc00;--colors-yellow-light-11: #9e6c00;--colors-yellow-light-12: #473b1f;--colors-yellow-light-a-1: #aaaa0006;--colors-yellow-light-a-2: #f4dd0016;--colors-yellow-light-a-3: #ffee0047;--colors-yellow-light-a-4: #ffe3016b;--colors-yellow-light-a-5: #ffd5008f;--colors-yellow-light-a-6: #ebbc0097;--colors-yellow-light-a-7: #d2a10098;--colors-yellow-light-a-8: #c99700c6;--colors-yellow-light-a-9: #ffe100d6;--colors-yellow-light-a-10: #ffdc00;--colors-yellow-light-a-11: #9e6c00;--colors-yellow-light-a-12: #2e2000e0;--colors-yellow-light-p3-1: color(display-p3 .992 .992 .978);--colors-yellow-light-p3-2: color(display-p3 .995 .99 .922);--colors-yellow-light-p3-3: color(display-p3 .997 .982 .749);--colors-yellow-light-p3-4: color(display-p3 .992 .953 .627);--colors-yellow-light-p3-5: color(display-p3 .984 .91 .51);--colors-yellow-light-p3-6: color(display-p3 .934 .847 .474);--colors-yellow-light-p3-7: color(display-p3 .876 .785 .46);--colors-yellow-light-p3-8: color(display-p3 .811 .689 .313);--colors-yellow-light-p3-9: color(display-p3 1 .92 .22);--colors-yellow-light-p3-10: color(display-p3 .977 .868 .291);--colors-yellow-light-p3-11: color(display-p3 .6 .44 0);--colors-yellow-light-p3-12: color(display-p3 .271 .233 .137);--colors-yellow-light-p3-a-1: color(display-p3 .675 .675 .024 / .024);--colors-yellow-light-p3-a-2: color(display-p3 .953 .855 .008 / .079);--colors-yellow-light-p3-a-3: color(display-p3 .988 .925 .004 / .251);--colors-yellow-light-p3-a-4: color(display-p3 .98 .875 .004 / .373);--colors-yellow-light-p3-a-5: color(display-p3 .969 .816 .004 / .491);--colors-yellow-light-p3-a-6: color(display-p3 .875 .71 0 / .526);--colors-yellow-light-p3-a-7: color(display-p3 .769 .604 0 / .542);--colors-yellow-light-p3-a-8: color(display-p3 .725 .549 0 / .687);--colors-yellow-light-p3-a-9: color(display-p3 1 .898 0 / .781);--colors-yellow-light-p3-a-10: color(display-p3 .969 .812 0 / .71);--colors-yellow-light-p3-a-11: color(display-p3 .6 .44 0);--colors-yellow-light-p3-a-12: color(display-p3 .271 .233 .137);--colors-yellow-dark-1: #14120b;--colors-yellow-dark-2: #1b180f;--colors-yellow-dark-3: #2d2305;--colors-yellow-dark-4: #362b00;--colors-yellow-dark-5: #433500;--colors-yellow-dark-6: #524202;--colors-yellow-dark-7: #665417;--colors-yellow-dark-8: #836a21;--colors-yellow-dark-9: #ffe629;--colors-yellow-dark-10: #ffff57;--colors-yellow-dark-11: #f5e147;--colors-yellow-dark-12: #f6eeb4;--colors-yellow-dark-a-1: #d1510004;--colors-yellow-dark-a-2: #f9b4000b;--colors-yellow-dark-a-3: #ffaa001e;--colors-yellow-dark-a-4: #fdb70028;--colors-yellow-dark-a-5: #febb0036;--colors-yellow-dark-a-6: #fec40046;--colors-yellow-dark-a-7: #fdcb225c;--colors-yellow-dark-a-8: #fdca327b;--colors-yellow-dark-a-9: #ffe629;--colors-yellow-dark-a-10: #ffff57;--colors-yellow-dark-a-11: #fee949f5;--colors-yellow-dark-a-12: #fef6baf6;--colors-yellow-dark-p3-1: color(display-p3 .078 .069 .047);--colors-yellow-dark-p3-2: color(display-p3 .103 .094 .063);--colors-yellow-dark-p3-3: color(display-p3 .168 .137 .039);--colors-yellow-dark-p3-4: color(display-p3 .209 .169 0);--colors-yellow-dark-p3-5: color(display-p3 .255 .209 0);--colors-yellow-dark-p3-6: color(display-p3 .31 .261 .07);--colors-yellow-dark-p3-7: color(display-p3 .389 .331 .135);--colors-yellow-dark-p3-8: color(display-p3 .497 .42 .182);--colors-yellow-dark-p3-9: color(display-p3 1 .92 .22);--colors-yellow-dark-p3-10: color(display-p3 1 1 .456);--colors-yellow-dark-p3-11: color(display-p3 .948 .885 .392);--colors-yellow-dark-p3-12: color(display-p3 .959 .934 .731);--colors-yellow-dark-p3-a-1: color(display-p3 .973 .369 0 / .013);--colors-yellow-dark-p3-a-2: color(display-p3 .996 .792 0 / .038);--colors-yellow-dark-p3-a-3: color(display-p3 .996 .71 0 / .11);--colors-yellow-dark-p3-a-4: color(display-p3 .996 .741 0 / .152);--colors-yellow-dark-p3-a-5: color(display-p3 .996 .765 0 / .202);--colors-yellow-dark-p3-a-6: color(display-p3 .996 .816 .082 / .261);--colors-yellow-dark-p3-a-7: color(display-p3 1 .831 .263 / .345);--colors-yellow-dark-p3-a-8: color(display-p3 1 .831 .314 / .463);--colors-yellow-dark-p3-a-9: color(display-p3 1 .922 .22);--colors-yellow-dark-p3-a-10: color(display-p3 1 1 .455);--colors-yellow-dark-p3-a-11: color(display-p3 .948 .885 .392);--colors-yellow-dark-p3-a-12: color(display-p3 .959 .934 .731);--colors-yellow-a-1: var(--colors-yellow-light-a-1);--colors-yellow-a-2: var(--colors-yellow-light-a-2);--colors-yellow-a-3: var(--colors-yellow-light-a-3);--colors-yellow-a-4: var(--colors-yellow-light-a-4);--colors-yellow-a-5: var(--colors-yellow-light-a-5);--colors-yellow-a-6: var(--colors-yellow-light-a-6);--colors-yellow-a-7: var(--colors-yellow-light-a-7);--colors-yellow-a-8: var(--colors-yellow-light-a-8);--colors-yellow-a-9: var(--colors-yellow-light-a-9);--colors-yellow-a-10: var(--colors-yellow-light-a-10);--colors-yellow-a-11: var(--colors-yellow-light-a-11);--colors-yellow-a-12: var(--colors-yellow-light-a-12);--colors-yellow-p3-1: var(--colors-yellow-light-p3-1);--colors-yellow-p3-2: var(--colors-yellow-light-p3-2);--colors-yellow-p3-3: var(--colors-yellow-light-p3-3);--colors-yellow-p3-4: var(--colors-yellow-light-p3-4);--colors-yellow-p3-5: var(--colors-yellow-light-p3-5);--colors-yellow-p3-6: var(--colors-yellow-light-p3-6);--colors-yellow-p3-7: var(--colors-yellow-light-p3-7);--colors-yellow-p3-8: var(--colors-yellow-light-p3-8);--colors-yellow-p3-9: var(--colors-yellow-light-p3-9);--colors-yellow-p3-10: var(--colors-yellow-light-p3-10);--colors-yellow-p3-11: var(--colors-yellow-light-p3-11);--colors-yellow-p3-12: var(--colors-yellow-light-p3-12);--colors-yellow-p3-a-1: var(--colors-yellow-light-p3-a-1);--colors-yellow-p3-a-2: var(--colors-yellow-light-p3-a-2);--colors-yellow-p3-a-3: var(--colors-yellow-light-p3-a-3);--colors-yellow-p3-a-4: var(--colors-yellow-light-p3-a-4);--colors-yellow-p3-a-5: var(--colors-yellow-light-p3-a-5);--colors-yellow-p3-a-6: var(--colors-yellow-light-p3-a-6);--colors-yellow-p3-a-7: var(--colors-yellow-light-p3-a-7);--colors-yellow-p3-a-8: var(--colors-yellow-light-p3-a-8);--colors-yellow-p3-a-9: var(--colors-yellow-light-p3-a-9);--colors-yellow-p3-a-10: var(--colors-yellow-light-p3-a-10);--colors-yellow-p3-a-11: var(--colors-yellow-light-p3-a-11);--colors-yellow-p3-a-12: var(--colors-yellow-light-p3-a-12);--colors-likec4-background: var(--mantine-color-body);--colors-likec4-tag-bg: var(--colors-tomato-9);--colors-likec4-tag-bg-hover: var(--colors-tomato-10);--colors-likec4-tag-border: var(--colors-tomato-8);--colors-likec4-tag-text: var(--colors-tomato-12);--colors-likec4-panel-bg: var(--mantine-color-body);--colors-likec4-panel-border: transparent;--colors-likec4-panel-text: color-mix(in oklab, var(--mantine-color-text) 85%, transparent 15%);--colors-likec4-panel-text-dimmed: var(--mantine-color-dimmed);--colors-likec4-panel-action: color-mix(in oklab, var(--mantine-color-text) 90%, transparent 10%);--colors-likec4-panel-action-disabled: var(--mantine-color-dimmed);--colors-likec4-panel-action-hover: var(--mantine-color-bright);--colors-likec4-panel-action-bg: var(--mantine-color-gray-1);--colors-likec4-panel-action-bg-hover: var(--mantine-color-gray-2);--colors-likec4-panel-action-warning: var(--mantine-color-orange-6);--colors-likec4-panel-action-warning-hover: var(--mantine-color-orange-7);--colors-likec4-panel-action-warning-bg: color-mix(in oklab, var(--mantine-color-orange-1) 90%, transparent 10%);--colors-likec4-panel-action-warning-bg-hover: color-mix(in oklab, var(--mantine-color-orange-3) 70%, transparent 30%);--colors-likec4-dropdown-bg: #FFF;--colors-likec4-dropdown-border: var(--colors-likec4-panel-border);--colors-likec4-overlay-backdrop: rgb(34 34 34);--colors-likec4-overlay-body: var(--mantine-color-body);--colors-likec4-overlay-border: color-mix(in oklab, var(--mantine-color-default-border) 50%, transparent 50%);--colors-likec4-compare-latest: var(--mantine-color-green-6)}[data-mantine-color-scheme=dark]{--colors-amber-1: var(--colors-amber-dark-1);--colors-amber-2: var(--colors-amber-dark-2);--colors-amber-3: var(--colors-amber-dark-3);--colors-amber-4: var(--colors-amber-dark-4);--colors-amber-5: var(--colors-amber-dark-5);--colors-amber-6: var(--colors-amber-dark-6);--colors-amber-7: var(--colors-amber-dark-7);--colors-amber-8: var(--colors-amber-dark-8);--colors-amber-9: var(--colors-amber-dark-9);--colors-amber-10: var(--colors-amber-dark-10);--colors-amber-11: var(--colors-amber-dark-11);--colors-amber-12: var(--colors-amber-dark-12);--colors-amber-a-1: var(--colors-amber-dark-a-1);--colors-amber-a-2: var(--colors-amber-dark-a-2);--colors-amber-a-3: var(--colors-amber-dark-a-3);--colors-amber-a-4: var(--colors-amber-dark-a-4);--colors-amber-a-5: var(--colors-amber-dark-a-5);--colors-amber-a-6: var(--colors-amber-dark-a-6);--colors-amber-a-7: var(--colors-amber-dark-a-7);--colors-amber-a-8: var(--colors-amber-dark-a-8);--colors-amber-a-9: var(--colors-amber-dark-a-9);--colors-amber-a-10: var(--colors-amber-dark-a-10);--colors-amber-a-11: var(--colors-amber-dark-a-11);--colors-amber-a-12: var(--colors-amber-dark-a-12);--colors-amber-p3-1: var(--colors-amber-dark-p3-1);--colors-amber-p3-2: var(--colors-amber-dark-p3-2);--colors-amber-p3-3: var(--colors-amber-dark-p3-3);--colors-amber-p3-4: var(--colors-amber-dark-p3-4);--colors-amber-p3-5: var(--colors-amber-dark-p3-5);--colors-amber-p3-6: var(--colors-amber-dark-p3-6);--colors-amber-p3-7: var(--colors-amber-dark-p3-7);--colors-amber-p3-8: var(--colors-amber-dark-p3-8);--colors-amber-p3-9: var(--colors-amber-dark-p3-9);--colors-amber-p3-10: var(--colors-amber-dark-p3-10);--colors-amber-p3-11: var(--colors-amber-dark-p3-11);--colors-amber-p3-12: var(--colors-amber-dark-p3-12);--colors-amber-p3-a-1: var(--colors-amber-dark-p3-a-1);--colors-amber-p3-a-2: var(--colors-amber-dark-p3-a-2);--colors-amber-p3-a-3: var(--colors-amber-dark-p3-a-3);--colors-amber-p3-a-4: var(--colors-amber-dark-p3-a-4);--colors-amber-p3-a-5: var(--colors-amber-dark-p3-a-5);--colors-amber-p3-a-6: var(--colors-amber-dark-p3-a-6);--colors-amber-p3-a-7: var(--colors-amber-dark-p3-a-7);--colors-amber-p3-a-8: var(--colors-amber-dark-p3-a-8);--colors-amber-p3-a-9: var(--colors-amber-dark-p3-a-9);--colors-amber-p3-a-10: var(--colors-amber-dark-p3-a-10);--colors-amber-p3-a-11: var(--colors-amber-dark-p3-a-11);--colors-amber-p3-a-12: var(--colors-amber-dark-p3-a-12);--colors-blue-1: var(--colors-blue-dark-1);--colors-blue-2: var(--colors-blue-dark-2);--colors-blue-3: var(--colors-blue-dark-3);--colors-blue-4: var(--colors-blue-dark-4);--colors-blue-5: var(--colors-blue-dark-5);--colors-blue-6: var(--colors-blue-dark-6);--colors-blue-7: var(--colors-blue-dark-7);--colors-blue-8: var(--colors-blue-dark-8);--colors-blue-9: var(--colors-blue-dark-9);--colors-blue-10: var(--colors-blue-dark-10);--colors-blue-11: var(--colors-blue-dark-11);--colors-blue-12: var(--colors-blue-dark-12);--colors-blue-a-1: var(--colors-blue-dark-a-1);--colors-blue-a-2: var(--colors-blue-dark-a-2);--colors-blue-a-3: var(--colors-blue-dark-a-3);--colors-blue-a-4: var(--colors-blue-dark-a-4);--colors-blue-a-5: var(--colors-blue-dark-a-5);--colors-blue-a-6: var(--colors-blue-dark-a-6);--colors-blue-a-7: var(--colors-blue-dark-a-7);--colors-blue-a-8: var(--colors-blue-dark-a-8);--colors-blue-a-9: var(--colors-blue-dark-a-9);--colors-blue-a-10: var(--colors-blue-dark-a-10);--colors-blue-a-11: var(--colors-blue-dark-a-11);--colors-blue-a-12: var(--colors-blue-dark-a-12);--colors-blue-p3-1: var(--colors-blue-dark-p3-1);--colors-blue-p3-2: var(--colors-blue-dark-p3-2);--colors-blue-p3-3: var(--colors-blue-dark-p3-3);--colors-blue-p3-4: var(--colors-blue-dark-p3-4);--colors-blue-p3-5: var(--colors-blue-dark-p3-5);--colors-blue-p3-6: var(--colors-blue-dark-p3-6);--colors-blue-p3-7: var(--colors-blue-dark-p3-7);--colors-blue-p3-8: var(--colors-blue-dark-p3-8);--colors-blue-p3-9: var(--colors-blue-dark-p3-9);--colors-blue-p3-10: var(--colors-blue-dark-p3-10);--colors-blue-p3-11: var(--colors-blue-dark-p3-11);--colors-blue-p3-12: var(--colors-blue-dark-p3-12);--colors-blue-p3-a-1: var(--colors-blue-dark-p3-a-1);--colors-blue-p3-a-2: var(--colors-blue-dark-p3-a-2);--colors-blue-p3-a-3: var(--colors-blue-dark-p3-a-3);--colors-blue-p3-a-4: var(--colors-blue-dark-p3-a-4);--colors-blue-p3-a-5: var(--colors-blue-dark-p3-a-5);--colors-blue-p3-a-6: var(--colors-blue-dark-p3-a-6);--colors-blue-p3-a-7: var(--colors-blue-dark-p3-a-7);--colors-blue-p3-a-8: var(--colors-blue-dark-p3-a-8);--colors-blue-p3-a-9: var(--colors-blue-dark-p3-a-9);--colors-blue-p3-a-10: var(--colors-blue-dark-p3-a-10);--colors-blue-p3-a-11: var(--colors-blue-dark-p3-a-11);--colors-blue-p3-a-12: var(--colors-blue-dark-p3-a-12);--colors-crimson-1: var(--colors-crimson-dark-1);--colors-crimson-2: var(--colors-crimson-dark-2);--colors-crimson-3: var(--colors-crimson-dark-3);--colors-crimson-4: var(--colors-crimson-dark-4);--colors-crimson-5: var(--colors-crimson-dark-5);--colors-crimson-6: var(--colors-crimson-dark-6);--colors-crimson-7: var(--colors-crimson-dark-7);--colors-crimson-8: var(--colors-crimson-dark-8);--colors-crimson-9: var(--colors-crimson-dark-9);--colors-crimson-10: var(--colors-crimson-dark-10);--colors-crimson-11: var(--colors-crimson-dark-11);--colors-crimson-12: var(--colors-crimson-dark-12);--colors-crimson-a-1: var(--colors-crimson-dark-a-1);--colors-crimson-a-2: var(--colors-crimson-dark-a-2);--colors-crimson-a-3: var(--colors-crimson-dark-a-3);--colors-crimson-a-4: var(--colors-crimson-dark-a-4);--colors-crimson-a-5: var(--colors-crimson-dark-a-5);--colors-crimson-a-6: var(--colors-crimson-dark-a-6);--colors-crimson-a-7: var(--colors-crimson-dark-a-7);--colors-crimson-a-8: var(--colors-crimson-dark-a-8);--colors-crimson-a-9: var(--colors-crimson-dark-a-9);--colors-crimson-a-10: var(--colors-crimson-dark-a-10);--colors-crimson-a-11: var(--colors-crimson-dark-a-11);--colors-crimson-a-12: var(--colors-crimson-dark-a-12);--colors-crimson-p3-1: var(--colors-crimson-dark-p3-1);--colors-crimson-p3-2: var(--colors-crimson-dark-p3-2);--colors-crimson-p3-3: var(--colors-crimson-dark-p3-3);--colors-crimson-p3-4: var(--colors-crimson-dark-p3-4);--colors-crimson-p3-5: var(--colors-crimson-dark-p3-5);--colors-crimson-p3-6: var(--colors-crimson-dark-p3-6);--colors-crimson-p3-7: var(--colors-crimson-dark-p3-7);--colors-crimson-p3-8: var(--colors-crimson-dark-p3-8);--colors-crimson-p3-9: var(--colors-crimson-dark-p3-9);--colors-crimson-p3-10: var(--colors-crimson-dark-p3-10);--colors-crimson-p3-11: var(--colors-crimson-dark-p3-11);--colors-crimson-p3-12: var(--colors-crimson-dark-p3-12);--colors-crimson-p3-a-1: var(--colors-crimson-dark-p3-a-1);--colors-crimson-p3-a-2: var(--colors-crimson-dark-p3-a-2);--colors-crimson-p3-a-3: var(--colors-crimson-dark-p3-a-3);--colors-crimson-p3-a-4: var(--colors-crimson-dark-p3-a-4);--colors-crimson-p3-a-5: var(--colors-crimson-dark-p3-a-5);--colors-crimson-p3-a-6: var(--colors-crimson-dark-p3-a-6);--colors-crimson-p3-a-7: var(--colors-crimson-dark-p3-a-7);--colors-crimson-p3-a-8: var(--colors-crimson-dark-p3-a-8);--colors-crimson-p3-a-9: var(--colors-crimson-dark-p3-a-9);--colors-crimson-p3-a-10: var(--colors-crimson-dark-p3-a-10);--colors-crimson-p3-a-11: var(--colors-crimson-dark-p3-a-11);--colors-crimson-p3-a-12: var(--colors-crimson-dark-p3-a-12);--colors-grass-1: var(--colors-grass-dark-1);--colors-grass-2: var(--colors-grass-dark-2);--colors-grass-3: var(--colors-grass-dark-3);--colors-grass-4: var(--colors-grass-dark-4);--colors-grass-5: var(--colors-grass-dark-5);--colors-grass-6: var(--colors-grass-dark-6);--colors-grass-7: var(--colors-grass-dark-7);--colors-grass-8: var(--colors-grass-dark-8);--colors-grass-9: var(--colors-grass-dark-9);--colors-grass-10: var(--colors-grass-dark-10);--colors-grass-11: var(--colors-grass-dark-11);--colors-grass-12: var(--colors-grass-dark-12);--colors-grass-a-1: var(--colors-grass-dark-a-1);--colors-grass-a-2: var(--colors-grass-dark-a-2);--colors-grass-a-3: var(--colors-grass-dark-a-3);--colors-grass-a-4: var(--colors-grass-dark-a-4);--colors-grass-a-5: var(--colors-grass-dark-a-5);--colors-grass-a-6: var(--colors-grass-dark-a-6);--colors-grass-a-7: var(--colors-grass-dark-a-7);--colors-grass-a-8: var(--colors-grass-dark-a-8);--colors-grass-a-9: var(--colors-grass-dark-a-9);--colors-grass-a-10: var(--colors-grass-dark-a-10);--colors-grass-a-11: var(--colors-grass-dark-a-11);--colors-grass-a-12: var(--colors-grass-dark-a-12);--colors-grass-p3-1: var(--colors-grass-dark-p3-1);--colors-grass-p3-2: var(--colors-grass-dark-p3-2);--colors-grass-p3-3: var(--colors-grass-dark-p3-3);--colors-grass-p3-4: var(--colors-grass-dark-p3-4);--colors-grass-p3-5: var(--colors-grass-dark-p3-5);--colors-grass-p3-6: var(--colors-grass-dark-p3-6);--colors-grass-p3-7: var(--colors-grass-dark-p3-7);--colors-grass-p3-8: var(--colors-grass-dark-p3-8);--colors-grass-p3-9: var(--colors-grass-dark-p3-9);--colors-grass-p3-10: var(--colors-grass-dark-p3-10);--colors-grass-p3-11: var(--colors-grass-dark-p3-11);--colors-grass-p3-12: var(--colors-grass-dark-p3-12);--colors-grass-p3-a-1: var(--colors-grass-dark-p3-a-1);--colors-grass-p3-a-2: var(--colors-grass-dark-p3-a-2);--colors-grass-p3-a-3: var(--colors-grass-dark-p3-a-3);--colors-grass-p3-a-4: var(--colors-grass-dark-p3-a-4);--colors-grass-p3-a-5: var(--colors-grass-dark-p3-a-5);--colors-grass-p3-a-6: var(--colors-grass-dark-p3-a-6);--colors-grass-p3-a-7: var(--colors-grass-dark-p3-a-7);--colors-grass-p3-a-8: var(--colors-grass-dark-p3-a-8);--colors-grass-p3-a-9: var(--colors-grass-dark-p3-a-9);--colors-grass-p3-a-10: var(--colors-grass-dark-p3-a-10);--colors-grass-p3-a-11: var(--colors-grass-dark-p3-a-11);--colors-grass-p3-a-12: var(--colors-grass-dark-p3-a-12);--colors-indigo-1: var(--colors-indigo-dark-1);--colors-indigo-2: var(--colors-indigo-dark-2);--colors-indigo-3: var(--colors-indigo-dark-3);--colors-indigo-4: var(--colors-indigo-dark-4);--colors-indigo-5: var(--colors-indigo-dark-5);--colors-indigo-6: var(--colors-indigo-dark-6);--colors-indigo-7: var(--colors-indigo-dark-7);--colors-indigo-8: var(--colors-indigo-dark-8);--colors-indigo-9: var(--colors-indigo-dark-9);--colors-indigo-10: var(--colors-indigo-dark-10);--colors-indigo-11: var(--colors-indigo-dark-11);--colors-indigo-12: var(--colors-indigo-dark-12);--colors-indigo-a-1: var(--colors-indigo-dark-a-1);--colors-indigo-a-2: var(--colors-indigo-dark-a-2);--colors-indigo-a-3: var(--colors-indigo-dark-a-3);--colors-indigo-a-4: var(--colors-indigo-dark-a-4);--colors-indigo-a-5: var(--colors-indigo-dark-a-5);--colors-indigo-a-6: var(--colors-indigo-dark-a-6);--colors-indigo-a-7: var(--colors-indigo-dark-a-7);--colors-indigo-a-8: var(--colors-indigo-dark-a-8);--colors-indigo-a-9: var(--colors-indigo-dark-a-9);--colors-indigo-a-10: var(--colors-indigo-dark-a-10);--colors-indigo-a-11: var(--colors-indigo-dark-a-11);--colors-indigo-a-12: var(--colors-indigo-dark-a-12);--colors-indigo-p3-1: var(--colors-indigo-dark-p3-1);--colors-indigo-p3-2: var(--colors-indigo-dark-p3-2);--colors-indigo-p3-3: var(--colors-indigo-dark-p3-3);--colors-indigo-p3-4: var(--colors-indigo-dark-p3-4);--colors-indigo-p3-5: var(--colors-indigo-dark-p3-5);--colors-indigo-p3-6: var(--colors-indigo-dark-p3-6);--colors-indigo-p3-7: var(--colors-indigo-dark-p3-7);--colors-indigo-p3-8: var(--colors-indigo-dark-p3-8);--colors-indigo-p3-9: var(--colors-indigo-dark-p3-9);--colors-indigo-p3-10: var(--colors-indigo-dark-p3-10);--colors-indigo-p3-11: var(--colors-indigo-dark-p3-11);--colors-indigo-p3-12: var(--colors-indigo-dark-p3-12);--colors-indigo-p3-a-1: var(--colors-indigo-dark-p3-a-1);--colors-indigo-p3-a-2: var(--colors-indigo-dark-p3-a-2);--colors-indigo-p3-a-3: var(--colors-indigo-dark-p3-a-3);--colors-indigo-p3-a-4: var(--colors-indigo-dark-p3-a-4);--colors-indigo-p3-a-5: var(--colors-indigo-dark-p3-a-5);--colors-indigo-p3-a-6: var(--colors-indigo-dark-p3-a-6);--colors-indigo-p3-a-7: var(--colors-indigo-dark-p3-a-7);--colors-indigo-p3-a-8: var(--colors-indigo-dark-p3-a-8);--colors-indigo-p3-a-9: var(--colors-indigo-dark-p3-a-9);--colors-indigo-p3-a-10: var(--colors-indigo-dark-p3-a-10);--colors-indigo-p3-a-11: var(--colors-indigo-dark-p3-a-11);--colors-indigo-p3-a-12: var(--colors-indigo-dark-p3-a-12);--colors-lime-1: var(--colors-lime-dark-1);--colors-lime-2: var(--colors-lime-dark-2);--colors-lime-3: var(--colors-lime-dark-3);--colors-lime-4: var(--colors-lime-dark-4);--colors-lime-5: var(--colors-lime-dark-5);--colors-lime-6: var(--colors-lime-dark-6);--colors-lime-7: var(--colors-lime-dark-7);--colors-lime-8: var(--colors-lime-dark-8);--colors-lime-9: var(--colors-lime-dark-9);--colors-lime-10: var(--colors-lime-dark-10);--colors-lime-11: var(--colors-lime-dark-11);--colors-lime-12: var(--colors-lime-dark-12);--colors-lime-a-1: var(--colors-lime-dark-a-1);--colors-lime-a-2: var(--colors-lime-dark-a-2);--colors-lime-a-3: var(--colors-lime-dark-a-3);--colors-lime-a-4: var(--colors-lime-dark-a-4);--colors-lime-a-5: var(--colors-lime-dark-a-5);--colors-lime-a-6: var(--colors-lime-dark-a-6);--colors-lime-a-7: var(--colors-lime-dark-a-7);--colors-lime-a-8: var(--colors-lime-dark-a-8);--colors-lime-a-9: var(--colors-lime-dark-a-9);--colors-lime-a-10: var(--colors-lime-dark-a-10);--colors-lime-a-11: var(--colors-lime-dark-a-11);--colors-lime-a-12: var(--colors-lime-dark-a-12);--colors-lime-p3-1: var(--colors-lime-dark-p3-1);--colors-lime-p3-2: var(--colors-lime-dark-p3-2);--colors-lime-p3-3: var(--colors-lime-dark-p3-3);--colors-lime-p3-4: var(--colors-lime-dark-p3-4);--colors-lime-p3-5: var(--colors-lime-dark-p3-5);--colors-lime-p3-6: var(--colors-lime-dark-p3-6);--colors-lime-p3-7: var(--colors-lime-dark-p3-7);--colors-lime-p3-8: var(--colors-lime-dark-p3-8);--colors-lime-p3-9: var(--colors-lime-dark-p3-9);--colors-lime-p3-10: var(--colors-lime-dark-p3-10);--colors-lime-p3-11: var(--colors-lime-dark-p3-11);--colors-lime-p3-12: var(--colors-lime-dark-p3-12);--colors-lime-p3-a-1: var(--colors-lime-dark-p3-a-1);--colors-lime-p3-a-2: var(--colors-lime-dark-p3-a-2);--colors-lime-p3-a-3: var(--colors-lime-dark-p3-a-3);--colors-lime-p3-a-4: var(--colors-lime-dark-p3-a-4);--colors-lime-p3-a-5: var(--colors-lime-dark-p3-a-5);--colors-lime-p3-a-6: var(--colors-lime-dark-p3-a-6);--colors-lime-p3-a-7: var(--colors-lime-dark-p3-a-7);--colors-lime-p3-a-8: var(--colors-lime-dark-p3-a-8);--colors-lime-p3-a-9: var(--colors-lime-dark-p3-a-9);--colors-lime-p3-a-10: var(--colors-lime-dark-p3-a-10);--colors-lime-p3-a-11: var(--colors-lime-dark-p3-a-11);--colors-lime-p3-a-12: var(--colors-lime-dark-p3-a-12);--colors-orange-1: var(--colors-orange-dark-1);--colors-orange-2: var(--colors-orange-dark-2);--colors-orange-3: var(--colors-orange-dark-3);--colors-orange-4: var(--colors-orange-dark-4);--colors-orange-5: var(--colors-orange-dark-5);--colors-orange-6: var(--colors-orange-dark-6);--colors-orange-7: var(--colors-orange-dark-7);--colors-orange-8: var(--colors-orange-dark-8);--colors-orange-9: var(--colors-orange-dark-9);--colors-orange-10: var(--colors-orange-dark-10);--colors-orange-11: var(--colors-orange-dark-11);--colors-orange-12: var(--colors-orange-dark-12);--colors-orange-a-1: var(--colors-orange-dark-a-1);--colors-orange-a-2: var(--colors-orange-dark-a-2);--colors-orange-a-3: var(--colors-orange-dark-a-3);--colors-orange-a-4: var(--colors-orange-dark-a-4);--colors-orange-a-5: var(--colors-orange-dark-a-5);--colors-orange-a-6: var(--colors-orange-dark-a-6);--colors-orange-a-7: var(--colors-orange-dark-a-7);--colors-orange-a-8: var(--colors-orange-dark-a-8);--colors-orange-a-9: var(--colors-orange-dark-a-9);--colors-orange-a-10: var(--colors-orange-dark-a-10);--colors-orange-a-11: var(--colors-orange-dark-a-11);--colors-orange-a-12: var(--colors-orange-dark-a-12);--colors-orange-p3-1: var(--colors-orange-dark-p3-1);--colors-orange-p3-2: var(--colors-orange-dark-p3-2);--colors-orange-p3-3: var(--colors-orange-dark-p3-3);--colors-orange-p3-4: var(--colors-orange-dark-p3-4);--colors-orange-p3-5: var(--colors-orange-dark-p3-5);--colors-orange-p3-6: var(--colors-orange-dark-p3-6);--colors-orange-p3-7: var(--colors-orange-dark-p3-7);--colors-orange-p3-8: var(--colors-orange-dark-p3-8);--colors-orange-p3-9: var(--colors-orange-dark-p3-9);--colors-orange-p3-10: var(--colors-orange-dark-p3-10);--colors-orange-p3-11: var(--colors-orange-dark-p3-11);--colors-orange-p3-12: var(--colors-orange-dark-p3-12);--colors-orange-p3-a-1: var(--colors-orange-dark-p3-a-1);--colors-orange-p3-a-2: var(--colors-orange-dark-p3-a-2);--colors-orange-p3-a-3: var(--colors-orange-dark-p3-a-3);--colors-orange-p3-a-4: var(--colors-orange-dark-p3-a-4);--colors-orange-p3-a-5: var(--colors-orange-dark-p3-a-5);--colors-orange-p3-a-6: var(--colors-orange-dark-p3-a-6);--colors-orange-p3-a-7: var(--colors-orange-dark-p3-a-7);--colors-orange-p3-a-8: var(--colors-orange-dark-p3-a-8);--colors-orange-p3-a-9: var(--colors-orange-dark-p3-a-9);--colors-orange-p3-a-10: var(--colors-orange-dark-p3-a-10);--colors-orange-p3-a-11: var(--colors-orange-dark-p3-a-11);--colors-orange-p3-a-12: var(--colors-orange-dark-p3-a-12);--colors-pink-1: var(--colors-pink-dark-1);--colors-pink-2: var(--colors-pink-dark-2);--colors-pink-3: var(--colors-pink-dark-3);--colors-pink-4: var(--colors-pink-dark-4);--colors-pink-5: var(--colors-pink-dark-5);--colors-pink-6: var(--colors-pink-dark-6);--colors-pink-7: var(--colors-pink-dark-7);--colors-pink-8: var(--colors-pink-dark-8);--colors-pink-9: var(--colors-pink-dark-9);--colors-pink-10: var(--colors-pink-dark-10);--colors-pink-11: var(--colors-pink-dark-11);--colors-pink-12: var(--colors-pink-dark-12);--colors-pink-a-1: var(--colors-pink-dark-a-1);--colors-pink-a-2: var(--colors-pink-dark-a-2);--colors-pink-a-3: var(--colors-pink-dark-a-3);--colors-pink-a-4: var(--colors-pink-dark-a-4);--colors-pink-a-5: var(--colors-pink-dark-a-5);--colors-pink-a-6: var(--colors-pink-dark-a-6);--colors-pink-a-7: var(--colors-pink-dark-a-7);--colors-pink-a-8: var(--colors-pink-dark-a-8);--colors-pink-a-9: var(--colors-pink-dark-a-9);--colors-pink-a-10: var(--colors-pink-dark-a-10);--colors-pink-a-11: var(--colors-pink-dark-a-11);--colors-pink-a-12: var(--colors-pink-dark-a-12);--colors-pink-p3-1: var(--colors-pink-dark-p3-1);--colors-pink-p3-2: var(--colors-pink-dark-p3-2);--colors-pink-p3-3: var(--colors-pink-dark-p3-3);--colors-pink-p3-4: var(--colors-pink-dark-p3-4);--colors-pink-p3-5: var(--colors-pink-dark-p3-5);--colors-pink-p3-6: var(--colors-pink-dark-p3-6);--colors-pink-p3-7: var(--colors-pink-dark-p3-7);--colors-pink-p3-8: var(--colors-pink-dark-p3-8);--colors-pink-p3-9: var(--colors-pink-dark-p3-9);--colors-pink-p3-10: var(--colors-pink-dark-p3-10);--colors-pink-p3-11: var(--colors-pink-dark-p3-11);--colors-pink-p3-12: var(--colors-pink-dark-p3-12);--colors-pink-p3-a-1: var(--colors-pink-dark-p3-a-1);--colors-pink-p3-a-2: var(--colors-pink-dark-p3-a-2);--colors-pink-p3-a-3: var(--colors-pink-dark-p3-a-3);--colors-pink-p3-a-4: var(--colors-pink-dark-p3-a-4);--colors-pink-p3-a-5: var(--colors-pink-dark-p3-a-5);--colors-pink-p3-a-6: var(--colors-pink-dark-p3-a-6);--colors-pink-p3-a-7: var(--colors-pink-dark-p3-a-7);--colors-pink-p3-a-8: var(--colors-pink-dark-p3-a-8);--colors-pink-p3-a-9: var(--colors-pink-dark-p3-a-9);--colors-pink-p3-a-10: var(--colors-pink-dark-p3-a-10);--colors-pink-p3-a-11: var(--colors-pink-dark-p3-a-11);--colors-pink-p3-a-12: var(--colors-pink-dark-p3-a-12);--colors-purple-1: var(--colors-purple-dark-1);--colors-purple-2: var(--colors-purple-dark-2);--colors-purple-3: var(--colors-purple-dark-3);--colors-purple-4: var(--colors-purple-dark-4);--colors-purple-5: var(--colors-purple-dark-5);--colors-purple-6: var(--colors-purple-dark-6);--colors-purple-7: var(--colors-purple-dark-7);--colors-purple-8: var(--colors-purple-dark-8);--colors-purple-9: var(--colors-purple-dark-9);--colors-purple-10: var(--colors-purple-dark-10);--colors-purple-11: var(--colors-purple-dark-11);--colors-purple-12: var(--colors-purple-dark-12);--colors-purple-a-1: var(--colors-purple-dark-a-1);--colors-purple-a-2: var(--colors-purple-dark-a-2);--colors-purple-a-3: var(--colors-purple-dark-a-3);--colors-purple-a-4: var(--colors-purple-dark-a-4);--colors-purple-a-5: var(--colors-purple-dark-a-5);--colors-purple-a-6: var(--colors-purple-dark-a-6);--colors-purple-a-7: var(--colors-purple-dark-a-7);--colors-purple-a-8: var(--colors-purple-dark-a-8);--colors-purple-a-9: var(--colors-purple-dark-a-9);--colors-purple-a-10: var(--colors-purple-dark-a-10);--colors-purple-a-11: var(--colors-purple-dark-a-11);--colors-purple-a-12: var(--colors-purple-dark-a-12);--colors-purple-p3-1: var(--colors-purple-dark-p3-1);--colors-purple-p3-2: var(--colors-purple-dark-p3-2);--colors-purple-p3-3: var(--colors-purple-dark-p3-3);--colors-purple-p3-4: var(--colors-purple-dark-p3-4);--colors-purple-p3-5: var(--colors-purple-dark-p3-5);--colors-purple-p3-6: var(--colors-purple-dark-p3-6);--colors-purple-p3-7: var(--colors-purple-dark-p3-7);--colors-purple-p3-8: var(--colors-purple-dark-p3-8);--colors-purple-p3-9: var(--colors-purple-dark-p3-9);--colors-purple-p3-10: var(--colors-purple-dark-p3-10);--colors-purple-p3-11: var(--colors-purple-dark-p3-11);--colors-purple-p3-12: var(--colors-purple-dark-p3-12);--colors-purple-p3-a-1: var(--colors-purple-dark-p3-a-1);--colors-purple-p3-a-2: var(--colors-purple-dark-p3-a-2);--colors-purple-p3-a-3: var(--colors-purple-dark-p3-a-3);--colors-purple-p3-a-4: var(--colors-purple-dark-p3-a-4);--colors-purple-p3-a-5: var(--colors-purple-dark-p3-a-5);--colors-purple-p3-a-6: var(--colors-purple-dark-p3-a-6);--colors-purple-p3-a-7: var(--colors-purple-dark-p3-a-7);--colors-purple-p3-a-8: var(--colors-purple-dark-p3-a-8);--colors-purple-p3-a-9: var(--colors-purple-dark-p3-a-9);--colors-purple-p3-a-10: var(--colors-purple-dark-p3-a-10);--colors-purple-p3-a-11: var(--colors-purple-dark-p3-a-11);--colors-purple-p3-a-12: var(--colors-purple-dark-p3-a-12);--colors-red-1: var(--colors-red-dark-1);--colors-red-2: var(--colors-red-dark-2);--colors-red-3: var(--colors-red-dark-3);--colors-red-4: var(--colors-red-dark-4);--colors-red-5: var(--colors-red-dark-5);--colors-red-6: var(--colors-red-dark-6);--colors-red-7: var(--colors-red-dark-7);--colors-red-8: var(--colors-red-dark-8);--colors-red-9: var(--colors-red-dark-9);--colors-red-10: var(--colors-red-dark-10);--colors-red-11: var(--colors-red-dark-11);--colors-red-12: var(--colors-red-dark-12);--colors-red-a-1: var(--colors-red-dark-a-1);--colors-red-a-2: var(--colors-red-dark-a-2);--colors-red-a-3: var(--colors-red-dark-a-3);--colors-red-a-4: var(--colors-red-dark-a-4);--colors-red-a-5: var(--colors-red-dark-a-5);--colors-red-a-6: var(--colors-red-dark-a-6);--colors-red-a-7: var(--colors-red-dark-a-7);--colors-red-a-8: var(--colors-red-dark-a-8);--colors-red-a-9: var(--colors-red-dark-a-9);--colors-red-a-10: var(--colors-red-dark-a-10);--colors-red-a-11: var(--colors-red-dark-a-11);--colors-red-a-12: var(--colors-red-dark-a-12);--colors-red-p3-1: var(--colors-red-dark-p3-1);--colors-red-p3-2: var(--colors-red-dark-p3-2);--colors-red-p3-3: var(--colors-red-dark-p3-3);--colors-red-p3-4: var(--colors-red-dark-p3-4);--colors-red-p3-5: var(--colors-red-dark-p3-5);--colors-red-p3-6: var(--colors-red-dark-p3-6);--colors-red-p3-7: var(--colors-red-dark-p3-7);--colors-red-p3-8: var(--colors-red-dark-p3-8);--colors-red-p3-9: var(--colors-red-dark-p3-9);--colors-red-p3-10: var(--colors-red-dark-p3-10);--colors-red-p3-11: var(--colors-red-dark-p3-11);--colors-red-p3-12: var(--colors-red-dark-p3-12);--colors-red-p3-a-1: var(--colors-red-dark-p3-a-1);--colors-red-p3-a-2: var(--colors-red-dark-p3-a-2);--colors-red-p3-a-3: var(--colors-red-dark-p3-a-3);--colors-red-p3-a-4: var(--colors-red-dark-p3-a-4);--colors-red-p3-a-5: var(--colors-red-dark-p3-a-5);--colors-red-p3-a-6: var(--colors-red-dark-p3-a-6);--colors-red-p3-a-7: var(--colors-red-dark-p3-a-7);--colors-red-p3-a-8: var(--colors-red-dark-p3-a-8);--colors-red-p3-a-9: var(--colors-red-dark-p3-a-9);--colors-red-p3-a-10: var(--colors-red-dark-p3-a-10);--colors-red-p3-a-11: var(--colors-red-dark-p3-a-11);--colors-red-p3-a-12: var(--colors-red-dark-p3-a-12);--colors-ruby-1: var(--colors-ruby-dark-1);--colors-ruby-2: var(--colors-ruby-dark-2);--colors-ruby-3: var(--colors-ruby-dark-3);--colors-ruby-4: var(--colors-ruby-dark-4);--colors-ruby-5: var(--colors-ruby-dark-5);--colors-ruby-6: var(--colors-ruby-dark-6);--colors-ruby-7: var(--colors-ruby-dark-7);--colors-ruby-8: var(--colors-ruby-dark-8);--colors-ruby-9: var(--colors-ruby-dark-9);--colors-ruby-10: var(--colors-ruby-dark-10);--colors-ruby-11: var(--colors-ruby-dark-11);--colors-ruby-12: var(--colors-ruby-dark-12);--colors-ruby-a-1: var(--colors-ruby-dark-a-1);--colors-ruby-a-2: var(--colors-ruby-dark-a-2);--colors-ruby-a-3: var(--colors-ruby-dark-a-3);--colors-ruby-a-4: var(--colors-ruby-dark-a-4);--colors-ruby-a-5: var(--colors-ruby-dark-a-5);--colors-ruby-a-6: var(--colors-ruby-dark-a-6);--colors-ruby-a-7: var(--colors-ruby-dark-a-7);--colors-ruby-a-8: var(--colors-ruby-dark-a-8);--colors-ruby-a-9: var(--colors-ruby-dark-a-9);--colors-ruby-a-10: var(--colors-ruby-dark-a-10);--colors-ruby-a-11: var(--colors-ruby-dark-a-11);--colors-ruby-a-12: var(--colors-ruby-dark-a-12);--colors-ruby-p3-1: var(--colors-ruby-dark-p3-1);--colors-ruby-p3-2: var(--colors-ruby-dark-p3-2);--colors-ruby-p3-3: var(--colors-ruby-dark-p3-3);--colors-ruby-p3-4: var(--colors-ruby-dark-p3-4);--colors-ruby-p3-5: var(--colors-ruby-dark-p3-5);--colors-ruby-p3-6: var(--colors-ruby-dark-p3-6);--colors-ruby-p3-7: var(--colors-ruby-dark-p3-7);--colors-ruby-p3-8: var(--colors-ruby-dark-p3-8);--colors-ruby-p3-9: var(--colors-ruby-dark-p3-9);--colors-ruby-p3-10: var(--colors-ruby-dark-p3-10);--colors-ruby-p3-11: var(--colors-ruby-dark-p3-11);--colors-ruby-p3-12: var(--colors-ruby-dark-p3-12);--colors-ruby-p3-a-1: var(--colors-ruby-dark-p3-a-1);--colors-ruby-p3-a-2: var(--colors-ruby-dark-p3-a-2);--colors-ruby-p3-a-3: var(--colors-ruby-dark-p3-a-3);--colors-ruby-p3-a-4: var(--colors-ruby-dark-p3-a-4);--colors-ruby-p3-a-5: var(--colors-ruby-dark-p3-a-5);--colors-ruby-p3-a-6: var(--colors-ruby-dark-p3-a-6);--colors-ruby-p3-a-7: var(--colors-ruby-dark-p3-a-7);--colors-ruby-p3-a-8: var(--colors-ruby-dark-p3-a-8);--colors-ruby-p3-a-9: var(--colors-ruby-dark-p3-a-9);--colors-ruby-p3-a-10: var(--colors-ruby-dark-p3-a-10);--colors-ruby-p3-a-11: var(--colors-ruby-dark-p3-a-11);--colors-ruby-p3-a-12: var(--colors-ruby-dark-p3-a-12);--colors-teal-1: var(--colors-teal-dark-1);--colors-teal-2: var(--colors-teal-dark-2);--colors-teal-3: var(--colors-teal-dark-3);--colors-teal-4: var(--colors-teal-dark-4);--colors-teal-5: var(--colors-teal-dark-5);--colors-teal-6: var(--colors-teal-dark-6);--colors-teal-7: var(--colors-teal-dark-7);--colors-teal-8: var(--colors-teal-dark-8);--colors-teal-9: var(--colors-teal-dark-9);--colors-teal-10: var(--colors-teal-dark-10);--colors-teal-11: var(--colors-teal-dark-11);--colors-teal-12: var(--colors-teal-dark-12);--colors-teal-a-1: var(--colors-teal-dark-a-1);--colors-teal-a-2: var(--colors-teal-dark-a-2);--colors-teal-a-3: var(--colors-teal-dark-a-3);--colors-teal-a-4: var(--colors-teal-dark-a-4);--colors-teal-a-5: var(--colors-teal-dark-a-5);--colors-teal-a-6: var(--colors-teal-dark-a-6);--colors-teal-a-7: var(--colors-teal-dark-a-7);--colors-teal-a-8: var(--colors-teal-dark-a-8);--colors-teal-a-9: var(--colors-teal-dark-a-9);--colors-teal-a-10: var(--colors-teal-dark-a-10);--colors-teal-a-11: var(--colors-teal-dark-a-11);--colors-teal-a-12: var(--colors-teal-dark-a-12);--colors-teal-p3-1: var(--colors-teal-dark-p3-1);--colors-teal-p3-2: var(--colors-teal-dark-p3-2);--colors-teal-p3-3: var(--colors-teal-dark-p3-3);--colors-teal-p3-4: var(--colors-teal-dark-p3-4);--colors-teal-p3-5: var(--colors-teal-dark-p3-5);--colors-teal-p3-6: var(--colors-teal-dark-p3-6);--colors-teal-p3-7: var(--colors-teal-dark-p3-7);--colors-teal-p3-8: var(--colors-teal-dark-p3-8);--colors-teal-p3-9: var(--colors-teal-dark-p3-9);--colors-teal-p3-10: var(--colors-teal-dark-p3-10);--colors-teal-p3-11: var(--colors-teal-dark-p3-11);--colors-teal-p3-12: var(--colors-teal-dark-p3-12);--colors-teal-p3-a-1: var(--colors-teal-dark-p3-a-1);--colors-teal-p3-a-2: var(--colors-teal-dark-p3-a-2);--colors-teal-p3-a-3: var(--colors-teal-dark-p3-a-3);--colors-teal-p3-a-4: var(--colors-teal-dark-p3-a-4);--colors-teal-p3-a-5: var(--colors-teal-dark-p3-a-5);--colors-teal-p3-a-6: var(--colors-teal-dark-p3-a-6);--colors-teal-p3-a-7: var(--colors-teal-dark-p3-a-7);--colors-teal-p3-a-8: var(--colors-teal-dark-p3-a-8);--colors-teal-p3-a-9: var(--colors-teal-dark-p3-a-9);--colors-teal-p3-a-10: var(--colors-teal-dark-p3-a-10);--colors-teal-p3-a-11: var(--colors-teal-dark-p3-a-11);--colors-teal-p3-a-12: var(--colors-teal-dark-p3-a-12);--colors-tomato-1: var(--colors-tomato-dark-1);--colors-tomato-2: var(--colors-tomato-dark-2);--colors-tomato-3: var(--colors-tomato-dark-3);--colors-tomato-4: var(--colors-tomato-dark-4);--colors-tomato-5: var(--colors-tomato-dark-5);--colors-tomato-6: var(--colors-tomato-dark-6);--colors-tomato-7: var(--colors-tomato-dark-7);--colors-tomato-8: var(--colors-tomato-dark-8);--colors-tomato-9: var(--colors-tomato-dark-9);--colors-tomato-10: var(--colors-tomato-dark-10);--colors-tomato-11: var(--colors-tomato-dark-11);--colors-tomato-12: var(--colors-tomato-dark-12);--colors-tomato-a-1: var(--colors-tomato-dark-a-1);--colors-tomato-a-2: var(--colors-tomato-dark-a-2);--colors-tomato-a-3: var(--colors-tomato-dark-a-3);--colors-tomato-a-4: var(--colors-tomato-dark-a-4);--colors-tomato-a-5: var(--colors-tomato-dark-a-5);--colors-tomato-a-6: var(--colors-tomato-dark-a-6);--colors-tomato-a-7: var(--colors-tomato-dark-a-7);--colors-tomato-a-8: var(--colors-tomato-dark-a-8);--colors-tomato-a-9: var(--colors-tomato-dark-a-9);--colors-tomato-a-10: var(--colors-tomato-dark-a-10);--colors-tomato-a-11: var(--colors-tomato-dark-a-11);--colors-tomato-a-12: var(--colors-tomato-dark-a-12);--colors-tomato-p3-1: var(--colors-tomato-dark-p3-1);--colors-tomato-p3-2: var(--colors-tomato-dark-p3-2);--colors-tomato-p3-3: var(--colors-tomato-dark-p3-3);--colors-tomato-p3-4: var(--colors-tomato-dark-p3-4);--colors-tomato-p3-5: var(--colors-tomato-dark-p3-5);--colors-tomato-p3-6: var(--colors-tomato-dark-p3-6);--colors-tomato-p3-7: var(--colors-tomato-dark-p3-7);--colors-tomato-p3-8: var(--colors-tomato-dark-p3-8);--colors-tomato-p3-9: var(--colors-tomato-dark-p3-9);--colors-tomato-p3-10: var(--colors-tomato-dark-p3-10);--colors-tomato-p3-11: var(--colors-tomato-dark-p3-11);--colors-tomato-p3-12: var(--colors-tomato-dark-p3-12);--colors-tomato-p3-a-1: var(--colors-tomato-dark-p3-a-1);--colors-tomato-p3-a-2: var(--colors-tomato-dark-p3-a-2);--colors-tomato-p3-a-3: var(--colors-tomato-dark-p3-a-3);--colors-tomato-p3-a-4: var(--colors-tomato-dark-p3-a-4);--colors-tomato-p3-a-5: var(--colors-tomato-dark-p3-a-5);--colors-tomato-p3-a-6: var(--colors-tomato-dark-p3-a-6);--colors-tomato-p3-a-7: var(--colors-tomato-dark-p3-a-7);--colors-tomato-p3-a-8: var(--colors-tomato-dark-p3-a-8);--colors-tomato-p3-a-9: var(--colors-tomato-dark-p3-a-9);--colors-tomato-p3-a-10: var(--colors-tomato-dark-p3-a-10);--colors-tomato-p3-a-11: var(--colors-tomato-dark-p3-a-11);--colors-tomato-p3-a-12: var(--colors-tomato-dark-p3-a-12);--colors-violet-1: var(--colors-violet-dark-1);--colors-violet-2: var(--colors-violet-dark-2);--colors-violet-3: var(--colors-violet-dark-3);--colors-violet-4: var(--colors-violet-dark-4);--colors-violet-5: var(--colors-violet-dark-5);--colors-violet-6: var(--colors-violet-dark-6);--colors-violet-7: var(--colors-violet-dark-7);--colors-violet-8: var(--colors-violet-dark-8);--colors-violet-9: var(--colors-violet-dark-9);--colors-violet-10: var(--colors-violet-dark-10);--colors-violet-11: var(--colors-violet-dark-11);--colors-violet-12: var(--colors-violet-dark-12);--colors-violet-a-1: var(--colors-violet-dark-a-1);--colors-violet-a-2: var(--colors-violet-dark-a-2);--colors-violet-a-3: var(--colors-violet-dark-a-3);--colors-violet-a-4: var(--colors-violet-dark-a-4);--colors-violet-a-5: var(--colors-violet-dark-a-5);--colors-violet-a-6: var(--colors-violet-dark-a-6);--colors-violet-a-7: var(--colors-violet-dark-a-7);--colors-violet-a-8: var(--colors-violet-dark-a-8);--colors-violet-a-9: var(--colors-violet-dark-a-9);--colors-violet-a-10: var(--colors-violet-dark-a-10);--colors-violet-a-11: var(--colors-violet-dark-a-11);--colors-violet-a-12: var(--colors-violet-dark-a-12);--colors-violet-p3-1: var(--colors-violet-dark-p3-1);--colors-violet-p3-2: var(--colors-violet-dark-p3-2);--colors-violet-p3-3: var(--colors-violet-dark-p3-3);--colors-violet-p3-4: var(--colors-violet-dark-p3-4);--colors-violet-p3-5: var(--colors-violet-dark-p3-5);--colors-violet-p3-6: var(--colors-violet-dark-p3-6);--colors-violet-p3-7: var(--colors-violet-dark-p3-7);--colors-violet-p3-8: var(--colors-violet-dark-p3-8);--colors-violet-p3-9: var(--colors-violet-dark-p3-9);--colors-violet-p3-10: var(--colors-violet-dark-p3-10);--colors-violet-p3-11: var(--colors-violet-dark-p3-11);--colors-violet-p3-12: var(--colors-violet-dark-p3-12);--colors-violet-p3-a-1: var(--colors-violet-dark-p3-a-1);--colors-violet-p3-a-2: var(--colors-violet-dark-p3-a-2);--colors-violet-p3-a-3: var(--colors-violet-dark-p3-a-3);--colors-violet-p3-a-4: var(--colors-violet-dark-p3-a-4);--colors-violet-p3-a-5: var(--colors-violet-dark-p3-a-5);--colors-violet-p3-a-6: var(--colors-violet-dark-p3-a-6);--colors-violet-p3-a-7: var(--colors-violet-dark-p3-a-7);--colors-violet-p3-a-8: var(--colors-violet-dark-p3-a-8);--colors-violet-p3-a-9: var(--colors-violet-dark-p3-a-9);--colors-violet-p3-a-10: var(--colors-violet-dark-p3-a-10);--colors-violet-p3-a-11: var(--colors-violet-dark-p3-a-11);--colors-violet-p3-a-12: var(--colors-violet-dark-p3-a-12);--colors-yellow-1: var(--colors-yellow-dark-1);--colors-yellow-2: var(--colors-yellow-dark-2);--colors-yellow-3: var(--colors-yellow-dark-3);--colors-yellow-4: var(--colors-yellow-dark-4);--colors-yellow-5: var(--colors-yellow-dark-5);--colors-yellow-6: var(--colors-yellow-dark-6);--colors-yellow-7: var(--colors-yellow-dark-7);--colors-yellow-8: var(--colors-yellow-dark-8);--colors-yellow-9: var(--colors-yellow-dark-9);--colors-yellow-10: var(--colors-yellow-dark-10);--colors-yellow-11: var(--colors-yellow-dark-11);--colors-yellow-12: var(--colors-yellow-dark-12);--colors-yellow-a-1: var(--colors-yellow-dark-a-1);--colors-yellow-a-2: var(--colors-yellow-dark-a-2);--colors-yellow-a-3: var(--colors-yellow-dark-a-3);--colors-yellow-a-4: var(--colors-yellow-dark-a-4);--colors-yellow-a-5: var(--colors-yellow-dark-a-5);--colors-yellow-a-6: var(--colors-yellow-dark-a-6);--colors-yellow-a-7: var(--colors-yellow-dark-a-7);--colors-yellow-a-8: var(--colors-yellow-dark-a-8);--colors-yellow-a-9: var(--colors-yellow-dark-a-9);--colors-yellow-a-10: var(--colors-yellow-dark-a-10);--colors-yellow-a-11: var(--colors-yellow-dark-a-11);--colors-yellow-a-12: var(--colors-yellow-dark-a-12);--colors-yellow-p3-1: var(--colors-yellow-dark-p3-1);--colors-yellow-p3-2: var(--colors-yellow-dark-p3-2);--colors-yellow-p3-3: var(--colors-yellow-dark-p3-3);--colors-yellow-p3-4: var(--colors-yellow-dark-p3-4);--colors-yellow-p3-5: var(--colors-yellow-dark-p3-5);--colors-yellow-p3-6: var(--colors-yellow-dark-p3-6);--colors-yellow-p3-7: var(--colors-yellow-dark-p3-7);--colors-yellow-p3-8: var(--colors-yellow-dark-p3-8);--colors-yellow-p3-9: var(--colors-yellow-dark-p3-9);--colors-yellow-p3-10: var(--colors-yellow-dark-p3-10);--colors-yellow-p3-11: var(--colors-yellow-dark-p3-11);--colors-yellow-p3-12: var(--colors-yellow-dark-p3-12);--colors-yellow-p3-a-1: var(--colors-yellow-dark-p3-a-1);--colors-yellow-p3-a-2: var(--colors-yellow-dark-p3-a-2);--colors-yellow-p3-a-3: var(--colors-yellow-dark-p3-a-3);--colors-yellow-p3-a-4: var(--colors-yellow-dark-p3-a-4);--colors-yellow-p3-a-5: var(--colors-yellow-dark-p3-a-5);--colors-yellow-p3-a-6: var(--colors-yellow-dark-p3-a-6);--colors-yellow-p3-a-7: var(--colors-yellow-dark-p3-a-7);--colors-yellow-p3-a-8: var(--colors-yellow-dark-p3-a-8);--colors-yellow-p3-a-9: var(--colors-yellow-dark-p3-a-9);--colors-yellow-p3-a-10: var(--colors-yellow-dark-p3-a-10);--colors-yellow-p3-a-11: var(--colors-yellow-dark-p3-a-11);--colors-yellow-p3-a-12: var(--colors-yellow-dark-p3-a-12);--colors-likec4-background-pattern: color-mix(in oklab, var(--mantine-color-dark-4) 70%, transparent 30%);--colors-likec4-mix-color: white;--colors-likec4-panel-bg: var(--mantine-color-dark-6);--colors-likec4-panel-action-bg: color-mix(in oklab, var(--mantine-color-dark-7) 70%, transparent 30%);--colors-likec4-panel-action-bg-hover: var(--mantine-color-dark-8);--colors-likec4-panel-action-warning-hover: var(--mantine-color-orange-5);--colors-likec4-panel-action-warning-bg: color-mix(in oklab, var(--mantine-color-orange-9) 10%, transparent 90%);--colors-likec4-panel-action-warning-bg-hover: color-mix(in oklab, var(--mantine-color-orange-9) 20%, transparent 80%);--colors-likec4-dropdown-bg: var(--mantine-color-dark-6);--colors-likec4-compare-manual: var(--mantine-color-orange-6);--colors-likec4-compare-manual-outline: var(--mantine-color-orange-6) }[data-mantine-color-scheme=light]{--colors-likec4-background-pattern: var(--mantine-color-gray-4);--colors-likec4-mix-color: black;--colors-likec4-panel-border: color-mix(in oklab, var(--mantine-color-default-border) 30%, transparent 70%);--colors-likec4-overlay-backdrop: rgb(15 15 15);--colors-likec4-compare-manual: var(--mantine-color-orange-8);--colors-likec4-compare-manual-outline: var(--mantine-color-orange-8) }@keyframes indicatorOpacity{0%{opacity:.9;stroke-opacity:.8}to{opacity:.6;stroke-opacity:.4}}@keyframes xyedgeAnimated{0%{stroke-dashoffset:36}to{stroke-dashoffset:0}}}@layer recipes{@layer _base{.likec4-overlay{--_blur: 0px;--_level: 0;--_offset: 0px;--_inset: calc((1 + var(--_level) * .75) * var(--_offset));--_opacity: 0%;--_border-radius: 0px;margin:var(--spacing-0);background:var(--colors-likec4-overlay-border);border:var(--borders-transparent);inset:var(--spacing-0);padding:var(--spacing-0);outline:var(--borders-none);border-radius:var(--_border-radius);box-sizing:border-box;position:fixed;box-shadow:var(--shadows-xl);width:100vw;height:100vh;max-width:100vw;max-height:100vh}.likec4-overlay::backdrop{cursor:zoom-out}.likec4-overlay .likec4-overlay-body{border:var(--borders-transparent);background:var(--colors-likec4-overlay-body);overflow:hidden;position:relative;container-name:likec4-dialog;container-type:size;width:var(--sizes-100\\%);height:var(--sizes-100\\%)}.likec4-markdown-block{--text-fz: 1rem;--text-fz-sm: calc(var(--text-fz) * var(--mantine-scale, 1) / 1.125);--text-fz-md: calc(var(--text-fz) * var(--mantine-scale, 1));--typography-spacing: calc(.75 * var(--text-fz-md));--text-fw-headings: 600;font-size:var(--text-fz-md);line-height:var(--mantine-line-height)}[data-mantine-color-scheme=light] .likec4-markdown-block{--code-background: var(--mantine-color-gray-2);--code-color: var(--mantine-color-black)}[data-mantine-color-scheme=dark] .likec4-markdown-block{--code-background: var(--mantine-color-dark-8);--code-color: var(--mantine-color-white)}.likec4-markdown-block :where(hr){border:var(--borders-none);border-bottom:1px solid;margin-top:calc(var(--typography-spacing) / 2);margin-bottom:calc(var(--typography-spacing) / 2)}[data-mantine-color-scheme=light] .likec4-markdown-block :where(hr){border-color:var(--colors-mantine-colors-gray\\[3\\])}[data-mantine-color-scheme=dark] .likec4-markdown-block :where(hr){border-color:var(--colors-mantine-colors-dark\\[3\\])}.likec4-markdown-block :where(pre){margin:var(--spacing-0);padding-inline:var(--spacing-3);padding-block:var(--spacing-2);border-radius:var(--radii-sm);line-height:var(--mantine-line-height-xs);font-family:var(--mantine-font-family-monospace);font-size:var(--text-fz-sm);background-color:var(--code-background);color:var(--code-color);margin-top:var(--typography-spacing);margin-bottom:var(--typography-spacing);overflow-x:auto}.likec4-markdown-block :where(code){padding:1px 4px;border-radius:var(--radii-xs);line-height:var(--line-heights-1);font-family:var(--mantine-font-family-monospace);font-size:var(--text-fz-sm);background-color:var(--code-background);color:var(--code-color)}.likec4-markdown-block :where(pre code){padding:var(--spacing-0);border:0;border-radius:var(--radii-0);background-color:var(--colors-transparent);color:inherit}.likec4-markdown-block :where(blockquote){margin:var(--spacing-0);padding:var(--spacing-xs);border-radius:var(--mantine-radius-sm);font-size:var(--text-fz-md)}[data-mantine-color-scheme=light] .likec4-markdown-block :where(blockquote){background-color:var(--mantine-color-gray-1)}[data-mantine-color-scheme=dark] .likec4-markdown-block :where(blockquote){background-color:var(--mantine-color-dark-5)}.likec4-markdown-block :where(blockquote):not(:first-child){margin-top:var(--typography-spacing)}.likec4-markdown-block :where(h1,h2,h3,h4,h5,h6){text-wrap:var(--mantine-heading-text-wrap);line-height:1.5;font-family:var(--mantine-font-family-headings);margin-bottom:var(--typography-spacing)}.likec4-markdown-block :where(a){text-decoration:none;font-size:var(--text-fz-md);color:var(--mantine-color-anchor);font-weight:500}.likec4-markdown-block :where(a):is(:hover,[data-hover]){text-decoration:underline}.likec4-markdown-block :is(h1){font-size:calc(1.476 * var(--text-fz-md));font-weight:var(--text-fw-headings)}.likec4-markdown-block :is(h2){font-size:calc(1.383 * var(--text-fz-md));font-weight:var(--text-fw-headings)}.likec4-markdown-block :is(h3){font-size:calc(1.296 * var(--text-fz-md));font-weight:var(--text-fw-headings)}.likec4-markdown-block :is(h4){font-size:calc(1.215 * var(--text-fz-md));font-weight:var(--text-fw-headings)}.likec4-markdown-block :is(h5){font-size:calc(1.138 * var(--text-fz-md));font-weight:var(--text-fw-headings)}.likec4-markdown-block :is(h6){font-size:calc(1.067 * var(--text-fz-md));font-weight:var(--text-fw-headings)}.likec4-markdown-block :where(p){font-size:var(--text-fz-md);margin-top:var(--spacing-0);margin-bottom:var(--typography-spacing)}.likec4-markdown-block :where(strong){font-weight:500}.likec4-markdown-block :where(mark){font-size:var(--text-fz-md)}[data-mantine-color-scheme=light] .likec4-markdown-block :where(mark){background-color:var(--colors-mantine-colors-yellow\\[2\\]);color:inherit}[data-mantine-color-scheme=dark] .likec4-markdown-block :where(mark){background-color:var(--colors-mantine-colors-yellow\\[5\\]);color:var(--mantine-color-black)}.likec4-markdown-block :where(ul,ol):not([data-type=taskList]){padding-inline-start:var(--typography-spacing);list-style-position:inside;margin-bottom:var(--typography-spacing)}.likec4-markdown-block :where(table){border-collapse:collapse;caption-side:bottom;width:var(--sizes-100\\%);margin-bottom:var(--typography-spacing)}[data-mantine-color-scheme=light] .likec4-markdown-block :where(table){--table-border-color: var(--mantine-color-gray-3)}[data-mantine-color-scheme=dark] .likec4-markdown-block :where(table){--table-border-color: var(--mantine-color-dark-4)}.likec4-markdown-block :where(table) :where(th){padding:var(--typography-spacing);text-align:left;font-weight:700;font-size:var(--text-fz-sm)}.likec4-markdown-block :where(table) :where(td){padding:var(--typography-spacing);border-bottom:1px solid;border-color:var(--table-border-color);font-size:var(--text-fz-sm)}.likec4-markdown-block :where(table) :where(thead th){border-bottom:1px solid;border-color:var(--table-border-color)}.likec4-markdown-block :where(table) :where(tfoot th){border-top:1px solid;border-color:var(--table-border-color)}.likec4-markdown-block :where(table) :where(tr:last-of-type td){border-bottom:0}.likec4-markdown-block :where(table) :where(caption){font-size:var(--text-fz-sm);color:var(--mantine-color-dimmed);margin-top:calc(.5 * var(--typography-spacing) + 1px)}.likec4-markdown-block :first-child{margin-top:var(--spacing-0)}.likec4-markdown-block :last-child{margin-bottom:var(--spacing-0)}.likec4-markdown-block :is(h1,h2,h3,h4,h5,h6):not(:first-child){margin-top:var(--typography-spacing)}.likec4-markdown-block :where(img){max-width:var(--sizes-100\\%);margin-bottom:var(--typography-spacing)}.likec4-navigation-panel-icon{color:var(--colors-likec4-panel-action)}.likec4-navigation-panel-icon:is(:disabled,[disabled],[data-disabled],[aria-disabled=true]){color:var(--colors-likec4-panel-action-disabled);opacity:.5}.likec4-navigation-panel-icon:not(:is(:disabled,[disabled],[data-disabled])):is(:hover,[data-hover]){color:var(--colors-likec4-panel-action-hover)}.action-btn{--actionbtn-color: var(--likec4-palette-loContrast);--actionbtn-color-hovered: var(--likec4-palette-loContrast);--actionbtn-color-hovered-btn: var(--likec4-palette-hiContrast);--actionbtn-bg-idle: color-mix(in srgb , var(--likec4-palette-fill), transparent 99%);--actionbtn-bg-hovered: color-mix(in srgb , var(--likec4-palette-fill) 65%, var(--likec4-palette-stroke));--actionbtn-bg-hovered-btn: color-mix(in srgb , var(--likec4-palette-fill) 50%, var(--likec4-palette-stroke));--ai-bg: var(--actionbtn-bg-idle);background:var(--ai-bg);pointer-events:all;cursor:pointer;color:var(--actionbtn-color);opacity:.75}:where(.react-flow__node,.react-flow__edge):has([data-likec4-hovered=true]) .action-btn{--ai-bg: var(--actionbtn-bg-hovered);opacity:1;color:var(--actionbtn-color-hovered)}.likec4-root:is([data-likec4-reduced-graphics][data-likec4-diagram-panning=true]) .action-btn{display:none}:where([data-likec4-zoom-small=true]) .action-btn{display:none}.action-btn *{pointer-events:none}.action-btn:is(:hover,[data-hover]){--ai-bg: var(--actionbtn-bg-hovered-btn);opacity:1;color:var(--actionbtn-color-hovered-btn)}.likec4-compound-node{--_border-width: 3px;--_border-radius: 6px;--_compound-transparency: 100%;--_border-transparency: 100%;--_indicator-spacing: calc(var(--_border-width) + 2px);--_compound-color: var(--likec4-palette-loContrast);padding:var(--spacing-0);margin:var(--spacing-0);border-style:solid;border-width:var(--_border-width);border-radius:var(--_border-radius);position:relative;pointer-events:none;background-clip:padding-box;-webkit-background-clip:padding-box;box-sizing:border-box;color:var(--_compound-color);width:var(--sizes-100\\%);height:var(--sizes-100\\%)}[data-mantine-color-scheme=light] .likec4-compound-node{--likec4-palette-outline: color-mix(in srgb, var(--likec4-palette-stroke) 80%, var(--likec4-palette-hiContrast))}[data-mantine-color-scheme=dark] .likec4-compound-node{--likec4-palette-outline: color-mix(in srgb, var(--likec4-palette-stroke) 60%, var(--likec4-palette-hiContrast))}.likec4-compound-node:after{border-style:solid;border-width:calc(var(--_border-width) + 1px);border-radius:calc(var(--_border-radius) + 4px);border-color:var(--likec4-palette-outline);position:absolute;content:" ";pointer-events:none;display:none;animation-play-state:paused;top:calc(-1 * var(--_indicator-spacing));left:calc(-1 * var(--_indicator-spacing));width:calc(100% + 2 * var(--_indicator-spacing));height:calc(100% + 2 * var(--_indicator-spacing))}:where(.react-flow__node,.react-flow__edge):is(:focus-visible,:focus,:focus-within) .likec4-compound-node:after{display:block;animation-play-state:running}:where(.react-flow__node,.react-flow__edge):is(.selected) .likec4-compound-node:after{display:block;animation-play-state:running}.likec4-root:is([data-likec4-diagram-panning=true]) .likec4-compound-node:after{animation-play-state:paused}.likec4-compound-node:has(.likec4-compound-navigation) .likec4-compound-title-container{padding-left:24px}.likec4-compound-node .action-btn{--actionbtn-color: var(--_compound-color);--actionbtn-color-hovered: var(--_compound-color);--actionbtn-color-hovered-btn: color-mix(in srgb, var(--_compound-color) 80%, #fff);opacity:.6}.likec4-root:not([data-likec4-reduced-graphics]) .likec4-compound-node .action-btn{transition:all var(--durations-fast) var(--easings-in-out)}:where(.react-flow__node,.react-flow__edge):has([data-likec4-hovered=true]) .likec4-compound-node .action-btn{opacity:.75}:where(.react-flow__node,.react-flow__edge):is(.selected) .likec4-compound-node .action-btn{opacity:.75}.likec4-compound-node .action-btn:is(:hover,[data-hover]){opacity:1}.likec4-compound-node .likec4-compound-title-container{gap:var(--spacing-1\\.5);position:absolute;display:flex;align-items:center;left:var(--spacing-2\\.5);top:var(--spacing-0\\.5);right:30px;width:auto;min-height:30px}:where(.react-flow__node.draggable) .likec4-compound-node .likec4-compound-title-container{pointer-events:all;cursor:grab}.likec4-compound-node .likec4-compound-title{flex:1 1 0%;font-family:var(--fonts-likec4-compound);font-weight:600;font-size:15px;text-transform:uppercase;letter-spacing:.25px;line-height:var(--line-heights-1);color:var(--_compound-color)}.likec4-compound-node .likec4-compound-icon{flex:0 0 20px;display:flex;align-items:center;justify-content:center;mix-blend-mode:hard-light;height:20px;width:20px}.likec4-root:is([data-likec4-reduced-graphics][data-likec4-diagram-panning=true]) .likec4-compound-node .likec4-compound-icon{mix-blend-mode:normal}.likec4-compound-node .likec4-compound-icon svg,.likec4-compound-node .likec4-compound-icon img{pointer-events:none;filter:drop-shadow(0 0 3px rgb(0 0 0 / 12%)) drop-shadow(0 1px 8px rgb(0 0 0 / 8%)) drop-shadow(1px 1px 16px rgb(0 0 0 / 3%));width:var(--sizes-100\\%);height:auto;max-height:var(--sizes-100\\%)}.likec4-root:is([data-likec4-reduced-graphics][data-likec4-diagram-panning=true]) .likec4-compound-node .likec4-compound-icon svg,.likec4-root:is([data-likec4-reduced-graphics][data-likec4-diagram-panning=true]) .likec4-compound-node .likec4-compound-icon img{filter:none}.likec4-compound-node .likec4-compound-icon img{object-fit:contain}.likec4-compound-node .likec4-compound-navigation{position:absolute;top:var(--spacing-1);left:var(--spacing-0\\.5)}:where([data-likec4-zoom-small=true]) .likec4-compound-node .likec4-compound-navigation{display:none}.likec4-compound-node .likec4-compound-details{position:absolute;top:var(--spacing-0\\.5);right:var(--spacing-0\\.5)}:where([data-likec4-zoom-small=true]) .likec4-compound-node .likec4-compound-details{display:none}.likec4-edge-action-btn{--ai-bg: transparent;--ai-hover: color-mix(in srgb , var(--xy-edge-label-background-color), var(--colors-likec4-mix-color) 10%);--ai-size: var(--ai-size-sm);--ai-radius: var(--radii-sm);transition:all var(--durations-fast) var(--easings-in-out);pointer-events:all;color:var(--xy-edge-label-color);cursor:pointer;opacity:.75;translate:var(--translate-x) var(--translate-y)}:where(.react-flow__node,.react-flow__edge):has([data-likec4-hovered=true]) .likec4-edge-action-btn{--ai-bg: var(--xy-edge-label-background-color);opacity:1}.likec4-edge-action-btn .tabler-icon{stroke-width:2;width:80%;height:80%}.likec4-edge-action-btn:is(:hover,[data-hover]){--translate-y: 2px;scale:1.15}.likec4-edge-action-btn:is(:active,[data-active]){--translate-y: -1px;scale:.9}.likec4-element-node-data{margin:0 auto;flex:1 1 0%;overflow:hidden;gap:var(--spacing-3);position:relative;display:flex;align-items:center;justify-content:center;flex-direction:row;pointer-events:none;text-align:center;height:fit-content;width:fit-content;max-height:var(--sizes-100\\%);max-width:var(--sizes-100\\%);padding-top:var(--likec4-spacing);padding-bottom:var(--likec4-spacing);padding-left:calc(var(--likec4-spacing) + 8px);padding-right:calc(var(--likec4-spacing) + 8px)}:where([data-likec4-shape-size=xs]) .likec4-element-node-data{--likec4-icon-size: 24px}:where([data-likec4-shape-size=sm]) .likec4-element-node-data{--likec4-icon-size: 36px}:where([data-likec4-shape-size=md]) .likec4-element-node-data{--likec4-icon-size: 60px}:where([data-likec4-shape-size=lg]) .likec4-element-node-data{--likec4-icon-size: 82px;gap:var(--spacing-4)}:where([data-likec4-shape-size=xl]) .likec4-element-node-data{--likec4-icon-size: 90px;gap:var(--spacing-4)}.likec4-element-node-data:has([data-likec4-icon]){gap:var(--spacing-4);text-align:left}.likec4-element-node-data:has([data-likec4-icon]) .likec4-element-node-content{align-items:flex-start;min-width:calc(50% + var(--likec4-icon-size))}:where([data-likec4-shape=queue]) .likec4-element-node-data{padding-left:46px;padding-right:16px}:where([data-likec4-shape=mobile]) .likec4-element-node-data{padding-left:46px;padding-right:16px}:where([data-likec4-shape=cylinder]) .likec4-element-node-data{padding-top:30px}:where([data-likec4-shape=storage]) .likec4-element-node-data{padding-top:30px}:where([data-likec4-shape=browser]) .likec4-element-node-data{padding-top:32px;padding-bottom:28px}.likec4-element-node-data [data-likec4-icon]{flex:0 0 var(--likec4-icon-size, 48px);display:flex;align-self:flex-start;align-items:center;justify-content:center;mix-blend-mode:hard-light;height:var(--likec4-icon-size, 48px);width:var(--likec4-icon-size, 48px)}.likec4-root:is([data-likec4-reduced-graphics][data-likec4-diagram-panning=true]) .likec4-element-node-data [data-likec4-icon]{mix-blend-mode:normal}.likec4-element-node-data [data-likec4-icon] svg,.likec4-element-node-data [data-likec4-icon] img{pointer-events:none;filter:drop-shadow(0 0 3px rgb(0 0 0 / 12%));width:var(--sizes-100\\%);height:auto;max-height:var(--sizes-100\\%)}.likec4-root:is([data-likec4-reduced-graphics][data-likec4-diagram-panning=true]) .likec4-element-node-data [data-likec4-icon] svg,.likec4-root:is([data-likec4-reduced-graphics][data-likec4-diagram-panning=true]) .likec4-element-node-data [data-likec4-icon] img{filter:none}.likec4-element-node-data [data-likec4-icon] img{object-fit:contain}.likec4-element-node-data .likec4-element-node-content{flex:0 1 auto;overflow:hidden;gap:var(--spacing-2);display:flex;flex-direction:column;align-items:stretch;justify-content:center;flex-wrap:nowrap;height:fit-content;width:fit-content;max-height:var(--sizes-100\\%);max-width:var(--sizes-100\\%)}.likec4-element-node-data .likec4-element-node-content:has([data-likec4-node-description]):has([data-likec4-node-technology]){gap:var(--spacing-1\\.5)}.likec4-element-node-data [data-likec4-node-title]{flex:0 0 auto;font-family:var(--likec4-element-font, var(--fonts-likec4));font-weight:500;font-size:var(--likec4-text-size);line-height:1.15;text-wrap-style:balance;white-space:preserve-breaks;text-align:var(__text-align);color:var(--likec4-palette-hiContrast)}.likec4-element-node-data [data-likec4-node-description]{overflow:hidden;flex-grow:0;flex-shrink:1;--text-fz: calc(var(--likec4-text-size) * .74);font-family:var(--likec4-element-font, var(--fonts-likec4));font-weight:400;font-size:calc(var(--likec4-text-size) * .74);line-height:1.3;text-wrap-style:pretty;color:var(--likec4-palette-loContrast);text-align:var(__text-align);text-overflow:ellipsis}:where([data-likec4-shape-size=xs]) .likec4-element-node-data [data-likec4-node-description]{display:none}:where([data-likec4-zoom-small=true]) .likec4-element-node-data [data-likec4-node-description]{display:none}.likec4-element-node-data [data-likec4-node-description] a{pointer-events:all}.likec4-element-node-data [data-likec4-node-technology]{flex:0 0 auto;text-wrap:balance;--text-fz: calc(var(--likec4-text-size) * .74);font-family:var(--likec4-element-font, var(--fonts-likec4));font-weight:400;font-size:calc(var(--likec4-text-size) * .635);line-height:1.125;text-wrap-style:pretty;color:var(--likec4-palette-loContrast);text-align:var(__text-align);opacity:.92}:where(.react-flow__node,.react-flow__edge):has([data-likec4-hovered=true]) .likec4-element-node-data [data-likec4-node-technology]{opacity:1}:where([data-likec4-shape-size=xs]) .likec4-element-node-data [data-likec4-node-technology]{display:none}:where([data-likec4-shape-size=sm]) .likec4-element-node-data [data-likec4-node-technology]{display:none}:where([data-likec4-zoom-small=true]) .likec4-element-node-data [data-likec4-node-technology]{display:none}.likec4-element-shape{overflow:visible;position:absolute;pointer-events:none;top:var(--spacing-0);left:var(--spacing-0);width:var(--sizes-100\\%);height:var(--sizes-100\\%)}[data-mantine-color-scheme=light] .likec4-element-shape{--likec4-palette-outline: color-mix(in srgb, var(--likec4-palette-stroke) 60%, var(--likec4-palette-hiContrast))}[data-mantine-color-scheme=dark] .likec4-element-shape{--likec4-palette-outline: color-mix(in srgb, var(--likec4-palette-stroke) 30%, var(--likec4-palette-loContrast))}.likec4-element-shape .likec4-shape-outline{visibility:hidden;animation-play-state:paused;pointer-events:none}:where([data-likec4-zoom-small=true]) .likec4-element-shape .likec4-shape-outline{visibility:hidden}:where(.react-flow__node,.react-flow__edge):is(.selected) .likec4-element-shape .likec4-shape-outline{visibility:visible;animation-play-state:running}:where(.react-flow__node,.react-flow__edge):is(:focus-visible,:focus,:focus-within) .likec4-element-shape .likec4-shape-outline{visibility:visible;animation-play-state:running}.group:is(:focus-visible,[data-focus-visible]) .likec4-element-shape .likec4-shape-outline{visibility:visible;animation-play-state:running}.likec4-root:is([data-likec4-diagram-panning=true]) .likec4-element-shape .likec4-shape-outline{animation-play-state:paused}.likec4-tag{transition:all var(--durations-fast) var(--easings-in-out);gap:1px;padding-inline:var(--spacing-1);padding-block:var(--spacing-0);pointer-events:all;display:inline-flex;align-items:center;justify-content:center;font-size:var(--font-sizes-xs);cursor:default;font-family:var(--fonts-likec4);font-weight:700;border:var(--borders-none);border-radius:3px;color:var(--colors-likec4-tag-text);background-color:var(--colors-likec4-tag-bg)}.likec4-tag:is(:hover,[data-hover]){background-color:var(--colors-likec4-tag-bg-hover)}.likec4-tag{white-space:nowrap;min-width:40px;width:min-content}@media screen and (min-width:36rem){.likec4-element-node-data [data-likec4-icon] svg,.likec4-element-node-data [data-likec4-icon] img{filter:drop-shadow(0 1px 8px rgb(0 0 0 / 8%))}}@media screen and (min-width:48rem){.likec4-element-node-data [data-likec4-icon] svg,.likec4-element-node-data [data-likec4-icon] img{filter:drop-shadow(1px 1px 16px rgb(0 0 0 / 3%))}}}.likec4-overlay--withBackdrop_true::backdrop{background:color-mix(in srgb,var(--colors-likec4-overlay-backdrop) var(--_opacity),transparent);backdrop-filter:blur(var(--_blur));-webkit-backdrop-filter:blur(var(--_blur))}.likec4-overlay--fullscreen_true{inset:var(--spacing-0);padding:var(--spacing-0)}.likec4-overlay--withBackdrop_false::backdrop{display:none}.likec4-markdown-block--value_plaintext :where(p){white-space:preserve-breaks}.likec4-markdown-block--uselikec4palette_true{--code-background: color-mix(in srgb , var(--likec4-palette-stroke) 70%, transparent);--code-color: var(--likec4-palette-loContrast);--typography-spacing: calc(.5 * var(--text-fz-md))}.likec4-markdown-block--uselikec4palette_true :where(blockquote){padding:var(--spacing-xxs);--mix-backgroundColor: color-mix(in srgb, var(--likec4-palette-stroke) 65%, transparent);background-color:var(--mix-backgroundColor, var(--likec4-palette-stroke))}.likec4-markdown-block--uselikec4palette_true :where(hr){--mix-borderColor: color-mix(in srgb, var(--likec4-palette-stroke) 85%, transparent);border-color:var(--mix-borderColor, var(--likec4-palette-stroke))}.likec4-markdown-block--uselikec4palette_true :where(a){--mix-color: color-mix(in srgb, var(--likec4-palette-fill) 45%, transparent);color:var(--mix-color, var(--likec4-palette-fill));mix-blend-mode:difference}.likec4-markdown-block--uselikec4palette_true :where(strong){color:color-mix(in srgb,var(--likec4-palette-hiContrast) 50%,var(--likec4-palette-loContrast))}.likec4-navigation-panel-icon--variant_default{background-color:var(--colors-transparent)}.likec4-navigation-panel-icon--variant_default:not(:is(:disabled,[disabled],[data-disabled])):is(:hover,[data-hover]){background-color:var(--colors-likec4-panel-action-bg-hover)}.likec4-navigation-panel-icon--variant_filled{background-color:var(--colors-likec4-panel-action-bg)}.likec4-navigation-panel-icon--variant_filled:not(:is(:disabled,[disabled],[data-disabled])):is(:hover,[data-hover]){background-color:var(--colors-likec4-panel-action-bg-hover)}.likec4-navigation-panel-icon--type_warning{color:var(--colors-likec4-panel-action-warning)}.likec4-navigation-panel-icon--type_warning:is(:hover,[data-hover]){color:var(--colors-likec4-panel-action-warning-hover)}.action-btn--size_md{--ai-size: var(--ai-size-md)}.action-btn--radius_md{--ai-radius: var(--mantine-radius-md)}.action-btn--variant_transparent{--actionbtn-bg-hovered: var(--actionbtn-bg-idle)}.action-btn--variant_filled{box-shadow:1px 1px 3px 0 transparent}:where(.react-flow__node,.react-flow__edge):has([data-likec4-hovered=true]) .action-btn--variant_filled{box-shadow:1px 1px 3px #0003}.likec4-root:is([data-likec4-reduced-graphics]) .action-btn--variant_filled{box-shadow:var(--shadows-none)}.action-btn--size_sm{--ai-size: var(--ai-size-sm)}.action-btn--radius_sm{--ai-radius: var(--mantine-radius-sm)}.likec4-compound-node--borderStyle_dashed{border-style:dashed}.likec4-compound-node--borderStyle_none{--_indicator-spacing: calc(var(--_border-width) * 2);border-color:var(--colors-transparent)!important;background-clip:border-box!important;-webkit-background-clip:border-box!important}.likec4-compound-node--isTransparent_false{border-color:var(--likec4-palette-stroke);background-color:var(--likec4-palette-fill)}.likec4-root:not([data-likec4-reduced-graphics]) .likec4-compound-node--isTransparent_false{box-shadow:0 4px 10px .5px #0000001a,0 2px 2px -1px #0006}:where(.react-flow__node,.react-flow__edge):is(.selected) .likec4-compound-node--isTransparent_false{box-shadow:var(--shadows-none)}.likec4-root:is([data-likec4-diagram-panning=true]) .likec4-compound-node--isTransparent_false{box-shadow:var(--shadows-none)!important}.likec4-compound-node--isTransparent_true{border-color:color-mix(in srgb,var(--likec4-palette-stroke) var(--_border-transparency),transparent);background-color:color-mix(in srgb,var(--likec4-palette-fill) var(--_compound-transparency),transparent)}.likec4-compound-node--inverseColor_true{--_compound-color: var(--likec4-palette-stroke)}[data-mantine-color-scheme=dark] .likec4-compound-node--inverseColor_true{--_compound-color: color-mix(in srgb, var(--likec4-palette-loContrast) 60%, var(--likec4-palette-fill))}[data-mantine-color-scheme=dark] .likec4-compound-node--inverseColor_true .action-btn{--actionbtn-color-hovered-btn: var(--likec4-palette-loContrast)}[data-mantine-color-scheme=light] .likec4-compound-node--inverseColor_true .action-btn{--actionbtn-color: var(--likec4-palette-stroke);--actionbtn-color-hovered: var(--likec4-palette-stroke);--actionbtn-color-hovered-btn: var(--likec4-palette-hiContrast);--actionbtn-bg-hovered: var(--likec4-palette-fill)/50;--actionbtn-bg-hovered-btn: var(--likec4-palette-fill)}.likec4-compound-node--borderStyle_solid{border-style:solid}.likec4-compound-node--borderStyle_dotted{border-style:dotted}.likec4-element-shape--shapetype_html{--likec4-outline-size: 4px;border-radius:6px;transition:background-color .12s linear,box-shadow .13s var(--easings-in-out);background-color:var(--likec4-palette-fill);box-shadow:0 2px 1px #00000036,0 1px 1px color-mix(in srgb,var(--likec4-palette-stroke) 40%,transparent),0 5px 3px #0000001a;transition-delay:0ms}.likec4-root:is([data-likec4-reduced-graphics][data-likec4-diagram-panning=true]) .likec4-element-shape--shapetype_html{transition:none}:where(.react-flow__node,.react-flow__edge):is(.selected) .likec4-element-shape--shapetype_html{box-shadow:var(--shadows-none)}:where([data-likec4-zoom-small=true]) .likec4-element-shape--shapetype_html{box-shadow:var(--shadows-none)}.likec4-root:is([data-likec4-diagram-panning=true]) .likec4-element-shape--shapetype_html{box-shadow:var(--shadows-none)}[data-mantine-color-scheme=light] :where(.react-flow__node,.react-flow__edge):has([data-likec4-hovered=true]) .likec4-element-shape--shapetype_html{box-shadow:#26394df2 0 20px 30px -10px}[data-mantine-color-scheme=dark] :where(.react-flow__node,.react-flow__edge):has([data-likec4-hovered=true]) .likec4-element-shape--shapetype_html{box-shadow:#0a0b10e5 0 20px 30px -10px}.likec4-element-shape--shapetype_html .likec4-shape-multiple{border-radius:6px;transition:all var(--durations-fast) var(--easings-in-out);position:absolute;content:" ";background-color:var(--likec4-palette-fill);z-index:var(--z-index--1);filter:brightness(.5)!important;visibility:visible;top:16px;left:16px;width:calc(100% - 6px);height:calc(100% - 6px)}:where([data-likec4-zoom-small=true]) .likec4-element-shape--shapetype_html .likec4-shape-multiple{visibility:hidden}:where(.react-flow__node,.react-flow__edge):is(.selected) .likec4-element-shape--shapetype_html .likec4-shape-multiple{visibility:hidden}:where(.react-flow__node,.react-flow__edge):is(:focus-visible,:focus,:focus-within) .likec4-element-shape--shapetype_html .likec4-shape-multiple{visibility:hidden}.likec4-root:is([data-likec4-reduced-graphics][data-likec4-diagram-panning=true]) .likec4-element-shape--shapetype_html .likec4-shape-multiple{visibility:hidden}:where(.react-flow__node,.react-flow__edge):has([data-likec4-hovered=true]) .likec4-element-shape--shapetype_html .likec4-shape-multiple{transform:translate(-14px,-14px)}.likec4-element-shape--shapetype_html .likec4-shape-outline{border-style:solid;border-width:var(--likec4-outline-size);border-radius:10px;border-color:var(--likec4-palette-outline);position:absolute;content:" ";animation-duration:1s;animation-iteration-count:infinite;animation-direction:alternate;animation-name:indicatorOpacity;top:calc(-1 * var(--likec4-outline-size));left:calc(-1 * var(--likec4-outline-size));width:calc(100% + 2 * var(--likec4-outline-size));height:calc(100% + 2 * var(--likec4-outline-size))}.likec4-element-shape--shapetype_svg{transition:fill .12s linear,filter .13s var(--easings-in-out);fill:var(--likec4-palette-fill);stroke:var(--likec4-palette-stroke);transition-delay:0ms;filter:drop-shadow(0 2px 1px rgba(0,0,0,.21)) drop-shadow(0 1px 1px color-mix(in srgb,var(--likec4-palette-stroke) 40%,transparent)) drop-shadow(0 5px 3px rgba(0,0,0,.1))}:where(.react-flow__node,.react-flow__edge):has([data-likec4-hovered=true]) .likec4-element-shape--shapetype_svg{filter:drop-shadow(0 2px 1px rgba(0,0,0,.12)) drop-shadow(0px 4px 2px rgba(0,0,0,.12)) drop-shadow(0px 8px 4px rgba(0,0,0,.12)) drop-shadow(0px 16px 8px rgba(0,0,0,.1)) drop-shadow(0px 32px 16px rgba(0,0,0,.09))}:where(.react-flow__node,.react-flow__edge):is(.selected) .likec4-element-shape--shapetype_svg{filter:none}:where([data-likec4-zoom-small=true]) .likec4-element-shape--shapetype_svg{filter:none}.likec4-root:is([data-likec4-diagram-panning=true]) .likec4-element-shape--shapetype_svg{filter:none}.likec4-element-shape--shapetype_svg [data-likec4-fill=fill]{fill:var(--likec4-palette-fill)}.likec4-element-shape--shapetype_svg [data-likec4-fill=stroke]{fill:var(--likec4-palette-stroke)}.likec4-element-shape--shapetype_svg [data-likec4-fill=mix-stroke]{fill:color-mix(in srgb,var(--likec4-palette-stroke) 90%,var(--likec4-palette-fill))}.likec4-element-shape--shapetype_svg:is([data-likec4-shape-multiple=true]){transition:all var(--durations-fast) var(--easings-in-out);transform-origin:50% 50%;transform:translate(14px,14px) perspective(200px) translateZ(-4px);filter:brightness(.5)!important;stroke:var(--colors-none)}:where([data-likec4-shape=queue]) .likec4-element-shape--shapetype_svg:is([data-likec4-shape-multiple=true]){transform-origin:75% 25%}:where([data-likec4-shape=cylinder]) .likec4-element-shape--shapetype_svg:is([data-likec4-shape-multiple=true]){transform-origin:50% 100%}:where([data-likec4-shape=storage]) .likec4-element-shape--shapetype_svg:is([data-likec4-shape-multiple=true]){transform-origin:50% 100%}:where(.react-flow__node,.react-flow__edge):has([data-likec4-hovered=true]) .likec4-element-shape--shapetype_svg:is([data-likec4-shape-multiple=true]){transform:translate(2px,2px) perspective(200px) translateZ(-4px)}:where([data-likec4-zoom-small=true]) .likec4-element-shape--shapetype_svg:is([data-likec4-shape-multiple=true]){display:none}.likec4-root:is([data-likec4-reduced-graphics][data-likec4-diagram-panning=true]) .likec4-element-shape--shapetype_svg:is([data-likec4-shape-multiple=true]){display:none}:where(.react-flow__node,.react-flow__edge):is(.selected) .likec4-element-shape--shapetype_svg:is([data-likec4-shape-multiple=true]){display:none}:where(.react-flow__node,.react-flow__edge):is(:focus-visible,:focus,:focus-within) .likec4-element-shape--shapetype_svg:is([data-likec4-shape-multiple=true]){display:none}.likec4-element-shape--shapetype_svg:is([data-likec4-shape-multiple=true]) [data-likec4-fill=mix-stroke]{fill:var(--likec4-palette-fill)}.likec4-element-shape--shapetype_svg .likec4-shape-outline{stroke:var(--likec4-palette-outline);fill:var(--colors-none);stroke-width:8;stroke-opacity:.8;animation-duration:1s;animation-iteration-count:infinite;animation-direction:alternate;animation-name:indicatorOpacity}.likec4-tag--autoTextColor_false>span{color:var(--colors-likec4-tag-text)}.likec4-tag--autoTextColor_false>span:first-child{opacity:.65}.likec4-tag--autoTextColor_true>span{background:inherit;color:var(--colors-transparent);filter:invert(1) grayscale(1) brightness(1.3) contrast(1000);background-clip:text;-webkit-background-clip:text;mix-blend-mode:plus-lighter}.hover\\:likec4-tag--autoTextColor_true:is(:hover,[data-hover])>span{background:inherit;color:var(--colors-transparent);filter:invert(1) grayscale(1) brightness(1.3) contrast(1000);background-clip:text;-webkit-background-clip:text;mix-blend-mode:plus-lighter}.hover\\:likec4-tag--autoTextColor_false:is(:hover,[data-hover])>span{color:var(--colors-likec4-tag-text)}.hover\\:likec4-tag--autoTextColor_false:is(:hover,[data-hover])>span:first-child{opacity:.65}@media screen and (min-width:48rem){.likec4-overlay--fullscreen_false{--_border-radius: 6px;--_offset: 1rem;inset:var(--_inset) var(--_inset) var(--_offset) var(--_inset);padding:var(--spacing-1\\.5);border-radius:calc(var(--_border-radius) - 2px);width:calc(100vw - 2 * var(--_inset));height:calc(100vh - var(--_offset) - var(--_inset))}}@media screen and (min-width:62rem){.likec4-overlay--fullscreen_false{--_offset: 1rem}}@media screen and (min-width:75rem){.likec4-overlay--fullscreen_false{--_offset: 2rem}}@media screen and (min-width:88rem){.likec4-overlay--fullscreen_false{--_offset: 4rem}}}@layer recipes.slots{@layer _base{.likec4-navlink__root{border-radius:var(--radii-sm);padding-inline:var(--spacing-xs);padding-block:var(--spacing-xxs)}.likec4-navlink__root:is(:hover,[data-hover]):not([data-active]){background-color:var(--colors-mantine-colors-gray\\[1\\])}[data-mantine-color-scheme=dark] .likec4-navlink__root:is(:hover,[data-hover]):not([data-active]){background-color:var(--colors-mantine-colors-dark\\[5\\])}.likec4-navlink__body{gap:var(--spacing-0\\.5);display:flex;flex-direction:column}.likec4-navlink__section:where([data-position=left]){margin-inline-end:var(--spacing-xxs)}.likec4-navlink__label{display:block;font-size:var(--font-sizes-sm);font-weight:500;line-height:1.2}.likec4-navlink__description{display:block;font-size:var(--font-sizes-xxs);line-height:1.2}.likec4-edge-label__root{background:var(--xy-edge-label-background-color);border:0px solid transparent;padding-block:var(--spacing-1);padding-inline:var(--spacing-1\\.5);gap:var(--spacing-0\\.5);border-radius:4px;font-family:var(--fonts-likec4-relation);display:flex;flex-direction:column;align-items:center;line-height:1.2;color:var(--xy-edge-label-color);width:max-content;max-width:var(--sizes-100\\%)}.likec4-edge-label__stepNumber{padding:var(--spacing-1);background:color-mix(in srgb,var(--likec4-palette-relation-label-bg),var(--colors-likec4-mix-color) 10%);flex:0 0 auto;align-self:stretch;font-weight:600;font-size:14px;text-align:center;font-variant-numeric:tabular-nums;min-width:22px;border-top-left-radius:4px;border-bottom-left-radius:4px}.likec4-edge-label__stepNumber:only-child{border-radius:4px;min-width:24px}[data-mantine-color-scheme=dark] :where([data-likec4-color=gray]) .likec4-edge-label__stepNumber{background:color-mix(in srgb,var(--likec4-palette-relation-label-bg),var(--colors-likec4-mix-color) 15%)}.likec4-edge-label__labelContents{display:contents}.likec4-edge-label__labelContents:is(:empty,[data-empty]){display:none!important}.likec4-edge-label__labelText{margin:var(--spacing-0);white-space-collapse:preserve-breaks;font-size:14px}.likec4-edge-label__labelTechnology{text-align:center;white-space-collapse:preserve-breaks;font-size:11px;line-height:var(--line-heights-1);opacity:.75}}.likec4-navlink__label--truncateLabel_true,.likec4-navlink__description--truncateLabel_true{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:var(--sizes-100\\%)}.likec4-edge-label__root--pointerEvents_all{pointer-events:all}.likec4-edge-label__root--cursor_pointer{cursor:pointer}.likec4-edge-label__root--cursor_default{cursor:default}.likec4-edge-label__root--pointerEvents_none{pointer-events:none}.likec4-edge-label__root--isStepEdge_true{padding:var(--spacing-0);gap:var(--spacing-1);flex-direction:row}.likec4-edge-label__labelContents--isStepEdge_true{gap:var(--spacing-0\\.5);display:flex;flex-direction:column;align-items:center;padding-top:var(--spacing-0\\.5);padding-right:var(--spacing-1);padding-bottom:var(--spacing-1)}.likec4-edge-label__labelText--isStepEdge_true{padding-block:var(--spacing-0\\.5);padding-right:var(--spacing-0\\.5)}}@layer utilities{@layer compositions{.layerStyle_likec4\\.panel{padding:var(--spacing-1);border:1px solid var(--colors-likec4-panel-border);border-radius:var(--radii-0);background-color:var(--colors-likec4-panel-bg)}.likec4-root:is([data-likec4-diagram-panning=true]) .layerStyle_likec4\\.panel{border-radius:var(--radii-0);box-shadow:var(--shadows-none)}.layerStyle_likec4\\.dropdown{padding:var(--spacing-2);border:1px solid var(--colors-likec4-dropdown-border);border-radius:var(--radii-md);background-color:var(--colors-likec4-dropdown-bg);box-shadow:var(--shadows-lg)}.likec4-root:is([data-likec4-diagram-panning=true]) .layerStyle_likec4\\.dropdown{border-radius:0;border-color:var(--colors-transparent);box-shadow:var(--shadows-none)}.layerStyle_likec4\\.tag{border:var(--borders-none);border-radius:3px;color:var(--colors-likec4-tag-text);background-color:var(--colors-likec4-tag-bg)}.layerStyle_likec4\\.tag:is(:hover,[data-hover]){background-color:var(--colors-likec4-tag-bg-hover)}.textStyle_xs{font-size:.75rem;line-height:1rem}.layerStyle_likec4\\.panel\\.action{border:var(--borders-transparent);border-radius:var(--radii-sm);color:var(--colors-likec4-panel-action);cursor:pointer;background-color:var(--colors-likec4-panel-action-bg)}.layerStyle_likec4\\.panel\\.action:not(:is(:disabled,[disabled],[data-disabled])):is(:hover,[data-hover]){color:var(--colors-likec4-panel-action-hover);background-color:var(--colors-likec4-panel-action-bg-hover)}.likec4-root:not([data-likec4-reduced-graphics]) .noReduceGraphics\\:animationStyle_xyedgeAnimated{animation-duration:.8s;animation-iteration-count:infinite;animation-timing-function:linear;animation-fill-mode:both;animation-name:xyedgeAnimated}@container (min-width: 40rem){.layerStyle_likec4\\.panel{border-radius:var(--radii-md);padding-inline:var(--spacing-2);box-shadow:var(--shadows-lg)}}}.--mantine-cursor-pointer_pointer{--mantine-cursor-pointer: pointer}.--thickness_1px{--thickness: 1px}.--bleed-x_token\\(spacing\\.2\\,_2\\){--bleed-x: var(--spacing-2, 2)}.--bleed-y_token\\(spacing\\.2\\,_2\\){--bleed-y: var(--spacing-2, 2)}.--text-fz_\\{fontSizes\\.sm\\}{--text-fz: var(--font-sizes-sm)}.--view-title-color_\\{colors\\.mantine\\.colors\\.dark\\[1\\]\\}{--view-title-color: var(--colors-mantine-colors-dark\\[1\\])}.--likec4-icon-size_24px{--likec4-icon-size: 24px}.--ti-size_var\\(--likec4-icon-size\\,_24px\\){--ti-size: var(--likec4-icon-size, 24px)}.--_color_var\\(--likec4-palette-stroke\\){--_color: var(--likec4-palette-stroke)}.--ai-radius_0px{--ai-radius: 0px}.--badge-radius_2px{--badge-radius: 2px}.--badge-fz_9\\.5px{--badge-fz: 9.5px}.--badge-padding-x_3px{--badge-padding-x: 3px}.--badge-height_13\\.5px{--badge-height: 13.5px}.--badge-lh_1{--badge-lh: 1}.--badge-bg_var\\(--likec4-palette-fill\\){--badge-bg: var(--likec4-palette-fill)}.--badge-color_var\\(--likec4-palette-hiContrast\\){--badge-color: var(--likec4-palette-hiContrast)}.bg_dots{background:dots}.bg_transparent{background:var(--colors-transparent)}.m_0{margin:var(--spacing-0)}.p_0{padding:var(--spacing-0)}.bg_likec4\\.overlay\\.body{background:var(--colors-likec4-overlay-body)}.p_xl{padding:var(--spacing-xl)}.bd_1px_solid{border:1px solid}.bg_mantine\\.colors\\.default{background:var(--colors-mantine-colors-default)}.p_\\[4px_7px\\]{padding:4px 7px}.bg_\\[transparent\\]{background:var(--colors-transparent)}.p_1{padding:var(--spacing-1)}.p_4{padding:var(--spacing-4)}.bd_default{border:var(--borders-default)}.p_0\\.5{padding:var(--spacing-0\\.5)}.m_xs{margin:var(--spacing-xs)}.p_md{padding:var(--spacing-md)}.p_1\\.5{padding:var(--spacing-1\\.5)}.p_8{padding:var(--spacing-8)}.p_xxs{padding:var(--spacing-xxs)}.p_\\[4px_6px\\]{padding:4px 6px}.bg_mantine\\.colors\\.gray\\[2\\]{background:var(--colors-mantine-colors-gray\\[2\\])}.bg_mantine\\.colors\\.gray\\[3\\]{background:var(--colors-mantine-colors-gray\\[3\\])}.bd_2px_solid{border:2px solid}.inset_0{inset:var(--spacing-0)}.bd_transparent{border:var(--borders-transparent)}.bd_none{border:var(--borders-none)}.bg_mantine\\.colors\\.body{background:var(--colors-mantine-colors-body)}.p_\\[10px_8px\\]{padding:10px 8px}.bd_1px_dashed{border:1px dashed}.bg_mantine\\.colors\\.gray\\[1\\]{background:var(--colors-mantine-colors-gray\\[1\\])}.p_\\[6px_8px\\]{padding:6px 8px}.bd_3\\.5px_solid{border:3.5px solid}.p_xs{padding:var(--spacing-xs)}.p_\\[4px_8px\\]{padding:4px 8px}.p_\\[1px_4px\\]{padding:1px 4px}.p_\\[3px_6px\\]{padding:3px 6px}.bg_var\\(--likec4-palette-fill\\)\\/75{--mix-background: color-mix(in srgb, var(--likec4-palette-fill) 75%, transparent);background:var(--mix-background, var(--likec4-palette-fill))}.bd_1px_solid_\\{colors\\.mantine\\.colors\\.defaultBorder\\}{border:1px solid var(--colors-mantine-colors-default-border)}.p_\\[1px_5px\\]{padding:1px 5px}.bg_mantine\\.colors\\.dark\\[7\\]{background:var(--colors-mantine-colors-dark\\[7\\])}.p_\\[6px_2px_0_2px\\]{padding:6px 2px 0}.p_\\[0_4px_5px_4px\\]{padding:0 4px 5px}.bg_mantine\\.colors\\.dark\\[9\\]\\/30{--mix-background: color-mix(in srgb, var(--colors-mantine-colors-dark\\[9\\]) 30%, transparent);background:var(--mix-background, var(--colors-mantine-colors-dark\\[9\\]))}.bg_mantine\\.colors\\.primary\\[8\\]{background:var(--colors-mantine-colors-primary\\[8\\])}.p_\\[12px_8px_12px_14px\\]{padding:12px 8px 12px 14px}.bd_2px_dashed{border:2px dashed}.p_2{padding:var(--spacing-2)}.bd_3px_dashed{border:3px dashed}.gap_20{gap:20px}.bdr_sm{border-radius:var(--radii-sm)}.bd-w_3{border-width:3px}.bd-c_likec4\\.overlay\\.border{border-color:var(--colors-likec4-overlay-border)}.ring_none{outline:var(--borders-none)}.gap_lg{gap:var(--spacing-lg)}.gap_md{gap:var(--spacing-md)}.gap_sm{gap:var(--spacing-sm)}.flex_1{flex:1 1 0%}.transition_fast{transition:all var(--durations-fast) var(--easings-in-out)}.td_none{text-decoration:none}.bd-c_mantine\\.colors\\.defaultBorder{border-color:var(--colors-mantine-colors-default-border)}.gap_xs{gap:var(--spacing-xs)}.gap_xxs{gap:var(--spacing-xxs)}.gap_1{gap:var(--spacing-1)}.ov_hidden{overflow:hidden}.gap_0\\.5{gap:var(--spacing-0\\.5)}.gap_\\[4px\\]{gap:4px}.px_xs{padding-inline:var(--spacing-xs)}.py_xxs{padding-block:var(--spacing-xxs)}.px_sm{padding-inline:var(--spacing-sm)}.gap_8px{gap:8px}.gap_1\\.5{gap:var(--spacing-1\\.5)}.bdr_\\[4px\\]{border-radius:4px}.px_1\\.5{padding-inline:var(--spacing-1\\.5)}.gap_3{gap:var(--spacing-3)}.mx_calc\\(var\\(--bleed-x\\,_0\\)_\\*_-1\\){margin-inline:calc(var(--bleed-x, 0) * -1)}.my_calc\\(var\\(--bleed-y\\,_0\\)_\\*_-1\\){margin-block:calc(var(--bleed-y, 0) * -1)}.py_2\\.5{padding-block:var(--spacing-2\\.5)}.px_2{padding-inline:var(--spacing-2)}.gap_2{gap:var(--spacing-2)}.offset_2{offset:2px}.py_1\\.5{padding-block:var(--spacing-1\\.5)}.bd-l_2px_dotted{border-left:2px dotted}.px_1{padding-inline:var(--spacing-1)}.py_0\\.5{padding-block:var(--spacing-0\\.5)}.bdr_\\[2px\\]{border-radius:2px}.bd-w_4{border-width:4px}.px_4{padding-inline:var(--spacing-4)}.py_1{padding-block:var(--spacing-1)}.gap_\\[1px\\]{gap:1px}.ov_auto{overflow:auto}.ovs-b_contain{overscroll-behavior:contain}.ov_visible{overflow:visible}.px_xxs{padding-inline:var(--spacing-xxs)}.my_10{margin-block:var(--spacing-10)}.flex_1_1_40\\%{flex:1 1 40%}.bd-c_mantine\\.colors\\.gray\\[4\\]{border-color:var(--colors-mantine-colors-gray\\[4\\])}.bd-c_mantine\\.colors\\.gray\\[5\\]{border-color:var(--colors-mantine-colors-gray\\[5\\])}.bdr_3{border-radius:3px}.bd-c_mantine\\.colors\\.orange\\[6\\]{border-color:var(--colors-mantine-colors-orange\\[6\\])}.tw_pretty{text-wrap:pretty}.flex_0{flex:0}.flex_0_0_40px{flex:0 0 40px}.gap_\\[24px_20px\\]{gap:24px 20px}.bd-c_mantine\\.colors\\.dark\\[3\\]{border-color:var(--colors-mantine-colors-dark\\[3\\])}.bd-t_none{border-top:var(--borders-none)}.bd-l_none{border-left:var(--borders-none)}.bdr_2px{border-radius:2px}.gap_4{gap:var(--spacing-4)}.gap_6{gap:var(--spacing-6)}.gap_\\[12px_16px\\]{gap:12px 16px}.bd-c_mantine\\.colors\\.gray\\[3\\]{border-color:var(--colors-mantine-colors-gray\\[3\\])}.flex_0_1_auto{flex:0 1 auto}.transition_all_150ms_ease{transition:all .15s ease}.bdr_xs{border-radius:var(--radii-xs)}.flex_1_1_100\\%{flex:1 1 100%}.offset_0{offset:0}.py_4{padding-block:var(--spacing-4)}.gap_8{gap:var(--spacing-8)}.px_md{padding-inline:var(--spacing-md)}.py_xs{padding-block:var(--spacing-xs)}.grid-c_1{grid-column:1}.grid-c_2{grid-column:2}.grid-c_3{grid-column:3}.bd-b_1px_solid{border-bottom:1px solid}.gap_0{gap:var(--spacing-0)}.gap_\\[10px_12px\\]{gap:10px 12px}.py_3{padding-block:var(--spacing-3)}.offset_4{offset:4px}.flex_1_0_auto{flex:1 0 auto}.ring_none\\!{outline:var(--borders-none)!important}.bdr_4px{border-radius:4px}.mx_auto{margin-inline:auto}.py_md{padding-block:var(--spacing-md)}.bd-c_mantine\\.colors\\.primary\\[9\\]{border-color:var(--colors-mantine-colors-primary\\[9\\])}.flex_0_0_var\\(--likec4-icon-size\\,_24px\\){flex:0 0 var(--likec4-icon-size, 24px)}.bdr_md{border-radius:var(--radii-md)}.py_xl{padding-block:var(--spacing-xl)}.bd-w_1{border-width:1px}.bd-c_\\[var\\(--_color\\)\\/30\\]{--mix-borderColor: color-mix(in srgb, var(--_color) 30%, transparent);border-color:var(--mix-borderColor, var(--_color))}.transition_all_100ms_ease-in{transition:all .1s ease-in}.transition_all_150ms_ease-in-out{transition:all .15s ease-in-out}.py_sm{padding-block:var(--spacing-sm)}.flex_0_0_auto{flex:0 0 auto}.flex_0_0_70px{flex:0 0 70px}.bd-w_3px{border-width:3px}.border-style_dashed{border-style:dashed}.px_3{padding-inline:var(--spacing-3)}.px_5{padding-inline:var(--spacing-5)}.gap_6px{gap:6px}.px_4px{padding-inline:4px}.cursor_pointer{cursor:pointer}.pos_absolute{position:absolute}.z_999{z-index:999}.c_gray{color:gray}.pos_fixed{position:fixed}.bx-sh_xl{box-shadow:var(--shadows-xl)}.d_flex{display:flex}.ai_flex-start{align-items:flex-start}.flex-d_row{flex-direction:row}.flex-wrap_nowrap{flex-wrap:nowrap}.ai_center{align-items:center}.c_red{color:red}.ai_stretch{align-items:stretch}.flex-d_column{flex-direction:column}.c_teal{color:teal}.op_1{opacity:1}.op_0\\.45{opacity:.45}.us_all{-webkit-user-select:all;user-select:all}.bg-c_transparent{background-color:var(--colors-transparent)}.stk_2\\.5{stroke:2.5px}.op_0\\.7{opacity:.7}.fill_\\[\\#FCFBF7\\]{fill:#fcfbf7}.bx-sh_xs{box-shadow:var(--shadows-xs)}.fs_sm{font-size:var(--font-sizes-sm)}.fw_500{font-weight:500}.c_mantine\\.colors\\.placeholder{color:var(--colors-mantine-colors-placeholder)}.fs_11px{font-size:11px}.fw_600{font-weight:600}.lh_1{line-height:var(--line-heights-1)}.stk_2{stroke:2px}.pointer-events_none{pointer-events:none}.main-axis_4{main-axis:4px}.pos_bottom-start{position:bottom-start}.pos_relative{position:relative}.pointer-events_all{pointer-events:all}.us_none{-webkit-user-select:none;user-select:none}.d_none{display:none}.flex-sh_1{flex-shrink:1}.flex-g_1{flex-grow:1}.flex-g_0{flex-grow:0}.op_0\\.3{opacity:.3}.bg-c_mantine\\.colors\\.gray\\[1\\]{background-color:var(--colors-mantine-colors-gray\\[1\\])}.stk_1\\.5{stroke:1.5px}.bd-e-w_var\\(--thickness\\){border-inline-end-width:var(--thickness)}.c_mantine\\.colors\\.gray\\[5\\]{color:var(--colors-mantine-colors-gray\\[5\\])}.bg-c_likec4\\.panel\\.action\\.warning\\.bg{background-color:var(--colors-likec4-panel-action-warning-bg)}.c_likec4\\.panel\\.action{color:var(--colors-likec4-panel-action)}.trunc_true{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.c_likec4\\.panel\\.text\\.dimmed{color:var(--colors-likec4-panel-text-dimmed)}.bg-c_\\[rgb\\(34_34_34_\\/_var\\(--_opacity\\,_95\\%\\)\\)\\]{background-color:rgb(34 34 34 / var(--_opacity, 95%))}.bkdp_auto{backdrop-filter:var(--backdrop-blur, ) var(--backdrop-brightness, ) var(--backdrop-contrast, ) var(--backdrop-grayscale, ) var(--backdrop-hue-rotate, ) var(--backdrop-invert, ) var(--backdrop-opacity, ) var(--backdrop-saturate, ) var(--backdrop-sepia, );-webkit-backdrop-filter:var(--backdrop-blur, ) var(--backdrop-brightness, ) var(--backdrop-contrast, ) var(--backdrop-grayscale, ) var(--backdrop-hue-rotate, ) var(--backdrop-invert, ) var(--backdrop-opacity, ) var(--backdrop-saturate, ) var(--backdrop-sepia, )}.bkdp-blur_var\\(--_blur\\,_10px\\){--backdrop-blur: blur(var(--_blur, 10px))}.jc_stretch{justify-content:stretch}.cq-n_likec4-search-elements{container-name:likec4-search-elements}.cq-t_size{container-type:size}.d_contents{display:contents}.d_grid{display:grid}.order_6{order:6}.stk_1\\.8{stroke:1.8px}.trunc_end{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.trs-dur_normal{--transition-duration: var(--durations-normal);transition-duration:var(--durations-normal)}.trs-dly_0\\.2s{transition-delay:.2s}.fill_none{fill:var(--colors-none)}.stk-w_calc\\(var\\(--xy-edge-stroke-width\\)_\\+_2\\){stroke-width:calc(var(--xy-edge-stroke-width) + 2)}.stk-op_0\\.08{stroke-opacity:.08}.fill_\\[var\\(--xy-edge-stroke\\)\\]{fill:var(--xy-edge-stroke)}.stk_\\[var\\(--xy-edge-stroke\\)\\]{stroke:var(--xy-edge-stroke)}.stk-do_0{stroke-dashoffset:0}.jc_center{justify-content:center}.z_1{z-index:var(--z-index-1)}.ai_flex-end{align-items:flex-end}.justify-items_stretch{justify-items:stretch}.fs_lg{font-size:var(--font-sizes-lg)}.ai_baseline{align-items:baseline}.flex-wrap_wrap{flex-wrap:wrap}.translate_auto{translate:var(--translate-x) var(--translate-y)}.translate-x_\\[-8px\\]{--translate-x: -8px}.bd-be-w_var\\(--thickness\\){border-block-end-width:var(--thickness)}.cursor_default{cursor:default}.pos_top-start{position:top-start}.op_0\\.65{opacity:.65}.d_block{display:block}.fs_xxs{font-size:var(--font-sizes-xxs)}.lh_sm{line-height:var(--line-heights-sm)}.c_mantine\\.colors\\.dimmed{color:var(--colors-mantine-colors-dimmed)}.white-space_nowrap{white-space:nowrap}.white-space-collapse_preserve-breaks{white-space-collapse:preserve-breaks}.fs_xs{font-size:var(--font-sizes-xs)}.fw_medium{font-weight:var(--font-weights-medium)}.trf_translateY\\(-4px\\){transform:translateY(-4px)}.c_mantine\\.colors\\.gray\\[9\\]{color:var(--colors-mantine-colors-gray\\[9\\])}.bx-sh_lg{box-shadow:var(--shadows-lg)}.c_likec4\\.panel\\.text{color:var(--colors-likec4-panel-text)}.c_orange{color:orange}.c_green{color:green}.pos_bottom-end{position:bottom-end}.op_0\\.8{opacity:.8}.op_0\\.5{opacity:.5}.me_0\\.5{margin-inline-end:var(--spacing-0\\.5)}.cross-axis_-22{cross-axis:-22px}.fw_400{font-weight:400}.bx-sh_md{box-shadow:var(--shadows-md)}.main-axis_2{main-axis:2px}.lh_1\\.1{line-height:1.1}.pos_right-start{position:right-start}.main-axis_10{main-axis:10px}.op_0\\.6{opacity:.6}.pos_top{position:top}.pos_right{position:right}.main-axis_12{main-axis:12px}.ta_center{text-align:center}.bx-sh_inset_1px_1px_3px_0px_\\#00000024{box-shadow:inset 1px 1px 3px #00000024}.trf_translate\\(-50\\%\\,_-50\\%\\){transform:translate(-50%,-50%)}.flex-sh_0{flex-shrink:0}.ms_0{margin-inline-start:var(--spacing-0)}.z_9{z-index:9}.ta_left{text-align:left}.lh_1\\.25{line-height:1.25}.bx-s_border-box{box-sizing:border-box}.c_mantine\\.colors\\.text{color:var(--colors-mantine-colors-text)}.bg-c_mantine\\.colors\\.body{background-color:var(--colors-mantine-colors-body)}.bg-i_linear-gradient\\(180deg\\,_color-mix\\(in_srgb\\,_var\\(--likec4-palette-fill\\)_60\\%\\,_transparent\\)\\,_color-mix\\(in_srgb\\,_var\\(--likec4-palette-fill\\)_20\\%\\,_transparent\\)_8px\\,_color-mix\\(in_srgb\\,_var\\(--likec4-palette-fill\\)_14\\%\\,_transparent\\)_20px\\,_transparent_80px_\\)\\,_linear-gradient\\(180deg\\,_var\\(--likec4-palette-fill\\)\\,_var\\(--likec4-palette-fill\\)_4px\\,_transparent_4px\\){background-image:linear-gradient(180deg,color-mix(in srgb,var(--likec4-palette-fill) 60%,transparent),color-mix(in srgb,var(--likec4-palette-fill) 20%,transparent) 8px,color-mix(in srgb,var(--likec4-palette-fill) 14%,transparent) 20px,transparent 80px),linear-gradient(180deg,var(--likec4-palette-fill),var(--likec4-palette-fill) 4px,transparent 4px)}.cursor_move{cursor:move}.ff_likec4\\.element{font-family:var(--fonts-likec4-element)}.font-optical-sizing_auto{font-optical-sizing:auto}.font-style_normal{font-style:normal}.fs_24px{font-size:24px}.lh_xs{line-height:var(--line-heights-xs)}.as_flex-start{align-self:flex-start}.c_\\[var\\(--view-title-color\\,_\\{colors\\.mantine\\.colors\\.gray\\[7\\]\\}\\)\\]{color:var(--view-title-color, var(--colors-mantine-colors-gray\\[7\\]))}.fs_15px{font-size:15px}.lh_1\\.4{line-height:1.4}.c_mantine\\.colors\\.gray\\[7\\]{color:var(--colors-mantine-colors-gray\\[7\\])}.grid-tc_min-content_1fr{grid-template-columns:min-content 1fr}.grid-ar_min-content_max-content{grid-auto-rows:min-content max-content}.justify-self_end{justify-self:end}.ta_right{text-align:right}.cursor_se-resize{cursor:se-resize}.ai_start{align-items:start}.jc_space-between{justify-content:space-between}.stk_1\\.6{stroke:1.6px}.grid-ar_min-content{grid-auto-rows:min-content}.white-space_pre-wrap{white-space:pre-wrap}.tov_unset{text-overflow:unset}.tov_ellipsis{text-overflow:ellipsis}.wb_break-word{word-break:break-word}.wb_normal{word-break:normal}.bg-c_mantine\\.colors\\.white{background-color:var(--colors-mantine-colors-white)}.jc_flex-end{justify-content:flex-end}.c_mantine\\.colors\\.gray\\[6\\]{color:var(--colors-mantine-colors-gray\\[6\\])}.fw_700{font-weight:700}.justify-self_stretch{justify-self:stretch}.as_start{align-self:start}.ps_\\[16px\\]{padding-inline-start:16px}.pe_2\\.5{padding-inline-end:var(--spacing-2\\.5)}.stk_1\\.2{stroke:1.2px}.d_inline-block{display:inline-block}.lh_1\\.2{line-height:1.2}.c_var\\(--likec4-palette-hiContrast\\){color:var(--likec4-palette-hiContrast)}.fs_xl{font-size:var(--font-sizes-xl)}.c_mantine\\.colors\\.defaultColor{color:var(--colors-mantine-colors-default-color)}.bx-sh_none{box-shadow:var(--shadows-none)}.d_inline-flex{display:inline-flex}.pos_top-right{position:top-right}.pos_top-left{position:top-left}.grid-cs_1{grid-column-start:1}.grid-ce_4{grid-column-end:4}.grid-tc_1fr_30px_1fr{grid-template-columns:1fr 30px 1fr}.justify-items_start{justify-items:start}.c_dark{color:dark}.stk_3\\.5{stroke:3.5px}.cq-n_likec4-tree{container-name:likec4-tree}.cq-t_inline-size{container-type:inline-size}.fs_10px{font-size:10px}.lh_1\\.3{line-height:1.3}.order_2{order:2}.grayscale_0\\.9{--grayscale: grayscale(.9)}.filter_auto{filter:var(--blur, ) var(--brightness, ) var(--contrast, ) var(--grayscale, ) var(--hue-rotate, ) var(--invert, ) var(--saturate, ) var(--sepia, ) var(--drop-shadow, )}.cross-axis_50{cross-axis:50px}.sr_true{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.fs_13px{font-size:13px}.fs_16px{font-size:16px}.c_mantine\\.colors\\.dark\\[1\\]{color:var(--colors-mantine-colors-dark\\[1\\])}.fs_12px{font-size:12px}.fs_md{font-size:var(--font-sizes-md)}.bg-c_\\[rgb\\(34_34_34_\\/_0\\.7\\)\\]{background-color:#222222b3}.z_902{z-index:902}.bkdp-blur_10px{--backdrop-blur: blur(10px)}.trf_translateX\\(-50\\%\\){transform:translate(-50%)}.z_903{z-index:903}.mix-bm_normal{mix-blend-mode:normal}.fill_var\\(--likec4-palette-relation-stroke\\){fill:var(--likec4-palette-relation-stroke)}.stk_var\\(--likec4-palette-relation-stroke\\){stroke:var(--likec4-palette-relation-stroke)}.fill-opacity_0\\.75{fill-opacity:.75}.stk-w_1{stroke-width:1}.cursor_grab{cursor:grab}.pointer-events_auto{pointer-events:auto}.vis_hidden{visibility:hidden}.cursor_grabbing{cursor:grabbing}.bg-c_var\\(--likec4-palette-fill\\)\\/15{--mix-backgroundColor: color-mix(in srgb, var(--likec4-palette-fill) 15%, transparent);background-color:var(--mix-backgroundColor, var(--likec4-palette-fill))}.fw_bold{font-weight:700}.ls_\\.75px{letter-spacing:.75px}.c_\\[var\\(--_color\\)\\/75\\]{--mix-color: color-mix(in srgb, var(--_color) 75%, transparent);color:var(--mix-color, var(--_color))}.bg-c_var\\(--likec4-palette-fill\\){background-color:var(--likec4-palette-fill)}.translate-x_-1\\/2{--translate-x: -50%}.translate-y_-1\\/2{--translate-y: -50%}.bg-c_mantine\\.colors\\.body\\/80{--mix-backgroundColor: color-mix(in srgb, var(--colors-mantine-colors-body) 80%, transparent);background-color:var(--mix-backgroundColor, var(--colors-mantine-colors-body))}.fill_var\\(--likec4-palette-fill\\){fill:var(--likec4-palette-fill)}.stk_var\\(--likec4-palette-stroke\\){stroke:var(--likec4-palette-stroke)}.filter_drop-shadow\\(0_2px_3px_rgb\\(0_0_0_\\/_22\\%\\)\\)_drop-shadow\\(0_1px_8px_rgb\\(0_0_0_\\/_10\\%\\)\\){filter:drop-shadow(0 2px 3px rgb(0 0 0 / 22%)) drop-shadow(0 1px 8px rgb(0 0 0 / 10%))}.ls_0\\.2px{letter-spacing:.2px}.tt_lowercase{text-transform:lowercase}.op_0\\.25{opacity:.25}.stk-w_5{stroke-width:5}.pos_right-end{position:right-end}.jc_flex-start{justify-content:flex-start}.pos_left-start{position:left-start}.top_4{top:var(--spacing-4)}.right_4{right:var(--spacing-4)}.top_10{top:var(--spacing-10)}.left_10{left:var(--spacing-10)}.w_\\[calc\\(100vw_-_\\(\\{spacing\\.10\\}_\\*_2\\)\\)\\]{width:calc(100vw - (var(--spacing-10) * 2))}.h_max-content{height:max-content}.max-h_\\[calc\\(100vh_-_\\(\\{spacing\\.10\\}_\\*_3\\)\\)\\]{max-height:calc(100vh - (var(--spacing-10) * 3))}.mt_md{margin-top:var(--spacing-md)}.min-h_24{min-height:24px}.max-w_500{max-width:500px}.pr_0{padding-right:var(--spacing-0)}.h_12{height:12px}.w_12{width:12px}.h_30px{height:30px}.pl_sm{padding-left:var(--spacing-sm)}.pr_1{padding-right:var(--spacing-1)}.w_100\\%{width:var(--sizes-100\\%)}.pr_2\\.5{padding-right:var(--spacing-2\\.5)}.top_0{top:var(--spacing-0)}.left_0{left:var(--spacing-0)}.max-w_calc\\(100vw\\){max-width:100vw}.max-w_200px{max-width:200px}.max-w_calc\\(100vw_-_50px\\){max-width:calc(100vw - 50px)}.max-w_calc\\(100vw_-_250px\\){max-width:calc(100vw - 250px)}.max-h_calc\\(100vh_-_200px\\){max-height:calc(100vh - 200px)}.max-h_calc\\(100vh_-_160px\\){max-height:calc(100vh - 160px)}.h_100\\%{height:var(--sizes-100\\%)}.mb_1{margin-bottom:var(--spacing-1)}.max-h_100vh{max-height:100vh}.pt_\\[20px\\]{padding-top:20px}.pl_md{padding-left:var(--spacing-md)}.pr_md{padding-right:var(--spacing-md)}.pb_sm{padding-bottom:var(--spacing-sm)}.pr_xs{padding-right:var(--spacing-xs)}.lc_5{-webkit-line-clamp:5}.lc_5,.lc_2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical}.lc_2{-webkit-line-clamp:2}.lc_3{overflow:hidden;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical}.max-h_8rem{max-height:8rem}.top_0\\.5{top:var(--spacing-0\\.5)}.right_0\\.5{right:var(--spacing-0\\.5)}.w_full{width:var(--sizes-full)}.h_full{height:var(--sizes-full)}.bottom_0{bottom:var(--spacing-0)}.max-w_50{max-width:50px}.h_5{height:5px}.w_max-content{width:max-content}.pt_2{padding-top:var(--spacing-2)}.mt_2{margin-top:var(--spacing-2)}.mt_0{margin-top:var(--spacing-0)}.pl_2\\.5{padding-left:var(--spacing-2\\.5)}.bd-l-c_mantine\\.colors\\.gray\\[3\\]{border-left-color:var(--colors-mantine-colors-gray\\[3\\])}.bdr-bl_sm{border-bottom-left-radius:var(--radii-sm)}.bdr-br_sm{border-bottom-right-radius:var(--radii-sm)}.pl_3{padding-left:var(--spacing-3)}.w_\\[20px\\]{width:20px}.mt_1{margin-top:var(--spacing-1)}.mb_xxs{margin-bottom:var(--spacing-xxs)}.pb_lg{padding-bottom:var(--spacing-lg)}.max-w_calc\\(100cqw_-_52px\\){max-width:calc(100cqw - 52px)}.min-w_200px{min-width:200px}.max-h_calc\\(100cqh_-_100px\\){max-height:calc(100cqh - 100px)}.mt_4{margin-top:var(--spacing-4)}.mt_xs{margin-top:var(--spacing-xs)}.h_auto{height:auto}.pt_6{padding-top:var(--spacing-6)}.mb_10{margin-bottom:var(--spacing-10)}.pt_100\\%{padding-top:100%}.left_2{left:var(--spacing-2)}.bottom_2{bottom:var(--spacing-2)}.top_md{top:var(--spacing-md)}.left_md{left:var(--spacing-md)}.w_8{width:8px}.h_8{height:8px}.mr_sm{margin-right:var(--spacing-sm)}.h_26{height:26px}.top_\\[1px\\]{top:1px}.right_\\[1px\\]{right:1px}.pt_xxs{padding-top:var(--spacing-xxs)}.max-w_calc\\(100cqw_-_32px\\){max-width:calc(100cqw - 32px)}.min-w_calc\\(100cqw_-_50px\\){min-width:calc(100cqw - 50px)}.w_100vw{width:100vw}.h_100vh{height:100vh}.max-w_100vw{max-width:100vw}.h_40px{height:40px}.w_40px{width:40px}.w_14px{width:14px}.h_14px{height:14px}.bottom_0\\.5{bottom:var(--spacing-0\\.5)}.mb_sm{margin-bottom:var(--spacing-sm)}.lc_1{overflow:hidden;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical}.mt_6{margin-top:var(--spacing-6)}.pt_xs{padding-top:var(--spacing-xs)}.w_300{width:300px}.min-w_0{min-width:0}.min-h_32px{min-height:32px}.max-w_min\\(200px\\,_100\\%\\){max-width:min(200px,100%)}.min-w_60px{min-width:60px}.mb_0{margin-bottom:var(--spacing-0)}.h_36px{height:36px}.min-w_24{min-width:24px}.mb_4{margin-bottom:var(--spacing-4)}.top_12{top:12px}.right_12{right:12px}.mt_sm{margin-top:var(--spacing-sm)}.ml_sm{margin-left:var(--spacing-sm)}.pl_1{padding-left:var(--spacing-1)}.bd-b-c_mantine\\.colors\\.defaultBorder{border-bottom-color:var(--colors-mantine-colors-default-border)}.max-h_70vh{max-height:70vh}.mb_2{margin-bottom:var(--spacing-2)}.max-w_8xl{max-width:8xl}.pl_\\[48px\\]{padding-left:48px}.mr_1{margin-right:var(--spacing-1)}.min-h_60px{min-height:60px}.h_var\\(--likec4-icon-size\\,_24px\\){height:var(--likec4-icon-size, 24px)}.w_var\\(--likec4-icon-size\\,_24px\\){width:var(--likec4-icon-size, 24px)}.top_\\[2rem\\]{top:2rem}.left_\\[50\\%\\]{left:50%}.max-w_600px{max-width:600px}.pl_2{padding-left:var(--spacing-2)}.pt_0\\.5{padding-top:var(--spacing-0\\.5)}.w_5px{width:5px}.top_1{top:var(--spacing-1)}.right_0{right:var(--spacing-0)}.w_min-content{width:min-content}.h_min-content{height:min-content}.min-w_200{min-width:200px}.max-w_calc\\(100vw_-_20px\\){max-width:calc(100vw - 20px)}.pt_0{padding-top:var(--spacing-0)}.pb_0{padding-bottom:var(--spacing-0)}.ml_2{margin-left:var(--spacing-2)}.h_xs{height:xs}.pb_8{padding-bottom:var(--spacing-8)}.pt_4{padding-top:var(--spacing-4)}.max-w_220px{max-width:220px}.\\[\\&_\\.action-icon\\]\\:--ai-size_2rem .action-icon{--ai-size: 2rem}[data-mantine-color-scheme=light] .light\\:--icon-color_\\{colors\\.mantine\\.colors\\.gray\\[6\\]\\}{--icon-color: var(--colors-mantine-colors-gray\\[6\\])}[data-mantine-color-scheme=light] .light\\:--view-title-color_\\{colors\\.mantine\\.colors\\.gray\\[7\\]\\}{--view-title-color: var(--colors-mantine-colors-gray\\[7\\])}.\\[\\&_\\.mantine-ThemeIcon-root\\]\\:--ti-size_22px .mantine-ThemeIcon-root{--ti-size: 22px}[data-mantine-color-scheme=dark] .dark\\:--_color_\\[color-mix\\(in_srgb\\,_var\\(--likec4-palette-hiContrast\\)_40\\%\\,_var\\(--likec4-palette-fill\\)\\)\\]{--_color: color-mix(in srgb, var(--likec4-palette-hiContrast) 40%, var(--likec4-palette-fill))}.likec4-root:not([data-likec4-reduced-graphics]) .noReduceGraphics\\:--ai-radius_\\{radii\\.md\\}{--ai-radius: var(--radii-md)}.backdrop\\:bg_\\[color-mix\\(in_oklab\\,_\\{colors\\.likec4\\.overlay\\.backdrop\\}_60\\%\\,_transparent\\)\\]::backdrop{background:color-mix(in oklab,var(--colors-likec4-overlay-backdrop) 60%,transparent)}[data-mantine-color-scheme=light] .light\\:bg_mantine\\.colors\\.white{background:var(--colors-mantine-colors-white)}[data-mantine-color-scheme=dark] .dark\\:bg_mantine\\.colors\\.dark\\[6\\]{background:var(--colors-mantine-colors-dark\\[6\\])}[data-mantine-color-scheme=light] .light\\:bg_var\\(--likec4-palette-fill\\)\\/90{--mix-background: color-mix(in srgb, var(--likec4-palette-fill) 90%, transparent);background:var(--mix-background, var(--likec4-palette-fill))}[data-mantine-color-scheme=dark] .dark\\:bg_var\\(--likec4-palette-fill\\)\\/60{--mix-background: color-mix(in srgb, var(--likec4-palette-fill) 60%, transparent);background:var(--mix-background, var(--likec4-palette-fill))}[data-mantine-color-scheme=dark] .dark\\:bg_mantine\\.colors\\.dark\\[5\\]{background:var(--colors-mantine-colors-dark\\[5\\])}[data-mantine-color-scheme=dark] .dark\\:bg_mantine\\.colors\\.dark\\[7\\]{background:var(--colors-mantine-colors-dark\\[7\\])}.\\[\\&\\[data-active\\]\\]\\:bg_mantine\\.colors\\.white[data-active]{background:var(--colors-mantine-colors-white)}[data-mantine-color-scheme=light] .light\\:bg_mantine\\.colors\\.gray\\[1\\]{background:var(--colors-mantine-colors-gray\\[1\\])}.\\[\\&\\[data-missing\\]\\]\\:bg_mantine\\.colors\\.orange\\[8\\]\\/15[data-missing]{--mix-background: color-mix(in srgb, var(--colors-mantine-colors-orange\\[8\\]) 15%, transparent);background:var(--mix-background, var(--colors-mantine-colors-orange\\[8\\]))}.\\[\\&\\[data-missing\\]\\]\\:bg_mantine\\.colors\\.orange\\[8\\]\\/20[data-missing]{--mix-background: color-mix(in srgb, var(--colors-mantine-colors-orange\\[8\\]) 20%, transparent);background:var(--mix-background, var(--colors-mantine-colors-orange\\[8\\]))}[data-mantine-color-scheme=light] .light\\:bg_mantine\\.colors\\.gray\\[3\\]\\/20{--mix-background: color-mix(in srgb, var(--colors-mantine-colors-gray\\[3\\]) 20%, transparent);background:var(--mix-background, var(--colors-mantine-colors-gray\\[3\\]))}[data-mantine-color-scheme=dark] .dark\\:bg_mantine\\.colors\\.dark\\[6\\]\\/80{--mix-background: color-mix(in srgb, var(--colors-mantine-colors-dark\\[6\\]) 80%, transparent);background:var(--mix-background, var(--colors-mantine-colors-dark\\[6\\]))}[data-mantine-color-scheme=light] .light\\:bg_mantine\\.colors\\.white\\/80{--mix-background: color-mix(in srgb, var(--colors-mantine-colors-white) 80%, transparent);background:var(--mix-background, var(--colors-mantine-colors-white))}[data-mantine-color-scheme=light] .light\\:bd-c_mantine\\.colors\\.gray\\[4\\]{border-color:var(--colors-mantine-colors-gray\\[4\\])}[data-mantine-color-scheme=dark] .dark\\:bd-c_mantine\\.colors\\.dark\\[4\\]{border-color:var(--colors-mantine-colors-dark\\[4\\])}.likec4-root:is([data-likec4-diagram-panning=true]) .whenPanning\\:transition_none\\!{transition:none!important}[data-mantine-color-scheme=light] .light\\:bd-c_mantine\\.colors\\.gray\\[2\\]{border-color:var(--colors-mantine-colors-gray\\[2\\])}[data-mantine-color-scheme=dark] .dark\\:bd-c_mantine\\.colors\\.dark\\[7\\]{border-color:var(--colors-mantine-colors-dark\\[7\\])}.likec4-root:is([data-likec4-reduced-graphics]) .reduceGraphics\\:transition_none{transition:none}.likec4-root:not([data-likec4-reduced-graphics]) .noReduceGraphics\\:transition_stroke_130ms_ease-out\\,stroke-width_130ms_ease-out{transition:stroke .13s ease-out,stroke-width .13s ease-out}:where(.react-flow__node,.react-flow__edge):has([data-likec4-hovered=true]) .whenHovered\\:bdr_4{border-radius:4px}.\\[\\&_\\.mantine-ThemeIcon-root\\]\\:transition_fast .mantine-ThemeIcon-root{transition:all var(--durations-fast) var(--easings-in-out)}.\\[\\&_\\>_\\*\\]\\:transition_all_130ms_\\{easings\\.inOut\\}>*{transition:all .13s var(--easings-in-out)}.\\[\\&\\[data-active\\]\\]\\:transition_none[data-active]{transition:none}.\\[\\&_\\>_\\*\\]\\:transition_fast>*,.\\[\\&_\\.tabler-icon\\]\\:transition_fast .tabler-icon{transition:all var(--durations-fast) var(--easings-in-out)}.\\[\\&\\[data-missing\\]\\]\\:bd-c_mantine\\.colors\\.orange\\[5\\]\\/20[data-missing]{--mix-borderColor: color-mix(in srgb, var(--colors-mantine-colors-orange\\[5\\]) 20%, transparent);border-color:var(--mix-borderColor, var(--colors-mantine-colors-orange\\[5\\]))}[data-mantine-color-scheme=light] .light\\:bd-c_mantine\\.colors\\.gray\\[3\\]{border-color:var(--colors-mantine-colors-gray\\[3\\])}.\\[\\&\\:last-child_\\.likec4-edge-label\\]\\:bd-b_none:last-child .likec4-edge-label{border-bottom:var(--borders-none)}.\\[\\&_\\>_\\*\\]\\:transition_all_0\\.15s_ease-in>*{transition:all .15s ease-in}[data-mantine-color-scheme=dark] .dark\\:bd-c_transparent{border-color:var(--colors-transparent)}:where([data-likec4-selected=true],[data-likec4-hovered=true]) .\\[\\:where\\(\\[data-likec4-selected\\=\\'true\\'\\]\\,_\\[data-likec4-hovered\\=\\'true\\'\\]\\)_\\&\\]\\:transition_fill-opacity_150ms_ease-out\\,_stroke_150ms_ease-out\\,_stroke-width_150ms_ease-out{transition:fill-opacity .15s ease-out,stroke .15s ease-out,stroke-width .15s ease-out}.\\[\\&_\\:where\\(\\.likec4-diagram\\,_\\.likec4-compound-node\\,_\\.likec4-element-node\\)\\]\\:cursor_pointer :where(.likec4-diagram,.likec4-compound-node,.likec4-element-node){cursor:pointer}.backdrop\\:cursor_zoom-out::backdrop{cursor:zoom-out}.backdrop\\:bkdp_blur\\(18px\\)::backdrop{backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}.\\[\\&\\:is\\(\\[data-position\\=\\"left\\"\\]\\)\\]\\:c_mantine\\.colors\\.dimmed:is([data-position=left]){color:var(--colors-mantine-colors-dimmed)}.\\[\\&\\:is\\(\\[data-position\\=\\"left\\"\\]\\)\\]\\:us_none:is([data-position=left]){-webkit-user-select:none;user-select:none}.\\[\\&\\:is\\(\\[data-position\\=\\"left\\"\\]\\)\\]\\:pointer-events_none:is([data-position=left]){pointer-events:none}[data-mantine-color-scheme=light] .light\\:fill_\\[\\#222221\\]{fill:#222221}.\\[\\&_\\.tabler-icon\\]\\:c_mantine\\.colors\\.text .tabler-icon{color:var(--colors-mantine-colors-text)}.likec4-root:is([data-likec4-diagram-panning=true]) .whenPanning\\:bx-sh_none\\!{box-shadow:var(--shadows-none)!important}[data-mantine-color-scheme=light] .light\\:c_mantine\\.colors\\.gray\\[7\\]{color:var(--colors-mantine-colors-gray\\[7\\])}[data-mantine-color-scheme=dark] .dark\\:c_mantine\\.colors\\.dark\\[0\\]{color:var(--colors-mantine-colors-dark\\[0\\])}[data-mantine-color-scheme=light] .light\\:bg-c_mantine\\.colors\\.gray\\[2\\]\\/70{--mix-backgroundColor: color-mix(in srgb, var(--colors-mantine-colors-gray\\[2\\]) 70%, transparent);background-color:var(--mix-backgroundColor, var(--colors-mantine-colors-gray\\[2\\]))}[data-mantine-color-scheme=dark] .dark\\:bg-c_mantine\\.colors\\.dark\\[8\\]\\/70{--mix-backgroundColor: color-mix(in srgb, var(--colors-mantine-colors-dark\\[8\\]) 70%, transparent);background-color:var(--mix-backgroundColor, var(--colors-mantine-colors-dark\\[8\\]))}.empty\\:d_none:is(:empty,[data-empty]){display:none}.\\[\\&_\\>_mark\\]\\:bg-c_mantine\\.colors\\.yellow\\[2\\]\\/90>mark{--mix-backgroundColor: color-mix(in srgb, var(--colors-mantine-colors-yellow\\[2\\]) 90%, transparent);background-color:var(--mix-backgroundColor, var(--colors-mantine-colors-yellow\\[2\\]))}[data-mantine-color-scheme=dark] .dark\\:op_0\\.5{opacity:.5}[data-mantine-color-scheme=dark] .dark\\:bg-c_mantine\\.colors\\.dark\\[5\\]\\/80{--mix-backgroundColor: color-mix(in srgb, var(--colors-mantine-colors-dark\\[5\\]) 80%, transparent);background-color:var(--mix-backgroundColor, var(--colors-mantine-colors-dark\\[5\\]))}.placeholder\\:c_mantine\\.colors\\.dimmed::placeholder,.placeholder\\:c_mantine\\.colors\\.dimmed[data-placeholder]{color:var(--colors-mantine-colors-dimmed)}[data-mantine-color-scheme=dark] .dark\\:c_mantine\\.colors\\.dark\\[3\\]{color:var(--colors-mantine-colors-dark\\[3\\])}[data-mantine-color-scheme=light] .light\\:bg-c_\\[rgb\\(250_250_250_\\/_var\\(--_opacity\\,_95\\%\\)\\)\\]{background-color:rgb(250 250 250 / var(--_opacity, 95%))}.likec4-root:not([data-likec4-reduced-graphics]) .noReduceGraphics\\:trs-prop_stroke-width\\,_stroke-opacity{--transition-prop: stroke-width, stroke-opacity;transition-property:stroke-width,stroke-opacity}.likec4-root:not([data-likec4-reduced-graphics]) .noReduceGraphics\\:trs-dur_fast{--transition-duration: var(--durations-fast);transition-duration:var(--durations-fast)}.likec4-root:not([data-likec4-reduced-graphics]) .noReduceGraphics\\:trs-tmf_inOut{--transition-easing: var(--easings-in-out);transition-timing-function:var(--easings-in-out)}:where(.react-flow__node,.react-flow__edge):has([data-likec4-hovered=true]) .whenHovered\\:trs-tmf_out{--transition-easing: var(--easings-out);transition-timing-function:var(--easings-out)}:where(.react-flow__node,.react-flow__edge):has([data-likec4-hovered=true]) .whenHovered\\:stk-w_calc\\(var\\(--xy-edge-stroke-width\\)_\\+_4\\){stroke-width:calc(var(--xy-edge-stroke-width) + 4)}:where(.react-flow__node,.react-flow__edge):has([data-likec4-hovered=true]) .whenHovered\\:stk-op_0\\.2{stroke-opacity:.2}:where(.react-flow__node,.react-flow__edge):is(.selected) .whenSelected\\:stk-w_calc\\(var\\(--xy-edge-stroke-width\\)_\\+_6\\){stroke-width:calc(var(--xy-edge-stroke-width) + 6)}:where(.react-flow__node,.react-flow__edge):is(.selected) .whenSelected\\:stk-op_0\\.25{stroke-opacity:.25}.likec4-root:not([data-likec4-reduced-graphics]) .noReduceGraphics\\:anim-ps_paused{animation-play-state:paused}:where([data-edge-dir=back]) .\\[\\:where\\(\\[data-edge-dir\\=\\'back\\'\\]\\)_\\&\\]\\:anim-dir_reverse{animation-direction:reverse}:where(.react-flow__node,.react-flow__edge):has([data-likec4-dimmed]) .whenDimmed\\:anim-ps_paused{animation-play-state:paused}:where([data-likec4-zoom-small=true]) .smallZoom\\:anim-n_none{animation-name:none}.likec4-root:is([data-likec4-diagram-panning=true]) .whenPanning\\:stk-dsh_none\\!{stroke-dasharray:none!important}.likec4-root:is([data-likec4-diagram-panning=true]) .whenPanning\\:anim-ps_paused{animation-play-state:paused}:where([data-likec4-zoom-small=true]) .smallZoom\\:d_none{display:none}:where(.react-flow__node,.react-flow__edge):is(.selectable) .whenSelectable\\:pointer-events_all{pointer-events:all}:where(.react-flow__node.selectable:not(.dragging)) .\\[\\:where\\(\\.react-flow__node\\.selectable\\:not\\(\\.dragging\\)\\)_\\&\\]\\:cursor_pointer{cursor:pointer}:where(.react-flow__node,.react-flow__edge):has([data-likec4-hovered=true]) .whenHovered\\:trs-dly_\\.08s{transition-delay:.08s}.likec4-root:is([data-likec4-diagram-panning=true]) .whenPanning\\:pointer-events_none{pointer-events:none}[data-mantine-color-scheme=light] .light\\:c_var\\(--likec4-palette-hiContrast\\){color:var(--likec4-palette-hiContrast)}[data-mantine-color-scheme=dark] .dark\\:c_var\\(--likec4-palette-loContrast\\){color:var(--likec4-palette-loContrast)}[data-mantine-color-scheme=dark] .dark\\:c_mantine\\.colors\\.gray\\[4\\]{color:var(--colors-mantine-colors-gray\\[4\\])}[data-mantine-color-scheme=light] .light\\:c_mantine\\.colors\\.gray\\[8\\]{color:var(--colors-mantine-colors-gray\\[8\\])}[data-mantine-color-scheme=light] .light\\:c_mantine\\.colors\\.gray\\[9\\]{color:var(--colors-mantine-colors-gray\\[9\\])}.\\[\\&\\:is\\(\\[data-position\\=\\"right\\"\\]\\)\\]\\:ms_1:is([data-position=right]){margin-inline-start:var(--spacing-1)}.\\[\\&_\\:where\\(button\\,_\\.action-icon\\,_\\[role\\=\\'dialog\\'\\]\\)\\]\\:pointer-events_all :where(button,.action-icon,[role=dialog]){pointer-events:all}.likec4-root:is([data-likec4-diagram-panning=true]) .whenPanning\\:bx-sh_none{box-shadow:var(--shadows-none)}.backdrop\\:bkdp_auto::backdrop{backdrop-filter:var(--backdrop-blur, ) var(--backdrop-brightness, ) var(--backdrop-contrast, ) var(--backdrop-grayscale, ) var(--backdrop-hue-rotate, ) var(--backdrop-invert, ) var(--backdrop-opacity, ) var(--backdrop-saturate, ) var(--backdrop-sepia, );-webkit-backdrop-filter:var(--backdrop-blur, ) var(--backdrop-brightness, ) var(--backdrop-contrast, ) var(--backdrop-grayscale, ) var(--backdrop-hue-rotate, ) var(--backdrop-invert, ) var(--backdrop-opacity, ) var(--backdrop-saturate, ) var(--backdrop-sepia, )}.backdrop\\:bkdp-blur_var\\(--_blur\\)::backdrop{--backdrop-blur: blur(var(--_blur))}.backdrop\\:bg-c_\\[rgb\\(36_36_36_\\/_var\\(--_opacity\\,_5\\%\\)\\)\\]::backdrop{background-color:rgb(36 36 36 / var(--_opacity, 5%))}[data-mantine-color-scheme=dark] .dark\\:bg-c_mantine\\.colors\\.dark\\[6\\]{background-color:var(--colors-mantine-colors-dark\\[6\\])}.\\[\\&_\\.react-flow__attribution\\]\\:d_none .react-flow__attribution{display:none}[data-mantine-color-scheme=dark] .dark\\:mix-bm_hard-light{mix-blend-mode:hard-light}.\\[\\&_\\:where\\(svg\\,_img\\)\\]\\:pointer-events_none :where(svg,img){pointer-events:none}.\\[\\&_\\:where\\(svg\\,_img\\)\\]\\:filter_drop-shadow\\(0_0_3px_rgb\\(0_0_0_\\/_10\\%\\)\\)_drop-shadow\\(0_1px_8px_rgb\\(0_0_0_\\/_5\\%\\)\\)_drop-shadow\\(1px_1px_16px_rgb\\(0_0_0_\\/_2\\%\\)\\) :where(svg,img){filter:drop-shadow(0 0 3px rgb(0 0 0 / 10%)) drop-shadow(0 1px 8px rgb(0 0 0 / 5%)) drop-shadow(1px 1px 16px rgb(0 0 0 / 2%))}.\\[\\&_img\\]\\:obj-f_contain img{object-fit:contain}.\\[\\&_\\.mantine-ThemeIcon-root\\]\\:c_\\[var\\(--icon-color\\,_\\{colors\\.mantine\\.colors\\.dark\\[2\\]\\}\\)\\] .mantine-ThemeIcon-root{color:var(--icon-color, var(--colors-mantine-colors-dark\\[2\\]))}.\\[\\&\\[data-active\\]\\]\\:bx-sh_xs[data-active]{box-shadow:var(--shadows-xs)}.\\[\\&\\[data-active\\]\\]\\:c_mantine\\.colors\\.defaultColor[data-active]{color:var(--colors-mantine-colors-default-color)}[data-mantine-color-scheme=dark] .dark\\:c_mantine\\.colors\\.dark\\[1\\]{color:var(--colors-mantine-colors-dark\\[1\\])}[data-mantine-color-scheme=dark] .dark\\:bg-c_mantine\\.colors\\.dark\\[9\\]{background-color:var(--colors-mantine-colors-dark\\[9\\])}[data-mantine-color-scheme=dark] .dark\\:c_mantine\\.colors\\.text{color:var(--colors-mantine-colors-text)}[data-mantine-color-scheme=dark] .dark\\:c_mantine\\.colors\\.dark\\[2\\]{color:var(--colors-mantine-colors-dark\\[2\\])}[data-mantine-color-scheme=dark] .dark\\:c_mantine\\.colors\\.gray\\.lightColor{color:var(--colors-mantine-colors-gray-light-color)}.\\[\\&_\\.tabler-icon\\]\\:op_0\\.65 .tabler-icon{opacity:.65}.\\[\\&\\[data-missing\\]\\]\\:c_mantine\\.colors\\.orange\\[4\\][data-missing]{color:var(--colors-mantine-colors-orange\\[4\\])}.before\\:content_\\"scope\\:\\":before{content:"scope:"}.before\\:pos_absolute:before{position:absolute}.before\\:fs_xxs:before{font-size:var(--font-sizes-xxs)}.before\\:fw_500:before{font-weight:500}.before\\:lh_1:before{line-height:var(--line-heights-1)}.before\\:c_mantine\\.colors\\.dimmed:before{color:var(--colors-mantine-colors-dimmed)}.before\\:op_0\\.85:before{opacity:.85}.before\\:trf_translateY\\(-100\\%\\)_translateY\\(-2px\\):before{transform:translateY(-100%) translateY(-2px)}.\\[\\&\\[data-zero\\]\\]\\:c_mantine\\.colors\\.dimmed[data-zero]{color:var(--colors-mantine-colors-dimmed)}.\\[\\&_\\.mantine-Text-root\\]\\:c_mantine\\.colors\\.text\\/90 .mantine-Text-root{--mix-color: color-mix(in srgb, var(--colors-mantine-colors-text) 90%, transparent);color:var(--mix-color, var(--colors-mantine-colors-text))}.\\[\\&_\\.mantine-Text-root\\]\\:fs_xs .mantine-Text-root{font-size:var(--font-sizes-xs)}.\\[\\&_\\.mantine-Text-root\\]\\:fw_500 .mantine-Text-root{font-weight:500}.\\[\\&_\\.mantine-Text-root\\]\\:lh_1\\.2 .mantine-Text-root{line-height:1.2}.\\[\\&_\\.mantine-Text-root\\]\\:fs_xxs .mantine-Text-root{font-size:var(--font-sizes-xxs)}.\\[\\&_\\.mantine-Text-root\\]\\:fw_400 .mantine-Text-root{font-weight:400}.\\[\\&_\\.mantine-Text-root\\]\\:lh_xs .mantine-Text-root{line-height:var(--line-heights-xs)}.\\[\\&_\\.mantine-Text-root\\]\\:c_mantine\\.colors\\.dimmed .mantine-Text-root{color:var(--colors-mantine-colors-dimmed)}.\\[\\&\\[data-disabled\\]_\\.mantine-ThemeIcon-root\\]\\:op_0\\.45[data-disabled] .mantine-ThemeIcon-root{opacity:.45}:where(.likec4-view-btn[data-disabled]) .\\[\\:where\\(\\.likec4-view-btn\\[data-disabled\\]\\)_\\&\\]\\:op_0\\.85{opacity:.85}[data-mantine-color-scheme=light] .light\\:c_mantine\\.colors\\.gray\\[5\\]{color:var(--colors-mantine-colors-gray\\[5\\])}.\\[\\&_svg\\,_\\&_img\\]\\:pointer-events_none svg,.\\[\\&_svg\\,_\\&_img\\]\\:pointer-events_none img{pointer-events:none}.\\[\\&\\.likec4-shape-icon_svg\\]\\:stk-w_1\\.5.likec4-shape-icon svg{stroke-width:1.5}:where([data-disabled]) .\\[\\:where\\(\\[data-disabled\\]\\)_\\&\\]\\:op_0\\.4{opacity:.4}:where([data-disabled]) .\\[\\:where\\(\\[data-disabled\\]\\)_\\&\\]\\:op_0\\.85{opacity:.85}[data-mantine-color-scheme=light] .light\\:bg-c_\\[rgb\\(255_255_255_\\/_0\\.6\\)\\]{background-color:#fff9}:where([data-likec4-selected=true],[data-likec4-hovered=true]) .\\[\\:where\\(\\[data-likec4-selected\\=\\'true\\'\\]\\,_\\[data-likec4-hovered\\=\\'true\\'\\]\\)_\\&\\]\\:vis_visible{visibility:visible}:where([data-likec4-selected=true],[data-likec4-hovered=true]) .\\[\\:where\\(\\[data-likec4-selected\\=\\'true\\'\\]\\,_\\[data-likec4-hovered\\=\\'true\\'\\]\\)_\\&\\]\\:trs-dly_50ms{transition-delay:50ms}:where([data-likec4-selected=true],[data-likec4-hovered=true]) .\\[\\:where\\(\\[data-likec4-selected\\=\\'true\\'\\]\\,_\\[data-likec4-hovered\\=\\'true\\'\\]\\)_\\&\\]\\:fill-opacity_1{fill-opacity:1}:where([data-likec4-selected=true],[data-likec4-hovered=true]) .\\[\\:where\\(\\[data-likec4-selected\\=\\'true\\'\\]\\,_\\[data-likec4-hovered\\=\\'true\\'\\]\\)_\\&\\]\\:stk-w_12{stroke-width:12}.\\[\\&_\\*\\]\\:cursor_grabbing\\! *,.\\[\\&_\\.react-flow__edge-interaction\\]\\:cursor_grabbing\\! .react-flow__edge-interaction{cursor:grabbing!important}.\\[\\&_\\+_\\.likec4-element-shape\\]\\:ring-c_likec4\\.compare\\.manual\\.outline+.likec4-element-shape{outline-color:var(--colors-likec4-compare-manual-outline)}.\\[\\&_\\+_\\.likec4-element-shape\\]\\:ring-w_2px+.likec4-element-shape{outline-width:2px}.\\[\\&_\\+_\\.likec4-element-shape\\]\\:outline-style_solid+.likec4-element-shape{outline-style:solid}.\\[\\&_\\+_\\.likec4-element-shape\\]\\:ring-o_1+.likec4-element-shape{outline-offset:var(--spacing-1)}[data-mantine-color-scheme=dark] .dark\\:bg-c_mantine\\.colors\\.dark\\[6\\]\\/80{--mix-backgroundColor: color-mix(in srgb, var(--colors-mantine-colors-dark\\[6\\]) 80%, transparent);background-color:var(--mix-backgroundColor, var(--colors-mantine-colors-dark\\[6\\]))}.\\[\\&_\\.mantine-ScrollArea-viewport\\]\\:min-h_100\\% .mantine-ScrollArea-viewport{min-height:var(--sizes-100\\%)}:where([data-likec4-shape=browser]) .shapeBrowser\\:right_\\[5px\\]{right:5px}:where([data-likec4-shape=cylinder]) .shapeCylinder\\:top_\\[14px\\]{top:14px}:where([data-likec4-shape=storage]) .shapeStorage\\:top_\\[14px\\]{top:14px}:where([data-likec4-shape=queue]) .shapeQueue\\:top_\\[1px\\]{top:1px}:where([data-likec4-shape=queue]) .shapeQueue\\:right_3{right:var(--spacing-3)}:where([data-likec4-shape=cylinder]) .shapeCylinder\\:bottom_\\[5px\\]{bottom:5px}:where([data-likec4-shape=storage]) .shapeStorage\\:bottom_\\[5px\\]{bottom:5px}:where([data-likec4-shape=queue]) .shapeQueue\\:bottom_0{bottom:var(--spacing-0)}:where([data-likec4-shape=queue]) .shapeQueue\\:pl_\\[14px\\]{padding-left:14px}:where(.react-flow__node,.react-flow__edge):has([data-likec4-hovered=true]) .whenHovered\\:h_12{height:12px}[data-mantine-color-scheme=dark] .dark\\:bd-l-c_mantine\\.colors\\.dark\\[4\\]{border-left-color:var(--colors-mantine-colors-dark\\[4\\])}.\\[\\&_\\>_svg\\]\\:w_70\\%>svg{width:70%}.\\[\\&_\\>_svg\\]\\:h_70\\%>svg{height:70%}.\\[\\&_\\.tabler-icon\\]\\:w_65\\% .tabler-icon{width:65%}.\\[\\&_\\.tabler-icon\\]\\:h_65\\% .tabler-icon{height:65%}.\\[\\&_\\:where\\(svg\\,_img\\)\\]\\:w_100\\% :where(svg,img){width:var(--sizes-100\\%)}.\\[\\&_\\:where\\(svg\\,_img\\)\\]\\:h_auto :where(svg,img){height:auto}.\\[\\&_\\:where\\(svg\\,_img\\)\\]\\:max-h_100\\% :where(svg,img){max-height:var(--sizes-100\\%)}.\\[\\&\\:not\\(\\:has\\(\\.mantine-ScrollArea-root\\)\\)\\]\\:pl_1:not(:has(.mantine-ScrollArea-root)){padding-left:var(--spacing-1)}.\\[\\&\\:not\\(\\:has\\(\\.mantine-ScrollArea-root\\)\\)\\]\\:pr_1:not(:has(.mantine-ScrollArea-root)){padding-right:var(--spacing-1)}.\\[\\&_\\.mantine-ScrollArea-root\\]\\:w_100\\% .mantine-ScrollArea-root{width:var(--sizes-100\\%)}.\\[\\&_\\.mantine-ScrollArea-root\\]\\:h_100\\% .mantine-ScrollArea-root{height:var(--sizes-100\\%)}.\\[\\&\\[data-level\\=\\'1\\'\\]\\]\\:mb_sm[data-level="1"]{margin-bottom:var(--spacing-sm)}.\\[\\&_\\.tabler-icon\\]\\:w_90\\% .tabler-icon{width:90%}.before\\:top_0:before{top:var(--spacing-0)}.before\\:left_2:before{left:var(--spacing-2)}.\\[\\&\\:last-child_\\.likec4-edge-label\\]\\:mb_0:last-child .likec4-edge-label{margin-bottom:var(--spacing-0)}.\\[\\&_svg\\,_\\&_img\\]\\:w_100\\% svg,.\\[\\&_svg\\,_\\&_img\\]\\:w_100\\% img{width:var(--sizes-100\\%)}.\\[\\&_svg\\,_\\&_img\\]\\:h_auto svg,.\\[\\&_svg\\,_\\&_img\\]\\:h_auto img{height:auto}.\\[\\&_svg\\,_\\&_img\\]\\:max-h_100\\% svg,.\\[\\&_svg\\,_\\&_img\\]\\:max-h_100\\% img{max-height:var(--sizes-100\\%)}:is(.\\[\\&_\\+_\\&\\]\\:mt_\\[32px\\])+:is(.\\[\\&_\\+_\\&\\]\\:mt_\\[32px\\]){margin-top:32px}:where(.react-flow__node,.react-flow__edge):has([data-likec4-hovered=true]) .whenHovered\\:w_7px{width:7px}:where(.react-flow__node,.react-flow__edge):is(.selected) .whenSelected\\:w_7px{width:7px}.focusWithin\\:bg_mantine\\.colors\\.gray\\[4\\]\\/55\\!:focus-within{--mix-background: color-mix(in srgb, var(--colors-mantine-colors-gray\\[4\\]) 55%, transparent) !important;background:var(--mix-background, var(--colors-mantine-colors-gray\\[4\\]))!important}.group:focus-within .groupFocusWithin\\:op_1{opacity:1}.group:focus-within .groupFocusWithin\\:grayscale_0{--grayscale: grayscale(0)}.focus\\:bg_mantine\\.colors\\.primary\\[8\\]:is(:focus,[data-focus]){background:var(--colors-mantine-colors-primary\\[8\\])}.mantine-Tree-node:focus>.mantine-Tree-label .\\[\\.mantine-Tree-node\\:focus_\\>_\\.mantine-Tree-label_\\&\\]\\:bg_mantine\\.colors\\.primary\\[8\\]{background:var(--colors-mantine-colors-primary\\[8\\])}.group:is(:focus,[data-focus]) .groupFocus\\:transition_none{transition:none}.focus\\:ring_none:is(:focus,[data-focus]){outline:var(--borders-none)}.focusVisible\\:ring_none:is(:focus-visible,[data-focus-visible]){outline:var(--borders-none)}.focus\\:bd-c_mantine\\.colors\\.primary\\[9\\]:is(:focus,[data-focus]){border-color:var(--colors-mantine-colors-primary\\[9\\])}.mantine-Tree-node:focus>.mantine-Tree-label .\\[\\.mantine-Tree-node\\:focus_\\>_\\.mantine-Tree-label_\\&\\]\\:ring_none{outline:var(--borders-none)}.mantine-Tree-node:focus>.mantine-Tree-label .\\[\\.mantine-Tree-node\\:focus_\\>_\\.mantine-Tree-label_\\&\\]\\:bd-c_mantine\\.colors\\.primary\\[9\\]{border-color:var(--colors-mantine-colors-primary\\[9\\])}.group:is(:focus,[data-focus]) .groupFocus\\:c_\\[inherit\\]\\!{color:inherit!important}.group:is(:focus,[data-focus]) .groupFocus\\:op_0\\.5{opacity:.5}.group:is(:focus,[data-focus]) .groupFocus\\:op_0\\.8{opacity:.8}.focus\\:bg-c_mantine\\.colors\\.gray\\[2\\]:is(:focus,[data-focus]){background-color:var(--colors-mantine-colors-gray\\[2\\])}.focus\\:c_mantine\\.colors\\.primary\\.lightColor\\!:is(:focus,[data-focus]){color:var(--colors-mantine-colors-primary-light-color)!important}.focus\\:bg-c_mantine\\.colors\\.primary\\.lightHover\\!:is(:focus,[data-focus]){background-color:var(--colors-mantine-colors-primary-light-hover)!important}.group:is(:focus,[data-focus]) .groupFocus\\:c_mantine\\.colors\\.primary\\[0\\]{color:var(--colors-mantine-colors-primary\\[0\\])}.mantine-Tree-node:focus>.mantine-Tree-label .\\[\\.mantine-Tree-node\\:focus_\\>_\\.mantine-Tree-label_\\&\\]\\:c_mantine\\.colors\\.primary\\[0\\]{color:var(--colors-mantine-colors-primary\\[0\\])}.group:is(:focus,[data-focus]) .groupFocus\\:c_mantine\\.colors\\.primary\\[1\\]{color:var(--colors-mantine-colors-primary\\[1\\])}.mantine-Tree-node:focus>.mantine-Tree-label .\\[\\.mantine-Tree-node\\:focus_\\>_\\.mantine-Tree-label_\\&\\]\\:c_mantine\\.colors\\.primary\\[1\\]{color:var(--colors-mantine-colors-primary\\[1\\])}.hover\\:--icon-color_\\{colors\\.mantine\\.colors\\.dark\\[1\\]\\}:is(:hover,[data-hover]){--icon-color: var(--colors-mantine-colors-dark\\[1\\])}.hover\\:--view-title-color_\\{colors\\.mantine\\.colors\\.defaultColor\\}:is(:hover,[data-hover]){--view-title-color: var(--colors-mantine-colors-default-color)}.hover\\:bg_mantine\\.colors\\.defaultHover:is(:hover,[data-hover]){background:var(--colors-mantine-colors-default-hover)}.hover\\:bg_mantine\\.colors\\.gray\\[3\\]:is(:hover,[data-hover]){background:var(--colors-mantine-colors-gray\\[3\\])}.hover\\:bg_mantine\\.colors\\.gray\\.lightHover:is(:hover,[data-hover]){background:var(--colors-mantine-colors-gray-light-hover)}.hover\\:bg_mantine\\.colors\\.primary\\[8\\]\\/60:is(:hover,[data-hover]){--mix-background: color-mix(in srgb, var(--colors-mantine-colors-primary\\[8\\]) 60%, transparent);background:var(--mix-background, var(--colors-mantine-colors-primary\\[8\\]))}.group:is(:hover,[data-hover]) .groupHover\\:bg_mantine\\.colors\\.gray\\[3\\]\\/35{--mix-background: color-mix(in srgb, var(--colors-mantine-colors-gray\\[3\\]) 35%, transparent);background:var(--mix-background, var(--colors-mantine-colors-gray\\[3\\]))}.hover\\:td_underline:is(:hover,[data-hover]){text-decoration:underline}.hover\\:bd-c_mantine\\.colors\\.defaultBorder:is(:hover,[data-hover]){border-color:var(--colors-mantine-colors-default-border)}.hover\\:bd-w_4px:is(:hover,[data-hover]){border-width:4px}.hover\\:bd-c_mantine\\.colors\\.dark\\[1\\]:is(:hover,[data-hover]){border-color:var(--colors-mantine-colors-dark\\[1\\])}.hover\\:border-style_solid:is(:hover,[data-hover]){border-style:solid}.\\[\\&\\:is\\(\\:hover\\,_\\[data-selected\\=true\\]\\)_\\>_\\*\\]\\:transition_all_0\\.15s_ease-out:is(:hover,[data-selected=true])>*{transition:all .15s ease-out}.hover\\:ring_none:is(:hover,[data-hover]){outline:var(--borders-none)}.hover\\:bd-c_mantine\\.colors\\.primary\\[9\\]:is(:hover,[data-hover]){border-color:var(--colors-mantine-colors-primary\\[9\\])}.hover\\:transition_stroke_100ms_ease-out\\,_stroke-width_100ms_ease-out:is(:hover,[data-hover]){transition:stroke .1s ease-out,stroke-width .1s ease-out}.hover\\:transition_all_120ms_ease-out:is(:hover,[data-hover]){transition:all .12s ease-out}.hover\\:op_1:is(:hover,[data-hover]){opacity:1}.hover\\:bg-c_mantine\\.colors\\.gray\\[1\\]:is(:hover,[data-hover]){background-color:var(--colors-mantine-colors-gray\\[1\\])}.hover\\:bx-sh_sm:is(:hover,[data-hover]){box-shadow:var(--shadows-sm)}.group:is(:hover,[data-hover]) .groupHover\\:c_mantine\\.colors\\.dimmed{color:var(--colors-mantine-colors-dimmed)}.group:is(:hover,[data-hover]) .groupHover\\:op_0\\.5{opacity:.5}.group:is(:hover,[data-hover]) .groupHover\\:op_0\\.8{opacity:.8}.hover\\:bg-c_mantine\\.colors\\.gray\\[2\\]:is(:hover,[data-hover]){background-color:var(--colors-mantine-colors-gray\\[2\\])}.hover\\:bg-c_likec4\\.panel\\.action\\.warning\\.bg\\.hover:is(:hover,[data-hover]){background-color:var(--colors-likec4-panel-action-warning-bg-hover)}.hover\\:c_likec4\\.panel\\.action\\.hover:is(:hover,[data-hover]){color:var(--colors-likec4-panel-action-hover)}.hover\\:c_likec4\\.panel\\.action:is(:hover,[data-hover]){color:var(--colors-likec4-panel-action)}.hover\\:trs-dly_0s:is(:hover,[data-hover]){transition-delay:0s}.hover\\:bg-c_likec4\\.panel\\.action\\.bg\\.hover:is(:hover,[data-hover]){background-color:var(--colors-likec4-panel-action-bg-hover)}.\\[\\&\\:hover_\\>_\\*\\]\\:trs-tmf_out:hover>*{--transition-easing: var(--easings-out);transition-timing-function:var(--easings-out)}.\\[\\&\\:hover_\\>_\\*\\]\\:trf_translateX\\(1\\.6px\\):hover>*{transform:translate(1.6px)}.hover\\:trs-tmf_out:is(:hover,[data-hover]){--transition-easing: var(--easings-out);transition-timing-function:var(--easings-out)}.hover\\:c_mantine\\.colors\\.defaultColor:is(:hover,[data-hover]){color:var(--colors-mantine-colors-default-color)}.hover\\:c_mantine\\.colors\\.primary\\[6\\]:is(:hover,[data-hover]){color:var(--colors-mantine-colors-primary\\[6\\])}.\\[\\&\\:is\\(\\:hover\\,_\\[data-selected\\=true\\]\\)_\\>_\\*\\]\\:cursor_pointer:is(:hover,[data-selected=true])>*{cursor:pointer}.\\[\\&\\:is\\(\\:hover\\,_\\[data-selected\\=true\\]\\)_\\>_\\*\\]\\:bg-c_mantine\\.colors\\.defaultHover:is(:hover,[data-selected=true])>*{background-color:var(--colors-mantine-colors-default-hover)}.hover\\:bg-c_mantine\\.colors\\.gray\\[0\\]:is(:hover,[data-hover]){background-color:var(--colors-mantine-colors-gray\\[0\\])}.group:is(:hover,[data-hover]) .groupHover\\:op_1{opacity:1}.group:is(:hover,[data-hover]) .groupHover\\:grayscale_0{--grayscale: grayscale(0)}.group:is(:hover,[data-hover]) .groupHover\\:c_mantine\\.colors\\.primary\\[0\\]{color:var(--colors-mantine-colors-primary\\[0\\])}.group:is(:hover,[data-hover]) .groupHover\\:c_mantine\\.colors\\.primary\\[1\\]{color:var(--colors-mantine-colors-primary\\[1\\])}.hover\\:fill-opacity_1:is(:hover,[data-hover]){fill-opacity:1}.hover\\:stk_mantine\\.colors\\.primary\\.filledHover:is(:hover,[data-hover]){stroke:var(--colors-mantine-colors-primary-filled-hover)}.hover\\:stk-w_18:is(:hover,[data-hover]){stroke-width:18}.hover\\:bg-c_mantine\\.colors\\.primary\\[2\\]\\/50:is(:hover,[data-hover]){--mix-backgroundColor: color-mix(in srgb, var(--colors-mantine-colors-primary\\[2\\]) 50%, transparent);background-color:var(--mix-backgroundColor, var(--colors-mantine-colors-primary\\[2\\]))}.group:is(:active,[data-active]) .groupActive\\:op_0\\.5{opacity:.5}.group:is(:active,[data-active]) .groupActive\\:op_0\\.8{opacity:.8}.active\\:trf_translateY\\(-3px\\):is(:active,[data-active]){transform:translateY(-3px)}.likec4-root:is([data-likec4-reduced-graphics]) .reduceGraphics\\:\\[\\&_\\.action-icon\\]\\:--ai-radius_0px .action-icon{--ai-radius: 0px}:where(.react-flow__node,.react-flow__edge):is(.selectable) .whenSelectable\\:before\\:bg_transparent:before{background:var(--colors-transparent)}[data-mantine-color-scheme=dark] .dark\\:\\[\\&\\:is\\(\\[data-active\\]\\)\\]\\:bg_mantine\\.colors\\.dark\\[5\\]:is([data-active]){background:var(--colors-mantine-colors-dark\\[5\\])}[data-mantine-color-scheme=light] .light\\:\\[\\&_\\.mantine-SegmentedControl-root\\]\\:bg_mantine\\.colors\\.gray\\[3\\] .mantine-SegmentedControl-root{background:var(--colors-mantine-colors-gray\\[3\\])}.group:is(:hover,[data-hover]) .\\[\\&\\:is\\(\\[data-position\\=\\"left\\"\\]\\)\\]\\:groupHover\\:c_\\[var\\(--badge-color\\)\\]:is([data-position=left]){color:var(--badge-color)}.group:is(:hover,[data-hover]) .\\[\\&\\:is\\(\\[data-position\\=\\"left\\"\\]\\)\\]\\:groupHover\\:op_0\\.7:is([data-position=left]){opacity:.7}[data-mantine-color-scheme=dark] .\\[\\&_\\>_mark\\]\\:dark\\:bg-c_mantine\\.colors\\.yellow\\[5\\]\\/80>mark{--mix-backgroundColor: color-mix(in srgb, var(--colors-mantine-colors-yellow\\[5\\]) 80%, transparent);background-color:var(--mix-backgroundColor, var(--colors-mantine-colors-yellow\\[5\\]))}.group:is(:focus,[data-focus]) .\\[\\&_\\>_mark\\]\\:groupFocus\\:bg-c_\\[transparent\\]>mark{background-color:var(--colors-transparent)}.group:is(:focus,[data-focus]) .\\[\\&_\\>_mark\\]\\:groupFocus\\:c_\\[inherit\\]\\!>mark{color:inherit!important}:where(.react-flow__node,.react-flow__edge):has([data-likec4-hovered=true]) :where(.react-flow__node,.react-flow__edge):is(.selected) .whenSelected\\:whenHovered\\:stk-op_0\\.4{stroke-opacity:.4}.likec4-root:not([data-likec4-reduced-graphics]) :where(.react-flow__node,.react-flow__edge):has([data-likec4-hovered=true]) .whenHovered\\:noReduceGraphics\\:anim-ps_running{animation-play-state:running}.likec4-root:not([data-likec4-reduced-graphics]) :where(.react-flow__node,.react-flow__edge):has([data-likec4-hovered=true]) .whenHovered\\:noReduceGraphics\\:anim-dly_450ms{animation-delay:.45s}.likec4-root:not([data-likec4-reduced-graphics]) :where(.react-flow__edge.selected,[data-edge-active=true],[data-edge-animated=true]) .\\[\\:where\\(\\.react-flow__edge\\.selected\\,_\\[data-edge-active\\=\\'true\\'\\]\\,_\\[data-edge-animated\\=\\'true\\'\\]\\)_\\&\\]\\:noReduceGraphics\\:anim-ps_running{animation-play-state:running}.likec4-root:not([data-likec4-reduced-graphics]) :where(.react-flow__edge.selected,[data-edge-active=true],[data-edge-animated=true]) .\\[\\:where\\(\\.react-flow__edge\\.selected\\,_\\[data-edge-active\\=\\'true\\'\\]\\,_\\[data-edge-animated\\=\\'true\\'\\]\\)_\\&\\]\\:noReduceGraphics\\:anim-dly_0ms{animation-delay:0ms}:where(.react-flow__node,.react-flow__edge):is(.selectable) .whenSelectable\\:before\\:content_\\"_\\":before{content:" "}:where(.react-flow__node,.react-flow__edge):is(.selectable) .whenSelectable\\:before\\:pos_absolute:before{position:absolute}:where(.react-flow__node,.react-flow__edge):is(.selectable) .whenSelectable\\:before\\:pointer-events_all:before{pointer-events:all}.likec4-root:is([data-likec4-reduced-graphics][data-likec4-diagram-panning=true]) .reduceGraphicsOnPan\\:before\\:d_none:before{display:none}.\\[\\&_\\.mantine-ThemeIcon-root\\]\\:hover\\:c_mantine\\.colors\\.defaultColor .mantine-ThemeIcon-root:is(:hover,[data-hover]){color:var(--colors-mantine-colors-default-color)}[data-mantine-color-scheme=dark] .dark\\:\\[\\&\\:is\\(\\[data-active\\]\\)\\]\\:c_mantine\\.colors\\.white:is([data-active]){color:var(--colors-mantine-colors-white)}[data-mantine-color-scheme=light] .\\[\\&\\[data-missing\\]\\]\\:light\\:c_mantine\\.colors\\.orange\\[8\\][data-missing]{color:var(--colors-mantine-colors-orange\\[8\\])}[data-mantine-color-scheme=light] .\\[\\&_\\+_\\.likec4-element-shape\\]\\:light\\:ring-w_4px+.likec4-element-shape{outline-width:4px}.\\[\\&_\\.mantine-ScrollArea-viewport\\]\\:\\[\\&_\\>_div\\]\\:min-h_100\\% .mantine-ScrollArea-viewport>div{min-height:var(--sizes-100\\%)}.\\[\\&_\\.mantine-ScrollArea-viewport\\]\\:\\[\\&_\\>_div\\]\\:h_100\\% .mantine-ScrollArea-viewport>div{height:var(--sizes-100\\%)}:where(.react-flow__node,.react-flow__edge):is(.selectable) .whenSelectable\\:before\\:top_\\[calc\\(100\\%_-_4px\\)\\]:before{top:calc(100% - 4px)}:where(.react-flow__node,.react-flow__edge):is(.selectable) .whenSelectable\\:before\\:left_0:before{left:var(--spacing-0)}:where(.react-flow__node,.react-flow__edge):is(.selectable) .whenSelectable\\:before\\:w_full:before{width:var(--sizes-full)}:where(.react-flow__node,.react-flow__edge):is(.selectable) .whenSelectable\\:before\\:h_24px:before{height:24px}.\\[\\&_\\.mantine-ScrollArea-root\\]\\:\\[\\&_\\>_div\\]\\:pl_1 .mantine-ScrollArea-root>div{padding-left:var(--spacing-1)}.\\[\\&_\\.mantine-ScrollArea-root\\]\\:\\[\\&_\\>_div\\]\\:pr_1 .mantine-ScrollArea-root>div{padding-right:var(--spacing-1)}[data-mantine-color-scheme=dark] .focusWithin\\:dark\\:bg_mantine\\.colors\\.dark\\[5\\]\\/55\\!:focus-within{--mix-background: color-mix(in srgb, var(--colors-mantine-colors-dark\\[5\\]) 55%, transparent) !important;background:var(--mix-background, var(--colors-mantine-colors-dark\\[5\\]))!important}[data-mantine-color-scheme=dark] .focus\\:dark\\:bg-c_mantine\\.colors\\.dark\\[4\\]:is(:focus,[data-focus]){background-color:var(--colors-mantine-colors-dark\\[4\\])}[data-mantine-color-scheme=light] .group:is(:focus,[data-focus]) .groupFocus\\:light\\:c_mantine\\.colors\\.white{color:var(--colors-mantine-colors-white)}[data-mantine-color-scheme=light] .mantine-Tree-node:focus>.mantine-Tree-label .\\[\\.mantine-Tree-node\\:focus_\\>_\\.mantine-Tree-label_\\&\\]\\:light\\:c_mantine\\.colors\\.white{color:var(--colors-mantine-colors-white)}[data-mantine-color-scheme=light] .light\\:hover\\:--icon-color_\\{colors\\.mantine\\.colors\\.gray\\[7\\]\\}:is(:hover,[data-hover]){--icon-color: var(--colors-mantine-colors-gray\\[7\\])}[data-mantine-color-scheme=dark] .dark\\:hover\\:bg_mantine\\.colors\\.dark\\[6\\]:is(:hover,[data-hover]){background:var(--colors-mantine-colors-dark\\[6\\])}[data-mantine-color-scheme=dark] .group:is(:hover,[data-hover]) .groupHover\\:dark\\:bg_mantine\\.colors\\.dark\\[5\\]\\/35{--mix-background: color-mix(in srgb, var(--colors-mantine-colors-dark\\[5\\]) 35%, transparent);background:var(--mix-background, var(--colors-mantine-colors-dark\\[5\\]))}[data-mantine-color-scheme=light] .light\\:hover\\:bd-c_mantine\\.colors\\.primary\\[6\\]:is(:hover,[data-hover]){border-color:var(--colors-mantine-colors-primary\\[6\\])}[data-mantine-color-scheme=dark] .hover\\:dark\\:bg-c_mantine\\.colors\\.dark\\[5\\]:is(:hover,[data-hover]){background-color:var(--colors-mantine-colors-dark\\[5\\])}[data-mantine-color-scheme=light] .group:is(:hover,[data-hover]) .groupHover\\:light\\:bg-c_mantine\\.colors\\.gray\\[2\\]{background-color:var(--colors-mantine-colors-gray\\[2\\])}[data-mantine-color-scheme=dark] .group:is(:hover,[data-hover]) .groupHover\\:dark\\:bg-c_mantine\\.colors\\.dark\\[8\\]{background-color:var(--colors-mantine-colors-dark\\[8\\])}[data-mantine-color-scheme=dark] .hover\\:dark\\:bg-c_mantine\\.colors\\.dark\\[4\\]:is(:hover,[data-hover]){background-color:var(--colors-mantine-colors-dark\\[4\\])}[data-mantine-color-scheme=dark] .hover\\:dark\\:bg-c_mantine\\.colors\\.dark\\[5\\]\\/70:is(:hover,[data-hover]){--mix-backgroundColor: color-mix(in srgb, var(--colors-mantine-colors-dark\\[5\\]) 70%, transparent);background-color:var(--mix-backgroundColor, var(--colors-mantine-colors-dark\\[5\\]))}[data-mantine-color-scheme=dark] .dark\\:hover\\:c_mantine\\.colors\\.white:is(:hover,[data-hover]){color:var(--colors-mantine-colors-white)}[data-mantine-color-scheme=dark] .hover\\:dark\\:bg-c_mantine\\.colors\\.dark\\[7\\]:is(:hover,[data-hover]){background-color:var(--colors-mantine-colors-dark\\[7\\])}[data-mantine-color-scheme=dark] .hover\\:dark\\:c_mantine\\.colors\\.primary\\[4\\]:is(:hover,[data-hover]){color:var(--colors-mantine-colors-primary\\[4\\])}.hover\\:\\[\\&_\\>_\\:not\\(\\[data-no-transform\\]\\)\\]\\:trs-tmf_out:is(:hover,[data-hover])>:not([data-no-transform]){--transition-easing: var(--easings-out);transition-timing-function:var(--easings-out)}.hover\\:\\[\\&_\\>_\\:not\\(\\[data-no-transform\\]\\)\\]\\:trf_translateX\\(1px\\):is(:hover,[data-hover])>:not([data-no-transform]){transform:translate(1px)}.hover\\:\\[\\&_\\>_\\*\\]\\:trs-tmf_out:is(:hover,[data-hover])>*{--transition-easing: var(--easings-out);transition-timing-function:var(--easings-out)}.hover\\:\\[\\&_\\>_\\*\\]\\:trf_translateX\\(1px\\):is(:hover,[data-hover])>*{transform:translate(1px)}[data-mantine-color-scheme=dark] .hover\\:dark\\:bg-c_mantine\\.colors\\.defaultHover:is(:hover,[data-hover]){background-color:var(--colors-mantine-colors-default-hover)}[data-mantine-color-scheme=dark] .hover\\:dark\\:c_mantine\\.colors\\.white:is(:hover,[data-hover]){color:var(--colors-mantine-colors-white)}[data-mantine-color-scheme=light] .light\\:hover\\:bg-c_mantine\\.colors\\.primary\\[5\\]:is(:hover,[data-hover]){background-color:var(--colors-mantine-colors-primary\\[5\\])}[data-mantine-color-scheme=light] .group:is(:hover,[data-hover]) .groupHover\\:light\\:c_mantine\\.colors\\.white{color:var(--colors-mantine-colors-white)}[data-mantine-color-scheme=light] .group:is(:hover,[data-hover]) .groupHover\\:light\\:c_mantine\\.colors\\.primary\\[0\\]{color:var(--colors-mantine-colors-primary\\[0\\])}[data-mantine-color-scheme=dark] .dark\\:hover\\:bg-c_mantine\\.colors\\.dark\\[3\\]\\/40:is(:hover,[data-hover]){--mix-backgroundColor: color-mix(in srgb, var(--colors-mantine-colors-dark\\[3\\]) 40%, transparent);background-color:var(--mix-backgroundColor, var(--colors-mantine-colors-dark\\[3\\]))}@container (min-width: 24rem){.\\@\\/xs\\:d_flex{display:flex}}@media screen and (min-width:36rem){.xs\\:max-w_calc\\(100cqw\\){max-width:100cqw}.xs\\:max-w_calc\\(100cqw_-_50px\\){max-width:calc(100cqw - 50px)}.xs\\:max-w_calc\\(100cqw_-_250px\\){max-width:calc(100cqw - 250px)}.xs\\:max-h_calc\\(100cqh_-_200px\\){max-height:calc(100cqh - 200px)}.xs\\:max-h_calc\\(100cqh_-_160px\\){max-height:calc(100cqh - 160px)}.xs\\:h_100cqh{height:100cqh}.xs\\:max-h_calc\\(100cqh_-_70px\\){max-height:calc(100cqh - 70px)}}@container (min-width: 40rem){.\\@\\/sm\\:m_xs{margin:var(--spacing-xs)}.\\@\\/sm\\:gap_xs{gap:var(--spacing-xs)}.\\@\\/sm\\:w_max-content{width:max-content}.\\@\\/sm\\:max-w_calc\\(100vw_-_2_\\*_\\{spacing\\.md\\}\\){max-width:calc(100vw - 2 * var(--spacing-md))}.\\@\\/sm\\:min-w_400{min-width:400px}.\\@\\/sm\\:max-w_550{max-width:550px}}@container (min-width: 40rem){@media screen and (min-width:36rem){.\\@\\/sm\\:xs\\:max-w_calc\\(100cqw_-_2_\\*_\\{spacing\\.md\\}\\){max-width:calc(100cqw - 2 * var(--spacing-md))}}}@container (min-width: 48rem){.\\@\\/md\\:d_block{display:block}.\\@\\/md\\:d_flex{display:flex}.\\@\\/md\\:d_none{display:none}.\\@\\/md\\:d_inherit{display:inherit}.\\@\\/md\\:ms_2{margin-inline-start:var(--spacing-2)}.\\@\\/md\\:w_\\[64px\\]{width:64px}}@media screen and (min-width:48rem){.sm\\:pr_\\[30px\\]{padding-right:30px}.sm\\:min-w_300{min-width:300px}.sm\\:max-w_65vw{max-width:65vw}}@media screen and (min-width:62rem){.md\\:--text-fz_\\{fontSizes\\.md\\}{--text-fz: var(--font-sizes-md)}.md\\:bd-w_4{border-width:4px}.md\\:px_6{padding-inline:var(--spacing-6)}.md\\:pr_\\[50px\\]{padding-right:50px}.md\\:max-w_40vw{max-width:40vw}}@container (min-width: 64rem){.\\@\\/lg\\:max-w_700{max-width:700px}}@media screen and (min-width:75rem){.lg\\:px_8{padding-inline:var(--spacing-8)}}@container likec4-tree (max-width: 450px){.\\[\\@container_likec4-tree_\\(max-width\\:_450px\\)\\]\\:--likec4-icon-size_18px{--likec4-icon-size: 18px}.\\[\\@container_likec4-tree_\\(max-width\\:_450px\\)\\]\\:gap_0\\.5{gap:var(--spacing-0\\.5)}.\\[\\@container_likec4-tree_\\(max-width\\:_450px\\)\\]\\:flex-d_column-reverse{flex-direction:column-reverse}.\\[\\@container_likec4-tree_\\(max-width\\:_450px\\)\\]\\:ai_flex-start{align-items:flex-start}.\\[\\@container_likec4-tree_\\(max-width\\:_450px\\)\\]\\:d_none{display:none}}}`,Ort={autoContrast:!0,primaryColor:"indigo",cursorType:"pointer",defaultRadius:"sm",fontFamily:"var(--likec4-app-font, var(--likec4-app-font-default))",headings:{fontWeight:"500",sizes:{h1:{fontWeight:"600"},h2:{fontWeight:"500"}}},components:{Portal:j0.extend({defaultProps:{reuseTargetNode:!0}})}};be({cursor:"pointer","--mantine-cursor-pointer":"pointer","& :where(.likec4-diagram, .likec4-compound-node, .likec4-element-node)":{cursor:"pointer"}});function jrt(e,r){const[n,o]=E.useState([]);return VE(()=>{if(e&&!document.querySelector("style[data-likec4-font]")){const a=document.createElement("style");a.setAttribute("type","text/css"),a.setAttribute("data-likec4-font",""),Hx(r)&&a.setAttribute("nonce",r),C0(r)&&a.setAttribute("nonce",r()),a.appendChild(document.createTextNode(Irt)),document.head.appendChild(a)}},[e]),VE(()=>{const a=new CSSStyleSheet;return a.replaceSync(One.replaceAll(":where(:root,:host)",".likec4-shadow-root").replaceAll(":root",".likec4-shadow-root").replaceAll(new RegExp("(?{a.replaceSync("")}},[One]),n}const jne=()=>{try{const e=window.getComputedStyle(document.documentElement).colorScheme??"",r=Ff(e.split(" "));if(r==="light"||r==="dark")return r}catch{}return null};function Lrt(e){const r=vU(),[n,o]=E.useState(jne);return DU(Yf(()=>o(jne),100),{attributes:!0,childList:!1,subtree:!1},()=>document.documentElement),e??n??r}const Brt=zrt.div;function Frt(e,r=!1){if(r===!1)return` + `.trim(),...RCe(1,EKe+1).map(l=>CKe(e,r,n,l))].join(` +`)}function zKe(e,r){return Jr(r.colors,Wx(),un(([n,o])=>$Ke(e,n,o)),VV(` +`))}const RKe=S.memo(({id:e})=>{const r=`#${e}`,n=Zu()?.(),{theme:o}=Ree(),a=zKe(r,o);return y.jsx("style",{type:"text/css","data-likec4-colors":e,dangerouslySetInnerHTML:{__html:a},nonce:n})}),jKe='@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:400;src:url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/latin-400-normal.woff2) format("woff2"),url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/latin-400-normal.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:500;src:url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/latin-500-normal.woff2) format("woff2"),url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/latin-500-normal.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:600;src:url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/latin-600-normal.woff2) format("woff2"),url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/latin-600-normal.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:400;src:url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/cyrillic-400-normal.woff2) format("woff2"),url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/cyrillic-400-normal.woff) format("woff");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:500;src:url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/cyrillic-500-normal.woff2) format("woff2"),url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/cyrillic-500-normal.woff) format("woff");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:600;src:url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/cyrillic-600-normal.woff2) format("woff2"),url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/cyrillic-600-normal.woff) format("woff");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:400;src:url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/cyrillic-ext-400-normal.woff2) format("woff2"),url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/cyrillic-ext-400-normal.woff) format("woff");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:500;src:url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/cyrillic-ext-500-normal.woff2) format("woff2"),url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/cyrillic-ext-500-normal.woff) format("woff");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:600;src:url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/cyrillic-ext-600-normal.woff2) format("woff2"),url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/cyrillic-ext-600-normal.woff) format("woff");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:400;src:url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/latin-ext-400-normal.woff2) format("woff2"),url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/latin-ext-400-normal.woff) format("woff");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:500;src:url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/latin-ext-500-normal.woff2) format("woff2"),url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/latin-ext-500-normal.woff) format("woff");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:IBM Plex Sans;font-style:normal;font-display:swap;font-weight:600;src:url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/latin-ext-600-normal.woff2) format("woff2"),url(https://cdn.jsdelivr.net/fontsource/fonts/ibm-plex-sans@latest/latin-ext-600-normal.woff) format("woff");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}',Tte=`@layer reset,base,mantine,xyflow,tokens,recipes,utilities;@layer mantine{:root{color-scheme:var(--mantine-color-scheme)}*,*:before,*:after{box-sizing:border-box}input,button,textarea,select{font:inherit}button,select{text-transform:none}body{margin:0;font-family:var(--mantine-font-family);font-size:var(--mantine-font-size-md);line-height:var(--mantine-line-height);background-color:var(--mantine-color-body);color:var(--mantine-color-text);-webkit-font-smoothing:var(--mantine-webkit-font-smoothing);-moz-osx-font-smoothing:var(--mantine-moz-font-smoothing)}@media screen and (max-device-width:31.25em){body{-webkit-text-size-adjust:100%}}@media(prefers-reduced-motion:reduce){[data-respect-reduced-motion] [data-reduce-motion]{transition:none;animation:none}}[data-mantine-color-scheme=light] .mantine-light-hidden,[data-mantine-color-scheme=dark] .mantine-dark-hidden{display:none}.mantine-focus-auto:focus-visible{outline:2px solid var(--mantine-primary-color-filled);outline-offset:calc(.125rem * var(--mantine-scale))}.mantine-focus-always:focus{outline:2px solid var(--mantine-primary-color-filled);outline-offset:calc(.125rem * var(--mantine-scale))}.mantine-focus-never:focus{outline:none}.mantine-active:active{transform:translateY(calc(.0625rem * var(--mantine-scale)))}fieldset:disabled .mantine-active:active{transform:none}:where([dir=rtl]) .mantine-rotate-rtl{transform:rotate(180deg)}:root{--mantine-z-index-app: 100;--mantine-z-index-modal: 200;--mantine-z-index-popover: 300;--mantine-z-index-overlay: 400;--mantine-z-index-max: 9999;--mantine-scale: 1;--mantine-cursor-type: default;--mantine-webkit-font-smoothing: antialiased;--mantine-moz-font-smoothing: grayscale;--mantine-color-white: #fff;--mantine-color-black: #000;--mantine-line-height: 1.55;--mantine-font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji;--mantine-font-family-monospace: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace;--mantine-font-family-headings: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji;--mantine-heading-font-weight: 700;--mantine-heading-text-wrap: wrap;--mantine-radius-default: calc(.25rem * var(--mantine-scale));--mantine-primary-color-filled: var(--mantine-color-blue-filled);--mantine-primary-color-filled-hover: var(--mantine-color-blue-filled-hover);--mantine-primary-color-light: var(--mantine-color-blue-light);--mantine-primary-color-light-hover: var(--mantine-color-blue-light-hover);--mantine-primary-color-light-color: var(--mantine-color-blue-light-color);--mantine-breakpoint-xs: 36em;--mantine-breakpoint-sm: 48em;--mantine-breakpoint-md: 62em;--mantine-breakpoint-lg: 75em;--mantine-breakpoint-xl: 88em;--mantine-spacing-xs: calc(.625rem * var(--mantine-scale));--mantine-spacing-sm: calc(.75rem * var(--mantine-scale));--mantine-spacing-md: calc(1rem * var(--mantine-scale));--mantine-spacing-lg: calc(1.25rem * var(--mantine-scale));--mantine-spacing-xl: calc(2rem * var(--mantine-scale));--mantine-font-size-xs: calc(.75rem * var(--mantine-scale));--mantine-font-size-sm: calc(.875rem * var(--mantine-scale));--mantine-font-size-md: calc(1rem * var(--mantine-scale));--mantine-font-size-lg: calc(1.125rem * var(--mantine-scale));--mantine-font-size-xl: calc(1.25rem * var(--mantine-scale));--mantine-line-height-xs: 1.4;--mantine-line-height-sm: 1.45;--mantine-line-height-md: 1.55;--mantine-line-height-lg: 1.6;--mantine-line-height-xl: 1.65;--mantine-shadow-xs: 0 calc(.0625rem * var(--mantine-scale)) calc(.1875rem * var(--mantine-scale)) rgba(0, 0, 0, .05), 0 calc(.0625rem * var(--mantine-scale)) calc(.125rem * var(--mantine-scale)) rgba(0, 0, 0, .1);--mantine-shadow-sm: 0 calc(.0625rem * var(--mantine-scale)) calc(.1875rem * var(--mantine-scale)) rgba(0, 0, 0, .05), rgba(0, 0, 0, .05) 0 calc(.625rem * var(--mantine-scale)) calc(.9375rem * var(--mantine-scale)) calc(-.3125rem * var(--mantine-scale)), rgba(0, 0, 0, .04) 0 calc(.4375rem * var(--mantine-scale)) calc(.4375rem * var(--mantine-scale)) calc(-.3125rem * var(--mantine-scale));--mantine-shadow-md: 0 calc(.0625rem * var(--mantine-scale)) calc(.1875rem * var(--mantine-scale)) rgba(0, 0, 0, .05), rgba(0, 0, 0, .05) 0 calc(1.25rem * var(--mantine-scale)) calc(1.5625rem * var(--mantine-scale)) calc(-.3125rem * var(--mantine-scale)), rgba(0, 0, 0, .04) 0 calc(.625rem * var(--mantine-scale)) calc(.625rem * var(--mantine-scale)) calc(-.3125rem * var(--mantine-scale));--mantine-shadow-lg: 0 calc(.0625rem * var(--mantine-scale)) calc(.1875rem * var(--mantine-scale)) rgba(0, 0, 0, .05), rgba(0, 0, 0, .05) 0 calc(1.75rem * var(--mantine-scale)) calc(1.4375rem * var(--mantine-scale)) calc(-.4375rem * var(--mantine-scale)), rgba(0, 0, 0, .04) 0 calc(.75rem * var(--mantine-scale)) calc(.75rem * var(--mantine-scale)) calc(-.4375rem * var(--mantine-scale));--mantine-shadow-xl: 0 calc(.0625rem * var(--mantine-scale)) calc(.1875rem * var(--mantine-scale)) rgba(0, 0, 0, .05), rgba(0, 0, 0, .05) 0 calc(2.25rem * var(--mantine-scale)) calc(1.75rem * var(--mantine-scale)) calc(-.4375rem * var(--mantine-scale)), rgba(0, 0, 0, .04) 0 calc(1.0625rem * var(--mantine-scale)) calc(1.0625rem * var(--mantine-scale)) calc(-.4375rem * var(--mantine-scale));--mantine-radius-xs: calc(.125rem * var(--mantine-scale));--mantine-radius-sm: calc(.25rem * var(--mantine-scale));--mantine-radius-md: calc(.5rem * var(--mantine-scale));--mantine-radius-lg: calc(1rem * var(--mantine-scale));--mantine-radius-xl: calc(2rem * var(--mantine-scale));--mantine-primary-color-0: var(--mantine-color-blue-0);--mantine-primary-color-1: var(--mantine-color-blue-1);--mantine-primary-color-2: var(--mantine-color-blue-2);--mantine-primary-color-3: var(--mantine-color-blue-3);--mantine-primary-color-4: var(--mantine-color-blue-4);--mantine-primary-color-5: var(--mantine-color-blue-5);--mantine-primary-color-6: var(--mantine-color-blue-6);--mantine-primary-color-7: var(--mantine-color-blue-7);--mantine-primary-color-8: var(--mantine-color-blue-8);--mantine-primary-color-9: var(--mantine-color-blue-9);--mantine-color-dark-0: #c9c9c9;--mantine-color-dark-1: #b8b8b8;--mantine-color-dark-2: #828282;--mantine-color-dark-3: #696969;--mantine-color-dark-4: #424242;--mantine-color-dark-5: #3b3b3b;--mantine-color-dark-6: #2e2e2e;--mantine-color-dark-7: #242424;--mantine-color-dark-8: #1f1f1f;--mantine-color-dark-9: #141414;--mantine-color-gray-0: #f8f9fa;--mantine-color-gray-1: #f1f3f5;--mantine-color-gray-2: #e9ecef;--mantine-color-gray-3: #dee2e6;--mantine-color-gray-4: #ced4da;--mantine-color-gray-5: #adb5bd;--mantine-color-gray-6: #868e96;--mantine-color-gray-7: #495057;--mantine-color-gray-8: #343a40;--mantine-color-gray-9: #212529;--mantine-color-red-0: #fff5f5;--mantine-color-red-1: #ffe3e3;--mantine-color-red-2: #ffc9c9;--mantine-color-red-3: #ffa8a8;--mantine-color-red-4: #ff8787;--mantine-color-red-5: #ff6b6b;--mantine-color-red-6: #fa5252;--mantine-color-red-7: #f03e3e;--mantine-color-red-8: #e03131;--mantine-color-red-9: #c92a2a;--mantine-color-pink-0: #fff0f6;--mantine-color-pink-1: #ffdeeb;--mantine-color-pink-2: #fcc2d7;--mantine-color-pink-3: #faa2c1;--mantine-color-pink-4: #f783ac;--mantine-color-pink-5: #f06595;--mantine-color-pink-6: #e64980;--mantine-color-pink-7: #d6336c;--mantine-color-pink-8: #c2255c;--mantine-color-pink-9: #a61e4d;--mantine-color-grape-0: #f8f0fc;--mantine-color-grape-1: #f3d9fa;--mantine-color-grape-2: #eebefa;--mantine-color-grape-3: #e599f7;--mantine-color-grape-4: #da77f2;--mantine-color-grape-5: #cc5de8;--mantine-color-grape-6: #be4bdb;--mantine-color-grape-7: #ae3ec9;--mantine-color-grape-8: #9c36b5;--mantine-color-grape-9: #862e9c;--mantine-color-violet-0: #f3f0ff;--mantine-color-violet-1: #e5dbff;--mantine-color-violet-2: #d0bfff;--mantine-color-violet-3: #b197fc;--mantine-color-violet-4: #9775fa;--mantine-color-violet-5: #845ef7;--mantine-color-violet-6: #7950f2;--mantine-color-violet-7: #7048e8;--mantine-color-violet-8: #6741d9;--mantine-color-violet-9: #5f3dc4;--mantine-color-indigo-0: #edf2ff;--mantine-color-indigo-1: #dbe4ff;--mantine-color-indigo-2: #bac8ff;--mantine-color-indigo-3: #91a7ff;--mantine-color-indigo-4: #748ffc;--mantine-color-indigo-5: #5c7cfa;--mantine-color-indigo-6: #4c6ef5;--mantine-color-indigo-7: #4263eb;--mantine-color-indigo-8: #3b5bdb;--mantine-color-indigo-9: #364fc7;--mantine-color-blue-0: #e7f5ff;--mantine-color-blue-1: #d0ebff;--mantine-color-blue-2: #a5d8ff;--mantine-color-blue-3: #74c0fc;--mantine-color-blue-4: #4dabf7;--mantine-color-blue-5: #339af0;--mantine-color-blue-6: #228be6;--mantine-color-blue-7: #1c7ed6;--mantine-color-blue-8: #1971c2;--mantine-color-blue-9: #1864ab;--mantine-color-cyan-0: #e3fafc;--mantine-color-cyan-1: #c5f6fa;--mantine-color-cyan-2: #99e9f2;--mantine-color-cyan-3: #66d9e8;--mantine-color-cyan-4: #3bc9db;--mantine-color-cyan-5: #22b8cf;--mantine-color-cyan-6: #15aabf;--mantine-color-cyan-7: #1098ad;--mantine-color-cyan-8: #0c8599;--mantine-color-cyan-9: #0b7285;--mantine-color-teal-0: #e6fcf5;--mantine-color-teal-1: #c3fae8;--mantine-color-teal-2: #96f2d7;--mantine-color-teal-3: #63e6be;--mantine-color-teal-4: #38d9a9;--mantine-color-teal-5: #20c997;--mantine-color-teal-6: #12b886;--mantine-color-teal-7: #0ca678;--mantine-color-teal-8: #099268;--mantine-color-teal-9: #087f5b;--mantine-color-green-0: #ebfbee;--mantine-color-green-1: #d3f9d8;--mantine-color-green-2: #b2f2bb;--mantine-color-green-3: #8ce99a;--mantine-color-green-4: #69db7c;--mantine-color-green-5: #51cf66;--mantine-color-green-6: #40c057;--mantine-color-green-7: #37b24d;--mantine-color-green-8: #2f9e44;--mantine-color-green-9: #2b8a3e;--mantine-color-lime-0: #f4fce3;--mantine-color-lime-1: #e9fac8;--mantine-color-lime-2: #d8f5a2;--mantine-color-lime-3: #c0eb75;--mantine-color-lime-4: #a9e34b;--mantine-color-lime-5: #94d82d;--mantine-color-lime-6: #82c91e;--mantine-color-lime-7: #74b816;--mantine-color-lime-8: #66a80f;--mantine-color-lime-9: #5c940d;--mantine-color-yellow-0: #fff9db;--mantine-color-yellow-1: #fff3bf;--mantine-color-yellow-2: #ffec99;--mantine-color-yellow-3: #ffe066;--mantine-color-yellow-4: #ffd43b;--mantine-color-yellow-5: #fcc419;--mantine-color-yellow-6: #fab005;--mantine-color-yellow-7: #f59f00;--mantine-color-yellow-8: #f08c00;--mantine-color-yellow-9: #e67700;--mantine-color-orange-0: #fff4e6;--mantine-color-orange-1: #ffe8cc;--mantine-color-orange-2: #ffd8a8;--mantine-color-orange-3: #ffc078;--mantine-color-orange-4: #ffa94d;--mantine-color-orange-5: #ff922b;--mantine-color-orange-6: #fd7e14;--mantine-color-orange-7: #f76707;--mantine-color-orange-8: #e8590c;--mantine-color-orange-9: #d9480f;--mantine-h1-font-size: calc(2.125rem * var(--mantine-scale));--mantine-h1-line-height: 1.3;--mantine-h1-font-weight: 700;--mantine-h2-font-size: calc(1.625rem * var(--mantine-scale));--mantine-h2-line-height: 1.35;--mantine-h2-font-weight: 700;--mantine-h3-font-size: calc(1.375rem * var(--mantine-scale));--mantine-h3-line-height: 1.4;--mantine-h3-font-weight: 700;--mantine-h4-font-size: calc(1.125rem * var(--mantine-scale));--mantine-h4-line-height: 1.45;--mantine-h4-font-weight: 700;--mantine-h5-font-size: calc(1rem * var(--mantine-scale));--mantine-h5-line-height: 1.5;--mantine-h5-font-weight: 700;--mantine-h6-font-size: calc(.875rem * var(--mantine-scale));--mantine-h6-line-height: 1.5;--mantine-h6-font-weight: 700}:root[data-mantine-color-scheme=dark]{--mantine-color-scheme: dark;--mantine-primary-color-contrast: var(--mantine-color-white);--mantine-color-bright: var(--mantine-color-white);--mantine-color-text: var(--mantine-color-dark-0);--mantine-color-body: var(--mantine-color-dark-7);--mantine-color-error: var(--mantine-color-red-8);--mantine-color-placeholder: var(--mantine-color-dark-3);--mantine-color-anchor: var(--mantine-color-blue-4);--mantine-color-default: var(--mantine-color-dark-6);--mantine-color-default-hover: var(--mantine-color-dark-5);--mantine-color-default-color: var(--mantine-color-white);--mantine-color-default-border: var(--mantine-color-dark-4);--mantine-color-dimmed: var(--mantine-color-dark-2);--mantine-color-disabled: var(--mantine-color-dark-6);--mantine-color-disabled-color: var(--mantine-color-dark-3);--mantine-color-disabled-border: var(--mantine-color-dark-4);--mantine-color-dark-text: var(--mantine-color-dark-4);--mantine-color-dark-filled: var(--mantine-color-dark-8);--mantine-color-dark-filled-hover: var(--mantine-color-dark-9);--mantine-color-dark-light: rgba(46, 46, 46, .15);--mantine-color-dark-light-hover: rgba(46, 46, 46, .2);--mantine-color-dark-light-color: var(--mantine-color-dark-3);--mantine-color-dark-outline: var(--mantine-color-dark-4);--mantine-color-dark-outline-hover: rgba(66, 66, 66, .05);--mantine-color-gray-text: var(--mantine-color-gray-4);--mantine-color-gray-filled: var(--mantine-color-gray-8);--mantine-color-gray-filled-hover: var(--mantine-color-gray-9);--mantine-color-gray-light: rgba(134, 142, 150, .15);--mantine-color-gray-light-hover: rgba(134, 142, 150, .2);--mantine-color-gray-light-color: var(--mantine-color-gray-3);--mantine-color-gray-outline: var(--mantine-color-gray-4);--mantine-color-gray-outline-hover: rgba(206, 212, 218, .05);--mantine-color-red-text: var(--mantine-color-red-4);--mantine-color-red-filled: var(--mantine-color-red-8);--mantine-color-red-filled-hover: var(--mantine-color-red-9);--mantine-color-red-light: rgba(250, 82, 82, .15);--mantine-color-red-light-hover: rgba(250, 82, 82, .2);--mantine-color-red-light-color: var(--mantine-color-red-3);--mantine-color-red-outline: var(--mantine-color-red-4);--mantine-color-red-outline-hover: rgba(255, 135, 135, .05);--mantine-color-pink-text: var(--mantine-color-pink-4);--mantine-color-pink-filled: var(--mantine-color-pink-8);--mantine-color-pink-filled-hover: var(--mantine-color-pink-9);--mantine-color-pink-light: rgba(230, 73, 128, .15);--mantine-color-pink-light-hover: rgba(230, 73, 128, .2);--mantine-color-pink-light-color: var(--mantine-color-pink-3);--mantine-color-pink-outline: var(--mantine-color-pink-4);--mantine-color-pink-outline-hover: rgba(247, 131, 172, .05);--mantine-color-grape-text: var(--mantine-color-grape-4);--mantine-color-grape-filled: var(--mantine-color-grape-8);--mantine-color-grape-filled-hover: var(--mantine-color-grape-9);--mantine-color-grape-light: rgba(190, 75, 219, .15);--mantine-color-grape-light-hover: rgba(190, 75, 219, .2);--mantine-color-grape-light-color: var(--mantine-color-grape-3);--mantine-color-grape-outline: var(--mantine-color-grape-4);--mantine-color-grape-outline-hover: rgba(218, 119, 242, .05);--mantine-color-violet-text: var(--mantine-color-violet-4);--mantine-color-violet-filled: var(--mantine-color-violet-8);--mantine-color-violet-filled-hover: var(--mantine-color-violet-9);--mantine-color-violet-light: rgba(121, 80, 242, .15);--mantine-color-violet-light-hover: rgba(121, 80, 242, .2);--mantine-color-violet-light-color: var(--mantine-color-violet-3);--mantine-color-violet-outline: var(--mantine-color-violet-4);--mantine-color-violet-outline-hover: rgba(151, 117, 250, .05);--mantine-color-indigo-text: var(--mantine-color-indigo-4);--mantine-color-indigo-filled: var(--mantine-color-indigo-8);--mantine-color-indigo-filled-hover: var(--mantine-color-indigo-9);--mantine-color-indigo-light: rgba(76, 110, 245, .15);--mantine-color-indigo-light-hover: rgba(76, 110, 245, .2);--mantine-color-indigo-light-color: var(--mantine-color-indigo-3);--mantine-color-indigo-outline: var(--mantine-color-indigo-4);--mantine-color-indigo-outline-hover: rgba(116, 143, 252, .05);--mantine-color-blue-text: var(--mantine-color-blue-4);--mantine-color-blue-filled: var(--mantine-color-blue-8);--mantine-color-blue-filled-hover: var(--mantine-color-blue-9);--mantine-color-blue-light: rgba(34, 139, 230, .15);--mantine-color-blue-light-hover: rgba(34, 139, 230, .2);--mantine-color-blue-light-color: var(--mantine-color-blue-3);--mantine-color-blue-outline: var(--mantine-color-blue-4);--mantine-color-blue-outline-hover: rgba(77, 171, 247, .05);--mantine-color-cyan-text: var(--mantine-color-cyan-4);--mantine-color-cyan-filled: var(--mantine-color-cyan-8);--mantine-color-cyan-filled-hover: var(--mantine-color-cyan-9);--mantine-color-cyan-light: rgba(21, 170, 191, .15);--mantine-color-cyan-light-hover: rgba(21, 170, 191, .2);--mantine-color-cyan-light-color: var(--mantine-color-cyan-3);--mantine-color-cyan-outline: var(--mantine-color-cyan-4);--mantine-color-cyan-outline-hover: rgba(59, 201, 219, .05);--mantine-color-teal-text: var(--mantine-color-teal-4);--mantine-color-teal-filled: var(--mantine-color-teal-8);--mantine-color-teal-filled-hover: var(--mantine-color-teal-9);--mantine-color-teal-light: rgba(18, 184, 134, .15);--mantine-color-teal-light-hover: rgba(18, 184, 134, .2);--mantine-color-teal-light-color: var(--mantine-color-teal-3);--mantine-color-teal-outline: var(--mantine-color-teal-4);--mantine-color-teal-outline-hover: rgba(56, 217, 169, .05);--mantine-color-green-text: var(--mantine-color-green-4);--mantine-color-green-filled: var(--mantine-color-green-8);--mantine-color-green-filled-hover: var(--mantine-color-green-9);--mantine-color-green-light: rgba(64, 192, 87, .15);--mantine-color-green-light-hover: rgba(64, 192, 87, .2);--mantine-color-green-light-color: var(--mantine-color-green-3);--mantine-color-green-outline: var(--mantine-color-green-4);--mantine-color-green-outline-hover: rgba(105, 219, 124, .05);--mantine-color-lime-text: var(--mantine-color-lime-4);--mantine-color-lime-filled: var(--mantine-color-lime-8);--mantine-color-lime-filled-hover: var(--mantine-color-lime-9);--mantine-color-lime-light: rgba(130, 201, 30, .15);--mantine-color-lime-light-hover: rgba(130, 201, 30, .2);--mantine-color-lime-light-color: var(--mantine-color-lime-3);--mantine-color-lime-outline: var(--mantine-color-lime-4);--mantine-color-lime-outline-hover: rgba(169, 227, 75, .05);--mantine-color-yellow-text: var(--mantine-color-yellow-4);--mantine-color-yellow-filled: var(--mantine-color-yellow-8);--mantine-color-yellow-filled-hover: var(--mantine-color-yellow-9);--mantine-color-yellow-light: rgba(250, 176, 5, .15);--mantine-color-yellow-light-hover: rgba(250, 176, 5, .2);--mantine-color-yellow-light-color: var(--mantine-color-yellow-3);--mantine-color-yellow-outline: var(--mantine-color-yellow-4);--mantine-color-yellow-outline-hover: rgba(255, 212, 59, .05);--mantine-color-orange-text: var(--mantine-color-orange-4);--mantine-color-orange-filled: var(--mantine-color-orange-8);--mantine-color-orange-filled-hover: var(--mantine-color-orange-9);--mantine-color-orange-light: rgba(253, 126, 20, .15);--mantine-color-orange-light-hover: rgba(253, 126, 20, .2);--mantine-color-orange-light-color: var(--mantine-color-orange-3);--mantine-color-orange-outline: var(--mantine-color-orange-4);--mantine-color-orange-outline-hover: rgba(255, 169, 77, .05)}:root[data-mantine-color-scheme=light]{--mantine-color-scheme: light;--mantine-primary-color-contrast: var(--mantine-color-white);--mantine-color-bright: var(--mantine-color-black);--mantine-color-text: #000;--mantine-color-body: #fff;--mantine-color-error: var(--mantine-color-red-6);--mantine-color-placeholder: var(--mantine-color-gray-5);--mantine-color-anchor: var(--mantine-color-blue-6);--mantine-color-default: var(--mantine-color-white);--mantine-color-default-hover: var(--mantine-color-gray-0);--mantine-color-default-color: var(--mantine-color-black);--mantine-color-default-border: var(--mantine-color-gray-4);--mantine-color-dimmed: var(--mantine-color-gray-6);--mantine-color-disabled: var(--mantine-color-gray-2);--mantine-color-disabled-color: var(--mantine-color-gray-5);--mantine-color-disabled-border: var(--mantine-color-gray-3);--mantine-color-dark-text: var(--mantine-color-dark-filled);--mantine-color-dark-filled: var(--mantine-color-dark-6);--mantine-color-dark-filled-hover: var(--mantine-color-dark-7);--mantine-color-dark-light: rgba(46, 46, 46, .1);--mantine-color-dark-light-hover: rgba(46, 46, 46, .12);--mantine-color-dark-light-color: var(--mantine-color-dark-6);--mantine-color-dark-outline: var(--mantine-color-dark-6);--mantine-color-dark-outline-hover: rgba(46, 46, 46, .05);--mantine-color-gray-text: var(--mantine-color-gray-filled);--mantine-color-gray-filled: var(--mantine-color-gray-6);--mantine-color-gray-filled-hover: var(--mantine-color-gray-7);--mantine-color-gray-light: rgba(134, 142, 150, .1);--mantine-color-gray-light-hover: rgba(134, 142, 150, .12);--mantine-color-gray-light-color: var(--mantine-color-gray-6);--mantine-color-gray-outline: var(--mantine-color-gray-6);--mantine-color-gray-outline-hover: rgba(134, 142, 150, .05);--mantine-color-red-text: var(--mantine-color-red-filled);--mantine-color-red-filled: var(--mantine-color-red-6);--mantine-color-red-filled-hover: var(--mantine-color-red-7);--mantine-color-red-light: rgba(250, 82, 82, .1);--mantine-color-red-light-hover: rgba(250, 82, 82, .12);--mantine-color-red-light-color: var(--mantine-color-red-6);--mantine-color-red-outline: var(--mantine-color-red-6);--mantine-color-red-outline-hover: rgba(250, 82, 82, .05);--mantine-color-pink-text: var(--mantine-color-pink-filled);--mantine-color-pink-filled: var(--mantine-color-pink-6);--mantine-color-pink-filled-hover: var(--mantine-color-pink-7);--mantine-color-pink-light: rgba(230, 73, 128, .1);--mantine-color-pink-light-hover: rgba(230, 73, 128, .12);--mantine-color-pink-light-color: var(--mantine-color-pink-6);--mantine-color-pink-outline: var(--mantine-color-pink-6);--mantine-color-pink-outline-hover: rgba(230, 73, 128, .05);--mantine-color-grape-text: var(--mantine-color-grape-filled);--mantine-color-grape-filled: var(--mantine-color-grape-6);--mantine-color-grape-filled-hover: var(--mantine-color-grape-7);--mantine-color-grape-light: rgba(190, 75, 219, .1);--mantine-color-grape-light-hover: rgba(190, 75, 219, .12);--mantine-color-grape-light-color: var(--mantine-color-grape-6);--mantine-color-grape-outline: var(--mantine-color-grape-6);--mantine-color-grape-outline-hover: rgba(190, 75, 219, .05);--mantine-color-violet-text: var(--mantine-color-violet-filled);--mantine-color-violet-filled: var(--mantine-color-violet-6);--mantine-color-violet-filled-hover: var(--mantine-color-violet-7);--mantine-color-violet-light: rgba(121, 80, 242, .1);--mantine-color-violet-light-hover: rgba(121, 80, 242, .12);--mantine-color-violet-light-color: var(--mantine-color-violet-6);--mantine-color-violet-outline: var(--mantine-color-violet-6);--mantine-color-violet-outline-hover: rgba(121, 80, 242, .05);--mantine-color-indigo-text: var(--mantine-color-indigo-filled);--mantine-color-indigo-filled: var(--mantine-color-indigo-6);--mantine-color-indigo-filled-hover: var(--mantine-color-indigo-7);--mantine-color-indigo-light: rgba(76, 110, 245, .1);--mantine-color-indigo-light-hover: rgba(76, 110, 245, .12);--mantine-color-indigo-light-color: var(--mantine-color-indigo-6);--mantine-color-indigo-outline: var(--mantine-color-indigo-6);--mantine-color-indigo-outline-hover: rgba(76, 110, 245, .05);--mantine-color-blue-text: var(--mantine-color-blue-filled);--mantine-color-blue-filled: var(--mantine-color-blue-6);--mantine-color-blue-filled-hover: var(--mantine-color-blue-7);--mantine-color-blue-light: rgba(34, 139, 230, .1);--mantine-color-blue-light-hover: rgba(34, 139, 230, .12);--mantine-color-blue-light-color: var(--mantine-color-blue-6);--mantine-color-blue-outline: var(--mantine-color-blue-6);--mantine-color-blue-outline-hover: rgba(34, 139, 230, .05);--mantine-color-cyan-text: var(--mantine-color-cyan-filled);--mantine-color-cyan-filled: var(--mantine-color-cyan-6);--mantine-color-cyan-filled-hover: var(--mantine-color-cyan-7);--mantine-color-cyan-light: rgba(21, 170, 191, .1);--mantine-color-cyan-light-hover: rgba(21, 170, 191, .12);--mantine-color-cyan-light-color: var(--mantine-color-cyan-6);--mantine-color-cyan-outline: var(--mantine-color-cyan-6);--mantine-color-cyan-outline-hover: rgba(21, 170, 191, .05);--mantine-color-teal-text: var(--mantine-color-teal-filled);--mantine-color-teal-filled: var(--mantine-color-teal-6);--mantine-color-teal-filled-hover: var(--mantine-color-teal-7);--mantine-color-teal-light: rgba(18, 184, 134, .1);--mantine-color-teal-light-hover: rgba(18, 184, 134, .12);--mantine-color-teal-light-color: var(--mantine-color-teal-6);--mantine-color-teal-outline: var(--mantine-color-teal-6);--mantine-color-teal-outline-hover: rgba(18, 184, 134, .05);--mantine-color-green-text: var(--mantine-color-green-filled);--mantine-color-green-filled: var(--mantine-color-green-6);--mantine-color-green-filled-hover: var(--mantine-color-green-7);--mantine-color-green-light: rgba(64, 192, 87, .1);--mantine-color-green-light-hover: rgba(64, 192, 87, .12);--mantine-color-green-light-color: var(--mantine-color-green-6);--mantine-color-green-outline: var(--mantine-color-green-6);--mantine-color-green-outline-hover: rgba(64, 192, 87, .05);--mantine-color-lime-text: var(--mantine-color-lime-filled);--mantine-color-lime-filled: var(--mantine-color-lime-6);--mantine-color-lime-filled-hover: var(--mantine-color-lime-7);--mantine-color-lime-light: rgba(130, 201, 30, .1);--mantine-color-lime-light-hover: rgba(130, 201, 30, .12);--mantine-color-lime-light-color: var(--mantine-color-lime-6);--mantine-color-lime-outline: var(--mantine-color-lime-6);--mantine-color-lime-outline-hover: rgba(130, 201, 30, .05);--mantine-color-yellow-text: var(--mantine-color-yellow-filled);--mantine-color-yellow-filled: var(--mantine-color-yellow-6);--mantine-color-yellow-filled-hover: var(--mantine-color-yellow-7);--mantine-color-yellow-light: rgba(250, 176, 5, .1);--mantine-color-yellow-light-hover: rgba(250, 176, 5, .12);--mantine-color-yellow-light-color: var(--mantine-color-yellow-6);--mantine-color-yellow-outline: var(--mantine-color-yellow-6);--mantine-color-yellow-outline-hover: rgba(250, 176, 5, .05);--mantine-color-orange-text: var(--mantine-color-orange-filled);--mantine-color-orange-filled: var(--mantine-color-orange-6);--mantine-color-orange-filled-hover: var(--mantine-color-orange-7);--mantine-color-orange-light: rgba(253, 126, 20, .1);--mantine-color-orange-light-hover: rgba(253, 126, 20, .12);--mantine-color-orange-light-color: var(--mantine-color-orange-6);--mantine-color-orange-outline: var(--mantine-color-orange-6);--mantine-color-orange-outline-hover: rgba(253, 126, 20, .05)}.m_d57069b5{--scrollarea-scrollbar-size: calc(.75rem * var(--mantine-scale));position:relative;overflow:hidden}.m_d57069b5:where([data-autosize]) .m_b1336c6{min-width:min-content}.m_c0783ff9{scrollbar-width:none;overscroll-behavior:var(--scrollarea-over-scroll-behavior);-ms-overflow-style:none;-webkit-overflow-scrolling:touch;width:100%;height:100%}.m_c0783ff9::-webkit-scrollbar{display:none}.m_c0783ff9:where([data-scrollbars=xy],[data-scrollbars=y]):where([data-offset-scrollbars=xy],[data-offset-scrollbars=y],[data-offset-scrollbars=present]):where([data-vertical-hidden]){padding-inline-end:0;padding-inline-start:0}.m_c0783ff9:where([data-scrollbars=xy],[data-scrollbars=y]):where([data-offset-scrollbars=xy],[data-offset-scrollbars=y],[data-offset-scrollbars=present]):not([data-vertical-hidden]){padding-inline-end:var(--scrollarea-scrollbar-size);padding-inline-start:unset}.m_c0783ff9:where([data-scrollbars=xy],[data-scrollbars=x]):where([data-offset-scrollbars=xy],[data-offset-scrollbars=x],[data-offset-scrollbars=present]):where([data-horizontal-hidden]){padding-bottom:0}.m_c0783ff9:where([data-scrollbars=xy],[data-scrollbars=x]):where([data-offset-scrollbars=xy],[data-offset-scrollbars=x],[data-offset-scrollbars=present]):not([data-horizontal-hidden]){padding-bottom:var(--scrollarea-scrollbar-size)}.m_f8f631dd{min-width:100%;display:table}.m_c44ba933{user-select:none;touch-action:none;box-sizing:border-box;transition:background-color .15s ease,opacity .15s ease;padding:calc(var(--scrollarea-scrollbar-size) / 5);display:flex;background-color:transparent;flex-direction:row}@media(hover:hover){:where([data-mantine-color-scheme=light]) .m_c44ba933:hover{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=light]) .m_c44ba933:hover>.m_d8b5e363{background-color:#00000080}:where([data-mantine-color-scheme=dark]) .m_c44ba933:hover{background-color:var(--mantine-color-dark-8)}:where([data-mantine-color-scheme=dark]) .m_c44ba933:hover>.m_d8b5e363{background-color:#ffffff80}}@media(hover:none){:where([data-mantine-color-scheme=light]) .m_c44ba933:active{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=light]) .m_c44ba933:active>.m_d8b5e363{background-color:#00000080}:where([data-mantine-color-scheme=dark]) .m_c44ba933:active{background-color:var(--mantine-color-dark-8)}:where([data-mantine-color-scheme=dark]) .m_c44ba933:active>.m_d8b5e363{background-color:#ffffff80}}.m_c44ba933:where([data-hidden],[data-state=hidden]){display:none}.m_c44ba933:where([data-orientation=vertical]){width:var(--scrollarea-scrollbar-size);top:0;bottom:var(--sa-corner-width);inset-inline-end:0}.m_c44ba933:where([data-orientation=horizontal]){height:var(--scrollarea-scrollbar-size);flex-direction:column;bottom:0;inset-inline-start:0;inset-inline-end:var(--sa-corner-width)}.m_d8b5e363{flex:1;border-radius:var(--scrollarea-scrollbar-size);position:relative;transition:background-color .15s ease;overflow:hidden;opacity:var(--thumb-opacity)}.m_d8b5e363:before{content:"";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:100%;height:100%;min-width:calc(2.75rem * var(--mantine-scale));min-height:calc(2.75rem * var(--mantine-scale))}:where([data-mantine-color-scheme=light]) .m_d8b5e363{background-color:#0006}:where([data-mantine-color-scheme=dark]) .m_d8b5e363{background-color:#fff6}.m_21657268{position:absolute;opacity:0;transition:opacity .15s ease;display:block;inset-inline-end:0;bottom:0}:where([data-mantine-color-scheme=light]) .m_21657268{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_21657268{background-color:var(--mantine-color-dark-8)}.m_21657268:where([data-hovered]){opacity:1}.m_21657268:where([data-hidden]){display:none}.m_b1336c6{min-width:100%}.m_87cf2631{background-color:transparent;cursor:pointer;border:0;padding:0;appearance:none;font-size:var(--mantine-font-size-md);text-align:left;text-decoration:none;color:inherit;touch-action:manipulation;-webkit-tap-highlight-color:transparent}:where([dir=rtl]) .m_87cf2631{text-align:right}.m_515a97f8{border:0;clip:rect(0 0 0 0);height:calc(.0625rem * var(--mantine-scale));width:calc(.0625rem * var(--mantine-scale));margin:calc(-.0625rem * var(--mantine-scale));overflow:hidden;padding:0;position:absolute;white-space:nowrap}.m_1b7284a3{--paper-radius: var(--mantine-radius-default);outline:0;-webkit-tap-highlight-color:transparent;display:block;touch-action:manipulation;text-decoration:none;border-radius:var(--paper-radius);box-shadow:var(--paper-shadow);background-color:var(--mantine-color-body)}[data-mantine-color-scheme=light] .m_1b7284a3{--paper-border-color: var(--mantine-color-gray-3)}[data-mantine-color-scheme=dark] .m_1b7284a3{--paper-border-color: var(--mantine-color-dark-4)}.m_1b7284a3:where([data-with-border]){border:calc(.0625rem * var(--mantine-scale)) solid var(--paper-border-color)}.m_9814e45f{inset:0;position:absolute;background:var(--overlay-bg, rgba(0, 0, 0, .6));-webkit-backdrop-filter:var(--overlay-filter);backdrop-filter:var(--overlay-filter);border-radius:var(--overlay-radius, 0);z-index:var(--overlay-z-index)}.m_9814e45f:where([data-fixed]){position:fixed}.m_9814e45f:where([data-center]){display:flex;align-items:center;justify-content:center}.m_38a85659{position:absolute;border:1px solid var(--popover-border-color);padding:var(--mantine-spacing-sm) var(--mantine-spacing-md);box-shadow:var(--popover-shadow, none);border-radius:var(--popover-radius, var(--mantine-radius-default))}.m_38a85659:where([data-fixed]){position:fixed}.m_38a85659:focus{outline:none}:where([data-mantine-color-scheme=light]) .m_38a85659{--popover-border-color: var(--mantine-color-gray-2);background-color:var(--mantine-color-white)}:where([data-mantine-color-scheme=dark]) .m_38a85659{--popover-border-color: var(--mantine-color-dark-4);background-color:var(--mantine-color-dark-6)}.m_a31dc6c1{background-color:inherit;border:1px solid var(--popover-border-color);z-index:1}.m_3d7bc908{position:fixed;inset:0}.m_5ae2e3c{--loader-size-xs: calc(1.125rem * var(--mantine-scale));--loader-size-sm: calc(1.375rem * var(--mantine-scale));--loader-size-md: calc(2.25rem * var(--mantine-scale));--loader-size-lg: calc(2.75rem * var(--mantine-scale));--loader-size-xl: calc(3.625rem * var(--mantine-scale));--loader-size: var(--loader-size-md);--loader-color: var(--mantine-primary-color-filled)}@keyframes m_5d2b3b9d{0%{transform:scale(.6);opacity:0}50%,to{transform:scale(1)}}.m_7a2bd4cd{position:relative;width:var(--loader-size);height:var(--loader-size);display:flex;gap:calc(var(--loader-size) / 5)}.m_870bb79{flex:1;background:var(--loader-color);animation:m_5d2b3b9d 1.2s cubic-bezier(0,.5,.5,1) infinite;border-radius:calc(.125rem * var(--mantine-scale))}.m_870bb79:nth-of-type(1){animation-delay:-.24s}.m_870bb79:nth-of-type(2){animation-delay:-.12s}.m_870bb79:nth-of-type(3){animation-delay:0}@keyframes m_aac34a1{0%,to{transform:scale(1);opacity:1}50%{transform:scale(.6);opacity:.5}}.m_4e3f22d7{display:flex;justify-content:center;align-items:center;gap:calc(var(--loader-size) / 10);position:relative;width:var(--loader-size);height:var(--loader-size)}.m_870c4af{width:calc(var(--loader-size) / 3 - var(--loader-size) / 15);height:calc(var(--loader-size) / 3 - var(--loader-size) / 15);border-radius:50%;background:var(--loader-color);animation:m_aac34a1 .8s infinite linear}.m_870c4af:nth-child(2){animation-delay:.4s}@keyframes m_f8e89c4b{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.m_b34414df{display:inline-block;width:var(--loader-size);height:var(--loader-size)}.m_b34414df:after{content:"";display:block;width:var(--loader-size);height:var(--loader-size);border-radius:calc(625rem * var(--mantine-scale));border-width:calc(var(--loader-size) / 8);border-style:solid;border-color:var(--loader-color) var(--loader-color) var(--loader-color) transparent;animation:m_f8e89c4b 1.2s linear infinite}.m_8d3f4000{--ai-size-xs: calc(1.125rem * var(--mantine-scale));--ai-size-sm: calc(1.375rem * var(--mantine-scale));--ai-size-md: calc(1.75rem * var(--mantine-scale));--ai-size-lg: calc(2.125rem * var(--mantine-scale));--ai-size-xl: calc(2.75rem * var(--mantine-scale));--ai-size-input-xs: calc(1.875rem * var(--mantine-scale));--ai-size-input-sm: calc(2.25rem * var(--mantine-scale));--ai-size-input-md: calc(2.625rem * var(--mantine-scale));--ai-size-input-lg: calc(3.125rem * var(--mantine-scale));--ai-size-input-xl: calc(3.75rem * var(--mantine-scale));--ai-size: var(--ai-size-md);--ai-color: var(--mantine-color-white);line-height:1;display:inline-flex;align-items:center;justify-content:center;position:relative;user-select:none;overflow:hidden;width:var(--ai-size);height:var(--ai-size);min-width:var(--ai-size);min-height:var(--ai-size);border-radius:var(--ai-radius, var(--mantine-radius-default));background:var(--ai-bg, var(--mantine-primary-color-filled));color:var(--ai-color, var(--mantine-color-white));border:var(--ai-bd, calc(.0625rem * var(--mantine-scale)) solid transparent);cursor:pointer}@media(hover:hover){.m_8d3f4000:hover:where(:not([data-loading],:disabled,[data-disabled])){background-color:var(--ai-hover, var(--mantine-primary-color-filled-hover));color:var(--ai-hover-color, var(--ai-color))}}@media(hover:none){.m_8d3f4000:active:where(:not([data-loading],:disabled,[data-disabled])){background-color:var(--ai-hover, var(--mantine-primary-color-filled-hover));color:var(--ai-hover-color, var(--ai-color))}}.m_8d3f4000[data-loading]{cursor:not-allowed}.m_8d3f4000[data-loading] .m_8d3afb97{opacity:0;transform:translateY(100%)}.m_8d3f4000:where(:disabled:not([data-loading]),[data-disabled]:not([data-loading])){cursor:not-allowed;border:calc(.0625rem * var(--mantine-scale)) solid transparent;color:var(--mantine-color-disabled-color);background:var(--mantine-color-disabled)}.m_8d3f4000:where(:disabled:not([data-loading]),[data-disabled]:not([data-loading])):active{transform:none}.m_302b9fb1{inset:calc(-.0625rem * var(--mantine-scale));position:absolute;border-radius:var(--ai-radius, var(--mantine-radius-default));display:flex;align-items:center;justify-content:center}:where([data-mantine-color-scheme=light]) .m_302b9fb1{background-color:#ffffff26}:where([data-mantine-color-scheme=dark]) .m_302b9fb1{background-color:#00000026}.m_1a0f1b21{--ai-border-width: calc(.0625rem * var(--mantine-scale));display:flex}.m_1a0f1b21 :where(*):focus{position:relative;z-index:1}.m_1a0f1b21[data-orientation=horizontal]{flex-direction:row}.m_1a0f1b21[data-orientation=horizontal] .m_8d3f4000:not(:only-child):first-child,.m_1a0f1b21[data-orientation=horizontal] .m_437b6484:not(:only-child):first-child{border-end-end-radius:0;border-start-end-radius:0;border-inline-end-width:calc(var(--ai-border-width) / 2)}.m_1a0f1b21[data-orientation=horizontal] .m_8d3f4000:not(:only-child):last-child,.m_1a0f1b21[data-orientation=horizontal] .m_437b6484:not(:only-child):last-child{border-end-start-radius:0;border-start-start-radius:0;border-inline-start-width:calc(var(--ai-border-width) / 2)}.m_1a0f1b21[data-orientation=horizontal] .m_8d3f4000:not(:only-child):not(:first-child):not(:last-child),.m_1a0f1b21[data-orientation=horizontal] .m_437b6484:not(:only-child):not(:first-child):not(:last-child){border-radius:0;border-inline-width:calc(var(--ai-border-width) / 2)}.m_1a0f1b21[data-orientation=vertical]{flex-direction:column}.m_1a0f1b21[data-orientation=vertical] .m_8d3f4000:not(:only-child):first-child,.m_1a0f1b21[data-orientation=vertical] .m_437b6484:not(:only-child):first-child{border-end-start-radius:0;border-end-end-radius:0;border-bottom-width:calc(var(--ai-border-width) / 2)}.m_1a0f1b21[data-orientation=vertical] .m_8d3f4000:not(:only-child):last-child,.m_1a0f1b21[data-orientation=vertical] .m_437b6484:not(:only-child):last-child{border-start-start-radius:0;border-start-end-radius:0;border-top-width:calc(var(--ai-border-width) / 2)}.m_1a0f1b21[data-orientation=vertical] .m_8d3f4000:not(:only-child):not(:first-child):not(:last-child),.m_1a0f1b21[data-orientation=vertical] .m_437b6484:not(:only-child):not(:first-child):not(:last-child){border-radius:0;border-bottom-width:calc(var(--ai-border-width) / 2);border-top-width:calc(var(--ai-border-width) / 2)}.m_8d3afb97{display:flex;align-items:center;justify-content:center;transition:transform .15s ease,opacity .1s ease;width:100%;height:100%}.m_437b6484{--section-height-xs: calc(1.125rem * var(--mantine-scale));--section-height-sm: calc(1.375rem * var(--mantine-scale));--section-height-md: calc(1.75rem * var(--mantine-scale));--section-height-lg: calc(2.125rem * var(--mantine-scale));--section-height-xl: calc(2.75rem * var(--mantine-scale));--section-height-input-xs: calc(1.875rem * var(--mantine-scale));--section-height-input-sm: calc(2.25rem * var(--mantine-scale));--section-height-input-md: calc(2.625rem * var(--mantine-scale));--section-height-input-lg: calc(3.125rem * var(--mantine-scale));--section-height-input-xl: calc(3.75rem * var(--mantine-scale));--section-padding-x-xs: calc(.375rem * var(--mantine-scale));--section-padding-x-sm: calc(.5rem * var(--mantine-scale));--section-padding-x-md: calc(.625rem * var(--mantine-scale));--section-padding-x-lg: calc(.75rem * var(--mantine-scale));--section-padding-x-xl: calc(1rem * var(--mantine-scale));--section-height: var(--section-height-sm);--section-padding-x: var(--section-padding-x-sm);--section-color: var(--mantine-color-white);font-weight:600;width:auto;border-radius:var(--section-radius, var(--mantine-radius-default));font-size:var(--section-fz, var(--mantine-font-size-sm));background:var(--section-bg, var(--mantine-primary-color-filled));border:var(--section-bd, calc(.0625rem * var(--mantine-scale)) solid transparent);color:var(--section-color, var(--mantine-color-white));height:var(--section-height, var(--section-height-sm));padding-inline:var(--section-padding-x, var(--section-padding-x-sm));vertical-align:middle;line-height:1;display:inline-flex;align-items:center;justify-content:center}.m_86a44da5{--cb-size-xs: calc(1.125rem * var(--mantine-scale));--cb-size-sm: calc(1.375rem * var(--mantine-scale));--cb-size-md: calc(1.75rem * var(--mantine-scale));--cb-size-lg: calc(2.125rem * var(--mantine-scale));--cb-size-xl: calc(2.75rem * var(--mantine-scale));--cb-size: var(--cb-size-md);--cb-icon-size: 70%;--cb-radius: var(--mantine-radius-default);line-height:1;display:inline-flex;align-items:center;justify-content:center;position:relative;user-select:none;width:var(--cb-size);height:var(--cb-size);min-width:var(--cb-size);min-height:var(--cb-size);border-radius:var(--cb-radius)}:where([data-mantine-color-scheme=light]) .m_86a44da5{color:var(--mantine-color-gray-7)}:where([data-mantine-color-scheme=dark]) .m_86a44da5{color:var(--mantine-color-dark-1)}.m_86a44da5[data-disabled],.m_86a44da5:disabled{cursor:not-allowed;opacity:.6}@media(hover:hover){:where([data-mantine-color-scheme=light]) .m_220c80f2:where(:not([data-disabled],:disabled)):hover{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_220c80f2:where(:not([data-disabled],:disabled)):hover{background-color:var(--mantine-color-dark-6)}}@media(hover:none){:where([data-mantine-color-scheme=light]) .m_220c80f2:where(:not([data-disabled],:disabled)):active{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_220c80f2:where(:not([data-disabled],:disabled)):active{background-color:var(--mantine-color-dark-6)}}.m_4081bf90{display:flex;flex-direction:row;flex-wrap:var(--group-wrap, wrap);justify-content:var(--group-justify, flex-start);align-items:var(--group-align, center);gap:var(--group-gap, var(--mantine-spacing-md))}.m_4081bf90:where([data-grow])>*{flex-grow:1;max-width:var(--group-child-width)}.m_615af6c9{line-height:1;padding:0;margin:0;font-weight:400;font-size:var(--mantine-font-size-md)}.m_b5489c3c{display:flex;justify-content:space-between;align-items:center;padding:var(--mb-padding, var(--mantine-spacing-md));padding-inline-end:calc(var(--mb-padding, var(--mantine-spacing-md)) - calc(.3125rem * var(--mantine-scale)));position:sticky;top:0;background-color:var(--mantine-color-body);z-index:1000;min-height:calc(3.75rem * var(--mantine-scale));transition:padding-inline-end .1s}.m_60c222c7{position:fixed;width:100%;top:0;bottom:0;z-index:var(--mb-z-index);pointer-events:none}.m_fd1ab0aa{pointer-events:all;box-shadow:var(--mb-shadow, var(--mantine-shadow-xl))}.m_fd1ab0aa [data-mantine-scrollbar]{z-index:1001}[data-offset-scrollbars] .m_fd1ab0aa:has([data-mantine-scrollbar]) .m_b5489c3c{padding-inline-end:calc(var(--mb-padding, var(--mantine-spacing-md)) + calc(.3125rem * var(--mantine-scale)))}.m_606cb269{margin-inline-start:auto}.m_5df29311{padding:var(--mb-padding, var(--mantine-spacing-md));padding-top:var(--mb-padding, var(--mantine-spacing-md))}.m_5df29311:where(:not(:only-child)){padding-top:0}.m_6c018570{position:relative;margin-top:var(--input-margin-top, 0rem);margin-bottom:var(--input-margin-bottom, 0rem);--input-height-xs: calc(1.875rem * var(--mantine-scale));--input-height-sm: calc(2.25rem * var(--mantine-scale));--input-height-md: calc(2.625rem * var(--mantine-scale));--input-height-lg: calc(3.125rem * var(--mantine-scale));--input-height-xl: calc(3.75rem * var(--mantine-scale));--input-padding-y-xs: calc(.3125rem * var(--mantine-scale));--input-padding-y-sm: calc(.375rem * var(--mantine-scale));--input-padding-y-md: calc(.5rem * var(--mantine-scale));--input-padding-y-lg: calc(.625rem * var(--mantine-scale));--input-padding-y-xl: calc(.8125rem * var(--mantine-scale));--input-height: var(--input-height-sm);--input-radius: var(--mantine-radius-default);--input-cursor: text;--input-text-align: left;--input-line-height: calc(var(--input-height) - calc(.125rem * var(--mantine-scale)));--input-padding: calc(var(--input-height) / 3);--input-padding-inline-start: var(--input-padding);--input-padding-inline-end: var(--input-padding);--input-placeholder-color: var(--mantine-color-placeholder);--input-color: var(--mantine-color-text);--input-disabled-bg: var(--mantine-color-disabled);--input-disabled-color: var(--mantine-color-disabled-color);--input-left-section-size: var(--input-left-section-width, calc(var(--input-height) - calc(.125rem * var(--mantine-scale))));--input-right-section-size: var( --input-right-section-width, calc(var(--input-height) - calc(.125rem * var(--mantine-scale))) );--input-size: var(--input-height);--section-y: calc(.0625rem * var(--mantine-scale));--left-section-start: calc(.0625rem * var(--mantine-scale));--left-section-border-radius: var(--input-radius) 0 0 var(--input-radius);--right-section-end: calc(.0625rem * var(--mantine-scale));--right-section-border-radius: 0 var(--input-radius) var(--input-radius) 0}.m_6c018570[data-variant=unstyled]{--input-padding: 0;--input-padding-y: 0;--input-padding-inline-start: 0;--input-padding-inline-end: 0}.m_6c018570[data-pointer]{--input-cursor: pointer}.m_6c018570[data-multiline]{--input-padding-y-xs: calc(.28125rem * var(--mantine-scale));--input-padding-y-sm: calc(.34375rem * var(--mantine-scale));--input-padding-y-md: calc(.4375rem * var(--mantine-scale));--input-padding-y-lg: calc(.59375rem * var(--mantine-scale));--input-padding-y-xl: calc(.8125rem * var(--mantine-scale));--input-size: auto;--input-line-height: var(--mantine-line-height)}.m_6c018570[data-with-left-section]{--input-padding-inline-start: var(--input-left-section-size)}.m_6c018570[data-with-right-section]{--input-padding-inline-end: var(--input-right-section-size)}.m_6c018570[data-size=xs] .m_6c018570[data-with-right-section]:has([data-combined-clear-section]){--input-padding-inline-end: calc(2.5625rem * var(--mantine-scale))}.m_6c018570[data-size=sm] .m_6c018570[data-with-right-section]:has([data-combined-clear-section]){--input-padding-inline-end: calc(3.125rem * var(--mantine-scale))}.m_6c018570[data-size=md] .m_6c018570[data-with-right-section]:has([data-combined-clear-section]){--input-padding-inline-end: calc(3.75rem * var(--mantine-scale))}.m_6c018570[data-size=lg] .m_6c018570[data-with-right-section]:has([data-combined-clear-section]){--input-padding-inline-end: calc(4.5rem * var(--mantine-scale))}.m_6c018570[data-size=xl] .m_6c018570[data-with-right-section]:has([data-combined-clear-section]){--input-padding-inline-end: calc(5.5625rem * var(--mantine-scale))}[data-mantine-color-scheme=light] .m_6c018570[data-variant=default]{--input-bd: var(--mantine-color-gray-4);--input-bg: var(--mantine-color-white);--input-bd-focus: var(--mantine-primary-color-filled)}[data-mantine-color-scheme=light] .m_6c018570[data-variant=filled]{--input-bd: transparent;--input-bg: var(--mantine-color-gray-1);--input-bd-focus: var(--mantine-primary-color-filled)}[data-mantine-color-scheme=light] .m_6c018570[data-variant=unstyled]{--input-bd: transparent;--input-bg: transparent;--input-bd-focus: transparent}[data-mantine-color-scheme=dark] .m_6c018570[data-variant=default]{--input-bd: var(--mantine-color-dark-4);--input-bg: var(--mantine-color-dark-6);--input-bd-focus: var(--mantine-primary-color-filled)}[data-mantine-color-scheme=dark] .m_6c018570[data-variant=filled]{--input-bd: transparent;--input-bg: var(--mantine-color-dark-5);--input-bd-focus: var(--mantine-primary-color-filled)}[data-mantine-color-scheme=dark] .m_6c018570[data-variant=unstyled]{--input-bd: transparent;--input-bg: transparent;--input-bd-focus: transparent}[data-mantine-color-scheme] .m_6c018570[data-error]:not([data-variant=unstyled]){--input-bd: var(--mantine-color-error)}[data-mantine-color-scheme] .m_6c018570[data-error]{--input-color: var(--mantine-color-error);--input-placeholder-color: var(--mantine-color-error);--input-section-color: var(--mantine-color-error)}:where([dir=rtl]) .m_6c018570{--input-text-align: right;--left-section-border-radius: 0 var(--input-radius) var(--input-radius) 0;--right-section-border-radius: var(--input-radius) 0 0 var(--input-radius)}.m_8fb7ebe7{-webkit-tap-highlight-color:transparent;appearance:none;resize:var(--input-resize, none);display:block;width:100%;transition:border-color .1s ease;text-align:var(--input-text-align);color:var(--input-color);border:calc(.0625rem * var(--mantine-scale)) solid var(--input-bd);background-color:var(--input-bg);font-family:var(--input-font-family, var(--mantine-font-family));height:var(--input-size);min-height:var(--input-height);line-height:var(--input-line-height);font-size:var(--_input-fz, var(--input-fz, var(--mantine-font-size-md)));border-radius:var(--input-radius);padding-inline-start:var(--input-padding-inline-start);padding-inline-end:var(--input-padding-inline-end);padding-top:var(--input-padding-y, 0rem);padding-bottom:var(--input-padding-y, 0rem);cursor:var(--input-cursor);overflow:var(--input-overflow)}.m_8fb7ebe7[data-no-overflow]{--input-overflow: hidden}.m_8fb7ebe7[data-monospace]{--input-font-family: var(--mantine-font-family-monospace);--_input-fz: calc(var(--input-fz) - calc(.125rem * var(--mantine-scale)))}.m_8fb7ebe7:focus,.m_8fb7ebe7:focus-within{outline:none;--input-bd: var(--input-bd-focus)}[data-error] .m_8fb7ebe7:focus,[data-error] .m_8fb7ebe7:focus-within{--input-bd: var(--mantine-color-error)}.m_8fb7ebe7::placeholder{color:var(--input-placeholder-color);opacity:1}.m_8fb7ebe7::-webkit-inner-spin-button,.m_8fb7ebe7::-webkit-outer-spin-button,.m_8fb7ebe7::-webkit-search-decoration,.m_8fb7ebe7::-webkit-search-cancel-button,.m_8fb7ebe7::-webkit-search-results-button,.m_8fb7ebe7::-webkit-search-results-decoration{appearance:none}.m_8fb7ebe7[type=number]{-moz-appearance:textfield}.m_8fb7ebe7:disabled,.m_8fb7ebe7[data-disabled]{cursor:not-allowed;opacity:.6;background-color:var(--input-disabled-bg);color:var(--input-disabled-color)}.m_8fb7ebe7:has(input:disabled){cursor:not-allowed;opacity:.6;background-color:var(--input-disabled-bg);color:var(--input-disabled-color)}.m_8fb7ebe7[readonly]{caret-color:transparent}.m_82577fc2{pointer-events:var(--section-pointer-events);position:absolute;z-index:1;inset-inline-start:var(--section-start);inset-inline-end:var(--section-end);bottom:var(--section-y);top:var(--section-y);display:flex;align-items:center;justify-content:center;width:var(--section-size);border-radius:var(--section-border-radius);color:var(--input-section-color, var(--mantine-color-dimmed))}.m_82577fc2[data-position=right]{--section-pointer-events: var(--input-right-section-pointer-events);--section-end: var(--right-section-end);--section-size: var(--input-right-section-size);--section-border-radius: var(--right-section-border-radius)}.m_6c018570[data-size=xs] .m_82577fc2[data-position=right]:has([data-combined-clear-section]){--section-size: calc(2.5625rem * var(--mantine-scale))}.m_6c018570[data-size=sm] .m_82577fc2[data-position=right]:has([data-combined-clear-section]){--section-size: calc(3.125rem * var(--mantine-scale))}.m_6c018570[data-size=md] .m_82577fc2[data-position=right]:has([data-combined-clear-section]){--section-size: calc(3.75rem * var(--mantine-scale))}.m_6c018570[data-size=lg] .m_82577fc2[data-position=right]:has([data-combined-clear-section]){--section-size: calc(4.5rem * var(--mantine-scale))}.m_6c018570[data-size=xl] .m_82577fc2[data-position=right]:has([data-combined-clear-section]){--section-size: calc(5.5625rem * var(--mantine-scale))}.m_82577fc2[data-position=left]{--section-pointer-events: var(--input-left-section-pointer-events);--section-start: var(--left-section-start);--section-size: var(--input-left-section-size);--section-border-radius: var(--left-section-border-radius)}.m_88bacfd0{color:var(--input-placeholder-color, var(--mantine-color-placeholder))}[data-error] .m_88bacfd0{--input-placeholder-color: var(--input-color, var(--mantine-color-placeholder))}.m_46b77525{line-height:var(--mantine-line-height)}.m_8fdc1311{display:inline-block;font-weight:500;overflow-wrap:break-word;cursor:default;-webkit-tap-highlight-color:transparent;font-size:var(--input-label-size, var(--mantine-font-size-sm))}.m_78a94662{color:var(--input-asterisk-color, var(--mantine-color-error))}.m_8f816625,.m_fe47ce59{word-wrap:break-word;line-height:1.2;display:block;margin:0;padding:0}.m_8f816625{color:var(--mantine-color-error);font-size:var(--input-error-size, calc(var(--mantine-font-size-sm) - calc(.125rem * var(--mantine-scale))))}.m_fe47ce59{color:var(--mantine-color-dimmed);font-size:var(--input-description-size, calc(var(--mantine-font-size-sm) - calc(.125rem * var(--mantine-scale))))}.m_8bffd616{display:flex}.m_96b553a6{--transition-duration: .15s;top:0;left:0;position:absolute;z-index:0;transition-property:transform,width,height;transition-timing-function:ease;transition-duration:0ms}.m_96b553a6:where([data-initialized]){transition-duration:var(--transition-duration)}.m_96b553a6:where([data-hidden]){background-color:red;display:none}.m_9bdbb667{--accordion-radius: var(--mantine-radius-default)}.m_df78851f{overflow-wrap:break-word}.m_4ba554d4{padding:var(--mantine-spacing-md);padding-top:calc(var(--mantine-spacing-xs) / 2)}.m_8fa820a0{margin:0;padding:0}.m_4ba585b8{width:100%;display:flex;align-items:center;flex-direction:row-reverse;padding-inline:var(--mantine-spacing-md);opacity:1;cursor:pointer;background-color:transparent;color:var(--mantine-color-bright)}.m_4ba585b8:where([data-chevron-position=left]){flex-direction:row;padding-inline-start:0}.m_4ba585b8:where(:disabled,[data-disabled]){opacity:.4;cursor:not-allowed}@media(hover:hover){:where([data-mantine-color-scheme=light]) .m_6939a5e9:where(:not(:disabled,[data-disabled])):hover,:where([data-mantine-color-scheme=light]) .m_4271d21b:where(:not(:disabled,[data-disabled])):hover{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_6939a5e9:where(:not(:disabled,[data-disabled])):hover,:where([data-mantine-color-scheme=dark]) .m_4271d21b:where(:not(:disabled,[data-disabled])):hover{background-color:var(--mantine-color-dark-6)}}@media(hover:none){:where([data-mantine-color-scheme=light]) .m_6939a5e9:where(:not(:disabled,[data-disabled])):active,:where([data-mantine-color-scheme=light]) .m_4271d21b:where(:not(:disabled,[data-disabled])):active{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_6939a5e9:where(:not(:disabled,[data-disabled])):active,:where([data-mantine-color-scheme=dark]) .m_4271d21b:where(:not(:disabled,[data-disabled])):active{background-color:var(--mantine-color-dark-6)}}.m_df3ffa0f{color:inherit;font-weight:400;flex:1;overflow:hidden;text-overflow:ellipsis;padding-top:var(--mantine-spacing-sm);padding-bottom:var(--mantine-spacing-sm)}.m_3f35ae96{display:flex;align-items:center;justify-content:flex-start;transition:transform var(--accordion-transition-duration, .2s) ease;width:var(--accordion-chevron-size, calc(.9375rem * var(--mantine-scale)));min-width:var(--accordion-chevron-size, calc(.9375rem * var(--mantine-scale)));transform:rotate(0)}.m_3f35ae96:where([data-rotate]){transform:rotate(180deg)}.m_3f35ae96:where([data-position=left]){margin-inline-end:var(--mantine-spacing-md);margin-inline-start:var(--mantine-spacing-md)}.m_9bd771fe{display:flex;align-items:center;justify-content:center;margin-inline-end:var(--mantine-spacing-sm)}.m_9bd771fe:where([data-chevron-position=left]){margin-inline-end:0;margin-inline-start:var(--mantine-spacing-lg)}:where([data-mantine-color-scheme=light]) .m_9bd7b098{--item-border-color: var(--mantine-color-gray-3);--item-filled-color: var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_9bd7b098{--item-border-color: var(--mantine-color-dark-4);--item-filled-color: var(--mantine-color-dark-6)}.m_fe19b709{border-bottom:1px solid var(--item-border-color)}.m_1f921b3b{border:1px solid var(--item-border-color);transition:background-color .15s ease}.m_1f921b3b:where([data-active]){background-color:var(--item-filled-color)}.m_1f921b3b:first-of-type{border-start-start-radius:var(--accordion-radius);border-start-end-radius:var(--accordion-radius)}.m_1f921b3b:first-of-type>[data-accordion-control]{border-start-start-radius:var(--accordion-radius);border-start-end-radius:var(--accordion-radius)}.m_1f921b3b:last-of-type{border-end-start-radius:var(--accordion-radius);border-end-end-radius:var(--accordion-radius)}.m_1f921b3b:last-of-type>[data-accordion-control]{border-end-start-radius:var(--accordion-radius);border-end-end-radius:var(--accordion-radius)}.m_1f921b3b+.m_1f921b3b{border-top:0}.m_2cdf939a{border-radius:var(--accordion-radius)}.m_2cdf939a:where([data-active]){background-color:var(--item-filled-color)}.m_9f59b069{background-color:var(--item-filled-color);border-radius:var(--accordion-radius);border:calc(.0625rem * var(--mantine-scale)) solid transparent;transition:background-color .15s ease}.m_9f59b069[data-active]{border-color:var(--item-border-color)}:where([data-mantine-color-scheme=light]) .m_9f59b069[data-active]{background-color:var(--mantine-color-white)}:where([data-mantine-color-scheme=dark]) .m_9f59b069[data-active]{background-color:var(--mantine-color-dark-7)}.m_9f59b069+.m_9f59b069{margin-top:var(--mantine-spacing-md)}.m_7f854edf{position:fixed;z-index:var(--affix-z-index);inset-inline-start:var(--affix-left);inset-inline-end:var(--affix-right);top:var(--affix-top);bottom:var(--affix-bottom)}.m_66836ed3{--alert-radius: var(--mantine-radius-default);--alert-bg: var(--mantine-primary-color-light);--alert-bd: calc(.0625rem * var(--mantine-scale)) solid transparent;--alert-color: var(--mantine-primary-color-light-color);padding:var(--mantine-spacing-md) var(--mantine-spacing-md);border-radius:var(--alert-radius);position:relative;overflow:hidden;background-color:var(--alert-bg);border:var(--alert-bd);color:var(--alert-color)}.m_a5d60502{display:flex}.m_667c2793{flex:1;display:flex;flex-direction:column;gap:var(--mantine-spacing-xs)}.m_6a03f287{display:flex;align-items:center;justify-content:space-between;font-size:var(--mantine-font-size-sm);font-weight:700}.m_6a03f287:where([data-with-close-button]){padding-inline-end:var(--mantine-spacing-md)}.m_698f4f23{display:block;overflow:hidden;text-overflow:ellipsis}.m_667f2a6a{line-height:1;width:calc(1.25rem * var(--mantine-scale));height:calc(1.25rem * var(--mantine-scale));display:flex;align-items:center;justify-content:flex-start;margin-inline-end:var(--mantine-spacing-md);margin-top:calc(.0625rem * var(--mantine-scale))}.m_7fa78076{text-overflow:ellipsis;overflow:hidden;font-size:var(--mantine-font-size-sm)}:where([data-mantine-color-scheme=light]) .m_7fa78076{color:var(--mantine-color-black)}:where([data-mantine-color-scheme=dark]) .m_7fa78076{color:var(--mantine-color-white)}.m_7fa78076:where([data-variant=filled]){color:var(--alert-color)}.m_7fa78076:where([data-variant=white]){color:var(--mantine-color-black)}.m_87f54839{width:calc(1.25rem * var(--mantine-scale));height:calc(1.25rem * var(--mantine-scale));color:var(--alert-color)}.m_b6d8b162{-webkit-tap-highlight-color:transparent;text-decoration:none;font-size:var(--text-fz, var(--mantine-font-size-md));line-height:var(--text-lh, var(--mantine-line-height-md));font-weight:400;margin:0;padding:0;color:var(--text-color)}.m_b6d8b162:where([data-truncate]){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.m_b6d8b162:where([data-truncate=start]){direction:rtl;text-align:right}:where([dir=rtl]) .m_b6d8b162:where([data-truncate=start]){direction:ltr;text-align:left}.m_b6d8b162:where([data-variant=gradient]){background-image:var(--text-gradient);background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent}.m_b6d8b162:where([data-line-clamp]){overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:var(--text-line-clamp);-webkit-box-orient:vertical}.m_b6d8b162:where([data-inherit]){line-height:inherit;font-weight:inherit;font-size:inherit}.m_b6d8b162:where([data-inline]){line-height:1}.m_849cf0da{color:var(--mantine-color-anchor);text-decoration:none;appearance:none;border:none;display:inline;padding:0;margin:0;background-color:transparent;cursor:pointer}@media(hover:hover){.m_849cf0da:where([data-underline=hover]):hover{text-decoration:underline}}@media(hover:none){.m_849cf0da:where([data-underline=hover]):active{text-decoration:underline}}.m_849cf0da:where([data-underline=not-hover]){text-decoration:underline}@media(hover:hover){.m_849cf0da:where([data-underline=not-hover]):hover{text-decoration:none}}@media(hover:none){.m_849cf0da:where([data-underline=not-hover]):active{text-decoration:none}}.m_849cf0da:where([data-underline=always]){text-decoration:underline}.m_849cf0da:where([data-variant=gradient]),.m_849cf0da:where([data-variant=gradient]):hover{text-decoration:none}.m_849cf0da:where([data-line-clamp]){display:-webkit-box}.m_48204f9b{width:var(--slider-size);height:var(--slider-size);position:relative;border-radius:100%;display:flex;align-items:center;justify-content:center;user-select:none}.m_48204f9b:focus-within{outline:2px solid var(--mantine-primary-color-filled);outline-offset:calc(.125rem * var(--mantine-scale))}.m_48204f9b{--slider-size: calc(3.75rem * var(--mantine-scale));--thumb-size: calc(var(--slider-size) / 5)}:where([data-mantine-color-scheme=light]) .m_48204f9b{background-color:var(--mantine-color-gray-1)}:where([data-mantine-color-scheme=dark]) .m_48204f9b{background-color:var(--mantine-color-dark-5)}.m_bb9cdbad{position:absolute;inset:calc(.0625rem * var(--mantine-scale));border-radius:var(--slider-size);pointer-events:none}.m_481dd586{width:calc(.125rem * var(--mantine-scale));position:absolute;top:0;bottom:0;left:calc(50% - 1px);transform:rotate(var(--angle))}.m_481dd586:before{content:"";position:absolute;top:calc(var(--thumb-size) / 3);left:calc(.03125rem * var(--mantine-scale));width:calc(.0625rem * var(--mantine-scale));height:calc(var(--thumb-size) / 1.5);transform:translate(-50%,-50%)}:where([data-mantine-color-scheme=light]) .m_481dd586:before{background-color:var(--mantine-color-gray-4)}:where([data-mantine-color-scheme=dark]) .m_481dd586:before{background-color:var(--mantine-color-dark-3)}.m_481dd586[data-label]:after{min-width:calc(1.125rem * var(--mantine-scale));text-align:center;content:attr(data-label);position:absolute;top:calc(-1.5rem * var(--mantine-scale));left:calc(-.4375rem * var(--mantine-scale));transform:rotate(calc(360deg - var(--angle)));font-size:var(--mantine-font-size-xs)}.m_bc02ba3d{position:absolute;inset-block:0;inset-inline-start:calc(50% - 1.5px);inset-inline-end:0;height:100%;width:calc(.1875rem * var(--mantine-scale));outline:none;pointer-events:none}.m_bc02ba3d:before{content:"";position:absolute;right:0;top:0;height:min(var(--thumb-size),calc(var(--slider-size) / 2));width:calc(.1875rem * var(--mantine-scale))}:where([data-mantine-color-scheme=light]) .m_bc02ba3d:before{background-color:var(--mantine-color-gray-7)}:where([data-mantine-color-scheme=dark]) .m_bc02ba3d:before{background-color:var(--mantine-color-dark-1)}.m_bb8e875b{font-size:var(--mantine-font-size-xs)}.m_89ab340[data-resizing]{--app-shell-transition-duration: 0ms !important}.m_89ab340[data-disabled]{--app-shell-header-offset: 0rem !important;--app-shell-navbar-offset: 0rem !important;--app-shell-aside-offset: 0rem !important;--app-shell-footer-offset: 0rem !important}[data-mantine-color-scheme=light] .m_89ab340{--app-shell-border-color: var(--mantine-color-gray-3)}[data-mantine-color-scheme=dark] .m_89ab340{--app-shell-border-color: var(--mantine-color-dark-4)}.m_45252eee,.m_9cdde9a,.m_3b16f56b,.m_8983817,.m_3840c879{transition-duration:var(--app-shell-transition-duration);transition-timing-function:var(--app-shell-transition-timing-function)}.m_45252eee,.m_9cdde9a{position:fixed;display:flex;flex-direction:column;top:var(--app-shell-header-offset, 0rem);height:calc(100dvh - var(--app-shell-header-offset, 0rem) - var(--app-shell-footer-offset, 0rem));background-color:var(--mantine-color-body);transition-property:transform,top,height}:where([data-layout=alt]) .m_45252eee,:where([data-layout=alt]) .m_9cdde9a{top:0rem;height:100dvh}.m_45252eee{inset-inline-start:0;width:var(--app-shell-navbar-width);transition-property:transform,top,height;transform:var(--app-shell-navbar-transform);z-index:var(--app-shell-navbar-z-index)}:where([dir=rtl]) .m_45252eee{transform:var(--app-shell-navbar-transform-rtl)}.m_45252eee:where([data-with-border]){border-inline-end:1px solid var(--app-shell-border-color)}.m_9cdde9a{inset-inline-end:0;width:var(--app-shell-aside-width);transform:var(--app-shell-aside-transform);z-index:var(--app-shell-aside-z-index)}:where([dir=rtl]) .m_9cdde9a{transform:var(--app-shell-aside-transform-rtl)}.m_9cdde9a:where([data-with-border]){border-inline-start:1px solid var(--app-shell-border-color)}:where([data-scroll-locked]) .m_9cdde9a{visibility:var(--app-shell-aside-scroll-locked-visibility)}.m_8983817{padding-inline-start:calc(var(--app-shell-navbar-offset, 0rem) + var(--app-shell-padding));padding-inline-end:calc(var(--app-shell-aside-offset, 0rem) + var(--app-shell-padding));padding-top:calc(var(--app-shell-header-offset, 0rem) + var(--app-shell-padding));padding-bottom:calc(var(--app-shell-footer-offset, 0rem) + var(--app-shell-padding));min-height:100dvh;transition-property:padding}.m_3b16f56b,.m_3840c879{position:fixed;inset-inline:0;transition-property:transform,margin-inline-start,margin-inline-end;background-color:var(--mantine-color-body)}:where([data-layout=alt]) .m_3b16f56b,:where([data-layout=alt]) .m_3840c879{margin-inline-start:var(--app-shell-navbar-offset, 0rem);margin-inline-end:var(--app-shell-aside-offset, 0rem)}.m_3b16f56b{top:0;height:var(--app-shell-header-height);background-color:var(--mantine-color-body);transform:var(--app-shell-header-transform);z-index:var(--app-shell-header-z-index)}.m_3b16f56b:where([data-with-border]){border-bottom:1px solid var(--app-shell-border-color)}.m_3840c879{bottom:0;height:calc(var(--app-shell-footer-height) + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);transform:var(--app-shell-footer-transform);z-index:var(--app-shell-footer-z-index)}.m_3840c879:where([data-with-border]){border-top:1px solid var(--app-shell-border-color)}.m_6dcfc7c7{flex-grow:0}.m_6dcfc7c7:where([data-grow]){flex-grow:1}.m_71ac47fc{--ar-ratio: 1;max-width:100%}.m_71ac47fc>:where(*:not(style)){aspect-ratio:var(--ar-ratio);width:100%}.m_71ac47fc>:where(img,video){object-fit:cover}.m_88b62a41{--combobox-padding: calc(.25rem * var(--mantine-scale));padding:var(--combobox-padding)}.m_88b62a41:has([data-mantine-scrollbar]) .m_985517d8{max-width:calc(100% + var(--combobox-padding))}.m_88b62a41[data-composed]{padding-inline-end:0}.m_88b62a41[data-hidden]{display:none}.m_88b62a41,.m_b2821a6e{--combobox-option-padding-xs: calc(.25rem * var(--mantine-scale)) calc(.5rem * var(--mantine-scale));--combobox-option-padding-sm: calc(.375rem * var(--mantine-scale)) calc(.625rem * var(--mantine-scale));--combobox-option-padding-md: calc(.5rem * var(--mantine-scale)) calc(.75rem * var(--mantine-scale));--combobox-option-padding-lg: calc(.625rem * var(--mantine-scale)) calc(1rem * var(--mantine-scale));--combobox-option-padding-xl: calc(.875rem * var(--mantine-scale)) calc(1.25rem * var(--mantine-scale));--combobox-option-padding: var(--combobox-option-padding-sm)}.m_92253aa5{padding:var(--combobox-option-padding);font-size:var(--combobox-option-fz, var(--mantine-font-size-sm));border-radius:var(--mantine-radius-default);background-color:transparent;color:inherit;cursor:pointer;overflow-wrap:break-word}.m_92253aa5:where([data-combobox-selected]){background-color:var(--mantine-primary-color-filled);color:var(--mantine-color-white)}.m_92253aa5:where([data-combobox-disabled]){cursor:not-allowed;opacity:.35}@media(hover:hover){:where([data-mantine-color-scheme=light]) .m_92253aa5:hover:where(:not([data-combobox-selected],[data-combobox-disabled])){background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_92253aa5:hover:where(:not([data-combobox-selected],[data-combobox-disabled])){background-color:var(--mantine-color-dark-7)}}@media(hover:none){:where([data-mantine-color-scheme=light]) .m_92253aa5:active:where(:not([data-combobox-selected],[data-combobox-disabled])){background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_92253aa5:active:where(:not([data-combobox-selected],[data-combobox-disabled])){background-color:var(--mantine-color-dark-7)}}.m_985517d8{margin-inline:calc(var(--combobox-padding) * -1);margin-top:calc(var(--combobox-padding) * -1);width:calc(100% + var(--combobox-padding) * 2);border-top-width:0;border-inline-width:0;border-end-start-radius:0;border-end-end-radius:0;margin-bottom:var(--combobox-padding);position:relative}:where([data-mantine-color-scheme=light]) .m_985517d8,:where([data-mantine-color-scheme=light]) .m_985517d8:focus{border-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_985517d8,:where([data-mantine-color-scheme=dark]) .m_985517d8:focus{border-color:var(--mantine-color-dark-4)}:where([data-mantine-color-scheme=light]) .m_985517d8{background-color:var(--mantine-color-white)}:where([data-mantine-color-scheme=dark]) .m_985517d8{background-color:var(--mantine-color-dark-7)}.m_2530cd1d{font-size:var(--combobox-option-fz, var(--mantine-font-size-sm));text-align:center;padding:var(--combobox-option-padding);color:var(--mantine-color-dimmed)}.m_858f94bd,.m_82b967cb{font-size:var(--combobox-option-fz, var(--mantine-font-size-sm));border:0 solid transparent;margin-inline:calc(var(--combobox-padding) * -1);padding:var(--combobox-option-padding)}:where([data-mantine-color-scheme=light]) .m_858f94bd,:where([data-mantine-color-scheme=light]) .m_82b967cb{border-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_858f94bd,:where([data-mantine-color-scheme=dark]) .m_82b967cb{border-color:var(--mantine-color-dark-4)}.m_82b967cb{border-top-width:calc(.0625rem * var(--mantine-scale));margin-top:var(--combobox-padding);margin-bottom:calc(var(--combobox-padding) * -1)}.m_858f94bd{border-bottom-width:calc(.0625rem * var(--mantine-scale));margin-bottom:var(--combobox-padding);margin-top:calc(var(--combobox-padding) * -1)}.m_254f3e4f:has(.m_2bb2e9e5:only-child){display:none}.m_2bb2e9e5{color:var(--mantine-color-dimmed);font-size:calc(var(--combobox-option-fz, var(--mantine-font-size-sm)) * .85);padding:var(--combobox-option-padding);font-weight:500;position:relative;display:flex;align-items:center}.m_2bb2e9e5:after{content:"";flex:1;inset-inline:0;height:calc(.0625rem * var(--mantine-scale));margin-inline-start:var(--mantine-spacing-xs)}:where([data-mantine-color-scheme=light]) .m_2bb2e9e5:after{background-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_2bb2e9e5:after{background-color:var(--mantine-color-dark-4)}.m_2bb2e9e5:only-child{display:none}.m_2943220b{--combobox-chevron-size-xs: calc(.875rem * var(--mantine-scale));--combobox-chevron-size-sm: calc(1.125rem * var(--mantine-scale));--combobox-chevron-size-md: calc(1.25rem * var(--mantine-scale));--combobox-chevron-size-lg: calc(1.5rem * var(--mantine-scale));--combobox-chevron-size-xl: calc(1.75rem * var(--mantine-scale));--combobox-chevron-size: var(--combobox-chevron-size-sm)}:where([data-mantine-color-scheme=light]) .m_2943220b{--_combobox-chevron-color: var(--combobox-chevron-color, var(--mantine-color-gray-6))}:where([data-mantine-color-scheme=dark]) .m_2943220b{--_combobox-chevron-color: var(--combobox-chevron-color, var(--mantine-color-dark-3))}.m_2943220b{width:var(--combobox-chevron-size);height:var(--combobox-chevron-size);color:var(--_combobox-chevron-color)}.m_2943220b:where([data-error]){color:var(--combobox-chevron-color, var(--mantine-color-error))}.m_390b5f4{display:flex;align-items:center;gap:calc(.5rem * var(--mantine-scale))}.m_390b5f4:where([data-reverse]){justify-content:space-between}.m_8ee53fc2{opacity:.4;width:.8em;min-width:.8em;height:.8em}:where([data-combobox-selected]) .m_8ee53fc2{opacity:1}.m_a530ee0a{width:.8em;min-width:.8em;height:.8em}.m_5f75b09e{--label-lh-xs: calc(1rem * var(--mantine-scale));--label-lh-sm: calc(1.25rem * var(--mantine-scale));--label-lh-md: calc(1.5rem * var(--mantine-scale));--label-lh-lg: calc(1.875rem * var(--mantine-scale));--label-lh-xl: calc(2.25rem * var(--mantine-scale));--label-lh: var(--label-lh-sm)}.m_5f75b09e[data-label-position=left]{--label-order: 1;--label-offset-end: var(--mantine-spacing-sm);--label-offset-start: 0}.m_5f75b09e[data-label-position=right]{--label-order: 2;--label-offset-end: 0;--label-offset-start: var(--mantine-spacing-sm)}.m_5f6e695e{-webkit-tap-highlight-color:transparent;display:flex}.m_d3ea56bb{--label-cursor: var(--mantine-cursor-type);-webkit-tap-highlight-color:transparent;display:inline-flex;flex-direction:column;font-size:var(--label-fz, var(--mantine-font-size-sm));line-height:var(--label-lh);cursor:var(--label-cursor);order:var(--label-order)}fieldset:disabled .m_d3ea56bb,.m_d3ea56bb[data-disabled]{--label-cursor: not-allowed}.m_8ee546b8{cursor:var(--label-cursor);color:inherit;padding-inline-start:var(--label-offset-start);padding-inline-end:var(--label-offset-end)}fieldset:disabled .m_8ee546b8,.m_8ee546b8:where([data-disabled]){color:var(--mantine-color-disabled-color)}.m_328f68c0,.m_8e8a99cc{margin-top:calc(var(--mantine-spacing-xs) / 2);padding-inline-start:var(--label-offset-start);padding-inline-end:var(--label-offset-end)}.m_26775b0a{--card-radius: var(--mantine-radius-default);display:block;width:100%;border-radius:var(--card-radius);cursor:pointer}.m_26775b0a :where(*){cursor:inherit}.m_26775b0a:where([data-with-border]){border:calc(.0625rem * var(--mantine-scale)) solid transparent}:where([data-mantine-color-scheme=light]) .m_26775b0a:where([data-with-border]){border-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_26775b0a:where([data-with-border]){border-color:var(--mantine-color-dark-4)}.m_5e5256ee{--checkbox-size-xs: calc(1rem * var(--mantine-scale));--checkbox-size-sm: calc(1.25rem * var(--mantine-scale));--checkbox-size-md: calc(1.5rem * var(--mantine-scale));--checkbox-size-lg: calc(1.875rem * var(--mantine-scale));--checkbox-size-xl: calc(2.25rem * var(--mantine-scale));--checkbox-size: var(--checkbox-size-sm);--checkbox-color: var(--mantine-primary-color-filled)}.m_5e5256ee:where([data-variant=filled]){--checkbox-icon-color: var(--mantine-color-white)}.m_5e5256ee:where([data-variant=outline]){--checkbox-icon-color: var(--checkbox-color)}.m_5e5256ee{position:relative;border:calc(.0625rem * var(--mantine-scale)) solid transparent;width:var(--checkbox-size);min-width:var(--checkbox-size);height:var(--checkbox-size);min-height:var(--checkbox-size);border-radius:var(--checkbox-radius, var(--mantine-radius-default));transition:border-color .1s ease,background-color .1s ease;cursor:var(--mantine-cursor-type);-webkit-tap-highlight-color:transparent;display:flex;align-items:center;justify-content:center}:where([data-mantine-color-scheme=light]) .m_5e5256ee{background-color:var(--mantine-color-white);border-color:var(--mantine-color-gray-4)}:where([data-mantine-color-scheme=dark]) .m_5e5256ee{background-color:var(--mantine-color-dark-6);border-color:var(--mantine-color-dark-4)}.m_5e5256ee[data-indeterminate],.m_5e5256ee[data-checked]{background-color:var(--checkbox-color);border-color:var(--checkbox-color)}.m_5e5256ee[data-indeterminate]>.m_1b1c543a,.m_5e5256ee[data-checked]>.m_1b1c543a{opacity:1;transform:none;color:var(--checkbox-icon-color)}.m_5e5256ee[data-disabled]{cursor:not-allowed;border-color:var(--mantine-color-disabled-border);background-color:var(--mantine-color-disabled)}[data-mantine-color-scheme=light] .m_5e5256ee[data-disabled][data-checked]>.m_1b1c543a{color:var(--mantine-color-gray-5)}[data-mantine-color-scheme=dark] .m_5e5256ee[data-disabled][data-checked]>.m_1b1c543a{color:var(--mantine-color-dark-3)}.m_76e20374[data-indeterminate]:not([data-disabled]),.m_76e20374[data-checked]:not([data-disabled]){background-color:transparent;border-color:var(--checkbox-color)}.m_76e20374[data-indeterminate]:not([data-disabled])>.m_1b1c543a,.m_76e20374[data-checked]:not([data-disabled])>.m_1b1c543a{color:var(--checkbox-icon-color);opacity:1;transform:none}.m_1b1c543a{display:block;width:60%;color:transparent;pointer-events:none;transform:translateY(calc(.3125rem * var(--mantine-scale))) scale(.5);opacity:1;transition:transform .1s ease,opacity .1s ease}.m_bf2d988c{--checkbox-size-xs: calc(1rem * var(--mantine-scale));--checkbox-size-sm: calc(1.25rem * var(--mantine-scale));--checkbox-size-md: calc(1.5rem * var(--mantine-scale));--checkbox-size-lg: calc(1.875rem * var(--mantine-scale));--checkbox-size-xl: calc(2.25rem * var(--mantine-scale));--checkbox-size: var(--checkbox-size-sm);--checkbox-color: var(--mantine-primary-color-filled)}.m_bf2d988c:where([data-variant=filled]){--checkbox-icon-color: var(--mantine-color-white)}.m_bf2d988c:where([data-variant=outline]){--checkbox-icon-color: var(--checkbox-color)}.m_26062bec{position:relative;width:var(--checkbox-size);height:var(--checkbox-size);order:1}.m_26062bec:where([data-label-position=left]){order:2}.m_26063560{appearance:none;border:calc(.0625rem * var(--mantine-scale)) solid transparent;width:var(--checkbox-size);height:var(--checkbox-size);border-radius:var(--checkbox-radius, var(--mantine-radius-default));padding:0;display:block;margin:0;transition:border-color .1s ease,background-color .1s ease;cursor:var(--mantine-cursor-type);-webkit-tap-highlight-color:transparent}:where([data-mantine-color-scheme=light]) .m_26063560{background-color:var(--mantine-color-white);border-color:var(--mantine-color-gray-4)}:where([data-mantine-color-scheme=dark]) .m_26063560{background-color:var(--mantine-color-dark-6);border-color:var(--mantine-color-dark-4)}.m_26063560:where([data-error]){border-color:var(--mantine-color-error)}.m_26063560[data-indeterminate],.m_26063560:checked{background-color:var(--checkbox-color);border-color:var(--checkbox-color)}.m_26063560[data-indeterminate]+.m_bf295423,.m_26063560:checked+.m_bf295423{opacity:1;transform:none}.m_26063560:disabled{cursor:not-allowed;border-color:var(--mantine-color-disabled-border);background-color:var(--mantine-color-disabled)}.m_26063560:disabled+.m_bf295423{color:var(--mantine-color-disabled-color)}.m_215c4542+.m_bf295423{color:var(--checkbox-color)}.m_215c4542[data-indeterminate]:not(:disabled),.m_215c4542:checked:not(:disabled){background-color:transparent;border-color:var(--checkbox-color)}.m_215c4542[data-indeterminate]:not(:disabled)+.m_bf295423,.m_215c4542:checked:not(:disabled)+.m_bf295423{color:var(--checkbox-icon-color);opacity:1;transform:none}.m_bf295423{position:absolute;inset:0;width:60%;margin:auto;color:var(--checkbox-icon-color);pointer-events:none;transform:translateY(calc(.3125rem * var(--mantine-scale))) scale(.5);opacity:0;transition:transform .1s ease,opacity .1s ease}.m_11def92b{--ag-spacing: var(--mantine-spacing-sm);--ag-offset: calc(var(--ag-spacing) * -1);display:flex;padding-inline-start:var(--ag-spacing)}.m_f85678b6{--avatar-size-xs: calc(1rem * var(--mantine-scale));--avatar-size-sm: calc(1.625rem * var(--mantine-scale));--avatar-size-md: calc(2.375rem * var(--mantine-scale));--avatar-size-lg: calc(3.5rem * var(--mantine-scale));--avatar-size-xl: calc(5.25rem * var(--mantine-scale));--avatar-size: var(--avatar-size-md);--avatar-radius: calc(62.5rem * var(--mantine-scale));--avatar-bg: var(--mantine-color-gray-light);--avatar-bd: calc(.0625rem * var(--mantine-scale)) solid transparent;--avatar-color: var(--mantine-color-gray-light-color);--avatar-placeholder-fz: calc(var(--avatar-size) / 2.5);-webkit-tap-highlight-color:transparent;position:relative;display:block;user-select:none;overflow:hidden;border-radius:var(--avatar-radius);text-decoration:none;padding:0;width:var(--avatar-size);height:var(--avatar-size);min-width:var(--avatar-size)}.m_f85678b6:where([data-within-group]){margin-inline-start:var(--ag-offset);border:2px solid var(--mantine-color-body);background:var(--mantine-color-body)}.m_11f8ac07{object-fit:cover;width:100%;height:100%;display:block}.m_104cd71f{font-weight:700;display:flex;align-items:center;justify-content:center;width:100%;height:100%;user-select:none;border-radius:var(--avatar-radius);font-size:var(--avatar-placeholder-fz);background:var(--avatar-bg);border:var(--avatar-bd);color:var(--avatar-color)}.m_104cd71f>[data-avatar-placeholder-icon]{width:70%;height:70%}.m_2ce0de02{background-size:cover;background-position:center;display:block;width:100%;border:0;text-decoration:none;border-radius:var(--bi-radius, 0)}.m_347db0ec{--badge-height-xs: calc(1rem * var(--mantine-scale));--badge-height-sm: calc(1.125rem * var(--mantine-scale));--badge-height-md: calc(1.25rem * var(--mantine-scale));--badge-height-lg: calc(1.625rem * var(--mantine-scale));--badge-height-xl: calc(2rem * var(--mantine-scale));--badge-fz-xs: calc(.5625rem * var(--mantine-scale));--badge-fz-sm: calc(.625rem * var(--mantine-scale));--badge-fz-md: calc(.6875rem * var(--mantine-scale));--badge-fz-lg: calc(.8125rem * var(--mantine-scale));--badge-fz-xl: calc(1rem * var(--mantine-scale));--badge-padding-x-xs: calc(.375rem * var(--mantine-scale));--badge-padding-x-sm: calc(.5rem * var(--mantine-scale));--badge-padding-x-md: calc(.625rem * var(--mantine-scale));--badge-padding-x-lg: calc(.75rem * var(--mantine-scale));--badge-padding-x-xl: calc(1rem * var(--mantine-scale));--badge-height: var(--badge-height-md);--badge-fz: var(--badge-fz-md);--badge-padding-x: var(--badge-padding-x-md);--badge-radius: calc(62.5rem * var(--mantine-scale));--badge-lh: calc(var(--badge-height) - calc(.125rem * var(--mantine-scale)));--badge-color: var(--mantine-color-white);--badge-bg: var(--mantine-primary-color-filled);--badge-border-width: calc(.0625rem * var(--mantine-scale));--badge-bd: var(--badge-border-width) solid transparent;-webkit-tap-highlight-color:transparent;font-size:var(--badge-fz);border-radius:var(--badge-radius);height:var(--badge-height);line-height:var(--badge-lh);text-decoration:none;padding:0 var(--badge-padding-x);display:inline-grid;align-items:center;justify-content:center;width:fit-content;text-transform:uppercase;font-weight:700;letter-spacing:calc(.015625rem * var(--mantine-scale));cursor:default;text-overflow:ellipsis;overflow:hidden;color:var(--badge-color);background:var(--badge-bg);border:var(--badge-bd)}.m_347db0ec:where([data-with-left-section],[data-variant=dot]){grid-template-columns:auto 1fr}.m_347db0ec:where([data-with-right-section]){grid-template-columns:1fr auto}.m_347db0ec:where([data-with-left-section][data-with-right-section],[data-variant=dot][data-with-right-section]){grid-template-columns:auto 1fr auto}.m_347db0ec:where([data-block]){display:flex;width:100%}.m_347db0ec:where([data-circle]){padding-inline:calc(.125rem * var(--mantine-scale));display:flex;width:var(--badge-height)}.m_fbd81e3d{--badge-dot-size: calc(var(--badge-height) / 3.4)}:where([data-mantine-color-scheme=light]) .m_fbd81e3d{background-color:var(--mantine-color-white);border-color:var(--mantine-color-gray-4);color:var(--mantine-color-black)}:where([data-mantine-color-scheme=dark]) .m_fbd81e3d{background-color:var(--mantine-color-dark-5);border-color:var(--mantine-color-dark-5);color:var(--mantine-color-white)}.m_fbd81e3d:before{content:"";display:block;width:var(--badge-dot-size);height:var(--badge-dot-size);border-radius:var(--badge-dot-size);background-color:var(--badge-dot-color);margin-inline-end:var(--badge-dot-size)}.m_5add502a{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center;cursor:inherit}.m_91fdda9b{--badge-section-margin: calc(var(--mantine-spacing-xs) / 2);display:inline-flex;justify-content:center;align-items:center;max-height:calc(var(--badge-height) - var(--badge-border-width) * 2)}.m_91fdda9b:where([data-position=left]){margin-inline-end:var(--badge-section-margin)}.m_91fdda9b:where([data-position=right]){margin-inline-start:var(--badge-section-margin)}.m_ddec01c0{--blockquote-border: 3px solid var(--bq-bd);position:relative;margin:0;border-inline-start:var(--blockquote-border);border-start-end-radius:var(--bq-radius);border-end-end-radius:var(--bq-radius);padding:var(--mantine-spacing-xl) calc(2.375rem * var(--mantine-scale))}:where([data-mantine-color-scheme=light]) .m_ddec01c0{background-color:var(--bq-bg-light)}:where([data-mantine-color-scheme=dark]) .m_ddec01c0{background-color:var(--bq-bg-dark)}.m_dde7bd57{--blockquote-icon-offset: calc(var(--bq-icon-size) / -2);position:absolute;color:var(--bq-bd);background-color:var(--mantine-color-body);display:flex;align-items:center;justify-content:center;top:var(--blockquote-icon-offset);inset-inline-start:var(--blockquote-icon-offset);width:var(--bq-icon-size);height:var(--bq-icon-size);border-radius:var(--bq-icon-size)}.m_dde51a35{display:block;margin-top:var(--mantine-spacing-md);opacity:.6;font-size:85%}.m_8b3717df{display:flex;align-items:center;flex-wrap:wrap}.m_f678d540{line-height:1;white-space:nowrap;-webkit-tap-highlight-color:transparent}.m_3b8f2208{margin-inline:var(--bc-separator-margin, var(--mantine-spacing-xs));line-height:1;display:flex;align-items:center;justify-content:center}:where([data-mantine-color-scheme=light]) .m_3b8f2208{color:var(--mantine-color-gray-7)}:where([data-mantine-color-scheme=dark]) .m_3b8f2208{color:var(--mantine-color-dark-2)}.m_fea6bf1a{--burger-size-xs: calc(.75rem * var(--mantine-scale));--burger-size-sm: calc(1.125rem * var(--mantine-scale));--burger-size-md: calc(1.5rem * var(--mantine-scale));--burger-size-lg: calc(2.125rem * var(--mantine-scale));--burger-size-xl: calc(2.625rem * var(--mantine-scale));--burger-size: var(--burger-size-md);--burger-line-size: calc(var(--burger-size) / 12);width:calc(var(--burger-size) + var(--mantine-spacing-xs));height:calc(var(--burger-size) + var(--mantine-spacing-xs));padding:calc(var(--mantine-spacing-xs) / 2);cursor:pointer}:where([data-mantine-color-scheme=light]) .m_fea6bf1a{--burger-color: var(--mantine-color-black)}:where([data-mantine-color-scheme=dark]) .m_fea6bf1a{--burger-color: var(--mantine-color-white)}.m_d4fb9cad{position:relative;user-select:none}.m_d4fb9cad,.m_d4fb9cad:before,.m_d4fb9cad:after{display:block;width:var(--burger-size);height:var(--burger-line-size);background-color:var(--burger-color);outline:calc(.0625rem * var(--mantine-scale)) solid transparent;transition-property:background-color,transform;transition-duration:var(--burger-transition-duration, .3s);transition-timing-function:var(--burger-transition-timing-function, ease)}.m_d4fb9cad:before,.m_d4fb9cad:after{position:absolute;content:"";inset-inline-start:0}.m_d4fb9cad:before{top:calc(var(--burger-size) / -3)}.m_d4fb9cad:after{top:calc(var(--burger-size) / 3)}.m_d4fb9cad[data-opened]{background-color:transparent}.m_d4fb9cad[data-opened]:before{transform:translateY(calc(var(--burger-size) / 3)) rotate(45deg)}.m_d4fb9cad[data-opened]:after{transform:translateY(calc(var(--burger-size) / -3)) rotate(-45deg)}.m_77c9d27d{--button-height-xs: calc(1.875rem * var(--mantine-scale));--button-height-sm: calc(2.25rem * var(--mantine-scale));--button-height-md: calc(2.625rem * var(--mantine-scale));--button-height-lg: calc(3.125rem * var(--mantine-scale));--button-height-xl: calc(3.75rem * var(--mantine-scale));--button-height-compact-xs: calc(1.375rem * var(--mantine-scale));--button-height-compact-sm: calc(1.625rem * var(--mantine-scale));--button-height-compact-md: calc(1.875rem * var(--mantine-scale));--button-height-compact-lg: calc(2.125rem * var(--mantine-scale));--button-height-compact-xl: calc(2.5rem * var(--mantine-scale));--button-padding-x-xs: calc(.875rem * var(--mantine-scale));--button-padding-x-sm: calc(1.125rem * var(--mantine-scale));--button-padding-x-md: calc(1.375rem * var(--mantine-scale));--button-padding-x-lg: calc(1.625rem * var(--mantine-scale));--button-padding-x-xl: calc(2rem * var(--mantine-scale));--button-padding-x-compact-xs: calc(.4375rem * var(--mantine-scale));--button-padding-x-compact-sm: calc(.5rem * var(--mantine-scale));--button-padding-x-compact-md: calc(.625rem * var(--mantine-scale));--button-padding-x-compact-lg: calc(.75rem * var(--mantine-scale));--button-padding-x-compact-xl: calc(.875rem * var(--mantine-scale));--button-height: var(--button-height-sm);--button-padding-x: var(--button-padding-x-sm);--button-color: var(--mantine-color-white);user-select:none;font-weight:600;position:relative;line-height:1;text-align:center;overflow:hidden;width:auto;cursor:pointer;display:inline-block;border-radius:var(--button-radius, var(--mantine-radius-default));font-size:var(--button-fz, var(--mantine-font-size-sm));background:var(--button-bg, var(--mantine-primary-color-filled));border:var(--button-bd, calc(.0625rem * var(--mantine-scale)) solid transparent);color:var(--button-color, var(--mantine-color-white));height:var(--button-height, var(--button-height-sm));padding-inline:var(--button-padding-x, var(--button-padding-x-sm));vertical-align:middle}.m_77c9d27d:where([data-block]){display:block;width:100%}.m_77c9d27d:where([data-with-left-section]){padding-inline-start:calc(var(--button-padding-x) / 1.5)}.m_77c9d27d:where([data-with-right-section]){padding-inline-end:calc(var(--button-padding-x) / 1.5)}.m_77c9d27d:where(:disabled:not([data-loading]),[data-disabled]:not([data-loading])){cursor:not-allowed;border:calc(.0625rem * var(--mantine-scale)) solid transparent;transform:none;color:var(--mantine-color-disabled-color);background:var(--mantine-color-disabled)}.m_77c9d27d:before{content:"";pointer-events:none;position:absolute;inset:calc(-.0625rem * var(--mantine-scale));border-radius:var(--button-radius, var(--mantine-radius-default));transform:translateY(-100%);opacity:0;filter:blur(12px);transition:transform .15s ease,opacity .1s ease}:where([data-mantine-color-scheme=light]) .m_77c9d27d:before{background-color:#ffffff26}:where([data-mantine-color-scheme=dark]) .m_77c9d27d:before{background-color:#00000026}.m_77c9d27d:where([data-loading]){cursor:not-allowed;transform:none}.m_77c9d27d:where([data-loading]):before{transform:translateY(0);opacity:1}.m_77c9d27d:where([data-loading]) .m_80f1301b{opacity:0;transform:translateY(100%)}@media(hover:hover){.m_77c9d27d:hover:where(:not([data-loading],:disabled,[data-disabled])){background-color:var(--button-hover, var(--mantine-primary-color-filled-hover));color:var(--button-hover-color, var(--button-color))}}@media(hover:none){.m_77c9d27d:active:where(:not([data-loading],:disabled,[data-disabled])){background-color:var(--button-hover, var(--mantine-primary-color-filled-hover));color:var(--button-hover-color, var(--button-color))}}.m_80f1301b{display:flex;align-items:center;justify-content:var(--button-justify, center);height:100%;overflow:visible;transition:transform .15s ease,opacity .1s ease}.m_811560b9{white-space:nowrap;height:100%;overflow:hidden;display:flex;align-items:center;opacity:1}.m_811560b9:where([data-loading]){opacity:.2}.m_a74036a{display:flex;align-items:center}.m_a74036a:where([data-position=left]){margin-inline-end:var(--mantine-spacing-xs)}.m_a74036a:where([data-position=right]){margin-inline-start:var(--mantine-spacing-xs)}.m_a25b86ee{position:absolute;left:50%;top:50%}.m_80d6d844{--button-border-width: calc(.0625rem * var(--mantine-scale));display:flex}.m_80d6d844 :where(.m_77c9d27d):focus{position:relative;z-index:1}.m_80d6d844[data-orientation=horizontal]{flex-direction:row}.m_80d6d844[data-orientation=horizontal] .m_77c9d27d:not(:only-child):first-child,.m_80d6d844[data-orientation=horizontal] .m_70be2a01:not(:only-child):first-child{border-end-end-radius:0;border-start-end-radius:0;border-inline-end-width:calc(var(--button-border-width) / 2)}.m_80d6d844[data-orientation=horizontal] .m_77c9d27d:not(:only-child):last-child,.m_80d6d844[data-orientation=horizontal] .m_70be2a01:not(:only-child):last-child{border-end-start-radius:0;border-start-start-radius:0;border-inline-start-width:calc(var(--button-border-width) / 2)}.m_80d6d844[data-orientation=horizontal] .m_77c9d27d:not(:only-child):not(:first-child):not(:last-child),.m_80d6d844[data-orientation=horizontal] .m_70be2a01:not(:only-child):not(:first-child):not(:last-child){border-radius:0;border-inline-width:calc(var(--button-border-width) / 2)}.m_80d6d844[data-orientation=vertical]{flex-direction:column}.m_80d6d844[data-orientation=vertical] .m_77c9d27d:not(:only-child):first-child,.m_80d6d844[data-orientation=vertical] .m_70be2a01:not(:only-child):first-child{border-end-start-radius:0;border-end-end-radius:0;border-bottom-width:calc(var(--button-border-width) / 2)}.m_80d6d844[data-orientation=vertical] .m_77c9d27d:not(:only-child):last-child,.m_80d6d844[data-orientation=vertical] .m_70be2a01:not(:only-child):last-child{border-start-start-radius:0;border-start-end-radius:0;border-top-width:calc(var(--button-border-width) / 2)}.m_80d6d844[data-orientation=vertical] .m_77c9d27d:not(:only-child):not(:first-child):not(:last-child),.m_80d6d844[data-orientation=vertical] .m_70be2a01:not(:only-child):not(:first-child):not(:last-child){border-radius:0;border-bottom-width:calc(var(--button-border-width) / 2);border-top-width:calc(var(--button-border-width) / 2)}.m_70be2a01{--section-height-xs: calc(1.875rem * var(--mantine-scale));--section-height-sm: calc(2.25rem * var(--mantine-scale));--section-height-md: calc(2.625rem * var(--mantine-scale));--section-height-lg: calc(3.125rem * var(--mantine-scale));--section-height-xl: calc(3.75rem * var(--mantine-scale));--section-height-compact-xs: calc(1.375rem * var(--mantine-scale));--section-height-compact-sm: calc(1.625rem * var(--mantine-scale));--section-height-compact-md: calc(1.875rem * var(--mantine-scale));--section-height-compact-lg: calc(2.125rem * var(--mantine-scale));--section-height-compact-xl: calc(2.5rem * var(--mantine-scale));--section-padding-x-xs: calc(.875rem * var(--mantine-scale));--section-padding-x-sm: calc(1.125rem * var(--mantine-scale));--section-padding-x-md: calc(1.375rem * var(--mantine-scale));--section-padding-x-lg: calc(1.625rem * var(--mantine-scale));--section-padding-x-xl: calc(2rem * var(--mantine-scale));--section-padding-x-compact-xs: calc(.4375rem * var(--mantine-scale));--section-padding-x-compact-sm: calc(.5rem * var(--mantine-scale));--section-padding-x-compact-md: calc(.625rem * var(--mantine-scale));--section-padding-x-compact-lg: calc(.75rem * var(--mantine-scale));--section-padding-x-compact-xl: calc(.875rem * var(--mantine-scale));--section-height: var(--section-height-sm);--section-padding-x: var(--section-padding-x-sm);--section-color: var(--mantine-color-white);font-weight:600;width:auto;border-radius:var(--section-radius, var(--mantine-radius-default));font-size:var(--section-fz, var(--mantine-font-size-sm));background:var(--section-bg, var(--mantine-primary-color-filled));border:var(--section-bd, calc(.0625rem * var(--mantine-scale)) solid transparent);color:var(--section-color, var(--mantine-color-white));height:var(--section-height, var(--section-height-sm));padding-inline:var(--section-padding-x, var(--section-padding-x-sm));vertical-align:middle;line-height:1;display:inline-flex;align-items:center;justify-content:center}.m_e615b15f{--card-padding: var(--mantine-spacing-md);position:relative;overflow:hidden;display:flex;flex-direction:column;padding:var(--card-padding);color:var(--mantine-color-text)}:where([data-mantine-color-scheme=light]) .m_e615b15f{background-color:var(--mantine-color-white)}:where([data-mantine-color-scheme=dark]) .m_e615b15f{background-color:var(--mantine-color-dark-6)}.m_599a2148{display:block;margin-inline:calc(var(--card-padding) * -1)}.m_599a2148:where(:first-child){margin-top:calc(var(--card-padding) * -1);border-top:none!important}.m_599a2148:where(:last-child){margin-bottom:calc(var(--card-padding) * -1);border-bottom:none!important}.m_599a2148:where([data-inherit-padding]){padding-inline:var(--card-padding)}.m_599a2148:where([data-with-border]){border-top:calc(.0625rem * var(--mantine-scale)) solid;border-bottom:calc(.0625rem * var(--mantine-scale)) solid}:where([data-mantine-color-scheme=light]) .m_599a2148{border-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_599a2148{border-color:var(--mantine-color-dark-4)}.m_599a2148+.m_599a2148{border-top:none!important}.m_4451eb3a{display:flex;align-items:center;justify-content:center}.m_4451eb3a:where([data-inline]){display:inline-flex}.m_f59ffda3{--chip-size-xs: calc(1.4375rem * var(--mantine-scale));--chip-size-sm: calc(1.75rem * var(--mantine-scale));--chip-size-md: calc(2rem * var(--mantine-scale));--chip-size-lg: calc(2.25rem * var(--mantine-scale));--chip-size-xl: calc(2.5rem * var(--mantine-scale));--chip-icon-size-xs: calc(.5625rem * var(--mantine-scale));--chip-icon-size-sm: calc(.75rem * var(--mantine-scale));--chip-icon-size-md: calc(.875rem * var(--mantine-scale));--chip-icon-size-lg: calc(1rem * var(--mantine-scale));--chip-icon-size-xl: calc(1.125rem * var(--mantine-scale));--chip-padding-xs: calc(1rem * var(--mantine-scale));--chip-padding-sm: calc(1.25rem * var(--mantine-scale));--chip-padding-md: calc(1.5rem * var(--mantine-scale));--chip-padding-lg: calc(1.75rem * var(--mantine-scale));--chip-padding-xl: calc(2rem * var(--mantine-scale));--chip-checked-padding-xs: calc(.5125rem * var(--mantine-scale));--chip-checked-padding-sm: calc(.625rem * var(--mantine-scale));--chip-checked-padding-md: calc(.73125rem * var(--mantine-scale));--chip-checked-padding-lg: calc(.84375rem * var(--mantine-scale));--chip-checked-padding-xl: calc(.98125rem * var(--mantine-scale));--chip-spacing-xs: calc(.625rem * var(--mantine-scale));--chip-spacing-sm: calc(.75rem * var(--mantine-scale));--chip-spacing-md: calc(1rem * var(--mantine-scale));--chip-spacing-lg: calc(1.25rem * var(--mantine-scale));--chip-spacing-xl: calc(1.375rem * var(--mantine-scale));--chip-size: var(--chip-size-sm);--chip-icon-size: var(--chip-icon-size-sm);--chip-padding: var(--chip-padding-sm);--chip-spacing: var(--chip-spacing-sm);--chip-checked-padding: var(--chip-checked-padding-sm);--chip-bg: var(--mantine-primary-color-filled);--chip-hover: var(--mantine-primary-color-filled-hover);--chip-color: var(--mantine-color-white);--chip-bd: calc(.0625rem * var(--mantine-scale)) solid transparent}.m_be049a53{display:inline-flex;align-items:center;user-select:none;border-radius:var(--chip-radius, 1000rem);height:var(--chip-size);font-size:var(--chip-fz, var(--mantine-font-size-sm));line-height:calc(var(--chip-size) - calc(.125rem * var(--mantine-scale)));padding-inline:var(--chip-padding);cursor:pointer;white-space:nowrap;-webkit-tap-highlight-color:transparent;border:calc(.0625rem * var(--mantine-scale)) solid transparent;color:var(--mantine-color-text)}.m_be049a53:where([data-checked]){padding:var(--chip-checked-padding)}.m_be049a53:where([data-disabled]){cursor:not-allowed;background-color:var(--mantine-color-disabled);color:var(--mantine-color-disabled-color)}:where([data-mantine-color-scheme=light]) .m_3904c1af:not([data-disabled]){background-color:var(--mantine-color-white);border:1px solid var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_3904c1af:not([data-disabled]){background-color:var(--mantine-color-dark-6);border:1px solid var(--mantine-color-dark-4)}@media(hover:hover){:where([data-mantine-color-scheme=light]) .m_3904c1af:not([data-disabled]):hover{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_3904c1af:not([data-disabled]):hover{background-color:var(--mantine-color-dark-5)}}@media(hover:none){:where([data-mantine-color-scheme=light]) .m_3904c1af:not([data-disabled]):active{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_3904c1af:not([data-disabled]):active{background-color:var(--mantine-color-dark-5)}}.m_3904c1af:not([data-disabled]):where([data-checked]){--chip-icon-color: var(--chip-color);border:var(--chip-bd)}@media(hover:hover){.m_3904c1af:not([data-disabled]):where([data-checked]):hover{background-color:var(--chip-hover)}}@media(hover:none){.m_3904c1af:not([data-disabled]):where([data-checked]):active{background-color:var(--chip-hover)}}.m_fa109255:not([data-disabled]),.m_f7e165c3:not([data-disabled]){border:calc(.0625rem * var(--mantine-scale)) solid transparent;color:var(--mantine-color-text)}:where([data-mantine-color-scheme=light]) .m_fa109255:not([data-disabled]),:where([data-mantine-color-scheme=light]) .m_f7e165c3:not([data-disabled]){background-color:var(--mantine-color-gray-1)}:where([data-mantine-color-scheme=dark]) .m_fa109255:not([data-disabled]),:where([data-mantine-color-scheme=dark]) .m_f7e165c3:not([data-disabled]){background-color:var(--mantine-color-dark-5)}@media(hover:hover){:where([data-mantine-color-scheme=light]) .m_fa109255:not([data-disabled]):hover,:where([data-mantine-color-scheme=light]) .m_f7e165c3:not([data-disabled]):hover{background-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_fa109255:not([data-disabled]):hover,:where([data-mantine-color-scheme=dark]) .m_f7e165c3:not([data-disabled]):hover{background-color:var(--mantine-color-dark-4)}}@media(hover:none){:where([data-mantine-color-scheme=light]) .m_fa109255:not([data-disabled]):active,:where([data-mantine-color-scheme=light]) .m_f7e165c3:not([data-disabled]):active{background-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_fa109255:not([data-disabled]):active,:where([data-mantine-color-scheme=dark]) .m_f7e165c3:not([data-disabled]):active{background-color:var(--mantine-color-dark-4)}}.m_fa109255:not([data-disabled]):where([data-checked]),.m_f7e165c3:not([data-disabled]):where([data-checked]){--chip-icon-color: var(--chip-color);color:var(--chip-color);background-color:var(--chip-bg)}@media(hover:hover){.m_fa109255:not([data-disabled]):where([data-checked]):hover,.m_f7e165c3:not([data-disabled]):where([data-checked]):hover{background-color:var(--chip-hover)}}@media(hover:none){.m_fa109255:not([data-disabled]):where([data-checked]):active,.m_f7e165c3:not([data-disabled]):where([data-checked]):active{background-color:var(--chip-hover)}}.m_9ac86df9{width:calc(var(--chip-icon-size) + (var(--chip-spacing) / 1.5));max-width:calc(var(--chip-icon-size) + (var(--chip-spacing) / 1.5));height:var(--chip-icon-size);display:flex;align-items:center;overflow:hidden}.m_d6d72580{width:var(--chip-icon-size);height:var(--chip-icon-size);display:block;color:var(--chip-icon-color, inherit)}.m_bde07329{width:0;height:0;padding:0;opacity:0;margin:0}.m_bde07329:focus-visible+.m_be049a53{outline:2px solid var(--mantine-primary-color-filled);outline-offset:calc(.125rem * var(--mantine-scale))}.m_b183c0a2{font-family:var(--mantine-font-family-monospace);line-height:var(--mantine-line-height);padding:2px calc(var(--mantine-spacing-xs) / 2);border-radius:var(--mantine-radius-sm);font-size:var(--mantine-font-size-xs);margin:0;overflow:auto}:where([data-mantine-color-scheme=light]) .m_b183c0a2{background-color:var(--code-bg, var(--mantine-color-gray-0))}:where([data-mantine-color-scheme=dark]) .m_b183c0a2{background-color:var(--code-bg, var(--mantine-color-dark-6))}.m_b183c0a2[data-block]{padding:var(--mantine-spacing-xs)}.m_de3d2490{--cs-size: calc(1.75rem * var(--mantine-scale));--cs-radius: calc(62.5rem * var(--mantine-scale));-webkit-tap-highlight-color:transparent;border:none;appearance:none;display:block;line-height:1;position:relative;width:var(--cs-size);height:var(--cs-size);min-width:var(--cs-size);min-height:var(--cs-size);border-radius:var(--cs-radius);color:inherit;text-decoration:none}[data-mantine-color-scheme=light] .m_de3d2490{--alpha-overlay-color: var(--mantine-color-gray-3);--alpha-overlay-bg: var(--mantine-color-white)}[data-mantine-color-scheme=dark] .m_de3d2490{--alpha-overlay-color: var(--mantine-color-dark-4);--alpha-overlay-bg: var(--mantine-color-dark-7)}.m_862f3d1b{position:absolute;inset:0;border-radius:var(--cs-radius)}.m_98ae7f22{position:absolute;inset:0;border-radius:var(--cs-radius);z-index:1;box-shadow:#0000001a 0 0 0 calc(.0625rem * var(--mantine-scale)) inset,#00000026 0 0 calc(.25rem * var(--mantine-scale)) inset}.m_95709ac0{position:absolute;inset:0;border-radius:var(--cs-radius);background-size:calc(.5rem * var(--mantine-scale)) calc(.5rem * var(--mantine-scale));background-position:0 0,0 calc(.25rem * var(--mantine-scale)),calc(.25rem * var(--mantine-scale)) calc(-.25rem * var(--mantine-scale)),calc(-.25rem * var(--mantine-scale)) 0;background-image:linear-gradient(45deg,var(--alpha-overlay-color) 25%,transparent 25%),linear-gradient(-45deg,var(--alpha-overlay-color) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,var(--alpha-overlay-color) 75%),linear-gradient(-45deg,var(--alpha-overlay-bg) 75%,var(--alpha-overlay-color) 75%)}.m_93e74e3{position:absolute;inset:0;border-radius:var(--cs-radius);z-index:2;display:flex;align-items:center;justify-content:center}.m_fee9c77{--cp-width-xs: calc(11.25rem * var(--mantine-scale));--cp-width-sm: calc(12.5rem * var(--mantine-scale));--cp-width-md: calc(15rem * var(--mantine-scale));--cp-width-lg: calc(17.5rem * var(--mantine-scale));--cp-width-xl: calc(20rem * var(--mantine-scale));--cp-preview-size-xs: calc(1.625rem * var(--mantine-scale));--cp-preview-size-sm: calc(2.125rem * var(--mantine-scale));--cp-preview-size-md: calc(2.625rem * var(--mantine-scale));--cp-preview-size-lg: calc(3.125rem * var(--mantine-scale));--cp-preview-size-xl: calc(3.375rem * var(--mantine-scale));--cp-thumb-size-xs: calc(.5rem * var(--mantine-scale));--cp-thumb-size-sm: calc(.75rem * var(--mantine-scale));--cp-thumb-size-md: calc(1rem * var(--mantine-scale));--cp-thumb-size-lg: calc(1.25rem * var(--mantine-scale));--cp-thumb-size-xl: calc(1.375rem * var(--mantine-scale));--cp-saturation-height-xs: calc(6.25rem * var(--mantine-scale));--cp-saturation-height-sm: calc(6.875rem * var(--mantine-scale));--cp-saturation-height-md: calc(7.5rem * var(--mantine-scale));--cp-saturation-height-lg: calc(8.75rem * var(--mantine-scale));--cp-saturation-height-xl: calc(10rem * var(--mantine-scale));--cp-preview-size: var(--cp-preview-size-sm);--cp-thumb-size: var(--cp-thumb-size-sm);--cp-saturation-height: var(--cp-saturation-height-sm);--cp-width: var(--cp-width-sm);--cp-body-spacing: var(--mantine-spacing-sm);width:var(--cp-width);padding:calc(.0625rem * var(--mantine-scale))}.m_fee9c77:where([data-full-width]){width:100%}.m_9dddfbac{width:var(--cp-preview-size);height:var(--cp-preview-size)}.m_bffecc3e{display:flex;padding-top:calc(var(--cp-body-spacing) / 2)}.m_3283bb96{flex:1}.m_3283bb96:not(:only-child){margin-inline-end:var(--mantine-spacing-xs)}.m_40d572ba{overflow:hidden;position:absolute;box-shadow:0 0 1px #0009;border:2px solid var(--mantine-color-white);width:var(--cp-thumb-size);height:var(--cp-thumb-size);border-radius:var(--cp-thumb-size);left:calc(var(--thumb-x-offset) - var(--cp-thumb-size) / 2);top:calc(var(--thumb-y-offset) - var(--cp-thumb-size) / 2)}.m_d8ee6fd8{height:unset!important;width:unset!important;min-width:0!important;min-height:0!important;margin:calc(.125rem * var(--mantine-scale));cursor:pointer;padding-bottom:calc(var(--cp-swatch-size) - calc(.25rem * var(--mantine-scale)));flex:0 0 calc(var(--cp-swatch-size) - calc(.25rem * var(--mantine-scale)))}.m_5711e686{margin-top:calc(.3125rem * var(--mantine-scale));margin-inline:calc(-.125rem * var(--mantine-scale));display:flex;flex-wrap:wrap}.m_5711e686:only-child{margin-top:0}.m_202a296e{--cp-thumb-size-xs: calc(.5rem * var(--mantine-scale));--cp-thumb-size-sm: calc(.75rem * var(--mantine-scale));--cp-thumb-size-md: calc(1rem * var(--mantine-scale));--cp-thumb-size-lg: calc(1.25rem * var(--mantine-scale));--cp-thumb-size-xl: calc(1.375rem * var(--mantine-scale));-webkit-tap-highlight-color:transparent;position:relative;height:var(--cp-saturation-height);border-radius:var(--mantine-radius-sm);margin:calc(var(--cp-thumb-size) / 2)}.m_202a296e:where([data-focus-ring=auto]):focus:focus-visible .m_40d572ba{outline:2px solid var(--mantine-color-blue-filled)}.m_202a296e:where([data-focus-ring=always]):focus .m_40d572ba{outline:2px solid var(--mantine-color-blue-filled)}.m_11b3db02{position:absolute;border-radius:var(--mantine-radius-sm);inset:calc(var(--cp-thumb-size) * -1 / 2 - calc(.0625rem * var(--mantine-scale)))}.m_d856d47d{--cp-thumb-size-xs: calc(.5rem * var(--mantine-scale));--cp-thumb-size-sm: calc(.75rem * var(--mantine-scale));--cp-thumb-size-md: calc(1rem * var(--mantine-scale));--cp-thumb-size-lg: calc(1.25rem * var(--mantine-scale));--cp-thumb-size-xl: calc(1.375rem * var(--mantine-scale));--cp-thumb-size: var(--cp-thumb-size, calc(.75rem * var(--mantine-scale)));position:relative;height:calc(var(--cp-thumb-size) + calc(.125rem * var(--mantine-scale)));margin-inline:calc(var(--cp-thumb-size) / 2);outline:none}.m_d856d47d+.m_d856d47d{margin-top:calc(.375rem * var(--mantine-scale))}.m_d856d47d:where([data-focus-ring=auto]):focus:focus-visible .m_40d572ba{outline:2px solid var(--mantine-color-blue-filled)}.m_d856d47d:where([data-focus-ring=always]):focus .m_40d572ba{outline:2px solid var(--mantine-color-blue-filled)}:where([data-mantine-color-scheme=light]) .m_d856d47d{--slider-checkers: var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_d856d47d{--slider-checkers: var(--mantine-color-dark-4)}.m_8f327113{position:absolute;top:0;bottom:0;inset-inline:calc(var(--cp-thumb-size) * -1 / 2 - calc(.0625rem * var(--mantine-scale)));border-radius:10000rem}.m_b077c2bc{--ci-eye-dropper-icon-size-xs: calc(.875rem * var(--mantine-scale));--ci-eye-dropper-icon-size-sm: calc(1rem * var(--mantine-scale));--ci-eye-dropper-icon-size-md: calc(1.125rem * var(--mantine-scale));--ci-eye-dropper-icon-size-lg: calc(1.25rem * var(--mantine-scale));--ci-eye-dropper-icon-size-xl: calc(1.375rem * var(--mantine-scale));--ci-eye-dropper-icon-size: var(--ci-eye-dropper-icon-size-sm)}.m_66a028b5{--ci-button-size-xs: calc(1.375rem * var(--mantine-scale));--ci-button-size-sm: calc(1.625rem * var(--mantine-scale));--ci-button-size-md: calc(1.75rem * var(--mantine-scale));--ci-button-size-lg: calc(2rem * var(--mantine-scale));--ci-button-size-xl: calc(2.5rem * var(--mantine-scale));--ci-button-size: var(--ci-button-size-sm);width:var(--ci-button-size);height:var(--ci-button-size);min-width:var(--ci-button-size);min-height:var(--ci-button-size)}.m_c5ccdcab{--ci-preview-size-xs: calc(1rem * var(--mantine-scale));--ci-preview-size-sm: calc(1.125rem * var(--mantine-scale));--ci-preview-size-md: calc(1.375rem * var(--mantine-scale));--ci-preview-size-lg: calc(1.75rem * var(--mantine-scale));--ci-preview-size-xl: calc(2.25rem * var(--mantine-scale));--ci-preview-size: var(--ci-preview-size-sm)}.m_5ece2cd7{padding:calc(.5rem * var(--mantine-scale))}.m_7485cace{--container-size-xs: calc(33.75rem * var(--mantine-scale));--container-size-sm: calc(45rem * var(--mantine-scale));--container-size-md: calc(60rem * var(--mantine-scale));--container-size-lg: calc(71.25rem * var(--mantine-scale));--container-size-xl: calc(82.5rem * var(--mantine-scale));--container-size: var(--container-size-md)}.m_7485cace:where([data-strategy=block]){max-width:var(--container-size);padding-inline:var(--mantine-spacing-md);margin-inline:auto}.m_7485cace:where([data-strategy=block]):where([data-fluid]){max-width:100%}.m_7485cace:where([data-strategy=grid]){display:grid;grid-template-columns:1fr min(100%,var(--container-size)) 1fr;margin-inline:auto}.m_7485cace:where([data-strategy=grid])>*{grid-column:2}.m_7485cace:where([data-strategy=grid])>[data-breakout]{grid-column:1 / -1}.m_7485cace:where([data-strategy=grid])>[data-breakout]>[data-container]{max-width:var(--container-size);margin-inline:auto}.m_e2125a27{--dialog-size-xs: calc(10rem * var(--mantine-scale));--dialog-size-sm: calc(12.5rem * var(--mantine-scale));--dialog-size-md: calc(21.25rem * var(--mantine-scale));--dialog-size-lg: calc(25rem * var(--mantine-scale));--dialog-size-xl: calc(31.25rem * var(--mantine-scale));--dialog-size: var(--dialog-size-md);position:relative;width:var(--dialog-size);max-width:calc(100vw - var(--mantine-spacing-xl) * 2);min-height:calc(3.125rem * var(--mantine-scale))}.m_5abab665{position:absolute;top:calc(var(--mantine-spacing-md) / 2);inset-inline-end:calc(var(--mantine-spacing-md) / 2)}.m_3eebeb36{--divider-size-xs: calc(.0625rem * var(--mantine-scale));--divider-size-sm: calc(.125rem * var(--mantine-scale));--divider-size-md: calc(.1875rem * var(--mantine-scale));--divider-size-lg: calc(.25rem * var(--mantine-scale));--divider-size-xl: calc(.3125rem * var(--mantine-scale));--divider-size: var(--divider-size-xs)}:where([data-mantine-color-scheme=light]) .m_3eebeb36{--divider-color: var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_3eebeb36{--divider-color: var(--mantine-color-dark-4)}.m_3eebeb36:where([data-orientation=horizontal]){border-top:var(--divider-size) var(--divider-border-style, solid) var(--divider-color)}.m_3eebeb36:where([data-orientation=vertical]){border-inline-start:var(--divider-size) var(--divider-border-style, solid) var(--divider-color);height:auto;align-self:stretch}.m_3eebeb36:where([data-with-label]){border:0}.m_9e365f20{display:flex;align-items:center;font-size:var(--mantine-font-size-xs);color:var(--mantine-color-dimmed);white-space:nowrap}.m_9e365f20:where([data-position=left]):before{display:none}.m_9e365f20:where([data-position=right]):after{display:none}.m_9e365f20:before{content:"";flex:1;height:calc(.0625rem * var(--mantine-scale));border-top:var(--divider-size) var(--divider-border-style, solid) var(--divider-color);margin-inline-end:var(--mantine-spacing-xs)}.m_9e365f20:after{content:"";flex:1;height:calc(.0625rem * var(--mantine-scale));border-top:var(--divider-size) var(--divider-border-style, solid) var(--divider-color);margin-inline-start:var(--mantine-spacing-xs)}.m_f11b401e{--drawer-size-xs: calc(20rem * var(--mantine-scale));--drawer-size-sm: calc(23.75rem * var(--mantine-scale));--drawer-size-md: calc(27.5rem * var(--mantine-scale));--drawer-size-lg: calc(38.75rem * var(--mantine-scale));--drawer-size-xl: calc(48.75rem * var(--mantine-scale));--drawer-size: var(--drawer-size-md);--drawer-offset: 0rem}.m_5a7c2c9{z-index:1000}.m_b8a05bbd{flex:var(--drawer-flex, 0 0 var(--drawer-size));height:var(--drawer-height, calc(100% - var(--drawer-offset) * 2));margin:var(--drawer-offset);max-width:calc(100% - var(--drawer-offset) * 2);max-height:calc(100% - var(--drawer-offset) * 2);overflow-y:auto}.m_b8a05bbd[data-hidden]{opacity:0!important;pointer-events:none}.m_31cd769a{display:flex;justify-content:var(--drawer-justify, flex-start);align-items:var(--drawer-align, flex-start)}.m_e9408a47{padding:var(--mantine-spacing-lg);padding-top:var(--mantine-spacing-xs);border-radius:var(--fieldset-radius, var(--mantine-radius-default));min-inline-size:auto}.m_84c9523a{border:calc(.0625rem * var(--mantine-scale)) solid}:where([data-mantine-color-scheme=light]) .m_84c9523a{border-color:var(--mantine-color-gray-3);background-color:var(--mantine-color-white)}:where([data-mantine-color-scheme=dark]) .m_84c9523a{border-color:var(--mantine-color-dark-4);background-color:var(--mantine-color-dark-7)}.m_ef274e49{border:calc(.0625rem * var(--mantine-scale)) solid}:where([data-mantine-color-scheme=light]) .m_ef274e49{border-color:var(--mantine-color-gray-3);background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_ef274e49{border-color:var(--mantine-color-dark-4);background-color:var(--mantine-color-dark-6)}.m_eda993d3{padding:0;border:0;border-radius:0}.m_90794832{font-size:var(--mantine-font-size-sm)}.m_74ca27fe{padding:0;margin-bottom:var(--mantine-spacing-sm)}.m_8478a6da{container:mantine-grid / inline-size}.m_410352e9{--grid-overflow: visible;--grid-margin: calc(var(--grid-gutter) / -2);--grid-col-padding: calc(var(--grid-gutter) / 2);overflow:var(--grid-overflow)}.m_dee7bd2f{width:calc(100% + var(--grid-gutter));display:flex;flex-wrap:wrap;justify-content:var(--grid-justify);align-items:var(--grid-align);margin:var(--grid-margin)}.m_96bdd299{--col-flex-grow: 0;--col-offset: 0rem;flex-shrink:0;order:var(--col-order);flex-basis:var(--col-flex-basis);width:var(--col-width);max-width:var(--col-max-width);flex-grow:var(--col-flex-grow);margin-inline-start:var(--col-offset);padding:var(--grid-col-padding)}.m_bcb3f3c2{color:var(--mantine-color-black)}:where([data-mantine-color-scheme=light]) .m_bcb3f3c2{background-color:var(--mark-bg-light)}:where([data-mantine-color-scheme=dark]) .m_bcb3f3c2{background-color:var(--mark-bg-dark)}.m_9e117634{display:block;object-fit:var(--image-object-fit, cover);width:100%;border-radius:var(--image-radius, 0)}@keyframes m_885901b1{0%{opacity:.6;transform:scale(0)}to{opacity:0;transform:scale(2.8)}}.m_e5262200{--indicator-size: calc(.625rem * var(--mantine-scale));--indicator-color: var(--mantine-primary-color-filled);position:relative;display:block}.m_e5262200:where([data-inline]){display:inline-block}.m_760d1fb1{position:absolute;top:var(--indicator-top);left:var(--indicator-left);right:var(--indicator-right);bottom:var(--indicator-bottom);transform:translate(var(--indicator-translate-x),var(--indicator-translate-y));min-width:var(--indicator-size);height:var(--indicator-size);border-radius:var(--indicator-radius, 1000rem);z-index:var(--indicator-z-index, 200);display:flex;align-items:center;justify-content:center;font-size:var(--mantine-font-size-xs);background-color:var(--indicator-color);color:var(--indicator-text-color, var(--mantine-color-white));white-space:nowrap}.m_760d1fb1:before{content:"";position:absolute;inset:0;background-color:var(--indicator-color);border-radius:var(--indicator-radius, 1000rem);z-index:-1}.m_760d1fb1:where([data-with-label]){padding-inline:calc(var(--mantine-spacing-xs) / 2)}.m_760d1fb1:where([data-with-border]){border:2px solid var(--mantine-color-body)}.m_760d1fb1[data-processing]:before{animation:m_885901b1 1s linear infinite}.m_dc6f14e2{--kbd-fz-xs: calc(.625rem * var(--mantine-scale));--kbd-fz-sm: calc(.75rem * var(--mantine-scale));--kbd-fz-md: calc(.875rem * var(--mantine-scale));--kbd-fz-lg: calc(1rem * var(--mantine-scale));--kbd-fz-xl: calc(1.25rem * var(--mantine-scale));--kbd-fz: var(--kbd-fz-sm);font-family:var(--mantine-font-family-monospace);line-height:var(--mantine-line-height);font-weight:700;font-size:var(--kbd-fz);border-radius:var(--mantine-radius-sm);border:calc(.0625rem * var(--mantine-scale)) solid;border-bottom-width:calc(.1875rem * var(--mantine-scale));unicode-bidi:embed;text-align:center;padding:.12em .45em}:where([data-mantine-color-scheme=light]) .m_dc6f14e2{border-color:var(--mantine-color-gray-3);color:var(--mantine-color-gray-7);background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_dc6f14e2{border-color:var(--mantine-color-dark-4);color:var(--mantine-color-dark-0);background-color:var(--mantine-color-dark-6)}.m_abbac491{--list-fz: var(--mantine-font-size-md);--list-lh: var(--mantine-line-height-md);--list-marker-gap: var(--mantine-spacing-lg);list-style-position:outside;font-size:var(--list-fz);line-height:var(--list-lh);margin:0;padding:0;padding-inline-start:var(--list-marker-gap)}.m_abbac491[data-type=none]{--list-marker-gap: 0}.m_abbac491:where([data-with-padding]){padding-inline-start:calc(var(--list-marker-gap) + var(--mantine-spacing-md))}.m_abb6bec2{white-space:normal;line-height:var(--list-lh)}.m_abb6bec2:where([data-with-icon]){list-style:none}.m_abb6bec2:where([data-with-icon]) .m_75cd9f71{--li-direction: row;--li-align: center}.m_abb6bec2:where(:not(:first-of-type)){margin-top:var(--list-spacing, 0)}.m_abb6bec2:where([data-centered]){line-height:1}.m_75cd9f71{display:inline-flex;flex-direction:var(--li-direction, column);align-items:var(--li-align, flex-start);white-space:normal}.m_60f83e5b{display:inline-block;vertical-align:middle;margin-inline-end:var(--mantine-spacing-sm)}.m_6e45937b{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;overflow:hidden;z-index:var(--lo-z-index)}.m_e8eb006c{position:relative;z-index:calc(var(--lo-z-index) + 1)}.m_df587f17{z-index:var(--lo-z-index)}.m_dc9b7c9f{padding:calc(.25rem * var(--mantine-scale))}.m_9bfac126{color:var(--mantine-color-dimmed);font-weight:500;font-size:var(--mantine-font-size-xs);padding:calc(var(--mantine-spacing-xs) / 2) var(--mantine-spacing-sm);cursor:default}.m_efdf90cb{margin-top:calc(.25rem * var(--mantine-scale));margin-bottom:calc(.25rem * var(--mantine-scale));border-top:calc(.0625rem * var(--mantine-scale)) solid}:where([data-mantine-color-scheme=light]) .m_efdf90cb{border-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_efdf90cb{border-color:var(--mantine-color-dark-4)}.m_99ac2aa1{font-size:var(--mantine-font-size-sm);width:100%;padding:calc(var(--mantine-spacing-xs) / 1.5) var(--mantine-spacing-sm);border-radius:var(--popover-radius, var(--mantine-radius-default));color:var(--menu-item-color, var(--mantine-color-text));display:flex;align-items:center;user-select:none}.m_99ac2aa1:where([data-disabled],:disabled){color:var(--mantine-color-disabled-color);opacity:.6;cursor:not-allowed}:where([data-mantine-color-scheme=light]) .m_99ac2aa1:where(:hover,:focus):where(:not(:disabled,[data-disabled])){background-color:var(--menu-item-hover, var(--mantine-color-gray-1))}:where([data-mantine-color-scheme=dark]) .m_99ac2aa1:where(:hover,:focus):where(:not(:disabled,[data-disabled])){background-color:var(--menu-item-hover, var(--mantine-color-dark-4))}.m_99ac2aa1:where([data-sub-menu-item]){padding-inline-end:calc(.3125rem * var(--mantine-scale))}.m_5476e0d3{flex:1}.m_8b75e504{display:flex;justify-content:center;align-items:center}.m_8b75e504:where([data-position=left]){margin-inline-end:var(--mantine-spacing-xs)}.m_8b75e504:where([data-position=right]){margin-inline-start:var(--mantine-spacing-xs)}.m_b85b0bed{transform:rotate(-90deg)}:where([dir=rtl]) .m_b85b0bed{transform:rotate(90deg)}.m_9df02822{--modal-size-xs: calc(20rem * var(--mantine-scale));--modal-size-sm: calc(23.75rem * var(--mantine-scale));--modal-size-md: calc(27.5rem * var(--mantine-scale));--modal-size-lg: calc(38.75rem * var(--mantine-scale));--modal-size-xl: calc(48.75rem * var(--mantine-scale));--modal-size: var(--modal-size-md);--modal-y-offset: 5dvh;--modal-x-offset: 5vw}.m_9df02822[data-full-screen]{--modal-border-radius: 0 !important}.m_9df02822[data-full-screen] .m_54c44539{--modal-content-flex: 0 0 100%;--modal-content-max-height: auto;--modal-content-height: 100dvh}.m_9df02822[data-full-screen] .m_1f958f16{--modal-inner-y-offset: 0;--modal-inner-x-offset: 0}.m_9df02822[data-centered] .m_1f958f16{--modal-inner-align: center}.m_d0e2b9cd{border-start-start-radius:var(--modal-radius, var(--mantine-radius-default));border-start-end-radius:var(--modal-radius, var(--mantine-radius-default))}.m_54c44539{flex:var(--modal-content-flex, 0 0 var(--modal-size));max-width:100%;max-height:var(--modal-content-max-height, calc(100dvh - var(--modal-y-offset) * 2));height:var(--modal-content-height, auto);overflow-y:auto}.m_54c44539[data-full-screen]{border-radius:0}.m_54c44539[data-hidden]{opacity:0!important;pointer-events:none}.m_1f958f16{display:flex;justify-content:center;align-items:var(--modal-inner-align, flex-start);padding-top:var(--modal-inner-y-offset, var(--modal-y-offset));padding-bottom:var(--modal-inner-y-offset, var(--modal-y-offset));padding-inline:var(--modal-inner-x-offset, var(--modal-x-offset))}.m_7cda1cd6{--pill-fz-xs: calc(.625rem * var(--mantine-scale));--pill-fz-sm: calc(.75rem * var(--mantine-scale));--pill-fz-md: calc(.875rem * var(--mantine-scale));--pill-fz-lg: calc(1rem * var(--mantine-scale));--pill-fz-xl: calc(1.125rem * var(--mantine-scale));--pill-height-xs: calc(1.125rem * var(--mantine-scale));--pill-height-sm: calc(1.375rem * var(--mantine-scale));--pill-height-md: calc(1.5625rem * var(--mantine-scale));--pill-height-lg: calc(1.75rem * var(--mantine-scale));--pill-height-xl: calc(2rem * var(--mantine-scale));--pill-fz: var(--pill-fz-sm);--pill-height: var(--pill-height-sm);font-size:var(--pill-fz);flex:0;height:var(--pill-height);padding-inline:.8em;display:inline-flex;align-items:center;border-radius:var(--pill-radius, 1000rem);line-height:1;white-space:nowrap;user-select:none;-webkit-user-select:none;max-width:100%}:where([data-mantine-color-scheme=dark]) .m_7cda1cd6{background-color:var(--mantine-color-dark-7);color:var(--mantine-color-dark-0)}:where([data-mantine-color-scheme=light]) .m_7cda1cd6{color:var(--mantine-color-black)}.m_7cda1cd6:where([data-with-remove]:not(:has(button:disabled))){padding-inline-end:0}.m_7cda1cd6:where([data-disabled],:has(button:disabled)){cursor:not-allowed}:where([data-mantine-color-scheme=light]) .m_44da308b{background-color:var(--mantine-color-gray-1)}:where([data-mantine-color-scheme=light]) .m_44da308b:where([data-disabled],:has(button:disabled)){background-color:var(--mantine-color-disabled)}:where([data-mantine-color-scheme=light]) .m_e3a01f8{background-color:var(--mantine-color-white)}:where([data-mantine-color-scheme=light]) .m_e3a01f8:where([data-disabled],:has(button:disabled)){background-color:var(--mantine-color-disabled)}.m_1e0e6180{cursor:inherit;overflow:hidden;height:100%;line-height:var(--pill-height);text-overflow:ellipsis}.m_ae386778{color:inherit;font-size:inherit;height:100%;min-height:unset;min-width:2em;width:unset;border-radius:0;padding-inline-start:.1em;padding-inline-end:.3em;flex:0;border-end-end-radius:var(--pill-radius, 50%);border-start-end-radius:var(--pill-radius, 50%)}.m_7cda1cd6[data-disabled]>.m_ae386778,.m_ae386778:disabled{display:none;background-color:transparent;width:.8em;min-width:.8em;padding:0;cursor:not-allowed}.m_7cda1cd6[data-disabled]>.m_ae386778>svg,.m_ae386778:disabled>svg{display:none}.m_ae386778>svg{pointer-events:none}.m_1dcfd90b{--pg-gap-xs: calc(.375rem * var(--mantine-scale));--pg-gap-sm: calc(.5rem * var(--mantine-scale));--pg-gap-md: calc(.625rem * var(--mantine-scale));--pg-gap-lg: calc(.75rem * var(--mantine-scale));--pg-gap-xl: calc(.75rem * var(--mantine-scale));--pg-gap: var(--pg-gap-sm);display:flex;align-items:center;gap:var(--pg-gap);flex-wrap:wrap}.m_45c4369d{background-color:transparent;appearance:none;min-width:calc(6.25rem * var(--mantine-scale));flex:1;border:0;font-size:inherit;height:1.6em;color:inherit;padding:0}.m_45c4369d::placeholder{color:var(--input-placeholder-color);opacity:1}.m_45c4369d:where([data-type=hidden],[data-type=auto]){height:calc(.0625rem * var(--mantine-scale));width:calc(.0625rem * var(--mantine-scale));top:0;left:0;pointer-events:none;position:absolute;opacity:0}.m_45c4369d:focus{outline:none}.m_45c4369d:where([data-type=auto]:focus){height:1.6em;visibility:visible;opacity:1;position:static}.m_45c4369d:where([data-pointer]:not([data-disabled],:disabled)){cursor:pointer}.m_45c4369d:where([data-disabled],:disabled){cursor:not-allowed}.m_f0824112{--nl-bg: var(--mantine-primary-color-light);--nl-hover: var(--mantine-primary-color-light-hover);--nl-color: var(--mantine-primary-color-light-color);display:flex;align-items:center;width:100%;padding:8px var(--mantine-spacing-sm);user-select:none}@media(hover:hover){:where([data-mantine-color-scheme=light]) .m_f0824112:hover{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_f0824112:hover{background-color:var(--mantine-color-dark-6)}}@media(hover:none){:where([data-mantine-color-scheme=light]) .m_f0824112:active{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_f0824112:active{background-color:var(--mantine-color-dark-6)}}.m_f0824112:where([data-disabled]){opacity:.4;pointer-events:none}.m_f0824112:where([data-active],[aria-current=page]){background-color:var(--nl-bg);color:var(--nl-color)}@media(hover:hover){.m_f0824112:where([data-active],[aria-current=page]):hover{background-color:var(--nl-hover)}}@media(hover:none){.m_f0824112:where([data-active],[aria-current=page]):active{background-color:var(--nl-hover)}}.m_f0824112:where([data-active],[aria-current=page]) .m_57492dcc{--description-opacity: .9;--description-color: var(--nl-color)}.m_690090b5{display:flex;align-items:center;justify-content:center;transition:transform .15s ease}.m_690090b5>svg{display:block}.m_690090b5:where([data-position=left]){margin-inline-end:var(--mantine-spacing-sm)}.m_690090b5:where([data-position=right]){margin-inline-start:var(--mantine-spacing-sm)}.m_690090b5:where([data-rotate]){transform:rotate(90deg)}.m_1f6ac4c4{font-size:var(--mantine-font-size-sm)}.m_f07af9d2{flex:1;overflow:hidden;text-overflow:ellipsis}.m_f07af9d2:where([data-no-wrap]){white-space:nowrap}.m_57492dcc{display:block;font-size:var(--mantine-font-size-xs);opacity:var(--description-opacity, 1);color:var(--description-color, var(--mantine-color-dimmed));overflow:hidden;text-overflow:ellipsis}:where([data-no-wrap]) .m_57492dcc{white-space:nowrap}.m_e17b862f{padding-inline-start:var(--nl-offset, var(--mantine-spacing-lg))}.m_1fd8a00b{transform:rotate(-90deg)}.m_a513464{--notification-radius: var(--mantine-radius-default);--notification-color: var(--mantine-primary-color-filled);overflow:hidden;box-sizing:border-box;position:relative;display:flex;align-items:center;padding-inline-start:calc(1.375rem * var(--mantine-scale));padding-inline-end:var(--mantine-spacing-xs);padding-top:var(--mantine-spacing-xs);padding-bottom:var(--mantine-spacing-xs);border-radius:var(--notification-radius);box-shadow:var(--mantine-shadow-lg)}.m_a513464:before{content:"";display:block;position:absolute;width:calc(.375rem * var(--mantine-scale));top:var(--notification-radius);bottom:var(--notification-radius);inset-inline-start:calc(.25rem * var(--mantine-scale));border-radius:var(--notification-radius);background-color:var(--notification-color)}:where([data-mantine-color-scheme=light]) .m_a513464{background-color:var(--mantine-color-white)}:where([data-mantine-color-scheme=dark]) .m_a513464{background-color:var(--mantine-color-dark-6)}.m_a513464:where([data-with-icon]):before{display:none}:where([data-mantine-color-scheme=light]) .m_a513464:where([data-with-border]){border:1px solid var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_a513464:where([data-with-border]){border:1px solid var(--mantine-color-dark-4)}.m_a4ceffb{box-sizing:border-box;margin-inline-end:var(--mantine-spacing-md);width:calc(1.75rem * var(--mantine-scale));height:calc(1.75rem * var(--mantine-scale));border-radius:calc(1.75rem * var(--mantine-scale));display:flex;align-items:center;justify-content:center;background-color:var(--notification-color);color:var(--mantine-color-white)}.m_b0920b15{margin-inline-end:var(--mantine-spacing-md)}.m_a49ed24{flex:1;overflow:hidden;margin-inline-end:var(--mantine-spacing-xs)}.m_3feedf16{margin-bottom:calc(.125rem * var(--mantine-scale));overflow:hidden;text-overflow:ellipsis;font-size:var(--mantine-font-size-sm);line-height:var(--mantine-line-height-sm);font-weight:500}:where([data-mantine-color-scheme=light]) .m_3feedf16{color:var(--mantine-color-gray-9)}:where([data-mantine-color-scheme=dark]) .m_3feedf16{color:var(--mantine-color-white)}.m_3d733a3a{font-size:var(--mantine-font-size-sm);line-height:var(--mantine-line-height-sm);overflow:hidden;text-overflow:ellipsis}:where([data-mantine-color-scheme=light]) .m_3d733a3a{color:var(--mantine-color-black)}:where([data-mantine-color-scheme=dark]) .m_3d733a3a{color:var(--mantine-color-dark-0)}:where([data-mantine-color-scheme=light]) .m_3d733a3a:where([data-with-title]){color:var(--mantine-color-gray-6)}:where([data-mantine-color-scheme=dark]) .m_3d733a3a:where([data-with-title]){color:var(--mantine-color-dark-2)}@media(hover:hover){:where([data-mantine-color-scheme=light]) .m_919a4d88:hover{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_919a4d88:hover{background-color:var(--mantine-color-dark-8)}}@media(hover:none){:where([data-mantine-color-scheme=light]) .m_919a4d88:active{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_919a4d88:active{background-color:var(--mantine-color-dark-8)}}.m_e2f5cd4e{--ni-right-section-width-xs: calc(1.0625rem * var(--mantine-scale));--ni-right-section-width-sm: calc(1.5rem * var(--mantine-scale));--ni-right-section-width-md: calc(1.6875rem * var(--mantine-scale));--ni-right-section-width-lg: calc(1.9375rem * var(--mantine-scale));--ni-right-section-width-xl: calc(2.125rem * var(--mantine-scale))}.m_95e17d22{--ni-chevron-size-xs: calc(.625rem * var(--mantine-scale));--ni-chevron-size-sm: calc(.875rem * var(--mantine-scale));--ni-chevron-size-md: calc(1rem * var(--mantine-scale));--ni-chevron-size-lg: calc(1.125rem * var(--mantine-scale));--ni-chevron-size-xl: calc(1.25rem * var(--mantine-scale));--ni-chevron-size: var(--ni-chevron-size-sm);display:flex;flex-direction:column;width:100%;height:calc(var(--input-height) - calc(.125rem * var(--mantine-scale)));max-width:calc(var(--ni-chevron-size) * 1.7);margin-inline-start:auto}.m_80b4b171{--control-border: 1px solid var(--input-bd);--control-radius: calc(var(--input-radius) - calc(.0625rem * var(--mantine-scale)));flex:0 0 50%;width:100%;padding:0;height:calc(var(--input-height) / 2 - calc(.0625rem * var(--mantine-scale)));border-inline-start:var(--control-border);display:flex;align-items:center;justify-content:center;color:var(--mantine-color-text);background-color:transparent;cursor:pointer}.m_80b4b171:where(:disabled){background-color:transparent;cursor:not-allowed;opacity:.6;color:var(--mantine-color-disabled-color)}.m_e2f5cd4e[data-error] :where(.m_80b4b171){color:var(--mantine-color-error)}@media(hover:hover){:where([data-mantine-color-scheme=light]) .m_80b4b171:hover{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_80b4b171:hover{background-color:var(--mantine-color-dark-4)}}@media(hover:none){:where([data-mantine-color-scheme=light]) .m_80b4b171:active{background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_80b4b171:active{background-color:var(--mantine-color-dark-4)}}.m_80b4b171:where(:first-of-type){border-radius:0;border-start-end-radius:var(--control-radius)}.m_80b4b171:last-of-type{border-radius:0;border-end-end-radius:var(--control-radius)}.m_4addd315{--pagination-control-size-xs: calc(1.375rem * var(--mantine-scale));--pagination-control-size-sm: calc(1.625rem * var(--mantine-scale));--pagination-control-size-md: calc(2rem * var(--mantine-scale));--pagination-control-size-lg: calc(2.375rem * var(--mantine-scale));--pagination-control-size-xl: calc(2.75rem * var(--mantine-scale));--pagination-control-size: var(--pagination-control-size-md);--pagination-control-fz: var(--mantine-font-size-md);--pagination-active-bg: var(--mantine-primary-color-filled)}.m_326d024a{display:flex;align-items:center;justify-content:center;border:calc(.0625rem * var(--mantine-scale)) solid;cursor:pointer;color:var(--mantine-color-text);height:var(--pagination-control-size);min-width:var(--pagination-control-size);font-size:var(--pagination-control-fz);line-height:1;border-radius:var(--pagination-control-radius, var(--mantine-radius-default))}.m_326d024a:where([data-with-padding]){padding:calc(var(--pagination-control-size) / 4)}.m_326d024a:where(:disabled,[data-disabled]){cursor:not-allowed;opacity:.4}:where([data-mantine-color-scheme=light]) .m_326d024a{border-color:var(--mantine-color-gray-4);background-color:var(--mantine-color-white)}@media(hover:hover){:where([data-mantine-color-scheme=light]) .m_326d024a:hover:where(:not(:disabled,[data-disabled])){background-color:var(--mantine-color-gray-0)}}@media(hover:none){:where([data-mantine-color-scheme=light]) .m_326d024a:active:where(:not(:disabled,[data-disabled])){background-color:var(--mantine-color-gray-0)}}:where([data-mantine-color-scheme=dark]) .m_326d024a{border-color:var(--mantine-color-dark-4);background-color:var(--mantine-color-dark-6)}@media(hover:hover){:where([data-mantine-color-scheme=dark]) .m_326d024a:hover:where(:not(:disabled,[data-disabled])){background-color:var(--mantine-color-dark-5)}}@media(hover:none){:where([data-mantine-color-scheme=dark]) .m_326d024a:active:where(:not(:disabled,[data-disabled])){background-color:var(--mantine-color-dark-5)}}.m_326d024a:where([data-active]){background-color:var(--pagination-active-bg);border-color:var(--pagination-active-bg);color:var(--pagination-active-color, var(--mantine-color-white))}@media(hover:hover){.m_326d024a:where([data-active]):hover{background-color:var(--pagination-active-bg)}}@media(hover:none){.m_326d024a:where([data-active]):active{background-color:var(--pagination-active-bg)}}.m_4ad7767d{height:var(--pagination-control-size);min-width:var(--pagination-control-size);display:flex;align-items:center;justify-content:center;pointer-events:none}.m_f61ca620{--psi-button-size-xs: calc(1.375rem * var(--mantine-scale));--psi-button-size-sm: calc(1.625rem * var(--mantine-scale));--psi-button-size-md: calc(1.75rem * var(--mantine-scale));--psi-button-size-lg: calc(2rem * var(--mantine-scale));--psi-button-size-xl: calc(2.5rem * var(--mantine-scale));--psi-icon-size-xs: calc(.75rem * var(--mantine-scale));--psi-icon-size-sm: calc(.9375rem * var(--mantine-scale));--psi-icon-size-md: calc(1.0625rem * var(--mantine-scale));--psi-icon-size-lg: calc(1.1875rem * var(--mantine-scale));--psi-icon-size-xl: calc(1.3125rem * var(--mantine-scale));--psi-button-size: var(--psi-button-size-sm);--psi-icon-size: var(--psi-icon-size-sm)}.m_ccf8da4c{position:relative;overflow:hidden}.m_f2d85dd2{font-family:var(--mantine-font-family);background-color:transparent;border:0;padding-inline-end:var(--input-padding-inline-end);padding-inline-start:var(--input-padding-inline-start);position:absolute;inset:0;outline:0;font-size:inherit;line-height:var(--mantine-line-height);height:100%;width:100%;color:inherit}.m_ccf8da4c[data-disabled] .m_f2d85dd2,.m_f2d85dd2:disabled{cursor:not-allowed}.m_f2d85dd2::placeholder{color:var(--input-placeholder-color);opacity:1}.m_f2d85dd2::-ms-reveal{display:none}.m_b1072d44{width:var(--psi-button-size);height:var(--psi-button-size);min-width:var(--psi-button-size);min-height:var(--psi-button-size)}.m_b1072d44:disabled{display:none}.m_f1cb205a{--pin-input-size-xs: calc(1.875rem * var(--mantine-scale));--pin-input-size-sm: calc(2.25rem * var(--mantine-scale));--pin-input-size-md: calc(2.625rem * var(--mantine-scale));--pin-input-size-lg: calc(3.125rem * var(--mantine-scale));--pin-input-size-xl: calc(3.75rem * var(--mantine-scale));--pin-input-size: var(--pin-input-size-sm)}.m_cb288ead{width:var(--pin-input-size);height:var(--pin-input-size)}@keyframes m_81a374bd{0%{background-position:0 0}to{background-position:calc(2.5rem * var(--mantine-scale)) 0}}@keyframes m_e0fb7a86{0%{background-position:0 0}to{background-position:0 calc(2.5rem * var(--mantine-scale))}}.m_db6d6462{--progress-radius: var(--mantine-radius-default);--progress-size: var(--progress-size-md);--progress-size-xs: calc(.1875rem * var(--mantine-scale));--progress-size-sm: calc(.3125rem * var(--mantine-scale));--progress-size-md: calc(.5rem * var(--mantine-scale));--progress-size-lg: calc(.75rem * var(--mantine-scale));--progress-size-xl: calc(1rem * var(--mantine-scale));position:relative;height:var(--progress-size);border-radius:var(--progress-radius);overflow:hidden;display:flex}:where([data-mantine-color-scheme=light]) .m_db6d6462{background-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_db6d6462{background-color:var(--mantine-color-dark-4)}.m_db6d6462:where([data-orientation=vertical]){height:auto;width:var(--progress-size);flex-direction:column-reverse}.m_2242eb65{background-color:var(--progress-section-color);height:100%;width:var(--progress-section-size);display:flex;align-items:center;justify-content:center;overflow:hidden;background-size:calc(1.25rem * var(--mantine-scale)) calc(1.25rem * var(--mantine-scale));transition:width var(--progress-transition-duration, .1s) ease}.m_2242eb65:where([data-striped]){background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.m_2242eb65:where([data-animated]){animation:m_81a374bd 1s linear infinite}.m_2242eb65:where(:last-of-type){border-radius:0;border-start-end-radius:var(--progress-radius);border-end-end-radius:var(--progress-radius)}.m_2242eb65:where(:first-of-type){border-radius:0;border-start-start-radius:var(--progress-radius);border-end-start-radius:var(--progress-radius)}.m_db6d6462:where([data-orientation=vertical]) .m_2242eb65{width:100%;height:var(--progress-section-size);transition:height var(--progress-transition-duration, .1s) ease}.m_db6d6462:where([data-orientation=vertical]) .m_2242eb65:where([data-striped]){background-image:linear-gradient(135deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.m_db6d6462:where([data-orientation=vertical]) .m_2242eb65:where([data-animated]){animation:m_e0fb7a86 1s linear infinite}.m_db6d6462:where([data-orientation=vertical]) .m_2242eb65:where(:last-of-type){border-radius:0;border-start-start-radius:var(--progress-radius);border-start-end-radius:var(--progress-radius)}.m_db6d6462:where([data-orientation=vertical]) .m_2242eb65:where(:first-of-type){border-radius:0;border-end-start-radius:var(--progress-radius);border-end-end-radius:var(--progress-radius)}.m_91e40b74{color:var(--progress-label-color, var(--mantine-color-white));font-weight:700;user-select:none;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:min(calc(var(--progress-size) * .65),calc(1.125rem * var(--mantine-scale)));line-height:1;padding-inline:calc(.25rem * var(--mantine-scale))}.m_db6d6462:where([data-orientation=vertical]) .m_91e40b74{writing-mode:vertical-rl}.m_9dc8ae12{--card-radius: var(--mantine-radius-default);display:block;width:100%;border-radius:var(--card-radius);cursor:pointer}.m_9dc8ae12 :where(*){cursor:inherit}.m_9dc8ae12:where([data-with-border]){border:calc(.0625rem * var(--mantine-scale)) solid transparent}:where([data-mantine-color-scheme=light]) .m_9dc8ae12:where([data-with-border]){border-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_9dc8ae12:where([data-with-border]){border-color:var(--mantine-color-dark-4)}.m_717d7ff6{--radio-size-xs: calc(1rem * var(--mantine-scale));--radio-size-sm: calc(1.25rem * var(--mantine-scale));--radio-size-md: calc(1.5rem * var(--mantine-scale));--radio-size-lg: calc(1.875rem * var(--mantine-scale));--radio-size-xl: calc(2.25rem * var(--mantine-scale));--radio-icon-size-xs: calc(.375rem * var(--mantine-scale));--radio-icon-size-sm: calc(.5rem * var(--mantine-scale));--radio-icon-size-md: calc(.625rem * var(--mantine-scale));--radio-icon-size-lg: calc(.875rem * var(--mantine-scale));--radio-icon-size-xl: calc(1rem * var(--mantine-scale));--radio-icon-size: var(--radio-icon-size-sm);--radio-size: var(--radio-size-sm);--radio-color: var(--mantine-primary-color-filled);--radio-icon-color: var(--mantine-color-white);position:relative;border:calc(.0625rem * var(--mantine-scale)) solid transparent;width:var(--radio-size);min-width:var(--radio-size);height:var(--radio-size);min-height:var(--radio-size);border-radius:var(--radio-radius, 10000px);transition:border-color .1s ease,background-color .1s ease;cursor:var(--mantine-cursor-type);-webkit-tap-highlight-color:transparent;display:flex;align-items:center;justify-content:center}:where([data-mantine-color-scheme=light]) .m_717d7ff6{background-color:var(--mantine-color-white);border-color:var(--mantine-color-gray-4)}:where([data-mantine-color-scheme=dark]) .m_717d7ff6{background-color:var(--mantine-color-dark-6);border-color:var(--mantine-color-dark-4)}.m_717d7ff6[data-indeterminate],.m_717d7ff6[data-checked]{background-color:var(--radio-color);border-color:var(--radio-color)}.m_717d7ff6[data-indeterminate]>.m_3e4da632,.m_717d7ff6[data-checked]>.m_3e4da632{opacity:1;transform:none;color:var(--radio-icon-color)}.m_717d7ff6[data-disabled]{cursor:not-allowed;background-color:var(--mantine-color-disabled);border-color:var(--mantine-color-disabled-border)}.m_717d7ff6[data-disabled][data-checked]>.m_3e4da632{color:var(--mantine-color-disabled-color)}.m_2980836c[data-indeterminate]:not([data-disabled]),.m_2980836c[data-checked]:not([data-disabled]){background-color:transparent;border-color:var(--radio-color)}.m_2980836c[data-indeterminate]:not([data-disabled])>.m_3e4da632,.m_2980836c[data-checked]:not([data-disabled])>.m_3e4da632{color:var(--radio-color);opacity:1;transform:none}.m_3e4da632{display:block;width:var(--radio-icon-size);height:var(--radio-icon-size);color:transparent;pointer-events:none;transform:translateY(calc(.3125rem * var(--mantine-scale))) scale(.5);opacity:1;transition:transform .1s ease,opacity .1s ease}.m_f3f1af94{--radio-size-xs: calc(1rem * var(--mantine-scale));--radio-size-sm: calc(1.25rem * var(--mantine-scale));--radio-size-md: calc(1.5rem * var(--mantine-scale));--radio-size-lg: calc(1.875rem * var(--mantine-scale));--radio-size-xl: calc(2.25rem * var(--mantine-scale));--radio-size: var(--radio-size-sm);--radio-icon-size-xs: calc(.375rem * var(--mantine-scale));--radio-icon-size-sm: calc(.5rem * var(--mantine-scale));--radio-icon-size-md: calc(.625rem * var(--mantine-scale));--radio-icon-size-lg: calc(.875rem * var(--mantine-scale));--radio-icon-size-xl: calc(1rem * var(--mantine-scale));--radio-icon-size: var(--radio-icon-size-sm);--radio-icon-color: var(--mantine-color-white)}.m_89c4f5e4{position:relative;width:var(--radio-size);height:var(--radio-size);order:1}.m_89c4f5e4:where([data-label-position=left]){order:2}.m_f3ed6b2b{color:var(--radio-icon-color);opacity:var(--radio-icon-opacity, 0);transform:var(--radio-icon-transform, scale(.2) translateY(calc(.625rem * var(--mantine-scale))));transition:opacity .1s ease,transform .2s ease;pointer-events:none;width:var(--radio-icon-size);height:var(--radio-icon-size);position:absolute;top:calc(50% - var(--radio-icon-size) / 2);left:calc(50% - var(--radio-icon-size) / 2)}.m_8a3dbb89{border:calc(.0625rem * var(--mantine-scale)) solid;position:relative;appearance:none;width:var(--radio-size);height:var(--radio-size);border-radius:var(--radio-radius, var(--radio-size));margin:0;display:flex;align-items:center;justify-content:center;transition-property:background-color,border-color;transition-timing-function:ease;transition-duration:.1s;cursor:var(--mantine-cursor-type);-webkit-tap-highlight-color:transparent}:where([data-mantine-color-scheme=light]) .m_8a3dbb89{background-color:var(--mantine-color-white);border-color:var(--mantine-color-gray-4)}:where([data-mantine-color-scheme=dark]) .m_8a3dbb89{background-color:var(--mantine-color-dark-6);border-color:var(--mantine-color-dark-4)}.m_8a3dbb89:checked{background-color:var(--radio-color, var(--mantine-primary-color-filled));border-color:var(--radio-color, var(--mantine-primary-color-filled))}.m_8a3dbb89:checked+.m_f3ed6b2b{--radio-icon-opacity: 1;--radio-icon-transform: scale(1)}.m_8a3dbb89:disabled{cursor:not-allowed;background-color:var(--mantine-color-disabled);border-color:var(--mantine-color-disabled-border)}.m_8a3dbb89:disabled+.m_f3ed6b2b{--radio-icon-color: var(--mantine-color-disabled-color)}.m_8a3dbb89:where([data-error]){border-color:var(--mantine-color-error)}.m_1bfe9d39+.m_f3ed6b2b{--radio-icon-color: var(--radio-color)}.m_1bfe9d39:checked:not(:disabled){background-color:transparent;border-color:var(--radio-color)}.m_1bfe9d39:checked:not(:disabled)+.m_f3ed6b2b{--radio-icon-color: var(--radio-color);--radio-icon-opacity: 1;--radio-icon-transform: none}.m_f8d312f2{--rating-size-xs: calc(.875rem * var(--mantine-scale));--rating-size-sm: calc(1.125rem * var(--mantine-scale));--rating-size-md: calc(1.25rem * var(--mantine-scale));--rating-size-lg: calc(1.75rem * var(--mantine-scale));--rating-size-xl: calc(2rem * var(--mantine-scale));display:flex;width:max-content}.m_f8d312f2:where(:has(input:disabled)){pointer-events:none}.m_61734bb7{position:relative;transition:transform .1s ease}.m_61734bb7:where([data-active]){z-index:1;transform:scale(1.1)}.m_5662a89a{width:var(--rating-size);height:var(--rating-size);display:block}:where([data-mantine-color-scheme=light]) .m_5662a89a{fill:var(--mantine-color-gray-3);stroke:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_5662a89a{fill:var(--mantine-color-dark-3);stroke:var(--mantine-color-dark-3)}.m_5662a89a:where([data-filled]){fill:var(--rating-color);stroke:var(--rating-color)}.m_211007ba{height:0;width:0;position:absolute;overflow:hidden;white-space:nowrap;opacity:0;-webkit-tap-highlight-color:transparent}.m_211007ba:focus-visible+label{outline:2px solid var(--mantine-primary-color-filled);outline-offset:calc(.125rem * var(--mantine-scale))}.m_21342ee4{display:block;cursor:pointer;position:absolute;top:0;left:0;z-index:var(--rating-item-z-index, 0);-webkit-tap-highlight-color:transparent}.m_21342ee4:where([data-read-only]){cursor:default}.m_21342ee4:where(:last-of-type){position:relative}.m_fae05d6a{clip-path:var(--rating-symbol-clip-path)}.m_1b3c8819{--tooltip-radius: var(--mantine-radius-default);position:absolute;padding:calc(var(--mantine-spacing-xs) / 2) var(--mantine-spacing-xs);pointer-events:none;font-size:var(--mantine-font-size-sm);white-space:nowrap;border-radius:var(--tooltip-radius)}:where([data-mantine-color-scheme=light]) .m_1b3c8819{background-color:var(--tooltip-bg, var(--mantine-color-gray-9));color:var(--tooltip-color, var(--mantine-color-white))}:where([data-mantine-color-scheme=dark]) .m_1b3c8819{background-color:var(--tooltip-bg, var(--mantine-color-gray-2));color:var(--tooltip-color, var(--mantine-color-black))}.m_1b3c8819:where([data-multiline]){white-space:normal}.m_1b3c8819:where([data-fixed]){position:fixed}.m_f898399f{background-color:inherit;border:0;z-index:1}.m_b32e4812{position:relative;width:var(--rp-size);height:var(--rp-size);min-width:var(--rp-size);min-height:var(--rp-size);--rp-transition-duration: 0ms}.m_d43b5134{width:var(--rp-size);height:var(--rp-size);min-width:var(--rp-size);min-height:var(--rp-size);transform:rotate(-90deg)}.m_b1ca1fbf{stroke:var(--curve-color, var(--rp-curve-root-color));transition:stroke-dashoffset var(--rp-transition-duration) ease,stroke-dasharray var(--rp-transition-duration) ease,stroke var(--rp-transition-duration)}[data-mantine-color-scheme=light] .m_b1ca1fbf{--rp-curve-root-color: var(--mantine-color-gray-2)}[data-mantine-color-scheme=dark] .m_b1ca1fbf{--rp-curve-root-color: var(--mantine-color-dark-4)}.m_b23f9dc4{position:absolute;top:50%;transform:translateY(-50%);inset-inline:var(--rp-label-offset)}.m_cf365364{--sc-padding-xs: calc(.125rem * var(--mantine-scale)) calc(.375rem * var(--mantine-scale));--sc-padding-sm: calc(.1875rem * var(--mantine-scale)) calc(.625rem * var(--mantine-scale));--sc-padding-md: calc(.25rem * var(--mantine-scale)) calc(.875rem * var(--mantine-scale));--sc-padding-lg: calc(.4375rem * var(--mantine-scale)) calc(1rem * var(--mantine-scale));--sc-padding-xl: calc(.625rem * var(--mantine-scale)) calc(1.25rem * var(--mantine-scale));--sc-transition-duration: .2s;--sc-padding: var(--sc-padding-sm);--sc-transition-timing-function: ease;--sc-font-size: var(--mantine-font-size-sm);position:relative;display:inline-flex;flex-direction:row;width:auto;border-radius:var(--sc-radius, var(--mantine-radius-default));overflow:hidden;padding:calc(.25rem * var(--mantine-scale))}.m_cf365364:where([data-full-width]){display:flex}.m_cf365364:where([data-orientation=vertical]){display:flex;flex-direction:column;width:max-content}.m_cf365364:where([data-orientation=vertical]):where([data-full-width]){width:auto}:where([data-mantine-color-scheme=light]) .m_cf365364{background-color:var(--mantine-color-gray-1)}:where([data-mantine-color-scheme=dark]) .m_cf365364{background-color:var(--mantine-color-dark-8)}.m_9e182ccd{position:absolute;display:block;z-index:1;border-radius:var(--sc-radius, var(--mantine-radius-default))}:where([data-mantine-color-scheme=light]) .m_9e182ccd{box-shadow:var(--sc-shadow, none);background-color:var(--sc-color, var(--mantine-color-white))}:where([data-mantine-color-scheme=dark]) .m_9e182ccd{box-shadow:none;background-color:var(--sc-color, var(--mantine-color-dark-5))}.m_1738fcb2{-webkit-tap-highlight-color:transparent;font-weight:500;display:block;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;user-select:none;border-radius:var(--sc-radius, var(--mantine-radius-default));font-size:var(--sc-font-size);padding:var(--sc-padding);transition:color var(--sc-transition-duration) var(--sc-transition-timing-function);cursor:pointer;outline:var(--segmented-control-outline, none)}:where([data-mantine-color-scheme=light]) .m_1738fcb2{color:var(--mantine-color-gray-7)}:where([data-mantine-color-scheme=dark]) .m_1738fcb2{color:var(--mantine-color-dark-1)}.m_1738fcb2:where([data-read-only]){cursor:default}fieldset:disabled .m_1738fcb2,.m_1738fcb2:where([data-disabled]){cursor:not-allowed;color:var(--mantine-color-disabled-color)}:where([data-mantine-color-scheme=light]) .m_1738fcb2:where([data-active]){color:var(--sc-label-color, var(--mantine-color-black))}:where([data-mantine-color-scheme=dark]) .m_1738fcb2:where([data-active]){color:var(--sc-label-color, var(--mantine-color-white))}.m_cf365364:where([data-initialized]) .m_1738fcb2:where([data-active]):before{display:none}.m_1738fcb2:where([data-active]):before{content:"";inset:0;z-index:0;position:absolute;border-radius:var(--sc-radius, var(--mantine-radius-default))}:where([data-mantine-color-scheme=light]) .m_1738fcb2:where([data-active]):before{box-shadow:var(--sc-shadow, none);background-color:var(--sc-color, var(--mantine-color-white))}:where([data-mantine-color-scheme=dark]) .m_1738fcb2:where([data-active]):before{box-shadow:none;background-color:var(--sc-color, var(--mantine-color-dark-5))}@media(hover:hover){:where([data-mantine-color-scheme=light]) .m_1738fcb2:where(:not([data-disabled],[data-active],[data-read-only])):hover{color:var(--mantine-color-black)}:where([data-mantine-color-scheme=dark]) .m_1738fcb2:where(:not([data-disabled],[data-active],[data-read-only])):hover{color:var(--mantine-color-white)}}@media(hover:none){:where([data-mantine-color-scheme=light]) .m_1738fcb2:where(:not([data-disabled],[data-active],[data-read-only])):active{color:var(--mantine-color-black)}:where([data-mantine-color-scheme=dark]) .m_1738fcb2:where(:not([data-disabled],[data-active],[data-read-only])):active{color:var(--mantine-color-white)}}@media(hover:hover){fieldset:disabled .m_1738fcb2:hover{color:var(--mantine-color-disabled-color)!important}}@media(hover:none){fieldset:disabled .m_1738fcb2:active{color:var(--mantine-color-disabled-color)!important}}.m_1714d588{height:0;width:0;position:absolute;overflow:hidden;white-space:nowrap;opacity:0}.m_1714d588[data-focus-ring=auto]:focus:focus-visible+.m_1738fcb2{--segmented-control-outline: 2px solid var(--mantine-primary-color-filled)}.m_1714d588[data-focus-ring=always]:focus+.m_1738fcb2{--segmented-control-outline: 2px solid var(--mantine-primary-color-filled)}.m_69686b9b{position:relative;flex:1;z-index:2;transition:border-color var(--sc-transition-duration) var(--sc-transition-timing-function)}.m_cf365364[data-with-items-borders] :where(.m_69686b9b):before{content:"";position:absolute;top:0;bottom:0;inset-inline-start:0;background-color:var(--separator-color);width:calc(.0625rem * var(--mantine-scale));transition:background-color var(--sc-transition-duration) var(--sc-transition-timing-function)}.m_69686b9b[data-orientation=vertical]:before{top:0;inset-inline:0;bottom:auto;height:calc(.0625rem * var(--mantine-scale));width:auto}:where([data-mantine-color-scheme=light]) .m_69686b9b{--separator-color: var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_69686b9b{--separator-color: var(--mantine-color-dark-4)}.m_69686b9b:first-of-type:before{--separator-color: transparent}[data-mantine-color-scheme] .m_69686b9b[data-active]:before,[data-mantine-color-scheme] .m_69686b9b[data-active]+.m_69686b9b:before{--separator-color: transparent}.m_78882f40{position:relative;z-index:2}.m_fa528724{--scp-filled-segment-color: var(--mantine-primary-color-filled);--scp-transition-duration: 0ms;--scp-thickness: calc(.625rem * var(--mantine-scale))}:where([data-mantine-color-scheme=light]) .m_fa528724{--scp-empty-segment-color: var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_fa528724{--scp-empty-segment-color: var(--mantine-color-dark-4)}.m_fa528724{position:relative;width:fit-content}.m_62e9e7e2{display:block;transform:var(--scp-rotation);overflow:hidden}.m_c573fb6f{transition:stroke-dashoffset var(--scp-transition-duration) ease,stroke-dasharray var(--scp-transition-duration) ease,stroke var(--scp-transition-duration)}.m_4fa340f2{position:absolute;margin:0;padding:0;inset-inline:0;text-align:center;z-index:1}.m_4fa340f2:where([data-position=bottom]){bottom:0;padding-inline:calc(var(--scp-thickness) * 2)}.m_4fa340f2:where([data-position=bottom]):where([data-orientation=down]){bottom:auto;top:0}.m_4fa340f2:where([data-position=center]){top:50%;padding-inline:calc(var(--scp-thickness) * 3)}.m_925c2d2c{container:simple-grid / inline-size}.m_2415a157{display:grid;grid-template-columns:repeat(var(--sg-cols),minmax(0,1fr));gap:var(--sg-spacing-y) var(--sg-spacing-x)}@keyframes m_299c329c{0%,to{opacity:.4}50%{opacity:1}}.m_18320242{height:var(--skeleton-height, auto);width:var(--skeleton-width, 100%);border-radius:var(--skeleton-radius, var(--mantine-radius-default));position:relative;transform:translateZ(0);-webkit-transform:translateZ(0)}.m_18320242:where([data-animate]):after{animation:m_299c329c 1.5s linear infinite}.m_18320242:where([data-visible]){overflow:hidden}.m_18320242:where([data-visible]):before{position:absolute;content:"";inset:0;z-index:10;background-color:var(--mantine-color-body)}.m_18320242:where([data-visible]):after{position:absolute;content:"";inset:0;z-index:11}:where([data-mantine-color-scheme=light]) .m_18320242:where([data-visible]):after{background-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_18320242:where([data-visible]):after{background-color:var(--mantine-color-dark-4)}.m_dd36362e{--slider-size-xs: calc(.25rem * var(--mantine-scale));--slider-size-sm: calc(.375rem * var(--mantine-scale));--slider-size-md: calc(.5rem * var(--mantine-scale));--slider-size-lg: calc(.625rem * var(--mantine-scale));--slider-size-xl: calc(.75rem * var(--mantine-scale));--slider-size: var(--slider-size-md);--slider-radius: calc(62.5rem * var(--mantine-scale));--slider-color: var(--mantine-primary-color-filled);--slider-track-disabled-bg: var(--mantine-color-disabled);-webkit-tap-highlight-color:transparent;outline:none;height:calc(var(--slider-size) * 2);padding-inline:var(--slider-size);display:flex;flex-direction:column;align-items:center;touch-action:none;position:relative}[data-mantine-color-scheme=light] .m_dd36362e{--slider-track-bg: var(--mantine-color-gray-2)}[data-mantine-color-scheme=dark] .m_dd36362e{--slider-track-bg: var(--mantine-color-dark-4)}.m_c9357328{position:absolute;top:calc(-2.25rem * var(--mantine-scale));font-size:var(--mantine-font-size-xs);color:var(--mantine-color-white);padding:calc(var(--mantine-spacing-xs) / 2);border-radius:var(--mantine-radius-sm);white-space:nowrap;pointer-events:none;user-select:none;touch-action:none}:where([data-mantine-color-scheme=light]) .m_c9357328{background-color:var(--mantine-color-gray-9)}:where([data-mantine-color-scheme=dark]) .m_c9357328{background-color:var(--mantine-color-dark-4)}.m_c9a9a60a{position:absolute;display:flex;height:var(--slider-thumb-size);width:var(--slider-thumb-size);border:calc(.25rem * var(--mantine-scale)) solid;transform:translate(-50%,-50%);top:50%;cursor:pointer;border-radius:var(--slider-radius);align-items:center;justify-content:center;transition:box-shadow .1s ease,transform .1s ease;z-index:3;user-select:none;touch-action:none;outline-offset:calc(.125rem * var(--mantine-scale));left:var(--slider-thumb-offset)}:where([dir=rtl]) .m_c9a9a60a{left:auto;right:calc(var(--slider-thumb-offset) - var(--slider-thumb-size))}fieldset:disabled .m_c9a9a60a,.m_c9a9a60a:where([data-disabled]){display:none}.m_c9a9a60a:where([data-dragging]){transform:translate(-50%,-50%) scale(1.05);box-shadow:var(--mantine-shadow-sm)}:where([data-mantine-color-scheme=light]) .m_c9a9a60a{color:var(--slider-color);border-color:var(--slider-color);background-color:var(--mantine-color-white)}:where([data-mantine-color-scheme=dark]) .m_c9a9a60a{color:var(--mantine-color-white);border-color:var(--mantine-color-white);background-color:var(--slider-color)}.m_a8645c2{display:flex;align-items:center;width:100%;height:calc(var(--slider-size) * 2);cursor:pointer}fieldset:disabled .m_a8645c2,.m_a8645c2:where([data-disabled]){cursor:not-allowed}.m_c9ade57f{position:relative;width:100%;height:var(--slider-size)}.m_c9ade57f:where([data-inverted]:not([data-disabled])){--track-bg: var(--slider-color)}fieldset:disabled .m_c9ade57f:where([data-inverted]),.m_c9ade57f:where([data-inverted][data-disabled]){--track-bg: var(--slider-track-disabled-bg)}.m_c9ade57f:before{content:"";position:absolute;top:0;bottom:0;border-radius:var(--slider-radius);inset-inline:calc(var(--slider-size) * -1);background-color:var(--track-bg, var(--slider-track-bg));z-index:0}.m_38aeed47{position:absolute;z-index:1;top:0;bottom:0;background-color:var(--slider-color);border-radius:var(--slider-radius);width:var(--slider-bar-width);inset-inline-start:var(--slider-bar-offset)}.m_38aeed47:where([data-inverted]){background-color:var(--slider-track-bg)}fieldset:disabled .m_38aeed47:where(:not([data-inverted])),.m_38aeed47:where([data-disabled]:not([data-inverted])){background-color:var(--mantine-color-disabled-color)}.m_b7b0423a{position:absolute;inset-inline-start:calc(var(--mark-offset) - var(--slider-size) / 2);top:0;z-index:2;height:0;pointer-events:none}.m_dd33bc19{border:calc(.125rem * var(--mantine-scale)) solid;height:var(--slider-size);width:var(--slider-size);border-radius:calc(62.5rem * var(--mantine-scale));background-color:var(--mantine-color-white);pointer-events:none}:where([data-mantine-color-scheme=light]) .m_dd33bc19{border-color:var(--mantine-color-gray-2)}:where([data-mantine-color-scheme=dark]) .m_dd33bc19{border-color:var(--mantine-color-dark-4)}.m_dd33bc19:where([data-filled]){border-color:var(--slider-color)}.m_dd33bc19:where([data-filled]):where([data-disabled]){border-color:var(--mantine-color-disabled-border)}.m_68c77a5b{transform:translate(calc(-50% + var(--slider-size) / 2),calc(var(--mantine-spacing-xs) / 2));font-size:var(--mantine-font-size-sm);white-space:nowrap;cursor:pointer;user-select:none}:where([data-mantine-color-scheme=light]) .m_68c77a5b{color:var(--mantine-color-gray-6)}:where([data-mantine-color-scheme=dark]) .m_68c77a5b{color:var(--mantine-color-dark-2)}.m_559cce2d{position:relative}.m_559cce2d:where([data-has-spoiler]){margin-bottom:calc(1.5rem * var(--mantine-scale))}.m_b912df4e{display:flex;flex-direction:column;overflow:hidden;transition:max-height var(--spoiler-transition-duration, .2s) ease}.m_b9131032{position:absolute;inset-inline-start:0;top:100%;height:calc(1.5rem * var(--mantine-scale))}.m_6d731127{display:flex;flex-direction:column;align-items:var(--stack-align, stretch);justify-content:var(--stack-justify, flex-start);gap:var(--stack-gap, var(--mantine-spacing-md))}.m_cbb4ea7e{--stepper-icon-size-xs: calc(2.125rem * var(--mantine-scale));--stepper-icon-size-sm: calc(2.25rem * var(--mantine-scale));--stepper-icon-size-md: calc(2.625rem * var(--mantine-scale));--stepper-icon-size-lg: calc(3rem * var(--mantine-scale));--stepper-icon-size-xl: calc(3.25rem * var(--mantine-scale));--stepper-icon-size: var(--stepper-icon-size-md);--stepper-color: var(--mantine-primary-color-filled);--stepper-content-padding: var(--mantine-spacing-md);--stepper-spacing: var(--mantine-spacing-md);--stepper-radius: calc(62.5rem * var(--mantine-scale));--stepper-fz: var(--mantine-font-size-md);--stepper-outline-thickness: calc(.125rem * var(--mantine-scale))}[data-mantine-color-scheme=light] .m_cbb4ea7e{--stepper-outline-color: var(--mantine-color-gray-2)}[data-mantine-color-scheme=dark] .m_cbb4ea7e{--stepper-outline-color: var(--mantine-color-dark-5)}.m_aaf89d0b{display:flex;flex-wrap:nowrap;align-items:center}.m_aaf89d0b:where([data-wrap]){flex-wrap:wrap;gap:var(--mantine-spacing-md) 0}.m_aaf89d0b:where([data-orientation=vertical]){flex-direction:column}.m_aaf89d0b:where([data-orientation=vertical]):where([data-icon-position=left]){align-items:flex-start}.m_aaf89d0b:where([data-orientation=vertical]):where([data-icon-position=right]){align-items:flex-end}.m_aaf89d0b:where([data-orientation=horizontal]){flex-direction:row}.m_2a371ac9{transition:background-color .15s ease;flex:1;height:var(--stepper-outline-thickness);margin-inline:var(--mantine-spacing-md);background-color:var(--stepper-outline-color)}.m_2a371ac9:where([data-active]){background-color:var(--stepper-color)}.m_78da155d{padding-top:var(--stepper-content-padding)}.m_cbb57068{--step-color: var(--stepper-color);display:flex;cursor:default}.m_cbb57068:where([data-allow-click]){cursor:pointer}.m_cbb57068:where([data-icon-position=left]){flex-direction:row}.m_cbb57068:where([data-icon-position=right]){flex-direction:row-reverse}.m_f56b1e2c{align-items:center}.m_833edb7e{--separator-spacing: calc(var(--mantine-spacing-xs) / 2);justify-content:flex-start;min-height:calc(var(--stepper-icon-size) + var(--mantine-spacing-xl) + var(--separator-spacing));margin-top:var(--separator-spacing);overflow:hidden}.m_833edb7e:where(:first-of-type){margin-top:0}.m_833edb7e:where(:last-of-type){min-height:auto}.m_833edb7e:where(:last-of-type) .m_6496b3f3{display:none}.m_818e70b{position:relative}.m_6496b3f3{top:calc(var(--stepper-icon-size) + var(--separator-spacing));inset-inline-start:calc(var(--stepper-icon-size) / 2);height:100vh;position:absolute;border-inline-start:var(--stepper-outline-thickness) solid var(--stepper-outline-color)}.m_6496b3f3:where([data-active]){border-color:var(--stepper-color)}.m_1959ad01{height:var(--stepper-icon-size);width:var(--stepper-icon-size);min-height:var(--stepper-icon-size);min-width:var(--stepper-icon-size);border-radius:var(--stepper-radius);font-size:var(--stepper-fz);display:flex;align-items:center;justify-content:center;position:relative;font-weight:700;transition:background-color .15s ease,border-color .15s ease;border:var(--stepper-outline-thickness) solid var(--stepper-outline-color);background-color:var(--stepper-outline-color)}:where([data-mantine-color-scheme=light]) .m_1959ad01{color:var(--mantine-color-gray-7)}:where([data-mantine-color-scheme=dark]) .m_1959ad01{color:var(--mantine-color-dark-1)}.m_1959ad01:where([data-progress]){border-color:var(--step-color)}.m_1959ad01:where([data-completed]){color:var(--stepper-icon-color, var(--mantine-color-white));background-color:var(--step-color);border-color:var(--step-color)}.m_a79331dc{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:var(--stepper-icon-color, var(--mantine-color-white))}.m_1956aa2a{display:flex;flex-direction:column}.m_1956aa2a:where([data-icon-position=left]){margin-inline-start:var(--mantine-spacing-sm)}.m_1956aa2a:where([data-icon-position=right]){text-align:right;margin-inline-end:var(--mantine-spacing-sm)}:where([dir=rtl]) .m_1956aa2a:where([data-icon-position=right]){text-align:left}.m_12051f6c{font-weight:500;font-size:var(--stepper-fz);line-height:1}.m_164eea74{margin-top:calc(var(--stepper-spacing) / 3);margin-bottom:calc(var(--stepper-spacing) / 3);font-size:calc(var(--stepper-fz) - calc(.125rem * var(--mantine-scale)));line-height:1;color:var(--mantine-color-dimmed)}.m_5f93f3bb{--switch-height-xs: calc(1rem * var(--mantine-scale));--switch-height-sm: calc(1.25rem * var(--mantine-scale));--switch-height-md: calc(1.5rem * var(--mantine-scale));--switch-height-lg: calc(1.875rem * var(--mantine-scale));--switch-height-xl: calc(2.25rem * var(--mantine-scale));--switch-width-xs: calc(2rem * var(--mantine-scale));--switch-width-sm: calc(2.375rem * var(--mantine-scale));--switch-width-md: calc(2.875rem * var(--mantine-scale));--switch-width-lg: calc(3.5rem * var(--mantine-scale));--switch-width-xl: calc(4.5rem * var(--mantine-scale));--switch-thumb-size-xs: calc(.75rem * var(--mantine-scale));--switch-thumb-size-sm: calc(.875rem * var(--mantine-scale));--switch-thumb-size-md: calc(1.125rem * var(--mantine-scale));--switch-thumb-size-lg: calc(1.375rem * var(--mantine-scale));--switch-thumb-size-xl: calc(1.75rem * var(--mantine-scale));--switch-label-font-size-xs: calc(.3125rem * var(--mantine-scale));--switch-label-font-size-sm: calc(.375rem * var(--mantine-scale));--switch-label-font-size-md: calc(.4375rem * var(--mantine-scale));--switch-label-font-size-lg: calc(.5625rem * var(--mantine-scale));--switch-label-font-size-xl: calc(.6875rem * var(--mantine-scale));--switch-track-label-padding-xs: calc(.125rem * var(--mantine-scale));--switch-track-label-padding-sm: calc(.15625rem * var(--mantine-scale));--switch-track-label-padding-md: calc(.1875rem * var(--mantine-scale));--switch-track-label-padding-lg: calc(.1875rem * var(--mantine-scale));--switch-track-label-padding-xl: calc(.21875rem * var(--mantine-scale));--switch-height: var(--switch-height-sm);--switch-width: var(--switch-width-sm);--switch-thumb-size: var(--switch-thumb-size-sm);--switch-label-font-size: var(--switch-label-font-size-sm);--switch-track-label-padding: var(--switch-track-label-padding-sm);--switch-radius: calc(62.5rem * var(--mantine-scale));--switch-color: var(--mantine-primary-color-filled);--switch-disabled-color: var(--mantine-color-disabled);position:relative}.m_926b4011{height:0;width:0;opacity:0;margin:0;padding:0;position:absolute;overflow:hidden;white-space:nowrap}.m_9307d992{-webkit-tap-highlight-color:transparent;cursor:var(--switch-cursor, var(--mantine-cursor-type));overflow:hidden;position:relative;border-radius:var(--switch-radius);background-color:var(--switch-bg);height:var(--switch-height);min-width:var(--switch-width);margin:0;transition:background-color .15s ease,border-color .15s ease;appearance:none;display:flex;align-items:center;font-size:var(--switch-label-font-size);font-weight:600;order:var(--switch-order, 1);user-select:none;z-index:0;line-height:0;color:var(--switch-text-color)}.m_9307d992:where([data-without-labels]){width:var(--switch-width)}.m_926b4011:focus-visible+.m_9307d992{outline:2px solid var(--mantine-primary-color-filled);outline-offset:calc(.125rem * var(--mantine-scale))}.m_926b4011:checked+.m_9307d992{--switch-bg: var(--switch-color);--switch-text-color: var(--mantine-color-white)}.m_926b4011:disabled+.m_9307d992,.m_926b4011[data-disabled]+.m_9307d992{--switch-bg: var(--switch-disabled-color);--switch-cursor: not-allowed}[data-mantine-color-scheme=light] .m_9307d992{--switch-bg: var(--mantine-color-gray-3);--switch-text-color: var(--mantine-color-gray-6)}[data-mantine-color-scheme=dark] .m_9307d992{--switch-bg: var(--mantine-color-dark-5);--switch-text-color: var(--mantine-color-dark-1)}.m_9307d992[data-label-position=left]{--switch-order: 2}.m_93039a1d{position:absolute;z-index:1;border-radius:var(--switch-radius);display:flex;background-color:var(--switch-thumb-bg, var(--mantine-color-white));height:var(--switch-thumb-size);width:var(--switch-thumb-size);inset-inline-start:var(--switch-thumb-start, var(--switch-track-label-padding));transition:inset-inline-start .15s ease}.m_93039a1d:where([data-with-thumb-indicator]):before{content:"";width:40%;height:40%;background-color:var(--switch-bg);position:absolute;border-radius:var(--switch-radius);top:50%;left:50%;transform:translate(-50%,-50%)}.m_93039a1d>*{margin:auto}.m_926b4011:checked+*>.m_93039a1d{--switch-thumb-start: calc(100% - var(--switch-thumb-size) - var(--switch-track-label-padding))}.m_926b4011:disabled+*>.m_93039a1d,.m_926b4011[data-disabled]+*>.m_93039a1d{--switch-thumb-bg: var(--switch-thumb-bg-disabled)}[data-mantine-color-scheme=light] .m_93039a1d{--switch-thumb-bg-disabled: var(--mantine-color-gray-0)}[data-mantine-color-scheme=dark] .m_93039a1d{--switch-thumb-bg-disabled: var(--mantine-color-dark-3)}.m_8277e082{height:100%;display:grid;place-content:center;min-width:calc(var(--switch-width) - var(--switch-thumb-size));padding-inline:var(--switch-track-label-padding);margin-inline-start:calc(var(--switch-thumb-size) + var(--switch-track-label-padding));transition:margin .15s ease}.m_926b4011:checked+*>.m_8277e082{margin-inline-end:calc(var(--switch-thumb-size) + var(--switch-track-label-padding));margin-inline-start:0}.m_b23fa0ef{width:100%;border-collapse:collapse;border-spacing:0;line-height:var(--mantine-line-height);font-size:var(--mantine-font-size-sm);table-layout:var(--table-layout, auto);caption-side:var(--table-caption-side, bottom);border:none}:where([data-mantine-color-scheme=light]) .m_b23fa0ef{--table-hover-color: var(--mantine-color-gray-1);--table-striped-color: var(--mantine-color-gray-0);--table-border-color: var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_b23fa0ef{--table-hover-color: var(--mantine-color-dark-5);--table-striped-color: var(--mantine-color-dark-6);--table-border-color: var(--mantine-color-dark-4)}.m_b23fa0ef:where([data-with-table-border]){border:calc(.0625rem * var(--mantine-scale)) solid var(--table-border-color)}.m_b23fa0ef:where([data-tabular-nums]){font-variant-numeric:tabular-nums}.m_b23fa0ef:where([data-variant=vertical]) :where(.m_4e7aa4f3){font-weight:500}:where([data-mantine-color-scheme=light]) .m_b23fa0ef:where([data-variant=vertical]) :where(.m_4e7aa4f3){background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_b23fa0ef:where([data-variant=vertical]) :where(.m_4e7aa4f3){background-color:var(--mantine-color-dark-6)}.m_4e7aa4f3{text-align:left}:where([dir=rtl]) .m_4e7aa4f3{text-align:right}.m_4e7aa4fd{border-bottom:none;background-color:transparent}@media(hover:hover){.m_4e7aa4fd:hover:where([data-hover]){background-color:var(--tr-hover-bg)}}@media(hover:none){.m_4e7aa4fd:active:where([data-hover]){background-color:var(--tr-hover-bg)}}.m_4e7aa4fd:where([data-with-row-border]){border-bottom:calc(.0625rem * var(--mantine-scale)) solid var(--table-border-color)}.m_4e7aa4ef,.m_4e7aa4f3{padding:var(--table-vertical-spacing) var(--table-horizontal-spacing, var(--mantine-spacing-xs))}.m_4e7aa4ef:where([data-with-column-border]:not(:first-child)),.m_4e7aa4f3:where([data-with-column-border]:not(:first-child)){border-inline-start:calc(.0625rem * var(--mantine-scale)) solid var(--table-border-color)}.m_4e7aa4ef:where([data-with-column-border]:not(:last-child)),.m_4e7aa4f3:where([data-with-column-border]:not(:last-child)){border-inline-end:calc(.0625rem * var(--mantine-scale)) solid var(--table-border-color)}.m_b2404537>:where(tr):where([data-with-row-border]:last-of-type){border-bottom:none}.m_b2404537>:where(tr):where([data-striped=odd]:nth-of-type(odd)){background-color:var(--table-striped-color)}.m_b2404537>:where(tr):where([data-striped=even]:nth-of-type(2n)){background-color:var(--table-striped-color)}.m_b2404537>:where(tr)[data-hover]{--tr-hover-bg: var(--table-highlight-on-hover-color, var(--table-hover-color))}.m_b242d975{top:var(--table-sticky-header-offset, 0);z-index:3}.m_b242d975:where([data-sticky]){position:sticky}.m_b242d975:where([data-sticky]) :where(.m_4e7aa4f3){position:sticky;top:var(--table-sticky-header-offset, 0);background-color:var(--mantine-color-body)}:where([data-with-table-border]) .m_b242d975[data-sticky]{position:sticky;top:var(--table-sticky-header-offset, 0);z-index:4;border-top:none}:where([data-with-table-border]) .m_b242d975[data-sticky]:before{content:"";display:block;position:absolute;left:0;top:calc(-.03125rem * var(--mantine-scale));width:100%;height:calc(.0625rem * var(--mantine-scale));background-color:var(--table-border-color);z-index:5}:where([data-with-table-border]) .m_b242d975[data-sticky] .m_4e7aa4f3:first-child{border-top:none}.m_9e5a3ac7{color:var(--mantine-color-dimmed)}.m_9e5a3ac7:where([data-side=top]){margin-bottom:var(--mantine-spacing-xs)}.m_9e5a3ac7:where([data-side=bottom]){margin-top:var(--mantine-spacing-xs)}.m_a100c15{overflow-x:var(--table-overflow)}.m_62259741{min-width:var(--table-min-width);max-height:var(--table-max-height)}.m_bcaa9990{display:flex;flex-direction:column;--toc-depth-offset: .8em}.m_375a65ef{display:block;padding:.3em .8em;font-size:var(--toc-size, var(--mantine-font-size-md));border-radius:var(--toc-radius, var(--mantine-radius-default));padding-left:max(calc(var(--depth-offset) * var(--toc-depth-offset)),.8em)}@media(hover:hover){:where([data-mantine-color-scheme=light]) .m_375a65ef:where(:hover):where(:not([data-variant=none])){background-color:var(--mantine-color-gray-1)}:where([data-mantine-color-scheme=dark]) .m_375a65ef:where(:hover):where(:not([data-variant=none])){background-color:var(--mantine-color-dark-5)}}@media(hover:none){:where([data-mantine-color-scheme=light]) .m_375a65ef:where(:active):where(:not([data-variant=none])){background-color:var(--mantine-color-gray-1)}:where([data-mantine-color-scheme=dark]) .m_375a65ef:where(:active):where(:not([data-variant=none])){background-color:var(--mantine-color-dark-5)}}.m_375a65ef:where([data-active]){background-color:var(--toc-bg);color:var(--toc-color)}[data-mantine-color-scheme=light] .m_89d60db1{--tab-border-color: var(--mantine-color-gray-3)}[data-mantine-color-scheme=dark] .m_89d60db1{--tab-border-color: var(--mantine-color-dark-4)}.m_89d60db1{display:var(--tabs-display);flex-direction:var(--tabs-flex-direction);--tabs-list-direction: row;--tabs-panel-grow: unset;--tabs-display: block;--tabs-flex-direction: row;--tabs-list-border-width: 0;--tabs-list-border-size: 0 0 var(--tabs-list-border-width) 0;--tabs-list-gap: unset;--tabs-list-line-bottom: 0;--tabs-list-line-top: unset;--tabs-list-line-start: 0;--tabs-list-line-end: 0;--tab-radius: var(--tabs-radius) var(--tabs-radius) 0 0;--tab-border-width: 0 0 var(--tabs-list-border-width) 0}.m_89d60db1[data-inverted]{--tabs-list-line-bottom: unset;--tabs-list-line-top: 0;--tab-radius: 0 0 var(--tabs-radius) var(--tabs-radius);--tab-border-width: var(--tabs-list-border-width) 0 0 0}.m_89d60db1[data-inverted] .m_576c9d4:before{top:0;bottom:unset}.m_89d60db1[data-orientation=vertical]{--tabs-list-line-start: unset;--tabs-list-line-end: 0;--tabs-list-line-top: 0;--tabs-list-line-bottom: 0;--tabs-list-border-size: 0 var(--tabs-list-border-width) 0 0;--tab-border-width: 0 var(--tabs-list-border-width) 0 0;--tab-radius: var(--tabs-radius) 0 0 var(--tabs-radius);--tabs-list-direction: column;--tabs-panel-grow: 1;--tabs-display: flex}[dir=rtl] .m_89d60db1[data-orientation=vertical]{--tabs-list-border-size: 0 0 0 var(--tabs-list-border-width);--tab-border-width: 0 0 0 var(--tabs-list-border-width);--tab-radius: 0 var(--tabs-radius) var(--tabs-radius) 0}.m_89d60db1[data-orientation=vertical][data-placement=right]{--tabs-flex-direction: row-reverse;--tabs-list-line-start: 0;--tabs-list-line-end: unset;--tabs-list-border-size: 0 0 0 var(--tabs-list-border-width);--tab-border-width: 0 0 0 var(--tabs-list-border-width);--tab-radius: 0 var(--tabs-radius) var(--tabs-radius) 0}[dir=rtl] .m_89d60db1[data-orientation=vertical][data-placement=right]{--tabs-list-border-size: 0 var(--tabs-list-border-width) 0 0;--tab-border-width: 0 var(--tabs-list-border-width) 0 0;--tab-radius: var(--tabs-radius) 0 0 var(--tabs-radius)}.m_89d60db1[data-variant=default]{--tabs-list-border-width: calc(.125rem * var(--mantine-scale))}[data-mantine-color-scheme=light] .m_89d60db1[data-variant=default]{--tab-hover-color: var(--mantine-color-gray-0)}[data-mantine-color-scheme=dark] .m_89d60db1[data-variant=default]{--tab-hover-color: var(--mantine-color-dark-6)}.m_89d60db1[data-variant=outline]{--tabs-list-border-width: calc(.0625rem * var(--mantine-scale))}.m_89d60db1[data-variant=pills]{--tabs-list-gap: calc(var(--mantine-spacing-sm) / 2)}[data-mantine-color-scheme=light] .m_89d60db1[data-variant=pills]{--tab-hover-color: var(--mantine-color-gray-0)}[data-mantine-color-scheme=dark] .m_89d60db1[data-variant=pills]{--tab-hover-color: var(--mantine-color-dark-6)}.m_89d33d6d{display:flex;flex-wrap:wrap;justify-content:var(--tabs-justify, flex-start);flex-direction:var(--tabs-list-direction);gap:var(--tabs-list-gap)}.m_89d33d6d:where([data-grow]) .m_4ec4dce6{flex:1}.m_b0c91715{flex-grow:var(--tabs-panel-grow)}.m_4ec4dce6{position:relative;padding:var(--mantine-spacing-xs) var(--mantine-spacing-md);font-size:var(--mantine-font-size-sm);white-space:nowrap;z-index:0;display:flex;align-items:center;line-height:1;user-select:none}.m_4ec4dce6:where(:disabled,[data-disabled]){opacity:.5;cursor:not-allowed}.m_4ec4dce6:focus{z-index:1}.m_fc420b1f{display:flex;align-items:center;justify-content:center}.m_fc420b1f:where([data-position=left]:not(:only-child)){margin-inline-end:var(--mantine-spacing-xs)}.m_fc420b1f:where([data-position=right]:not(:only-child)){margin-inline-start:var(--mantine-spacing-xs)}.m_42bbd1ae{flex:1;text-align:center}.m_576c9d4{position:relative}.m_576c9d4:before{content:"";position:absolute;border:1px solid var(--tab-border-color);bottom:var(--tabs-list-line-bottom);inset-inline-start:var(--tabs-list-line-start);inset-inline-end:var(--tabs-list-line-end);top:var(--tabs-list-line-top)}.m_539e827b{border-radius:var(--tab-radius);border-width:var(--tab-border-width);border-style:solid;border-color:transparent;background-color:transparent}.m_539e827b:where([data-active]){border-color:var(--tabs-color)}@media(hover:hover){.m_539e827b:hover{background-color:var(--tab-hover-color)}.m_539e827b:hover:where(:not([data-active])){border-color:var(--tab-border-color)}}@media(hover:none){.m_539e827b:active{background-color:var(--tab-hover-color)}.m_539e827b:active:where(:not([data-active])){border-color:var(--tab-border-color)}}@media(hover:hover){.m_539e827b:disabled:hover,.m_539e827b[data-disabled]:hover{background-color:transparent}}@media(hover:none){.m_539e827b:disabled:active,.m_539e827b[data-disabled]:active{background-color:transparent}}.m_6772fbd5{position:relative}.m_6772fbd5:before{content:"";position:absolute;border-color:var(--tab-border-color);border-width:var(--tabs-list-border-size);border-style:solid;bottom:var(--tabs-list-line-bottom);inset-inline-start:var(--tabs-list-line-start);inset-inline-end:var(--tabs-list-line-end);top:var(--tabs-list-line-top)}.m_b59ab47c{border-top:calc(.0625rem * var(--mantine-scale)) solid transparent;border-bottom:calc(.0625rem * var(--mantine-scale)) solid transparent;border-right:calc(.0625rem * var(--mantine-scale)) solid transparent;border-left:calc(.0625rem * var(--mantine-scale)) solid transparent;border-top-color:var(--tab-border-top-color);border-bottom-color:var(--tab-border-bottom-color);border-radius:var(--tab-radius);position:relative;--tab-border-bottom-color: transparent;--tab-border-top-color: transparent;--tab-border-inline-end-color: transparent;--tab-border-inline-start-color: transparent}.m_b59ab47c:where([data-active]):before{content:"";position:absolute;background-color:var(--tab-border-color);bottom:var(--tab-before-bottom, calc(-.0625rem * var(--mantine-scale)));left:var(--tab-before-left, calc(-.0625rem * var(--mantine-scale)));right:var(--tab-before-right, auto);top:var(--tab-before-top, auto);width:calc(.0625rem * var(--mantine-scale));height:calc(.0625rem * var(--mantine-scale))}.m_b59ab47c:where([data-active]):after{content:"";position:absolute;background-color:var(--tab-border-color);bottom:var(--tab-after-bottom, calc(-.0625rem * var(--mantine-scale)));right:var(--tab-after-right, calc(-.0625rem * var(--mantine-scale)));left:var(--tab-after-left, auto);top:var(--tab-after-top, auto);width:calc(.0625rem * var(--mantine-scale));height:calc(.0625rem * var(--mantine-scale))}.m_b59ab47c:where([data-active]){border-top-color:var(--tab-border-top-color);border-bottom-color:var(--tab-border-bottom-color);border-inline-start-color:var(--tab-border-inline-start-color);border-inline-end-color:var(--tab-border-inline-end-color);--tab-border-top-color: var(--tab-border-color);--tab-border-inline-start-color: var(--tab-border-color);--tab-border-inline-end-color: var(--tab-border-color);--tab-border-bottom-color: var(--mantine-color-body)}.m_b59ab47c:where([data-active])[data-inverted]{--tab-border-bottom-color: var(--tab-border-color);--tab-border-top-color: var(--mantine-color-body);--tab-before-bottom: auto;--tab-before-top: calc(-.0625rem * var(--mantine-scale));--tab-after-bottom: auto;--tab-after-top: calc(-.0625rem * var(--mantine-scale))}.m_b59ab47c:where([data-active])[data-orientation=vertical][data-placement=left]{--tab-border-inline-end-color: var(--mantine-color-body);--tab-border-inline-start-color: var(--tab-border-color);--tab-border-bottom-color: var(--tab-border-color);--tab-before-right: calc(-.0625rem * var(--mantine-scale));--tab-before-left: auto;--tab-before-bottom: auto;--tab-before-top: calc(-.0625rem * var(--mantine-scale));--tab-after-left: auto;--tab-after-right: calc(-.0625rem * var(--mantine-scale))}[dir=rtl] .m_b59ab47c:where([data-active])[data-orientation=vertical][data-placement=left]{--tab-before-right: auto;--tab-before-left: calc(-.0625rem * var(--mantine-scale));--tab-after-left: calc(-.0625rem * var(--mantine-scale));--tab-after-right: auto}.m_b59ab47c:where([data-active])[data-orientation=vertical][data-placement=right]{--tab-border-inline-start-color: var(--mantine-color-body);--tab-border-inline-end-color: var(--tab-border-color);--tab-border-bottom-color: var(--tab-border-color);--tab-before-left: calc(-.0625rem * var(--mantine-scale));--tab-before-right: auto;--tab-before-bottom: auto;--tab-before-top: calc(-.0625rem * var(--mantine-scale));--tab-after-right: auto;--tab-after-left: calc(-.0625rem * var(--mantine-scale))}[dir=rtl] .m_b59ab47c:where([data-active])[data-orientation=vertical][data-placement=right]{--tab-before-left: auto;--tab-before-right: calc(-.0625rem * var(--mantine-scale));--tab-after-right: calc(-.0625rem * var(--mantine-scale));--tab-after-left: auto}.m_c3381914{border-radius:var(--tabs-radius);background-color:var(--tab-bg);color:var(--tab-color);--tab-bg: transparent;--tab-color: inherit}@media(hover:hover){.m_c3381914:not([data-disabled]):hover{--tab-bg: var(--tab-hover-color)}}@media(hover:none){.m_c3381914:not([data-disabled]):active{--tab-bg: var(--tab-hover-color)}}.m_c3381914[data-active][data-active]{--tab-bg: var(--tabs-color);--tab-color: var(--tabs-text-color, var(--mantine-color-white))}@media(hover:hover){.m_c3381914[data-active][data-active]:hover{--tab-bg: var(--tabs-color)}}@media(hover:none){.m_c3381914[data-active][data-active]:active{--tab-bg: var(--tabs-color)}}.m_7341320d{--ti-size-xs: calc(1.125rem * var(--mantine-scale));--ti-size-sm: calc(1.375rem * var(--mantine-scale));--ti-size-md: calc(1.75rem * var(--mantine-scale));--ti-size-lg: calc(2.125rem * var(--mantine-scale));--ti-size-xl: calc(2.75rem * var(--mantine-scale));--ti-size: var(--ti-size-md);line-height:1;display:inline-flex;align-items:center;justify-content:center;position:relative;user-select:none;width:var(--ti-size);height:var(--ti-size);min-width:var(--ti-size);min-height:var(--ti-size);border-radius:var(--ti-radius, var(--mantine-radius-default));background:var(--ti-bg, var(--mantine-primary-color-filled));color:var(--ti-color, var(--mantine-color-white));border:var(--ti-bd, 1px solid transparent)}.m_43657ece{--offset: calc(var(--tl-bullet-size) / 2 + var(--tl-line-width) / 2);--tl-bullet-size: calc(1.25rem * var(--mantine-scale));--tl-line-width: calc(.25rem * var(--mantine-scale));--tl-radius: calc(62.5rem * var(--mantine-scale));--tl-color: var(--mantine-primary-color-filled)}.m_43657ece:where([data-align=left]){padding-inline-start:var(--offset)}.m_43657ece:where([data-align=right]){padding-inline-end:var(--offset)}.m_2ebe8099{font-weight:500;line-height:1;margin-bottom:calc(var(--mantine-spacing-xs) / 2)}.m_436178ff{--item-border: var(--tl-line-width) var(--tli-border-style, solid) var(--item-border-color);position:relative;color:var(--mantine-color-text)}.m_436178ff:before{content:"";pointer-events:none;position:absolute;top:0;left:var(--timeline-line-left, 0);right:var(--timeline-line-right, 0);bottom:calc(var(--mantine-spacing-xl) * -1);border-inline-start:var(--item-border);display:var(--timeline-line-display, none)}.m_43657ece[data-align=left] .m_436178ff:before{--timeline-line-left: calc(var(--tl-line-width) * -1);--timeline-line-right: auto}[dir=rtl] .m_43657ece[data-align=left] .m_436178ff:before{--timeline-line-left: auto;--timeline-line-right: calc(var(--tl-line-width) * -1)}.m_43657ece[data-align=right] .m_436178ff:before{--timeline-line-left: auto;--timeline-line-right: calc(var(--tl-line-width) * -1)}[dir=rtl] .m_43657ece[data-align=right] .m_436178ff:before{--timeline-line-left: calc(var(--tl-line-width) * -1);--timeline-line-right: auto}.m_43657ece:where([data-align=left]) .m_436178ff{padding-inline-start:var(--offset);text-align:left}.m_43657ece:where([data-align=right]) .m_436178ff{padding-inline-end:var(--offset);text-align:right}:where([data-mantine-color-scheme=light]) .m_436178ff{--item-border-color: var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_436178ff{--item-border-color: var(--mantine-color-dark-4)}.m_436178ff:where([data-line-active]):before{border-color:var(--tli-color, var(--tl-color))}.m_436178ff:where(:not(:last-of-type)){--timeline-line-display: block}.m_436178ff:where(:not(:first-of-type)){margin-top:var(--mantine-spacing-xl)}.m_8affcee1{width:var(--tl-bullet-size);height:var(--tl-bullet-size);border-radius:var(--tli-radius, var(--tl-radius));border:var(--tl-line-width) solid;background-color:var(--mantine-color-body);position:absolute;top:0;display:flex;align-items:center;justify-content:center;color:var(--mantine-color-text)}:where([data-mantine-color-scheme=light]) .m_8affcee1{border-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_8affcee1{border-color:var(--mantine-color-dark-4)}.m_43657ece:where([data-align=left]) .m_8affcee1{left:calc((var(--tl-bullet-size) / 2 + var(--tl-line-width) / 2) * -1);right:auto}:where([dir=rtl]) .m_43657ece:where([data-align=left]) .m_8affcee1{left:auto;right:calc((var(--tl-bullet-size) / 2 + var(--tl-line-width) / 2) * -1)}.m_43657ece:where([data-align=right]) .m_8affcee1{left:auto;right:calc((var(--tl-bullet-size) / 2 + var(--tl-line-width) / 2) * -1)}:where([dir=rtl]) .m_43657ece:where([data-align=right]) .m_8affcee1{left:calc((var(--tl-bullet-size) / 2 + var(--tl-line-width) / 2) * -1);right:auto}.m_8affcee1:where([data-with-child]){border-width:var(--tl-line-width)}:where([data-mantine-color-scheme=light]) .m_8affcee1:where([data-with-child]){background-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_8affcee1:where([data-with-child]){background-color:var(--mantine-color-dark-4)}.m_8affcee1:where([data-active]){border-color:var(--tli-color, var(--tl-color));background-color:var(--mantine-color-white);color:var(--tl-icon-color, var(--mantine-color-white))}.m_8affcee1:where([data-active]):where([data-with-child]){background-color:var(--tli-color, var(--tl-color));color:var(--tl-icon-color, var(--mantine-color-white))}.m_43657ece:where([data-align=left]) .m_540e8f41{padding-inline-start:var(--offset);text-align:left}:where([dir=rtl]) .m_43657ece:where([data-align=left]) .m_540e8f41{text-align:right}.m_43657ece:where([data-align=right]) .m_540e8f41{padding-inline-end:var(--offset);text-align:right}:where([dir=rtl]) .m_43657ece:where([data-align=right]) .m_540e8f41{text-align:left}.m_8a5d1357{margin:0;font-weight:var(--title-fw);font-size:var(--title-fz);line-height:var(--title-lh);font-family:var(--mantine-font-family-headings);text-wrap:var(--title-text-wrap, var(--mantine-heading-text-wrap))}.m_8a5d1357:where([data-line-clamp]){overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:var(--title-line-clamp);-webkit-box-orient:vertical}.m_f698e191{--level-offset: var(--mantine-spacing-lg);margin:0;padding:0;user-select:none}.m_75f3ecf{margin:0;padding:0}.m_f6970eb1{cursor:pointer;list-style:none;margin:0;padding:0;outline:0}.m_f6970eb1:focus-visible>.m_dc283425{outline:2px solid var(--mantine-primary-color-filled);outline-offset:calc(.125rem * var(--mantine-scale))}.m_dc283425{padding-inline-start:var(--label-offset)}:where([data-mantine-color-scheme=light]) .m_dc283425:where([data-selected]){background-color:var(--mantine-color-gray-1)}:where([data-mantine-color-scheme=dark]) .m_dc283425:where([data-selected]){background-color:var(--mantine-color-dark-5)}.m_d08caa0 :first-child{margin-top:0}.m_d08caa0 :last-child{margin-bottom:0}.m_d08caa0 :where(h1,h2,h3,h4,h5,h6){margin-bottom:var(--mantine-spacing-xs);text-wrap:var(--mantine-heading-text-wrap);font-family:var(--mantine-font-family-headings)}.m_d08caa0 :where(h1){margin-top:calc(1.5 * var(--mantine-spacing-xl));font-size:var(--mantine-h1-font-size);line-height:var(--mantine-h1-line-height);font-weight:var(--mantine-h1-font-weight)}.m_d08caa0 :where(h2){margin-top:var(--mantine-spacing-xl);font-size:var(--mantine-h2-font-size);line-height:var(--mantine-h2-line-height);font-weight:var(--mantine-h2-font-weight)}.m_d08caa0 :where(h3){margin-top:calc(.8 * var(--mantine-spacing-xl));font-size:var(--mantine-h3-font-size);line-height:var(--mantine-h3-line-height);font-weight:var(--mantine-h3-font-weight)}.m_d08caa0 :where(h4){margin-top:calc(.8 * var(--mantine-spacing-xl));font-size:var(--mantine-h4-font-size);line-height:var(--mantine-h4-line-height);font-weight:var(--mantine-h4-font-weight)}.m_d08caa0 :where(h5){margin-top:calc(.5 * var(--mantine-spacing-xl));font-size:var(--mantine-h5-font-size);line-height:var(--mantine-h5-line-height);font-weight:var(--mantine-h5-font-weight)}.m_d08caa0 :where(h6){margin-top:calc(.5 * var(--mantine-spacing-xl));font-size:var(--mantine-h6-font-size);line-height:var(--mantine-h6-line-height);font-weight:var(--mantine-h6-font-weight)}.m_d08caa0 :where(img){max-width:100%;margin-bottom:var(--mantine-spacing-xs)}.m_d08caa0 :where(p){margin-top:0;margin-bottom:var(--mantine-spacing-lg)}:where([data-mantine-color-scheme=light]) .m_d08caa0 :where(mark){background-color:var(--mantine-color-yellow-2);color:inherit}:where([data-mantine-color-scheme=dark]) .m_d08caa0 :where(mark){background-color:var(--mantine-color-yellow-5);color:var(--mantine-color-black)}.m_d08caa0 :where(a){color:var(--mantine-color-anchor);text-decoration:none}@media(hover:hover){.m_d08caa0 :where(a):hover{text-decoration:underline}}@media(hover:none){.m_d08caa0 :where(a):active{text-decoration:underline}}.m_d08caa0 :where(hr){margin-top:var(--mantine-spacing-md);margin-bottom:var(--mantine-spacing-md);border:0;border-top:calc(.0625rem * var(--mantine-scale)) solid}:where([data-mantine-color-scheme=light]) .m_d08caa0 :where(hr){border-color:var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_d08caa0 :where(hr){border-color:var(--mantine-color-dark-3)}.m_d08caa0 :where(pre){padding:var(--mantine-spacing-xs);line-height:var(--mantine-line-height);margin:0;margin-top:var(--mantine-spacing-md);margin-bottom:var(--mantine-spacing-md);overflow-x:auto;font-family:var(--mantine-font-family-monospace);font-size:var(--mantine-font-size-xs);border-radius:var(--mantine-radius-sm)}:where([data-mantine-color-scheme=light]) .m_d08caa0 :where(pre){background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_d08caa0 :where(pre){background-color:var(--mantine-color-dark-8)}.m_d08caa0 :where(pre) :where(code){background-color:transparent;padding:0;border-radius:0;color:inherit;border:0}.m_d08caa0 :where(kbd){--kbd-fz: calc(.75rem * var(--mantine-scale));--kbd-padding: calc(.1875rem * var(--mantine-scale)) calc(.3125rem * var(--mantine-scale));font-family:var(--mantine-font-family-monospace);line-height:var(--mantine-line-height);font-weight:700;padding:var(--kbd-padding);font-size:var(--kbd-fz);border-radius:var(--mantine-radius-sm);border:calc(.0625rem * var(--mantine-scale)) solid;border-bottom-width:calc(.1875rem * var(--mantine-scale))}:where([data-mantine-color-scheme=light]) .m_d08caa0 :where(kbd){border-color:var(--mantine-color-gray-3);color:var(--mantine-color-gray-7);background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_d08caa0 :where(kbd){border-color:var(--mantine-color-dark-3);color:var(--mantine-color-dark-0);background-color:var(--mantine-color-dark-5)}.m_d08caa0 :where(code){line-height:var(--mantine-line-height);padding:calc(.0625rem * var(--mantine-scale)) calc(.3125rem * var(--mantine-scale));border-radius:var(--mantine-radius-sm);font-family:var(--mantine-font-family-monospace);font-size:var(--mantine-font-size-xs)}:where([data-mantine-color-scheme=light]) .m_d08caa0 :where(code){background-color:var(--mantine-color-gray-0);color:var(--mantine-color-black)}:where([data-mantine-color-scheme=dark]) .m_d08caa0 :where(code){background-color:var(--mantine-color-dark-5);color:var(--mantine-color-white)}.m_d08caa0 :where(ul,ol):not([data-type=taskList]){margin-bottom:var(--mantine-spacing-md);padding-inline-start:var(--mantine-spacing-xl);list-style-position:outside}.m_d08caa0 :where(table){width:100%;border-collapse:collapse;caption-side:bottom;margin-bottom:var(--mantine-spacing-md)}:where([data-mantine-color-scheme=light]) .m_d08caa0 :where(table){--table-border-color: var(--mantine-color-gray-3)}:where([data-mantine-color-scheme=dark]) .m_d08caa0 :where(table){--table-border-color: var(--mantine-color-dark-4)}.m_d08caa0 :where(table) :where(caption){margin-top:var(--mantine-spacing-xs);font-size:var(--mantine-font-size-sm);color:var(--mantine-color-dimmed)}.m_d08caa0 :where(table) :where(th){text-align:left;font-weight:700;font-size:var(--mantine-font-size-sm);padding:var(--mantine-spacing-xs) var(--mantine-spacing-sm)}.m_d08caa0 :where(table) :where(thead th){border-bottom:calc(.0625rem * var(--mantine-scale)) solid;border-color:var(--table-border-color)}.m_d08caa0 :where(table) :where(tfoot th){border-top:calc(.0625rem * var(--mantine-scale)) solid;border-color:var(--table-border-color)}.m_d08caa0 :where(table) :where(td){padding:var(--mantine-spacing-xs) var(--mantine-spacing-sm);border-bottom:calc(.0625rem * var(--mantine-scale)) solid;border-color:var(--table-border-color);font-size:var(--mantine-font-size-sm)}.m_d08caa0 :where(table) :where(tr:last-of-type td){border-bottom:0}.m_d08caa0 :where(blockquote){font-size:var(--mantine-font-size-lg);line-height:var(--mantine-line-height);margin:var(--mantine-spacing-md) 0;border-radius:var(--mantine-radius-sm);padding:var(--mantine-spacing-md) var(--mantine-spacing-lg)}:where([data-mantine-color-scheme=light]) .m_d08caa0 :where(blockquote){background-color:var(--mantine-color-gray-0)}:where([data-mantine-color-scheme=dark]) .m_d08caa0 :where(blockquote){background-color:var(--mantine-color-dark-8)}}@layer xyflow{.react-flow{direction:ltr;--xy-edge-stroke-default: #b1b1b7;--xy-edge-stroke-width-default: 1;--xy-edge-stroke-selected-default: #555;--xy-connectionline-stroke-default: #b1b1b7;--xy-connectionline-stroke-width-default: 1;--xy-attribution-background-color-default: rgba(255, 255, 255, .5);--xy-minimap-background-color-default: #fff;--xy-minimap-mask-background-color-default: rgba(240, 240, 240, .6);--xy-minimap-mask-stroke-color-default: transparent;--xy-minimap-mask-stroke-width-default: 1;--xy-minimap-node-background-color-default: #e2e2e2;--xy-minimap-node-stroke-color-default: transparent;--xy-minimap-node-stroke-width-default: 2;--xy-background-color-default: transparent;--xy-background-pattern-dots-color-default: #91919a;--xy-background-pattern-lines-color-default: #eee;--xy-background-pattern-cross-color-default: #e2e2e2;background-color:var(--xy-background-color, var(--xy-background-color-default));--xy-node-color-default: inherit;--xy-node-border-default: 1px solid #1a192b;--xy-node-background-color-default: #fff;--xy-node-group-background-color-default: rgba(240, 240, 240, .25);--xy-node-boxshadow-hover-default: 0 1px 4px 1px rgba(0, 0, 0, .08);--xy-node-boxshadow-selected-default: 0 0 0 .5px #1a192b;--xy-node-border-radius-default: 3px;--xy-handle-background-color-default: #1a192b;--xy-handle-border-color-default: #fff;--xy-selection-background-color-default: rgba(0, 89, 220, .08);--xy-selection-border-default: 1px dotted rgba(0, 89, 220, .8);--xy-controls-button-background-color-default: #fefefe;--xy-controls-button-background-color-hover-default: #f4f4f4;--xy-controls-button-color-default: inherit;--xy-controls-button-color-hover-default: inherit;--xy-controls-button-border-color-default: #eee;--xy-controls-box-shadow-default: 0 0 2px 1px rgba(0, 0, 0, .08);--xy-edge-label-background-color-default: #ffffff;--xy-edge-label-color-default: inherit;--xy-resize-background-color-default: #3367d9}.react-flow.dark{--xy-edge-stroke-default: #3e3e3e;--xy-edge-stroke-width-default: 1;--xy-edge-stroke-selected-default: #727272;--xy-connectionline-stroke-default: #b1b1b7;--xy-connectionline-stroke-width-default: 1;--xy-attribution-background-color-default: rgba(150, 150, 150, .25);--xy-minimap-background-color-default: #141414;--xy-minimap-mask-background-color-default: rgba(60, 60, 60, .6);--xy-minimap-mask-stroke-color-default: transparent;--xy-minimap-mask-stroke-width-default: 1;--xy-minimap-node-background-color-default: #2b2b2b;--xy-minimap-node-stroke-color-default: transparent;--xy-minimap-node-stroke-width-default: 2;--xy-background-color-default: #141414;--xy-background-pattern-dots-color-default: #777;--xy-background-pattern-lines-color-default: #777;--xy-background-pattern-cross-color-default: #777;--xy-node-color-default: #f8f8f8;--xy-node-border-default: 1px solid #3c3c3c;--xy-node-background-color-default: #1e1e1e;--xy-node-group-background-color-default: rgba(240, 240, 240, .25);--xy-node-boxshadow-hover-default: 0 1px 4px 1px rgba(255, 255, 255, .08);--xy-node-boxshadow-selected-default: 0 0 0 .5px #999;--xy-handle-background-color-default: #bebebe;--xy-handle-border-color-default: #1e1e1e;--xy-selection-background-color-default: rgba(200, 200, 220, .08);--xy-selection-border-default: 1px dotted rgba(200, 200, 220, .8);--xy-controls-button-background-color-default: #2b2b2b;--xy-controls-button-background-color-hover-default: #3e3e3e;--xy-controls-button-color-default: #f8f8f8;--xy-controls-button-color-hover-default: #fff;--xy-controls-button-border-color-default: #5b5b5b;--xy-controls-box-shadow-default: 0 0 2px 1px rgba(0, 0, 0, .08);--xy-edge-label-background-color-default: #141414;--xy-edge-label-color-default: #f8f8f8}.react-flow__background{background-color:var(--xy-background-color-props, var(--xy-background-color, var(--xy-background-color-default)));pointer-events:none;z-index:-1}.react-flow__container{position:absolute;width:100%;height:100%;top:0;left:0}.react-flow__pane{z-index:1}.react-flow__pane.draggable{cursor:grab}.react-flow__pane.dragging{cursor:grabbing}.react-flow__pane.selection{cursor:pointer}.react-flow__viewport{transform-origin:0 0;z-index:2;pointer-events:none}.react-flow__renderer{z-index:4}.react-flow__selection{z-index:6}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible{outline:none}.react-flow__edge-path{stroke:var(--xy-edge-stroke, var(--xy-edge-stroke-default));stroke-width:var(--xy-edge-stroke-width, var(--xy-edge-stroke-width-default));fill:none}.react-flow__connection-path{stroke:var(--xy-connectionline-stroke, var(--xy-connectionline-stroke-default));stroke-width:var(--xy-connectionline-stroke-width, var(--xy-connectionline-stroke-width-default));fill:none}.react-flow .react-flow__edges{position:absolute}.react-flow .react-flow__edges svg{overflow:visible;position:absolute;pointer-events:none}.react-flow__edge{pointer-events:visibleStroke}.react-flow__edge.selectable{cursor:pointer}.react-flow__edge.animated path{stroke-dasharray:5;animation:dashdraw .5s linear infinite}.react-flow__edge.animated path.react-flow__edge-interaction{stroke-dasharray:none;animation:none}.react-flow__edge.inactive{pointer-events:none}.react-flow__edge.selected,.react-flow__edge:focus,.react-flow__edge:focus-visible{outline:none}.react-flow__edge.selected .react-flow__edge-path,.react-flow__edge.selectable:focus .react-flow__edge-path,.react-flow__edge.selectable:focus-visible .react-flow__edge-path{stroke:var(--xy-edge-stroke-selected, var(--xy-edge-stroke-selected-default))}.react-flow__edge-textwrapper{pointer-events:all}.react-flow__edge .react-flow__edge-text{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__arrowhead polyline{stroke:var(--xy-edge-stroke, var(--xy-edge-stroke-default))}.react-flow__arrowhead polyline.arrowclosed{fill:var(--xy-edge-stroke, var(--xy-edge-stroke-default))}.react-flow__connection{pointer-events:none}.react-flow__connection .animated{stroke-dasharray:5;animation:dashdraw .5s linear infinite}svg.react-flow__connectionline{z-index:1001;overflow:visible;position:absolute}.react-flow__nodes{pointer-events:none;transform-origin:0 0}.react-flow__node{position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:all;transform-origin:0 0;box-sizing:border-box;cursor:default}.react-flow__node.selectable{cursor:pointer}.react-flow__node.draggable{cursor:grab;pointer-events:all}.react-flow__node.draggable.dragging{cursor:grabbing}.react-flow__nodesselection{z-index:3;transform-origin:left top;pointer-events:none}.react-flow__nodesselection-rect{position:absolute;pointer-events:all;cursor:grab}.react-flow__handle{position:absolute;pointer-events:none;min-width:5px;min-height:5px;width:6px;height:6px;background-color:var(--xy-handle-background-color, var(--xy-handle-background-color-default));border:1px solid var(--xy-handle-border-color, var(--xy-handle-border-color-default));border-radius:100%}.react-flow__handle.connectingfrom{pointer-events:all}.react-flow__handle.connectionindicator{pointer-events:all;cursor:crosshair}.react-flow__handle-bottom{top:auto;left:50%;bottom:0;transform:translate(-50%,50%)}.react-flow__handle-top{top:0;left:50%;transform:translate(-50%,-50%)}.react-flow__handle-left{top:50%;left:0;transform:translate(-50%,-50%)}.react-flow__handle-right{top:50%;right:0;transform:translate(50%,-50%)}.react-flow__edgeupdater{cursor:move;pointer-events:all}.react-flow__pane.selection .react-flow__panel{pointer-events:none}.react-flow__panel{position:absolute;z-index:5;margin:15px}.react-flow__panel.top{top:0}.react-flow__panel.bottom{bottom:0}.react-flow__panel.top.center,.react-flow__panel.bottom.center{left:50%;transform:translate(-15px) translate(-50%)}.react-flow__panel.left{left:0}.react-flow__panel.right{right:0}.react-flow__panel.left.center,.react-flow__panel.right.center{top:50%;transform:translateY(-15px) translateY(-50%)}.react-flow__attribution{font-size:10px;background:var(--xy-attribution-background-color, var(--xy-attribution-background-color-default));padding:2px 3px;margin:0}.react-flow__attribution a{text-decoration:none;color:#999}@keyframes dashdraw{0%{stroke-dashoffset:10}}.react-flow__edgelabel-renderer{position:absolute;width:100%;height:100%;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;left:0;top:0}.react-flow__viewport-portal{position:absolute;width:100%;height:100%;left:0;top:0;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__minimap{background:var( --xy-minimap-background-color-props, var(--xy-minimap-background-color, var(--xy-minimap-background-color-default)) )}.react-flow__minimap-svg{display:block}.react-flow__minimap-mask{fill:var( --xy-minimap-mask-background-color-props, var(--xy-minimap-mask-background-color, var(--xy-minimap-mask-background-color-default)) );stroke:var( --xy-minimap-mask-stroke-color-props, var(--xy-minimap-mask-stroke-color, var(--xy-minimap-mask-stroke-color-default)) );stroke-width:var( --xy-minimap-mask-stroke-width-props, var(--xy-minimap-mask-stroke-width, var(--xy-minimap-mask-stroke-width-default)) )}.react-flow__minimap-node{fill:var( --xy-minimap-node-background-color-props, var(--xy-minimap-node-background-color, var(--xy-minimap-node-background-color-default)) );stroke:var( --xy-minimap-node-stroke-color-props, var(--xy-minimap-node-stroke-color, var(--xy-minimap-node-stroke-color-default)) );stroke-width:var( --xy-minimap-node-stroke-width-props, var(--xy-minimap-node-stroke-width, var(--xy-minimap-node-stroke-width-default)) )}.react-flow__background-pattern.dots{fill:var( --xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-dots-color-default)) )}.react-flow__background-pattern.lines{stroke:var( --xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-lines-color-default)) )}.react-flow__background-pattern.cross{stroke:var( --xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-cross-color-default)) )}.react-flow__controls{display:flex;flex-direction:column;box-shadow:var(--xy-controls-box-shadow, var(--xy-controls-box-shadow-default))}.react-flow__controls.horizontal{flex-direction:row}.react-flow__controls-button{display:flex;justify-content:center;align-items:center;height:26px;width:26px;padding:4px;border:none;background:var(--xy-controls-button-background-color, var(--xy-controls-button-background-color-default));border-bottom:1px solid var( --xy-controls-button-border-color-props, var(--xy-controls-button-border-color, var(--xy-controls-button-border-color-default)) );color:var( --xy-controls-button-color-props, var(--xy-controls-button-color, var(--xy-controls-button-color-default)) );cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__controls-button svg{width:100%;max-width:12px;max-height:12px;fill:currentColor}.react-flow__edge.updating .react-flow__edge-path{stroke:#777}.react-flow__edge-text{font-size:10px}.react-flow__node.selectable:focus,.react-flow__node.selectable:focus-visible{outline:none}.react-flow__node-input,.react-flow__node-default,.react-flow__node-output,.react-flow__node-group{padding:10px;border-radius:var(--xy-node-border-radius, var(--xy-node-border-radius-default));width:150px;font-size:12px;color:var(--xy-node-color, var(--xy-node-color-default));text-align:center;border:var(--xy-node-border, var(--xy-node-border-default));background-color:var(--xy-node-background-color, var(--xy-node-background-color-default))}.react-flow__node-input.selectable:hover,.react-flow__node-default.selectable:hover,.react-flow__node-output.selectable:hover,.react-flow__node-group.selectable:hover{box-shadow:var(--xy-node-boxshadow-hover, var(--xy-node-boxshadow-hover-default))}.react-flow__node-input.selectable.selected,.react-flow__node-input.selectable:focus,.react-flow__node-input.selectable:focus-visible,.react-flow__node-default.selectable.selected,.react-flow__node-default.selectable:focus,.react-flow__node-default.selectable:focus-visible,.react-flow__node-output.selectable.selected,.react-flow__node-output.selectable:focus,.react-flow__node-output.selectable:focus-visible,.react-flow__node-group.selectable.selected,.react-flow__node-group.selectable:focus,.react-flow__node-group.selectable:focus-visible{box-shadow:var(--xy-node-boxshadow-selected, var(--xy-node-boxshadow-selected-default))}.react-flow__node-group{background-color:var(--xy-node-group-background-color, var(--xy-node-group-background-color-default))}.react-flow__nodesselection-rect,.react-flow__selection{background:var(--xy-selection-background-color, var(--xy-selection-background-color-default));border:var(--xy-selection-border, var(--xy-selection-border-default))}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible,.react-flow__selection:focus,.react-flow__selection:focus-visible{outline:none}.react-flow__controls-button:hover{background:var( --xy-controls-button-background-color-hover-props, var(--xy-controls-button-background-color-hover, var(--xy-controls-button-background-color-hover-default)) );color:var( --xy-controls-button-color-hover-props, var(--xy-controls-button-color-hover, var(--xy-controls-button-color-hover-default)) )}.react-flow__controls-button:disabled{pointer-events:none}.react-flow__controls-button:disabled svg{fill-opacity:.4}.react-flow__controls-button:last-child{border-bottom:none}.react-flow__controls.horizontal .react-flow__controls-button{border-bottom:none;border-right:1px solid var( --xy-controls-button-border-color-props, var(--xy-controls-button-border-color, var(--xy-controls-button-border-color-default)) )}.react-flow__controls.horizontal .react-flow__controls-button:last-child{border-right:none}.react-flow__resize-control{position:absolute}.react-flow__resize-control.left,.react-flow__resize-control.right{cursor:ew-resize}.react-flow__resize-control.top,.react-flow__resize-control.bottom{cursor:ns-resize}.react-flow__resize-control.top.left,.react-flow__resize-control.bottom.right{cursor:nwse-resize}.react-flow__resize-control.bottom.left,.react-flow__resize-control.top.right{cursor:nesw-resize}.react-flow__resize-control.handle{width:5px;height:5px;border:1px solid #fff;border-radius:1px;background-color:var(--xy-resize-background-color, var(--xy-resize-background-color-default));translate:-50% -50%}.react-flow__resize-control.handle.left{left:0;top:50%}.react-flow__resize-control.handle.right{left:100%;top:50%}.react-flow__resize-control.handle.top{left:50%;top:0}.react-flow__resize-control.handle.bottom{left:50%;top:100%}.react-flow__resize-control.handle.top.left,.react-flow__resize-control.handle.bottom.left{left:0}.react-flow__resize-control.handle.top.right,.react-flow__resize-control.handle.bottom.right{left:100%}.react-flow__resize-control.line{border-color:var(--xy-resize-background-color, var(--xy-resize-background-color-default));border-width:0;border-style:solid}.react-flow__resize-control.line.left,.react-flow__resize-control.line.right{width:1px;transform:translate(-50%);top:0;height:100%}.react-flow__resize-control.line.left{left:0;border-left-width:1px}.react-flow__resize-control.line.right{left:100%;border-right-width:1px}.react-flow__resize-control.line.top,.react-flow__resize-control.line.bottom{height:1px;transform:translateY(-50%);left:0;width:100%}.react-flow__resize-control.line.top{top:0;border-top-width:1px}.react-flow__resize-control.line.bottom{border-bottom-width:1px;top:100%}.react-flow__edge-textbg{fill:var(--xy-edge-label-background-color, var(--xy-edge-label-background-color-default))}.react-flow__edge-text{fill:var(--xy-edge-label-color, var(--xy-edge-label-color-default))}}@layer base{:root{--made-with-panda: "🐼"}*,:before,:after,::backdrop{--blur: ;--brightness: ;--contrast: ;--grayscale: ;--hue-rotate: ;--invert: ;--saturate: ;--sepia: ;--drop-shadow: ;--backdrop-blur: ;--backdrop-brightness: ;--backdrop-contrast: ;--backdrop-grayscale: ;--backdrop-hue-rotate: ;--backdrop-invert: ;--backdrop-opacity: ;--backdrop-saturate: ;--backdrop-sepia: ;--gradient-from-position: ;--gradient-to-position: ;--gradient-via-position: ;--scroll-snap-strictness: proximity;--border-spacing-x: 0;--border-spacing-y: 0;--translate-x: 0;--translate-y: 0;--rotate: 0;--rotate-x: 0;--rotate-y: 0;--skew-x: 0;--skew-y: 0;--scale-x: 1;--scale-y: 1}:where(:root,:host){--likec4-app-font-default: "IBM Plex Sans",'ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji"'}:where([data-likec4-text-size=xs]){--likec4-text-size: var(--font-sizes-likec4-xs)}:where([data-likec4-text-size=sm]){--likec4-text-size: var(--font-sizes-likec4-sm)}:where([data-likec4-text-size=md]){--likec4-text-size: var(--font-sizes-likec4-md)}:where([data-likec4-text-size=lg]){--likec4-text-size: var(--font-sizes-likec4-lg)}:where([data-likec4-text-size=xl]){--likec4-text-size: var(--font-sizes-likec4-xl)}:where([data-likec4-spacing=xs]){--likec4-spacing: var(--spacing-likec4-xs)}:where([data-likec4-spacing=sm]){--likec4-spacing: var(--spacing-likec4-sm)}:where([data-likec4-spacing=md]){--likec4-spacing: var(--spacing-likec4-md)}:where([data-likec4-spacing=lg]){--likec4-spacing: var(--spacing-likec4-lg)}:where([data-likec4-spacing=xl]){--likec4-spacing: var(--spacing-likec4-xl)}.likec4-shadow-root{--mantine-font-family: var(--likec4-app-font, var(--likec4-app-font-default));--mantine-font-family-headings: var(--likec4-app-font, var(--likec4-app-font-default));display:contents}.likec4-shadow-root dialog{color:var(--mantine-color-text)}.likec4-edge-label-container{position:absolute;top:var(--spacing-0);left:var(--spacing-0);width:auto;height:auto}.likec4-root:is([data-likec4-reduced-graphics][data-likec4-diagram-panning=true]) .likec4-edge-label-container{display:none}:where([data-likec4-zoom-small=true]) .likec4-edge-label-container{display:none}.likec4-root{padding:var(--spacing-0);margin:var(--spacing-0);border:0px solid transparent;background:var(--colors-transparent);overflow:hidden;position:relative;container-name:likec4-root;container-type:size;width:var(--sizes-100\\%);height:var(--sizes-100\\%)}.likec4-root .react-flow{--xy-background-color: var(--colors-likec4-background);--xy-background-pattern-color: var(--colors-likec4-background-pattern, var(--colors-likec4-background))}.likec4-root .react-flow:is(.bg-transparent){--xy-background-color: transparent !important;background:var(--colors-transparent)!important}.likec4-root .react-flow:is(.not-initialized){opacity:0}.likec4-root .react-flow .react-flow__pane{-webkit-user-select:none;user-select:none}.likec4-root .react-flow :where(.react-flow__nodes,.react-flow__edges,.react-flow__edgelabel-renderer){display:contents}.likec4-root .react-flow .react-flow__node.draggable:has(.likec4-compound-node){cursor:default}.likec4-root .react-flow .likec4-node-handle-center{visibility:hidden!important;transform:translate(-50%,-50%)!important;top:50%!important;left:50%!important;right:unset!important;bottom:unset!important;width:5px!important;height:5px!important}.likec4-root :where(.react-flow__edge,.likec4-edge-container,.likec4-edge-label-container){--xy-edge-stroke-width: 3;--xy-edge-stroke: var(--likec4-palette-relation-stroke);--xy-edge-stroke-selected: var(--likec4-palette-relation-stroke-selected);--xy-edge-label-color: var(--likec4-palette-relation-label);--xy-edge-label-background-color: var(--likec4-palette-relation-label-bg)}[data-mantine-color-scheme=dark] .likec4-root :where(.react-flow__edge,.likec4-edge-container,.likec4-edge-label-container){--xy-edge-label-background-color: color-mix(in oklab, var(--likec4-palette-relation-label-bg) 50%, transparent)}[data-mantine-color-scheme=light] .likec4-root :where(.react-flow__edge,.likec4-edge-container,.likec4-edge-label-container){--xy-edge-label-color: color-mix(in oklab, var(--likec4-palette-relation-label), #FFF 50%);--xy-edge-label-background-color: color-mix(in oklab, var(--likec4-palette-relation-label-bg) 65%, transparent)}.likec4-root :where(.react-flow__edge,.likec4-edge-container,.likec4-edge-label-container):is([data-likec4-hovered=true],[data-edge-active=true]){--xy-edge-stroke-width: 4;--xy-edge-stroke: var(--likec4-palette-relation-stroke-selected)}.likec4-root :where(.react-flow__node,.react-flow__edge):has([data-likec4-dimmed]){opacity:.25}.likec4-root .likec4-edge-label-container:is([data-likec4-dimmed]){opacity:.25}.likec4-root:is([data-likec4-reduced-graphics]) .hide-on-reduced-graphics{display:none}.likec4-root :where(.relationships-browser,.likec4-relationship-details) .react-flow__attribution{display:none}.likec4-root .mantine-ActionIcon-icon .tabler-icon{width:75%;height:75%}.likec4-root:not([data-likec4-reduced-graphics]) :where(.react-flow__node,.react-flow__edge):has([data-likec4-dimmed]){filter:grayscale(85%)}.likec4-root:not([data-likec4-reduced-graphics]) :where(.react-flow__node,.react-flow__edge):has([data-likec4-dimmed=true]){--transition-prop: opacity, filter;transition-property:opacity,filter;--transition-easing: cubic-bezier(.5, 0, .2, 1);transition-timing-function:cubic-bezier(.5,0,.2,1);--transition-duration: .4s;transition-duration:.4s}.likec4-root:not([data-likec4-reduced-graphics]) .likec4-edge-label-container:is([data-likec4-dimmed]){filter:grayscale(85%)}.likec4-root:not([data-likec4-reduced-graphics]) .likec4-edge-label-container:is([data-likec4-dimmed=true]){--transition-prop: opacity, filter;transition-property:opacity,filter;--transition-easing: cubic-bezier(.5, 0, .2, 1);transition-timing-function:cubic-bezier(.5,0,.2,1);--transition-duration: .4s;transition-duration:.4s}[data-mantine-color-scheme=dark] .likec4-root:not([data-likec4-reduced-graphics]) :where(.react-flow__edgelabel-renderer)>*{mix-blend-mode:screen}[data-mantine-color-scheme=light] .likec4-root:not([data-likec4-reduced-graphics]) :where(.react-flow__edgelabel-renderer)>*{mix-blend-mode:hard-light}[data-mantine-color-scheme=dark] .likec4-root:not([data-likec4-reduced-graphics]) :where(.react-flow__edges)>svg{mix-blend-mode:plus-lighter}[data-mantine-color-scheme=light] .likec4-root:not([data-likec4-reduced-graphics]) :where(.react-flow__edges)>svg{mix-blend-mode:multiply}[data-mantine-color-scheme=light] .likec4-root:not([data-likec4-reduced-graphics]):has(.react-flow__node-seq-parallel) :where(.react-flow__edges>svg){mix-blend-mode:color-burn}[data-mantine-color-scheme=dark] .likec4-root:not([data-likec4-reduced-graphics]) .react-flow__node-seq-parallel{mix-blend-mode:luminosity}[data-mantine-color-scheme=light] .likec4-root:not([data-likec4-reduced-graphics]) .react-flow__node-seq-parallel{mix-blend-mode:color-burn}.likec4-static-view .react-flow .react-flow__attribution{display:none}:where(:root,:host){--likec4-text-size: 1.2rem;--likec4-palette-fill: #3b82f6;--likec4-palette-stroke: #2563eb;--likec4-palette-hiContrast: #eff6ff;--likec4-palette-loContrast: #bfdbfe;--likec4-palette-relation-stroke: #8D8D8D;--likec4-palette-relation-label: #C9C9C9;--likec4-palette-relation-label-bg: #18191B;--mantine-scale: 1;--likec4-palette-outline: var(--likec4-palette-loContrast);--likec4-spacing: ;--text-fz: ;--likec4-icon-size: }@media print{.likec4-root .react-flow{--xy-background-color: transparent !important;background:var(--colors-transparent)!important}.likec4-root .react-flow__background{display:none}.likec4-root *{color-adjust:exact!important;print-color-adjust:exact!important}.likec4-root:not([data-likec4-reduced-graphics]) :where(.react-flow__edgelabel-renderer)>*{mix-blend-mode:normal!important}.likec4-root:not([data-likec4-reduced-graphics]) :where(.react-flow__edges)>svg{mix-blend-mode:normal!important}.likec4-root:not([data-likec4-reduced-graphics]) .react-flow__node-seq-parallel{mix-blend-mode:normal!important}}}@layer tokens{:where(:root,:host){--spacing-0: 0px;--spacing-1: 4px;--spacing-2: 8px;--spacing-3: 12px;--spacing-4: 16px;--spacing-5: 20px;--spacing-6: 24px;--spacing-7: 28px;--spacing-8: 32px;--spacing-9: 36px;--spacing-10: 40px;--spacing-likec4-xs: 8px;--spacing-likec4-sm: 10px;--spacing-likec4-md: 16px;--spacing-likec4-lg: 24px;--spacing-likec4-xl: 32px;--spacing-0\\.5: 2px;--spacing-1\\.5: 6px;--spacing-2\\.5: 10px;--spacing-3\\.5: 14px;--spacing-4\\.5: 18px;--spacing-xxs: calc(.5rem * var(--mantine-scale));--spacing-xs: calc(.625rem * var(--mantine-scale));--spacing-sm: calc(.75rem * var(--mantine-scale));--spacing-md: calc(1rem * var(--mantine-scale));--spacing-lg: calc(1.25rem * var(--mantine-scale));--spacing-xl: calc(2rem * var(--mantine-scale));--font-sizes-xxs: .625rem;--font-sizes-xs: calc(.75rem * var(--mantine-scale));--font-sizes-sm: calc(.875rem * var(--mantine-scale));--font-sizes-md: calc(1rem * var(--mantine-scale));--font-sizes-lg: calc(1.125rem * var(--mantine-scale));--font-sizes-xl: calc(1.25rem * var(--mantine-scale));--font-sizes-likec4-xs: .833rem;--font-sizes-likec4-sm: 1rem;--font-sizes-likec4-md: 1.2rem;--font-sizes-likec4-lg: 1.44rem;--font-sizes-likec4-xl: 1.73rem;--line-heights-1: 1;--line-heights-xs: 1.4;--line-heights-sm: 1.45;--line-heights-md: 1.55;--line-heights-lg: 1.6;--line-heights-xl: 1.65;--colors-mantine-colors-primary: var(--mantine-primary-color-6);--colors-mantine-colors-primary-filled: var(--mantine-primary-color-filled);--colors-mantine-colors-primary-filled-hover: var(--mantine-primary-color-filled-hover);--colors-mantine-colors-primary-light: var(--mantine-primary-color-light);--colors-mantine-colors-primary-light-hover: var(--mantine-primary-color-light-hover);--colors-mantine-colors-primary-light-color: var(--mantine-primary-color-light-color);--colors-mantine-colors-primary-outline: var(--mantine-primary-color-outline);--colors-mantine-colors-primary-outline-hover: var(--mantine-primary-color-outline-hover);--colors-mantine-colors-primary\\[0\\]: var(--mantine-primary-color-0);--colors-mantine-colors-primary\\[1\\]: var(--mantine-primary-color-1);--colors-mantine-colors-primary\\[2\\]: var(--mantine-primary-color-2);--colors-mantine-colors-primary\\[3\\]: var(--mantine-primary-color-3);--colors-mantine-colors-primary\\[4\\]: var(--mantine-primary-color-4);--colors-mantine-colors-primary\\[5\\]: var(--mantine-primary-color-5);--colors-mantine-colors-primary\\[6\\]: var(--mantine-primary-color-6);--colors-mantine-colors-primary\\[7\\]: var(--mantine-primary-color-7);--colors-mantine-colors-primary\\[8\\]: var(--mantine-primary-color-8);--colors-mantine-colors-primary\\[9\\]: var(--mantine-primary-color-9);--colors-mantine-colors-white: var(--mantine-color-white);--colors-mantine-colors-text: var(--mantine-color-text);--colors-mantine-colors-body: var(--mantine-color-body);--colors-mantine-colors-dimmed: var(--mantine-color-dimmed);--colors-mantine-colors-default-border: var(--mantine-color-default-border);--colors-mantine-colors-default-color: var(--mantine-color-default-color);--colors-mantine-colors-default-hover: var(--mantine-color-default-hover);--colors-mantine-colors-default: var(--mantine-color-default);--colors-mantine-colors-error: var(--mantine-color-error);--colors-mantine-colors-placeholder: var(--mantine-color-placeholder);--colors-mantine-colors-gray: var(--mantine-color-gray-6);--colors-mantine-colors-gray-filled: var(--mantine-color-gray-filled);--colors-mantine-colors-gray-filled-hover: var(--mantine-color-gray-filled-hover);--colors-mantine-colors-gray-light: var(--mantine-color-gray-light);--colors-mantine-colors-gray-light-hover: var(--mantine-color-gray-light-hover);--colors-mantine-colors-gray-light-color: var(--mantine-color-gray-light-color);--colors-mantine-colors-gray-outline: var(--mantine-color-gray-outline);--colors-mantine-colors-gray-outline-hover: var(--mantine-color-gray-outline-hover);--colors-mantine-colors-gray\\[0\\]: var(--mantine-color-gray-0);--colors-mantine-colors-gray\\[1\\]: var(--mantine-color-gray-1);--colors-mantine-colors-gray\\[2\\]: var(--mantine-color-gray-2);--colors-mantine-colors-gray\\[3\\]: var(--mantine-color-gray-3);--colors-mantine-colors-gray\\[4\\]: var(--mantine-color-gray-4);--colors-mantine-colors-gray\\[5\\]: var(--mantine-color-gray-5);--colors-mantine-colors-gray\\[6\\]: var(--mantine-color-gray-6);--colors-mantine-colors-gray\\[7\\]: var(--mantine-color-gray-7);--colors-mantine-colors-gray\\[8\\]: var(--mantine-color-gray-8);--colors-mantine-colors-gray\\[9\\]: var(--mantine-color-gray-9);--colors-mantine-colors-dark: var(--mantine-color-dark-6);--colors-mantine-colors-dark-filled: var(--mantine-color-dark-filled);--colors-mantine-colors-dark-filled-hover: var(--mantine-color-dark-filled-hover);--colors-mantine-colors-dark-light: var(--mantine-color-dark-light);--colors-mantine-colors-dark-light-hover: var(--mantine-color-dark-light-hover);--colors-mantine-colors-dark-light-color: var(--mantine-color-dark-light-color);--colors-mantine-colors-dark-outline: var(--mantine-color-dark-outline);--colors-mantine-colors-dark-outline-hover: var(--mantine-color-dark-outline-hover);--colors-mantine-colors-dark\\[0\\]: var(--mantine-color-dark-0);--colors-mantine-colors-dark\\[1\\]: var(--mantine-color-dark-1);--colors-mantine-colors-dark\\[2\\]: var(--mantine-color-dark-2);--colors-mantine-colors-dark\\[3\\]: var(--mantine-color-dark-3);--colors-mantine-colors-dark\\[4\\]: var(--mantine-color-dark-4);--colors-mantine-colors-dark\\[5\\]: var(--mantine-color-dark-5);--colors-mantine-colors-dark\\[6\\]: var(--mantine-color-dark-6);--colors-mantine-colors-dark\\[7\\]: var(--mantine-color-dark-7);--colors-mantine-colors-dark\\[8\\]: var(--mantine-color-dark-8);--colors-mantine-colors-dark\\[9\\]: var(--mantine-color-dark-9);--colors-mantine-colors-orange: var(--mantine-color-orange-6);--colors-mantine-colors-orange-filled: var(--mantine-color-orange-filled);--colors-mantine-colors-orange-filled-hover: var(--mantine-color-orange-filled-hover);--colors-mantine-colors-orange-light: var(--mantine-color-orange-light);--colors-mantine-colors-orange-light-hover: var(--mantine-color-orange-light-hover);--colors-mantine-colors-orange-light-color: var(--mantine-color-orange-light-color);--colors-mantine-colors-orange-outline: var(--mantine-color-orange-outline);--colors-mantine-colors-orange-outline-hover: var(--mantine-color-orange-outline-hover);--colors-mantine-colors-orange\\[0\\]: var(--mantine-color-orange-0);--colors-mantine-colors-orange\\[1\\]: var(--mantine-color-orange-1);--colors-mantine-colors-orange\\[2\\]: var(--mantine-color-orange-2);--colors-mantine-colors-orange\\[3\\]: var(--mantine-color-orange-3);--colors-mantine-colors-orange\\[4\\]: var(--mantine-color-orange-4);--colors-mantine-colors-orange\\[5\\]: var(--mantine-color-orange-5);--colors-mantine-colors-orange\\[6\\]: var(--mantine-color-orange-6);--colors-mantine-colors-orange\\[7\\]: var(--mantine-color-orange-7);--colors-mantine-colors-orange\\[8\\]: var(--mantine-color-orange-8);--colors-mantine-colors-orange\\[9\\]: var(--mantine-color-orange-9);--colors-mantine-colors-teal: var(--mantine-color-teal-6);--colors-mantine-colors-teal-filled: var(--mantine-color-teal-filled);--colors-mantine-colors-teal-filled-hover: var(--mantine-color-teal-filled-hover);--colors-mantine-colors-teal-light: var(--mantine-color-teal-light);--colors-mantine-colors-teal-light-hover: var(--mantine-color-teal-light-hover);--colors-mantine-colors-teal-light-color: var(--mantine-color-teal-light-color);--colors-mantine-colors-teal-outline: var(--mantine-color-teal-outline);--colors-mantine-colors-teal-outline-hover: var(--mantine-color-teal-outline-hover);--colors-mantine-colors-teal\\[0\\]: var(--mantine-color-teal-0);--colors-mantine-colors-teal\\[1\\]: var(--mantine-color-teal-1);--colors-mantine-colors-teal\\[2\\]: var(--mantine-color-teal-2);--colors-mantine-colors-teal\\[3\\]: var(--mantine-color-teal-3);--colors-mantine-colors-teal\\[4\\]: var(--mantine-color-teal-4);--colors-mantine-colors-teal\\[5\\]: var(--mantine-color-teal-5);--colors-mantine-colors-teal\\[6\\]: var(--mantine-color-teal-6);--colors-mantine-colors-teal\\[7\\]: var(--mantine-color-teal-7);--colors-mantine-colors-teal\\[8\\]: var(--mantine-color-teal-8);--colors-mantine-colors-teal\\[9\\]: var(--mantine-color-teal-9);--colors-mantine-colors-red: var(--mantine-color-red-6);--colors-mantine-colors-red-filled: var(--mantine-color-red-filled);--colors-mantine-colors-red-filled-hover: var(--mantine-color-red-filled-hover);--colors-mantine-colors-red-light: var(--mantine-color-red-light);--colors-mantine-colors-red-light-hover: var(--mantine-color-red-light-hover);--colors-mantine-colors-red-light-color: var(--mantine-color-red-light-color);--colors-mantine-colors-red-outline: var(--mantine-color-red-outline);--colors-mantine-colors-red-outline-hover: var(--mantine-color-red-outline-hover);--colors-mantine-colors-red\\[0\\]: var(--mantine-color-red-0);--colors-mantine-colors-red\\[1\\]: var(--mantine-color-red-1);--colors-mantine-colors-red\\[2\\]: var(--mantine-color-red-2);--colors-mantine-colors-red\\[3\\]: var(--mantine-color-red-3);--colors-mantine-colors-red\\[4\\]: var(--mantine-color-red-4);--colors-mantine-colors-red\\[5\\]: var(--mantine-color-red-5);--colors-mantine-colors-red\\[6\\]: var(--mantine-color-red-6);--colors-mantine-colors-red\\[7\\]: var(--mantine-color-red-7);--colors-mantine-colors-red\\[8\\]: var(--mantine-color-red-8);--colors-mantine-colors-red\\[9\\]: var(--mantine-color-red-9);--colors-mantine-colors-green: var(--mantine-color-green-6);--colors-mantine-colors-green-filled: var(--mantine-color-green-filled);--colors-mantine-colors-green-filled-hover: var(--mantine-color-green-filled-hover);--colors-mantine-colors-green-light: var(--mantine-color-green-light);--colors-mantine-colors-green-light-hover: var(--mantine-color-green-light-hover);--colors-mantine-colors-green-light-color: var(--mantine-color-green-light-color);--colors-mantine-colors-green-outline: var(--mantine-color-green-outline);--colors-mantine-colors-green-outline-hover: var(--mantine-color-green-outline-hover);--colors-mantine-colors-green\\[0\\]: var(--mantine-color-green-0);--colors-mantine-colors-green\\[1\\]: var(--mantine-color-green-1);--colors-mantine-colors-green\\[2\\]: var(--mantine-color-green-2);--colors-mantine-colors-green\\[3\\]: var(--mantine-color-green-3);--colors-mantine-colors-green\\[4\\]: var(--mantine-color-green-4);--colors-mantine-colors-green\\[5\\]: var(--mantine-color-green-5);--colors-mantine-colors-green\\[6\\]: var(--mantine-color-green-6);--colors-mantine-colors-green\\[7\\]: var(--mantine-color-green-7);--colors-mantine-colors-green\\[8\\]: var(--mantine-color-green-8);--colors-mantine-colors-green\\[9\\]: var(--mantine-color-green-9);--colors-mantine-colors-yellow: var(--mantine-color-yellow-6);--colors-mantine-colors-yellow-filled: var(--mantine-color-yellow-filled);--colors-mantine-colors-yellow-filled-hover: var(--mantine-color-yellow-filled-hover);--colors-mantine-colors-yellow-light: var(--mantine-color-yellow-light);--colors-mantine-colors-yellow-light-hover: var(--mantine-color-yellow-light-hover);--colors-mantine-colors-yellow-light-color: var(--mantine-color-yellow-light-color);--colors-mantine-colors-yellow-outline: var(--mantine-color-yellow-outline);--colors-mantine-colors-yellow-outline-hover: var(--mantine-color-yellow-outline-hover);--colors-mantine-colors-yellow\\[0\\]: var(--mantine-color-yellow-0);--colors-mantine-colors-yellow\\[1\\]: var(--mantine-color-yellow-1);--colors-mantine-colors-yellow\\[2\\]: var(--mantine-color-yellow-2);--colors-mantine-colors-yellow\\[3\\]: var(--mantine-color-yellow-3);--colors-mantine-colors-yellow\\[4\\]: var(--mantine-color-yellow-4);--colors-mantine-colors-yellow\\[5\\]: var(--mantine-color-yellow-5);--colors-mantine-colors-yellow\\[6\\]: var(--mantine-color-yellow-6);--colors-mantine-colors-yellow\\[7\\]: var(--mantine-color-yellow-7);--colors-mantine-colors-yellow\\[8\\]: var(--mantine-color-yellow-8);--colors-mantine-colors-yellow\\[9\\]: var(--mantine-color-yellow-9);--colors-transparent: transparent;--colors-none: none;--sizes-100\\%: 100%;--sizes-full: 100%;--sizes-breakpoint-xs: 36em;--sizes-breakpoint-sm: 48em;--sizes-breakpoint-md: 62em;--sizes-breakpoint-lg: 75em;--sizes-breakpoint-xl: 88em;--borders-none: none;--borders-transparent: 0px solid transparent;--borders-default: 1px solid var(--mantine-color-default-border);--radii-0: 0px;--radii-xs: .125rem;--radii-sm: .25rem;--radii-md: .5rem;--radii-lg: 1rem;--radii-xl: 2rem;--font-weights-normal: 400;--font-weights-medium: 500;--fonts-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--fonts-body: var(--likec4-app-font, var(--likec4-app-font-default));--fonts-likec4: var(--likec4-app-font, var(--likec4-app-font-default));--fonts-likec4-element: var(--likec4-element-font, var(--fonts-likec4));--fonts-likec4-compound: var(--likec4-compound-font, var(--fonts-likec4));--fonts-likec4-relation: var(--likec4-relation-font, var(--fonts-likec4));--easings-default: cubic-bezier(.4, 0, .2, 1);--easings-in: cubic-bezier(.4, 0, 1, 1);--easings-out: cubic-bezier(0, 0, .4, 1);--easings-in-out: cubic-bezier(.5, 0, .2, 1);--durations-fastest: 50ms;--durations-faster: .1s;--durations-fast: .13s;--durations-normal: .17s;--durations-slow: .3s;--durations-slower: .4s;--durations-slowest: .5s;--shadows-none: none;--shadows-xs: 0 1px 3px rgb(0 0 0/5%), 0 1px 2px rgb(0 0 0/10%);--shadows-sm: 0 1px 3px rgb(0 0 0/5%), 0 10px 15px -5px rgb(0 0 0/5%), 0 7px 7px -5px rgb(0 0 0/4%);--shadows-md: 0 1px 3px rgb(0 0 0/5%), 0 20px 25px -5px rgb(0 0 0/5%), 0 10px 10px -5px rgb(0 0 0/4%);--shadows-lg: 0 1px 3px rgb(0 0 0/5%), 0 28px 23px -7px rgb(0 0 0/5%), 0 12px 12px -7px rgb(0 0 0/4%);--shadows-xl: 0 1px 3px rgb(0 0 0/5%), 0 36px 28px -7px rgb(0 0 0/5%), 0 17px 17px -7px rgb(0 0 0/4%);--z-index-0: 0;--z-index-1: 1;--z-index--1: -1;--z-index-likec4-panel: 100;--z-index-likec4-dropdown: 200;--breakpoints-xs: 36em;--breakpoints-sm: 48em;--breakpoints-md: 62em;--breakpoints-lg: 75em;--breakpoints-xl: 88em;--colors-amber-1: var(--colors-amber-light-1);--colors-amber-2: var(--colors-amber-light-2);--colors-amber-3: var(--colors-amber-light-3);--colors-amber-4: var(--colors-amber-light-4);--colors-amber-5: var(--colors-amber-light-5);--colors-amber-6: var(--colors-amber-light-6);--colors-amber-7: var(--colors-amber-light-7);--colors-amber-8: var(--colors-amber-light-8);--colors-amber-9: var(--colors-amber-light-9);--colors-amber-10: var(--colors-amber-light-10);--colors-amber-11: var(--colors-amber-light-11);--colors-amber-12: var(--colors-amber-light-12);--colors-amber-light-1: #fefdfb;--colors-amber-light-2: #fefbe9;--colors-amber-light-3: #fff7c2;--colors-amber-light-4: #ffee9c;--colors-amber-light-5: #fbe577;--colors-amber-light-6: #f3d673;--colors-amber-light-7: #e9c162;--colors-amber-light-8: #e2a336;--colors-amber-light-9: #ffc53d;--colors-amber-light-10: #ffba18;--colors-amber-light-11: #ab6400;--colors-amber-light-12: #4f3422;--colors-amber-light-a-1: #c0800004;--colors-amber-light-a-2: #f4d10016;--colors-amber-light-a-3: #ffde003d;--colors-amber-light-a-4: #ffd40063;--colors-amber-light-a-5: #f8cf0088;--colors-amber-light-a-6: #eab5008c;--colors-amber-light-a-7: #dc9b009d;--colors-amber-light-a-8: #da8a00c9;--colors-amber-light-a-9: #ffb300c2;--colors-amber-light-a-10: #ffb300e7;--colors-amber-light-a-11: #ab6400;--colors-amber-light-a-12: #341500dd;--colors-amber-light-p3-1: color(display-p3 .995 .992 .985);--colors-amber-light-p3-2: color(display-p3 .994 .986 .921);--colors-amber-light-p3-3: color(display-p3 .994 .969 .782);--colors-amber-light-p3-4: color(display-p3 .989 .937 .65);--colors-amber-light-p3-5: color(display-p3 .97 .902 .527);--colors-amber-light-p3-6: color(display-p3 .936 .844 .506);--colors-amber-light-p3-7: color(display-p3 .89 .762 .443);--colors-amber-light-p3-8: color(display-p3 .85 .65 .3);--colors-amber-light-p3-9: color(display-p3 1 .77 .26);--colors-amber-light-p3-10: color(display-p3 .959 .741 .274);--colors-amber-light-p3-11: color(display-p3 .64 .4 0);--colors-amber-light-p3-12: color(display-p3 .294 .208 .145);--colors-amber-light-p3-a-1: color(display-p3 .757 .514 .024 / .016);--colors-amber-light-p3-a-2: color(display-p3 .902 .804 .008 / .079);--colors-amber-light-p3-a-3: color(display-p3 .965 .859 .004 / .22);--colors-amber-light-p3-a-4: color(display-p3 .969 .82 .004 / .35);--colors-amber-light-p3-a-5: color(display-p3 .933 .796 .004 / .475);--colors-amber-light-p3-a-6: color(display-p3 .875 .682 .004 / .495);--colors-amber-light-p3-a-7: color(display-p3 .804 .573 0 / .557);--colors-amber-light-p3-a-8: color(display-p3 .788 .502 0 / .699);--colors-amber-light-p3-a-9: color(display-p3 1 .686 0 / .742);--colors-amber-light-p3-a-10: color(display-p3 .945 .643 0 / .726);--colors-amber-light-p3-a-11: color(display-p3 .64 .4 0);--colors-amber-light-p3-a-12: color(display-p3 .294 .208 .145);--colors-amber-dark-1: #16120c;--colors-amber-dark-2: #1d180f;--colors-amber-dark-3: #302008;--colors-amber-dark-4: #3f2700;--colors-amber-dark-5: #4d3000;--colors-amber-dark-6: #5c3d05;--colors-amber-dark-7: #714f19;--colors-amber-dark-8: #8f6424;--colors-amber-dark-9: #ffc53d;--colors-amber-dark-10: #ffd60a;--colors-amber-dark-11: #ffca16;--colors-amber-dark-12: #ffe7b3;--colors-amber-dark-a-1: #e63c0006;--colors-amber-dark-a-2: #fd9b000d;--colors-amber-dark-a-3: #fa820022;--colors-amber-dark-a-4: #fc820032;--colors-amber-dark-a-5: #fd8b0041;--colors-amber-dark-a-6: #fd9b0051;--colors-amber-dark-a-7: #ffab2567;--colors-amber-dark-a-8: #ffae3587;--colors-amber-dark-a-9: #ffc53d;--colors-amber-dark-a-10: #ffd60a;--colors-amber-dark-a-11: #ffca16;--colors-amber-dark-a-12: #ffe7b3;--colors-amber-dark-p3-1: color(display-p3 .082 .07 .05);--colors-amber-dark-p3-2: color(display-p3 .111 .094 .064);--colors-amber-dark-p3-3: color(display-p3 .178 .128 .049);--colors-amber-dark-p3-4: color(display-p3 .239 .156 0);--colors-amber-dark-p3-5: color(display-p3 .29 .193 0);--colors-amber-dark-p3-6: color(display-p3 .344 .245 .076);--colors-amber-dark-p3-7: color(display-p3 .422 .314 .141);--colors-amber-dark-p3-8: color(display-p3 .535 .399 .189);--colors-amber-dark-p3-9: color(display-p3 1 .77 .26);--colors-amber-dark-p3-10: color(display-p3 1 .87 .15);--colors-amber-dark-p3-11: color(display-p3 1 .8 .29);--colors-amber-dark-p3-12: color(display-p3 .984 .909 .726);--colors-amber-dark-p3-a-1: color(display-p3 .992 .298 0 / .017);--colors-amber-dark-p3-a-2: color(display-p3 .988 .651 0 / .047);--colors-amber-dark-p3-a-3: color(display-p3 1 .6 0 / .118);--colors-amber-dark-p3-a-4: color(display-p3 1 .557 0 / .185);--colors-amber-dark-p3-a-5: color(display-p3 1 .592 0 / .24);--colors-amber-dark-p3-a-6: color(display-p3 1 .659 .094 / .299);--colors-amber-dark-p3-a-7: color(display-p3 1 .714 .263 / .383);--colors-amber-dark-p3-a-8: color(display-p3 .996 .729 .306 / .5);--colors-amber-dark-p3-a-9: color(display-p3 1 .769 .259);--colors-amber-dark-p3-a-10: color(display-p3 1 .871 .149);--colors-amber-dark-p3-a-11: color(display-p3 1 .8 .29);--colors-amber-dark-p3-a-12: color(display-p3 .984 .909 .726);--colors-amber-a-1: var(--colors-amber-light-a-1);--colors-amber-a-2: var(--colors-amber-light-a-2);--colors-amber-a-3: var(--colors-amber-light-a-3);--colors-amber-a-4: var(--colors-amber-light-a-4);--colors-amber-a-5: var(--colors-amber-light-a-5);--colors-amber-a-6: var(--colors-amber-light-a-6);--colors-amber-a-7: var(--colors-amber-light-a-7);--colors-amber-a-8: var(--colors-amber-light-a-8);--colors-amber-a-9: var(--colors-amber-light-a-9);--colors-amber-a-10: var(--colors-amber-light-a-10);--colors-amber-a-11: var(--colors-amber-light-a-11);--colors-amber-a-12: var(--colors-amber-light-a-12);--colors-amber-p3-1: var(--colors-amber-light-p3-1);--colors-amber-p3-2: var(--colors-amber-light-p3-2);--colors-amber-p3-3: var(--colors-amber-light-p3-3);--colors-amber-p3-4: var(--colors-amber-light-p3-4);--colors-amber-p3-5: var(--colors-amber-light-p3-5);--colors-amber-p3-6: var(--colors-amber-light-p3-6);--colors-amber-p3-7: var(--colors-amber-light-p3-7);--colors-amber-p3-8: var(--colors-amber-light-p3-8);--colors-amber-p3-9: var(--colors-amber-light-p3-9);--colors-amber-p3-10: var(--colors-amber-light-p3-10);--colors-amber-p3-11: var(--colors-amber-light-p3-11);--colors-amber-p3-12: var(--colors-amber-light-p3-12);--colors-amber-p3-a-1: var(--colors-amber-light-p3-a-1);--colors-amber-p3-a-2: var(--colors-amber-light-p3-a-2);--colors-amber-p3-a-3: var(--colors-amber-light-p3-a-3);--colors-amber-p3-a-4: var(--colors-amber-light-p3-a-4);--colors-amber-p3-a-5: var(--colors-amber-light-p3-a-5);--colors-amber-p3-a-6: var(--colors-amber-light-p3-a-6);--colors-amber-p3-a-7: var(--colors-amber-light-p3-a-7);--colors-amber-p3-a-8: var(--colors-amber-light-p3-a-8);--colors-amber-p3-a-9: var(--colors-amber-light-p3-a-9);--colors-amber-p3-a-10: var(--colors-amber-light-p3-a-10);--colors-amber-p3-a-11: var(--colors-amber-light-p3-a-11);--colors-amber-p3-a-12: var(--colors-amber-light-p3-a-12);--colors-blue-1: var(--colors-blue-light-1);--colors-blue-2: var(--colors-blue-light-2);--colors-blue-3: var(--colors-blue-light-3);--colors-blue-4: var(--colors-blue-light-4);--colors-blue-5: var(--colors-blue-light-5);--colors-blue-6: var(--colors-blue-light-6);--colors-blue-7: var(--colors-blue-light-7);--colors-blue-8: var(--colors-blue-light-8);--colors-blue-9: var(--colors-blue-light-9);--colors-blue-10: var(--colors-blue-light-10);--colors-blue-11: var(--colors-blue-light-11);--colors-blue-12: var(--colors-blue-light-12);--colors-blue-light-1: #fbfdff;--colors-blue-light-2: #f4faff;--colors-blue-light-3: #e6f4fe;--colors-blue-light-4: #d5efff;--colors-blue-light-5: #c2e5ff;--colors-blue-light-6: #acd8fc;--colors-blue-light-7: #8ec8f6;--colors-blue-light-8: #5eb1ef;--colors-blue-light-9: #0090ff;--colors-blue-light-10: #0588f0;--colors-blue-light-11: #0d74ce;--colors-blue-light-12: #113264;--colors-blue-light-a-1: #0080ff04;--colors-blue-light-a-2: #008cff0b;--colors-blue-light-a-3: #008ff519;--colors-blue-light-a-4: #009eff2a;--colors-blue-light-a-5: #0093ff3d;--colors-blue-light-a-6: #0088f653;--colors-blue-light-a-7: #0083eb71;--colors-blue-light-a-8: #0084e6a1;--colors-blue-light-a-9: #0090ff;--colors-blue-light-a-10: #0086f0fa;--colors-blue-light-a-11: #006dcbf2;--colors-blue-light-a-12: #002359ee;--colors-blue-light-p3-1: color(display-p3 .986 .992 .999);--colors-blue-light-p3-2: color(display-p3 .96 .979 .998);--colors-blue-light-p3-3: color(display-p3 .912 .956 .991);--colors-blue-light-p3-4: color(display-p3 .853 .932 1);--colors-blue-light-p3-5: color(display-p3 .788 .894 .998);--colors-blue-light-p3-6: color(display-p3 .709 .843 .976);--colors-blue-light-p3-7: color(display-p3 .606 .777 .947);--colors-blue-light-p3-8: color(display-p3 .451 .688 .917);--colors-blue-light-p3-9: color(display-p3 .247 .556 .969);--colors-blue-light-p3-10: color(display-p3 .234 .523 .912);--colors-blue-light-p3-11: color(display-p3 .15 .44 .84);--colors-blue-light-p3-12: color(display-p3 .102 .193 .379);--colors-blue-light-p3-a-1: color(display-p3 .024 .514 1 / .016);--colors-blue-light-p3-a-2: color(display-p3 .024 .514 .906 / .04);--colors-blue-light-p3-a-3: color(display-p3 .012 .506 .914 / .087);--colors-blue-light-p3-a-4: color(display-p3 .008 .545 1 / .146);--colors-blue-light-p3-a-5: color(display-p3 .004 .502 .984 / .212);--colors-blue-light-p3-a-6: color(display-p3 .004 .463 .922 / .291);--colors-blue-light-p3-a-7: color(display-p3 .004 .431 .863 / .393);--colors-blue-light-p3-a-8: color(display-p3 0 .427 .851 / .55);--colors-blue-light-p3-a-9: color(display-p3 0 .412 .961 / .753);--colors-blue-light-p3-a-10: color(display-p3 0 .376 .886 / .765);--colors-blue-light-p3-a-11: color(display-p3 .15 .44 .84);--colors-blue-light-p3-a-12: color(display-p3 .102 .193 .379);--colors-blue-dark-1: #0d1520;--colors-blue-dark-2: #111927;--colors-blue-dark-3: #0d2847;--colors-blue-dark-4: #003362;--colors-blue-dark-5: #004074;--colors-blue-dark-6: #104d87;--colors-blue-dark-7: #205d9e;--colors-blue-dark-8: #2870bd;--colors-blue-dark-9: #0090ff;--colors-blue-dark-10: #3b9eff;--colors-blue-dark-11: #70b8ff;--colors-blue-dark-12: #c2e6ff;--colors-blue-dark-a-1: #004df211;--colors-blue-dark-a-2: #1166fb18;--colors-blue-dark-a-3: #0077ff3a;--colors-blue-dark-a-4: #0075ff57;--colors-blue-dark-a-5: #0081fd6b;--colors-blue-dark-a-6: #0f89fd7f;--colors-blue-dark-a-7: #2a91fe98;--colors-blue-dark-a-8: #3094feb9;--colors-blue-dark-a-9: #0090ff;--colors-blue-dark-a-10: #3b9eff;--colors-blue-dark-a-11: #70b8ff;--colors-blue-dark-a-12: #c2e6ff;--colors-blue-dark-p3-1: color(display-p3 .057 .081 .122);--colors-blue-dark-p3-2: color(display-p3 .072 .098 .147);--colors-blue-dark-p3-3: color(display-p3 .078 .154 .27);--colors-blue-dark-p3-4: color(display-p3 .033 .197 .37);--colors-blue-dark-p3-5: color(display-p3 .08 .245 .441);--colors-blue-dark-p3-6: color(display-p3 .14 .298 .511);--colors-blue-dark-p3-7: color(display-p3 .195 .361 .6);--colors-blue-dark-p3-8: color(display-p3 .239 .434 .72);--colors-blue-dark-p3-9: color(display-p3 .247 .556 .969);--colors-blue-dark-p3-10: color(display-p3 .344 .612 .973);--colors-blue-dark-p3-11: color(display-p3 .49 .72 1);--colors-blue-dark-p3-12: color(display-p3 .788 .898 .99);--colors-blue-dark-p3-a-1: color(display-p3 0 .333 1 / .059);--colors-blue-dark-p3-a-2: color(display-p3 .114 .435 .988 / .085);--colors-blue-dark-p3-a-3: color(display-p3 .122 .463 1 / .219);--colors-blue-dark-p3-a-4: color(display-p3 0 .467 1 / .324);--colors-blue-dark-p3-a-5: color(display-p3 .098 .51 1 / .4);--colors-blue-dark-p3-a-6: color(display-p3 .224 .557 1 / .475);--colors-blue-dark-p3-a-7: color(display-p3 .294 .584 1 / .572);--colors-blue-dark-p3-a-8: color(display-p3 .314 .592 1 / .702);--colors-blue-dark-p3-a-9: color(display-p3 .251 .573 .996 / .967);--colors-blue-dark-p3-a-10: color(display-p3 .357 .631 1 / .971);--colors-blue-dark-p3-a-11: color(display-p3 .49 .72 1);--colors-blue-dark-p3-a-12: color(display-p3 .788 .898 .99);--colors-blue-a-1: var(--colors-blue-light-a-1);--colors-blue-a-2: var(--colors-blue-light-a-2);--colors-blue-a-3: var(--colors-blue-light-a-3);--colors-blue-a-4: var(--colors-blue-light-a-4);--colors-blue-a-5: var(--colors-blue-light-a-5);--colors-blue-a-6: var(--colors-blue-light-a-6);--colors-blue-a-7: var(--colors-blue-light-a-7);--colors-blue-a-8: var(--colors-blue-light-a-8);--colors-blue-a-9: var(--colors-blue-light-a-9);--colors-blue-a-10: var(--colors-blue-light-a-10);--colors-blue-a-11: var(--colors-blue-light-a-11);--colors-blue-a-12: var(--colors-blue-light-a-12);--colors-blue-p3-1: var(--colors-blue-light-p3-1);--colors-blue-p3-2: var(--colors-blue-light-p3-2);--colors-blue-p3-3: var(--colors-blue-light-p3-3);--colors-blue-p3-4: var(--colors-blue-light-p3-4);--colors-blue-p3-5: var(--colors-blue-light-p3-5);--colors-blue-p3-6: var(--colors-blue-light-p3-6);--colors-blue-p3-7: var(--colors-blue-light-p3-7);--colors-blue-p3-8: var(--colors-blue-light-p3-8);--colors-blue-p3-9: var(--colors-blue-light-p3-9);--colors-blue-p3-10: var(--colors-blue-light-p3-10);--colors-blue-p3-11: var(--colors-blue-light-p3-11);--colors-blue-p3-12: var(--colors-blue-light-p3-12);--colors-blue-p3-a-1: var(--colors-blue-light-p3-a-1);--colors-blue-p3-a-2: var(--colors-blue-light-p3-a-2);--colors-blue-p3-a-3: var(--colors-blue-light-p3-a-3);--colors-blue-p3-a-4: var(--colors-blue-light-p3-a-4);--colors-blue-p3-a-5: var(--colors-blue-light-p3-a-5);--colors-blue-p3-a-6: var(--colors-blue-light-p3-a-6);--colors-blue-p3-a-7: var(--colors-blue-light-p3-a-7);--colors-blue-p3-a-8: var(--colors-blue-light-p3-a-8);--colors-blue-p3-a-9: var(--colors-blue-light-p3-a-9);--colors-blue-p3-a-10: var(--colors-blue-light-p3-a-10);--colors-blue-p3-a-11: var(--colors-blue-light-p3-a-11);--colors-blue-p3-a-12: var(--colors-blue-light-p3-a-12);--colors-crimson-1: var(--colors-crimson-light-1);--colors-crimson-2: var(--colors-crimson-light-2);--colors-crimson-3: var(--colors-crimson-light-3);--colors-crimson-4: var(--colors-crimson-light-4);--colors-crimson-5: var(--colors-crimson-light-5);--colors-crimson-6: var(--colors-crimson-light-6);--colors-crimson-7: var(--colors-crimson-light-7);--colors-crimson-8: var(--colors-crimson-light-8);--colors-crimson-9: var(--colors-crimson-light-9);--colors-crimson-10: var(--colors-crimson-light-10);--colors-crimson-11: var(--colors-crimson-light-11);--colors-crimson-12: var(--colors-crimson-light-12);--colors-crimson-light-1: #fffcfd;--colors-crimson-light-2: #fef7f9;--colors-crimson-light-3: #ffe9f0;--colors-crimson-light-4: #fedce7;--colors-crimson-light-5: #facedd;--colors-crimson-light-6: #f3bed1;--colors-crimson-light-7: #eaacc3;--colors-crimson-light-8: #e093b2;--colors-crimson-light-9: #e93d82;--colors-crimson-light-10: #df3478;--colors-crimson-light-11: #cb1d63;--colors-crimson-light-12: #621639;--colors-crimson-light-a-1: #ff005503;--colors-crimson-light-a-2: #e0004008;--colors-crimson-light-a-3: #ff005216;--colors-crimson-light-a-4: #f8005123;--colors-crimson-light-a-5: #e5004f31;--colors-crimson-light-a-6: #d0004b41;--colors-crimson-light-a-7: #bf004753;--colors-crimson-light-a-8: #b6004a6c;--colors-crimson-light-a-9: #e2005bc2;--colors-crimson-light-a-10: #d70056cb;--colors-crimson-light-a-11: #c4004fe2;--colors-crimson-light-a-12: #530026e9;--colors-crimson-light-p3-1: color(display-p3 .998 .989 .992);--colors-crimson-light-p3-2: color(display-p3 .991 .969 .976);--colors-crimson-light-p3-3: color(display-p3 .987 .917 .941);--colors-crimson-light-p3-4: color(display-p3 .975 .866 .904);--colors-crimson-light-p3-5: color(display-p3 .953 .813 .864);--colors-crimson-light-p3-6: color(display-p3 .921 .755 .817);--colors-crimson-light-p3-7: color(display-p3 .88 .683 .761);--colors-crimson-light-p3-8: color(display-p3 .834 .592 .694);--colors-crimson-light-p3-9: color(display-p3 .843 .298 .507);--colors-crimson-light-p3-10: color(display-p3 .807 .266 .468);--colors-crimson-light-p3-11: color(display-p3 .731 .195 .388);--colors-crimson-light-p3-12: color(display-p3 .352 .111 .221);--colors-crimson-light-p3-a-1: color(display-p3 .675 .024 .349 / .012);--colors-crimson-light-p3-a-2: color(display-p3 .757 .02 .267 / .032);--colors-crimson-light-p3-a-3: color(display-p3 .859 .008 .294 / .083);--colors-crimson-light-p3-a-4: color(display-p3 .827 .008 .298 / .134);--colors-crimson-light-p3-a-5: color(display-p3 .753 .008 .275 / .189);--colors-crimson-light-p3-a-6: color(display-p3 .682 .004 .247 / .244);--colors-crimson-light-p3-a-7: color(display-p3 .62 .004 .251 / .318);--colors-crimson-light-p3-a-8: color(display-p3 .6 .004 .251 / .408);--colors-crimson-light-p3-a-9: color(display-p3 .776 0 .298 / .702);--colors-crimson-light-p3-a-10: color(display-p3 .737 0 .275 / .734);--colors-crimson-light-p3-a-11: color(display-p3 .731 .195 .388);--colors-crimson-light-p3-a-12: color(display-p3 .352 .111 .221);--colors-crimson-dark-1: #191114;--colors-crimson-dark-2: #201318;--colors-crimson-dark-3: #381525;--colors-crimson-dark-4: #4d122f;--colors-crimson-dark-5: #5c1839;--colors-crimson-dark-6: #6d2545;--colors-crimson-dark-7: #873356;--colors-crimson-dark-8: #b0436e;--colors-crimson-dark-9: #e93d82;--colors-crimson-dark-10: #ee518a;--colors-crimson-dark-11: #ff92ad;--colors-crimson-dark-12: #fdd3e8;--colors-crimson-dark-a-1: #f4126709;--colors-crimson-dark-a-2: #f22f7a11;--colors-crimson-dark-a-3: #fe2a8b2a;--colors-crimson-dark-a-4: #fd158741;--colors-crimson-dark-a-5: #fd278f51;--colors-crimson-dark-a-6: #fe459763;--colors-crimson-dark-a-7: #fd559b7f;--colors-crimson-dark-a-8: #fe5b9bab;--colors-crimson-dark-a-9: #fe418de8;--colors-crimson-dark-a-10: #ff5693ed;--colors-crimson-dark-a-11: #ff92ad;--colors-crimson-dark-a-12: #ffd5eafd;--colors-crimson-dark-p3-1: color(display-p3 .093 .068 .078);--colors-crimson-dark-p3-2: color(display-p3 .117 .078 .095);--colors-crimson-dark-p3-3: color(display-p3 .203 .091 .143);--colors-crimson-dark-p3-4: color(display-p3 .277 .087 .182);--colors-crimson-dark-p3-5: color(display-p3 .332 .115 .22);--colors-crimson-dark-p3-6: color(display-p3 .394 .162 .268);--colors-crimson-dark-p3-7: color(display-p3 .489 .222 .336);--colors-crimson-dark-p3-8: color(display-p3 .638 .289 .429);--colors-crimson-dark-p3-9: color(display-p3 .843 .298 .507);--colors-crimson-dark-p3-10: color(display-p3 .864 .364 .539);--colors-crimson-dark-p3-11: color(display-p3 1 .56 .66);--colors-crimson-dark-p3-12: color(display-p3 .966 .834 .906);--colors-crimson-dark-p3-a-1: color(display-p3 .984 .071 .463 / .03);--colors-crimson-dark-p3-a-2: color(display-p3 .996 .282 .569 / .055);--colors-crimson-dark-p3-a-3: color(display-p3 .996 .227 .573 / .148);--colors-crimson-dark-p3-a-4: color(display-p3 1 .157 .569 / .227);--colors-crimson-dark-p3-a-5: color(display-p3 1 .231 .604 / .286);--colors-crimson-dark-p3-a-6: color(display-p3 1 .337 .643 / .349);--colors-crimson-dark-p3-a-7: color(display-p3 1 .416 .663 / .454);--colors-crimson-dark-p3-a-8: color(display-p3 .996 .427 .651 / .614);--colors-crimson-dark-p3-a-9: color(display-p3 1 .345 .596 / .832);--colors-crimson-dark-p3-a-10: color(display-p3 1 .42 .62 / .853);--colors-crimson-dark-p3-a-11: color(display-p3 1 .56 .66);--colors-crimson-dark-p3-a-12: color(display-p3 .966 .834 .906);--colors-crimson-a-1: var(--colors-crimson-light-a-1);--colors-crimson-a-2: var(--colors-crimson-light-a-2);--colors-crimson-a-3: var(--colors-crimson-light-a-3);--colors-crimson-a-4: var(--colors-crimson-light-a-4);--colors-crimson-a-5: var(--colors-crimson-light-a-5);--colors-crimson-a-6: var(--colors-crimson-light-a-6);--colors-crimson-a-7: var(--colors-crimson-light-a-7);--colors-crimson-a-8: var(--colors-crimson-light-a-8);--colors-crimson-a-9: var(--colors-crimson-light-a-9);--colors-crimson-a-10: var(--colors-crimson-light-a-10);--colors-crimson-a-11: var(--colors-crimson-light-a-11);--colors-crimson-a-12: var(--colors-crimson-light-a-12);--colors-crimson-p3-1: var(--colors-crimson-light-p3-1);--colors-crimson-p3-2: var(--colors-crimson-light-p3-2);--colors-crimson-p3-3: var(--colors-crimson-light-p3-3);--colors-crimson-p3-4: var(--colors-crimson-light-p3-4);--colors-crimson-p3-5: var(--colors-crimson-light-p3-5);--colors-crimson-p3-6: var(--colors-crimson-light-p3-6);--colors-crimson-p3-7: var(--colors-crimson-light-p3-7);--colors-crimson-p3-8: var(--colors-crimson-light-p3-8);--colors-crimson-p3-9: var(--colors-crimson-light-p3-9);--colors-crimson-p3-10: var(--colors-crimson-light-p3-10);--colors-crimson-p3-11: var(--colors-crimson-light-p3-11);--colors-crimson-p3-12: var(--colors-crimson-light-p3-12);--colors-crimson-p3-a-1: var(--colors-crimson-light-p3-a-1);--colors-crimson-p3-a-2: var(--colors-crimson-light-p3-a-2);--colors-crimson-p3-a-3: var(--colors-crimson-light-p3-a-3);--colors-crimson-p3-a-4: var(--colors-crimson-light-p3-a-4);--colors-crimson-p3-a-5: var(--colors-crimson-light-p3-a-5);--colors-crimson-p3-a-6: var(--colors-crimson-light-p3-a-6);--colors-crimson-p3-a-7: var(--colors-crimson-light-p3-a-7);--colors-crimson-p3-a-8: var(--colors-crimson-light-p3-a-8);--colors-crimson-p3-a-9: var(--colors-crimson-light-p3-a-9);--colors-crimson-p3-a-10: var(--colors-crimson-light-p3-a-10);--colors-crimson-p3-a-11: var(--colors-crimson-light-p3-a-11);--colors-crimson-p3-a-12: var(--colors-crimson-light-p3-a-12);--colors-grass-1: var(--colors-grass-light-1);--colors-grass-2: var(--colors-grass-light-2);--colors-grass-3: var(--colors-grass-light-3);--colors-grass-4: var(--colors-grass-light-4);--colors-grass-5: var(--colors-grass-light-5);--colors-grass-6: var(--colors-grass-light-6);--colors-grass-7: var(--colors-grass-light-7);--colors-grass-8: var(--colors-grass-light-8);--colors-grass-9: var(--colors-grass-light-9);--colors-grass-10: var(--colors-grass-light-10);--colors-grass-11: var(--colors-grass-light-11);--colors-grass-12: var(--colors-grass-light-12);--colors-grass-light-1: #fbfefb;--colors-grass-light-2: #f5fbf5;--colors-grass-light-3: #e9f6e9;--colors-grass-light-4: #daf1db;--colors-grass-light-5: #c9e8ca;--colors-grass-light-6: #b2ddb5;--colors-grass-light-7: #94ce9a;--colors-grass-light-8: #65ba74;--colors-grass-light-9: #46a758;--colors-grass-light-10: #3e9b4f;--colors-grass-light-11: #2a7e3b;--colors-grass-light-12: #203c25;--colors-grass-light-a-1: #00c00004;--colors-grass-light-a-2: #0099000a;--colors-grass-light-a-3: #00970016;--colors-grass-light-a-4: #009f0725;--colors-grass-light-a-5: #00930536;--colors-grass-light-a-6: #008f0a4d;--colors-grass-light-a-7: #018b0f6b;--colors-grass-light-a-8: #008d199a;--colors-grass-light-a-9: #008619b9;--colors-grass-light-a-10: #007b17c1;--colors-grass-light-a-11: #006514d5;--colors-grass-light-a-12: #002006df;--colors-grass-light-p3-1: color(display-p3 .986 .996 .985);--colors-grass-light-p3-2: color(display-p3 .966 .983 .964);--colors-grass-light-p3-3: color(display-p3 .923 .965 .917);--colors-grass-light-p3-4: color(display-p3 .872 .94 .865);--colors-grass-light-p3-5: color(display-p3 .811 .908 .802);--colors-grass-light-p3-6: color(display-p3 .733 .864 .724);--colors-grass-light-p3-7: color(display-p3 .628 .803 .622);--colors-grass-light-p3-8: color(display-p3 .477 .72 .482);--colors-grass-light-p3-9: color(display-p3 .38 .647 .378);--colors-grass-light-p3-10: color(display-p3 .344 .598 .342);--colors-grass-light-p3-11: color(display-p3 .263 .488 .261);--colors-grass-light-p3-12: color(display-p3 .151 .233 .153);--colors-grass-light-p3-a-1: color(display-p3 .024 .757 .024 / .016);--colors-grass-light-p3-a-2: color(display-p3 .024 .565 .024 / .036);--colors-grass-light-p3-a-3: color(display-p3 .059 .576 .008 / .083);--colors-grass-light-p3-a-4: color(display-p3 .035 .565 .008 / .134);--colors-grass-light-p3-a-5: color(display-p3 .047 .545 .008 / .197);--colors-grass-light-p3-a-6: color(display-p3 .031 .502 .004 / .275);--colors-grass-light-p3-a-7: color(display-p3 .012 .482 .004 / .377);--colors-grass-light-p3-a-8: color(display-p3 0 .467 .008 / .522);--colors-grass-light-p3-a-9: color(display-p3 .008 .435 0 / .624);--colors-grass-light-p3-a-10: color(display-p3 .008 .388 0 / .659);--colors-grass-light-p3-a-11: color(display-p3 .263 .488 .261);--colors-grass-light-p3-a-12: color(display-p3 .151 .233 .153);--colors-grass-dark-1: #0e1511;--colors-grass-dark-2: #141a15;--colors-grass-dark-3: #1b2a1e;--colors-grass-dark-4: #1d3a24;--colors-grass-dark-5: #25482d;--colors-grass-dark-6: #2d5736;--colors-grass-dark-7: #366740;--colors-grass-dark-8: #3e7949;--colors-grass-dark-9: #46a758;--colors-grass-dark-10: #53b365;--colors-grass-dark-11: #71d083;--colors-grass-dark-12: #c2f0c2;--colors-grass-dark-a-1: #00de1205;--colors-grass-dark-a-2: #5ef7780a;--colors-grass-dark-a-3: #70fe8c1b;--colors-grass-dark-a-4: #57ff802c;--colors-grass-dark-a-5: #68ff8b3b;--colors-grass-dark-a-6: #71ff8f4b;--colors-grass-dark-a-7: #77fd925d;--colors-grass-dark-a-8: #77fd9070;--colors-grass-dark-a-9: #65ff82a1;--colors-grass-dark-a-10: #72ff8dae;--colors-grass-dark-a-11: #89ff9fcd;--colors-grass-dark-a-12: #ceffceef;--colors-grass-dark-p3-1: color(display-p3 .062 .083 .067);--colors-grass-dark-p3-2: color(display-p3 .083 .103 .085);--colors-grass-dark-p3-3: color(display-p3 .118 .163 .122);--colors-grass-dark-p3-4: color(display-p3 .142 .225 .15);--colors-grass-dark-p3-5: color(display-p3 .178 .279 .186);--colors-grass-dark-p3-6: color(display-p3 .217 .337 .224);--colors-grass-dark-p3-7: color(display-p3 .258 .4 .264);--colors-grass-dark-p3-8: color(display-p3 .302 .47 .305);--colors-grass-dark-p3-9: color(display-p3 .38 .647 .378);--colors-grass-dark-p3-10: color(display-p3 .426 .694 .426);--colors-grass-dark-p3-11: color(display-p3 .535 .807 .542);--colors-grass-dark-p3-12: color(display-p3 .797 .936 .776);--colors-grass-dark-p3-a-1: color(display-p3 0 .992 .071 / .017);--colors-grass-dark-p3-a-2: color(display-p3 .482 .996 .584 / .038);--colors-grass-dark-p3-a-3: color(display-p3 .549 .992 .588 / .106);--colors-grass-dark-p3-a-4: color(display-p3 .51 .996 .557 / .169);--colors-grass-dark-p3-a-5: color(display-p3 .553 1 .588 / .227);--colors-grass-dark-p3-a-6: color(display-p3 .584 1 .608 / .29);--colors-grass-dark-p3-a-7: color(display-p3 .604 1 .616 / .358);--colors-grass-dark-p3-a-8: color(display-p3 .608 1 .62 / .433);--colors-grass-dark-p3-a-9: color(display-p3 .573 1 .569 / .622);--colors-grass-dark-p3-a-10: color(display-p3 .6 .996 .6 / .673);--colors-grass-dark-p3-a-11: color(display-p3 .535 .807 .542);--colors-grass-dark-p3-a-12: color(display-p3 .797 .936 .776);--colors-grass-a-1: var(--colors-grass-light-a-1);--colors-grass-a-2: var(--colors-grass-light-a-2);--colors-grass-a-3: var(--colors-grass-light-a-3);--colors-grass-a-4: var(--colors-grass-light-a-4);--colors-grass-a-5: var(--colors-grass-light-a-5);--colors-grass-a-6: var(--colors-grass-light-a-6);--colors-grass-a-7: var(--colors-grass-light-a-7);--colors-grass-a-8: var(--colors-grass-light-a-8);--colors-grass-a-9: var(--colors-grass-light-a-9);--colors-grass-a-10: var(--colors-grass-light-a-10);--colors-grass-a-11: var(--colors-grass-light-a-11);--colors-grass-a-12: var(--colors-grass-light-a-12);--colors-grass-p3-1: var(--colors-grass-light-p3-1);--colors-grass-p3-2: var(--colors-grass-light-p3-2);--colors-grass-p3-3: var(--colors-grass-light-p3-3);--colors-grass-p3-4: var(--colors-grass-light-p3-4);--colors-grass-p3-5: var(--colors-grass-light-p3-5);--colors-grass-p3-6: var(--colors-grass-light-p3-6);--colors-grass-p3-7: var(--colors-grass-light-p3-7);--colors-grass-p3-8: var(--colors-grass-light-p3-8);--colors-grass-p3-9: var(--colors-grass-light-p3-9);--colors-grass-p3-10: var(--colors-grass-light-p3-10);--colors-grass-p3-11: var(--colors-grass-light-p3-11);--colors-grass-p3-12: var(--colors-grass-light-p3-12);--colors-grass-p3-a-1: var(--colors-grass-light-p3-a-1);--colors-grass-p3-a-2: var(--colors-grass-light-p3-a-2);--colors-grass-p3-a-3: var(--colors-grass-light-p3-a-3);--colors-grass-p3-a-4: var(--colors-grass-light-p3-a-4);--colors-grass-p3-a-5: var(--colors-grass-light-p3-a-5);--colors-grass-p3-a-6: var(--colors-grass-light-p3-a-6);--colors-grass-p3-a-7: var(--colors-grass-light-p3-a-7);--colors-grass-p3-a-8: var(--colors-grass-light-p3-a-8);--colors-grass-p3-a-9: var(--colors-grass-light-p3-a-9);--colors-grass-p3-a-10: var(--colors-grass-light-p3-a-10);--colors-grass-p3-a-11: var(--colors-grass-light-p3-a-11);--colors-grass-p3-a-12: var(--colors-grass-light-p3-a-12);--colors-indigo-1: var(--colors-indigo-light-1);--colors-indigo-2: var(--colors-indigo-light-2);--colors-indigo-3: var(--colors-indigo-light-3);--colors-indigo-4: var(--colors-indigo-light-4);--colors-indigo-5: var(--colors-indigo-light-5);--colors-indigo-6: var(--colors-indigo-light-6);--colors-indigo-7: var(--colors-indigo-light-7);--colors-indigo-8: var(--colors-indigo-light-8);--colors-indigo-9: var(--colors-indigo-light-9);--colors-indigo-10: var(--colors-indigo-light-10);--colors-indigo-11: var(--colors-indigo-light-11);--colors-indigo-12: var(--colors-indigo-light-12);--colors-indigo-light-1: #fdfdfe;--colors-indigo-light-2: #f7f9ff;--colors-indigo-light-3: #edf2fe;--colors-indigo-light-4: #e1e9ff;--colors-indigo-light-5: #d2deff;--colors-indigo-light-6: #c1d0ff;--colors-indigo-light-7: #abbdf9;--colors-indigo-light-8: #8da4ef;--colors-indigo-light-9: #3e63dd;--colors-indigo-light-10: #3358d4;--colors-indigo-light-11: #3a5bc7;--colors-indigo-light-12: #1f2d5c;--colors-indigo-light-a-1: #00008002;--colors-indigo-light-a-2: #0040ff08;--colors-indigo-light-a-3: #0047f112;--colors-indigo-light-a-4: #0044ff1e;--colors-indigo-light-a-5: #0044ff2d;--colors-indigo-light-a-6: #003eff3e;--colors-indigo-light-a-7: #0037ed54;--colors-indigo-light-a-8: #0034dc72;--colors-indigo-light-a-9: #0031d2c1;--colors-indigo-light-a-10: #002ec9cc;--colors-indigo-light-a-11: #002bb7c5;--colors-indigo-light-a-12: #001046e0;--colors-indigo-light-p3-1: color(display-p3 .992 .992 .996);--colors-indigo-light-p3-2: color(display-p3 .971 .977 .998);--colors-indigo-light-p3-3: color(display-p3 .933 .948 .992);--colors-indigo-light-p3-4: color(display-p3 .885 .914 1);--colors-indigo-light-p3-5: color(display-p3 .831 .87 1);--colors-indigo-light-p3-6: color(display-p3 .767 .814 .995);--colors-indigo-light-p3-7: color(display-p3 .685 .74 .957);--colors-indigo-light-p3-8: color(display-p3 .569 .639 .916);--colors-indigo-light-p3-9: color(display-p3 .276 .384 .837);--colors-indigo-light-p3-10: color(display-p3 .234 .343 .801);--colors-indigo-light-p3-11: color(display-p3 .256 .354 .755);--colors-indigo-light-p3-12: color(display-p3 .133 .175 .348);--colors-indigo-light-p3-a-1: color(display-p3 .02 .02 .51 / .008);--colors-indigo-light-p3-a-2: color(display-p3 .024 .161 .863 / .028);--colors-indigo-light-p3-a-3: color(display-p3 .008 .239 .886 / .067);--colors-indigo-light-p3-a-4: color(display-p3 .004 .247 1 / .114);--colors-indigo-light-p3-a-5: color(display-p3 .004 .235 1 / .169);--colors-indigo-light-p3-a-6: color(display-p3 .004 .208 .984 / .232);--colors-indigo-light-p3-a-7: color(display-p3 .004 .176 .863 / .314);--colors-indigo-light-p3-a-8: color(display-p3 .004 .165 .812 / .432);--colors-indigo-light-p3-a-9: color(display-p3 0 .153 .773 / .726);--colors-indigo-light-p3-a-10: color(display-p3 0 .137 .737 / .765);--colors-indigo-light-p3-a-11: color(display-p3 .256 .354 .755);--colors-indigo-light-p3-a-12: color(display-p3 .133 .175 .348);--colors-indigo-dark-1: #11131f;--colors-indigo-dark-2: #141726;--colors-indigo-dark-3: #182449;--colors-indigo-dark-4: #1d2e62;--colors-indigo-dark-5: #253974;--colors-indigo-dark-6: #304384;--colors-indigo-dark-7: #3a4f97;--colors-indigo-dark-8: #435db1;--colors-indigo-dark-9: #3e63dd;--colors-indigo-dark-10: #5472e4;--colors-indigo-dark-11: #9eb1ff;--colors-indigo-dark-12: #d6e1ff;--colors-indigo-dark-a-1: #1133ff0f;--colors-indigo-dark-a-2: #3354fa17;--colors-indigo-dark-a-3: #2f62ff3c;--colors-indigo-dark-a-4: #3566ff57;--colors-indigo-dark-a-5: #4171fd6b;--colors-indigo-dark-a-6: #5178fd7c;--colors-indigo-dark-a-7: #5a7fff90;--colors-indigo-dark-a-8: #5b81feac;--colors-indigo-dark-a-9: #4671ffdb;--colors-indigo-dark-a-10: #5c7efee3;--colors-indigo-dark-a-11: #9eb1ff;--colors-indigo-dark-a-12: #d6e1ff;--colors-indigo-dark-p3-1: color(display-p3 .068 .074 .118);--colors-indigo-dark-p3-2: color(display-p3 .081 .089 .144);--colors-indigo-dark-p3-3: color(display-p3 .105 .141 .275);--colors-indigo-dark-p3-4: color(display-p3 .129 .18 .369);--colors-indigo-dark-p3-5: color(display-p3 .163 .22 .439);--colors-indigo-dark-p3-6: color(display-p3 .203 .262 .5);--colors-indigo-dark-p3-7: color(display-p3 .245 .309 .575);--colors-indigo-dark-p3-8: color(display-p3 .285 .362 .674);--colors-indigo-dark-p3-9: color(display-p3 .276 .384 .837);--colors-indigo-dark-p3-10: color(display-p3 .354 .445 .866);--colors-indigo-dark-p3-11: color(display-p3 .63 .69 1);--colors-indigo-dark-p3-12: color(display-p3 .848 .881 .99);--colors-indigo-dark-p3-a-1: color(display-p3 .071 .212 .996 / .055);--colors-indigo-dark-p3-a-2: color(display-p3 .251 .345 .988 / .085);--colors-indigo-dark-p3-a-3: color(display-p3 .243 .404 1 / .223);--colors-indigo-dark-p3-a-4: color(display-p3 .263 .42 1 / .324);--colors-indigo-dark-p3-a-5: color(display-p3 .314 .451 1 / .4);--colors-indigo-dark-p3-a-6: color(display-p3 .361 .49 1 / .467);--colors-indigo-dark-p3-a-7: color(display-p3 .388 .51 1 / .547);--colors-indigo-dark-p3-a-8: color(display-p3 .404 .518 1 / .652);--colors-indigo-dark-p3-a-9: color(display-p3 .318 .451 1 / .824);--colors-indigo-dark-p3-a-10: color(display-p3 .404 .506 1 / .858);--colors-indigo-dark-p3-a-11: color(display-p3 .63 .69 1);--colors-indigo-dark-p3-a-12: color(display-p3 .848 .881 .99);--colors-indigo-a-1: var(--colors-indigo-light-a-1);--colors-indigo-a-2: var(--colors-indigo-light-a-2);--colors-indigo-a-3: var(--colors-indigo-light-a-3);--colors-indigo-a-4: var(--colors-indigo-light-a-4);--colors-indigo-a-5: var(--colors-indigo-light-a-5);--colors-indigo-a-6: var(--colors-indigo-light-a-6);--colors-indigo-a-7: var(--colors-indigo-light-a-7);--colors-indigo-a-8: var(--colors-indigo-light-a-8);--colors-indigo-a-9: var(--colors-indigo-light-a-9);--colors-indigo-a-10: var(--colors-indigo-light-a-10);--colors-indigo-a-11: var(--colors-indigo-light-a-11);--colors-indigo-a-12: var(--colors-indigo-light-a-12);--colors-indigo-p3-1: var(--colors-indigo-light-p3-1);--colors-indigo-p3-2: var(--colors-indigo-light-p3-2);--colors-indigo-p3-3: var(--colors-indigo-light-p3-3);--colors-indigo-p3-4: var(--colors-indigo-light-p3-4);--colors-indigo-p3-5: var(--colors-indigo-light-p3-5);--colors-indigo-p3-6: var(--colors-indigo-light-p3-6);--colors-indigo-p3-7: var(--colors-indigo-light-p3-7);--colors-indigo-p3-8: var(--colors-indigo-light-p3-8);--colors-indigo-p3-9: var(--colors-indigo-light-p3-9);--colors-indigo-p3-10: var(--colors-indigo-light-p3-10);--colors-indigo-p3-11: var(--colors-indigo-light-p3-11);--colors-indigo-p3-12: var(--colors-indigo-light-p3-12);--colors-indigo-p3-a-1: var(--colors-indigo-light-p3-a-1);--colors-indigo-p3-a-2: var(--colors-indigo-light-p3-a-2);--colors-indigo-p3-a-3: var(--colors-indigo-light-p3-a-3);--colors-indigo-p3-a-4: var(--colors-indigo-light-p3-a-4);--colors-indigo-p3-a-5: var(--colors-indigo-light-p3-a-5);--colors-indigo-p3-a-6: var(--colors-indigo-light-p3-a-6);--colors-indigo-p3-a-7: var(--colors-indigo-light-p3-a-7);--colors-indigo-p3-a-8: var(--colors-indigo-light-p3-a-8);--colors-indigo-p3-a-9: var(--colors-indigo-light-p3-a-9);--colors-indigo-p3-a-10: var(--colors-indigo-light-p3-a-10);--colors-indigo-p3-a-11: var(--colors-indigo-light-p3-a-11);--colors-indigo-p3-a-12: var(--colors-indigo-light-p3-a-12);--colors-lime-1: var(--colors-lime-light-1);--colors-lime-2: var(--colors-lime-light-2);--colors-lime-3: var(--colors-lime-light-3);--colors-lime-4: var(--colors-lime-light-4);--colors-lime-5: var(--colors-lime-light-5);--colors-lime-6: var(--colors-lime-light-6);--colors-lime-7: var(--colors-lime-light-7);--colors-lime-8: var(--colors-lime-light-8);--colors-lime-9: var(--colors-lime-light-9);--colors-lime-10: var(--colors-lime-light-10);--colors-lime-11: var(--colors-lime-light-11);--colors-lime-12: var(--colors-lime-light-12);--colors-lime-light-1: #fcfdfa;--colors-lime-light-2: #f8faf3;--colors-lime-light-3: #eef6d6;--colors-lime-light-4: #e2f0bd;--colors-lime-light-5: #d3e7a6;--colors-lime-light-6: #c2da91;--colors-lime-light-7: #abc978;--colors-lime-light-8: #8db654;--colors-lime-light-9: #bdee63;--colors-lime-light-10: #b0e64c;--colors-lime-light-11: #5c7c2f;--colors-lime-light-12: #37401c;--colors-lime-light-a-1: #66990005;--colors-lime-light-a-2: #6b95000c;--colors-lime-light-a-3: #96c80029;--colors-lime-light-a-4: #8fc60042;--colors-lime-light-a-5: #81bb0059;--colors-lime-light-a-6: #72aa006e;--colors-lime-light-a-7: #61990087;--colors-lime-light-a-8: #559200ab;--colors-lime-light-a-9: #93e4009c;--colors-lime-light-a-10: #8fdc00b3;--colors-lime-light-a-11: #375f00d0;--colors-lime-light-a-12: #1e2900e3;--colors-lime-light-p3-1: color(display-p3 .989 .992 .981);--colors-lime-light-p3-2: color(display-p3 .975 .98 .954);--colors-lime-light-p3-3: color(display-p3 .939 .965 .851);--colors-lime-light-p3-4: color(display-p3 .896 .94 .76);--colors-lime-light-p3-5: color(display-p3 .843 .903 .678);--colors-lime-light-p3-6: color(display-p3 .778 .852 .599);--colors-lime-light-p3-7: color(display-p3 .694 .784 .508);--colors-lime-light-p3-8: color(display-p3 .585 .707 .378);--colors-lime-light-p3-9: color(display-p3 .78 .928 .466);--colors-lime-light-p3-10: color(display-p3 .734 .896 .397);--colors-lime-light-p3-11: color(display-p3 .386 .482 .227);--colors-lime-light-p3-12: color(display-p3 .222 .25 .128);--colors-lime-light-p3-a-1: color(display-p3 .412 .608 .02 / .02);--colors-lime-light-p3-a-2: color(display-p3 .514 .592 .024 / .048);--colors-lime-light-p3-a-3: color(display-p3 .584 .765 .008 / .15);--colors-lime-light-p3-a-4: color(display-p3 .561 .757 .004 / .24);--colors-lime-light-p3-a-5: color(display-p3 .514 .698 .004 / .322);--colors-lime-light-p3-a-6: color(display-p3 .443 .627 0 / .4);--colors-lime-light-p3-a-7: color(display-p3 .376 .561 .004 / .491);--colors-lime-light-p3-a-8: color(display-p3 .333 .529 0 / .624);--colors-lime-light-p3-a-9: color(display-p3 .588 .867 0 / .534);--colors-lime-light-p3-a-10: color(display-p3 .561 .827 0 / .604);--colors-lime-light-p3-a-11: color(display-p3 .386 .482 .227);--colors-lime-light-p3-a-12: color(display-p3 .222 .25 .128);--colors-lime-dark-1: #11130c;--colors-lime-dark-2: #151a10;--colors-lime-dark-3: #1f2917;--colors-lime-dark-4: #29371d;--colors-lime-dark-5: #334423;--colors-lime-dark-6: #3d522a;--colors-lime-dark-7: #496231;--colors-lime-dark-8: #577538;--colors-lime-dark-9: #bdee63;--colors-lime-dark-10: #d4ff70;--colors-lime-dark-11: #bde56c;--colors-lime-dark-12: #e3f7ba;--colors-lime-dark-a-1: #11bb0003;--colors-lime-dark-a-2: #78f7000a;--colors-lime-dark-a-3: #9bfd4c1a;--colors-lime-dark-a-4: #a7fe5c29;--colors-lime-dark-a-5: #affe6537;--colors-lime-dark-a-6: #b2fe6d46;--colors-lime-dark-a-7: #b6ff6f57;--colors-lime-dark-a-8: #b6fd6d6c;--colors-lime-dark-a-9: #caff69ed;--colors-lime-dark-a-10: #d4ff70;--colors-lime-dark-a-11: #d1fe77e4;--colors-lime-dark-a-12: #e9febff7;--colors-lime-dark-p3-1: color(display-p3 .067 .073 .048);--colors-lime-dark-p3-2: color(display-p3 .086 .1 .067);--colors-lime-dark-p3-3: color(display-p3 .13 .16 .099);--colors-lime-dark-p3-4: color(display-p3 .172 .214 .126);--colors-lime-dark-p3-5: color(display-p3 .213 .266 .153);--colors-lime-dark-p3-6: color(display-p3 .257 .321 .182);--colors-lime-dark-p3-7: color(display-p3 .307 .383 .215);--colors-lime-dark-p3-8: color(display-p3 .365 .456 .25);--colors-lime-dark-p3-9: color(display-p3 .78 .928 .466);--colors-lime-dark-p3-10: color(display-p3 .865 .995 .519);--colors-lime-dark-p3-11: color(display-p3 .771 .893 .485);--colors-lime-dark-p3-12: color(display-p3 .905 .966 .753);--colors-lime-dark-p3-a-1: color(display-p3 .067 .941 0 / .009);--colors-lime-dark-p3-a-2: color(display-p3 .584 .996 .071 / .038);--colors-lime-dark-p3-a-3: color(display-p3 .69 1 .38 / .101);--colors-lime-dark-p3-a-4: color(display-p3 .729 1 .435 / .16);--colors-lime-dark-p3-a-5: color(display-p3 .745 1 .471 / .215);--colors-lime-dark-p3-a-6: color(display-p3 .769 1 .482 / .274);--colors-lime-dark-p3-a-7: color(display-p3 .769 1 .506 / .341);--colors-lime-dark-p3-a-8: color(display-p3 .784 1 .51 / .416);--colors-lime-dark-p3-a-9: color(display-p3 .839 1 .502 / .925);--colors-lime-dark-p3-a-10: color(display-p3 .871 1 .522 / .996);--colors-lime-dark-p3-a-11: color(display-p3 .771 .893 .485);--colors-lime-dark-p3-a-12: color(display-p3 .905 .966 .753);--colors-lime-a-1: var(--colors-lime-light-a-1);--colors-lime-a-2: var(--colors-lime-light-a-2);--colors-lime-a-3: var(--colors-lime-light-a-3);--colors-lime-a-4: var(--colors-lime-light-a-4);--colors-lime-a-5: var(--colors-lime-light-a-5);--colors-lime-a-6: var(--colors-lime-light-a-6);--colors-lime-a-7: var(--colors-lime-light-a-7);--colors-lime-a-8: var(--colors-lime-light-a-8);--colors-lime-a-9: var(--colors-lime-light-a-9);--colors-lime-a-10: var(--colors-lime-light-a-10);--colors-lime-a-11: var(--colors-lime-light-a-11);--colors-lime-a-12: var(--colors-lime-light-a-12);--colors-lime-p3-1: var(--colors-lime-light-p3-1);--colors-lime-p3-2: var(--colors-lime-light-p3-2);--colors-lime-p3-3: var(--colors-lime-light-p3-3);--colors-lime-p3-4: var(--colors-lime-light-p3-4);--colors-lime-p3-5: var(--colors-lime-light-p3-5);--colors-lime-p3-6: var(--colors-lime-light-p3-6);--colors-lime-p3-7: var(--colors-lime-light-p3-7);--colors-lime-p3-8: var(--colors-lime-light-p3-8);--colors-lime-p3-9: var(--colors-lime-light-p3-9);--colors-lime-p3-10: var(--colors-lime-light-p3-10);--colors-lime-p3-11: var(--colors-lime-light-p3-11);--colors-lime-p3-12: var(--colors-lime-light-p3-12);--colors-lime-p3-a-1: var(--colors-lime-light-p3-a-1);--colors-lime-p3-a-2: var(--colors-lime-light-p3-a-2);--colors-lime-p3-a-3: var(--colors-lime-light-p3-a-3);--colors-lime-p3-a-4: var(--colors-lime-light-p3-a-4);--colors-lime-p3-a-5: var(--colors-lime-light-p3-a-5);--colors-lime-p3-a-6: var(--colors-lime-light-p3-a-6);--colors-lime-p3-a-7: var(--colors-lime-light-p3-a-7);--colors-lime-p3-a-8: var(--colors-lime-light-p3-a-8);--colors-lime-p3-a-9: var(--colors-lime-light-p3-a-9);--colors-lime-p3-a-10: var(--colors-lime-light-p3-a-10);--colors-lime-p3-a-11: var(--colors-lime-light-p3-a-11);--colors-lime-p3-a-12: var(--colors-lime-light-p3-a-12);--colors-orange-1: var(--colors-orange-light-1);--colors-orange-2: var(--colors-orange-light-2);--colors-orange-3: var(--colors-orange-light-3);--colors-orange-4: var(--colors-orange-light-4);--colors-orange-5: var(--colors-orange-light-5);--colors-orange-6: var(--colors-orange-light-6);--colors-orange-7: var(--colors-orange-light-7);--colors-orange-8: var(--colors-orange-light-8);--colors-orange-9: var(--colors-orange-light-9);--colors-orange-10: var(--colors-orange-light-10);--colors-orange-11: var(--colors-orange-light-11);--colors-orange-12: var(--colors-orange-light-12);--colors-orange-light-1: #fefcfb;--colors-orange-light-2: #fff7ed;--colors-orange-light-3: #ffefd6;--colors-orange-light-4: #ffdfb5;--colors-orange-light-5: #ffd19a;--colors-orange-light-6: #ffc182;--colors-orange-light-7: #f5ae73;--colors-orange-light-8: #ec9455;--colors-orange-light-9: #f76b15;--colors-orange-light-10: #ef5f00;--colors-orange-light-11: #cc4e00;--colors-orange-light-12: #582d1d;--colors-orange-light-a-1: #c0400004;--colors-orange-light-a-2: #ff8e0012;--colors-orange-light-a-3: #ff9c0029;--colors-orange-light-a-4: #ff91014a;--colors-orange-light-a-5: #ff8b0065;--colors-orange-light-a-6: #ff81007d;--colors-orange-light-a-7: #ed6c008c;--colors-orange-light-a-8: #e35f00aa;--colors-orange-light-a-9: #f65e00ea;--colors-orange-light-a-10: #ef5f00;--colors-orange-light-a-11: #cc4e00;--colors-orange-light-a-12: #431200e2;--colors-orange-light-p3-1: color(display-p3 .995 .988 .985);--colors-orange-light-p3-2: color(display-p3 .994 .968 .934);--colors-orange-light-p3-3: color(display-p3 .989 .938 .85);--colors-orange-light-p3-4: color(display-p3 1 .874 .687);--colors-orange-light-p3-5: color(display-p3 1 .821 .583);--colors-orange-light-p3-6: color(display-p3 .975 .767 .545);--colors-orange-light-p3-7: color(display-p3 .919 .693 .486);--colors-orange-light-p3-8: color(display-p3 .877 .597 .379);--colors-orange-light-p3-9: color(display-p3 .9 .45 .2);--colors-orange-light-p3-10: color(display-p3 .87 .409 .164);--colors-orange-light-p3-11: color(display-p3 .76 .34 0);--colors-orange-light-p3-12: color(display-p3 .323 .185 .127);--colors-orange-light-p3-a-1: color(display-p3 .757 .267 .024 / .016);--colors-orange-light-p3-a-2: color(display-p3 .886 .533 .008 / .067);--colors-orange-light-p3-a-3: color(display-p3 .922 .584 .008 / .15);--colors-orange-light-p3-a-4: color(display-p3 1 .604 .004 / .314);--colors-orange-light-p3-a-5: color(display-p3 1 .569 .004 / .416);--colors-orange-light-p3-a-6: color(display-p3 .949 .494 .004 / .455);--colors-orange-light-p3-a-7: color(display-p3 .839 .408 0 / .514);--colors-orange-light-p3-a-8: color(display-p3 .804 .349 0 / .62);--colors-orange-light-p3-a-9: color(display-p3 .878 .314 0 / .8);--colors-orange-light-p3-a-10: color(display-p3 .843 .29 0 / .836);--colors-orange-light-p3-a-11: color(display-p3 .76 .34 0);--colors-orange-light-p3-a-12: color(display-p3 .323 .185 .127);--colors-orange-dark-1: #17120e;--colors-orange-dark-2: #1e160f;--colors-orange-dark-3: #331e0b;--colors-orange-dark-4: #462100;--colors-orange-dark-5: #562800;--colors-orange-dark-6: #66350c;--colors-orange-dark-7: #7e451d;--colors-orange-dark-8: #a35829;--colors-orange-dark-9: #f76b15;--colors-orange-dark-10: #ff801f;--colors-orange-dark-11: #ffa057;--colors-orange-dark-12: #ffe0c2;--colors-orange-dark-a-1: #ec360007;--colors-orange-dark-a-2: #fe6d000e;--colors-orange-dark-a-3: #fb6a0025;--colors-orange-dark-a-4: #ff590039;--colors-orange-dark-a-5: #ff61004a;--colors-orange-dark-a-6: #fd75045c;--colors-orange-dark-a-7: #ff832c75;--colors-orange-dark-a-8: #fe84389d;--colors-orange-dark-a-9: #fe6d15f7;--colors-orange-dark-a-10: #ff801f;--colors-orange-dark-a-11: #ffa057;--colors-orange-dark-a-12: #ffe0c2;--colors-orange-dark-p3-1: color(display-p3 .088 .07 .057);--colors-orange-dark-p3-2: color(display-p3 .113 .089 .061);--colors-orange-dark-p3-3: color(display-p3 .189 .12 .056);--colors-orange-dark-p3-4: color(display-p3 .262 .132 0);--colors-orange-dark-p3-5: color(display-p3 .315 .168 .016);--colors-orange-dark-p3-6: color(display-p3 .376 .219 .088);--colors-orange-dark-p3-7: color(display-p3 .465 .283 .147);--colors-orange-dark-p3-8: color(display-p3 .601 .359 .201);--colors-orange-dark-p3-9: color(display-p3 .9 .45 .2);--colors-orange-dark-p3-10: color(display-p3 .98 .51 .23);--colors-orange-dark-p3-11: color(display-p3 1 .63 .38);--colors-orange-dark-p3-12: color(display-p3 .98 .883 .775);--colors-orange-dark-p3-a-1: color(display-p3 .961 .247 0 / .022);--colors-orange-dark-p3-a-2: color(display-p3 .992 .529 0 / .051);--colors-orange-dark-p3-a-3: color(display-p3 .996 .486 0 / .131);--colors-orange-dark-p3-a-4: color(display-p3 .996 .384 0 / .211);--colors-orange-dark-p3-a-5: color(display-p3 1 .455 0 / .265);--colors-orange-dark-p3-a-6: color(display-p3 1 .529 .129 / .332);--colors-orange-dark-p3-a-7: color(display-p3 1 .569 .251 / .429);--colors-orange-dark-p3-a-8: color(display-p3 1 .584 .302 / .572);--colors-orange-dark-p3-a-9: color(display-p3 1 .494 .216 / .895);--colors-orange-dark-p3-a-10: color(display-p3 1 .522 .235 / .979);--colors-orange-dark-p3-a-11: color(display-p3 1 .63 .38);--colors-orange-dark-p3-a-12: color(display-p3 .98 .883 .775);--colors-orange-a-1: var(--colors-orange-light-a-1);--colors-orange-a-2: var(--colors-orange-light-a-2);--colors-orange-a-3: var(--colors-orange-light-a-3);--colors-orange-a-4: var(--colors-orange-light-a-4);--colors-orange-a-5: var(--colors-orange-light-a-5);--colors-orange-a-6: var(--colors-orange-light-a-6);--colors-orange-a-7: var(--colors-orange-light-a-7);--colors-orange-a-8: var(--colors-orange-light-a-8);--colors-orange-a-9: var(--colors-orange-light-a-9);--colors-orange-a-10: var(--colors-orange-light-a-10);--colors-orange-a-11: var(--colors-orange-light-a-11);--colors-orange-a-12: var(--colors-orange-light-a-12);--colors-orange-p3-1: var(--colors-orange-light-p3-1);--colors-orange-p3-2: var(--colors-orange-light-p3-2);--colors-orange-p3-3: var(--colors-orange-light-p3-3);--colors-orange-p3-4: var(--colors-orange-light-p3-4);--colors-orange-p3-5: var(--colors-orange-light-p3-5);--colors-orange-p3-6: var(--colors-orange-light-p3-6);--colors-orange-p3-7: var(--colors-orange-light-p3-7);--colors-orange-p3-8: var(--colors-orange-light-p3-8);--colors-orange-p3-9: var(--colors-orange-light-p3-9);--colors-orange-p3-10: var(--colors-orange-light-p3-10);--colors-orange-p3-11: var(--colors-orange-light-p3-11);--colors-orange-p3-12: var(--colors-orange-light-p3-12);--colors-orange-p3-a-1: var(--colors-orange-light-p3-a-1);--colors-orange-p3-a-2: var(--colors-orange-light-p3-a-2);--colors-orange-p3-a-3: var(--colors-orange-light-p3-a-3);--colors-orange-p3-a-4: var(--colors-orange-light-p3-a-4);--colors-orange-p3-a-5: var(--colors-orange-light-p3-a-5);--colors-orange-p3-a-6: var(--colors-orange-light-p3-a-6);--colors-orange-p3-a-7: var(--colors-orange-light-p3-a-7);--colors-orange-p3-a-8: var(--colors-orange-light-p3-a-8);--colors-orange-p3-a-9: var(--colors-orange-light-p3-a-9);--colors-orange-p3-a-10: var(--colors-orange-light-p3-a-10);--colors-orange-p3-a-11: var(--colors-orange-light-p3-a-11);--colors-orange-p3-a-12: var(--colors-orange-light-p3-a-12);--colors-pink-1: var(--colors-pink-light-1);--colors-pink-2: var(--colors-pink-light-2);--colors-pink-3: var(--colors-pink-light-3);--colors-pink-4: var(--colors-pink-light-4);--colors-pink-5: var(--colors-pink-light-5);--colors-pink-6: var(--colors-pink-light-6);--colors-pink-7: var(--colors-pink-light-7);--colors-pink-8: var(--colors-pink-light-8);--colors-pink-9: var(--colors-pink-light-9);--colors-pink-10: var(--colors-pink-light-10);--colors-pink-11: var(--colors-pink-light-11);--colors-pink-12: var(--colors-pink-light-12);--colors-pink-light-1: #fffcfe;--colors-pink-light-2: #fef7fb;--colors-pink-light-3: #fee9f5;--colors-pink-light-4: #fbdcef;--colors-pink-light-5: #f6cee7;--colors-pink-light-6: #efbfdd;--colors-pink-light-7: #e7acd0;--colors-pink-light-8: #dd93c2;--colors-pink-light-9: #d6409f;--colors-pink-light-10: #cf3897;--colors-pink-light-11: #c2298a;--colors-pink-light-12: #651249;--colors-pink-light-a-1: #ff00aa03;--colors-pink-light-a-2: #e0008008;--colors-pink-light-a-3: #f4008c16;--colors-pink-light-a-4: #e2008b23;--colors-pink-light-a-5: #d1008331;--colors-pink-light-a-6: #c0007840;--colors-pink-light-a-7: #b6006f53;--colors-pink-light-a-8: #af006f6c;--colors-pink-light-a-9: #c8007fbf;--colors-pink-light-a-10: #c2007ac7;--colors-pink-light-a-11: #b60074d6;--colors-pink-light-a-12: #59003bed;--colors-pink-light-p3-1: color(display-p3 .998 .989 .996);--colors-pink-light-p3-2: color(display-p3 .992 .97 .985);--colors-pink-light-p3-3: color(display-p3 .981 .917 .96);--colors-pink-light-p3-4: color(display-p3 .963 .867 .932);--colors-pink-light-p3-5: color(display-p3 .939 .815 .899);--colors-pink-light-p3-6: color(display-p3 .907 .756 .859);--colors-pink-light-p3-7: color(display-p3 .869 .683 .81);--colors-pink-light-p3-8: color(display-p3 .825 .59 .751);--colors-pink-light-p3-9: color(display-p3 .775 .297 .61);--colors-pink-light-p3-10: color(display-p3 .748 .27 .581);--colors-pink-light-p3-11: color(display-p3 .698 .219 .528);--colors-pink-light-p3-12: color(display-p3 .363 .101 .279);--colors-pink-light-p3-a-1: color(display-p3 .675 .024 .675 / .012);--colors-pink-light-p3-a-2: color(display-p3 .757 .02 .51 / .032);--colors-pink-light-p3-a-3: color(display-p3 .765 .008 .529 / .083);--colors-pink-light-p3-a-4: color(display-p3 .737 .008 .506 / .134);--colors-pink-light-p3-a-5: color(display-p3 .663 .004 .451 / .185);--colors-pink-light-p3-a-6: color(display-p3 .616 .004 .424 / .244);--colors-pink-light-p3-a-7: color(display-p3 .596 .004 .412 / .318);--colors-pink-light-p3-a-8: color(display-p3 .573 .004 .404 / .412);--colors-pink-light-p3-a-9: color(display-p3 .682 0 .447 / .702);--colors-pink-light-p3-a-10: color(display-p3 .655 0 .424 / .73);--colors-pink-light-p3-a-11: color(display-p3 .698 .219 .528);--colors-pink-light-p3-a-12: color(display-p3 .363 .101 .279);--colors-pink-dark-1: #191117;--colors-pink-dark-2: #21121d;--colors-pink-dark-3: #37172f;--colors-pink-dark-4: #4b143d;--colors-pink-dark-5: #591c47;--colors-pink-dark-6: #692955;--colors-pink-dark-7: #833869;--colors-pink-dark-8: #a84885;--colors-pink-dark-9: #d6409f;--colors-pink-dark-10: #de51a8;--colors-pink-dark-11: #ff8dcc;--colors-pink-dark-12: #fdd1ea;--colors-pink-dark-a-1: #f412bc09;--colors-pink-dark-a-2: #f420bb12;--colors-pink-dark-a-3: #fe37cc29;--colors-pink-dark-a-4: #fc1ec43f;--colors-pink-dark-a-5: #fd35c24e;--colors-pink-dark-a-6: #fd51c75f;--colors-pink-dark-a-7: #fd62c87b;--colors-pink-dark-a-8: #ff68c8a2;--colors-pink-dark-a-9: #fe49bcd4;--colors-pink-dark-a-10: #ff5cc0dc;--colors-pink-dark-a-11: #ff8dcc;--colors-pink-dark-a-12: #ffd3ecfd;--colors-pink-dark-p3-1: color(display-p3 .093 .068 .089);--colors-pink-dark-p3-2: color(display-p3 .121 .073 .11);--colors-pink-dark-p3-3: color(display-p3 .198 .098 .179);--colors-pink-dark-p3-4: color(display-p3 .271 .095 .231);--colors-pink-dark-p3-5: color(display-p3 .32 .127 .273);--colors-pink-dark-p3-6: color(display-p3 .382 .177 .326);--colors-pink-dark-p3-7: color(display-p3 .477 .238 .405);--colors-pink-dark-p3-8: color(display-p3 .612 .304 .51);--colors-pink-dark-p3-9: color(display-p3 .775 .297 .61);--colors-pink-dark-p3-10: color(display-p3 .808 .356 .645);--colors-pink-dark-p3-11: color(display-p3 1 .535 .78);--colors-pink-dark-p3-12: color(display-p3 .964 .826 .912);--colors-pink-dark-p3-a-1: color(display-p3 .984 .071 .855 / .03);--colors-pink-dark-p3-a-2: color(display-p3 1 .2 .8 / .059);--colors-pink-dark-p3-a-3: color(display-p3 1 .294 .886 / .139);--colors-pink-dark-p3-a-4: color(display-p3 1 .192 .82 / .219);--colors-pink-dark-p3-a-5: color(display-p3 1 .282 .827 / .274);--colors-pink-dark-p3-a-6: color(display-p3 1 .396 .835 / .337);--colors-pink-dark-p3-a-7: color(display-p3 1 .459 .831 / .442);--colors-pink-dark-p3-a-8: color(display-p3 1 .478 .827 / .585);--colors-pink-dark-p3-a-9: color(display-p3 1 .373 .784 / .761);--colors-pink-dark-p3-a-10: color(display-p3 1 .435 .792 / .795);--colors-pink-dark-p3-a-11: color(display-p3 1 .535 .78);--colors-pink-dark-p3-a-12: color(display-p3 .964 .826 .912);--colors-pink-a-1: var(--colors-pink-light-a-1);--colors-pink-a-2: var(--colors-pink-light-a-2);--colors-pink-a-3: var(--colors-pink-light-a-3);--colors-pink-a-4: var(--colors-pink-light-a-4);--colors-pink-a-5: var(--colors-pink-light-a-5);--colors-pink-a-6: var(--colors-pink-light-a-6);--colors-pink-a-7: var(--colors-pink-light-a-7);--colors-pink-a-8: var(--colors-pink-light-a-8);--colors-pink-a-9: var(--colors-pink-light-a-9);--colors-pink-a-10: var(--colors-pink-light-a-10);--colors-pink-a-11: var(--colors-pink-light-a-11);--colors-pink-a-12: var(--colors-pink-light-a-12);--colors-pink-p3-1: var(--colors-pink-light-p3-1);--colors-pink-p3-2: var(--colors-pink-light-p3-2);--colors-pink-p3-3: var(--colors-pink-light-p3-3);--colors-pink-p3-4: var(--colors-pink-light-p3-4);--colors-pink-p3-5: var(--colors-pink-light-p3-5);--colors-pink-p3-6: var(--colors-pink-light-p3-6);--colors-pink-p3-7: var(--colors-pink-light-p3-7);--colors-pink-p3-8: var(--colors-pink-light-p3-8);--colors-pink-p3-9: var(--colors-pink-light-p3-9);--colors-pink-p3-10: var(--colors-pink-light-p3-10);--colors-pink-p3-11: var(--colors-pink-light-p3-11);--colors-pink-p3-12: var(--colors-pink-light-p3-12);--colors-pink-p3-a-1: var(--colors-pink-light-p3-a-1);--colors-pink-p3-a-2: var(--colors-pink-light-p3-a-2);--colors-pink-p3-a-3: var(--colors-pink-light-p3-a-3);--colors-pink-p3-a-4: var(--colors-pink-light-p3-a-4);--colors-pink-p3-a-5: var(--colors-pink-light-p3-a-5);--colors-pink-p3-a-6: var(--colors-pink-light-p3-a-6);--colors-pink-p3-a-7: var(--colors-pink-light-p3-a-7);--colors-pink-p3-a-8: var(--colors-pink-light-p3-a-8);--colors-pink-p3-a-9: var(--colors-pink-light-p3-a-9);--colors-pink-p3-a-10: var(--colors-pink-light-p3-a-10);--colors-pink-p3-a-11: var(--colors-pink-light-p3-a-11);--colors-pink-p3-a-12: var(--colors-pink-light-p3-a-12);--colors-purple-1: var(--colors-purple-light-1);--colors-purple-2: var(--colors-purple-light-2);--colors-purple-3: var(--colors-purple-light-3);--colors-purple-4: var(--colors-purple-light-4);--colors-purple-5: var(--colors-purple-light-5);--colors-purple-6: var(--colors-purple-light-6);--colors-purple-7: var(--colors-purple-light-7);--colors-purple-8: var(--colors-purple-light-8);--colors-purple-9: var(--colors-purple-light-9);--colors-purple-10: var(--colors-purple-light-10);--colors-purple-11: var(--colors-purple-light-11);--colors-purple-12: var(--colors-purple-light-12);--colors-purple-light-1: #fefcfe;--colors-purple-light-2: #fbf7fe;--colors-purple-light-3: #f7edfe;--colors-purple-light-4: #f2e2fc;--colors-purple-light-5: #ead5f9;--colors-purple-light-6: #e0c4f4;--colors-purple-light-7: #d1afec;--colors-purple-light-8: #be93e4;--colors-purple-light-9: #8e4ec6;--colors-purple-light-10: #8347b9;--colors-purple-light-11: #8145b5;--colors-purple-light-12: #402060;--colors-purple-light-a-1: #aa00aa03;--colors-purple-light-a-2: #8000e008;--colors-purple-light-a-3: #8e00f112;--colors-purple-light-a-4: #8d00e51d;--colors-purple-light-a-5: #8000db2a;--colors-purple-light-a-6: #7a01d03b;--colors-purple-light-a-7: #6d00c350;--colors-purple-light-a-8: #6600c06c;--colors-purple-light-a-9: #5c00adb1;--colors-purple-light-a-10: #53009eb8;--colors-purple-light-a-11: #52009aba;--colors-purple-light-a-12: #250049df;--colors-purple-light-p3-1: color(display-p3 .995 .988 .996);--colors-purple-light-p3-2: color(display-p3 .983 .971 .993);--colors-purple-light-p3-3: color(display-p3 .963 .931 .989);--colors-purple-light-p3-4: color(display-p3 .937 .888 .981);--colors-purple-light-p3-5: color(display-p3 .904 .837 .966);--colors-purple-light-p3-6: color(display-p3 .86 .774 .942);--colors-purple-light-p3-7: color(display-p3 .799 .69 .91);--colors-purple-light-p3-8: color(display-p3 .719 .583 .874);--colors-purple-light-p3-9: color(display-p3 .523 .318 .751);--colors-purple-light-p3-10: color(display-p3 .483 .289 .7);--colors-purple-light-p3-11: color(display-p3 .473 .281 .687);--colors-purple-light-p3-12: color(display-p3 .234 .132 .363);--colors-purple-light-p3-a-1: color(display-p3 .675 .024 .675 / .012);--colors-purple-light-p3-a-2: color(display-p3 .443 .024 .722 / .028);--colors-purple-light-p3-a-3: color(display-p3 .506 .008 .835 / .071);--colors-purple-light-p3-a-4: color(display-p3 .451 .004 .831 / .114);--colors-purple-light-p3-a-5: color(display-p3 .431 .004 .788 / .165);--colors-purple-light-p3-a-6: color(display-p3 .384 .004 .745 / .228);--colors-purple-light-p3-a-7: color(display-p3 .357 .004 .71 / .31);--colors-purple-light-p3-a-8: color(display-p3 .322 .004 .702 / .416);--colors-purple-light-p3-a-9: color(display-p3 .298 0 .639 / .683);--colors-purple-light-p3-a-10: color(display-p3 .271 0 .58 / .71);--colors-purple-light-p3-a-11: color(display-p3 .473 .281 .687);--colors-purple-light-p3-a-12: color(display-p3 .234 .132 .363);--colors-purple-dark-1: #18111b;--colors-purple-dark-2: #1e1523;--colors-purple-dark-3: #301c3b;--colors-purple-dark-4: #3d224e;--colors-purple-dark-5: #48295c;--colors-purple-dark-6: #54346b;--colors-purple-dark-7: #664282;--colors-purple-dark-8: #8457aa;--colors-purple-dark-9: #8e4ec6;--colors-purple-dark-10: #9a5cd0;--colors-purple-dark-11: #d19dff;--colors-purple-dark-12: #ecd9fa;--colors-purple-dark-a-1: #b412f90b;--colors-purple-dark-a-2: #b744f714;--colors-purple-dark-a-3: #c150ff2d;--colors-purple-dark-a-4: #bb53fd42;--colors-purple-dark-a-5: #be5cfd51;--colors-purple-dark-a-6: #c16dfd61;--colors-purple-dark-a-7: #c378fd7a;--colors-purple-dark-a-8: #c47effa4;--colors-purple-dark-a-9: #b661ffc2;--colors-purple-dark-a-10: #bc6fffcd;--colors-purple-dark-a-11: #d19dff;--colors-purple-dark-a-12: #f1ddfffa;--colors-purple-dark-p3-1: color(display-p3 .09 .068 .103);--colors-purple-dark-p3-2: color(display-p3 .113 .082 .134);--colors-purple-dark-p3-3: color(display-p3 .175 .112 .224);--colors-purple-dark-p3-4: color(display-p3 .224 .137 .297);--colors-purple-dark-p3-5: color(display-p3 .264 .167 .349);--colors-purple-dark-p3-6: color(display-p3 .311 .208 .406);--colors-purple-dark-p3-7: color(display-p3 .381 .266 .496);--colors-purple-dark-p3-8: color(display-p3 .49 .349 .649);--colors-purple-dark-p3-9: color(display-p3 .523 .318 .751);--colors-purple-dark-p3-10: color(display-p3 .57 .373 .791);--colors-purple-dark-p3-11: color(display-p3 .8 .62 1);--colors-purple-dark-p3-12: color(display-p3 .913 .854 .971);--colors-purple-dark-p3-a-1: color(display-p3 .686 .071 .996 / .038);--colors-purple-dark-p3-a-2: color(display-p3 .722 .286 .996 / .072);--colors-purple-dark-p3-a-3: color(display-p3 .718 .349 .996 / .169);--colors-purple-dark-p3-a-4: color(display-p3 .702 .353 1 / .248);--colors-purple-dark-p3-a-5: color(display-p3 .718 .404 1 / .303);--colors-purple-dark-p3-a-6: color(display-p3 .733 .455 1 / .366);--colors-purple-dark-p3-a-7: color(display-p3 .753 .506 1 / .458);--colors-purple-dark-p3-a-8: color(display-p3 .749 .522 1 / .622);--colors-purple-dark-p3-a-9: color(display-p3 .686 .408 1 / .736);--colors-purple-dark-p3-a-10: color(display-p3 .71 .459 1 / .778);--colors-purple-dark-p3-a-11: color(display-p3 .8 .62 1);--colors-purple-dark-p3-a-12: color(display-p3 .913 .854 .971);--colors-purple-a-1: var(--colors-purple-light-a-1);--colors-purple-a-2: var(--colors-purple-light-a-2);--colors-purple-a-3: var(--colors-purple-light-a-3);--colors-purple-a-4: var(--colors-purple-light-a-4);--colors-purple-a-5: var(--colors-purple-light-a-5);--colors-purple-a-6: var(--colors-purple-light-a-6);--colors-purple-a-7: var(--colors-purple-light-a-7);--colors-purple-a-8: var(--colors-purple-light-a-8);--colors-purple-a-9: var(--colors-purple-light-a-9);--colors-purple-a-10: var(--colors-purple-light-a-10);--colors-purple-a-11: var(--colors-purple-light-a-11);--colors-purple-a-12: var(--colors-purple-light-a-12);--colors-purple-p3-1: var(--colors-purple-light-p3-1);--colors-purple-p3-2: var(--colors-purple-light-p3-2);--colors-purple-p3-3: var(--colors-purple-light-p3-3);--colors-purple-p3-4: var(--colors-purple-light-p3-4);--colors-purple-p3-5: var(--colors-purple-light-p3-5);--colors-purple-p3-6: var(--colors-purple-light-p3-6);--colors-purple-p3-7: var(--colors-purple-light-p3-7);--colors-purple-p3-8: var(--colors-purple-light-p3-8);--colors-purple-p3-9: var(--colors-purple-light-p3-9);--colors-purple-p3-10: var(--colors-purple-light-p3-10);--colors-purple-p3-11: var(--colors-purple-light-p3-11);--colors-purple-p3-12: var(--colors-purple-light-p3-12);--colors-purple-p3-a-1: var(--colors-purple-light-p3-a-1);--colors-purple-p3-a-2: var(--colors-purple-light-p3-a-2);--colors-purple-p3-a-3: var(--colors-purple-light-p3-a-3);--colors-purple-p3-a-4: var(--colors-purple-light-p3-a-4);--colors-purple-p3-a-5: var(--colors-purple-light-p3-a-5);--colors-purple-p3-a-6: var(--colors-purple-light-p3-a-6);--colors-purple-p3-a-7: var(--colors-purple-light-p3-a-7);--colors-purple-p3-a-8: var(--colors-purple-light-p3-a-8);--colors-purple-p3-a-9: var(--colors-purple-light-p3-a-9);--colors-purple-p3-a-10: var(--colors-purple-light-p3-a-10);--colors-purple-p3-a-11: var(--colors-purple-light-p3-a-11);--colors-purple-p3-a-12: var(--colors-purple-light-p3-a-12);--colors-red-1: var(--colors-red-light-1);--colors-red-2: var(--colors-red-light-2);--colors-red-3: var(--colors-red-light-3);--colors-red-4: var(--colors-red-light-4);--colors-red-5: var(--colors-red-light-5);--colors-red-6: var(--colors-red-light-6);--colors-red-7: var(--colors-red-light-7);--colors-red-8: var(--colors-red-light-8);--colors-red-9: var(--colors-red-light-9);--colors-red-10: var(--colors-red-light-10);--colors-red-11: var(--colors-red-light-11);--colors-red-12: var(--colors-red-light-12);--colors-red-light-1: #fffcfc;--colors-red-light-2: #fff7f7;--colors-red-light-3: #feebec;--colors-red-light-4: #ffdbdc;--colors-red-light-5: #ffcdce;--colors-red-light-6: #fdbdbe;--colors-red-light-7: #f4a9aa;--colors-red-light-8: #eb8e90;--colors-red-light-9: #e5484d;--colors-red-light-10: #dc3e42;--colors-red-light-11: #ce2c31;--colors-red-light-12: #641723;--colors-red-light-a-1: #ff000003;--colors-red-light-a-2: #ff000008;--colors-red-light-a-3: #f3000d14;--colors-red-light-a-4: #ff000824;--colors-red-light-a-5: #ff000632;--colors-red-light-a-6: #f8000442;--colors-red-light-a-7: #df000356;--colors-red-light-a-8: #d2000571;--colors-red-light-a-9: #db0007b7;--colors-red-light-a-10: #d10005c1;--colors-red-light-a-11: #c40006d3;--colors-red-light-a-12: #55000de8;--colors-red-light-p3-1: color(display-p3 .998 .989 .988);--colors-red-light-p3-2: color(display-p3 .995 .971 .971);--colors-red-light-p3-3: color(display-p3 .985 .925 .925);--colors-red-light-p3-4: color(display-p3 .999 .866 .866);--colors-red-light-p3-5: color(display-p3 .984 .812 .811);--colors-red-light-p3-6: color(display-p3 .955 .751 .749);--colors-red-light-p3-7: color(display-p3 .915 .675 .672);--colors-red-light-p3-8: color(display-p3 .872 .575 .572);--colors-red-light-p3-9: color(display-p3 .83 .329 .324);--colors-red-light-p3-10: color(display-p3 .798 .294 .285);--colors-red-light-p3-11: color(display-p3 .744 .234 .222);--colors-red-light-p3-12: color(display-p3 .36 .115 .143);--colors-red-light-p3-a-1: color(display-p3 .675 .024 .024 / .012);--colors-red-light-p3-a-2: color(display-p3 .863 .024 .024 / .028);--colors-red-light-p3-a-3: color(display-p3 .792 .008 .008 / .075);--colors-red-light-p3-a-4: color(display-p3 1 .008 .008 / .134);--colors-red-light-p3-a-5: color(display-p3 .918 .008 .008 / .189);--colors-red-light-p3-a-6: color(display-p3 .831 .02 .004 / .251);--colors-red-light-p3-a-7: color(display-p3 .741 .016 .004 / .33);--colors-red-light-p3-a-8: color(display-p3 .698 .012 .004 / .428);--colors-red-light-p3-a-9: color(display-p3 .749 .008 0 / .675);--colors-red-light-p3-a-10: color(display-p3 .714 .012 0 / .714);--colors-red-light-p3-a-11: color(display-p3 .744 .234 .222);--colors-red-light-p3-a-12: color(display-p3 .36 .115 .143);--colors-red-dark-1: #191111;--colors-red-dark-2: #201314;--colors-red-dark-3: #3b1219;--colors-red-dark-4: #500f1c;--colors-red-dark-5: #611623;--colors-red-dark-6: #72232d;--colors-red-dark-7: #8c333a;--colors-red-dark-8: #b54548;--colors-red-dark-9: #e5484d;--colors-red-dark-10: #ec5d5e;--colors-red-dark-11: #ff9592;--colors-red-dark-12: #ffd1d9;--colors-red-dark-a-1: #f4121209;--colors-red-dark-a-2: #f22f3e11;--colors-red-dark-a-3: #ff173f2d;--colors-red-dark-a-4: #fe0a3b44;--colors-red-dark-a-5: #ff204756;--colors-red-dark-a-6: #ff3e5668;--colors-red-dark-a-7: #ff536184;--colors-red-dark-a-8: #ff5d61b0;--colors-red-dark-a-9: #fe4e54e4;--colors-red-dark-a-10: #ff6465eb;--colors-red-dark-a-11: #ff9592;--colors-red-dark-a-12: #ffd1d9;--colors-red-dark-p3-1: color(display-p3 .093 .068 .067);--colors-red-dark-p3-2: color(display-p3 .118 .077 .079);--colors-red-dark-p3-3: color(display-p3 .211 .081 .099);--colors-red-dark-p3-4: color(display-p3 .287 .079 .113);--colors-red-dark-p3-5: color(display-p3 .348 .11 .142);--colors-red-dark-p3-6: color(display-p3 .414 .16 .183);--colors-red-dark-p3-7: color(display-p3 .508 .224 .236);--colors-red-dark-p3-8: color(display-p3 .659 .298 .297);--colors-red-dark-p3-9: color(display-p3 .83 .329 .324);--colors-red-dark-p3-10: color(display-p3 .861 .403 .387);--colors-red-dark-p3-11: color(display-p3 1 .57 .55);--colors-red-dark-p3-12: color(display-p3 .971 .826 .852);--colors-red-dark-p3-a-1: color(display-p3 .984 .071 .071 / .03);--colors-red-dark-p3-a-2: color(display-p3 .996 .282 .282 / .055);--colors-red-dark-p3-a-3: color(display-p3 1 .169 .271 / .156);--colors-red-dark-p3-a-4: color(display-p3 1 .118 .267 / .236);--colors-red-dark-p3-a-5: color(display-p3 1 .212 .314 / .303);--colors-red-dark-p3-a-6: color(display-p3 1 .318 .38 / .374);--colors-red-dark-p3-a-7: color(display-p3 1 .4 .424 / .475);--colors-red-dark-p3-a-8: color(display-p3 1 .431 .431 / .635);--colors-red-dark-p3-a-9: color(display-p3 1 .388 .384 / .82);--colors-red-dark-p3-a-10: color(display-p3 1 .463 .447 / .853);--colors-red-dark-p3-a-11: color(display-p3 1 .57 .55);--colors-red-dark-p3-a-12: color(display-p3 .971 .826 .852);--colors-red-a-1: var(--colors-red-light-a-1);--colors-red-a-2: var(--colors-red-light-a-2);--colors-red-a-3: var(--colors-red-light-a-3);--colors-red-a-4: var(--colors-red-light-a-4);--colors-red-a-5: var(--colors-red-light-a-5);--colors-red-a-6: var(--colors-red-light-a-6);--colors-red-a-7: var(--colors-red-light-a-7);--colors-red-a-8: var(--colors-red-light-a-8);--colors-red-a-9: var(--colors-red-light-a-9);--colors-red-a-10: var(--colors-red-light-a-10);--colors-red-a-11: var(--colors-red-light-a-11);--colors-red-a-12: var(--colors-red-light-a-12);--colors-red-p3-1: var(--colors-red-light-p3-1);--colors-red-p3-2: var(--colors-red-light-p3-2);--colors-red-p3-3: var(--colors-red-light-p3-3);--colors-red-p3-4: var(--colors-red-light-p3-4);--colors-red-p3-5: var(--colors-red-light-p3-5);--colors-red-p3-6: var(--colors-red-light-p3-6);--colors-red-p3-7: var(--colors-red-light-p3-7);--colors-red-p3-8: var(--colors-red-light-p3-8);--colors-red-p3-9: var(--colors-red-light-p3-9);--colors-red-p3-10: var(--colors-red-light-p3-10);--colors-red-p3-11: var(--colors-red-light-p3-11);--colors-red-p3-12: var(--colors-red-light-p3-12);--colors-red-p3-a-1: var(--colors-red-light-p3-a-1);--colors-red-p3-a-2: var(--colors-red-light-p3-a-2);--colors-red-p3-a-3: var(--colors-red-light-p3-a-3);--colors-red-p3-a-4: var(--colors-red-light-p3-a-4);--colors-red-p3-a-5: var(--colors-red-light-p3-a-5);--colors-red-p3-a-6: var(--colors-red-light-p3-a-6);--colors-red-p3-a-7: var(--colors-red-light-p3-a-7);--colors-red-p3-a-8: var(--colors-red-light-p3-a-8);--colors-red-p3-a-9: var(--colors-red-light-p3-a-9);--colors-red-p3-a-10: var(--colors-red-light-p3-a-10);--colors-red-p3-a-11: var(--colors-red-light-p3-a-11);--colors-red-p3-a-12: var(--colors-red-light-p3-a-12);--colors-ruby-1: var(--colors-ruby-light-1);--colors-ruby-2: var(--colors-ruby-light-2);--colors-ruby-3: var(--colors-ruby-light-3);--colors-ruby-4: var(--colors-ruby-light-4);--colors-ruby-5: var(--colors-ruby-light-5);--colors-ruby-6: var(--colors-ruby-light-6);--colors-ruby-7: var(--colors-ruby-light-7);--colors-ruby-8: var(--colors-ruby-light-8);--colors-ruby-9: var(--colors-ruby-light-9);--colors-ruby-10: var(--colors-ruby-light-10);--colors-ruby-11: var(--colors-ruby-light-11);--colors-ruby-12: var(--colors-ruby-light-12);--colors-ruby-light-1: #fffcfd;--colors-ruby-light-2: #fff7f8;--colors-ruby-light-3: #feeaed;--colors-ruby-light-4: #ffdce1;--colors-ruby-light-5: #ffced6;--colors-ruby-light-6: #f8bfc8;--colors-ruby-light-7: #efacb8;--colors-ruby-light-8: #e592a3;--colors-ruby-light-9: #e54666;--colors-ruby-light-10: #dc3b5d;--colors-ruby-light-11: #ca244d;--colors-ruby-light-12: #64172b;--colors-ruby-light-a-1: #ff005503;--colors-ruby-light-a-2: #ff002008;--colors-ruby-light-a-3: #f3002515;--colors-ruby-light-a-4: #ff002523;--colors-ruby-light-a-5: #ff002a31;--colors-ruby-light-a-6: #e4002440;--colors-ruby-light-a-7: #ce002553;--colors-ruby-light-a-8: #c300286d;--colors-ruby-light-a-9: #db002cb9;--colors-ruby-light-a-10: #d2002cc4;--colors-ruby-light-a-11: #c10030db;--colors-ruby-light-a-12: #550016e8;--colors-ruby-light-p3-1: color(display-p3 .998 .989 .992);--colors-ruby-light-p3-2: color(display-p3 .995 .971 .974);--colors-ruby-light-p3-3: color(display-p3 .983 .92 .928);--colors-ruby-light-p3-4: color(display-p3 .987 .869 .885);--colors-ruby-light-p3-5: color(display-p3 .968 .817 .839);--colors-ruby-light-p3-6: color(display-p3 .937 .758 .786);--colors-ruby-light-p3-7: color(display-p3 .897 .685 .721);--colors-ruby-light-p3-8: color(display-p3 .851 .588 .639);--colors-ruby-light-p3-9: color(display-p3 .83 .323 .408);--colors-ruby-light-p3-10: color(display-p3 .795 .286 .375);--colors-ruby-light-p3-11: color(display-p3 .728 .211 .311);--colors-ruby-light-p3-12: color(display-p3 .36 .115 .171);--colors-ruby-light-p3-a-1: color(display-p3 .675 .024 .349 / .012);--colors-ruby-light-p3-a-2: color(display-p3 .863 .024 .024 / .028);--colors-ruby-light-p3-a-3: color(display-p3 .804 .008 .11 / .079);--colors-ruby-light-p3-a-4: color(display-p3 .91 .008 .125 / .13);--colors-ruby-light-p3-a-5: color(display-p3 .831 .004 .133 / .185);--colors-ruby-light-p3-a-6: color(display-p3 .745 .004 .118 / .244);--colors-ruby-light-p3-a-7: color(display-p3 .678 .004 .114 / .314);--colors-ruby-light-p3-a-8: color(display-p3 .639 .004 .125 / .412);--colors-ruby-light-p3-a-9: color(display-p3 .753 0 .129 / .679);--colors-ruby-light-p3-a-10: color(display-p3 .714 0 .125 / .714);--colors-ruby-light-p3-a-11: color(display-p3 .728 .211 .311);--colors-ruby-light-p3-a-12: color(display-p3 .36 .115 .171);--colors-ruby-dark-1: #191113;--colors-ruby-dark-2: #1e1517;--colors-ruby-dark-3: #3a141e;--colors-ruby-dark-4: #4e1325;--colors-ruby-dark-5: #5e1a2e;--colors-ruby-dark-6: #6f2539;--colors-ruby-dark-7: #883447;--colors-ruby-dark-8: #b3445a;--colors-ruby-dark-9: #e54666;--colors-ruby-dark-10: #ec5a72;--colors-ruby-dark-11: #ff949d;--colors-ruby-dark-12: #fed2e1;--colors-ruby-dark-a-1: #f4124a09;--colors-ruby-dark-a-2: #fe5a7f0e;--colors-ruby-dark-a-3: #ff235d2c;--colors-ruby-dark-a-4: #fd195e42;--colors-ruby-dark-a-5: #fe2d6b53;--colors-ruby-dark-a-6: #ff447665;--colors-ruby-dark-a-7: #ff577d80;--colors-ruby-dark-a-8: #ff5c7cae;--colors-ruby-dark-a-9: #fe4c70e4;--colors-ruby-dark-a-10: #ff617beb;--colors-ruby-dark-a-11: #ff949d;--colors-ruby-dark-a-12: #ffd3e2fe;--colors-ruby-dark-p3-1: color(display-p3 .093 .068 .074);--colors-ruby-dark-p3-2: color(display-p3 .113 .083 .089);--colors-ruby-dark-p3-3: color(display-p3 .208 .088 .117);--colors-ruby-dark-p3-4: color(display-p3 .279 .092 .147);--colors-ruby-dark-p3-5: color(display-p3 .337 .12 .18);--colors-ruby-dark-p3-6: color(display-p3 .401 .166 .223);--colors-ruby-dark-p3-7: color(display-p3 .495 .224 .281);--colors-ruby-dark-p3-8: color(display-p3 .652 .295 .359);--colors-ruby-dark-p3-9: color(display-p3 .83 .323 .408);--colors-ruby-dark-p3-10: color(display-p3 .857 .392 .455);--colors-ruby-dark-p3-11: color(display-p3 1 .57 .59);--colors-ruby-dark-p3-12: color(display-p3 .968 .83 .88);--colors-ruby-dark-p3-a-1: color(display-p3 .984 .071 .329 / .03);--colors-ruby-dark-p3-a-2: color(display-p3 .992 .376 .529 / .051);--colors-ruby-dark-p3-a-3: color(display-p3 .996 .196 .404 / .152);--colors-ruby-dark-p3-a-4: color(display-p3 1 .173 .416 / .227);--colors-ruby-dark-p3-a-5: color(display-p3 1 .259 .459 / .29);--colors-ruby-dark-p3-a-6: color(display-p3 1 .341 .506 / .358);--colors-ruby-dark-p3-a-7: color(display-p3 1 .412 .541 / .458);--colors-ruby-dark-p3-a-8: color(display-p3 1 .431 .537 / .627);--colors-ruby-dark-p3-a-9: color(display-p3 1 .376 .482 / .82);--colors-ruby-dark-p3-a-10: color(display-p3 1 .447 .522 / .849);--colors-ruby-dark-p3-a-11: color(display-p3 1 .57 .59);--colors-ruby-dark-p3-a-12: color(display-p3 .968 .83 .88);--colors-ruby-a-1: var(--colors-ruby-light-a-1);--colors-ruby-a-2: var(--colors-ruby-light-a-2);--colors-ruby-a-3: var(--colors-ruby-light-a-3);--colors-ruby-a-4: var(--colors-ruby-light-a-4);--colors-ruby-a-5: var(--colors-ruby-light-a-5);--colors-ruby-a-6: var(--colors-ruby-light-a-6);--colors-ruby-a-7: var(--colors-ruby-light-a-7);--colors-ruby-a-8: var(--colors-ruby-light-a-8);--colors-ruby-a-9: var(--colors-ruby-light-a-9);--colors-ruby-a-10: var(--colors-ruby-light-a-10);--colors-ruby-a-11: var(--colors-ruby-light-a-11);--colors-ruby-a-12: var(--colors-ruby-light-a-12);--colors-ruby-p3-1: var(--colors-ruby-light-p3-1);--colors-ruby-p3-2: var(--colors-ruby-light-p3-2);--colors-ruby-p3-3: var(--colors-ruby-light-p3-3);--colors-ruby-p3-4: var(--colors-ruby-light-p3-4);--colors-ruby-p3-5: var(--colors-ruby-light-p3-5);--colors-ruby-p3-6: var(--colors-ruby-light-p3-6);--colors-ruby-p3-7: var(--colors-ruby-light-p3-7);--colors-ruby-p3-8: var(--colors-ruby-light-p3-8);--colors-ruby-p3-9: var(--colors-ruby-light-p3-9);--colors-ruby-p3-10: var(--colors-ruby-light-p3-10);--colors-ruby-p3-11: var(--colors-ruby-light-p3-11);--colors-ruby-p3-12: var(--colors-ruby-light-p3-12);--colors-ruby-p3-a-1: var(--colors-ruby-light-p3-a-1);--colors-ruby-p3-a-2: var(--colors-ruby-light-p3-a-2);--colors-ruby-p3-a-3: var(--colors-ruby-light-p3-a-3);--colors-ruby-p3-a-4: var(--colors-ruby-light-p3-a-4);--colors-ruby-p3-a-5: var(--colors-ruby-light-p3-a-5);--colors-ruby-p3-a-6: var(--colors-ruby-light-p3-a-6);--colors-ruby-p3-a-7: var(--colors-ruby-light-p3-a-7);--colors-ruby-p3-a-8: var(--colors-ruby-light-p3-a-8);--colors-ruby-p3-a-9: var(--colors-ruby-light-p3-a-9);--colors-ruby-p3-a-10: var(--colors-ruby-light-p3-a-10);--colors-ruby-p3-a-11: var(--colors-ruby-light-p3-a-11);--colors-ruby-p3-a-12: var(--colors-ruby-light-p3-a-12);--colors-teal-1: var(--colors-teal-light-1);--colors-teal-2: var(--colors-teal-light-2);--colors-teal-3: var(--colors-teal-light-3);--colors-teal-4: var(--colors-teal-light-4);--colors-teal-5: var(--colors-teal-light-5);--colors-teal-6: var(--colors-teal-light-6);--colors-teal-7: var(--colors-teal-light-7);--colors-teal-8: var(--colors-teal-light-8);--colors-teal-9: var(--colors-teal-light-9);--colors-teal-10: var(--colors-teal-light-10);--colors-teal-11: var(--colors-teal-light-11);--colors-teal-12: var(--colors-teal-light-12);--colors-teal-light-1: #fafefd;--colors-teal-light-2: #f3fbf9;--colors-teal-light-3: #e0f8f3;--colors-teal-light-4: #ccf3ea;--colors-teal-light-5: #b8eae0;--colors-teal-light-6: #a1ded2;--colors-teal-light-7: #83cdc1;--colors-teal-light-8: #53b9ab;--colors-teal-light-9: #12a594;--colors-teal-light-10: #0d9b8a;--colors-teal-light-11: #008573;--colors-teal-light-12: #0d3d38;--colors-teal-light-a-1: #00cc9905;--colors-teal-light-a-2: #00aa800c;--colors-teal-light-a-3: #00c69d1f;--colors-teal-light-a-4: #00c39633;--colors-teal-light-a-5: #00b49047;--colors-teal-light-a-6: #00a6855e;--colors-teal-light-a-7: #0099807c;--colors-teal-light-a-8: #009783ac;--colors-teal-light-a-9: #009e8ced;--colors-teal-light-a-10: #009684f2;--colors-teal-light-a-11: #008573;--colors-teal-light-a-12: #00332df2;--colors-teal-light-p3-1: color(display-p3 .983 .996 .992);--colors-teal-light-p3-2: color(display-p3 .958 .983 .976);--colors-teal-light-p3-3: color(display-p3 .895 .971 .952);--colors-teal-light-p3-4: color(display-p3 .831 .949 .92);--colors-teal-light-p3-5: color(display-p3 .761 .914 .878);--colors-teal-light-p3-6: color(display-p3 .682 .864 .825);--colors-teal-light-p3-7: color(display-p3 .581 .798 .756);--colors-teal-light-p3-8: color(display-p3 .433 .716 .671);--colors-teal-light-p3-9: color(display-p3 .297 .637 .581);--colors-teal-light-p3-10: color(display-p3 .275 .599 .542);--colors-teal-light-p3-11: color(display-p3 .08 .5 .43);--colors-teal-light-p3-12: color(display-p3 .11 .235 .219);--colors-teal-light-p3-a-1: color(display-p3 .024 .757 .514 / .016);--colors-teal-light-p3-a-2: color(display-p3 .02 .647 .467 / .044);--colors-teal-light-p3-a-3: color(display-p3 .004 .741 .557 / .106);--colors-teal-light-p3-a-4: color(display-p3 .004 .702 .537 / .169);--colors-teal-light-p3-a-5: color(display-p3 .004 .643 .494 / .24);--colors-teal-light-p3-a-6: color(display-p3 .004 .569 .447 / .318);--colors-teal-light-p3-a-7: color(display-p3 .004 .518 .424 / .42);--colors-teal-light-p3-a-8: color(display-p3 0 .506 .424 / .569);--colors-teal-light-p3-a-9: color(display-p3 0 .482 .404 / .702);--colors-teal-light-p3-a-10: color(display-p3 0 .451 .369 / .726);--colors-teal-light-p3-a-11: color(display-p3 .08 .5 .43);--colors-teal-light-p3-a-12: color(display-p3 .11 .235 .219);--colors-teal-dark-1: #0d1514;--colors-teal-dark-2: #111c1b;--colors-teal-dark-3: #0d2d2a;--colors-teal-dark-4: #023b37;--colors-teal-dark-5: #084843;--colors-teal-dark-6: #145750;--colors-teal-dark-7: #1c6961;--colors-teal-dark-8: #207e73;--colors-teal-dark-9: #12a594;--colors-teal-dark-10: #0eb39e;--colors-teal-dark-11: #0bd8b6;--colors-teal-dark-12: #adf0dd;--colors-teal-dark-a-1: #00deab05;--colors-teal-dark-a-2: #12fbe60c;--colors-teal-dark-a-3: #00ffe61e;--colors-teal-dark-a-4: #00ffe92d;--colors-teal-dark-a-5: #00ffea3b;--colors-teal-dark-a-6: #1cffe84b;--colors-teal-dark-a-7: #2efde85f;--colors-teal-dark-a-8: #32ffe775;--colors-teal-dark-a-9: #13ffe49f;--colors-teal-dark-a-10: #0dffe0ae;--colors-teal-dark-a-11: #0afed5d6;--colors-teal-dark-a-12: #b8ffebef;--colors-teal-dark-p3-1: color(display-p3 .059 .083 .079);--colors-teal-dark-p3-2: color(display-p3 .075 .11 .107);--colors-teal-dark-p3-3: color(display-p3 .087 .175 .165);--colors-teal-dark-p3-4: color(display-p3 .087 .227 .214);--colors-teal-dark-p3-5: color(display-p3 .12 .277 .261);--colors-teal-dark-p3-6: color(display-p3 .162 .335 .314);--colors-teal-dark-p3-7: color(display-p3 .205 .406 .379);--colors-teal-dark-p3-8: color(display-p3 .245 .489 .453);--colors-teal-dark-p3-9: color(display-p3 .297 .637 .581);--colors-teal-dark-p3-10: color(display-p3 .319 .69 .62);--colors-teal-dark-p3-11: color(display-p3 .388 .835 .719);--colors-teal-dark-p3-12: color(display-p3 .734 .934 .87);--colors-teal-dark-p3-a-1: color(display-p3 0 .992 .761 / .017);--colors-teal-dark-p3-a-2: color(display-p3 .235 .988 .902 / .047);--colors-teal-dark-p3-a-3: color(display-p3 .235 1 .898 / .118);--colors-teal-dark-p3-a-4: color(display-p3 .18 .996 .929 / .173);--colors-teal-dark-p3-a-5: color(display-p3 .31 1 .933 / .227);--colors-teal-dark-p3-a-6: color(display-p3 .396 1 .933 / .286);--colors-teal-dark-p3-a-7: color(display-p3 .443 1 .925 / .366);--colors-teal-dark-p3-a-8: color(display-p3 .459 1 .925 / .454);--colors-teal-dark-p3-a-9: color(display-p3 .443 .996 .906 / .61);--colors-teal-dark-p3-a-10: color(display-p3 .439 .996 .89 / .669);--colors-teal-dark-p3-a-11: color(display-p3 .388 .835 .719);--colors-teal-dark-p3-a-12: color(display-p3 .734 .934 .87);--colors-teal-a-1: var(--colors-teal-light-a-1);--colors-teal-a-2: var(--colors-teal-light-a-2);--colors-teal-a-3: var(--colors-teal-light-a-3);--colors-teal-a-4: var(--colors-teal-light-a-4);--colors-teal-a-5: var(--colors-teal-light-a-5);--colors-teal-a-6: var(--colors-teal-light-a-6);--colors-teal-a-7: var(--colors-teal-light-a-7);--colors-teal-a-8: var(--colors-teal-light-a-8);--colors-teal-a-9: var(--colors-teal-light-a-9);--colors-teal-a-10: var(--colors-teal-light-a-10);--colors-teal-a-11: var(--colors-teal-light-a-11);--colors-teal-a-12: var(--colors-teal-light-a-12);--colors-teal-p3-1: var(--colors-teal-light-p3-1);--colors-teal-p3-2: var(--colors-teal-light-p3-2);--colors-teal-p3-3: var(--colors-teal-light-p3-3);--colors-teal-p3-4: var(--colors-teal-light-p3-4);--colors-teal-p3-5: var(--colors-teal-light-p3-5);--colors-teal-p3-6: var(--colors-teal-light-p3-6);--colors-teal-p3-7: var(--colors-teal-light-p3-7);--colors-teal-p3-8: var(--colors-teal-light-p3-8);--colors-teal-p3-9: var(--colors-teal-light-p3-9);--colors-teal-p3-10: var(--colors-teal-light-p3-10);--colors-teal-p3-11: var(--colors-teal-light-p3-11);--colors-teal-p3-12: var(--colors-teal-light-p3-12);--colors-teal-p3-a-1: var(--colors-teal-light-p3-a-1);--colors-teal-p3-a-2: var(--colors-teal-light-p3-a-2);--colors-teal-p3-a-3: var(--colors-teal-light-p3-a-3);--colors-teal-p3-a-4: var(--colors-teal-light-p3-a-4);--colors-teal-p3-a-5: var(--colors-teal-light-p3-a-5);--colors-teal-p3-a-6: var(--colors-teal-light-p3-a-6);--colors-teal-p3-a-7: var(--colors-teal-light-p3-a-7);--colors-teal-p3-a-8: var(--colors-teal-light-p3-a-8);--colors-teal-p3-a-9: var(--colors-teal-light-p3-a-9);--colors-teal-p3-a-10: var(--colors-teal-light-p3-a-10);--colors-teal-p3-a-11: var(--colors-teal-light-p3-a-11);--colors-teal-p3-a-12: var(--colors-teal-light-p3-a-12);--colors-tomato-1: var(--colors-tomato-light-1);--colors-tomato-2: var(--colors-tomato-light-2);--colors-tomato-3: var(--colors-tomato-light-3);--colors-tomato-4: var(--colors-tomato-light-4);--colors-tomato-5: var(--colors-tomato-light-5);--colors-tomato-6: var(--colors-tomato-light-6);--colors-tomato-7: var(--colors-tomato-light-7);--colors-tomato-8: var(--colors-tomato-light-8);--colors-tomato-9: var(--colors-tomato-light-9);--colors-tomato-10: var(--colors-tomato-light-10);--colors-tomato-11: var(--colors-tomato-light-11);--colors-tomato-12: var(--colors-tomato-light-12);--colors-tomato-light-1: #fffcfc;--colors-tomato-light-2: #fff8f7;--colors-tomato-light-3: #feebe7;--colors-tomato-light-4: #ffdcd3;--colors-tomato-light-5: #ffcdc2;--colors-tomato-light-6: #fdbdaf;--colors-tomato-light-7: #f5a898;--colors-tomato-light-8: #ec8e7b;--colors-tomato-light-9: #e54d2e;--colors-tomato-light-10: #dd4425;--colors-tomato-light-11: #d13415;--colors-tomato-light-12: #5c271f;--colors-tomato-light-a-1: #ff000003;--colors-tomato-light-a-2: #ff200008;--colors-tomato-light-a-3: #f52b0018;--colors-tomato-light-a-4: #ff35002c;--colors-tomato-light-a-5: #ff2e003d;--colors-tomato-light-a-6: #f92d0050;--colors-tomato-light-a-7: #e7280067;--colors-tomato-light-a-8: #db250084;--colors-tomato-light-a-9: #df2600d1;--colors-tomato-light-a-10: #d72400da;--colors-tomato-light-a-11: #cd2200ea;--colors-tomato-light-a-12: #460900e0;--colors-tomato-light-p3-1: color(display-p3 .998 .989 .988);--colors-tomato-light-p3-2: color(display-p3 .994 .974 .969);--colors-tomato-light-p3-3: color(display-p3 .985 .924 .909);--colors-tomato-light-p3-4: color(display-p3 .996 .868 .835);--colors-tomato-light-p3-5: color(display-p3 .98 .812 .77);--colors-tomato-light-p3-6: color(display-p3 .953 .75 .698);--colors-tomato-light-p3-7: color(display-p3 .917 .673 .611);--colors-tomato-light-p3-8: color(display-p3 .875 .575 .502);--colors-tomato-light-p3-9: color(display-p3 .831 .345 .231);--colors-tomato-light-p3-10: color(display-p3 .802 .313 .2);--colors-tomato-light-p3-11: color(display-p3 .755 .259 .152);--colors-tomato-light-p3-12: color(display-p3 .335 .165 .132);--colors-tomato-light-p3-a-1: color(display-p3 .675 .024 .024 / .012);--colors-tomato-light-p3-a-2: color(display-p3 .757 .145 .02 / .032);--colors-tomato-light-p3-a-3: color(display-p3 .831 .184 .012 / .091);--colors-tomato-light-p3-a-4: color(display-p3 .976 .192 .004 / .165);--colors-tomato-light-p3-a-5: color(display-p3 .918 .192 .004 / .232);--colors-tomato-light-p3-a-6: color(display-p3 .847 .173 .004 / .302);--colors-tomato-light-p3-a-7: color(display-p3 .788 .165 .004 / .389);--colors-tomato-light-p3-a-8: color(display-p3 .749 .153 .004 / .499);--colors-tomato-light-p3-a-9: color(display-p3 .78 .149 0 / .769);--colors-tomato-light-p3-a-10: color(display-p3 .757 .141 0 / .8);--colors-tomato-light-p3-a-11: color(display-p3 .755 .259 .152);--colors-tomato-light-p3-a-12: color(display-p3 .335 .165 .132);--colors-tomato-dark-1: #181111;--colors-tomato-dark-2: #1f1513;--colors-tomato-dark-3: #391714;--colors-tomato-dark-4: #4e1511;--colors-tomato-dark-5: #5e1c16;--colors-tomato-dark-6: #6e2920;--colors-tomato-dark-7: #853a2d;--colors-tomato-dark-8: #ac4d39;--colors-tomato-dark-9: #e54d2e;--colors-tomato-dark-10: #ec6142;--colors-tomato-dark-11: #ff977d;--colors-tomato-dark-12: #fbd3cb;--colors-tomato-dark-a-1: #f1121208;--colors-tomato-dark-a-2: #ff55330f;--colors-tomato-dark-a-3: #ff35232b;--colors-tomato-dark-a-4: #fd201142;--colors-tomato-dark-a-5: #fe332153;--colors-tomato-dark-a-6: #ff4f3864;--colors-tomato-dark-a-7: #fd644a7d;--colors-tomato-dark-a-8: #fe6d4ea7;--colors-tomato-dark-a-9: #fe5431e4;--colors-tomato-dark-a-10: #ff6847eb;--colors-tomato-dark-a-11: #ff977d;--colors-tomato-dark-a-12: #ffd6cefb;--colors-tomato-dark-p3-1: color(display-p3 .09 .068 .067);--colors-tomato-dark-p3-2: color(display-p3 .115 .084 .076);--colors-tomato-dark-p3-3: color(display-p3 .205 .097 .083);--colors-tomato-dark-p3-4: color(display-p3 .282 .099 .077);--colors-tomato-dark-p3-5: color(display-p3 .339 .129 .101);--colors-tomato-dark-p3-6: color(display-p3 .398 .179 .141);--colors-tomato-dark-p3-7: color(display-p3 .487 .245 .194);--colors-tomato-dark-p3-8: color(display-p3 .629 .322 .248);--colors-tomato-dark-p3-9: color(display-p3 .831 .345 .231);--colors-tomato-dark-p3-10: color(display-p3 .862 .415 .298);--colors-tomato-dark-p3-11: color(display-p3 1 .585 .455);--colors-tomato-dark-p3-12: color(display-p3 .959 .833 .802);--colors-tomato-dark-p3-a-1: color(display-p3 .973 .071 .071 / .026);--colors-tomato-dark-p3-a-2: color(display-p3 .992 .376 .224 / .051);--colors-tomato-dark-p3-a-3: color(display-p3 .996 .282 .176 / .148);--colors-tomato-dark-p3-a-4: color(display-p3 1 .204 .118 / .232);--colors-tomato-dark-p3-a-5: color(display-p3 1 .286 .192 / .29);--colors-tomato-dark-p3-a-6: color(display-p3 1 .392 .278 / .353);--colors-tomato-dark-p3-a-7: color(display-p3 1 .459 .349 / .45);--colors-tomato-dark-p3-a-8: color(display-p3 1 .49 .369 / .601);--colors-tomato-dark-p3-a-9: color(display-p3 1 .408 .267 / .82);--colors-tomato-dark-p3-a-10: color(display-p3 1 .478 .341 / .853);--colors-tomato-dark-p3-a-11: color(display-p3 1 .585 .455);--colors-tomato-dark-p3-a-12: color(display-p3 .959 .833 .802);--colors-tomato-a-1: var(--colors-tomato-light-a-1);--colors-tomato-a-2: var(--colors-tomato-light-a-2);--colors-tomato-a-3: var(--colors-tomato-light-a-3);--colors-tomato-a-4: var(--colors-tomato-light-a-4);--colors-tomato-a-5: var(--colors-tomato-light-a-5);--colors-tomato-a-6: var(--colors-tomato-light-a-6);--colors-tomato-a-7: var(--colors-tomato-light-a-7);--colors-tomato-a-8: var(--colors-tomato-light-a-8);--colors-tomato-a-9: var(--colors-tomato-light-a-9);--colors-tomato-a-10: var(--colors-tomato-light-a-10);--colors-tomato-a-11: var(--colors-tomato-light-a-11);--colors-tomato-a-12: var(--colors-tomato-light-a-12);--colors-tomato-p3-1: var(--colors-tomato-light-p3-1);--colors-tomato-p3-2: var(--colors-tomato-light-p3-2);--colors-tomato-p3-3: var(--colors-tomato-light-p3-3);--colors-tomato-p3-4: var(--colors-tomato-light-p3-4);--colors-tomato-p3-5: var(--colors-tomato-light-p3-5);--colors-tomato-p3-6: var(--colors-tomato-light-p3-6);--colors-tomato-p3-7: var(--colors-tomato-light-p3-7);--colors-tomato-p3-8: var(--colors-tomato-light-p3-8);--colors-tomato-p3-9: var(--colors-tomato-light-p3-9);--colors-tomato-p3-10: var(--colors-tomato-light-p3-10);--colors-tomato-p3-11: var(--colors-tomato-light-p3-11);--colors-tomato-p3-12: var(--colors-tomato-light-p3-12);--colors-tomato-p3-a-1: var(--colors-tomato-light-p3-a-1);--colors-tomato-p3-a-2: var(--colors-tomato-light-p3-a-2);--colors-tomato-p3-a-3: var(--colors-tomato-light-p3-a-3);--colors-tomato-p3-a-4: var(--colors-tomato-light-p3-a-4);--colors-tomato-p3-a-5: var(--colors-tomato-light-p3-a-5);--colors-tomato-p3-a-6: var(--colors-tomato-light-p3-a-6);--colors-tomato-p3-a-7: var(--colors-tomato-light-p3-a-7);--colors-tomato-p3-a-8: var(--colors-tomato-light-p3-a-8);--colors-tomato-p3-a-9: var(--colors-tomato-light-p3-a-9);--colors-tomato-p3-a-10: var(--colors-tomato-light-p3-a-10);--colors-tomato-p3-a-11: var(--colors-tomato-light-p3-a-11);--colors-tomato-p3-a-12: var(--colors-tomato-light-p3-a-12);--colors-violet-1: var(--colors-violet-light-1);--colors-violet-2: var(--colors-violet-light-2);--colors-violet-3: var(--colors-violet-light-3);--colors-violet-4: var(--colors-violet-light-4);--colors-violet-5: var(--colors-violet-light-5);--colors-violet-6: var(--colors-violet-light-6);--colors-violet-7: var(--colors-violet-light-7);--colors-violet-8: var(--colors-violet-light-8);--colors-violet-9: var(--colors-violet-light-9);--colors-violet-10: var(--colors-violet-light-10);--colors-violet-11: var(--colors-violet-light-11);--colors-violet-12: var(--colors-violet-light-12);--colors-violet-light-1: #fdfcfe;--colors-violet-light-2: #faf8ff;--colors-violet-light-3: #f4f0fe;--colors-violet-light-4: #ebe4ff;--colors-violet-light-5: #e1d9ff;--colors-violet-light-6: #d4cafe;--colors-violet-light-7: #c2b5f5;--colors-violet-light-8: #aa99ec;--colors-violet-light-9: #6e56cf;--colors-violet-light-10: #654dc4;--colors-violet-light-11: #6550b9;--colors-violet-light-12: #2f265f;--colors-violet-light-a-1: #5500aa03;--colors-violet-light-a-2: #4900ff07;--colors-violet-light-a-3: #4400ee0f;--colors-violet-light-a-4: #4300ff1b;--colors-violet-light-a-5: #3600ff26;--colors-violet-light-a-6: #3100fb35;--colors-violet-light-a-7: #2d01dd4a;--colors-violet-light-a-8: #2b00d066;--colors-violet-light-a-9: #2400b7a9;--colors-violet-light-a-10: #2300abb2;--colors-violet-light-a-11: #1f0099af;--colors-violet-light-a-12: #0b0043d9;--colors-violet-light-p3-1: color(display-p3 .991 .988 .995);--colors-violet-light-p3-2: color(display-p3 .978 .974 .998);--colors-violet-light-p3-3: color(display-p3 .953 .943 .993);--colors-violet-light-p3-4: color(display-p3 .916 .897 1);--colors-violet-light-p3-5: color(display-p3 .876 .851 1);--colors-violet-light-p3-6: color(display-p3 .825 .793 .981);--colors-violet-light-p3-7: color(display-p3 .752 .712 .943);--colors-violet-light-p3-8: color(display-p3 .654 .602 .902);--colors-violet-light-p3-9: color(display-p3 .417 .341 .784);--colors-violet-light-p3-10: color(display-p3 .381 .306 .741);--colors-violet-light-p3-11: color(display-p3 .383 .317 .702);--colors-violet-light-p3-12: color(display-p3 .179 .15 .359);--colors-violet-light-p3-a-1: color(display-p3 .349 .024 .675 / .012);--colors-violet-light-p3-a-2: color(display-p3 .161 .024 .863 / .028);--colors-violet-light-p3-a-3: color(display-p3 .204 .004 .871 / .059);--colors-violet-light-p3-a-4: color(display-p3 .196 .004 1 / .102);--colors-violet-light-p3-a-5: color(display-p3 .165 .008 1 / .15);--colors-violet-light-p3-a-6: color(display-p3 .153 .004 .906 / .208);--colors-violet-light-p3-a-7: color(display-p3 .141 .004 .796 / .287);--colors-violet-light-p3-a-8: color(display-p3 .133 .004 .753 / .397);--colors-violet-light-p3-a-9: color(display-p3 .114 0 .675 / .659);--colors-violet-light-p3-a-10: color(display-p3 .11 0 .627 / .695);--colors-violet-light-p3-a-11: color(display-p3 .383 .317 .702);--colors-violet-light-p3-a-12: color(display-p3 .179 .15 .359);--colors-violet-dark-1: #14121f;--colors-violet-dark-2: #1b1525;--colors-violet-dark-3: #291f43;--colors-violet-dark-4: #33255b;--colors-violet-dark-5: #3c2e69;--colors-violet-dark-6: #473876;--colors-violet-dark-7: #56468b;--colors-violet-dark-8: #6958ad;--colors-violet-dark-9: #6e56cf;--colors-violet-dark-10: #7d66d9;--colors-violet-dark-11: #baa7ff;--colors-violet-dark-12: #e2ddfe;--colors-violet-dark-a-1: #4422ff0f;--colors-violet-dark-a-2: #853ff916;--colors-violet-dark-a-3: #8354fe36;--colors-violet-dark-a-4: #7d51fd50;--colors-violet-dark-a-5: #845ffd5f;--colors-violet-dark-a-6: #8f6cfd6d;--colors-violet-dark-a-7: #9879ff83;--colors-violet-dark-a-8: #977dfea8;--colors-violet-dark-a-9: #8668ffcc;--colors-violet-dark-a-10: #9176fed7;--colors-violet-dark-a-11: #baa7ff;--colors-violet-dark-a-12: #e3defffe;--colors-violet-dark-p3-1: color(display-p3 .077 .071 .118);--colors-violet-dark-p3-2: color(display-p3 .101 .084 .141);--colors-violet-dark-p3-3: color(display-p3 .154 .123 .256);--colors-violet-dark-p3-4: color(display-p3 .191 .148 .345);--colors-violet-dark-p3-5: color(display-p3 .226 .182 .396);--colors-violet-dark-p3-6: color(display-p3 .269 .223 .449);--colors-violet-dark-p3-7: color(display-p3 .326 .277 .53);--colors-violet-dark-p3-8: color(display-p3 .399 .346 .656);--colors-violet-dark-p3-9: color(display-p3 .417 .341 .784);--colors-violet-dark-p3-10: color(display-p3 .477 .402 .823);--colors-violet-dark-p3-11: color(display-p3 .72 .65 1);--colors-violet-dark-p3-12: color(display-p3 .883 .867 .986);--colors-violet-dark-p3-a-1: color(display-p3 .282 .141 .996 / .055);--colors-violet-dark-p3-a-2: color(display-p3 .51 .263 1 / .08);--colors-violet-dark-p3-a-3: color(display-p3 .494 .337 .996 / .202);--colors-violet-dark-p3-a-4: color(display-p3 .49 .345 1 / .299);--colors-violet-dark-p3-a-5: color(display-p3 .525 .392 1 / .353);--colors-violet-dark-p3-a-6: color(display-p3 .569 .455 1 / .408);--colors-violet-dark-p3-a-7: color(display-p3 .588 .494 1 / .496);--colors-violet-dark-p3-a-8: color(display-p3 .596 .51 1 / .631);--colors-violet-dark-p3-a-9: color(display-p3 .522 .424 1 / .769);--colors-violet-dark-p3-a-10: color(display-p3 .576 .482 1 / .811);--colors-violet-dark-p3-a-11: color(display-p3 .72 .65 1);--colors-violet-dark-p3-a-12: color(display-p3 .883 .867 .986);--colors-violet-a-1: var(--colors-violet-light-a-1);--colors-violet-a-2: var(--colors-violet-light-a-2);--colors-violet-a-3: var(--colors-violet-light-a-3);--colors-violet-a-4: var(--colors-violet-light-a-4);--colors-violet-a-5: var(--colors-violet-light-a-5);--colors-violet-a-6: var(--colors-violet-light-a-6);--colors-violet-a-7: var(--colors-violet-light-a-7);--colors-violet-a-8: var(--colors-violet-light-a-8);--colors-violet-a-9: var(--colors-violet-light-a-9);--colors-violet-a-10: var(--colors-violet-light-a-10);--colors-violet-a-11: var(--colors-violet-light-a-11);--colors-violet-a-12: var(--colors-violet-light-a-12);--colors-violet-p3-1: var(--colors-violet-light-p3-1);--colors-violet-p3-2: var(--colors-violet-light-p3-2);--colors-violet-p3-3: var(--colors-violet-light-p3-3);--colors-violet-p3-4: var(--colors-violet-light-p3-4);--colors-violet-p3-5: var(--colors-violet-light-p3-5);--colors-violet-p3-6: var(--colors-violet-light-p3-6);--colors-violet-p3-7: var(--colors-violet-light-p3-7);--colors-violet-p3-8: var(--colors-violet-light-p3-8);--colors-violet-p3-9: var(--colors-violet-light-p3-9);--colors-violet-p3-10: var(--colors-violet-light-p3-10);--colors-violet-p3-11: var(--colors-violet-light-p3-11);--colors-violet-p3-12: var(--colors-violet-light-p3-12);--colors-violet-p3-a-1: var(--colors-violet-light-p3-a-1);--colors-violet-p3-a-2: var(--colors-violet-light-p3-a-2);--colors-violet-p3-a-3: var(--colors-violet-light-p3-a-3);--colors-violet-p3-a-4: var(--colors-violet-light-p3-a-4);--colors-violet-p3-a-5: var(--colors-violet-light-p3-a-5);--colors-violet-p3-a-6: var(--colors-violet-light-p3-a-6);--colors-violet-p3-a-7: var(--colors-violet-light-p3-a-7);--colors-violet-p3-a-8: var(--colors-violet-light-p3-a-8);--colors-violet-p3-a-9: var(--colors-violet-light-p3-a-9);--colors-violet-p3-a-10: var(--colors-violet-light-p3-a-10);--colors-violet-p3-a-11: var(--colors-violet-light-p3-a-11);--colors-violet-p3-a-12: var(--colors-violet-light-p3-a-12);--colors-yellow-1: var(--colors-yellow-light-1);--colors-yellow-2: var(--colors-yellow-light-2);--colors-yellow-3: var(--colors-yellow-light-3);--colors-yellow-4: var(--colors-yellow-light-4);--colors-yellow-5: var(--colors-yellow-light-5);--colors-yellow-6: var(--colors-yellow-light-6);--colors-yellow-7: var(--colors-yellow-light-7);--colors-yellow-8: var(--colors-yellow-light-8);--colors-yellow-9: var(--colors-yellow-light-9);--colors-yellow-10: var(--colors-yellow-light-10);--colors-yellow-11: var(--colors-yellow-light-11);--colors-yellow-12: var(--colors-yellow-light-12);--colors-yellow-light-1: #fdfdf9;--colors-yellow-light-2: #fefce9;--colors-yellow-light-3: #fffab8;--colors-yellow-light-4: #fff394;--colors-yellow-light-5: #ffe770;--colors-yellow-light-6: #f3d768;--colors-yellow-light-7: #e4c767;--colors-yellow-light-8: #d5ae39;--colors-yellow-light-9: #ffe629;--colors-yellow-light-10: #ffdc00;--colors-yellow-light-11: #9e6c00;--colors-yellow-light-12: #473b1f;--colors-yellow-light-a-1: #aaaa0006;--colors-yellow-light-a-2: #f4dd0016;--colors-yellow-light-a-3: #ffee0047;--colors-yellow-light-a-4: #ffe3016b;--colors-yellow-light-a-5: #ffd5008f;--colors-yellow-light-a-6: #ebbc0097;--colors-yellow-light-a-7: #d2a10098;--colors-yellow-light-a-8: #c99700c6;--colors-yellow-light-a-9: #ffe100d6;--colors-yellow-light-a-10: #ffdc00;--colors-yellow-light-a-11: #9e6c00;--colors-yellow-light-a-12: #2e2000e0;--colors-yellow-light-p3-1: color(display-p3 .992 .992 .978);--colors-yellow-light-p3-2: color(display-p3 .995 .99 .922);--colors-yellow-light-p3-3: color(display-p3 .997 .982 .749);--colors-yellow-light-p3-4: color(display-p3 .992 .953 .627);--colors-yellow-light-p3-5: color(display-p3 .984 .91 .51);--colors-yellow-light-p3-6: color(display-p3 .934 .847 .474);--colors-yellow-light-p3-7: color(display-p3 .876 .785 .46);--colors-yellow-light-p3-8: color(display-p3 .811 .689 .313);--colors-yellow-light-p3-9: color(display-p3 1 .92 .22);--colors-yellow-light-p3-10: color(display-p3 .977 .868 .291);--colors-yellow-light-p3-11: color(display-p3 .6 .44 0);--colors-yellow-light-p3-12: color(display-p3 .271 .233 .137);--colors-yellow-light-p3-a-1: color(display-p3 .675 .675 .024 / .024);--colors-yellow-light-p3-a-2: color(display-p3 .953 .855 .008 / .079);--colors-yellow-light-p3-a-3: color(display-p3 .988 .925 .004 / .251);--colors-yellow-light-p3-a-4: color(display-p3 .98 .875 .004 / .373);--colors-yellow-light-p3-a-5: color(display-p3 .969 .816 .004 / .491);--colors-yellow-light-p3-a-6: color(display-p3 .875 .71 0 / .526);--colors-yellow-light-p3-a-7: color(display-p3 .769 .604 0 / .542);--colors-yellow-light-p3-a-8: color(display-p3 .725 .549 0 / .687);--colors-yellow-light-p3-a-9: color(display-p3 1 .898 0 / .781);--colors-yellow-light-p3-a-10: color(display-p3 .969 .812 0 / .71);--colors-yellow-light-p3-a-11: color(display-p3 .6 .44 0);--colors-yellow-light-p3-a-12: color(display-p3 .271 .233 .137);--colors-yellow-dark-1: #14120b;--colors-yellow-dark-2: #1b180f;--colors-yellow-dark-3: #2d2305;--colors-yellow-dark-4: #362b00;--colors-yellow-dark-5: #433500;--colors-yellow-dark-6: #524202;--colors-yellow-dark-7: #665417;--colors-yellow-dark-8: #836a21;--colors-yellow-dark-9: #ffe629;--colors-yellow-dark-10: #ffff57;--colors-yellow-dark-11: #f5e147;--colors-yellow-dark-12: #f6eeb4;--colors-yellow-dark-a-1: #d1510004;--colors-yellow-dark-a-2: #f9b4000b;--colors-yellow-dark-a-3: #ffaa001e;--colors-yellow-dark-a-4: #fdb70028;--colors-yellow-dark-a-5: #febb0036;--colors-yellow-dark-a-6: #fec40046;--colors-yellow-dark-a-7: #fdcb225c;--colors-yellow-dark-a-8: #fdca327b;--colors-yellow-dark-a-9: #ffe629;--colors-yellow-dark-a-10: #ffff57;--colors-yellow-dark-a-11: #fee949f5;--colors-yellow-dark-a-12: #fef6baf6;--colors-yellow-dark-p3-1: color(display-p3 .078 .069 .047);--colors-yellow-dark-p3-2: color(display-p3 .103 .094 .063);--colors-yellow-dark-p3-3: color(display-p3 .168 .137 .039);--colors-yellow-dark-p3-4: color(display-p3 .209 .169 0);--colors-yellow-dark-p3-5: color(display-p3 .255 .209 0);--colors-yellow-dark-p3-6: color(display-p3 .31 .261 .07);--colors-yellow-dark-p3-7: color(display-p3 .389 .331 .135);--colors-yellow-dark-p3-8: color(display-p3 .497 .42 .182);--colors-yellow-dark-p3-9: color(display-p3 1 .92 .22);--colors-yellow-dark-p3-10: color(display-p3 1 1 .456);--colors-yellow-dark-p3-11: color(display-p3 .948 .885 .392);--colors-yellow-dark-p3-12: color(display-p3 .959 .934 .731);--colors-yellow-dark-p3-a-1: color(display-p3 .973 .369 0 / .013);--colors-yellow-dark-p3-a-2: color(display-p3 .996 .792 0 / .038);--colors-yellow-dark-p3-a-3: color(display-p3 .996 .71 0 / .11);--colors-yellow-dark-p3-a-4: color(display-p3 .996 .741 0 / .152);--colors-yellow-dark-p3-a-5: color(display-p3 .996 .765 0 / .202);--colors-yellow-dark-p3-a-6: color(display-p3 .996 .816 .082 / .261);--colors-yellow-dark-p3-a-7: color(display-p3 1 .831 .263 / .345);--colors-yellow-dark-p3-a-8: color(display-p3 1 .831 .314 / .463);--colors-yellow-dark-p3-a-9: color(display-p3 1 .922 .22);--colors-yellow-dark-p3-a-10: color(display-p3 1 1 .455);--colors-yellow-dark-p3-a-11: color(display-p3 .948 .885 .392);--colors-yellow-dark-p3-a-12: color(display-p3 .959 .934 .731);--colors-yellow-a-1: var(--colors-yellow-light-a-1);--colors-yellow-a-2: var(--colors-yellow-light-a-2);--colors-yellow-a-3: var(--colors-yellow-light-a-3);--colors-yellow-a-4: var(--colors-yellow-light-a-4);--colors-yellow-a-5: var(--colors-yellow-light-a-5);--colors-yellow-a-6: var(--colors-yellow-light-a-6);--colors-yellow-a-7: var(--colors-yellow-light-a-7);--colors-yellow-a-8: var(--colors-yellow-light-a-8);--colors-yellow-a-9: var(--colors-yellow-light-a-9);--colors-yellow-a-10: var(--colors-yellow-light-a-10);--colors-yellow-a-11: var(--colors-yellow-light-a-11);--colors-yellow-a-12: var(--colors-yellow-light-a-12);--colors-yellow-p3-1: var(--colors-yellow-light-p3-1);--colors-yellow-p3-2: var(--colors-yellow-light-p3-2);--colors-yellow-p3-3: var(--colors-yellow-light-p3-3);--colors-yellow-p3-4: var(--colors-yellow-light-p3-4);--colors-yellow-p3-5: var(--colors-yellow-light-p3-5);--colors-yellow-p3-6: var(--colors-yellow-light-p3-6);--colors-yellow-p3-7: var(--colors-yellow-light-p3-7);--colors-yellow-p3-8: var(--colors-yellow-light-p3-8);--colors-yellow-p3-9: var(--colors-yellow-light-p3-9);--colors-yellow-p3-10: var(--colors-yellow-light-p3-10);--colors-yellow-p3-11: var(--colors-yellow-light-p3-11);--colors-yellow-p3-12: var(--colors-yellow-light-p3-12);--colors-yellow-p3-a-1: var(--colors-yellow-light-p3-a-1);--colors-yellow-p3-a-2: var(--colors-yellow-light-p3-a-2);--colors-yellow-p3-a-3: var(--colors-yellow-light-p3-a-3);--colors-yellow-p3-a-4: var(--colors-yellow-light-p3-a-4);--colors-yellow-p3-a-5: var(--colors-yellow-light-p3-a-5);--colors-yellow-p3-a-6: var(--colors-yellow-light-p3-a-6);--colors-yellow-p3-a-7: var(--colors-yellow-light-p3-a-7);--colors-yellow-p3-a-8: var(--colors-yellow-light-p3-a-8);--colors-yellow-p3-a-9: var(--colors-yellow-light-p3-a-9);--colors-yellow-p3-a-10: var(--colors-yellow-light-p3-a-10);--colors-yellow-p3-a-11: var(--colors-yellow-light-p3-a-11);--colors-yellow-p3-a-12: var(--colors-yellow-light-p3-a-12);--colors-text: var(--mantine-color-text);--colors-text-dimmed: var(--mantine-color-dimmed);--colors-likec4-background: var(--mantine-color-body);--colors-likec4-tag-bg: var(--colors-tomato-9);--colors-likec4-tag-bg-hover: var(--colors-tomato-10);--colors-likec4-tag-border: var(--colors-tomato-8);--colors-likec4-tag-text: var(--colors-tomato-12);--colors-likec4-panel-bg: var(--mantine-color-body);--colors-likec4-panel-border: transparent;--colors-likec4-panel-text: color-mix(in oklab, var(--mantine-color-text) 85%, transparent 15%);--colors-likec4-panel-text-dimmed: var(--mantine-color-dimmed);--colors-likec4-panel-action: color-mix(in oklab, var(--mantine-color-text) 90%, transparent 10%);--colors-likec4-panel-action-disabled: var(--mantine-color-dimmed);--colors-likec4-panel-action-hover: var(--mantine-color-bright);--colors-likec4-panel-action-bg: var(--mantine-color-gray-1);--colors-likec4-panel-action-bg-hover: var(--mantine-color-gray-2);--colors-likec4-panel-action-warning: var(--mantine-color-orange-6);--colors-likec4-panel-action-warning-hover: var(--mantine-color-orange-7);--colors-likec4-panel-action-warning-bg: color-mix(in oklab, var(--mantine-color-orange-1) 90%, transparent 10%);--colors-likec4-panel-action-warning-bg-hover: color-mix(in oklab, var(--mantine-color-orange-3) 70%, transparent 30%);--colors-likec4-dropdown-bg: #FFF;--colors-likec4-dropdown-border: var(--colors-likec4-panel-border);--colors-likec4-overlay-backdrop: rgb(34 34 34);--colors-likec4-overlay-body: var(--mantine-color-body);--colors-likec4-overlay-border: color-mix(in oklab, var(--mantine-color-default-border) 50%, transparent 50%);--colors-likec4-compare-latest: var(--mantine-color-green-6)}[data-mantine-color-scheme=dark]{--colors-amber-1: var(--colors-amber-dark-1);--colors-amber-2: var(--colors-amber-dark-2);--colors-amber-3: var(--colors-amber-dark-3);--colors-amber-4: var(--colors-amber-dark-4);--colors-amber-5: var(--colors-amber-dark-5);--colors-amber-6: var(--colors-amber-dark-6);--colors-amber-7: var(--colors-amber-dark-7);--colors-amber-8: var(--colors-amber-dark-8);--colors-amber-9: var(--colors-amber-dark-9);--colors-amber-10: var(--colors-amber-dark-10);--colors-amber-11: var(--colors-amber-dark-11);--colors-amber-12: var(--colors-amber-dark-12);--colors-amber-a-1: var(--colors-amber-dark-a-1);--colors-amber-a-2: var(--colors-amber-dark-a-2);--colors-amber-a-3: var(--colors-amber-dark-a-3);--colors-amber-a-4: var(--colors-amber-dark-a-4);--colors-amber-a-5: var(--colors-amber-dark-a-5);--colors-amber-a-6: var(--colors-amber-dark-a-6);--colors-amber-a-7: var(--colors-amber-dark-a-7);--colors-amber-a-8: var(--colors-amber-dark-a-8);--colors-amber-a-9: var(--colors-amber-dark-a-9);--colors-amber-a-10: var(--colors-amber-dark-a-10);--colors-amber-a-11: var(--colors-amber-dark-a-11);--colors-amber-a-12: var(--colors-amber-dark-a-12);--colors-amber-p3-1: var(--colors-amber-dark-p3-1);--colors-amber-p3-2: var(--colors-amber-dark-p3-2);--colors-amber-p3-3: var(--colors-amber-dark-p3-3);--colors-amber-p3-4: var(--colors-amber-dark-p3-4);--colors-amber-p3-5: var(--colors-amber-dark-p3-5);--colors-amber-p3-6: var(--colors-amber-dark-p3-6);--colors-amber-p3-7: var(--colors-amber-dark-p3-7);--colors-amber-p3-8: var(--colors-amber-dark-p3-8);--colors-amber-p3-9: var(--colors-amber-dark-p3-9);--colors-amber-p3-10: var(--colors-amber-dark-p3-10);--colors-amber-p3-11: var(--colors-amber-dark-p3-11);--colors-amber-p3-12: var(--colors-amber-dark-p3-12);--colors-amber-p3-a-1: var(--colors-amber-dark-p3-a-1);--colors-amber-p3-a-2: var(--colors-amber-dark-p3-a-2);--colors-amber-p3-a-3: var(--colors-amber-dark-p3-a-3);--colors-amber-p3-a-4: var(--colors-amber-dark-p3-a-4);--colors-amber-p3-a-5: var(--colors-amber-dark-p3-a-5);--colors-amber-p3-a-6: var(--colors-amber-dark-p3-a-6);--colors-amber-p3-a-7: var(--colors-amber-dark-p3-a-7);--colors-amber-p3-a-8: var(--colors-amber-dark-p3-a-8);--colors-amber-p3-a-9: var(--colors-amber-dark-p3-a-9);--colors-amber-p3-a-10: var(--colors-amber-dark-p3-a-10);--colors-amber-p3-a-11: var(--colors-amber-dark-p3-a-11);--colors-amber-p3-a-12: var(--colors-amber-dark-p3-a-12);--colors-blue-1: var(--colors-blue-dark-1);--colors-blue-2: var(--colors-blue-dark-2);--colors-blue-3: var(--colors-blue-dark-3);--colors-blue-4: var(--colors-blue-dark-4);--colors-blue-5: var(--colors-blue-dark-5);--colors-blue-6: var(--colors-blue-dark-6);--colors-blue-7: var(--colors-blue-dark-7);--colors-blue-8: var(--colors-blue-dark-8);--colors-blue-9: var(--colors-blue-dark-9);--colors-blue-10: var(--colors-blue-dark-10);--colors-blue-11: var(--colors-blue-dark-11);--colors-blue-12: var(--colors-blue-dark-12);--colors-blue-a-1: var(--colors-blue-dark-a-1);--colors-blue-a-2: var(--colors-blue-dark-a-2);--colors-blue-a-3: var(--colors-blue-dark-a-3);--colors-blue-a-4: var(--colors-blue-dark-a-4);--colors-blue-a-5: var(--colors-blue-dark-a-5);--colors-blue-a-6: var(--colors-blue-dark-a-6);--colors-blue-a-7: var(--colors-blue-dark-a-7);--colors-blue-a-8: var(--colors-blue-dark-a-8);--colors-blue-a-9: var(--colors-blue-dark-a-9);--colors-blue-a-10: var(--colors-blue-dark-a-10);--colors-blue-a-11: var(--colors-blue-dark-a-11);--colors-blue-a-12: var(--colors-blue-dark-a-12);--colors-blue-p3-1: var(--colors-blue-dark-p3-1);--colors-blue-p3-2: var(--colors-blue-dark-p3-2);--colors-blue-p3-3: var(--colors-blue-dark-p3-3);--colors-blue-p3-4: var(--colors-blue-dark-p3-4);--colors-blue-p3-5: var(--colors-blue-dark-p3-5);--colors-blue-p3-6: var(--colors-blue-dark-p3-6);--colors-blue-p3-7: var(--colors-blue-dark-p3-7);--colors-blue-p3-8: var(--colors-blue-dark-p3-8);--colors-blue-p3-9: var(--colors-blue-dark-p3-9);--colors-blue-p3-10: var(--colors-blue-dark-p3-10);--colors-blue-p3-11: var(--colors-blue-dark-p3-11);--colors-blue-p3-12: var(--colors-blue-dark-p3-12);--colors-blue-p3-a-1: var(--colors-blue-dark-p3-a-1);--colors-blue-p3-a-2: var(--colors-blue-dark-p3-a-2);--colors-blue-p3-a-3: var(--colors-blue-dark-p3-a-3);--colors-blue-p3-a-4: var(--colors-blue-dark-p3-a-4);--colors-blue-p3-a-5: var(--colors-blue-dark-p3-a-5);--colors-blue-p3-a-6: var(--colors-blue-dark-p3-a-6);--colors-blue-p3-a-7: var(--colors-blue-dark-p3-a-7);--colors-blue-p3-a-8: var(--colors-blue-dark-p3-a-8);--colors-blue-p3-a-9: var(--colors-blue-dark-p3-a-9);--colors-blue-p3-a-10: var(--colors-blue-dark-p3-a-10);--colors-blue-p3-a-11: var(--colors-blue-dark-p3-a-11);--colors-blue-p3-a-12: var(--colors-blue-dark-p3-a-12);--colors-crimson-1: var(--colors-crimson-dark-1);--colors-crimson-2: var(--colors-crimson-dark-2);--colors-crimson-3: var(--colors-crimson-dark-3);--colors-crimson-4: var(--colors-crimson-dark-4);--colors-crimson-5: var(--colors-crimson-dark-5);--colors-crimson-6: var(--colors-crimson-dark-6);--colors-crimson-7: var(--colors-crimson-dark-7);--colors-crimson-8: var(--colors-crimson-dark-8);--colors-crimson-9: var(--colors-crimson-dark-9);--colors-crimson-10: var(--colors-crimson-dark-10);--colors-crimson-11: var(--colors-crimson-dark-11);--colors-crimson-12: var(--colors-crimson-dark-12);--colors-crimson-a-1: var(--colors-crimson-dark-a-1);--colors-crimson-a-2: var(--colors-crimson-dark-a-2);--colors-crimson-a-3: var(--colors-crimson-dark-a-3);--colors-crimson-a-4: var(--colors-crimson-dark-a-4);--colors-crimson-a-5: var(--colors-crimson-dark-a-5);--colors-crimson-a-6: var(--colors-crimson-dark-a-6);--colors-crimson-a-7: var(--colors-crimson-dark-a-7);--colors-crimson-a-8: var(--colors-crimson-dark-a-8);--colors-crimson-a-9: var(--colors-crimson-dark-a-9);--colors-crimson-a-10: var(--colors-crimson-dark-a-10);--colors-crimson-a-11: var(--colors-crimson-dark-a-11);--colors-crimson-a-12: var(--colors-crimson-dark-a-12);--colors-crimson-p3-1: var(--colors-crimson-dark-p3-1);--colors-crimson-p3-2: var(--colors-crimson-dark-p3-2);--colors-crimson-p3-3: var(--colors-crimson-dark-p3-3);--colors-crimson-p3-4: var(--colors-crimson-dark-p3-4);--colors-crimson-p3-5: var(--colors-crimson-dark-p3-5);--colors-crimson-p3-6: var(--colors-crimson-dark-p3-6);--colors-crimson-p3-7: var(--colors-crimson-dark-p3-7);--colors-crimson-p3-8: var(--colors-crimson-dark-p3-8);--colors-crimson-p3-9: var(--colors-crimson-dark-p3-9);--colors-crimson-p3-10: var(--colors-crimson-dark-p3-10);--colors-crimson-p3-11: var(--colors-crimson-dark-p3-11);--colors-crimson-p3-12: var(--colors-crimson-dark-p3-12);--colors-crimson-p3-a-1: var(--colors-crimson-dark-p3-a-1);--colors-crimson-p3-a-2: var(--colors-crimson-dark-p3-a-2);--colors-crimson-p3-a-3: var(--colors-crimson-dark-p3-a-3);--colors-crimson-p3-a-4: var(--colors-crimson-dark-p3-a-4);--colors-crimson-p3-a-5: var(--colors-crimson-dark-p3-a-5);--colors-crimson-p3-a-6: var(--colors-crimson-dark-p3-a-6);--colors-crimson-p3-a-7: var(--colors-crimson-dark-p3-a-7);--colors-crimson-p3-a-8: var(--colors-crimson-dark-p3-a-8);--colors-crimson-p3-a-9: var(--colors-crimson-dark-p3-a-9);--colors-crimson-p3-a-10: var(--colors-crimson-dark-p3-a-10);--colors-crimson-p3-a-11: var(--colors-crimson-dark-p3-a-11);--colors-crimson-p3-a-12: var(--colors-crimson-dark-p3-a-12);--colors-grass-1: var(--colors-grass-dark-1);--colors-grass-2: var(--colors-grass-dark-2);--colors-grass-3: var(--colors-grass-dark-3);--colors-grass-4: var(--colors-grass-dark-4);--colors-grass-5: var(--colors-grass-dark-5);--colors-grass-6: var(--colors-grass-dark-6);--colors-grass-7: var(--colors-grass-dark-7);--colors-grass-8: var(--colors-grass-dark-8);--colors-grass-9: var(--colors-grass-dark-9);--colors-grass-10: var(--colors-grass-dark-10);--colors-grass-11: var(--colors-grass-dark-11);--colors-grass-12: var(--colors-grass-dark-12);--colors-grass-a-1: var(--colors-grass-dark-a-1);--colors-grass-a-2: var(--colors-grass-dark-a-2);--colors-grass-a-3: var(--colors-grass-dark-a-3);--colors-grass-a-4: var(--colors-grass-dark-a-4);--colors-grass-a-5: var(--colors-grass-dark-a-5);--colors-grass-a-6: var(--colors-grass-dark-a-6);--colors-grass-a-7: var(--colors-grass-dark-a-7);--colors-grass-a-8: var(--colors-grass-dark-a-8);--colors-grass-a-9: var(--colors-grass-dark-a-9);--colors-grass-a-10: var(--colors-grass-dark-a-10);--colors-grass-a-11: var(--colors-grass-dark-a-11);--colors-grass-a-12: var(--colors-grass-dark-a-12);--colors-grass-p3-1: var(--colors-grass-dark-p3-1);--colors-grass-p3-2: var(--colors-grass-dark-p3-2);--colors-grass-p3-3: var(--colors-grass-dark-p3-3);--colors-grass-p3-4: var(--colors-grass-dark-p3-4);--colors-grass-p3-5: var(--colors-grass-dark-p3-5);--colors-grass-p3-6: var(--colors-grass-dark-p3-6);--colors-grass-p3-7: var(--colors-grass-dark-p3-7);--colors-grass-p3-8: var(--colors-grass-dark-p3-8);--colors-grass-p3-9: var(--colors-grass-dark-p3-9);--colors-grass-p3-10: var(--colors-grass-dark-p3-10);--colors-grass-p3-11: var(--colors-grass-dark-p3-11);--colors-grass-p3-12: var(--colors-grass-dark-p3-12);--colors-grass-p3-a-1: var(--colors-grass-dark-p3-a-1);--colors-grass-p3-a-2: var(--colors-grass-dark-p3-a-2);--colors-grass-p3-a-3: var(--colors-grass-dark-p3-a-3);--colors-grass-p3-a-4: var(--colors-grass-dark-p3-a-4);--colors-grass-p3-a-5: var(--colors-grass-dark-p3-a-5);--colors-grass-p3-a-6: var(--colors-grass-dark-p3-a-6);--colors-grass-p3-a-7: var(--colors-grass-dark-p3-a-7);--colors-grass-p3-a-8: var(--colors-grass-dark-p3-a-8);--colors-grass-p3-a-9: var(--colors-grass-dark-p3-a-9);--colors-grass-p3-a-10: var(--colors-grass-dark-p3-a-10);--colors-grass-p3-a-11: var(--colors-grass-dark-p3-a-11);--colors-grass-p3-a-12: var(--colors-grass-dark-p3-a-12);--colors-indigo-1: var(--colors-indigo-dark-1);--colors-indigo-2: var(--colors-indigo-dark-2);--colors-indigo-3: var(--colors-indigo-dark-3);--colors-indigo-4: var(--colors-indigo-dark-4);--colors-indigo-5: var(--colors-indigo-dark-5);--colors-indigo-6: var(--colors-indigo-dark-6);--colors-indigo-7: var(--colors-indigo-dark-7);--colors-indigo-8: var(--colors-indigo-dark-8);--colors-indigo-9: var(--colors-indigo-dark-9);--colors-indigo-10: var(--colors-indigo-dark-10);--colors-indigo-11: var(--colors-indigo-dark-11);--colors-indigo-12: var(--colors-indigo-dark-12);--colors-indigo-a-1: var(--colors-indigo-dark-a-1);--colors-indigo-a-2: var(--colors-indigo-dark-a-2);--colors-indigo-a-3: var(--colors-indigo-dark-a-3);--colors-indigo-a-4: var(--colors-indigo-dark-a-4);--colors-indigo-a-5: var(--colors-indigo-dark-a-5);--colors-indigo-a-6: var(--colors-indigo-dark-a-6);--colors-indigo-a-7: var(--colors-indigo-dark-a-7);--colors-indigo-a-8: var(--colors-indigo-dark-a-8);--colors-indigo-a-9: var(--colors-indigo-dark-a-9);--colors-indigo-a-10: var(--colors-indigo-dark-a-10);--colors-indigo-a-11: var(--colors-indigo-dark-a-11);--colors-indigo-a-12: var(--colors-indigo-dark-a-12);--colors-indigo-p3-1: var(--colors-indigo-dark-p3-1);--colors-indigo-p3-2: var(--colors-indigo-dark-p3-2);--colors-indigo-p3-3: var(--colors-indigo-dark-p3-3);--colors-indigo-p3-4: var(--colors-indigo-dark-p3-4);--colors-indigo-p3-5: var(--colors-indigo-dark-p3-5);--colors-indigo-p3-6: var(--colors-indigo-dark-p3-6);--colors-indigo-p3-7: var(--colors-indigo-dark-p3-7);--colors-indigo-p3-8: var(--colors-indigo-dark-p3-8);--colors-indigo-p3-9: var(--colors-indigo-dark-p3-9);--colors-indigo-p3-10: var(--colors-indigo-dark-p3-10);--colors-indigo-p3-11: var(--colors-indigo-dark-p3-11);--colors-indigo-p3-12: var(--colors-indigo-dark-p3-12);--colors-indigo-p3-a-1: var(--colors-indigo-dark-p3-a-1);--colors-indigo-p3-a-2: var(--colors-indigo-dark-p3-a-2);--colors-indigo-p3-a-3: var(--colors-indigo-dark-p3-a-3);--colors-indigo-p3-a-4: var(--colors-indigo-dark-p3-a-4);--colors-indigo-p3-a-5: var(--colors-indigo-dark-p3-a-5);--colors-indigo-p3-a-6: var(--colors-indigo-dark-p3-a-6);--colors-indigo-p3-a-7: var(--colors-indigo-dark-p3-a-7);--colors-indigo-p3-a-8: var(--colors-indigo-dark-p3-a-8);--colors-indigo-p3-a-9: var(--colors-indigo-dark-p3-a-9);--colors-indigo-p3-a-10: var(--colors-indigo-dark-p3-a-10);--colors-indigo-p3-a-11: var(--colors-indigo-dark-p3-a-11);--colors-indigo-p3-a-12: var(--colors-indigo-dark-p3-a-12);--colors-lime-1: var(--colors-lime-dark-1);--colors-lime-2: var(--colors-lime-dark-2);--colors-lime-3: var(--colors-lime-dark-3);--colors-lime-4: var(--colors-lime-dark-4);--colors-lime-5: var(--colors-lime-dark-5);--colors-lime-6: var(--colors-lime-dark-6);--colors-lime-7: var(--colors-lime-dark-7);--colors-lime-8: var(--colors-lime-dark-8);--colors-lime-9: var(--colors-lime-dark-9);--colors-lime-10: var(--colors-lime-dark-10);--colors-lime-11: var(--colors-lime-dark-11);--colors-lime-12: var(--colors-lime-dark-12);--colors-lime-a-1: var(--colors-lime-dark-a-1);--colors-lime-a-2: var(--colors-lime-dark-a-2);--colors-lime-a-3: var(--colors-lime-dark-a-3);--colors-lime-a-4: var(--colors-lime-dark-a-4);--colors-lime-a-5: var(--colors-lime-dark-a-5);--colors-lime-a-6: var(--colors-lime-dark-a-6);--colors-lime-a-7: var(--colors-lime-dark-a-7);--colors-lime-a-8: var(--colors-lime-dark-a-8);--colors-lime-a-9: var(--colors-lime-dark-a-9);--colors-lime-a-10: var(--colors-lime-dark-a-10);--colors-lime-a-11: var(--colors-lime-dark-a-11);--colors-lime-a-12: var(--colors-lime-dark-a-12);--colors-lime-p3-1: var(--colors-lime-dark-p3-1);--colors-lime-p3-2: var(--colors-lime-dark-p3-2);--colors-lime-p3-3: var(--colors-lime-dark-p3-3);--colors-lime-p3-4: var(--colors-lime-dark-p3-4);--colors-lime-p3-5: var(--colors-lime-dark-p3-5);--colors-lime-p3-6: var(--colors-lime-dark-p3-6);--colors-lime-p3-7: var(--colors-lime-dark-p3-7);--colors-lime-p3-8: var(--colors-lime-dark-p3-8);--colors-lime-p3-9: var(--colors-lime-dark-p3-9);--colors-lime-p3-10: var(--colors-lime-dark-p3-10);--colors-lime-p3-11: var(--colors-lime-dark-p3-11);--colors-lime-p3-12: var(--colors-lime-dark-p3-12);--colors-lime-p3-a-1: var(--colors-lime-dark-p3-a-1);--colors-lime-p3-a-2: var(--colors-lime-dark-p3-a-2);--colors-lime-p3-a-3: var(--colors-lime-dark-p3-a-3);--colors-lime-p3-a-4: var(--colors-lime-dark-p3-a-4);--colors-lime-p3-a-5: var(--colors-lime-dark-p3-a-5);--colors-lime-p3-a-6: var(--colors-lime-dark-p3-a-6);--colors-lime-p3-a-7: var(--colors-lime-dark-p3-a-7);--colors-lime-p3-a-8: var(--colors-lime-dark-p3-a-8);--colors-lime-p3-a-9: var(--colors-lime-dark-p3-a-9);--colors-lime-p3-a-10: var(--colors-lime-dark-p3-a-10);--colors-lime-p3-a-11: var(--colors-lime-dark-p3-a-11);--colors-lime-p3-a-12: var(--colors-lime-dark-p3-a-12);--colors-orange-1: var(--colors-orange-dark-1);--colors-orange-2: var(--colors-orange-dark-2);--colors-orange-3: var(--colors-orange-dark-3);--colors-orange-4: var(--colors-orange-dark-4);--colors-orange-5: var(--colors-orange-dark-5);--colors-orange-6: var(--colors-orange-dark-6);--colors-orange-7: var(--colors-orange-dark-7);--colors-orange-8: var(--colors-orange-dark-8);--colors-orange-9: var(--colors-orange-dark-9);--colors-orange-10: var(--colors-orange-dark-10);--colors-orange-11: var(--colors-orange-dark-11);--colors-orange-12: var(--colors-orange-dark-12);--colors-orange-a-1: var(--colors-orange-dark-a-1);--colors-orange-a-2: var(--colors-orange-dark-a-2);--colors-orange-a-3: var(--colors-orange-dark-a-3);--colors-orange-a-4: var(--colors-orange-dark-a-4);--colors-orange-a-5: var(--colors-orange-dark-a-5);--colors-orange-a-6: var(--colors-orange-dark-a-6);--colors-orange-a-7: var(--colors-orange-dark-a-7);--colors-orange-a-8: var(--colors-orange-dark-a-8);--colors-orange-a-9: var(--colors-orange-dark-a-9);--colors-orange-a-10: var(--colors-orange-dark-a-10);--colors-orange-a-11: var(--colors-orange-dark-a-11);--colors-orange-a-12: var(--colors-orange-dark-a-12);--colors-orange-p3-1: var(--colors-orange-dark-p3-1);--colors-orange-p3-2: var(--colors-orange-dark-p3-2);--colors-orange-p3-3: var(--colors-orange-dark-p3-3);--colors-orange-p3-4: var(--colors-orange-dark-p3-4);--colors-orange-p3-5: var(--colors-orange-dark-p3-5);--colors-orange-p3-6: var(--colors-orange-dark-p3-6);--colors-orange-p3-7: var(--colors-orange-dark-p3-7);--colors-orange-p3-8: var(--colors-orange-dark-p3-8);--colors-orange-p3-9: var(--colors-orange-dark-p3-9);--colors-orange-p3-10: var(--colors-orange-dark-p3-10);--colors-orange-p3-11: var(--colors-orange-dark-p3-11);--colors-orange-p3-12: var(--colors-orange-dark-p3-12);--colors-orange-p3-a-1: var(--colors-orange-dark-p3-a-1);--colors-orange-p3-a-2: var(--colors-orange-dark-p3-a-2);--colors-orange-p3-a-3: var(--colors-orange-dark-p3-a-3);--colors-orange-p3-a-4: var(--colors-orange-dark-p3-a-4);--colors-orange-p3-a-5: var(--colors-orange-dark-p3-a-5);--colors-orange-p3-a-6: var(--colors-orange-dark-p3-a-6);--colors-orange-p3-a-7: var(--colors-orange-dark-p3-a-7);--colors-orange-p3-a-8: var(--colors-orange-dark-p3-a-8);--colors-orange-p3-a-9: var(--colors-orange-dark-p3-a-9);--colors-orange-p3-a-10: var(--colors-orange-dark-p3-a-10);--colors-orange-p3-a-11: var(--colors-orange-dark-p3-a-11);--colors-orange-p3-a-12: var(--colors-orange-dark-p3-a-12);--colors-pink-1: var(--colors-pink-dark-1);--colors-pink-2: var(--colors-pink-dark-2);--colors-pink-3: var(--colors-pink-dark-3);--colors-pink-4: var(--colors-pink-dark-4);--colors-pink-5: var(--colors-pink-dark-5);--colors-pink-6: var(--colors-pink-dark-6);--colors-pink-7: var(--colors-pink-dark-7);--colors-pink-8: var(--colors-pink-dark-8);--colors-pink-9: var(--colors-pink-dark-9);--colors-pink-10: var(--colors-pink-dark-10);--colors-pink-11: var(--colors-pink-dark-11);--colors-pink-12: var(--colors-pink-dark-12);--colors-pink-a-1: var(--colors-pink-dark-a-1);--colors-pink-a-2: var(--colors-pink-dark-a-2);--colors-pink-a-3: var(--colors-pink-dark-a-3);--colors-pink-a-4: var(--colors-pink-dark-a-4);--colors-pink-a-5: var(--colors-pink-dark-a-5);--colors-pink-a-6: var(--colors-pink-dark-a-6);--colors-pink-a-7: var(--colors-pink-dark-a-7);--colors-pink-a-8: var(--colors-pink-dark-a-8);--colors-pink-a-9: var(--colors-pink-dark-a-9);--colors-pink-a-10: var(--colors-pink-dark-a-10);--colors-pink-a-11: var(--colors-pink-dark-a-11);--colors-pink-a-12: var(--colors-pink-dark-a-12);--colors-pink-p3-1: var(--colors-pink-dark-p3-1);--colors-pink-p3-2: var(--colors-pink-dark-p3-2);--colors-pink-p3-3: var(--colors-pink-dark-p3-3);--colors-pink-p3-4: var(--colors-pink-dark-p3-4);--colors-pink-p3-5: var(--colors-pink-dark-p3-5);--colors-pink-p3-6: var(--colors-pink-dark-p3-6);--colors-pink-p3-7: var(--colors-pink-dark-p3-7);--colors-pink-p3-8: var(--colors-pink-dark-p3-8);--colors-pink-p3-9: var(--colors-pink-dark-p3-9);--colors-pink-p3-10: var(--colors-pink-dark-p3-10);--colors-pink-p3-11: var(--colors-pink-dark-p3-11);--colors-pink-p3-12: var(--colors-pink-dark-p3-12);--colors-pink-p3-a-1: var(--colors-pink-dark-p3-a-1);--colors-pink-p3-a-2: var(--colors-pink-dark-p3-a-2);--colors-pink-p3-a-3: var(--colors-pink-dark-p3-a-3);--colors-pink-p3-a-4: var(--colors-pink-dark-p3-a-4);--colors-pink-p3-a-5: var(--colors-pink-dark-p3-a-5);--colors-pink-p3-a-6: var(--colors-pink-dark-p3-a-6);--colors-pink-p3-a-7: var(--colors-pink-dark-p3-a-7);--colors-pink-p3-a-8: var(--colors-pink-dark-p3-a-8);--colors-pink-p3-a-9: var(--colors-pink-dark-p3-a-9);--colors-pink-p3-a-10: var(--colors-pink-dark-p3-a-10);--colors-pink-p3-a-11: var(--colors-pink-dark-p3-a-11);--colors-pink-p3-a-12: var(--colors-pink-dark-p3-a-12);--colors-purple-1: var(--colors-purple-dark-1);--colors-purple-2: var(--colors-purple-dark-2);--colors-purple-3: var(--colors-purple-dark-3);--colors-purple-4: var(--colors-purple-dark-4);--colors-purple-5: var(--colors-purple-dark-5);--colors-purple-6: var(--colors-purple-dark-6);--colors-purple-7: var(--colors-purple-dark-7);--colors-purple-8: var(--colors-purple-dark-8);--colors-purple-9: var(--colors-purple-dark-9);--colors-purple-10: var(--colors-purple-dark-10);--colors-purple-11: var(--colors-purple-dark-11);--colors-purple-12: var(--colors-purple-dark-12);--colors-purple-a-1: var(--colors-purple-dark-a-1);--colors-purple-a-2: var(--colors-purple-dark-a-2);--colors-purple-a-3: var(--colors-purple-dark-a-3);--colors-purple-a-4: var(--colors-purple-dark-a-4);--colors-purple-a-5: var(--colors-purple-dark-a-5);--colors-purple-a-6: var(--colors-purple-dark-a-6);--colors-purple-a-7: var(--colors-purple-dark-a-7);--colors-purple-a-8: var(--colors-purple-dark-a-8);--colors-purple-a-9: var(--colors-purple-dark-a-9);--colors-purple-a-10: var(--colors-purple-dark-a-10);--colors-purple-a-11: var(--colors-purple-dark-a-11);--colors-purple-a-12: var(--colors-purple-dark-a-12);--colors-purple-p3-1: var(--colors-purple-dark-p3-1);--colors-purple-p3-2: var(--colors-purple-dark-p3-2);--colors-purple-p3-3: var(--colors-purple-dark-p3-3);--colors-purple-p3-4: var(--colors-purple-dark-p3-4);--colors-purple-p3-5: var(--colors-purple-dark-p3-5);--colors-purple-p3-6: var(--colors-purple-dark-p3-6);--colors-purple-p3-7: var(--colors-purple-dark-p3-7);--colors-purple-p3-8: var(--colors-purple-dark-p3-8);--colors-purple-p3-9: var(--colors-purple-dark-p3-9);--colors-purple-p3-10: var(--colors-purple-dark-p3-10);--colors-purple-p3-11: var(--colors-purple-dark-p3-11);--colors-purple-p3-12: var(--colors-purple-dark-p3-12);--colors-purple-p3-a-1: var(--colors-purple-dark-p3-a-1);--colors-purple-p3-a-2: var(--colors-purple-dark-p3-a-2);--colors-purple-p3-a-3: var(--colors-purple-dark-p3-a-3);--colors-purple-p3-a-4: var(--colors-purple-dark-p3-a-4);--colors-purple-p3-a-5: var(--colors-purple-dark-p3-a-5);--colors-purple-p3-a-6: var(--colors-purple-dark-p3-a-6);--colors-purple-p3-a-7: var(--colors-purple-dark-p3-a-7);--colors-purple-p3-a-8: var(--colors-purple-dark-p3-a-8);--colors-purple-p3-a-9: var(--colors-purple-dark-p3-a-9);--colors-purple-p3-a-10: var(--colors-purple-dark-p3-a-10);--colors-purple-p3-a-11: var(--colors-purple-dark-p3-a-11);--colors-purple-p3-a-12: var(--colors-purple-dark-p3-a-12);--colors-red-1: var(--colors-red-dark-1);--colors-red-2: var(--colors-red-dark-2);--colors-red-3: var(--colors-red-dark-3);--colors-red-4: var(--colors-red-dark-4);--colors-red-5: var(--colors-red-dark-5);--colors-red-6: var(--colors-red-dark-6);--colors-red-7: var(--colors-red-dark-7);--colors-red-8: var(--colors-red-dark-8);--colors-red-9: var(--colors-red-dark-9);--colors-red-10: var(--colors-red-dark-10);--colors-red-11: var(--colors-red-dark-11);--colors-red-12: var(--colors-red-dark-12);--colors-red-a-1: var(--colors-red-dark-a-1);--colors-red-a-2: var(--colors-red-dark-a-2);--colors-red-a-3: var(--colors-red-dark-a-3);--colors-red-a-4: var(--colors-red-dark-a-4);--colors-red-a-5: var(--colors-red-dark-a-5);--colors-red-a-6: var(--colors-red-dark-a-6);--colors-red-a-7: var(--colors-red-dark-a-7);--colors-red-a-8: var(--colors-red-dark-a-8);--colors-red-a-9: var(--colors-red-dark-a-9);--colors-red-a-10: var(--colors-red-dark-a-10);--colors-red-a-11: var(--colors-red-dark-a-11);--colors-red-a-12: var(--colors-red-dark-a-12);--colors-red-p3-1: var(--colors-red-dark-p3-1);--colors-red-p3-2: var(--colors-red-dark-p3-2);--colors-red-p3-3: var(--colors-red-dark-p3-3);--colors-red-p3-4: var(--colors-red-dark-p3-4);--colors-red-p3-5: var(--colors-red-dark-p3-5);--colors-red-p3-6: var(--colors-red-dark-p3-6);--colors-red-p3-7: var(--colors-red-dark-p3-7);--colors-red-p3-8: var(--colors-red-dark-p3-8);--colors-red-p3-9: var(--colors-red-dark-p3-9);--colors-red-p3-10: var(--colors-red-dark-p3-10);--colors-red-p3-11: var(--colors-red-dark-p3-11);--colors-red-p3-12: var(--colors-red-dark-p3-12);--colors-red-p3-a-1: var(--colors-red-dark-p3-a-1);--colors-red-p3-a-2: var(--colors-red-dark-p3-a-2);--colors-red-p3-a-3: var(--colors-red-dark-p3-a-3);--colors-red-p3-a-4: var(--colors-red-dark-p3-a-4);--colors-red-p3-a-5: var(--colors-red-dark-p3-a-5);--colors-red-p3-a-6: var(--colors-red-dark-p3-a-6);--colors-red-p3-a-7: var(--colors-red-dark-p3-a-7);--colors-red-p3-a-8: var(--colors-red-dark-p3-a-8);--colors-red-p3-a-9: var(--colors-red-dark-p3-a-9);--colors-red-p3-a-10: var(--colors-red-dark-p3-a-10);--colors-red-p3-a-11: var(--colors-red-dark-p3-a-11);--colors-red-p3-a-12: var(--colors-red-dark-p3-a-12);--colors-ruby-1: var(--colors-ruby-dark-1);--colors-ruby-2: var(--colors-ruby-dark-2);--colors-ruby-3: var(--colors-ruby-dark-3);--colors-ruby-4: var(--colors-ruby-dark-4);--colors-ruby-5: var(--colors-ruby-dark-5);--colors-ruby-6: var(--colors-ruby-dark-6);--colors-ruby-7: var(--colors-ruby-dark-7);--colors-ruby-8: var(--colors-ruby-dark-8);--colors-ruby-9: var(--colors-ruby-dark-9);--colors-ruby-10: var(--colors-ruby-dark-10);--colors-ruby-11: var(--colors-ruby-dark-11);--colors-ruby-12: var(--colors-ruby-dark-12);--colors-ruby-a-1: var(--colors-ruby-dark-a-1);--colors-ruby-a-2: var(--colors-ruby-dark-a-2);--colors-ruby-a-3: var(--colors-ruby-dark-a-3);--colors-ruby-a-4: var(--colors-ruby-dark-a-4);--colors-ruby-a-5: var(--colors-ruby-dark-a-5);--colors-ruby-a-6: var(--colors-ruby-dark-a-6);--colors-ruby-a-7: var(--colors-ruby-dark-a-7);--colors-ruby-a-8: var(--colors-ruby-dark-a-8);--colors-ruby-a-9: var(--colors-ruby-dark-a-9);--colors-ruby-a-10: var(--colors-ruby-dark-a-10);--colors-ruby-a-11: var(--colors-ruby-dark-a-11);--colors-ruby-a-12: var(--colors-ruby-dark-a-12);--colors-ruby-p3-1: var(--colors-ruby-dark-p3-1);--colors-ruby-p3-2: var(--colors-ruby-dark-p3-2);--colors-ruby-p3-3: var(--colors-ruby-dark-p3-3);--colors-ruby-p3-4: var(--colors-ruby-dark-p3-4);--colors-ruby-p3-5: var(--colors-ruby-dark-p3-5);--colors-ruby-p3-6: var(--colors-ruby-dark-p3-6);--colors-ruby-p3-7: var(--colors-ruby-dark-p3-7);--colors-ruby-p3-8: var(--colors-ruby-dark-p3-8);--colors-ruby-p3-9: var(--colors-ruby-dark-p3-9);--colors-ruby-p3-10: var(--colors-ruby-dark-p3-10);--colors-ruby-p3-11: var(--colors-ruby-dark-p3-11);--colors-ruby-p3-12: var(--colors-ruby-dark-p3-12);--colors-ruby-p3-a-1: var(--colors-ruby-dark-p3-a-1);--colors-ruby-p3-a-2: var(--colors-ruby-dark-p3-a-2);--colors-ruby-p3-a-3: var(--colors-ruby-dark-p3-a-3);--colors-ruby-p3-a-4: var(--colors-ruby-dark-p3-a-4);--colors-ruby-p3-a-5: var(--colors-ruby-dark-p3-a-5);--colors-ruby-p3-a-6: var(--colors-ruby-dark-p3-a-6);--colors-ruby-p3-a-7: var(--colors-ruby-dark-p3-a-7);--colors-ruby-p3-a-8: var(--colors-ruby-dark-p3-a-8);--colors-ruby-p3-a-9: var(--colors-ruby-dark-p3-a-9);--colors-ruby-p3-a-10: var(--colors-ruby-dark-p3-a-10);--colors-ruby-p3-a-11: var(--colors-ruby-dark-p3-a-11);--colors-ruby-p3-a-12: var(--colors-ruby-dark-p3-a-12);--colors-teal-1: var(--colors-teal-dark-1);--colors-teal-2: var(--colors-teal-dark-2);--colors-teal-3: var(--colors-teal-dark-3);--colors-teal-4: var(--colors-teal-dark-4);--colors-teal-5: var(--colors-teal-dark-5);--colors-teal-6: var(--colors-teal-dark-6);--colors-teal-7: var(--colors-teal-dark-7);--colors-teal-8: var(--colors-teal-dark-8);--colors-teal-9: var(--colors-teal-dark-9);--colors-teal-10: var(--colors-teal-dark-10);--colors-teal-11: var(--colors-teal-dark-11);--colors-teal-12: var(--colors-teal-dark-12);--colors-teal-a-1: var(--colors-teal-dark-a-1);--colors-teal-a-2: var(--colors-teal-dark-a-2);--colors-teal-a-3: var(--colors-teal-dark-a-3);--colors-teal-a-4: var(--colors-teal-dark-a-4);--colors-teal-a-5: var(--colors-teal-dark-a-5);--colors-teal-a-6: var(--colors-teal-dark-a-6);--colors-teal-a-7: var(--colors-teal-dark-a-7);--colors-teal-a-8: var(--colors-teal-dark-a-8);--colors-teal-a-9: var(--colors-teal-dark-a-9);--colors-teal-a-10: var(--colors-teal-dark-a-10);--colors-teal-a-11: var(--colors-teal-dark-a-11);--colors-teal-a-12: var(--colors-teal-dark-a-12);--colors-teal-p3-1: var(--colors-teal-dark-p3-1);--colors-teal-p3-2: var(--colors-teal-dark-p3-2);--colors-teal-p3-3: var(--colors-teal-dark-p3-3);--colors-teal-p3-4: var(--colors-teal-dark-p3-4);--colors-teal-p3-5: var(--colors-teal-dark-p3-5);--colors-teal-p3-6: var(--colors-teal-dark-p3-6);--colors-teal-p3-7: var(--colors-teal-dark-p3-7);--colors-teal-p3-8: var(--colors-teal-dark-p3-8);--colors-teal-p3-9: var(--colors-teal-dark-p3-9);--colors-teal-p3-10: var(--colors-teal-dark-p3-10);--colors-teal-p3-11: var(--colors-teal-dark-p3-11);--colors-teal-p3-12: var(--colors-teal-dark-p3-12);--colors-teal-p3-a-1: var(--colors-teal-dark-p3-a-1);--colors-teal-p3-a-2: var(--colors-teal-dark-p3-a-2);--colors-teal-p3-a-3: var(--colors-teal-dark-p3-a-3);--colors-teal-p3-a-4: var(--colors-teal-dark-p3-a-4);--colors-teal-p3-a-5: var(--colors-teal-dark-p3-a-5);--colors-teal-p3-a-6: var(--colors-teal-dark-p3-a-6);--colors-teal-p3-a-7: var(--colors-teal-dark-p3-a-7);--colors-teal-p3-a-8: var(--colors-teal-dark-p3-a-8);--colors-teal-p3-a-9: var(--colors-teal-dark-p3-a-9);--colors-teal-p3-a-10: var(--colors-teal-dark-p3-a-10);--colors-teal-p3-a-11: var(--colors-teal-dark-p3-a-11);--colors-teal-p3-a-12: var(--colors-teal-dark-p3-a-12);--colors-tomato-1: var(--colors-tomato-dark-1);--colors-tomato-2: var(--colors-tomato-dark-2);--colors-tomato-3: var(--colors-tomato-dark-3);--colors-tomato-4: var(--colors-tomato-dark-4);--colors-tomato-5: var(--colors-tomato-dark-5);--colors-tomato-6: var(--colors-tomato-dark-6);--colors-tomato-7: var(--colors-tomato-dark-7);--colors-tomato-8: var(--colors-tomato-dark-8);--colors-tomato-9: var(--colors-tomato-dark-9);--colors-tomato-10: var(--colors-tomato-dark-10);--colors-tomato-11: var(--colors-tomato-dark-11);--colors-tomato-12: var(--colors-tomato-dark-12);--colors-tomato-a-1: var(--colors-tomato-dark-a-1);--colors-tomato-a-2: var(--colors-tomato-dark-a-2);--colors-tomato-a-3: var(--colors-tomato-dark-a-3);--colors-tomato-a-4: var(--colors-tomato-dark-a-4);--colors-tomato-a-5: var(--colors-tomato-dark-a-5);--colors-tomato-a-6: var(--colors-tomato-dark-a-6);--colors-tomato-a-7: var(--colors-tomato-dark-a-7);--colors-tomato-a-8: var(--colors-tomato-dark-a-8);--colors-tomato-a-9: var(--colors-tomato-dark-a-9);--colors-tomato-a-10: var(--colors-tomato-dark-a-10);--colors-tomato-a-11: var(--colors-tomato-dark-a-11);--colors-tomato-a-12: var(--colors-tomato-dark-a-12);--colors-tomato-p3-1: var(--colors-tomato-dark-p3-1);--colors-tomato-p3-2: var(--colors-tomato-dark-p3-2);--colors-tomato-p3-3: var(--colors-tomato-dark-p3-3);--colors-tomato-p3-4: var(--colors-tomato-dark-p3-4);--colors-tomato-p3-5: var(--colors-tomato-dark-p3-5);--colors-tomato-p3-6: var(--colors-tomato-dark-p3-6);--colors-tomato-p3-7: var(--colors-tomato-dark-p3-7);--colors-tomato-p3-8: var(--colors-tomato-dark-p3-8);--colors-tomato-p3-9: var(--colors-tomato-dark-p3-9);--colors-tomato-p3-10: var(--colors-tomato-dark-p3-10);--colors-tomato-p3-11: var(--colors-tomato-dark-p3-11);--colors-tomato-p3-12: var(--colors-tomato-dark-p3-12);--colors-tomato-p3-a-1: var(--colors-tomato-dark-p3-a-1);--colors-tomato-p3-a-2: var(--colors-tomato-dark-p3-a-2);--colors-tomato-p3-a-3: var(--colors-tomato-dark-p3-a-3);--colors-tomato-p3-a-4: var(--colors-tomato-dark-p3-a-4);--colors-tomato-p3-a-5: var(--colors-tomato-dark-p3-a-5);--colors-tomato-p3-a-6: var(--colors-tomato-dark-p3-a-6);--colors-tomato-p3-a-7: var(--colors-tomato-dark-p3-a-7);--colors-tomato-p3-a-8: var(--colors-tomato-dark-p3-a-8);--colors-tomato-p3-a-9: var(--colors-tomato-dark-p3-a-9);--colors-tomato-p3-a-10: var(--colors-tomato-dark-p3-a-10);--colors-tomato-p3-a-11: var(--colors-tomato-dark-p3-a-11);--colors-tomato-p3-a-12: var(--colors-tomato-dark-p3-a-12);--colors-violet-1: var(--colors-violet-dark-1);--colors-violet-2: var(--colors-violet-dark-2);--colors-violet-3: var(--colors-violet-dark-3);--colors-violet-4: var(--colors-violet-dark-4);--colors-violet-5: var(--colors-violet-dark-5);--colors-violet-6: var(--colors-violet-dark-6);--colors-violet-7: var(--colors-violet-dark-7);--colors-violet-8: var(--colors-violet-dark-8);--colors-violet-9: var(--colors-violet-dark-9);--colors-violet-10: var(--colors-violet-dark-10);--colors-violet-11: var(--colors-violet-dark-11);--colors-violet-12: var(--colors-violet-dark-12);--colors-violet-a-1: var(--colors-violet-dark-a-1);--colors-violet-a-2: var(--colors-violet-dark-a-2);--colors-violet-a-3: var(--colors-violet-dark-a-3);--colors-violet-a-4: var(--colors-violet-dark-a-4);--colors-violet-a-5: var(--colors-violet-dark-a-5);--colors-violet-a-6: var(--colors-violet-dark-a-6);--colors-violet-a-7: var(--colors-violet-dark-a-7);--colors-violet-a-8: var(--colors-violet-dark-a-8);--colors-violet-a-9: var(--colors-violet-dark-a-9);--colors-violet-a-10: var(--colors-violet-dark-a-10);--colors-violet-a-11: var(--colors-violet-dark-a-11);--colors-violet-a-12: var(--colors-violet-dark-a-12);--colors-violet-p3-1: var(--colors-violet-dark-p3-1);--colors-violet-p3-2: var(--colors-violet-dark-p3-2);--colors-violet-p3-3: var(--colors-violet-dark-p3-3);--colors-violet-p3-4: var(--colors-violet-dark-p3-4);--colors-violet-p3-5: var(--colors-violet-dark-p3-5);--colors-violet-p3-6: var(--colors-violet-dark-p3-6);--colors-violet-p3-7: var(--colors-violet-dark-p3-7);--colors-violet-p3-8: var(--colors-violet-dark-p3-8);--colors-violet-p3-9: var(--colors-violet-dark-p3-9);--colors-violet-p3-10: var(--colors-violet-dark-p3-10);--colors-violet-p3-11: var(--colors-violet-dark-p3-11);--colors-violet-p3-12: var(--colors-violet-dark-p3-12);--colors-violet-p3-a-1: var(--colors-violet-dark-p3-a-1);--colors-violet-p3-a-2: var(--colors-violet-dark-p3-a-2);--colors-violet-p3-a-3: var(--colors-violet-dark-p3-a-3);--colors-violet-p3-a-4: var(--colors-violet-dark-p3-a-4);--colors-violet-p3-a-5: var(--colors-violet-dark-p3-a-5);--colors-violet-p3-a-6: var(--colors-violet-dark-p3-a-6);--colors-violet-p3-a-7: var(--colors-violet-dark-p3-a-7);--colors-violet-p3-a-8: var(--colors-violet-dark-p3-a-8);--colors-violet-p3-a-9: var(--colors-violet-dark-p3-a-9);--colors-violet-p3-a-10: var(--colors-violet-dark-p3-a-10);--colors-violet-p3-a-11: var(--colors-violet-dark-p3-a-11);--colors-violet-p3-a-12: var(--colors-violet-dark-p3-a-12);--colors-yellow-1: var(--colors-yellow-dark-1);--colors-yellow-2: var(--colors-yellow-dark-2);--colors-yellow-3: var(--colors-yellow-dark-3);--colors-yellow-4: var(--colors-yellow-dark-4);--colors-yellow-5: var(--colors-yellow-dark-5);--colors-yellow-6: var(--colors-yellow-dark-6);--colors-yellow-7: var(--colors-yellow-dark-7);--colors-yellow-8: var(--colors-yellow-dark-8);--colors-yellow-9: var(--colors-yellow-dark-9);--colors-yellow-10: var(--colors-yellow-dark-10);--colors-yellow-11: var(--colors-yellow-dark-11);--colors-yellow-12: var(--colors-yellow-dark-12);--colors-yellow-a-1: var(--colors-yellow-dark-a-1);--colors-yellow-a-2: var(--colors-yellow-dark-a-2);--colors-yellow-a-3: var(--colors-yellow-dark-a-3);--colors-yellow-a-4: var(--colors-yellow-dark-a-4);--colors-yellow-a-5: var(--colors-yellow-dark-a-5);--colors-yellow-a-6: var(--colors-yellow-dark-a-6);--colors-yellow-a-7: var(--colors-yellow-dark-a-7);--colors-yellow-a-8: var(--colors-yellow-dark-a-8);--colors-yellow-a-9: var(--colors-yellow-dark-a-9);--colors-yellow-a-10: var(--colors-yellow-dark-a-10);--colors-yellow-a-11: var(--colors-yellow-dark-a-11);--colors-yellow-a-12: var(--colors-yellow-dark-a-12);--colors-yellow-p3-1: var(--colors-yellow-dark-p3-1);--colors-yellow-p3-2: var(--colors-yellow-dark-p3-2);--colors-yellow-p3-3: var(--colors-yellow-dark-p3-3);--colors-yellow-p3-4: var(--colors-yellow-dark-p3-4);--colors-yellow-p3-5: var(--colors-yellow-dark-p3-5);--colors-yellow-p3-6: var(--colors-yellow-dark-p3-6);--colors-yellow-p3-7: var(--colors-yellow-dark-p3-7);--colors-yellow-p3-8: var(--colors-yellow-dark-p3-8);--colors-yellow-p3-9: var(--colors-yellow-dark-p3-9);--colors-yellow-p3-10: var(--colors-yellow-dark-p3-10);--colors-yellow-p3-11: var(--colors-yellow-dark-p3-11);--colors-yellow-p3-12: var(--colors-yellow-dark-p3-12);--colors-yellow-p3-a-1: var(--colors-yellow-dark-p3-a-1);--colors-yellow-p3-a-2: var(--colors-yellow-dark-p3-a-2);--colors-yellow-p3-a-3: var(--colors-yellow-dark-p3-a-3);--colors-yellow-p3-a-4: var(--colors-yellow-dark-p3-a-4);--colors-yellow-p3-a-5: var(--colors-yellow-dark-p3-a-5);--colors-yellow-p3-a-6: var(--colors-yellow-dark-p3-a-6);--colors-yellow-p3-a-7: var(--colors-yellow-dark-p3-a-7);--colors-yellow-p3-a-8: var(--colors-yellow-dark-p3-a-8);--colors-yellow-p3-a-9: var(--colors-yellow-dark-p3-a-9);--colors-yellow-p3-a-10: var(--colors-yellow-dark-p3-a-10);--colors-yellow-p3-a-11: var(--colors-yellow-dark-p3-a-11);--colors-yellow-p3-a-12: var(--colors-yellow-dark-p3-a-12);--colors-likec4-background-pattern: color-mix(in oklab, var(--mantine-color-dark-4) 70%, transparent 30%);--colors-likec4-mix-color: white;--colors-likec4-panel-bg: var(--mantine-color-dark-6);--colors-likec4-panel-action-bg: color-mix(in oklab, var(--mantine-color-dark-7) 70%, transparent 30%);--colors-likec4-panel-action-bg-hover: var(--mantine-color-dark-8);--colors-likec4-panel-action-warning-hover: var(--mantine-color-orange-5);--colors-likec4-panel-action-warning-bg: color-mix(in oklab, var(--mantine-color-orange-9) 10%, transparent 90%);--colors-likec4-panel-action-warning-bg-hover: color-mix(in oklab, var(--mantine-color-orange-9) 20%, transparent 80%);--colors-likec4-dropdown-bg: var(--mantine-color-dark-6);--colors-likec4-compare-manual: var(--mantine-color-orange-6);--colors-likec4-compare-manual-outline: color-mix(in oklab, var(--mantine-color-orange-6) 80%, transparent 20%) }[data-mantine-color-scheme=light]{--colors-likec4-background-pattern: var(--mantine-color-gray-4);--colors-likec4-mix-color: black;--colors-likec4-panel-border: var(--mantine-color-gray-2);--colors-likec4-overlay-backdrop: rgb(15 15 15);--colors-likec4-compare-manual: var(--mantine-color-orange-8);--colors-likec4-compare-manual-outline: var(--mantine-color-orange-8) }@keyframes indicatorOpacity{0%{opacity:.8;stroke-opacity:.8}to{opacity:.4;stroke-opacity:.4}}@keyframes xyedgeAnimated{0%{stroke-dashoffset:36}to{stroke-dashoffset:0}}}@layer recipes{@layer _base{.likec4-edge-label{background:var(--xy-edge-label-background-color);border:0px solid transparent;padding-block:var(--spacing-1);padding-inline:var(--spacing-1\\.5);gap:var(--spacing-0\\.5);border-radius:4px;font-family:var(--fonts-likec4-relation);display:flex;flex-direction:column;align-items:center;color:var(--xy-edge-label-color);width:max-content;max-width:var(--sizes-100\\%)}.likec4-edge-label .likec4-edge-label__step-number{padding:var(--spacing-1);background:color-mix(in oklab,var(--likec4-palette-relation-label-bg),var(--colors-likec4-mix-color) 10%);flex:0 0 auto;align-self:stretch;font-weight:600;font-size:14px;text-align:center;font-variant-numeric:tabular-nums;min-width:22px;border-top-left-radius:4px;border-bottom-left-radius:4px}.likec4-edge-label .likec4-edge-label__step-number:only-child{border-radius:4px;min-width:24px}[data-mantine-color-scheme=dark] :where([data-likec4-color=gray]) .likec4-edge-label .likec4-edge-label__step-number{background:color-mix(in oklab,var(--likec4-palette-relation-label-bg),var(--colors-likec4-mix-color) 15%)}.likec4-edge-label .likec4-edge-label__text{margin:var(--spacing-0);white-space-collapse:preserve-breaks;font-size:14px;line-height:1.2}.likec4-edge-label .likec4-edge-label__contents{display:contents}.likec4-edge-label .likec4-edge-label__contents:is(:empty,[data-empty]){display:none!important}.likec4-edge-label .likec4-edge-label__technology{text-align:center;white-space-collapse:preserve-breaks;font-size:11px;line-height:var(--line-heights-1);opacity:.75}.likec4-overlay{--_blur: 0px;--_level: 0;--_offset: 0px;--_inset: calc((1 + var(--_level) * .75) * var(--_offset));--_opacity: 0%;--_border-radius: 0px;margin:var(--spacing-0);background:var(--colors-likec4-overlay-border);border:var(--borders-transparent);inset:var(--spacing-0);padding:var(--spacing-0);outline:var(--borders-none);border-radius:var(--_border-radius);box-sizing:border-box;position:fixed;box-shadow:var(--shadows-xl);width:100vw;height:100vh;max-width:100vw;max-height:100vh}.likec4-overlay::backdrop{cursor:zoom-out}.likec4-overlay .likec4-overlay-body{border:var(--borders-transparent);background:var(--colors-likec4-overlay-body);overflow:hidden;position:relative;container-name:likec4-dialog;container-type:size;width:var(--sizes-100\\%);height:var(--sizes-100\\%)}.likec4-markdown-block{--text-fz: 1rem;--text-fz-sm: calc(var(--text-fz) * var(--mantine-scale, 1) / 1.125);--text-fz-md: calc(var(--text-fz) * var(--mantine-scale, 1));--typography-spacing: calc(.75 * var(--text-fz-md));--text-fw-headings: 600;--code-background: var(--mantine-color-gray-2);--code-color: var(--mantine-color-black);font-size:var(--text-fz-md);line-height:var(--mantine-line-height)}[data-mantine-color-scheme=dark] .likec4-markdown-block{--code-background: var(--mantine-color-dark-8);--code-color: var(--mantine-color-white);--color-border-default: #30363d;--color-accent-fg: #58a6ff;--color-accent-emphasis: #1f6feb;--color-danger-fg: #f85149;--color-danger-emphasis: #da3633;--color-attention-fg: #d29922;--color-attention-emphasis: #9e6a03;--color-done-fg: #a371f7;--color-done-emphasis: #8957e5;--color-success-fg: #3fb950;--color-success-emphasis: #238636}[data-mantine-color-scheme=light] .likec4-markdown-block{--color-border-default: #d0d7de;--color-accent-fg: #0969da;--color-accent-emphasis: #0969da;--color-danger-fg: #d1242f;--color-danger-emphasis: #cf222e;--color-attention-fg: #9a6700;--color-attention-emphasis: #9a6700;--color-done-fg: #8250df;--color-done-emphasis: #8250df;--color-success-fg: #1a7f37;--color-success-emphasis: #1f883d}.likec4-markdown-block :where(hr){border:var(--borders-none);border-bottom:1px solid;border-color:var(--mantine-color-gray-3);margin-top:calc(var(--typography-spacing) / 2);margin-bottom:calc(var(--typography-spacing) / 2)}[data-mantine-color-scheme=dark] .likec4-markdown-block :where(hr){border-color:var(--mantine-color-dark-3)}.likec4-markdown-block :where(pre){margin:var(--spacing-0);padding-inline:var(--spacing-3);padding-block:var(--spacing-2);border-radius:var(--radii-sm);line-height:var(--mantine-line-height-xs);font-family:var(--mantine-font-family-monospace);font-size:var(--text-fz-sm);background-color:var(--code-background);color:var(--code-color);margin-top:var(--typography-spacing);margin-bottom:var(--typography-spacing);overflow-x:auto}.likec4-markdown-block :where(code){padding:1px 4px;border-radius:var(--radii-xs);line-height:var(--line-heights-1);font-family:var(--mantine-font-family-monospace);font-size:var(--text-fz-sm);background-color:var(--code-background);color:var(--code-color)}.likec4-markdown-block :where(pre code){padding:var(--spacing-0);border:0;border-radius:var(--radii-0);background-color:var(--colors-transparent);color:inherit}.likec4-markdown-block :where(blockquote){margin:var(--spacing-0);padding:var(--spacing-xs);border-radius:var(--mantine-radius-sm);font-size:var(--text-fz-md);background-color:var(--mantine-color-gray-1)}[data-mantine-color-scheme=dark] .likec4-markdown-block :where(blockquote){background-color:var(--mantine-color-dark-5)}.likec4-markdown-block :where(blockquote):not(:first-child){margin-top:var(--typography-spacing)}.likec4-markdown-block :where(h1,h2,h3,h4,h5,h6){text-wrap:var(--mantine-heading-text-wrap);line-height:1.5;font-family:var(--mantine-font-family-headings);margin-bottom:var(--typography-spacing)}.likec4-markdown-block :where(a){text-decoration:none;font-size:var(--text-fz-md);color:var(--mantine-color-anchor);font-weight:500}.likec4-markdown-block :where(a):is(:hover,[data-hover]){text-decoration:underline}.likec4-markdown-block .markdown-alert{border-left:.25em solid var(--borderColor-default, var(--color-border-default));color:inherit;margin-bottom:calc(var(--typography-spacing) * 1.5);padding-left:1em;padding-right:.5em}.likec4-markdown-block .markdown-alert .markdown-alert-title{gap:var(--spacing-2);align-items:center;display:flex;font-size:var(--text-fz-md);font-weight:500;line-height:1.5;margin-bottom:.1em}.likec4-markdown-block .markdown-alert .markdown-alert-title svg{fill:currentColor;height:var(--text-fz-md)}.likec4-markdown-block .markdown-alert.markdown-alert-note .markdown-alert-title{color:var(--color-accent-fg)}.likec4-markdown-block .markdown-alert.markdown-alert-tip .markdown-alert-title{color:var(--color-success-fg)}.likec4-markdown-block .markdown-alert.markdown-alert-important .markdown-alert-title{color:var(--color-done-fg)}.likec4-markdown-block .markdown-alert.markdown-alert-warning .markdown-alert-title{color:var(--color-attention-fg)}.likec4-markdown-block .markdown-alert.markdown-alert-caution .markdown-alert-title{color:var(--color-danger-fg)}.likec4-markdown-block .markdown-alert:last-child{margin-bottom:var(--spacing-0)!important}.likec4-markdown-block .markdown-alert.markdown-alert-note{border-left-color:var(--borderColor-accent-emphasis,var(--color-accent-emphasis))}.likec4-markdown-block .markdown-alert.markdown-alert-tip{border-left-color:var(--borderColor-success-emphasis,var(--color-success-emphasis))}.likec4-markdown-block .markdown-alert.markdown-alert-important{border-left-color:var(--borderColor-done-emphasis,var(--color-done-emphasis))}.likec4-markdown-block .markdown-alert.markdown-alert-warning{border-left-color:var(--borderColor-attention-emphasis,var(--color-attention-emphasis))}.likec4-markdown-block .markdown-alert.markdown-alert-caution{border-left-color:var(--borderColor-danger-emphasis,var(--color-danger-emphasis))}.likec4-markdown-block :is(h1){font-size:calc(1.476 * var(--text-fz-md));font-weight:var(--text-fw-headings)}.likec4-markdown-block :is(h2){font-size:calc(1.383 * var(--text-fz-md));font-weight:var(--text-fw-headings)}.likec4-markdown-block :is(h3){font-size:calc(1.296 * var(--text-fz-md));font-weight:var(--text-fw-headings)}.likec4-markdown-block :is(h4){font-size:calc(1.215 * var(--text-fz-md));font-weight:var(--text-fw-headings)}.likec4-markdown-block :is(h5){font-size:calc(1.138 * var(--text-fz-md));font-weight:var(--text-fw-headings)}.likec4-markdown-block :is(h6){font-size:calc(1.067 * var(--text-fz-md));font-weight:var(--text-fw-headings)}.likec4-markdown-block :where(p){font-size:var(--text-fz-md);margin-top:var(--spacing-0);margin-bottom:var(--typography-spacing)}.likec4-markdown-block :where(strong){font-weight:500}.likec4-markdown-block :where(mark){font-size:var(--text-fz-md);background-color:var(--mantine-color-yellow-2);color:inherit}[data-mantine-color-scheme=dark] .likec4-markdown-block :where(mark){background-color:var(--mantine-color-yellow-5);color:var(--mantine-color-black)}.likec4-markdown-block :where(ul,ol):not([data-type=taskList]){padding-inline-start:var(--typography-spacing);list-style-position:inside;margin-bottom:var(--typography-spacing)}.likec4-markdown-block :where(table){border-collapse:collapse;caption-side:bottom;width:var(--sizes-100\\%);margin-bottom:var(--typography-spacing)}[data-mantine-color-scheme=light] .likec4-markdown-block :where(table){--table-border-color: var(--mantine-color-gray-3)}[data-mantine-color-scheme=dark] .likec4-markdown-block :where(table){--table-border-color: var(--mantine-color-dark-4)}.likec4-markdown-block :where(table) :where(th){padding:var(--typography-spacing);text-align:left;font-weight:700;font-size:var(--text-fz-sm)}.likec4-markdown-block :where(table) :where(td){padding:var(--typography-spacing);border-bottom:1px solid;border-color:var(--table-border-color);font-size:var(--text-fz-sm)}.likec4-markdown-block :where(table) :where(thead th){border-bottom:1px solid;border-color:var(--table-border-color)}.likec4-markdown-block :where(table) :where(tfoot th){border-top:1px solid;border-color:var(--table-border-color)}.likec4-markdown-block :where(table) :where(tr:last-of-type td){border-bottom:0}.likec4-markdown-block :where(table) :where(caption){font-size:var(--text-fz-sm);color:var(--mantine-color-dimmed);margin-top:calc(.5 * var(--typography-spacing) + 1px)}.likec4-markdown-block :first-child{margin-top:var(--spacing-0)}.likec4-markdown-block :last-child{margin-bottom:var(--spacing-0)}.likec4-markdown-block :is(h1,h2,h3,h4,h5,h6):not(:first-child){margin-top:var(--typography-spacing)}.likec4-markdown-block :where(img){max-width:var(--sizes-100\\%);margin-bottom:var(--typography-spacing)}.likec4-navigation-panel-icon{color:var(--colors-likec4-panel-action)}.likec4-navigation-panel-icon:is(:disabled,[disabled],[data-disabled],[aria-disabled=true]){color:var(--colors-likec4-panel-action-disabled);opacity:.5}.likec4-navigation-panel-icon:not(:is(:disabled,[disabled],[data-disabled])):is(:hover,[data-hover]){color:var(--colors-likec4-panel-action-hover)}.action-btn{--actionbtn-color: var(--likec4-palette-loContrast);--actionbtn-color-hovered: var(--likec4-palette-loContrast);--actionbtn-color-hovered-btn: var(--likec4-palette-hiContrast);--actionbtn-bg-idle: color-mix(in oklab , var(--likec4-palette-fill), transparent 99%);--actionbtn-bg-hovered: color-mix(in oklab , var(--likec4-palette-fill) 65%, var(--likec4-palette-stroke));--actionbtn-bg-hovered-btn: color-mix(in oklab , var(--likec4-palette-fill) 50%, var(--likec4-palette-stroke));--ai-bg: var(--actionbtn-bg-idle);background:var(--ai-bg);color:var(--actionbtn-color);opacity:.75}:where(.react-flow__node:has([data-likec4-hovered=true]),.react-flow__edge:has([data-likec4-hovered=true]),.likec4-edge-container[data-likec4-hovered=true]) .action-btn{--ai-bg: var(--actionbtn-bg-hovered);opacity:1;color:var(--actionbtn-color-hovered)}:where(.react-flow__node,.react-flow__edge,.likec4-edge-container):is(.selectable) .action-btn{pointer-events:all;cursor:pointer}.likec4-root:is([data-likec4-reduced-graphics][data-likec4-diagram-panning=true]) .action-btn{display:none}:where([data-likec4-zoom-small=true]) .action-btn{display:none}.action-btn *{pointer-events:none}.action-btn:is(:hover,[data-hover]){--ai-bg: var(--actionbtn-bg-hovered-btn);opacity:1;color:var(--actionbtn-color-hovered-btn)}.likec4-compound-node{--likec4-palette-outline: oklab(from var(--likec4-palette-stroke) calc(l - .05) a b);--_border-width: 3px;--_border-radius: 6px;--_compound-transparency: 100%;--_border-transparency: 100%;--_indicator-spacing: calc(var(--_border-width) + 1px);--_compound-color: var(--likec4-palette-loContrast);padding:var(--spacing-0);margin:var(--spacing-0);border-style:solid;border-width:var(--_border-width);border-radius:var(--_border-radius);position:relative;pointer-events:none;background-clip:padding-box;-webkit-background-clip:padding-box;box-sizing:border-box;color:var(--_compound-color);width:var(--sizes-100\\%);height:var(--sizes-100\\%)}[data-mantine-color-scheme=dark] .likec4-compound-node{--likec4-palette-outline: oklab(from var(--likec4-palette-stroke) calc(l + .2) a b)}.likec4-compound-node:before{border-style:solid;border-width:calc(var(--_border-width) + 1px);border-radius:calc(var(--_border-radius) + 4px);border-color:var(--likec4-palette-outline);position:absolute;content:" ";pointer-events:none;display:none;animation-duration:1s;animation-iteration-count:infinite;animation-direction:alternate;animation-name:indicatorOpacity;animation-play-state:paused;top:calc(-1 * var(--_indicator-spacing));left:calc(-1 * var(--_indicator-spacing));width:calc(100% + 2 * var(--_indicator-spacing));height:calc(100% + 2 * var(--_indicator-spacing))}:where(.react-flow__node,.react-flow__edge):is(:focus-visible,:focus,:focus-within) .likec4-compound-node:before{display:block;animation-play-state:running}:where(.react-flow__node,.react-flow__edge,.likec4-edge-container):is(.selected) .likec4-compound-node:before{display:block;animation-play-state:running}.likec4-root:is([data-likec4-diagram-panning=true]) .likec4-compound-node:before{animation-play-state:paused}.likec4-compound-node:has(.likec4-compound-navigation) .likec4-compound-title-container{padding-left:24px}.likec4-compound-node .action-btn{--actionbtn-color: var(--_compound-color);--actionbtn-color-hovered: var(--_compound-color);--actionbtn-color-hovered-btn: color-mix(in oklab, var(--_compound-color) 80%, #fff);opacity:.6}.likec4-root:not([data-likec4-reduced-graphics]) .likec4-compound-node .action-btn{transition:all var(--durations-fast) var(--easings-in-out)}:where(.react-flow__node:has([data-likec4-hovered=true]),.react-flow__edge:has([data-likec4-hovered=true]),.likec4-edge-container[data-likec4-hovered=true]) .likec4-compound-node .action-btn{opacity:.75}:where(.react-flow__node,.react-flow__edge,.likec4-edge-container):is(.selected) .likec4-compound-node .action-btn{opacity:.75}.likec4-compound-node .action-btn:is(:hover,[data-hover]){opacity:1}.likec4-compound-node .likec4-compound-title-container{gap:var(--spacing-1\\.5);position:absolute;display:flex;align-items:center;left:var(--spacing-2\\.5);top:var(--spacing-0\\.5);right:30px;width:auto;min-height:30px}:where(.react-flow__node.draggable) .likec4-compound-node .likec4-compound-title-container{pointer-events:all;cursor:grab}.likec4-compound-node .likec4-compound-title{flex:1 1 0%;font-family:var(--fonts-likec4-compound);font-weight:600;font-size:15px;text-transform:uppercase;letter-spacing:.25px;line-height:var(--line-heights-1);color:var(--_compound-color)}.likec4-compound-node .likec4-compound-icon{flex:0 0 20px;display:flex;align-items:center;justify-content:center;mix-blend-mode:hard-light;height:20px;width:20px}.likec4-root:is([data-likec4-reduced-graphics][data-likec4-diagram-panning=true]) .likec4-compound-node .likec4-compound-icon{mix-blend-mode:normal}.likec4-compound-node .likec4-compound-icon svg,.likec4-compound-node .likec4-compound-icon img{pointer-events:none;filter:drop-shadow(0 0 3px rgb(0 0 0 / 12%)) drop-shadow(0 1px 8px rgb(0 0 0 / 8%)) drop-shadow(1px 1px 16px rgb(0 0 0 / 3%));width:var(--sizes-100\\%);height:auto;max-height:var(--sizes-100\\%)}.likec4-root:is([data-likec4-reduced-graphics][data-likec4-diagram-panning=true]) .likec4-compound-node .likec4-compound-icon svg,.likec4-root:is([data-likec4-reduced-graphics][data-likec4-diagram-panning=true]) .likec4-compound-node .likec4-compound-icon img{filter:none}.likec4-compound-node .likec4-compound-icon img{object-fit:contain}.likec4-compound-node .likec4-compound-navigation{position:absolute;top:var(--spacing-1);left:var(--spacing-0\\.5)}:where([data-likec4-zoom-small=true]) .likec4-compound-node .likec4-compound-navigation{display:none}.likec4-compound-node .likec4-compound-details{position:absolute;top:var(--spacing-0\\.5);right:var(--spacing-0\\.5)}:where([data-likec4-zoom-small=true]) .likec4-compound-node .likec4-compound-details{display:none}.likec4-edge-action-btn{--ai-bg: transparent;--ai-hover: color-mix(in oklab , var(--xy-edge-label-background-color), var(--colors-likec4-mix-color) 10%);--ai-size: var(--ai-size-sm);--ai-radius: var(--radii-sm);transition:all var(--durations-fast) var(--easings-in-out);pointer-events:all;color:var(--xy-edge-label-color);cursor:pointer;opacity:.75;translate:var(--translate-x) var(--translate-y)}:where(.react-flow__node:has([data-likec4-hovered=true]),.react-flow__edge:has([data-likec4-hovered=true]),.likec4-edge-container[data-likec4-hovered=true]) .likec4-edge-action-btn{--ai-bg: var(--xy-edge-label-background-color);opacity:1}.likec4-edge-action-btn .tabler-icon{stroke-width:2;width:80%;height:80%}.likec4-edge-action-btn:is(:hover,[data-hover]){--translate-y: 2px;scale:1.15}.likec4-edge-action-btn:is(:active,[data-active]){--translate-y: -1px;scale:.9}.likec4-element-node-data{margin:0 auto;flex:1 1 0%;overflow:hidden;gap:var(--spacing-3);position:relative;display:flex;align-items:center;justify-content:center;flex-direction:row;pointer-events:none;text-align:center;height:fit-content;width:fit-content;max-height:var(--sizes-100\\%);max-width:var(--sizes-100\\%);padding-top:var(--likec4-spacing);padding-bottom:var(--likec4-spacing);padding-left:calc(var(--likec4-spacing) + 8px);padding-right:calc(var(--likec4-spacing) + 8px)}:where([data-likec4-shape-size=xs]) .likec4-element-node-data{--likec4-icon-size: 24px}:where([data-likec4-shape-size=sm]) .likec4-element-node-data{--likec4-icon-size: 36px}:where([data-likec4-shape-size=md]) .likec4-element-node-data{--likec4-icon-size: 60px}:where([data-likec4-shape-size=lg]) .likec4-element-node-data{--likec4-icon-size: 82px;gap:var(--spacing-4)}:where([data-likec4-shape-size=xl]) .likec4-element-node-data{--likec4-icon-size: 90px;gap:var(--spacing-4)}.likec4-element-node-data:has([data-likec4-icon]){gap:var(--spacing-4);text-align:left}.likec4-element-node-data:has([data-likec4-icon]) .likec4-element-node-content{align-items:flex-start;min-width:calc(50% + var(--likec4-icon-size))}:where([data-likec4-shape=queue]) .likec4-element-node-data{padding-left:46px;padding-right:16px}:where([data-likec4-shape=mobile]) .likec4-element-node-data{padding-left:46px;padding-right:16px}:where([data-likec4-shape=cylinder]) .likec4-element-node-data{padding-top:30px}:where([data-likec4-shape=storage]) .likec4-element-node-data{padding-top:30px}:where([data-likec4-shape=browser]) .likec4-element-node-data{padding-top:32px;padding-bottom:28px}.likec4-element-node-data [data-likec4-icon]{flex:0 0 var(--likec4-icon-size, 48px);display:flex;align-self:flex-start;align-items:center;justify-content:center;mix-blend-mode:hard-light;height:var(--likec4-icon-size, 48px);width:var(--likec4-icon-size, 48px)}.likec4-root:is([data-likec4-reduced-graphics][data-likec4-diagram-panning=true]) .likec4-element-node-data [data-likec4-icon]{mix-blend-mode:normal}.likec4-element-node-data [data-likec4-icon] svg,.likec4-element-node-data [data-likec4-icon] img{pointer-events:none;filter:drop-shadow(0 0 3px rgb(0 0 0 / 12%));width:var(--sizes-100\\%);height:auto;max-height:var(--sizes-100\\%)}.likec4-root:is([data-likec4-reduced-graphics][data-likec4-diagram-panning=true]) .likec4-element-node-data [data-likec4-icon] svg,.likec4-root:is([data-likec4-reduced-graphics][data-likec4-diagram-panning=true]) .likec4-element-node-data [data-likec4-icon] img{filter:none}.likec4-element-node-data [data-likec4-icon] img{object-fit:contain}.likec4-element-node-data .likec4-element-node-content{flex:0 1 auto;overflow:hidden;gap:var(--spacing-2);display:flex;flex-direction:column;align-items:stretch;justify-content:center;flex-wrap:nowrap;height:fit-content;width:fit-content;max-height:var(--sizes-100\\%);max-width:var(--sizes-100\\%)}.likec4-element-node-data .likec4-element-node-content:has([data-likec4-node-description]):has([data-likec4-node-technology]){gap:var(--spacing-1\\.5)}.likec4-element-node-data [data-likec4-node-title]{flex:0 0 auto;font-family:var(--likec4-element-font, var(--fonts-likec4));font-weight:500;font-size:var(--likec4-text-size);line-height:1.15;text-wrap-style:balance;white-space:preserve-breaks;text-align:var(__text-align);color:var(--likec4-palette-hiContrast)}.likec4-element-node-data [data-likec4-node-description]{overflow:hidden;flex-grow:0;flex-shrink:1;--text-fz: calc(var(--likec4-text-size) * .74);font-family:var(--likec4-element-font, var(--fonts-likec4));font-weight:400;font-size:calc(var(--likec4-text-size) * .74);line-height:1.3;text-wrap-style:pretty;color:var(--likec4-palette-loContrast);text-align:var(__text-align);text-overflow:ellipsis}:where([data-likec4-shape-size=xs]) .likec4-element-node-data [data-likec4-node-description]{display:none}:where([data-likec4-zoom-small=true]) .likec4-element-node-data [data-likec4-node-description]{display:none}.likec4-element-node-data [data-likec4-node-description] a{pointer-events:all}.likec4-element-node-data [data-likec4-node-description] .markdown-alert{mix-blend-mode:screen}.likec4-element-node-data [data-likec4-node-technology]{flex:0 0 auto;text-wrap:balance;--text-fz: calc(var(--likec4-text-size) * .74);font-family:var(--likec4-element-font, var(--fonts-likec4));font-weight:400;font-size:calc(var(--likec4-text-size) * .635);line-height:1.125;text-wrap-style:pretty;color:var(--likec4-palette-loContrast);text-align:var(__text-align);opacity:.92}:where(.react-flow__node:has([data-likec4-hovered=true]),.react-flow__edge:has([data-likec4-hovered=true]),.likec4-edge-container[data-likec4-hovered=true]) .likec4-element-node-data [data-likec4-node-technology]{opacity:1}:where([data-likec4-shape-size=xs]) .likec4-element-node-data [data-likec4-node-technology]{display:none}:where([data-likec4-shape-size=sm]) .likec4-element-node-data [data-likec4-node-technology]{display:none}:where([data-likec4-zoom-small=true]) .likec4-element-node-data [data-likec4-node-technology]{display:none}.likec4-element-shape{--likec4-palette-outline: oklab(from var(--likec4-palette-stroke) calc(l - .05) a b);--likec4-outline-size: 4px;overflow:visible;position:absolute;pointer-events:none;top:var(--spacing-0);left:var(--spacing-0);width:var(--sizes-100\\%);height:var(--sizes-100\\%)}[data-mantine-color-scheme=dark] .likec4-element-shape{--likec4-palette-outline: oklab(from var(--likec4-palette-stroke) calc(l + .2) a b)}.likec4-element-shape .likec4-shape-outline{visibility:hidden;animation-play-state:paused;pointer-events:none}:where([data-likec4-zoom-small=true]) .likec4-element-shape .likec4-shape-outline{visibility:hidden}:where(.react-flow__node,.react-flow__edge,.likec4-edge-container):is(.selected) .likec4-element-shape .likec4-shape-outline{visibility:visible;animation-play-state:running}:where(.react-flow__node,.react-flow__edge):is(:focus-visible,:focus,:focus-within) .likec4-element-shape .likec4-shape-outline{visibility:visible;animation-play-state:running}.group:is(:focus-visible,[data-focus-visible]) .likec4-element-shape .likec4-shape-outline{visibility:visible;animation-play-state:running}.likec4-root:is([data-likec4-diagram-panning=true]) .likec4-element-shape .likec4-shape-outline{animation-play-state:paused}.likec4-tag{transition:all var(--durations-fast) var(--easings-in-out);gap:1px;padding-inline:var(--spacing-1);padding-block:var(--spacing-0);pointer-events:all;display:inline-flex;align-items:center;justify-content:center;font-size:var(--font-sizes-xs);cursor:default;font-family:var(--fonts-likec4);font-weight:700;border:var(--borders-none);border-radius:3px;color:var(--colors-likec4-tag-text);background-color:var(--colors-likec4-tag-bg)}.likec4-tag:is(:hover,[data-hover]){background-color:var(--colors-likec4-tag-bg-hover)}.likec4-tag{white-space:nowrap;min-width:40px;width:min-content}@media screen and (min-width:36rem){.likec4-markdown-block .markdown-alert.markdown-alert-note .markdown-alert-title{color:var(--fgColor-accent,var(--color-accent-fg))}.likec4-markdown-block .markdown-alert.markdown-alert-tip .markdown-alert-title{color:var(--fgColor-success,var(--color-success-fg))}.likec4-markdown-block .markdown-alert.markdown-alert-important .markdown-alert-title{color:var(--fgColor-done,var(--color-done-fg))}.likec4-markdown-block .markdown-alert.markdown-alert-warning .markdown-alert-title{color:var(--fgColor-attention,var(--color-attention-fg))}.likec4-markdown-block .markdown-alert.markdown-alert-caution .markdown-alert-title{color:var(--fgColor-danger,var(--color-danger-fg))}.likec4-element-node-data [data-likec4-icon] svg,.likec4-element-node-data [data-likec4-icon] img{filter:drop-shadow(0 1px 8px rgb(0 0 0 / 8%))}}@media screen and (min-width:48rem){.likec4-element-node-data [data-likec4-icon] svg,.likec4-element-node-data [data-likec4-icon] img{filter:drop-shadow(1px 1px 16px rgb(0 0 0 / 3%))}}@media print{.action-btn{display:none}.likec4-compound-node .likec4-compound-icon{mix-blend-mode:normal!important}.likec4-compound-node .action-btn,.likec4-compound-node .likec4-compound-navigation,.likec4-compound-node .likec4-compound-details,.likec4-edge-action-btn{display:none}}}.likec4-edge-label--pointerEvents_all{pointer-events:all}.likec4-edge-label--cursor_default{cursor:default}.likec4-edge-label--cursor_pointer{cursor:pointer}.likec4-edge-label--isStepEdge_true{padding:var(--spacing-0);gap:var(--spacing-1);flex-direction:row}.likec4-edge-label--isStepEdge_true .likec4-edge-label__contents{gap:var(--spacing-0\\.5);display:flex;flex-direction:column;align-items:center;padding-top:var(--spacing-0\\.5);padding-right:var(--spacing-1);padding-bottom:var(--spacing-1)}.likec4-edge-label--isStepEdge_true .likec4-edge-label__text{padding-block:var(--spacing-0\\.5);padding-right:var(--spacing-0\\.5)}.likec4-edge-label--pointerEvents_none{pointer-events:none}.likec4-overlay--withBackdrop_true::backdrop{background:color-mix(in oklab,var(--colors-likec4-overlay-backdrop) var(--_opacity),transparent);backdrop-filter:blur(var(--_blur));-webkit-backdrop-filter:blur(var(--_blur))}.likec4-overlay--fullscreen_true{inset:var(--spacing-0);padding:var(--spacing-0)}.likec4-overlay--withBackdrop_false::backdrop{display:none}.likec4-markdown-block--value_plaintext :where(p){white-space:preserve-breaks}.likec4-markdown-block--uselikec4palette_true{--code-background: color-mix(in oklab , var(--likec4-palette-stroke) 70%, transparent);--code-color: var(--likec4-palette-loContrast);--typography-spacing: calc(.5 * var(--text-fz-md))}.likec4-markdown-block--uselikec4palette_true :where(blockquote){padding:var(--spacing-xxs);--mix-backgroundColor: color-mix(in srgb, var(--likec4-palette-stroke) 65%, transparent);background-color:var(--mix-backgroundColor, var(--likec4-palette-stroke))}.likec4-markdown-block--uselikec4palette_true :where(hr){--mix-borderColor: color-mix(in srgb, var(--likec4-palette-stroke) 85%, transparent);border-color:var(--mix-borderColor, var(--likec4-palette-stroke))}.likec4-markdown-block--uselikec4palette_true :where(a){--mix-color: color-mix(in srgb, var(--likec4-palette-fill) 45%, transparent);color:var(--mix-color, var(--likec4-palette-fill));mix-blend-mode:difference}.likec4-markdown-block--uselikec4palette_true :where(strong){color:color-mix(in oklab,var(--likec4-palette-hiContrast) 50%,var(--likec4-palette-loContrast))}.likec4-navigation-panel-icon--variant_default{background-color:var(--colors-transparent)}.likec4-navigation-panel-icon--variant_default:not(:is(:disabled,[disabled],[data-disabled])):is(:hover,[data-hover]){background-color:var(--colors-likec4-panel-action-bg-hover)}.likec4-navigation-panel-icon--variant_filled{background-color:var(--colors-likec4-panel-action-bg)}.likec4-navigation-panel-icon--variant_filled:not(:is(:disabled,[disabled],[data-disabled])):is(:hover,[data-hover]){background-color:var(--colors-likec4-panel-action-bg-hover)}.likec4-navigation-panel-icon--type_warning{color:var(--colors-likec4-panel-action-warning)}.likec4-navigation-panel-icon--type_warning:is(:hover,[data-hover]){color:var(--colors-likec4-panel-action-warning-hover)}.action-btn--size_md{--ai-size: var(--ai-size-md)}.action-btn--radius_md{--ai-radius: var(--mantine-radius-md)}.action-btn--variant_transparent{--actionbtn-bg-hovered: var(--actionbtn-bg-idle)}.action-btn--variant_filled{box-shadow:1px 1px 3px 0 transparent}:where(.react-flow__node:has([data-likec4-hovered=true]),.react-flow__edge:has([data-likec4-hovered=true]),.likec4-edge-container[data-likec4-hovered=true]) .action-btn--variant_filled{box-shadow:1px 1px 3px #0003}.likec4-root:is([data-likec4-reduced-graphics]) .action-btn--variant_filled{box-shadow:var(--shadows-none)}.action-btn--size_sm{--ai-size: var(--ai-size-sm)}.action-btn--radius_sm{--ai-radius: var(--mantine-radius-sm)}.likec4-compound-node--borderStyle_dashed{border-style:dashed}.likec4-compound-node--borderStyle_none{--_indicator-spacing: calc(var(--_border-width) * 2);border-color:var(--colors-transparent)!important;background-clip:border-box!important;-webkit-background-clip:border-box!important}.likec4-compound-node--isTransparent_false{border-color:var(--likec4-palette-stroke);background-color:var(--likec4-palette-fill)}.likec4-root:not([data-likec4-reduced-graphics]) .likec4-compound-node--isTransparent_false{box-shadow:0 4px 10px .5px #0000001a,0 2px 2px -1px #0006}:where(.react-flow__node,.react-flow__edge,.likec4-edge-container):is(.selected) .likec4-compound-node--isTransparent_false{box-shadow:var(--shadows-none)}.likec4-root:is([data-likec4-diagram-panning=true]) .likec4-compound-node--isTransparent_false{box-shadow:var(--shadows-none)!important}.likec4-compound-node--isTransparent_true{border-color:color-mix(in oklab,var(--likec4-palette-stroke) var(--_border-transparency),transparent);background-color:color-mix(in oklab,var(--likec4-palette-fill) var(--_compound-transparency),transparent)}.likec4-compound-node--inverseColor_true{--_compound-color: var(--likec4-palette-stroke)}[data-mantine-color-scheme=dark] .likec4-compound-node--inverseColor_true{--_compound-color: color-mix(in oklab, var(--likec4-palette-loContrast) 60%, var(--likec4-palette-fill))}[data-mantine-color-scheme=dark] .likec4-compound-node--inverseColor_true .action-btn{--actionbtn-color-hovered-btn: var(--likec4-palette-loContrast)}[data-mantine-color-scheme=light] .likec4-compound-node--inverseColor_true .action-btn{--actionbtn-color: var(--likec4-palette-stroke);--actionbtn-color-hovered: var(--likec4-palette-stroke);--actionbtn-color-hovered-btn: var(--likec4-palette-hiContrast);--actionbtn-bg-hovered: var(--likec4-palette-fill)/50;--actionbtn-bg-hovered-btn: var(--likec4-palette-fill)}.likec4-compound-node--borderStyle_solid{border-style:solid}.likec4-compound-node--borderStyle_dotted{border-style:dotted}.likec4-element-shape--shapetype_html{border-radius:6px;transition:background-color .12s linear,box-shadow .13s var(--easings-in-out);background-color:var(--likec4-palette-fill);box-shadow:0 2px 1px #00000036,0 1px 1px color-mix(in oklab,var(--likec4-palette-stroke) 40%,transparent),0 5px 3px #0000001a;transition-delay:0ms}.likec4-root:is([data-likec4-reduced-graphics][data-likec4-diagram-panning=true]) .likec4-element-shape--shapetype_html{transition:none}:where(.react-flow__node:has([data-likec4-hovered=true]),.react-flow__edge:has([data-likec4-hovered=true]),.likec4-edge-container[data-likec4-hovered=true]) .likec4-element-shape--shapetype_html{box-shadow:#26394df2 0 20px 30px -10px}[data-mantine-color-scheme=dark] :where(.react-flow__node:has([data-likec4-hovered=true]),.react-flow__edge:has([data-likec4-hovered=true]),.likec4-edge-container[data-likec4-hovered=true]) .likec4-element-shape--shapetype_html{box-shadow:#0a0b10e5 0 20px 30px -10px}:where(.react-flow__node,.react-flow__edge,.likec4-edge-container):is(.selected) .likec4-element-shape--shapetype_html{box-shadow:var(--shadows-none)}:where([data-likec4-zoom-small=true]) .likec4-element-shape--shapetype_html{box-shadow:var(--shadows-none)}.likec4-root:is([data-likec4-diagram-panning=true]) .likec4-element-shape--shapetype_html{box-shadow:var(--shadows-none)}.likec4-element-shape--shapetype_html .likec4-shape-multiple{border-radius:6px;transition:all var(--durations-fast) var(--easings-in-out);position:absolute;content:" ";background-color:var(--likec4-palette-fill);z-index:var(--z-index--1);filter:brightness(.5)!important;visibility:visible;top:16px;left:16px;width:calc(100% - 6px);height:calc(100% - 6px)}:where([data-likec4-zoom-small=true]) .likec4-element-shape--shapetype_html .likec4-shape-multiple{visibility:hidden}:where(.react-flow__node,.react-flow__edge,.likec4-edge-container):is(.selected) .likec4-element-shape--shapetype_html .likec4-shape-multiple{visibility:hidden}:where(.react-flow__node,.react-flow__edge):is(:focus-visible,:focus,:focus-within) .likec4-element-shape--shapetype_html .likec4-shape-multiple{visibility:hidden}.likec4-root:is([data-likec4-reduced-graphics][data-likec4-diagram-panning=true]) .likec4-element-shape--shapetype_html .likec4-shape-multiple{visibility:hidden}:where(.react-flow__node:has([data-likec4-hovered=true]),.react-flow__edge:has([data-likec4-hovered=true]),.likec4-edge-container[data-likec4-hovered=true]) .likec4-element-shape--shapetype_html .likec4-shape-multiple{transform:translate(-14px,-14px)}.likec4-element-shape--shapetype_html .likec4-shape-outline{border-style:solid;border-width:var(--likec4-outline-size);border-radius:11px;border-color:var(--likec4-palette-outline);position:absolute;content:" ";animation-duration:1s;animation-iteration-count:infinite;animation-direction:alternate;animation-name:indicatorOpacity;top:calc(-1 * var(--likec4-outline-size) - 1px);left:calc(-1 * var(--likec4-outline-size) - 1px);width:calc(100% + 2 * var(--likec4-outline-size) + 2px);height:calc(100% + 2 * var(--likec4-outline-size) + 2px)}.likec4-element-shape--shapetype_svg{transition:fill .12s linear,filter .13s var(--easings-in-out);fill:var(--likec4-palette-fill);stroke:var(--likec4-palette-stroke);transition-delay:0ms;filter:drop-shadow(0 2px 1px rgba(0,0,0,.21)) drop-shadow(0 1px 1px color-mix(in oklab,var(--likec4-palette-stroke) 40%,transparent)) drop-shadow(0 5px 3px rgba(0,0,0,.1))}:where(.react-flow__node:has([data-likec4-hovered=true]),.react-flow__edge:has([data-likec4-hovered=true]),.likec4-edge-container[data-likec4-hovered=true]) .likec4-element-shape--shapetype_svg{filter:drop-shadow(0 2px 1px rgba(0,0,0,.12)) drop-shadow(0px 4px 2px rgba(0,0,0,.12)) drop-shadow(0px 8px 4px rgba(0,0,0,.12)) drop-shadow(0px 16px 8px rgba(0,0,0,.1)) drop-shadow(0px 32px 16px rgba(0,0,0,.09))}:where(.react-flow__node,.react-flow__edge,.likec4-edge-container):is(.selected) .likec4-element-shape--shapetype_svg{filter:none}:where([data-likec4-zoom-small=true]) .likec4-element-shape--shapetype_svg{filter:none}.likec4-root:is([data-likec4-diagram-panning=true]) .likec4-element-shape--shapetype_svg{filter:none}.likec4-element-shape--shapetype_svg [data-likec4-fill=fill]{fill:var(--likec4-palette-fill)}.likec4-element-shape--shapetype_svg [data-likec4-fill=stroke]{fill:var(--likec4-palette-stroke)}.likec4-element-shape--shapetype_svg [data-likec4-fill=mix-stroke]{fill:color-mix(in oklab,var(--likec4-palette-stroke) 90%,var(--likec4-palette-fill))}.likec4-element-shape--shapetype_svg:is([data-likec4-shape-multiple=true]){transition:all var(--durations-fast) var(--easings-in-out);transform-origin:50% 50%;transform:translate(14px,14px) perspective(200px) translateZ(-4px);filter:brightness(.5)!important;stroke:var(--colors-none)}:where([data-likec4-shape=queue]) .likec4-element-shape--shapetype_svg:is([data-likec4-shape-multiple=true]){transform-origin:75% 25%}:where([data-likec4-shape=cylinder]) .likec4-element-shape--shapetype_svg:is([data-likec4-shape-multiple=true]){transform-origin:50% 100%}:where([data-likec4-shape=storage]) .likec4-element-shape--shapetype_svg:is([data-likec4-shape-multiple=true]){transform-origin:50% 100%}:where(.react-flow__node:has([data-likec4-hovered=true]),.react-flow__edge:has([data-likec4-hovered=true]),.likec4-edge-container[data-likec4-hovered=true]) .likec4-element-shape--shapetype_svg:is([data-likec4-shape-multiple=true]){transform:translate(2px,2px) perspective(200px) translateZ(-4px)}:where([data-likec4-zoom-small=true]) .likec4-element-shape--shapetype_svg:is([data-likec4-shape-multiple=true]){display:none}.likec4-root:is([data-likec4-reduced-graphics][data-likec4-diagram-panning=true]) .likec4-element-shape--shapetype_svg:is([data-likec4-shape-multiple=true]){display:none}:where(.react-flow__node,.react-flow__edge,.likec4-edge-container):is(.selected) .likec4-element-shape--shapetype_svg:is([data-likec4-shape-multiple=true]){display:none}:where(.react-flow__node,.react-flow__edge):is(:focus-visible,:focus,:focus-within) .likec4-element-shape--shapetype_svg:is([data-likec4-shape-multiple=true]){display:none}.likec4-element-shape--shapetype_svg:is([data-likec4-shape-multiple=true]) [data-likec4-fill=mix-stroke]{fill:var(--likec4-palette-fill)}.likec4-element-shape--shapetype_svg .likec4-shape-outline{stroke:var(--likec4-palette-outline);fill:var(--colors-none);stroke-width:3;stroke-opacity:.8;animation-duration:1s;animation-iteration-count:infinite;animation-direction:alternate;animation-name:indicatorOpacity}.likec4-tag--autoTextColor_false>span{color:var(--colors-likec4-tag-text)}.likec4-tag--autoTextColor_false>span:first-child{opacity:.65}.likec4-tag--autoTextColor_true>span{background:inherit;color:var(--colors-transparent);filter:invert(1) grayscale(1) brightness(1.3) contrast(1000);background-clip:text;-webkit-background-clip:text;mix-blend-mode:plus-lighter}.hover\\:likec4-tag--autoTextColor_true:is(:hover,[data-hover])>span{background:inherit;color:var(--colors-transparent);filter:invert(1) grayscale(1) brightness(1.3) contrast(1000);background-clip:text;-webkit-background-clip:text;mix-blend-mode:plus-lighter}.hover\\:likec4-tag--autoTextColor_false:is(:hover,[data-hover])>span{color:var(--colors-likec4-tag-text)}.hover\\:likec4-tag--autoTextColor_false:is(:hover,[data-hover])>span:first-child{opacity:.65}@media screen and (min-width:48rem){.likec4-overlay--fullscreen_false{--_border-radius: 6px;--_offset: 1rem;inset:var(--_inset) var(--_inset) var(--_offset) var(--_inset);padding:var(--spacing-1\\.5);border-radius:calc(var(--_border-radius) - 2px);width:calc(100vw - 2 * var(--_inset));height:calc(100vh - var(--_offset) - var(--_inset))}}@media screen and (min-width:62rem){.likec4-overlay--fullscreen_false{--_offset: 1rem}}@media screen and (min-width:75rem){.likec4-overlay--fullscreen_false{--_offset: 2rem}}@media screen and (min-width:88rem){.likec4-overlay--fullscreen_false{--_offset: 4rem}}@media print{.likec4-markdown-block--uselikec4palette_true :where(a){mix-blend-mode:normal!important}}@media print{.likec4-tag--autoTextColor_true>span{mix-blend-mode:normal!important}}@media print{.hover\\:likec4-tag--autoTextColor_true:is(:hover,[data-hover])>span{mix-blend-mode:normal!important}}}@layer recipes.slots{@layer _base{.likec4-navlink__root{border-radius:var(--radii-sm);padding-inline:var(--spacing-xs);padding-block:var(--spacing-xxs)}.likec4-navlink__root:is(:hover,[data-hover]):not([data-active]){background-color:var(--colors-mantine-colors-gray\\[1\\])}[data-mantine-color-scheme=dark] .likec4-navlink__root:is(:hover,[data-hover]):not([data-active]){background-color:var(--colors-mantine-colors-dark\\[5\\])}.likec4-navlink__body{gap:var(--spacing-0\\.5);display:flex;flex-direction:column}.likec4-navlink__section:where([data-position=left]){margin-inline-end:var(--spacing-xxs)}.likec4-navlink__label{display:block;font-size:var(--font-sizes-sm);font-weight:500;line-height:1.2}.likec4-navlink__description{display:block;font-size:var(--font-sizes-xxs);line-height:1.2}.likec4-edge__path{fill:var(--colors-none);stroke-dashoffset:0}.likec4-root:not([data-likec4-reduced-graphics]) .likec4-edge__path{transition:stroke .13s ease-out,stroke-width .13s ease-out;animation-duration:.8s;animation-iteration-count:infinite;animation-timing-function:linear;animation-fill-mode:both;animation-name:xyedgeAnimated;animation-play-state:paused}:where([data-edge-dir=back]) .likec4-edge__path{animation-direction:reverse}:where(.react-flow__node,.react-flow__edge):has([data-likec4-dimmed]) .likec4-edge__path{animation-play-state:paused}:where([data-likec4-zoom-small=true]) .likec4-edge__path{animation-name:none}.likec4-root:is([data-likec4-diagram-panning=true]) .likec4-edge__path{stroke-dasharray:none!important;animation-play-state:paused}.likec4-root:not([data-likec4-reduced-graphics]) :where(.react-flow__node:has([data-likec4-hovered=true]),.react-flow__edge:has([data-likec4-hovered=true]),.likec4-edge-container[data-likec4-hovered=true]) .likec4-edge__path{animation-play-state:running;animation-delay:.45s}.likec4-root:not([data-likec4-reduced-graphics]) :where(.selected,[data-edge-active=true],[data-edge-animated=true]) .likec4-edge__path{animation-play-state:running;animation-delay:0ms}.likec4-edge__pathBg{pointer-events:none;fill:var(--colors-none);stroke-width:calc(var(--xy-edge-stroke-width) + 2);stroke-opacity:.08}.likec4-root:not([data-likec4-reduced-graphics]) .likec4-edge__pathBg{--transition-prop: stroke-width, stroke-opacity;transition-property:stroke-width,stroke-opacity;--transition-duration: var(--durations-fast);transition-duration:var(--durations-fast);--transition-easing: var(--easings-in-out);transition-timing-function:var(--easings-in-out)}:where(.react-flow__node:has([data-likec4-hovered=true]),.react-flow__edge:has([data-likec4-hovered=true]),.likec4-edge-container[data-likec4-hovered=true]) .likec4-edge__pathBg{--transition-easing: var(--easings-out);transition-timing-function:var(--easings-out);stroke-width:calc(var(--xy-edge-stroke-width) + 4);stroke-opacity:.2}:where(.react-flow__node,.react-flow__edge,.likec4-edge-container):is(.selected) .likec4-edge__pathBg{stroke-width:calc(var(--xy-edge-stroke-width) + 6);stroke-opacity:.25}:where(.react-flow__node:has([data-likec4-hovered=true]),.react-flow__edge:has([data-likec4-hovered=true]),.likec4-edge-container[data-likec4-hovered=true]) :where(.react-flow__node,.react-flow__edge,.likec4-edge-container):is(.selected) .likec4-edge__pathBg{stroke-opacity:.4}.likec4-edge__markersCtx{fill:var(--xy-edge-stroke);stroke:var(--xy-edge-stroke)}.likec4-edge__middlePoint{visibility:hidden;offset-distance:50%;cx:0;cy:0;r:4px;pointer-events:none}}.likec4-navlink__label--truncateLabel_true,.likec4-navlink__description--truncateLabel_true{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:var(--sizes-100\\%)}}@layer utilities{@layer compositions{.layerStyle_likec4\\.panel{padding:var(--spacing-1);border:1px solid var(--colors-likec4-panel-border);border-radius:var(--radii-0);background-color:var(--colors-likec4-panel-bg)}.layerStyle_likec4\\.dropdown{padding:var(--spacing-2);border:1px solid var(--colors-likec4-dropdown-border);border-radius:var(--radii-md);background-color:var(--colors-likec4-dropdown-bg);box-shadow:var(--shadows-lg)}.layerStyle_likec4\\.tag{border:var(--borders-none);border-radius:3px;color:var(--colors-likec4-tag-text);background-color:var(--colors-likec4-tag-bg)}.layerStyle_likec4\\.tag:is(:hover,[data-hover]){background-color:var(--colors-likec4-tag-bg-hover)}.textStyle_xs{font-size:.75rem;line-height:1rem}.layerStyle_likec4\\.panel\\.action{border:var(--borders-transparent);padding-inline:var(--spacing-xxs);padding-block:var(--spacing-xxs);border-radius:var(--radii-sm);color:var(--colors-likec4-panel-action);cursor:pointer}.layerStyle_likec4\\.panel\\.action:is(:disabled,[disabled],[data-disabled],[aria-disabled=true]){color:var(--colors-likec4-panel-action-disabled);cursor:not-allowed}.layerStyle_likec4\\.panel\\.action:not(:is(:disabled,[disabled],[data-disabled])):is(:hover,[data-hover]){color:var(--colors-likec4-panel-action-hover);background-color:var(--colors-likec4-panel-action-bg-hover)}.layerStyle_likec4\\.panel\\.action\\.filled{border:var(--borders-transparent);padding-inline:var(--spacing-xxs);padding-block:var(--spacing-xxs);border-radius:var(--radii-sm);color:var(--colors-likec4-panel-action);cursor:pointer;background-color:var(--colors-likec4-panel-action-bg)}.layerStyle_likec4\\.panel\\.action\\.filled:is(:disabled,[disabled],[data-disabled],[aria-disabled=true]){color:var(--colors-likec4-panel-action-disabled);cursor:not-allowed;background-color:var(--colors-likec4-panel-action-bg)}.layerStyle_likec4\\.panel\\.action\\.filled:not(:is(:disabled,[disabled],[data-disabled])):is(:hover,[data-hover]){color:var(--colors-likec4-panel-action-hover);background-color:var(--colors-likec4-panel-action-bg-hover)}@container (min-width: 40rem){.layerStyle_likec4\\.panel{border-radius:var(--radii-md);padding-inline:var(--spacing-2);box-shadow:var(--shadows-lg)}}}.--mantine-cursor-pointer_pointer{--mantine-cursor-pointer: pointer}.--thickness_1px{--thickness: 1px}.--bleed-x_token\\(spacing\\.2\\,_2\\){--bleed-x: var(--spacing-2, 2)}.--bleed-y_token\\(spacing\\.2\\,_2\\){--bleed-y: var(--spacing-2, 2)}.--text-fz_\\{fontSizes\\.sm\\}{--text-fz: var(--font-sizes-sm)}.--view-title-color_\\{colors\\.mantine\\.colors\\.dark\\[1\\]\\}{--view-title-color: var(--colors-mantine-colors-dark\\[1\\])}.--likec4-icon-size_24px{--likec4-icon-size: 24px}.--ti-size_var\\(--likec4-icon-size\\,_24px\\){--ti-size: var(--likec4-icon-size, 24px)}.--_color_var\\(--likec4-palette-stroke\\){--_color: var(--likec4-palette-stroke)}.--ai-radius_0px{--ai-radius: 0px}.--badge-radius_2px{--badge-radius: 2px}.--badge-fz_9\\.5px{--badge-fz: 9.5px}.--badge-padding-x_3px{--badge-padding-x: 3px}.--badge-height_13\\.5px{--badge-height: 13.5px}.--badge-lh_1{--badge-lh: 1}.--badge-bg_var\\(--likec4-palette-fill\\){--badge-bg: var(--likec4-palette-fill)}.--badge-color_var\\(--likec4-palette-hiContrast\\){--badge-color: var(--likec4-palette-hiContrast)}.bg_dots{background:dots}.bg_transparent{background:var(--colors-transparent)}.m_0{margin:var(--spacing-0)}.p_0{padding:var(--spacing-0)}.bg_likec4\\.overlay\\.body{background:var(--colors-likec4-overlay-body)}.p_xl{padding:var(--spacing-xl)}.bd_1px_solid{border:1px solid}.bg_mantine\\.colors\\.default{background:var(--colors-mantine-colors-default)}.p_\\[4px_7px\\]{padding:4px 7px}.bg_\\[transparent\\]{background:var(--colors-transparent)}.p_1{padding:var(--spacing-1)}.p_4{padding:var(--spacing-4)}.bg_white{background:#fff}.bd_default{border:var(--borders-default)}.p_0\\.5{padding:var(--spacing-0\\.5)}.m_xs{margin:var(--spacing-xs)}.p_md{padding:var(--spacing-md)}.p_1\\.5{padding:var(--spacing-1\\.5)}.p_8{padding:var(--spacing-8)}.p_xxs{padding:var(--spacing-xxs)}.p_\\[4px_6px\\]{padding:4px 6px}.bg_mantine\\.colors\\.gray\\[2\\]{background:var(--colors-mantine-colors-gray\\[2\\])}.bg_mantine\\.colors\\.gray\\[3\\]{background:var(--colors-mantine-colors-gray\\[3\\])}.bd_2px_solid{border:2px solid}.inset_0{inset:var(--spacing-0)}.bd_transparent{border:var(--borders-transparent)}.bd_none{border:var(--borders-none)}.bg_mantine\\.colors\\.body{background:var(--colors-mantine-colors-body)}.p_\\[10px_8px\\]{padding:10px 8px}.bd_1px_dashed{border:1px dashed}.bg_mantine\\.colors\\.gray\\[1\\]{background:var(--colors-mantine-colors-gray\\[1\\])}.p_\\[6px_8px\\]{padding:6px 8px}.bd_3\\.5px_solid{border:3.5px solid}.p_xs{padding:var(--spacing-xs)}.p_\\[4px_8px\\]{padding:4px 8px}.p_\\[1px_4px\\]{padding:1px 4px}.p_\\[3px_6px\\]{padding:3px 6px}.bg_var\\(--likec4-palette-fill\\)\\/75{--mix-background: color-mix(in srgb, var(--likec4-palette-fill) 75%, transparent);background:var(--mix-background, var(--likec4-palette-fill))}.bd_1px_solid_\\{colors\\.mantine\\.colors\\.defaultBorder\\}{border:1px solid var(--colors-mantine-colors-default-border)}.p_\\[1px_5px\\]{padding:1px 5px}.bg_mantine\\.colors\\.dark\\[7\\]{background:var(--colors-mantine-colors-dark\\[7\\])}.p_\\[6px_2px_0_2px\\]{padding:6px 2px 0}.p_\\[0_4px_5px_4px\\]{padding:0 4px 5px}.bg_mantine\\.colors\\.dark\\[9\\]\\/30{--mix-background: color-mix(in srgb, var(--colors-mantine-colors-dark\\[9\\]) 30%, transparent);background:var(--mix-background, var(--colors-mantine-colors-dark\\[9\\]))}.bg_mantine\\.colors\\.primary\\[8\\]{background:var(--colors-mantine-colors-primary\\[8\\])}.p_\\[12px_8px_12px_14px\\]{padding:12px 8px 12px 14px}.bd_2px_dashed{border:2px dashed}.p_2{padding:var(--spacing-2)}.bd_3px_dashed{border:3px dashed}.gap_20{gap:20px}.bdr_sm{border-radius:var(--radii-sm)}.bd-w_3{border-width:3px}.bd-c_likec4\\.overlay\\.border{border-color:var(--colors-likec4-overlay-border)}.ring_none{outline:var(--borders-none)}.gap_lg{gap:var(--spacing-lg)}.gap_md{gap:var(--spacing-md)}.gap_sm{gap:var(--spacing-sm)}.flex_1{flex:1 1 0%}.transition_fast{transition:all var(--durations-fast) var(--easings-in-out)}.td_none{text-decoration:none}.bd-c_mantine\\.colors\\.defaultBorder{border-color:var(--colors-mantine-colors-default-border)}.gap_xs{gap:var(--spacing-xs)}.gap_xxs{gap:var(--spacing-xxs)}.gap_1{gap:var(--spacing-1)}.ov_hidden{overflow:hidden}.gap_0\\.5{gap:var(--spacing-0\\.5)}.gap_\\[4px\\]{gap:4px}.px_xs{padding-inline:var(--spacing-xs)}.py_xxs{padding-block:var(--spacing-xxs)}.px_sm{padding-inline:var(--spacing-sm)}.gap_8px{gap:8px}.gap_1\\.5{gap:var(--spacing-1\\.5)}.bdr_\\[4px\\]{border-radius:4px}.px_1\\.5{padding-inline:var(--spacing-1\\.5)}.gap_3{gap:var(--spacing-3)}.mx_calc\\(var\\(--bleed-x\\,_0\\)_\\*_-1\\){margin-inline:calc(var(--bleed-x, 0) * -1)}.my_calc\\(var\\(--bleed-y\\,_0\\)_\\*_-1\\){margin-block:calc(var(--bleed-y, 0) * -1)}.py_2\\.5{padding-block:var(--spacing-2\\.5)}.px_2{padding-inline:var(--spacing-2)}.gap_2{gap:var(--spacing-2)}.offset_2{offset:2px}.offset_10{offset:10px}.py_1\\.5{padding-block:var(--spacing-1\\.5)}.bd-l_2px_dotted{border-left:2px dotted}.px_1{padding-inline:var(--spacing-1)}.py_0\\.5{padding-block:var(--spacing-0\\.5)}.bdr_\\[2px\\]{border-radius:2px}.bd-w_4{border-width:4px}.px_4{padding-inline:var(--spacing-4)}.py_1{padding-block:var(--spacing-1)}.gap_\\[1px\\]{gap:1px}.ov_auto{overflow:auto}.ovs-b_contain{overscroll-behavior:contain}.ov_visible{overflow:visible}.px_xxs{padding-inline:var(--spacing-xxs)}.my_10{margin-block:var(--spacing-10)}.flex_1_1_40\\%{flex:1 1 40%}.bd-c_mantine\\.colors\\.gray\\[4\\]{border-color:var(--colors-mantine-colors-gray\\[4\\])}.bd-c_mantine\\.colors\\.gray\\[5\\]{border-color:var(--colors-mantine-colors-gray\\[5\\])}.bdr_3{border-radius:3px}.bd-c_mantine\\.colors\\.orange\\[6\\]{border-color:var(--colors-mantine-colors-orange\\[6\\])}.tw_pretty{text-wrap:pretty}.flex_0{flex:0}.flex_0_0_40px{flex:0 0 40px}.gap_\\[24px_20px\\]{gap:24px 20px}.bd-c_mantine\\.colors\\.dark\\[3\\]{border-color:var(--colors-mantine-colors-dark\\[3\\])}.bd-t_none{border-top:var(--borders-none)}.bd-l_none{border-left:var(--borders-none)}.bdr_2px{border-radius:2px}.gap_4{gap:var(--spacing-4)}.gap_6{gap:var(--spacing-6)}.gap_\\[12px_16px\\]{gap:12px 16px}.bd-c_mantine\\.colors\\.gray\\[3\\]{border-color:var(--colors-mantine-colors-gray\\[3\\])}.flex_0_1_auto{flex:0 1 auto}.transition_all_150ms_ease{transition:all .15s ease}.bdr_xs{border-radius:var(--radii-xs)}.flex_1_1_100\\%{flex:1 1 100%}.offset_0{offset:0}.py_4{padding-block:var(--spacing-4)}.gap_8{gap:var(--spacing-8)}.px_md{padding-inline:var(--spacing-md)}.py_xs{padding-block:var(--spacing-xs)}.grid-c_1{grid-column:1}.grid-c_2{grid-column:2}.grid-c_3{grid-column:3}.bd-b_1px_solid{border-bottom:1px solid}.gap_0{gap:var(--spacing-0)}.gap_\\[10px_12px\\]{gap:10px 12px}.py_3{padding-block:var(--spacing-3)}.offset_4{offset:4px}.flex_1_0_auto{flex:1 0 auto}.ring_none\\!{outline:var(--borders-none)!important}.bdr_4px{border-radius:4px}.mx_auto{margin-inline:auto}.py_md{padding-block:var(--spacing-md)}.bd-c_mantine\\.colors\\.primary\\[9\\]{border-color:var(--colors-mantine-colors-primary\\[9\\])}.flex_0_0_var\\(--likec4-icon-size\\,_24px\\){flex:0 0 var(--likec4-icon-size, 24px)}.bdr_md{border-radius:var(--radii-md)}.py_xl{padding-block:var(--spacing-xl)}.bd-w_1{border-width:1px}.bd-c_\\[var\\(--_color\\)\\/30\\]{--mix-borderColor: color-mix(in srgb, var(--_color) 30%, transparent);border-color:var(--mix-borderColor, var(--_color))}.transition_all_100ms_ease-in{transition:all .1s ease-in}.transition_all_150ms_ease-in-out{transition:all .15s ease-in-out}.py_sm{padding-block:var(--spacing-sm)}.flex_0_0_auto{flex:0 0 auto}.flex_0_0_70px{flex:0 0 70px}.bd-w_3px{border-width:3px}.border-style_dashed{border-style:dashed}.px_3{padding-inline:var(--spacing-3)}.px_5{padding-inline:var(--spacing-5)}.gap_6px{gap:6px}.px_4px{padding-inline:4px}.cursor_pointer{cursor:pointer}.pos_absolute{position:absolute}.z_999{z-index:999}.c_gray{color:gray}.pos_fixed{position:fixed}.bx-sh_xl{box-shadow:var(--shadows-xl)}.d_flex{display:flex}.ai_flex-start{align-items:flex-start}.flex-d_row{flex-direction:row}.flex-wrap_nowrap{flex-wrap:nowrap}.ai_center{align-items:center}.c_red{color:red}.ai_stretch{align-items:stretch}.flex-d_column{flex-direction:column}.c_teal{color:teal}.op_1{opacity:1}.op_0\\.45{opacity:.45}.us_all{-webkit-user-select:all;user-select:all}.bg-c_transparent{background-color:var(--colors-transparent)}.stk_2\\.5{stroke:2.5px}.op_0\\.7{opacity:.7}.fill_\\[\\#FCFBF7\\]{fill:#fcfbf7}.bx-sh_xs{box-shadow:var(--shadows-xs)}.fs_sm{font-size:var(--font-sizes-sm)}.fw_500{font-weight:500}.c_mantine\\.colors\\.placeholder{color:var(--colors-mantine-colors-placeholder)}.fs_11px{font-size:11px}.fw_600{font-weight:600}.lh_1{line-height:var(--line-heights-1)}.stk_2{stroke:2px}.pointer-events_none{pointer-events:none}.main-axis_4{main-axis:4px}.pos_bottom-start{position:bottom-start}.pos_relative{position:relative}.pointer-events_all{pointer-events:all}.us_none{-webkit-user-select:none;user-select:none}.d_none{display:none}.flex-sh_1{flex-shrink:1}.flex-g_1{flex-grow:1}.flex-g_0{flex-grow:0}.op_0\\.3{opacity:.3}.bg-c_mantine\\.colors\\.gray\\[1\\]{background-color:var(--colors-mantine-colors-gray\\[1\\])}.stk_1\\.5{stroke:1.5px}.bd-e-w_var\\(--thickness\\){border-inline-end-width:var(--thickness)}.c_mantine\\.colors\\.gray\\[5\\]{color:var(--colors-mantine-colors-gray\\[5\\])}.bg-c_likec4\\.panel\\.action\\.warning\\.bg{background-color:var(--colors-likec4-panel-action-warning-bg)}.c_likec4\\.panel\\.action{color:var(--colors-likec4-panel-action)}.trunc_true{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.c_likec4\\.panel\\.text\\.dimmed{color:var(--colors-likec4-panel-text-dimmed)}.bg-c_\\[rgb\\(34_34_34_\\/_var\\(--_opacity\\,_95\\%\\)\\)\\]{background-color:rgb(34 34 34 / var(--_opacity, 95%))}.bkdp_auto{backdrop-filter:var(--backdrop-blur, ) var(--backdrop-brightness, ) var(--backdrop-contrast, ) var(--backdrop-grayscale, ) var(--backdrop-hue-rotate, ) var(--backdrop-invert, ) var(--backdrop-opacity, ) var(--backdrop-saturate, ) var(--backdrop-sepia, );-webkit-backdrop-filter:var(--backdrop-blur, ) var(--backdrop-brightness, ) var(--backdrop-contrast, ) var(--backdrop-grayscale, ) var(--backdrop-hue-rotate, ) var(--backdrop-invert, ) var(--backdrop-opacity, ) var(--backdrop-saturate, ) var(--backdrop-sepia, )}.bkdp-blur_var\\(--_blur\\,_10px\\){--backdrop-blur: blur(var(--_blur, 10px))}.jc_stretch{justify-content:stretch}.cq-n_likec4-search-elements{container-name:likec4-search-elements}.cq-t_size{container-type:size}.d_contents{display:contents}.d_grid{display:grid}.order_6{order:6}.stk_1\\.8{stroke:1.8px}.trunc_end{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.trs-dur_normal{--transition-duration: var(--durations-normal);transition-duration:var(--durations-normal)}.trs-dly_0\\.2s{transition-delay:.2s}.fill_none{fill:var(--colors-none)}.jc_center{justify-content:center}.z_1{z-index:var(--z-index-1)}.ai_flex-end{align-items:flex-end}.justify-items_stretch{justify-items:stretch}.fs_lg{font-size:var(--font-sizes-lg)}.ai_baseline{align-items:baseline}.flex-wrap_wrap{flex-wrap:wrap}.translate_auto{translate:var(--translate-x) var(--translate-y)}.translate-x_\\[-8px\\]{--translate-x: -8px}.bd-be-w_var\\(--thickness\\){border-block-end-width:var(--thickness)}.cursor_default{cursor:default}.c_orange{color:orange}.pos_top-start{position:top-start}.pos_right{position:right}.op_0\\.65{opacity:.65}.d_inline-flex{display:inline-flex}.op_0\\.5{opacity:.5}.d_block{display:block}.fs_xxs{font-size:var(--font-sizes-xxs)}.lh_sm{line-height:var(--line-heights-sm)}.c_mantine\\.colors\\.dimmed{color:var(--colors-mantine-colors-dimmed)}.white-space_nowrap{white-space:nowrap}.white-space-collapse_preserve-breaks{white-space-collapse:preserve-breaks}.fs_xs{font-size:var(--font-sizes-xs)}.fw_medium{font-weight:var(--font-weights-medium)}.trf_translateY\\(-4px\\){transform:translateY(-4px)}.c_mantine\\.colors\\.gray\\[9\\]{color:var(--colors-mantine-colors-gray\\[9\\])}.bx-sh_lg{box-shadow:var(--shadows-lg)}.pos_right-start{position:right-start}.stk_1\\.7{stroke:1.7px}.c_likec4\\.panel\\.text{color:var(--colors-likec4-panel-text)}.c_green{color:green}.pos_bottom-end{position:bottom-end}.op_0\\.8{opacity:.8}.me_0\\.5{margin-inline-end:var(--spacing-0\\.5)}.cross-axis_-22{cross-axis:-22px}.bg-c_none{background-color:var(--colors-none)}.fw_400{font-weight:400}.bx-sh_md{box-shadow:var(--shadows-md)}.main-axis_2{main-axis:2px}.lh_1\\.1{line-height:1.1}.main-axis_10{main-axis:10px}.op_0\\.6{opacity:.6}.pos_top{position:top}.main-axis_12{main-axis:12px}.ta_center{text-align:center}.bx-sh_inset_1px_1px_3px_0px_\\#00000024{box-shadow:inset 1px 1px 3px #00000024}.trf_translate\\(-50\\%\\,_-50\\%\\){transform:translate(-50%,-50%)}.flex-sh_0{flex-shrink:0}.ms_0{margin-inline-start:var(--spacing-0)}.z_9{z-index:9}.ta_left{text-align:left}.lh_1\\.25{line-height:1.25}.bx-s_border-box{box-sizing:border-box}.c_mantine\\.colors\\.text{color:var(--colors-mantine-colors-text)}.bg-c_mantine\\.colors\\.body{background-color:var(--colors-mantine-colors-body)}.bg-i_linear-gradient\\(180deg\\,_color-mix\\(in_oklab\\,_var\\(--likec4-palette-fill\\)_60\\%\\,_transparent\\)\\,_color-mix\\(in_oklab\\,_var\\(--likec4-palette-fill\\)_20\\%\\,_transparent\\)_8px\\,_color-mix\\(in_oklab\\,_var\\(--likec4-palette-fill\\)_14\\%\\,_transparent\\)_20px\\,_transparent_80px_\\)\\,_linear-gradient\\(180deg\\,_var\\(--likec4-palette-fill\\)\\,_var\\(--likec4-palette-fill\\)_4px\\,_transparent_4px\\){background-image:linear-gradient(180deg,color-mix(in oklab,var(--likec4-palette-fill) 60%,transparent),color-mix(in oklab,var(--likec4-palette-fill) 20%,transparent) 8px,color-mix(in oklab,var(--likec4-palette-fill) 14%,transparent) 20px,transparent 80px),linear-gradient(180deg,var(--likec4-palette-fill),var(--likec4-palette-fill) 4px,transparent 4px)}.cursor_move{cursor:move}.ff_likec4\\.element{font-family:var(--fonts-likec4-element)}.font-optical-sizing_auto{font-optical-sizing:auto}.font-style_normal{font-style:normal}.fs_24px{font-size:24px}.lh_xs{line-height:var(--line-heights-xs)}.as_flex-start{align-self:flex-start}.c_\\[var\\(--view-title-color\\,_\\{colors\\.mantine\\.colors\\.gray\\[7\\]\\}\\)\\]{color:var(--view-title-color, var(--colors-mantine-colors-gray\\[7\\]))}.fs_15px{font-size:15px}.lh_1\\.4{line-height:1.4}.c_mantine\\.colors\\.gray\\[7\\]{color:var(--colors-mantine-colors-gray\\[7\\])}.grid-tc_min-content_1fr{grid-template-columns:min-content 1fr}.grid-ar_min-content_max-content{grid-auto-rows:min-content max-content}.justify-self_end{justify-self:end}.ta_right{text-align:right}.cursor_se-resize{cursor:se-resize}.ai_start{align-items:start}.jc_space-between{justify-content:space-between}.stk_1\\.6{stroke:1.6px}.grid-ar_min-content{grid-auto-rows:min-content}.white-space_pre-wrap{white-space:pre-wrap}.tov_unset{text-overflow:unset}.tov_ellipsis{text-overflow:ellipsis}.wb_break-word{word-break:break-word}.wb_normal{word-break:normal}.bg-c_mantine\\.colors\\.white{background-color:var(--colors-mantine-colors-white)}.jc_flex-end{justify-content:flex-end}.c_mantine\\.colors\\.gray\\[6\\]{color:var(--colors-mantine-colors-gray\\[6\\])}.fw_700{font-weight:700}.justify-self_stretch{justify-self:stretch}.as_start{align-self:start}.ps_\\[16px\\]{padding-inline-start:16px}.pe_2\\.5{padding-inline-end:var(--spacing-2\\.5)}.stk_1\\.2{stroke:1.2px}.d_inline-block{display:inline-block}.lh_1\\.2{line-height:1.2}.c_var\\(--likec4-palette-hiContrast\\){color:var(--likec4-palette-hiContrast)}.fs_xl{font-size:var(--font-sizes-xl)}.c_mantine\\.colors\\.defaultColor{color:var(--colors-mantine-colors-default-color)}.bx-sh_none{box-shadow:var(--shadows-none)}.pos_top-right{position:top-right}.pos_top-left{position:top-left}.grid-cs_1{grid-column-start:1}.grid-ce_4{grid-column-end:4}.grid-tc_1fr_30px_1fr{grid-template-columns:1fr 30px 1fr}.justify-items_start{justify-items:start}.c_dark{color:dark}.stk_3\\.5{stroke:3.5px}.cq-n_likec4-tree{container-name:likec4-tree}.cq-t_inline-size{container-type:inline-size}.fs_10px{font-size:10px}.lh_1\\.3{line-height:1.3}.order_2{order:2}.grayscale_0\\.9{--grayscale: grayscale(.9)}.filter_auto{filter:var(--blur, ) var(--brightness, ) var(--contrast, ) var(--grayscale, ) var(--hue-rotate, ) var(--invert, ) var(--saturate, ) var(--sepia, ) var(--drop-shadow, )}.cross-axis_50{cross-axis:50px}.sr_true{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.fs_13px{font-size:13px}.fs_16px{font-size:16px}.c_mantine\\.colors\\.dark\\[1\\]{color:var(--colors-mantine-colors-dark\\[1\\])}.fs_12px{font-size:12px}.fs_md{font-size:var(--font-sizes-md)}.bg-c_\\[rgb\\(34_34_34_\\/_0\\.7\\)\\]{background-color:#222222b3}.z_902{z-index:902}.bkdp-blur_10px{--backdrop-blur: blur(10px)}.trf_translateX\\(-50\\%\\){transform:translate(-50%)}.z_903{z-index:903}.stk_likec4\\.compare\\.manual\\.outline{stroke:var(--colors-likec4-compare-manual-outline)}.stk-w_8px{stroke-width:8px}.stk-op_0\\.5{stroke-opacity:.5}.z_9999{z-index:9999}.fill_\\[var\\(--xy-edge-stroke\\)\\]{fill:var(--xy-edge-stroke)}.stk_transparent{stroke:var(--colors-transparent)}.fill-opacity_0\\.5{fill-opacity:.5}.stk-w_10{stroke-width:10}.r_4{r:4px}.cursor_grab{cursor:grab}.vis_hidden{visibility:hidden}.trs-dur_120ms{--transition-duration: .12s;transition-duration:.12s}.trs-prop_visibility\\,_fill\\,_fill-opacity\\,_r{--transition-prop: visibility, fill, fill-opacity, r;transition-property:visibility,fill,fill-opacity,r}.trs-tmf_inOut{--transition-easing: var(--easings-in-out);transition-timing-function:var(--easings-in-out)}.trs-dly_20ms{transition-delay:20ms}.bg-c_var\\(--likec4-palette-fill\\)\\/15{--mix-backgroundColor: color-mix(in srgb, var(--likec4-palette-fill) 15%, transparent);background-color:var(--mix-backgroundColor, var(--likec4-palette-fill))}.fw_bold{font-weight:700}.ls_\\.75px{letter-spacing:.75px}.c_\\[var\\(--_color\\)\\/75\\]{--mix-color: color-mix(in srgb, var(--_color) 75%, transparent);color:var(--mix-color, var(--_color))}.bg-c_var\\(--likec4-palette-fill\\){background-color:var(--likec4-palette-fill)}.translate-x_-1\\/2{--translate-x: -50%}.translate-y_-1\\/2{--translate-y: -50%}.ring-c_likec4\\.compare\\.manual\\.outline{outline-color:var(--colors-likec4-compare-manual-outline)}.ring-w_4px{outline-width:4px}.outline-style_dashed{outline-style:dashed}.ring-o_1\\.5{outline-offset:var(--spacing-1\\.5)}.bg-c_mantine\\.colors\\.body\\/80{--mix-backgroundColor: color-mix(in srgb, var(--colors-mantine-colors-body) 80%, transparent);background-color:var(--mix-backgroundColor, var(--colors-mantine-colors-body))}.fill_var\\(--likec4-palette-fill\\){fill:var(--likec4-palette-fill)}.stk_var\\(--likec4-palette-stroke\\){stroke:var(--likec4-palette-stroke)}.stk-w_1{stroke-width:1}.filter_drop-shadow\\(0_2px_3px_rgb\\(0_0_0_\\/_22\\%\\)\\)_drop-shadow\\(0_1px_8px_rgb\\(0_0_0_\\/_10\\%\\)\\){filter:drop-shadow(0 2px 3px rgb(0 0 0 / 22%)) drop-shadow(0 1px 8px rgb(0 0 0 / 10%))}.ls_0\\.2px{letter-spacing:.2px}.tt_lowercase{text-transform:lowercase}.op_0\\.25{opacity:.25}.stk-w_5{stroke-width:5}.pos_right-end{position:right-end}.jc_flex-start{justify-content:flex-start}.pos_left-start{position:left-start}.top_4{top:var(--spacing-4)}.right_4{right:var(--spacing-4)}.top_10{top:var(--spacing-10)}.left_10{left:var(--spacing-10)}.w_\\[calc\\(100vw_-_\\(\\{spacing\\.10\\}_\\*_2\\)\\)\\]{width:calc(100vw - (var(--spacing-10) * 2))}.h_max-content{height:max-content}.max-h_\\[calc\\(100vh_-_\\(\\{spacing\\.10\\}_\\*_3\\)\\)\\]{max-height:calc(100vh - (var(--spacing-10) * 3))}.mt_md{margin-top:var(--spacing-md)}.min-h_24{min-height:24px}.max-w_500{max-width:500px}.pr_0{padding-right:var(--spacing-0)}.h_12{height:12px}.w_12{width:12px}.h_30px{height:30px}.pl_sm{padding-left:var(--spacing-sm)}.pr_1{padding-right:var(--spacing-1)}.w_100\\%{width:var(--sizes-100\\%)}.pr_2\\.5{padding-right:var(--spacing-2\\.5)}.top_0{top:var(--spacing-0)}.left_0{left:var(--spacing-0)}.max-w_calc\\(100vw\\){max-width:100vw}.max-w_200px{max-width:200px}.max-w_calc\\(100vw_-_50px\\){max-width:calc(100vw - 50px)}.max-w_calc\\(100vw_-_250px\\){max-width:calc(100vw - 250px)}.max-h_calc\\(100vh_-_200px\\){max-height:calc(100vh - 200px)}.max-h_calc\\(100vh_-_160px\\){max-height:calc(100vh - 160px)}.h_100\\%{height:var(--sizes-100\\%)}.mb_1{margin-bottom:var(--spacing-1)}.max-h_100vh{max-height:100vh}.pt_\\[20px\\]{padding-top:20px}.pl_md{padding-left:var(--spacing-md)}.pr_md{padding-right:var(--spacing-md)}.pb_sm{padding-bottom:var(--spacing-sm)}.pr_xs{padding-right:var(--spacing-xs)}.lc_5{-webkit-line-clamp:5}.lc_5,.lc_2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical}.lc_2{-webkit-line-clamp:2}.lc_3{overflow:hidden;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical}.top_0\\.5{top:var(--spacing-0\\.5)}.right_0\\.5{right:var(--spacing-0\\.5)}.w_full{width:var(--sizes-full)}.h_full{height:var(--sizes-full)}.bottom_0{bottom:var(--spacing-0)}.max-w_50{max-width:50px}.h_5{height:5px}.w_max-content{width:max-content}.pt_2{padding-top:var(--spacing-2)}.mt_2{margin-top:var(--spacing-2)}.mt_0{margin-top:var(--spacing-0)}.w_350{width:350px}.pl_2\\.5{padding-left:var(--spacing-2\\.5)}.bd-l-c_mantine\\.colors\\.gray\\[3\\]{border-left-color:var(--colors-mantine-colors-gray\\[3\\])}.bdr-bl_sm{border-bottom-left-radius:var(--radii-sm)}.bdr-br_sm{border-bottom-right-radius:var(--radii-sm)}.pl_3{padding-left:var(--spacing-3)}.w_\\[20px\\]{width:20px}.mt_1{margin-top:var(--spacing-1)}.mb_xxs{margin-bottom:var(--spacing-xxs)}.pb_lg{padding-bottom:var(--spacing-lg)}.max-w_calc\\(100cqw_-_52px\\){max-width:calc(100cqw - 52px)}.min-w_200px{min-width:200px}.max-h_calc\\(100cqh_-_100px\\){max-height:calc(100cqh - 100px)}.mt_4{margin-top:var(--spacing-4)}.mt_xs{margin-top:var(--spacing-xs)}.h_auto{height:auto}.pt_6{padding-top:var(--spacing-6)}.mb_10{margin-bottom:var(--spacing-10)}.pt_100\\%{padding-top:100%}.left_2{left:var(--spacing-2)}.bottom_2{bottom:var(--spacing-2)}.top_md{top:var(--spacing-md)}.left_md{left:var(--spacing-md)}.w_8{width:8px}.h_8{height:8px}.mr_sm{margin-right:var(--spacing-sm)}.h_26{height:26px}.top_\\[1px\\]{top:1px}.right_\\[1px\\]{right:1px}.pt_xxs{padding-top:var(--spacing-xxs)}.max-w_calc\\(100cqw_-_32px\\){max-width:calc(100cqw - 32px)}.min-w_calc\\(100cqw_-_50px\\){min-width:calc(100cqw - 50px)}.w_100vw{width:100vw}.h_100vh{height:100vh}.max-w_100vw{max-width:100vw}.h_40px{height:40px}.w_40px{width:40px}.w_14px{width:14px}.h_14px{height:14px}.bottom_0\\.5{bottom:var(--spacing-0\\.5)}.mb_sm{margin-bottom:var(--spacing-sm)}.lc_1{overflow:hidden;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical}.mt_6{margin-top:var(--spacing-6)}.pt_xs{padding-top:var(--spacing-xs)}.w_300{width:300px}.min-w_0{min-width:0}.min-h_32px{min-height:32px}.max-w_min\\(200px\\,_100\\%\\){max-width:min(200px,100%)}.min-w_60px{min-width:60px}.mb_0{margin-bottom:var(--spacing-0)}.h_36px{height:36px}.min-w_24{min-width:24px}.mb_4{margin-bottom:var(--spacing-4)}.top_12{top:12px}.right_12{right:12px}.mt_sm{margin-top:var(--spacing-sm)}.ml_sm{margin-left:var(--spacing-sm)}.pl_1{padding-left:var(--spacing-1)}.bd-b-c_mantine\\.colors\\.defaultBorder{border-bottom-color:var(--colors-mantine-colors-default-border)}.max-h_70vh{max-height:70vh}.mb_2{margin-bottom:var(--spacing-2)}.max-w_8xl{max-width:8xl}.pl_\\[48px\\]{padding-left:48px}.mr_1{margin-right:var(--spacing-1)}.min-h_60px{min-height:60px}.h_var\\(--likec4-icon-size\\,_24px\\){height:var(--likec4-icon-size, 24px)}.w_var\\(--likec4-icon-size\\,_24px\\){width:var(--likec4-icon-size, 24px)}.top_\\[2rem\\]{top:2rem}.left_\\[50\\%\\]{left:50%}.max-w_600px{max-width:600px}.pl_2{padding-left:var(--spacing-2)}.pt_0\\.5{padding-top:var(--spacing-0\\.5)}.w_5px{width:5px}.top_1{top:var(--spacing-1)}.right_0{right:var(--spacing-0)}.w_min-content{width:min-content}.h_min-content{height:min-content}.min-w_200{min-width:200px}.max-w_calc\\(100vw_-_20px\\){max-width:calc(100vw - 20px)}.pt_0{padding-top:var(--spacing-0)}.pb_0{padding-bottom:var(--spacing-0)}.ml_2{margin-left:var(--spacing-2)}.h_xs{height:xs}.pb_8{padding-bottom:var(--spacing-8)}.pt_4{padding-top:var(--spacing-4)}.max-w_220px{max-width:220px}.\\[\\&_\\.action-icon\\]\\:--ai-size_2rem .action-icon{--ai-size: 2rem}[data-mantine-color-scheme=light] .light\\:--icon-color_\\{colors\\.mantine\\.colors\\.gray\\[6\\]\\}{--icon-color: var(--colors-mantine-colors-gray\\[6\\])}[data-mantine-color-scheme=light] .light\\:--view-title-color_\\{colors\\.mantine\\.colors\\.gray\\[7\\]\\}{--view-title-color: var(--colors-mantine-colors-gray\\[7\\])}.\\[\\&_\\.mantine-ThemeIcon-root\\]\\:--ti-size_22px .mantine-ThemeIcon-root{--ti-size: 22px}[data-mantine-color-scheme=dark] .dark\\:--_color_\\[color-mix\\(in_oklab\\,_var\\(--likec4-palette-hiContrast\\)_40\\%\\,_var\\(--likec4-palette-fill\\)\\)\\]{--_color: color-mix(in oklab, var(--likec4-palette-hiContrast) 40%, var(--likec4-palette-fill))}.likec4-root:not([data-likec4-reduced-graphics]) .noReduceGraphics\\:--ai-radius_\\{radii\\.md\\}{--ai-radius: var(--radii-md)}.backdrop\\:bg_\\[color-mix\\(in_oklab\\,_\\{colors\\.likec4\\.overlay\\.backdrop\\}_60\\%\\,_transparent\\)\\]::backdrop{background:color-mix(in oklab,var(--colors-likec4-overlay-backdrop) 60%,transparent)}[data-mantine-color-scheme=light] .light\\:bg_mantine\\.colors\\.white{background:var(--colors-mantine-colors-white)}[data-mantine-color-scheme=dark] .dark\\:bg_mantine\\.colors\\.dark\\[6\\]{background:var(--colors-mantine-colors-dark\\[6\\])}[data-mantine-color-scheme=light] .light\\:bg_var\\(--likec4-palette-fill\\)\\/90{--mix-background: color-mix(in srgb, var(--likec4-palette-fill) 90%, transparent);background:var(--mix-background, var(--likec4-palette-fill))}[data-mantine-color-scheme=dark] .dark\\:bg_var\\(--likec4-palette-fill\\)\\/60{--mix-background: color-mix(in srgb, var(--likec4-palette-fill) 60%, transparent);background:var(--mix-background, var(--likec4-palette-fill))}[data-mantine-color-scheme=dark] .dark\\:bg_mantine\\.colors\\.dark\\[5\\]{background:var(--colors-mantine-colors-dark\\[5\\])}[data-mantine-color-scheme=dark] .dark\\:bg_mantine\\.colors\\.dark\\[7\\]{background:var(--colors-mantine-colors-dark\\[7\\])}.\\[\\&\\[data-active\\]\\]\\:bg_mantine\\.colors\\.white[data-active]{background:var(--colors-mantine-colors-white)}[data-mantine-color-scheme=light] .light\\:bg_mantine\\.colors\\.gray\\[1\\]{background:var(--colors-mantine-colors-gray\\[1\\])}.\\[\\&\\[data-missing\\]\\]\\:bg_mantine\\.colors\\.orange\\[8\\]\\/15[data-missing]{--mix-background: color-mix(in srgb, var(--colors-mantine-colors-orange\\[8\\]) 15%, transparent);background:var(--mix-background, var(--colors-mantine-colors-orange\\[8\\]))}.\\[\\&\\[data-missing\\]\\]\\:bg_mantine\\.colors\\.orange\\[8\\]\\/20[data-missing]{--mix-background: color-mix(in srgb, var(--colors-mantine-colors-orange\\[8\\]) 20%, transparent);background:var(--mix-background, var(--colors-mantine-colors-orange\\[8\\]))}[data-mantine-color-scheme=light] .light\\:bg_mantine\\.colors\\.gray\\[3\\]\\/20{--mix-background: color-mix(in srgb, var(--colors-mantine-colors-gray\\[3\\]) 20%, transparent);background:var(--mix-background, var(--colors-mantine-colors-gray\\[3\\]))}[data-mantine-color-scheme=dark] .dark\\:bg_mantine\\.colors\\.dark\\[6\\]\\/80{--mix-background: color-mix(in srgb, var(--colors-mantine-colors-dark\\[6\\]) 80%, transparent);background:var(--mix-background, var(--colors-mantine-colors-dark\\[6\\]))}[data-mantine-color-scheme=light] .light\\:bg_mantine\\.colors\\.white\\/80{--mix-background: color-mix(in srgb, var(--colors-mantine-colors-white) 80%, transparent);background:var(--mix-background, var(--colors-mantine-colors-white))}[data-mantine-color-scheme=light] .light\\:bd-c_mantine\\.colors\\.gray\\[4\\]{border-color:var(--colors-mantine-colors-gray\\[4\\])}[data-mantine-color-scheme=dark] .dark\\:bd-c_mantine\\.colors\\.dark\\[4\\]{border-color:var(--colors-mantine-colors-dark\\[4\\])}.likec4-root:is([data-likec4-diagram-panning=true]) .whenPanning\\:transition_none\\!{transition:none!important}[data-mantine-color-scheme=light] .light\\:bd-c_mantine\\.colors\\.gray\\[2\\]{border-color:var(--colors-mantine-colors-gray\\[2\\])}[data-mantine-color-scheme=dark] .dark\\:bd-c_mantine\\.colors\\.dark\\[7\\]{border-color:var(--colors-mantine-colors-dark\\[7\\])}:where(.react-flow__node:has([data-likec4-hovered=true]),.react-flow__edge:has([data-likec4-hovered=true]),.likec4-edge-container[data-likec4-hovered=true]) .whenHovered\\:bdr_4{border-radius:4px}.\\[\\&_\\.mantine-ThemeIcon-root\\]\\:transition_fast .mantine-ThemeIcon-root{transition:all var(--durations-fast) var(--easings-in-out)}.\\[\\&_\\>_\\*\\]\\:transition_all_130ms_\\{easings\\.inOut\\}>*{transition:all .13s var(--easings-in-out)}.\\[\\&\\[data-active\\]\\]\\:transition_none[data-active]{transition:none}.\\[\\&_\\>_\\*\\]\\:transition_fast>*,.\\[\\&_\\.tabler-icon\\]\\:transition_fast .tabler-icon{transition:all var(--durations-fast) var(--easings-in-out)}.\\[\\&\\[data-missing\\]\\]\\:bd-c_mantine\\.colors\\.orange\\[5\\]\\/20[data-missing]{--mix-borderColor: color-mix(in srgb, var(--colors-mantine-colors-orange\\[5\\]) 20%, transparent);border-color:var(--mix-borderColor, var(--colors-mantine-colors-orange\\[5\\]))}[data-mantine-color-scheme=light] .light\\:bd-c_mantine\\.colors\\.gray\\[3\\]{border-color:var(--colors-mantine-colors-gray\\[3\\])}.\\[\\&\\:last-child_\\.likec4-edge-label\\]\\:bd-b_none:last-child .likec4-edge-label{border-bottom:var(--borders-none)}.\\[\\&_\\>_\\*\\]\\:transition_all_0\\.15s_ease-in>*{transition:all .15s ease-in}[data-mantine-color-scheme=dark] .dark\\:bd-c_transparent{border-color:var(--colors-transparent)}.\\[\\&_\\:where\\(\\.likec4-diagram\\,_\\.likec4-compound-node\\,_\\.likec4-element-node\\)\\]\\:cursor_pointer :where(.likec4-diagram,.likec4-compound-node,.likec4-element-node){cursor:pointer}.backdrop\\:cursor_zoom-out::backdrop{cursor:zoom-out}.backdrop\\:bkdp_blur\\(18px\\)::backdrop{backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}.\\[\\&\\:is\\(\\[data-position\\=\\"left\\"\\]\\)\\]\\:c_mantine\\.colors\\.dimmed:is([data-position=left]){color:var(--colors-mantine-colors-dimmed)}.\\[\\&\\:is\\(\\[data-position\\=\\"left\\"\\]\\)\\]\\:us_none:is([data-position=left]){-webkit-user-select:none;user-select:none}.\\[\\&\\:is\\(\\[data-position\\=\\"left\\"\\]\\)\\]\\:pointer-events_none:is([data-position=left]){pointer-events:none}[data-mantine-color-scheme=light] .light\\:fill_\\[\\#222221\\]{fill:#222221}.\\[\\&_\\.tabler-icon\\]\\:c_mantine\\.colors\\.text .tabler-icon{color:var(--colors-mantine-colors-text)}.likec4-root:is([data-likec4-diagram-panning=true]) .whenPanning\\:bx-sh_none\\!{box-shadow:var(--shadows-none)!important}[data-mantine-color-scheme=light] .light\\:c_mantine\\.colors\\.gray\\[7\\]{color:var(--colors-mantine-colors-gray\\[7\\])}[data-mantine-color-scheme=dark] .dark\\:c_mantine\\.colors\\.dark\\[0\\]{color:var(--colors-mantine-colors-dark\\[0\\])}[data-mantine-color-scheme=light] .light\\:bg-c_mantine\\.colors\\.gray\\[2\\]\\/70{--mix-backgroundColor: color-mix(in srgb, var(--colors-mantine-colors-gray\\[2\\]) 70%, transparent);background-color:var(--mix-backgroundColor, var(--colors-mantine-colors-gray\\[2\\]))}[data-mantine-color-scheme=dark] .dark\\:bg-c_mantine\\.colors\\.dark\\[8\\]\\/70{--mix-backgroundColor: color-mix(in srgb, var(--colors-mantine-colors-dark\\[8\\]) 70%, transparent);background-color:var(--mix-backgroundColor, var(--colors-mantine-colors-dark\\[8\\]))}.empty\\:d_none:is(:empty,[data-empty]){display:none}.\\[\\&_\\>_mark\\]\\:bg-c_mantine\\.colors\\.yellow\\[2\\]\\/90>mark{--mix-backgroundColor: color-mix(in srgb, var(--colors-mantine-colors-yellow\\[2\\]) 90%, transparent);background-color:var(--mix-backgroundColor, var(--colors-mantine-colors-yellow\\[2\\]))}[data-mantine-color-scheme=dark] .dark\\:op_0\\.5{opacity:.5}[data-mantine-color-scheme=dark] .dark\\:bg-c_mantine\\.colors\\.dark\\[5\\]\\/80{--mix-backgroundColor: color-mix(in srgb, var(--colors-mantine-colors-dark\\[5\\]) 80%, transparent);background-color:var(--mix-backgroundColor, var(--colors-mantine-colors-dark\\[5\\]))}.placeholder\\:c_mantine\\.colors\\.dimmed::placeholder,.placeholder\\:c_mantine\\.colors\\.dimmed[data-placeholder]{color:var(--colors-mantine-colors-dimmed)}[data-mantine-color-scheme=dark] .dark\\:c_mantine\\.colors\\.dark\\[3\\]{color:var(--colors-mantine-colors-dark\\[3\\])}[data-mantine-color-scheme=light] .light\\:bg-c_\\[rgb\\(250_250_250_\\/_var\\(--_opacity\\,_95\\%\\)\\)\\]{background-color:rgb(250 250 250 / var(--_opacity, 95%))}:where([data-likec4-zoom-small=true]) .smallZoom\\:d_none{display:none}:where(.react-flow__node,.react-flow__edge,.likec4-edge-container):is(.selectable) .whenSelectable\\:pointer-events_all{pointer-events:all}:where(.react-flow__node.selectable:not(.dragging)) .\\[\\:where\\(\\.react-flow__node\\.selectable\\:not\\(\\.dragging\\)\\)_\\&\\]\\:cursor_pointer{cursor:pointer}:where(.react-flow__node:has([data-likec4-hovered=true]),.react-flow__edge:has([data-likec4-hovered=true]),.likec4-edge-container[data-likec4-hovered=true]) .whenHovered\\:trs-dly_\\.08s{transition-delay:.08s}.likec4-root:is([data-likec4-diagram-panning=true]) .whenPanning\\:pointer-events_none{pointer-events:none}[data-mantine-color-scheme=light] .light\\:c_var\\(--likec4-palette-hiContrast\\){color:var(--likec4-palette-hiContrast)}[data-mantine-color-scheme=dark] .dark\\:c_var\\(--likec4-palette-loContrast\\){color:var(--likec4-palette-loContrast)}[data-mantine-color-scheme=dark] .dark\\:c_mantine\\.colors\\.gray\\[4\\]{color:var(--colors-mantine-colors-gray\\[4\\])}[data-mantine-color-scheme=light] .light\\:c_mantine\\.colors\\.gray\\[8\\]{color:var(--colors-mantine-colors-gray\\[8\\])}[data-mantine-color-scheme=light] .light\\:c_mantine\\.colors\\.gray\\[9\\]{color:var(--colors-mantine-colors-gray\\[9\\])}.\\[\\&\\:is\\(\\[data-position\\=\\"right\\"\\]\\)\\]\\:ms_1:is([data-position=right]){margin-inline-start:var(--spacing-1)}.\\[\\&_\\:where\\(button\\,_\\.action-icon\\,_\\[role\\=\\'dialog\\'\\]\\)\\]\\:pointer-events_all :where(button,.action-icon,[role=dialog]){pointer-events:all}.likec4-root:is([data-likec4-diagram-panning=true]) .whenPanning\\:bx-sh_none{box-shadow:var(--shadows-none)}.backdrop\\:bkdp_auto::backdrop{backdrop-filter:var(--backdrop-blur, ) var(--backdrop-brightness, ) var(--backdrop-contrast, ) var(--backdrop-grayscale, ) var(--backdrop-hue-rotate, ) var(--backdrop-invert, ) var(--backdrop-opacity, ) var(--backdrop-saturate, ) var(--backdrop-sepia, );-webkit-backdrop-filter:var(--backdrop-blur, ) var(--backdrop-brightness, ) var(--backdrop-contrast, ) var(--backdrop-grayscale, ) var(--backdrop-hue-rotate, ) var(--backdrop-invert, ) var(--backdrop-opacity, ) var(--backdrop-saturate, ) var(--backdrop-sepia, )}.backdrop\\:bkdp-blur_var\\(--_blur\\)::backdrop{--backdrop-blur: blur(var(--_blur))}.backdrop\\:bg-c_\\[rgb\\(36_36_36_\\/_var\\(--_opacity\\,_5\\%\\)\\)\\]::backdrop{background-color:rgb(36 36 36 / var(--_opacity, 5%))}[data-mantine-color-scheme=dark] .dark\\:bg-c_mantine\\.colors\\.dark\\[6\\]{background-color:var(--colors-mantine-colors-dark\\[6\\])}.\\[\\&_\\.react-flow__attribution\\]\\:d_none .react-flow__attribution{display:none}[data-mantine-color-scheme=dark] .dark\\:mix-bm_hard-light{mix-blend-mode:hard-light}.\\[\\&_\\:where\\(svg\\,_img\\)\\]\\:pointer-events_none :where(svg,img){pointer-events:none}.\\[\\&_\\:where\\(svg\\,_img\\)\\]\\:filter_drop-shadow\\(0_0_3px_rgb\\(0_0_0_\\/_10\\%\\)\\)_drop-shadow\\(0_1px_8px_rgb\\(0_0_0_\\/_5\\%\\)\\)_drop-shadow\\(1px_1px_16px_rgb\\(0_0_0_\\/_2\\%\\)\\) :where(svg,img){filter:drop-shadow(0 0 3px rgb(0 0 0 / 10%)) drop-shadow(0 1px 8px rgb(0 0 0 / 5%)) drop-shadow(1px 1px 16px rgb(0 0 0 / 2%))}.\\[\\&_img\\]\\:obj-f_contain img{object-fit:contain}.\\[\\&_\\.mantine-ThemeIcon-root\\]\\:c_\\[var\\(--icon-color\\,_\\{colors\\.mantine\\.colors\\.dark\\[2\\]\\}\\)\\] .mantine-ThemeIcon-root{color:var(--icon-color, var(--colors-mantine-colors-dark\\[2\\]))}.\\[\\&\\[data-active\\]\\]\\:bx-sh_xs[data-active]{box-shadow:var(--shadows-xs)}.\\[\\&\\[data-active\\]\\]\\:c_mantine\\.colors\\.defaultColor[data-active]{color:var(--colors-mantine-colors-default-color)}[data-mantine-color-scheme=dark] .dark\\:c_mantine\\.colors\\.dark\\[1\\]{color:var(--colors-mantine-colors-dark\\[1\\])}[data-mantine-color-scheme=dark] .dark\\:bg-c_mantine\\.colors\\.dark\\[9\\]{background-color:var(--colors-mantine-colors-dark\\[9\\])}[data-mantine-color-scheme=dark] .dark\\:c_mantine\\.colors\\.text{color:var(--colors-mantine-colors-text)}[data-mantine-color-scheme=dark] .dark\\:c_mantine\\.colors\\.dark\\[2\\]{color:var(--colors-mantine-colors-dark\\[2\\])}[data-mantine-color-scheme=dark] .dark\\:c_mantine\\.colors\\.gray\\.lightColor{color:var(--colors-mantine-colors-gray-light-color)}.\\[\\&_\\.tabler-icon\\]\\:op_0\\.65 .tabler-icon{opacity:.65}.\\[\\&\\[data-missing\\]\\]\\:c_mantine\\.colors\\.orange\\[4\\][data-missing]{color:var(--colors-mantine-colors-orange\\[4\\])}.before\\:content_\\"scope\\:\\":before{content:"scope:"}.before\\:pos_absolute:before{position:absolute}.before\\:fs_xxs:before{font-size:var(--font-sizes-xxs)}.before\\:fw_500:before{font-weight:500}.before\\:lh_1:before{line-height:var(--line-heights-1)}.before\\:c_mantine\\.colors\\.dimmed:before{color:var(--colors-mantine-colors-dimmed)}.before\\:op_0\\.85:before{opacity:.85}.before\\:trf_translateY\\(-100\\%\\)_translateY\\(-2px\\):before{transform:translateY(-100%) translateY(-2px)}.\\[\\&\\[data-zero\\]\\]\\:c_mantine\\.colors\\.dimmed[data-zero]{color:var(--colors-mantine-colors-dimmed)}.\\[\\&_\\.mantine-Text-root\\]\\:c_mantine\\.colors\\.text\\/90 .mantine-Text-root{--mix-color: color-mix(in srgb, var(--colors-mantine-colors-text) 90%, transparent);color:var(--mix-color, var(--colors-mantine-colors-text))}.\\[\\&_\\.mantine-Text-root\\]\\:fs_xs .mantine-Text-root{font-size:var(--font-sizes-xs)}.\\[\\&_\\.mantine-Text-root\\]\\:fw_500 .mantine-Text-root{font-weight:500}.\\[\\&_\\.mantine-Text-root\\]\\:lh_1\\.2 .mantine-Text-root{line-height:1.2}.\\[\\&_\\.mantine-Text-root\\]\\:fs_xxs .mantine-Text-root{font-size:var(--font-sizes-xxs)}.\\[\\&_\\.mantine-Text-root\\]\\:fw_400 .mantine-Text-root{font-weight:400}.\\[\\&_\\.mantine-Text-root\\]\\:lh_xs .mantine-Text-root{line-height:var(--line-heights-xs)}.\\[\\&_\\.mantine-Text-root\\]\\:c_mantine\\.colors\\.dimmed .mantine-Text-root{color:var(--colors-mantine-colors-dimmed)}.\\[\\&\\[data-disabled\\]_\\.mantine-ThemeIcon-root\\]\\:op_0\\.45[data-disabled] .mantine-ThemeIcon-root{opacity:.45}:where(.likec4-view-btn[data-disabled]) .\\[\\:where\\(\\.likec4-view-btn\\[data-disabled\\]\\)_\\&\\]\\:op_0\\.85{opacity:.85}[data-mantine-color-scheme=light] .light\\:c_mantine\\.colors\\.gray\\[5\\]{color:var(--colors-mantine-colors-gray\\[5\\])}.\\[\\&_svg\\,_\\&_img\\]\\:pointer-events_none svg,.\\[\\&_svg\\,_\\&_img\\]\\:pointer-events_none img{pointer-events:none}.\\[\\&\\.likec4-shape-icon_svg\\]\\:stk-w_1\\.5.likec4-shape-icon svg{stroke-width:1.5}:where([data-disabled]) .\\[\\:where\\(\\[data-disabled\\]\\)_\\&\\]\\:op_0\\.4{opacity:.4}:where([data-disabled]) .\\[\\:where\\(\\[data-disabled\\]\\)_\\&\\]\\:op_0\\.85{opacity:.85}[data-mantine-color-scheme=light] .light\\:bg-c_\\[rgb\\(255_255_255_\\/_0\\.6\\)\\]{background-color:#fff9}:where(.react-flow__node:has([data-likec4-hovered=true]),.react-flow__edge:has([data-likec4-hovered=true]),.likec4-edge-container[data-likec4-hovered=true]) .whenHovered\\:stk-w_12px{stroke-width:12px}.\\[\\&_\\.react-flow__edge-interaction\\]\\:cursor_copy .react-flow__edge-interaction{cursor:copy}[data-mantine-color-scheme=dark] .dark\\:mix-bm_screen{mix-blend-mode:screen}[data-mantine-color-scheme=light] .light\\:mix-bm_multiply{mix-blend-mode:multiply}:where([data-likec4-selected=true],[data-likec4-hovered=true]) .\\[\\:where\\(\\[data-likec4-selected\\=\\'true\\'\\]\\,_\\[data-likec4-hovered\\=\\'true\\'\\]\\)_\\&\\]\\:vis_visible{visibility:visible}:where([data-likec4-selected=true],[data-likec4-hovered=true]) .\\[\\:where\\(\\[data-likec4-selected\\=\\'true\\'\\]\\,_\\[data-likec4-hovered\\=\\'true\\'\\]\\)_\\&\\]\\:fill-opacity_1{fill-opacity:1}:where([data-likec4-selected=true],[data-likec4-hovered=true]) .\\[\\:where\\(\\[data-likec4-selected\\=\\'true\\'\\]\\,_\\[data-likec4-hovered\\=\\'true\\'\\]\\)_\\&\\]\\:trs-tmf_out{--transition-easing: var(--easings-out);transition-timing-function:var(--easings-out)}:where([data-likec4-selected=true],[data-likec4-hovered=true]) .\\[\\:where\\(\\[data-likec4-selected\\=\\'true\\'\\]\\,_\\[data-likec4-hovered\\=\\'true\\'\\]\\)_\\&\\]\\:trs-dly_0ms{transition-delay:0ms}:where([data-likec4-selected=true]) .\\[\\:where\\(\\[data-likec4-selected\\=\\'true\\'\\]\\)_\\&\\]\\:r_6{r:6px}:is([data-likec4-hovered=true]) .\\[\\:is\\(\\[data-likec4-hovered\\=\\'true\\'\\]\\)_\\&\\]\\:r_8{r:8px}.\\[\\&_\\+_\\.likec4-element-shape\\]\\:ring-c_likec4\\.compare\\.manual\\.outline+.likec4-element-shape{outline-color:var(--colors-likec4-compare-manual-outline)}.\\[\\&_\\+_\\.likec4-element-shape\\]\\:ring-w_4px+.likec4-element-shape{outline-width:4px}.\\[\\&_\\+_\\.likec4-element-shape\\]\\:outline-style_dashed+.likec4-element-shape{outline-style:dashed}.\\[\\&_\\+_\\.likec4-element-shape\\]\\:ring-o_1\\.5+.likec4-element-shape{outline-offset:var(--spacing-1\\.5)}[data-mantine-color-scheme=dark] .dark\\:bg-c_mantine\\.colors\\.dark\\[6\\]\\/80{--mix-backgroundColor: color-mix(in srgb, var(--colors-mantine-colors-dark\\[6\\]) 80%, transparent);background-color:var(--mix-backgroundColor, var(--colors-mantine-colors-dark\\[6\\]))}.\\[\\&_\\.mantine-ScrollArea-viewport\\]\\:min-h_100\\% .mantine-ScrollArea-viewport{min-height:var(--sizes-100\\%)}:where([data-likec4-shape=browser]) .shapeBrowser\\:right_\\[5px\\]{right:5px}:where([data-likec4-shape=cylinder]) .shapeCylinder\\:top_\\[14px\\]{top:14px}:where([data-likec4-shape=storage]) .shapeStorage\\:top_\\[14px\\]{top:14px}:where([data-likec4-shape=queue]) .shapeQueue\\:top_\\[1px\\]{top:1px}:where([data-likec4-shape=queue]) .shapeQueue\\:right_3{right:var(--spacing-3)}:where([data-likec4-shape=cylinder]) .shapeCylinder\\:bottom_\\[5px\\]{bottom:5px}:where([data-likec4-shape=storage]) .shapeStorage\\:bottom_\\[5px\\]{bottom:5px}:where([data-likec4-shape=queue]) .shapeQueue\\:bottom_0{bottom:var(--spacing-0)}:where([data-likec4-shape=queue]) .shapeQueue\\:pl_\\[14px\\]{padding-left:14px}:where(.react-flow__node:has([data-likec4-hovered=true]),.react-flow__edge:has([data-likec4-hovered=true]),.likec4-edge-container[data-likec4-hovered=true]) .whenHovered\\:h_12{height:12px}[data-mantine-color-scheme=dark] .dark\\:bd-l-c_mantine\\.colors\\.dark\\[4\\]{border-left-color:var(--colors-mantine-colors-dark\\[4\\])}.\\[\\&_\\>_svg\\]\\:w_70\\%>svg{width:70%}.\\[\\&_\\>_svg\\]\\:h_70\\%>svg{height:70%}.\\[\\&_\\.tabler-icon\\]\\:w_65\\% .tabler-icon{width:65%}.\\[\\&_\\.tabler-icon\\]\\:h_65\\% .tabler-icon{height:65%}.\\[\\&_\\:where\\(svg\\,_img\\)\\]\\:w_100\\% :where(svg,img){width:var(--sizes-100\\%)}.\\[\\&_\\:where\\(svg\\,_img\\)\\]\\:h_auto :where(svg,img){height:auto}.\\[\\&_\\:where\\(svg\\,_img\\)\\]\\:max-h_100\\% :where(svg,img){max-height:var(--sizes-100\\%)}.\\[\\&\\:not\\(\\:has\\(\\.mantine-ScrollArea-root\\)\\)\\]\\:pl_1:not(:has(.mantine-ScrollArea-root)){padding-left:var(--spacing-1)}.\\[\\&\\:not\\(\\:has\\(\\.mantine-ScrollArea-root\\)\\)\\]\\:pr_1:not(:has(.mantine-ScrollArea-root)){padding-right:var(--spacing-1)}.\\[\\&_\\.mantine-ScrollArea-root\\]\\:w_100\\% .mantine-ScrollArea-root{width:var(--sizes-100\\%)}.\\[\\&_\\.mantine-ScrollArea-root\\]\\:h_100\\% .mantine-ScrollArea-root{height:var(--sizes-100\\%)}.\\[\\&\\[data-level\\=\\'1\\'\\]\\]\\:mb_sm[data-level="1"]{margin-bottom:var(--spacing-sm)}.\\[\\&_\\.tabler-icon\\]\\:w_90\\% .tabler-icon{width:90%}.before\\:top_0:before{top:var(--spacing-0)}.before\\:left_2:before{left:var(--spacing-2)}.\\[\\&\\:last-child_\\.likec4-edge-label\\]\\:mb_0:last-child .likec4-edge-label{margin-bottom:var(--spacing-0)}.\\[\\&_svg\\,_\\&_img\\]\\:w_100\\% svg,.\\[\\&_svg\\,_\\&_img\\]\\:w_100\\% img{width:var(--sizes-100\\%)}.\\[\\&_svg\\,_\\&_img\\]\\:h_auto svg,.\\[\\&_svg\\,_\\&_img\\]\\:h_auto img{height:auto}.\\[\\&_svg\\,_\\&_img\\]\\:max-h_100\\% svg,.\\[\\&_svg\\,_\\&_img\\]\\:max-h_100\\% img{max-height:var(--sizes-100\\%)}:is(.\\[\\&_\\+_\\&\\]\\:mt_\\[32px\\])+:is(.\\[\\&_\\+_\\&\\]\\:mt_\\[32px\\]){margin-top:32px}:where(.react-flow__node:has([data-likec4-hovered=true]),.react-flow__edge:has([data-likec4-hovered=true]),.likec4-edge-container[data-likec4-hovered=true]) .whenHovered\\:w_7px{width:7px}:where(.react-flow__node,.react-flow__edge,.likec4-edge-container):is(.selected) .whenSelected\\:w_7px{width:7px}.focusWithin\\:bg_mantine\\.colors\\.gray\\[4\\]\\/55\\!:focus-within{--mix-background: color-mix(in srgb, var(--colors-mantine-colors-gray\\[4\\]) 55%, transparent) !important;background:var(--mix-background, var(--colors-mantine-colors-gray\\[4\\]))!important}.group:focus-within .groupFocusWithin\\:op_1{opacity:1}.group:focus-within .groupFocusWithin\\:grayscale_0{--grayscale: grayscale(0)}.focus\\:bg_mantine\\.colors\\.primary\\[8\\]:is(:focus,[data-focus]){background:var(--colors-mantine-colors-primary\\[8\\])}.mantine-Tree-node:focus>.mantine-Tree-label .\\[\\.mantine-Tree-node\\:focus_\\>_\\.mantine-Tree-label_\\&\\]\\:bg_mantine\\.colors\\.primary\\[8\\]{background:var(--colors-mantine-colors-primary\\[8\\])}.group:is(:focus,[data-focus]) .groupFocus\\:transition_none{transition:none}.focus\\:ring_none:is(:focus,[data-focus]){outline:var(--borders-none)}.focusVisible\\:ring_none:is(:focus-visible,[data-focus-visible]){outline:var(--borders-none)}.focus\\:bd-c_mantine\\.colors\\.primary\\[9\\]:is(:focus,[data-focus]){border-color:var(--colors-mantine-colors-primary\\[9\\])}.mantine-Tree-node:focus>.mantine-Tree-label .\\[\\.mantine-Tree-node\\:focus_\\>_\\.mantine-Tree-label_\\&\\]\\:ring_none{outline:var(--borders-none)}.mantine-Tree-node:focus>.mantine-Tree-label .\\[\\.mantine-Tree-node\\:focus_\\>_\\.mantine-Tree-label_\\&\\]\\:bd-c_mantine\\.colors\\.primary\\[9\\]{border-color:var(--colors-mantine-colors-primary\\[9\\])}.group:is(:focus,[data-focus]) .groupFocus\\:c_\\[inherit\\]\\!{color:inherit!important}.group:is(:focus,[data-focus]) .groupFocus\\:op_0\\.5{opacity:.5}.group:is(:focus,[data-focus]) .groupFocus\\:op_0\\.8{opacity:.8}.focus\\:bg-c_mantine\\.colors\\.gray\\[2\\]:is(:focus,[data-focus]){background-color:var(--colors-mantine-colors-gray\\[2\\])}.focus\\:c_mantine\\.colors\\.primary\\.lightColor\\!:is(:focus,[data-focus]){color:var(--colors-mantine-colors-primary-light-color)!important}.focus\\:bg-c_mantine\\.colors\\.primary\\.lightHover\\!:is(:focus,[data-focus]){background-color:var(--colors-mantine-colors-primary-light-hover)!important}.group:is(:focus,[data-focus]) .groupFocus\\:c_mantine\\.colors\\.primary\\[0\\]{color:var(--colors-mantine-colors-primary\\[0\\])}.mantine-Tree-node:focus>.mantine-Tree-label .\\[\\.mantine-Tree-node\\:focus_\\>_\\.mantine-Tree-label_\\&\\]\\:c_mantine\\.colors\\.primary\\[0\\]{color:var(--colors-mantine-colors-primary\\[0\\])}.group:is(:focus,[data-focus]) .groupFocus\\:c_mantine\\.colors\\.primary\\[1\\]{color:var(--colors-mantine-colors-primary\\[1\\])}.mantine-Tree-node:focus>.mantine-Tree-label .\\[\\.mantine-Tree-node\\:focus_\\>_\\.mantine-Tree-label_\\&\\]\\:c_mantine\\.colors\\.primary\\[1\\]{color:var(--colors-mantine-colors-primary\\[1\\])}.hover\\:--icon-color_\\{colors\\.mantine\\.colors\\.dark\\[1\\]\\}:is(:hover,[data-hover]){--icon-color: var(--colors-mantine-colors-dark\\[1\\])}.hover\\:--view-title-color_\\{colors\\.mantine\\.colors\\.defaultColor\\}:is(:hover,[data-hover]){--view-title-color: var(--colors-mantine-colors-default-color)}.hover\\:bg_mantine\\.colors\\.defaultHover:is(:hover,[data-hover]){background:var(--colors-mantine-colors-default-hover)}.hover\\:bg_mantine\\.colors\\.gray\\[3\\]:is(:hover,[data-hover]){background:var(--colors-mantine-colors-gray\\[3\\])}.hover\\:bg_mantine\\.colors\\.gray\\.lightHover:is(:hover,[data-hover]){background:var(--colors-mantine-colors-gray-light-hover)}.hover\\:bg_mantine\\.colors\\.primary\\[8\\]\\/60:is(:hover,[data-hover]){--mix-background: color-mix(in srgb, var(--colors-mantine-colors-primary\\[8\\]) 60%, transparent);background:var(--mix-background, var(--colors-mantine-colors-primary\\[8\\]))}.group:is(:hover,[data-hover]) .groupHover\\:bg_mantine\\.colors\\.gray\\[3\\]\\/35{--mix-background: color-mix(in srgb, var(--colors-mantine-colors-gray\\[3\\]) 35%, transparent);background:var(--mix-background, var(--colors-mantine-colors-gray\\[3\\]))}.hover\\:td_underline:is(:hover,[data-hover]){text-decoration:underline}.hover\\:bd-c_mantine\\.colors\\.defaultBorder:is(:hover,[data-hover]){border-color:var(--colors-mantine-colors-default-border)}.hover\\:bd-w_4px:is(:hover,[data-hover]){border-width:4px}.hover\\:bd-c_mantine\\.colors\\.dark\\[1\\]:is(:hover,[data-hover]){border-color:var(--colors-mantine-colors-dark\\[1\\])}.hover\\:border-style_solid:is(:hover,[data-hover]){border-style:solid}.\\[\\&\\:is\\(\\:hover\\,_\\[data-selected\\=true\\]\\)_\\>_\\*\\]\\:transition_all_0\\.15s_ease-out:is(:hover,[data-selected=true])>*{transition:all .15s ease-out}.hover\\:ring_none:is(:hover,[data-hover]){outline:var(--borders-none)}.hover\\:bd-c_mantine\\.colors\\.primary\\[9\\]:is(:hover,[data-hover]){border-color:var(--colors-mantine-colors-primary\\[9\\])}.hover\\:transition_all_120ms_ease-out:is(:hover,[data-hover]){transition:all .12s ease-out}.hover\\:op_1:is(:hover,[data-hover]){opacity:1}.hover\\:bg-c_mantine\\.colors\\.gray\\[1\\]:is(:hover,[data-hover]){background-color:var(--colors-mantine-colors-gray\\[1\\])}.hover\\:bx-sh_sm:is(:hover,[data-hover]){box-shadow:var(--shadows-sm)}.group:is(:hover,[data-hover]) .groupHover\\:c_mantine\\.colors\\.dimmed{color:var(--colors-mantine-colors-dimmed)}.group:is(:hover,[data-hover]) .groupHover\\:op_0\\.5{opacity:.5}.group:is(:hover,[data-hover]) .groupHover\\:op_0\\.8{opacity:.8}.hover\\:bg-c_mantine\\.colors\\.gray\\[2\\]:is(:hover,[data-hover]){background-color:var(--colors-mantine-colors-gray\\[2\\])}.hover\\:bg-c_likec4\\.panel\\.action\\.warning\\.bg\\.hover:is(:hover,[data-hover]){background-color:var(--colors-likec4-panel-action-warning-bg-hover)}.hover\\:c_likec4\\.panel\\.action\\.hover:is(:hover,[data-hover]){color:var(--colors-likec4-panel-action-hover)}.hover\\:c_likec4\\.panel\\.action:is(:hover,[data-hover]){color:var(--colors-likec4-panel-action)}.hover\\:trs-dly_0s:is(:hover,[data-hover]){transition-delay:0s}.hover\\:bg-c_likec4\\.panel\\.action\\.bg\\.hover:is(:hover,[data-hover]){background-color:var(--colors-likec4-panel-action-bg-hover)}.\\[\\&\\:hover_\\>_\\*\\]\\:trs-tmf_out:hover>*{--transition-easing: var(--easings-out);transition-timing-function:var(--easings-out)}.\\[\\&\\:hover_\\>_\\*\\]\\:trf_translateX\\(1\\.6px\\):hover>*{transform:translate(1.6px)}.hover\\:trs-tmf_out:is(:hover,[data-hover]){--transition-easing: var(--easings-out);transition-timing-function:var(--easings-out)}.hover\\:c_mantine\\.colors\\.defaultColor:is(:hover,[data-hover]){color:var(--colors-mantine-colors-default-color)}.hover\\:c_mantine\\.colors\\.primary\\[6\\]:is(:hover,[data-hover]){color:var(--colors-mantine-colors-primary\\[6\\])}.\\[\\&\\:is\\(\\:hover\\,_\\[data-selected\\=true\\]\\)_\\>_\\*\\]\\:cursor_pointer:is(:hover,[data-selected=true])>*{cursor:pointer}.\\[\\&\\:is\\(\\:hover\\,_\\[data-selected\\=true\\]\\)_\\>_\\*\\]\\:bg-c_mantine\\.colors\\.defaultHover:is(:hover,[data-selected=true])>*{background-color:var(--colors-mantine-colors-default-hover)}.hover\\:bg-c_mantine\\.colors\\.gray\\[0\\]:is(:hover,[data-hover]){background-color:var(--colors-mantine-colors-gray\\[0\\])}.group:is(:hover,[data-hover]) .groupHover\\:op_1{opacity:1}.group:is(:hover,[data-hover]) .groupHover\\:grayscale_0{--grayscale: grayscale(0)}.group:is(:hover,[data-hover]) .groupHover\\:c_mantine\\.colors\\.primary\\[0\\]{color:var(--colors-mantine-colors-primary\\[0\\])}.group:is(:hover,[data-hover]) .groupHover\\:c_mantine\\.colors\\.primary\\[1\\]{color:var(--colors-mantine-colors-primary\\[1\\])}.hover\\:fill_mantine\\.colors\\.primary\\.filledHover:is(:hover,[data-hover]){fill:var(--colors-mantine-colors-primary-filled-hover)}.hover\\:r_10:is(:hover,[data-hover]){r:10px}.hover\\:trs-dur_100ms:is(:hover,[data-hover]){--transition-duration: .1s;transition-duration:.1s}.hover\\:bg-c_mantine\\.colors\\.primary\\[2\\]\\/50:is(:hover,[data-hover]){--mix-backgroundColor: color-mix(in srgb, var(--colors-mantine-colors-primary\\[2\\]) 50%, transparent);background-color:var(--mix-backgroundColor, var(--colors-mantine-colors-primary\\[2\\]))}.group:is(:active,[data-active]) .groupActive\\:op_0\\.5{opacity:.5}.group:is(:active,[data-active]) .groupActive\\:op_0\\.8{opacity:.8}.active\\:trf_translateY\\(-3px\\):is(:active,[data-active]){transform:translateY(-3px)}.group:is(:active,[data-active]) .groupActive\\:cursor_grabbing{cursor:grabbing}.likec4-root:is([data-likec4-reduced-graphics]) .reduceGraphics\\:\\[\\&_\\.action-icon\\]\\:--ai-radius_0px .action-icon{--ai-radius: 0px}:where(.react-flow__node,.react-flow__edge,.likec4-edge-container):is(.selectable) .whenSelectable\\:before\\:bg_transparent:before{background:var(--colors-transparent)}[data-mantine-color-scheme=dark] .dark\\:\\[\\&\\:is\\(\\[data-active\\]\\)\\]\\:bg_mantine\\.colors\\.dark\\[5\\]:is([data-active]){background:var(--colors-mantine-colors-dark\\[5\\])}[data-mantine-color-scheme=light] .light\\:\\[\\&_\\.mantine-SegmentedControl-root\\]\\:bg_mantine\\.colors\\.gray\\[3\\] .mantine-SegmentedControl-root{background:var(--colors-mantine-colors-gray\\[3\\])}.group:is(:hover,[data-hover]) .\\[\\&\\:is\\(\\[data-position\\=\\"left\\"\\]\\)\\]\\:groupHover\\:c_\\[var\\(--badge-color\\)\\]:is([data-position=left]){color:var(--badge-color)}.group:is(:hover,[data-hover]) .\\[\\&\\:is\\(\\[data-position\\=\\"left\\"\\]\\)\\]\\:groupHover\\:op_0\\.7:is([data-position=left]){opacity:.7}[data-mantine-color-scheme=dark] .\\[\\&_\\>_mark\\]\\:dark\\:bg-c_mantine\\.colors\\.yellow\\[5\\]\\/80>mark{--mix-backgroundColor: color-mix(in srgb, var(--colors-mantine-colors-yellow\\[5\\]) 80%, transparent);background-color:var(--mix-backgroundColor, var(--colors-mantine-colors-yellow\\[5\\]))}.group:is(:focus,[data-focus]) .\\[\\&_\\>_mark\\]\\:groupFocus\\:bg-c_\\[transparent\\]>mark{background-color:var(--colors-transparent)}.group:is(:focus,[data-focus]) .\\[\\&_\\>_mark\\]\\:groupFocus\\:c_\\[inherit\\]\\!>mark{color:inherit!important}:where(.react-flow__node,.react-flow__edge,.likec4-edge-container):is(.selectable) .whenSelectable\\:before\\:content_\\"_\\":before{content:" "}:where(.react-flow__node,.react-flow__edge,.likec4-edge-container):is(.selectable) .whenSelectable\\:before\\:pos_absolute:before{position:absolute}:where(.react-flow__node,.react-flow__edge,.likec4-edge-container):is(.selectable) .whenSelectable\\:before\\:pointer-events_all:before{pointer-events:all}.likec4-root:is([data-likec4-reduced-graphics][data-likec4-diagram-panning=true]) .reduceGraphicsOnPan\\:before\\:d_none:before{display:none}.notDisabled\\:hover\\:bg-c_likec4\\.panel\\.action\\.bg\\.hover:not(:is(:disabled,[disabled],[data-disabled])):is(:hover,[data-hover]){background-color:var(--colors-likec4-panel-action-bg-hover)}.\\[\\&_\\.mantine-ThemeIcon-root\\]\\:hover\\:c_mantine\\.colors\\.defaultColor .mantine-ThemeIcon-root:is(:hover,[data-hover]){color:var(--colors-mantine-colors-default-color)}[data-mantine-color-scheme=dark] .dark\\:\\[\\&\\:is\\(\\[data-active\\]\\)\\]\\:c_mantine\\.colors\\.white:is([data-active]){color:var(--colors-mantine-colors-white)}[data-mantine-color-scheme=light] .\\[\\&\\[data-missing\\]\\]\\:light\\:c_mantine\\.colors\\.orange\\[8\\][data-missing]{color:var(--colors-mantine-colors-orange\\[8\\])}.\\[\\&_\\.mantine-ScrollArea-viewport\\]\\:\\[\\&_\\>_div\\]\\:min-h_100\\% .mantine-ScrollArea-viewport>div{min-height:var(--sizes-100\\%)}.\\[\\&_\\.mantine-ScrollArea-viewport\\]\\:\\[\\&_\\>_div\\]\\:h_100\\% .mantine-ScrollArea-viewport>div{height:var(--sizes-100\\%)}:where(.react-flow__node,.react-flow__edge,.likec4-edge-container):is(.selectable) .whenSelectable\\:before\\:top_\\[calc\\(100\\%_-_4px\\)\\]:before{top:calc(100% - 4px)}:where(.react-flow__node,.react-flow__edge,.likec4-edge-container):is(.selectable) .whenSelectable\\:before\\:left_0:before{left:var(--spacing-0)}:where(.react-flow__node,.react-flow__edge,.likec4-edge-container):is(.selectable) .whenSelectable\\:before\\:w_full:before{width:var(--sizes-full)}:where(.react-flow__node,.react-flow__edge,.likec4-edge-container):is(.selectable) .whenSelectable\\:before\\:h_24px:before{height:24px}.\\[\\&_\\.mantine-ScrollArea-root\\]\\:\\[\\&_\\>_div\\]\\:pl_1 .mantine-ScrollArea-root>div{padding-left:var(--spacing-1)}.\\[\\&_\\.mantine-ScrollArea-root\\]\\:\\[\\&_\\>_div\\]\\:pr_1 .mantine-ScrollArea-root>div{padding-right:var(--spacing-1)}[data-mantine-color-scheme=dark] .focusWithin\\:dark\\:bg_mantine\\.colors\\.dark\\[5\\]\\/55\\!:focus-within{--mix-background: color-mix(in srgb, var(--colors-mantine-colors-dark\\[5\\]) 55%, transparent) !important;background:var(--mix-background, var(--colors-mantine-colors-dark\\[5\\]))!important}[data-mantine-color-scheme=dark] .focus\\:dark\\:bg-c_mantine\\.colors\\.dark\\[4\\]:is(:focus,[data-focus]){background-color:var(--colors-mantine-colors-dark\\[4\\])}[data-mantine-color-scheme=light] .group:is(:focus,[data-focus]) .groupFocus\\:light\\:c_mantine\\.colors\\.white{color:var(--colors-mantine-colors-white)}[data-mantine-color-scheme=light] .mantine-Tree-node:focus>.mantine-Tree-label .\\[\\.mantine-Tree-node\\:focus_\\>_\\.mantine-Tree-label_\\&\\]\\:light\\:c_mantine\\.colors\\.white{color:var(--colors-mantine-colors-white)}[data-mantine-color-scheme=light] .light\\:hover\\:--icon-color_\\{colors\\.mantine\\.colors\\.gray\\[7\\]\\}:is(:hover,[data-hover]){--icon-color: var(--colors-mantine-colors-gray\\[7\\])}[data-mantine-color-scheme=dark] .dark\\:hover\\:bg_mantine\\.colors\\.dark\\[6\\]:is(:hover,[data-hover]){background:var(--colors-mantine-colors-dark\\[6\\])}[data-mantine-color-scheme=dark] .group:is(:hover,[data-hover]) .groupHover\\:dark\\:bg_mantine\\.colors\\.dark\\[5\\]\\/35{--mix-background: color-mix(in srgb, var(--colors-mantine-colors-dark\\[5\\]) 35%, transparent);background:var(--mix-background, var(--colors-mantine-colors-dark\\[5\\]))}[data-mantine-color-scheme=light] .light\\:hover\\:bd-c_mantine\\.colors\\.primary\\[6\\]:is(:hover,[data-hover]){border-color:var(--colors-mantine-colors-primary\\[6\\])}[data-mantine-color-scheme=dark] .hover\\:dark\\:bg-c_mantine\\.colors\\.dark\\[5\\]:is(:hover,[data-hover]){background-color:var(--colors-mantine-colors-dark\\[5\\])}[data-mantine-color-scheme=light] .group:is(:hover,[data-hover]) .groupHover\\:light\\:bg-c_mantine\\.colors\\.gray\\[2\\]{background-color:var(--colors-mantine-colors-gray\\[2\\])}[data-mantine-color-scheme=dark] .group:is(:hover,[data-hover]) .groupHover\\:dark\\:bg-c_mantine\\.colors\\.dark\\[8\\]{background-color:var(--colors-mantine-colors-dark\\[8\\])}[data-mantine-color-scheme=dark] .hover\\:dark\\:bg-c_mantine\\.colors\\.dark\\[4\\]:is(:hover,[data-hover]){background-color:var(--colors-mantine-colors-dark\\[4\\])}[data-mantine-color-scheme=dark] .hover\\:dark\\:bg-c_mantine\\.colors\\.dark\\[5\\]\\/70:is(:hover,[data-hover]){--mix-backgroundColor: color-mix(in srgb, var(--colors-mantine-colors-dark\\[5\\]) 70%, transparent);background-color:var(--mix-backgroundColor, var(--colors-mantine-colors-dark\\[5\\]))}[data-mantine-color-scheme=dark] .dark\\:hover\\:c_mantine\\.colors\\.white:is(:hover,[data-hover]){color:var(--colors-mantine-colors-white)}[data-mantine-color-scheme=dark] .hover\\:dark\\:bg-c_mantine\\.colors\\.dark\\[7\\]:is(:hover,[data-hover]){background-color:var(--colors-mantine-colors-dark\\[7\\])}[data-mantine-color-scheme=dark] .hover\\:dark\\:c_mantine\\.colors\\.primary\\[4\\]:is(:hover,[data-hover]){color:var(--colors-mantine-colors-primary\\[4\\])}.hover\\:\\[\\&_\\>_\\:not\\(\\[data-no-transform\\]\\)\\]\\:trs-tmf_out:is(:hover,[data-hover])>:not([data-no-transform]){--transition-easing: var(--easings-out);transition-timing-function:var(--easings-out)}.hover\\:\\[\\&_\\>_\\:not\\(\\[data-no-transform\\]\\)\\]\\:trf_translateX\\(1px\\):is(:hover,[data-hover])>:not([data-no-transform]){transform:translate(1px)}.hover\\:\\[\\&_\\>_\\*\\]\\:trs-tmf_out:is(:hover,[data-hover])>*{--transition-easing: var(--easings-out);transition-timing-function:var(--easings-out)}.hover\\:\\[\\&_\\>_\\*\\]\\:trf_translateX\\(1px\\):is(:hover,[data-hover])>*{transform:translate(1px)}[data-mantine-color-scheme=dark] .hover\\:dark\\:bg-c_mantine\\.colors\\.defaultHover:is(:hover,[data-hover]){background-color:var(--colors-mantine-colors-default-hover)}[data-mantine-color-scheme=dark] .hover\\:dark\\:c_mantine\\.colors\\.white:is(:hover,[data-hover]){color:var(--colors-mantine-colors-white)}[data-mantine-color-scheme=light] .light\\:hover\\:bg-c_mantine\\.colors\\.primary\\[5\\]:is(:hover,[data-hover]){background-color:var(--colors-mantine-colors-primary\\[5\\])}[data-mantine-color-scheme=light] .group:is(:hover,[data-hover]) .groupHover\\:light\\:c_mantine\\.colors\\.white{color:var(--colors-mantine-colors-white)}[data-mantine-color-scheme=light] .group:is(:hover,[data-hover]) .groupHover\\:light\\:c_mantine\\.colors\\.primary\\[0\\]{color:var(--colors-mantine-colors-primary\\[0\\])}[data-mantine-color-scheme=dark] .dark\\:hover\\:bg-c_mantine\\.colors\\.dark\\[3\\]\\/40:is(:hover,[data-hover]){--mix-backgroundColor: color-mix(in srgb, var(--colors-mantine-colors-dark\\[3\\]) 40%, transparent);background-color:var(--mix-backgroundColor, var(--colors-mantine-colors-dark\\[3\\]))}@container (min-width: 24rem){.\\@\\/xs\\:d_flex{display:flex}}@media screen and (min-width:36rem){.xs\\:max-w_calc\\(100cqw\\){max-width:100cqw}.xs\\:max-w_calc\\(100cqw_-_50px\\){max-width:calc(100cqw - 50px)}.xs\\:max-w_calc\\(100cqw_-_250px\\){max-width:calc(100cqw - 250px)}.xs\\:max-h_calc\\(100cqh_-_200px\\){max-height:calc(100cqh - 200px)}.xs\\:max-h_calc\\(100cqh_-_160px\\){max-height:calc(100cqh - 160px)}.xs\\:h_100cqh{height:100cqh}.xs\\:max-h_calc\\(100cqh_-_70px\\){max-height:calc(100cqh - 70px)}}@container (min-width: 40rem){.\\@\\/sm\\:m_xs{margin:var(--spacing-xs)}.\\@\\/sm\\:gap_xs{gap:var(--spacing-xs)}.\\@\\/sm\\:w_max-content{width:max-content}.\\@\\/sm\\:max-w_calc\\(100vw_-_2_\\*_\\{spacing\\.md\\}\\){max-width:calc(100vw - 2 * var(--spacing-md))}.\\@\\/sm\\:min-w_400{min-width:400px}.\\@\\/sm\\:max-w_550{max-width:550px}}@container (min-width: 40rem){@media screen and (min-width:36rem){.\\@\\/sm\\:xs\\:max-w_calc\\(100cqw_-_2_\\*_\\{spacing\\.md\\}\\){max-width:calc(100cqw - 2 * var(--spacing-md))}}}@container (min-width: 48rem){.\\@\\/md\\:d_block{display:block}.\\@\\/md\\:d_flex{display:flex}.\\@\\/md\\:d_none{display:none}.\\@\\/md\\:d_inherit{display:inherit}.\\@\\/md\\:ms_2{margin-inline-start:var(--spacing-2)}.\\@\\/md\\:w_\\[64px\\]{width:64px}}@media screen and (min-width:48rem){.sm\\:pr_\\[30px\\]{padding-right:30px}.sm\\:min-w_300{min-width:300px}.sm\\:max-w_65vw{max-width:65vw}}@media screen and (min-width:62rem){.md\\:--text-fz_\\{fontSizes\\.md\\}{--text-fz: var(--font-sizes-md)}.md\\:bd-w_4{border-width:4px}.md\\:px_6{padding-inline:var(--spacing-6)}.md\\:pr_\\[50px\\]{padding-right:50px}.md\\:max-w_40vw{max-width:40vw}}@container (min-width: 64rem){.\\@\\/lg\\:max-w_700{max-width:700px}}@media screen and (min-width:75rem){.lg\\:px_8{padding-inline:var(--spacing-8)}}@container likec4-tree (max-width: 450px){.\\[\\@container_likec4-tree_\\(max-width\\:_450px\\)\\]\\:--likec4-icon-size_18px{--likec4-icon-size: 18px}.\\[\\@container_likec4-tree_\\(max-width\\:_450px\\)\\]\\:gap_0\\.5{gap:var(--spacing-0\\.5)}.\\[\\@container_likec4-tree_\\(max-width\\:_450px\\)\\]\\:flex-d_column-reverse{flex-direction:column-reverse}.\\[\\@container_likec4-tree_\\(max-width\\:_450px\\)\\]\\:ai_flex-start{align-items:flex-start}.\\[\\@container_likec4-tree_\\(max-width\\:_450px\\)\\]\\:d_none{display:none}}@media print{.print\\:d_none{display:none}}}`,Ate={autoContrast:!0,primaryColor:"indigo",cursorType:"pointer",defaultRadius:"sm",fontFamily:"var(--likec4-app-font, var(--likec4-app-font-default))",headings:{fontWeight:"500",sizes:{h1:{fontWeight:"600"},h2:{fontWeight:"500"}}},components:{Portal:ry.extend({defaultProps:{reuseTargetNode:!0}}),Tooltip:_n.extend({defaultProps:{color:"dark"}})}};fe({cursor:"pointer","--mantine-cursor-pointer":"pointer","& :where(.likec4-diagram, .likec4-compound-node, .likec4-element-node)":{cursor:"pointer"}});function TKe(e,r){const[n,o]=S.useState([]);return z8(()=>{if(e&&!document.querySelector("style[data-likec4-font]")){const a=document.createElement("style");a.setAttribute("type","text/css"),a.setAttribute("data-likec4-font",""),Gx(r)&&a.setAttribute("nonce",r),q1(r)&&a.setAttribute("nonce",r()),a.appendChild(document.createTextNode(jKe)),document.head.appendChild(a)}},[e]),z8(()=>{const a=new CSSStyleSheet;return a.replaceSync(Tte.replaceAll(":where(:root,:host)",".likec4-shadow-root").replaceAll(":root",".likec4-shadow-root").replaceAll(new RegExp("(?{a.replaceSync("")}},[Tte]),n}const Dte=()=>{try{const e=window.getComputedStyle(document.documentElement).colorScheme??"",r=df(e.split(" "));if(r==="light"||r==="dark")return r}catch{}return null};function AKe(e){const r=yq(),[n,o]=S.useState(Dte);return Rq(gf(()=>o(Dte),100),{attributes:!0,childList:!1,subtree:!1},()=>document.documentElement),e??n??r}function Mte({children:e}){const r=S.useContext(pw);return S.useEffect(()=>{r||console.warn("LikeC4Diagram must be a child of MantineProvider")},[]),r?y.jsx(y.Fragment,{children:e}):y.jsx(q7,{defaultColorScheme:"auto",theme:Ate,children:e})}Mte.displayName="EnsureMantine";const jz=({reducedMotion:e="user",children:r})=>{const n=Zu()?.();return y.jsx(ZOe,{features:WLe,strict:!0,children:y.jsx(JOe,{reducedMotion:e,...n&&{nonce:n},children:r})})};function Nte({onCanvasClick:e,onCanvasContextMenu:r,onCanvasDblClick:n,onEdgeClick:o,onEdgeContextMenu:a,onNavigateTo:i,onNodeClick:l,onNodeContextMenu:s,onOpenSource:c,onBurgerMenuClick:d,onLayoutTypeChange:u,onInitialized:p,view:f,className:g,controls:v=!0,fitView:w=!0,fitViewPadding:x=v?K3.withControls:K3.default,pannable:k=!0,zoomable:C=!0,background:_="dots",enableElementTags:$=!1,enableFocusMode:z=!1,enableElementDetails:j=!1,enableRelationshipDetails:A=!1,enableRelationshipBrowser:R=!1,enableCompareWithLatest:T=!!u,nodesSelectable:O,enableNotations:P=!1,showNavigationButtons:L=!!i,enableDynamicViewWalkthrough:H=!1,dynamicViewVariant:M,enableSearch:V=!1,initialWidth:B,initialHeight:F,reduceGraphics:q="auto",renderIcon:G,where:U,reactFlowProps:Y,renderNodes:Z,children:I}){const W=MW(),K=S.useRef(null),Q=!!Kee(),ae=!Q;O??=Q||z||!!i||!!l;const te=wJ(f,M),re=DKe(x);K.current==null&&(K.current={defaultEdges:[],defaultNodes:[],initialWidth:B??te.width,initialHeight:F??te.height,initialFitViewOptions:{maxZoom:wC,minZoom:yi,padding:re},initialMaxZoom:wC,initialMinZoom:yi});const ue=q==="auto"?k&&(te.width??1)*(te.height??1)>6e6&&f.nodes.some(_e=>_e.children?.length>0):q;return y.jsx(Mte,{children:y.jsx(jz,{...ue&&{reducedMotion:"always"},children:y.jsx(N4e,{value:G??null,children:y.jsx(sp,{features:{enableFitView:w,enableEditor:Q,enableReadOnly:ae,enableFocusMode:z,enableNavigateTo:!!i,enableElementDetails:j,enableRelationshipDetails:A,enableRelationshipBrowser:R,enableSearch:V,enableNavigationButtons:L&&!!i,enableDynamicViewWalkthrough:f._type==="dynamic"&&H,enableNotations:P,enableVscode:!!c,enableControls:v,enableElementTags:$,enableCompareWithLatest:T&&!!u},children:y.jsxs(HUe,{handlers:{onCanvasClick:e,onCanvasContextMenu:r,onCanvasDblClick:n,onEdgeClick:o,onEdgeContextMenu:a,onNavigateTo:i,onNodeClick:l,onNodeContextMenu:s,onOpenSource:c,onBurgerMenuClick:d,onInitialized:p,onLayoutTypeChange:u},children:[y.jsx(RKe,{id:W}),y.jsx(cMe,{rootSelector:`#${W}`,children:y.jsx(nMe,{id:W,className:g,reduceGraphics:ue,children:y.jsx(qx,{fitView:w,...K.current,children:y.jsxs(hKe,{view:f,zoomable:C,pannable:k,fitViewPadding:re,nodesDraggable:Q,nodesSelectable:O,where:U??null,dynamicViewVariant:M,children:[y.jsx(cZe,{background:_,reactFlowProps:Y,renderNodes:Z,children:I}),y.jsx(gee,{})]})})})})]})})})})})}const Pte=e=>typeof e=="number"?`${e}px`:e;function DKe(e){return _I(()=>{if(b7(e))return xCe(e,Pte);const r=Pte(e);return{x:r,y:r}},[e],tt)}function MKe({children:e,likec4model:r}){return y.jsx(fy.Provider,{value:r,children:e})}const Tz=({children:e})=>y.jsx("div",{style:{margin:"1rem 0"},children:y.jsx("div",{style:{margin:"0 auto",display:"inline-block",padding:"2rem",background:"rgba(250,82,82,.15)",color:"#ffa8a8"},children:e})}),NKe=({viewId:e})=>y.jsxs(Tz,{children:["View ",y.jsx("code",{children:e})," not found"]}),PKe=e=>{throw new Error("LikeC4View is not available SSR")};var Bte={exports:{}},Az,Ote;function BKe(){if(Ote)return Az;Ote=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Az=e,Az}var Dz,Ite;function OKe(){if(Ite)return Dz;Ite=1;var e=BKe();function r(){}function n(){}return n.resetWarningCache=r,Dz=function(){function o(l,s,c,d,u,p){if(p!==e){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}o.isRequired=o;function a(){return o}var i={array:o,bigint:o,bool:o,func:o,number:o,object:o,string:o,symbol:o,any:o,arrayOf:a,element:o,elementType:o,instanceOf:a,node:o,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:n,resetWarningCache:r};return i.PropTypes=i,i},Dz}var Lte;function IKe(){return Lte||(Lte=1,Bte.exports=OKe()()),Bte.exports}var LKe=IKe();const hl=s7(LKe);var FKe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Fte(e,r){return e(r={exports:{}},r.exports),r.exports}var VKe=Fte((function(e){(function(r){var n=function(x,k,C){if(!c(k)||u(k)||p(k)||f(k)||s(k))return k;var _,$=0,z=0;if(d(k))for(_=[],z=k.length;$e.length)&&(r=e.length);for(var n=0,o=new Array(r);n=0||(a[n]=e[n]);return a},Hte=function(e,r){if(e==null)return{};var n,o,a=YKe(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a},XKe=S.createContext(null);function Ute(e){var r=e.children,n=r===void 0?"":r,o=Hte(e,["children"]);return typeof n!="string"&&(n=PKe()),Kr.createElement("template",qte({},o,{dangerouslySetInnerHTML:{__html:n}}))}function Wte(e){var r=e.root,n=e.children;return Ii.createPortal(n===void 0?null:n,r)}function ZKe(e){var r=S.forwardRef((function(n,o){var a,i,l=n.mode,s=l===void 0?"open":l,c=n.delegatesFocus,d=c!==void 0&&c,u=n.styleSheets,p=u===void 0?[]:u,f=n.ssr,g=f!==void 0&&f,v=n.children,w=Hte(n,["mode","delegatesFocus","styleSheets","ssr","children"]),x=(i=S.useRef((a=o)&&a.current),S.useEffect((function(){a&&(a.current=i.current)}),[a]),i),k=S.useState(null),C=GKe(k,2),_=C[0],$=C[1],z="node_".concat(s).concat(d);return S.useLayoutEffect((function(){if(x.current)try{if(typeof o=="function"&&o(x.current),g){var j=x.current.shadowRoot;return void $(j)}var A=x.current.attachShadow({mode:s,delegatesFocus:d});p.length>0&&(A.adoptedStyleSheets=p),$(A)}catch(R){(function(T){var O=T.error,P=T.styleSheets,L=T.root;switch(O.name){case"NotSupportedError":P.length>0&&(L.adoptedStyleSheets=P);break;default:throw O}})({error:R,styleSheets:p,root:_})}}),[o,x,p]),Kr.createElement(Kr.Fragment,null,Kr.createElement(e.tag,qte({key:z,ref:x},w),(_||g)&&Kr.createElement(XKe.Provider,{value:_},g?Kr.createElement(Ute,{shadowroot:s,shadowrootmode:s},e.render({root:_,ssr:g,children:v})):Kr.createElement(Wte,{root:_},e.render({root:_,ssr:g,children:v})))))}));return r.propTypes={mode:hl.oneOf(["open","closed"]),delegatesFocus:hl.bool,styleSheets:hl.arrayOf(hl.instanceOf(globalThis.CSSStyleSheet)),ssr:hl.bool,children:hl.node},r}Ute.propTypes={children:hl.oneOfType([hl.string,hl.node])},Wte.propTypes={root:hl.object.isRequired,children:hl.node};var Mz=new Map;function KKe(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"core",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(o){return o.children};return new Proxy(e,{get:function(o,a){var i=VKe(a,{separator:"-"}),l="".concat(r,"-").concat(i);return Mz.has(l)||Mz.set(l,ZKe({tag:i,render:n})),Mz.get(l)}})}var QKe=KKe();const JKe=QKe.div;function eQe(e,r=!1){if(r===!1)return` :where([data-likec4-instance="${e}"]) { display: block; box-sizing: border-box; @@ -208,7 +207,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho ${a?"min-width: 80px;":"min-height: 80px;"} max-height: min(100%, var(--likec4-view-max-height, ${Math.ceil(o)}px)); } -`.trim()}function Hrt({children:e,theme:r=Ort,injectFontCss:n=!0,styleNonce:o,colorScheme:a,keepAspectRatio:i=!1,...s}){const l=Lrt(a),c=UG(),d=Frt(c,i),u=E.useRef(null),h=jrt(n,o),f=E.useCallback(()=>u.current??void 0,[u]),g=kt(()=>{if(Fx(o)){if(typeof o=="string")return o;if(typeof o=="function")return o()}return""});let b=Fx(o)?g():void 0;return y.jsxs(y.Fragment,{children:[y.jsx("style",{type:"text/css",nonce:b,dangerouslySetInnerHTML:{__html:d}}),y.jsx(Brt,{ssr:!1,...s,styleSheets:h,"data-likec4-instance":c,children:y.jsx("div",{ref:u,"data-mantine-color-scheme":l,className:"likec4-shadow-root",children:y.jsx(i9,{...a&&{forceColorScheme:a},defaultColorScheme:l,getRootElement:f,...!!b&&{getStyleNonce:g},cssVariablesSelector:".likec4-shadow-root",theme:r,children:y.jsx(NR,{children:e})})})})]})}const Vrt=be({cursor:"pointer","--mantine-cursor-pointer":"pointer","& :where(.likec4-diagram, .likec4-compound-node, .likec4-element-node)":{cursor:"pointer"}});function qrt({viewId:e,className:r,pannable:n=!1,zoomable:o=!1,keepAspectRatio:a=!0,colorScheme:i,injectFontCss:s=!0,controls:l=!1,background:c="transparent",browser:d=!0,showNavigationButtons:u=!1,enableNotations:h,enableFocusMode:f=!1,enableDynamicViewWalkthrough:g=!1,enableElementDetails:b=!1,enableRelationshipDetails:x=!1,enableRelationshipBrowser:w=x,reduceGraphics:k="auto",mantineTheme:C,styleNonce:_,style:T,reactFlowProps:A,renderNodes:R,children:D,...N}){const P=Jje(),[O,F]=E.useState("manual"),[L,U]=E.useState(null),M=kt(Y=>{Y&&Y!==L&&F("manual"),U(Y)}),V=kt(()=>{M(e)});if(!P)return y.jsx(DR,{children:"LikeC4Model not found. Make sure you provided LikeC4ModelProvider."});const I=P.findView(e)?.$layouted;if(!I)return y.jsx(brt,{viewId:e});if(I._stage!=="layouted")return y.jsxs(DR,{children:['LikeC4 View "$',e,'" is not layouted. Make sure you have LikeC4ModelProvider with layouted model.']});const H=L?P.findView(L):null,q=O==="manual"?H?.$layouted:H?.$view,Z=!!h&&(I.notation?.nodes?.length??0)>0,W=(q?.notation?.nodes?.length??0)>0,G=d!==!1,K=Hq(d)?{}:d,j=Ire(I,N.dynamicViewVariant);return y.jsx(Hrt,{injectFontCss:s,theme:C,colorScheme:i,styleNonce:_,keepAspectRatio:a?j:!1,className:et("likec4-view",r),style:T,children:y.jsxs(NR,{children:[y.jsx(Sne,{view:I,readonly:!0,pannable:n,zoomable:o,background:c,fitView:!0,fitViewPadding:Uw.default,enableNotations:Z,enableDynamicViewWalkthrough:g,showNavigationButtons:u,enableCompareWithLatest:!1,enableFocusMode:f,enableRelationshipDetails:x,enableElementDetails:b,enableRelationshipBrowser:w,enableElementTags:!1,controls:l,nodesDraggable:!1,reduceGraphics:k,className:et("likec4-static-view",G&&Vrt),enableSearch:!1,...G&&{onCanvasClick:V,onNodeClick:V},reactFlowProps:A,renderNodes:R,children:D,...N}),q&&y.jsxs(Ly,{openDelay:0,onClose:()=>M(null),children:[y.jsx(Sne,{view:q,pannable:!0,zoomable:!0,background:"dots",onNavigateTo:M,showNavigationButtons:!0,enableDynamicViewWalkthrough:!0,enableFocusMode:!0,enableRelationshipBrowser:!0,enableElementDetails:!0,enableRelationshipDetails:!0,enableSearch:!0,enableElementTags:!0,enableCompareWithLatest:!0,controls:!0,readonly:!0,nodesDraggable:!1,fitView:!0,...N,fitViewPadding:Uw.withControls,...K,enableNotations:W&&(K.enableNotations??!0),renderNodes:R,onLayoutTypeChange:F}),y.jsx(zr,{pos:"absolute",top:"4",right:"4",zIndex:"999",children:y.jsx(br,{variant:"default",color:"gray",onClick:Y=>{Y.stopPropagation(),M(null)},children:y.jsx(Rp,{})})})]})]})})}var Urt=e=>y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 128 128",...e,children:[y.jsx("path",{fill:"#343741",d:"M4 64c0 5.535.777 10.879 2.098 16H84c8.836 0 16-7.164 16-16s-7.164-16-16-16H6.098A63.7 63.7 0 0 0 4 64"}),y.jsx("path",{fill:"#fec514",d:"M111.695 30.648A61.5 61.5 0 0 0 117.922 24C106.188 9.379 88.199 0 68 0 42.715 0 20.957 14.71 10.574 36H98.04a20.12 20.12 0 0 0 13.652-5.352"}),y.jsx("path",{fill:"#00bfb3",d:"M98.04 92H10.577C20.961 113.29 42.715 128 68 128c20.2 0 38.188-9.383 49.922-24a61 61 0 0 0-6.227-6.648A20.13 20.13 0 0 0 98.04 92"})]}),Wrt=e=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 128 128",...e,children:y.jsxs("g",{fill:"#47848f",children:[y.jsx("path",{d:"M49.07 32.66c-14.37-2.62-25.72.12-30.25 8-3.38 5.85-2.41 13.61 2.34 21.9a1.47 1.47 0 0 0 2.56-1.47c-4.28-7.47-5.12-14.17-2.35-19 3.76-6.51 13.89-9 27.17-6.54a1.47 1.47 0 1 0 .53-2.9zM28.63 72.61a92.2 92.2 0 0 0 22 17.34c20.84 12 43 15.25 54 7.79a1.47 1.47 0 0 0-1.66-2.43C93.11 102 72 98.92 52.07 87.39a89.3 89.3 0 0 1-21.26-16.77 1.47 1.47 0 0 0-2.18 2z"}),y.jsx("path",{d:"M101.06 70.81c9.41-11.11 12.69-22.29 8.17-30.11-3.32-5.76-10.35-8.8-19.69-8.92a1.47 1.47 0 0 0 0 2.95c8.4.11 14.45 2.73 17.18 7.45 3.75 6.5.82 16.47-7.87 26.74a1.47 1.47 0 1 0 2.25 1.9zM76.89 33.15a92 92 0 0 0-26.25 10.4C29.13 56 15.09 74.29 17 87.57a1.47 1.47 0 0 0 3-.43C18.23 75.35 31.53 58 52.11 46.11A89 89 0 0 1 77.51 36a1.47 1.47 0 1 0-.62-2.88z"}),y.jsx("path",{d:"M42 96.78C47 110.51 55 119 64.05 119c6.6 0 12.7-4.5 17.46-12.42A1.47 1.47 0 1 0 79 105c-4.28 7.12-9.53 11-14.94 11-7.52 0-14.69-7.54-19.24-20.24a1.47 1.47 0 0 0-2.77 1zm45-2.69a92.5 92.5 0 0 0 3.91-27.3c0-24.41-8.54-45.44-20.71-50.85a1.47 1.47 0 0 0-1.2 2.7c10.85 4.82 19 24.78 19 48.15a89.6 89.6 0 0 1-3.78 26.42 1.47 1.47 0 0 0 2.81.88zm27.71-1.44a7.05 7.05 0 1 0-7.05 7.05 7.05 7.05 0 0 0 7.05-7.05m-2.95 0a4.1 4.1 0 1 1-4.1-4.1 4.1 4.1 0 0 1 4.1 4.1M20.34 99.7a7.05 7.05 0 1 0-7.05-7.05 7.05 7.05 0 0 0 7.05 7.05m0-2.95a4.1 4.1 0 1 1 4.1-4.1 4.1 4.1 0 0 1-4.1 4.1"}),y.jsx("path",{d:"M64.05 23.13A7.05 7.05 0 1 0 57 16.08a7.05 7.05 0 0 0 7.05 7.05m0-2.95a4.1 4.1 0 1 1 4.1-4.1 4.1 4.1 0 0 1-4.1 4.1m1.08 51.59A5.1 5.1 0 1 1 69 65.71a5.1 5.1 0 0 1-3.87 6.06"})]})}),Yrt=e=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 128 128",...e,children:y.jsx("path",{fill:"#F34F29",d:"M124.737 58.378 69.621 3.264c-3.172-3.174-8.32-3.174-11.497 0L46.68 14.71l14.518 14.518c3.375-1.139 7.243-.375 9.932 2.314 2.703 2.706 3.461 6.607 2.294 9.993l13.992 13.993c3.385-1.167 7.292-.413 9.994 2.295 3.78 3.777 3.78 9.9 0 13.679a9.673 9.673 0 0 1-13.683 0 9.68 9.68 0 0 1-2.105-10.521L68.574 47.933l-.002 34.341a9.7 9.7 0 0 1 2.559 1.828c3.778 3.777 3.778 9.898 0 13.683-3.779 3.777-9.904 3.777-13.679 0-3.778-3.784-3.778-9.905 0-13.683a9.7 9.7 0 0 1 3.167-2.11V47.333a9.6 9.6 0 0 1-3.167-2.111c-2.862-2.86-3.551-7.06-2.083-10.576L41.056 20.333 3.264 58.123a8.133 8.133 0 0 0 0 11.5l55.117 55.114c3.174 3.174 8.32 3.174 11.499 0l54.858-54.858a8.135 8.135 0 0 0-.001-11.501"})}),Grt=e=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 128 128",...e,children:y.jsxs("g",{fill:"#181616",children:[y.jsx("path",{fillRule:"evenodd",d:"M64 5.103c-33.347 0-60.388 27.035-60.388 60.388 0 26.682 17.303 49.317 41.297 57.303 3.017.56 4.125-1.31 4.125-2.905 0-1.44-.056-6.197-.082-11.243-16.8 3.653-20.345-7.125-20.345-7.125-2.747-6.98-6.705-8.836-6.705-8.836-5.48-3.748.413-3.67.413-3.67 6.063.425 9.257 6.223 9.257 6.223 5.386 9.23 14.127 6.562 17.573 5.02.542-3.903 2.107-6.568 3.834-8.076-13.413-1.525-27.514-6.704-27.514-29.843 0-6.593 2.36-11.98 6.223-16.21-.628-1.52-2.695-7.662.584-15.98 0 0 5.07-1.623 16.61 6.19C53.7 35 58.867 34.327 64 34.304c5.13.023 10.3.694 15.127 2.033 11.526-7.813 16.59-6.19 16.59-6.19 3.287 8.317 1.22 14.46.593 15.98 3.872 4.23 6.215 9.617 6.215 16.21 0 23.194-14.127 28.3-27.574 29.796 2.167 1.874 4.097 5.55 4.097 11.183 0 8.08-.07 14.583-.07 16.572 0 1.607 1.088 3.49 4.148 2.897 23.98-7.994 41.263-30.622 41.263-57.294C124.388 32.14 97.35 5.104 64 5.104z",clipRule:"evenodd"}),y.jsx("path",{d:"M26.484 91.806c-.133.3-.605.39-1.035.185-.44-.196-.685-.605-.543-.906.13-.31.603-.395 1.04-.188.44.197.69.61.537.91zm2.446 2.729c-.287.267-.85.143-1.232-.28-.396-.42-.47-.983-.177-1.254.298-.266.844-.14 1.24.28.394.426.472.984.17 1.255zm2.382 3.477c-.37.258-.976.017-1.35-.52-.37-.538-.37-1.183.01-1.44.373-.258.97-.025 1.35.507.368.545.368 1.19-.01 1.452zm3.261 3.361c-.33.365-1.036.267-1.552-.23-.527-.487-.674-1.18-.343-1.544.336-.366 1.045-.264 1.564.23.527.486.686 1.18.333 1.543zm4.5 1.951c-.147.473-.825.688-1.51.486-.683-.207-1.13-.76-.99-1.238.14-.477.823-.7 1.512-.485.683.206 1.13.756.988 1.237m4.943.361c.017.498-.563.91-1.28.92-.723.017-1.308-.387-1.315-.877 0-.503.568-.91 1.29-.924.717-.013 1.306.387 1.306.88zm4.598-.782c.086.485-.413.984-1.126 1.117-.7.13-1.35-.172-1.44-.653-.086-.498.422-.997 1.122-1.126.714-.123 1.354.17 1.444.663zm0 0"})]})}),Xrt=e=>y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",viewBox:"0 0 128 128",...e,children:[y.jsx("defs",{children:y.jsx("path",{id:"Go_svg__a",d:"M18.8 1h90.5v126H18.8z"})}),y.jsx("clipPath",{id:"Go_svg__b",children:y.jsx("use",{xlinkHref:"#Go_svg__a",overflow:"visible"})}),y.jsx("path",{fill:"#F6D2A2",fillRule:"evenodd",d:"M21.1 68.7c.2 3.5 3.7 1.9 5.3.8 1.5-1.1 2-.2 2.1-2.3.1-1.4.2-2.7.2-4.1-2.3-.2-4.8.3-6.7 1.7-.9.7-2.8 3-.9 3.9",clipPath:"url(#Go_svg__b)",clipRule:"evenodd"}),y.jsx("path",{d:"M23 71.2c-.7 0-2-.3-2.2-2.3-.6-.4-.8-.9-.8-1.2-.1-1.2 1.2-2.6 1.9-3.1 1.6-1.2 3.7-1.8 5.9-1.8h1.3v.3c.1 1.1 0 2.2-.1 3.2 0 .3 0 .6-.1.9-.1 1.5-.4 1.7-1.1 2-.3.1-.6.2-1.1.6-.5.3-2.2 1.4-3.7 1.4m4.8-7.8c-2.1 0-4 .6-5.5 1.7-.7.5-1.7 1.7-1.6 2.5 0 .3.2.6.6.8l.2.1v.2c.1 1.6.9 1.8 1.5 1.8 1 0 2.4-.7 3.3-1.3.6-.4 1-.5 1.3-.6.5-.2.6-.2.7-1.4 0-.3 0-.6.1-.9.1-.9.1-1.9.1-2.8-.3-.1-.5-.1-.7-.1",clipPath:"url(#Go_svg__b)"}),y.jsx("path",{fill:"#C6B198",fillRule:"evenodd",d:"M21.1 68.7c.5-.2 1.1-.3 1.4-.8",clipPath:"url(#Go_svg__b)",clipRule:"evenodd"}),y.jsx("path",{d:"M21.1 69c-.1 0-.3-.1-.3-.2-.1-.2 0-.4.2-.4.1 0 .2-.1.2-.1.4-.2.8-.3 1-.6.1-.1.3-.2.5-.1.1.1.2.3.1.5-.4.5-.9.7-1.3.8l-.2.1z",clipPath:"url(#Go_svg__b)"}),y.jsx("path",{fill:"#6AD7E5",fillRule:"evenodd",d:"M29.3 26.4c-13.6-3.8-3.5-21.1 7.4-14z",clipPath:"url(#Go_svg__b)",clipRule:"evenodd"}),y.jsx("path",{d:"m29.5 26.8-.3-.1c-7-2-6.9-7-6.7-8.5.5-3.8 4.1-7.8 8.9-7.8 1.9 0 3.7.6 5.5 1.8l.3.2zm1.9-15.7c-4.5 0-7.8 3.7-8.3 7.2-.5 3.6 1.7 6.4 6 7.7l7.1-13.5c-1.5-.9-3.1-1.4-4.8-1.4",clipPath:"url(#Go_svg__b)"}),y.jsx("path",{fill:"#6AD7E5",fillRule:"evenodd",d:"M89.6 11.1c10.7-7.5 20.5 9.5 8 13.8z",clipPath:"url(#Go_svg__b)",clipRule:"evenodd"}),y.jsx("path",{d:"M97.5 25.3 89.2 11l.3-.2c1.9-1.3 3.8-2 5.7-2 4.6 0 7.9 3.8 8.6 7.5.3 1.5.6 6.6-6 8.8zm-7.4-14 7.7 13.3c3.9-1.4 5.9-4.4 5.3-8-.6-3.4-3.7-6.9-7.9-6.9-1.7-.1-3.4.4-5.1 1.6",clipPath:"url(#Go_svg__b)"}),y.jsx("path",{fill:"#F6D2A2",fillRule:"evenodd",d:"M92 112.3c2.7 1.7 7.7 6.8 3.6 9.3-3.9 3.6-6.1-4-9.6-5 1.5-2 3.4-3.9 6-4.3",clipPath:"url(#Go_svg__b)",clipRule:"evenodd"}),y.jsx("path",{d:"M93.5 122.9c-1.6 0-3-1.6-4.2-3.1-1.1-1.2-2.2-2.5-3.4-2.9l-.5-.1.3-.4c1.2-1.7 3.2-3.9 6.2-4.4h.1l.1.1c1.7 1.1 5.4 4.2 5.3 7.1 0 1.1-.6 2-1.7 2.7-.7.7-1.4 1-2.2 1m-7-6.5c1.2.5 2.2 1.8 3.2 2.9 1.2 1.5 2.4 2.8 3.7 2.8q.9 0 1.8-.9h.1c.9-.6 1.4-1.3 1.4-2.2 0-2.3-2.9-5.2-4.9-6.5-1.8.5-3.6 1.7-5.3 3.9m9.1 5.5c-.1 0-.2-.1-.3-.2-.2-.4-.4-.9-.5-1.3-.3-.8-.6-1.6-1.2-2.2-.1-.1-.1-.3 0-.5.1-.1.3-.1.5 0 .7.7 1.1 1.6 1.4 2.5l.5 1.2c.1.2 0 .4-.1.5z",clipPath:"url(#Go_svg__b)"}),y.jsx("path",{fill:"#F6D2A2",fillRule:"evenodd",d:"M43.2 118.1c-3.2.5-5 3.4-7.7 4.9-2.5 1.5-3.5-.5-3.7-.9-.4-.2-.4.2-1-.4-2.3-3.7 2.4-6.4 4.9-8.2 3.5-.8 5.7 2.2 7.5 4.6",clipPath:"url(#Go_svg__b)",clipRule:"evenodd"}),y.jsx("path",{d:"M33.8 123.8c-1.3 0-2-1.1-2.2-1.5h-.1c-.3 0-.5-.1-.9-.5v-.1c-2.2-3.5 1.6-6.2 4.1-8l.9-.6h.2c.4-.1.7-.1 1.1-.1 3 0 4.9 2.6 6.5 4.7l.5.7-.6.1c-1.9.3-3.3 1.5-4.7 2.7-.9.8-1.8 1.5-2.8 2.1-.8.3-1.4.5-2 .5m-2.2-2.1c.1 0 .2 0 .4.1h.1l.1.1c.2.3.7 1.2 1.7 1.2.5 0 1-.2 1.5-.5 1-.5 1.9-1.3 2.7-2 1.3-1.1 2.7-2.3 4.5-2.8-1.5-2-3.3-4.2-5.8-4.2-.3 0-.6 0-.9.1l-.8.6c-2.6 1.8-5.8 4.1-3.9 7.1.1.2.2.3.4.3m.2.7c-.2 0-.4-.2-.3-.4.1-1 .6-1.7 1.1-2.5.3-.4.5-.8.7-1.2.1-.2.3-.2.4-.2.2.1.2.3.2.4-.2.5-.5.9-.8 1.3-.5.7-.9 1.3-1 2.1 0 .4-.1.5-.3.5",clipPath:"url(#Go_svg__b)"}),y.jsx("path",{fillRule:"evenodd",d:"M29.9 21.7c-1.8-.9-3.1-2.2-2-4.3 1-1.9 2.9-1.7 4.7-.8zm64.9-1.8c1.8-.9 3.1-2.2 2-4.3-1-1.9-2.9-1.7-4.7-.8z",clipPath:"url(#Go_svg__b)",clipRule:"evenodd"}),y.jsx("path",{fill:"#F6D2A2",fillRule:"evenodd",d:"M107.1 68.2c-.2 3.5-3.7 1.9-5.3.8-1.5-1.1-2-.2-2.1-2.3-.1-1.4-.2-2.7-.2-4.1 2.3-.2 4.8.3 6.7 1.7 1 .8 2.8 3 .9 3.9",clipPath:"url(#Go_svg__b)",clipRule:"evenodd"}),y.jsx("path",{d:"M105.3 70.7c-1.5 0-3.2-1.1-3.7-1.4s-.8-.5-1.1-.6c-.8-.3-1-.5-1.1-2 0-.3 0-.6-.1-.9-.1-1-.2-2.1-.1-3.2v-.3h1.3c2.2 0 4.3.6 5.9 1.8.7.5 2 1.9 1.9 3.1 0 .4-.2.9-.8 1.2-.2 2-1.5 2.3-2.2 2.3M99.8 63c0 .9 0 1.9.1 2.8 0 .3 0 .6.1.9.1 1.2.2 1.2.7 1.4.3.1.7.3 1.3.6.9.6 2.3 1.3 3.3 1.3.6 0 1.4-.2 1.5-1.8V68l.2-.1c.4-.2.6-.4.6-.8.1-.8-.9-2-1.6-2.5-1.5-1.1-3.5-1.7-5.5-1.7-.2.1-.4.1-.7.1",clipPath:"url(#Go_svg__b)"}),y.jsx("path",{fill:"#C6B198",fillRule:"evenodd",d:"M107.1 68.2c-.5-.2-1.1-.3-1.4-.8",clipPath:"url(#Go_svg__b)",clipRule:"evenodd"}),y.jsx("path",{d:"M107.1 68.6h-.1l-.2-.1c-.5-.2-1-.3-1.3-.8-.1-.1-.1-.4.1-.5.1-.1.4-.1.5.1.2.3.6.4 1 .6.1 0 .2.1.2.1.2.1.3.3.2.4s-.3.2-.4.2",clipPath:"url(#Go_svg__b)"}),y.jsx("path",{fill:"#6AD7E5",fillRule:"evenodd",d:"M62.8 4c13.6 0 26.3 1.9 33 15 6 14.6 3.8 30.4 4.8 45.9.8 13.3 2.5 28.6-3.6 40.9-6.5 12.9-22.7 16.2-36 15.7-10.5-.4-23.1-3.8-29.1-13.4-6.9-11.2-3.7-27.9-3.2-40.4.6-14.8-4-29.7.9-44.1C34.5 8.5 48.1 5.1 62.8 4",clipPath:"url(#Go_svg__b)",clipRule:"evenodd"}),y.jsx("path",{d:"M63.3 121.9h-2.5c-4.1-.1-10.3-.8-16.4-3.3-5.9-2.4-10.2-5.8-13-10.3-5.6-9.1-4.6-21.6-3.7-32.7.2-2.8.4-5.4.5-7.9.2-5.2-.2-10.6-.7-15.7-.8-9.4-1.6-19.1 1.5-28.5 2.4-7 6.7-12 13.2-15.2 5.1-2.5 11.4-3.9 20.4-4.6C76 3.6 89.3 5.5 96 18.8c4.4 10.7 4.4 22.2 4.5 33.3 0 4.2 0 8.5.3 12.7.1 1.3.2 2.6.2 3.9.8 12.2 1.7 26-3.9 37.2-2.8 5.7-7.7 9.9-14.4 12.6-5.4 2.2-12.2 3.4-19.4 3.4M62.8 4.3c-14.1 1.1-27.9 4.2-33 19.4-3.1 9.3-2.3 18.9-1.5 28.2.4 5.2.9 10.5.7 15.8-.1 2.5-.3 5.1-.5 7.9-.9 11-1.9 23.4 3.6 32.3 2.3 3.7 9.7 12.5 28.8 13.2h2.5c22.1 0 30.3-9.8 33.3-15.6 5.5-11 4.6-24.8 3.9-36.9-.1-1.3-.2-2.6-.2-3.9-.2-4.2-.3-8.5-.3-12.7-.1-11-.1-22.5-4.4-33.1C92.7 13 88.2 9 82 6.7c-6.4-2.1-13.6-2.4-19.2-2.4",clipPath:"url(#Go_svg__b)"}),y.jsx("path",{fill:"#fff",fillRule:"evenodd",d:"M65.2 22.2c2.4 14.2 25.6 10.4 22.3-3.9-3-12.8-23.1-9.2-22.3 3.9",clipPath:"url(#Go_svg__b)",clipRule:"evenodd"}),y.jsx("path",{d:"M76.2 31.5c-4.5 0-10.2-2.4-11.4-9.2-.2-3.2.8-6.1 2.9-8.3 2.3-2.5 5.8-3.9 9.4-3.9 4.2 0 9.2 2.2 10.6 8.3.8 3.4.2 6.4-1.7 8.8-2.1 2.6-5.8 4.3-9.8 4.3m-10.7-9.3q.75 4.2 3.9 6.6c1.8 1.4 4.3 2.1 6.8 2.1 3.7 0 7.3-1.6 9.3-4.1 1.8-2.2 2.3-5.1 1.6-8.3-1.3-5.7-6-7.7-10-7.7-3.4 0-6.7 1.4-8.9 3.7-1.9 2-2.9 4.7-2.7 7.7",clipPath:"url(#Go_svg__b)"}),y.jsx("path",{fill:"#fff",fillRule:"evenodd",d:"M37.5 24.5c3.2 12.3 22.9 9.2 22.2-3.2-.9-14.8-25.3-12-22.2 3.2",clipPath:"url(#Go_svg__b)",clipRule:"evenodd"}),y.jsx("path",{d:"M48 32.7c-4.3 0-9.3-2.1-10.9-8.1-.7-3.5 0-6.7 2-9.1 2.2-2.7 5.8-4.3 9.7-4.3 5.2 0 10.7 3.1 11.1 10.1.2 2.9-.7 5.5-2.7 7.6-2.1 2.3-5.6 3.8-9.2 3.8m.8-20.8c-3.7 0-7.1 1.5-9.2 4-1.9 2.3-2.5 5.2-1.8 8.5C39.2 30 44 32 48 32c3.4 0 6.7-1.3 8.8-3.6 1.8-1.9 2.7-4.4 2.5-7.1-.2-4.3-3.1-9.4-10.5-9.4",clipPath:"url(#Go_svg__b)"}),y.jsx("path",{fill:"#fff",fillRule:"evenodd",d:"M68 39.2c0 1.8.4 3.9.1 5.9-.5.9-1.4 1-2.2 1.3-1.1-.2-2-.9-2.5-1.9-.3-2.2.1-4.4.2-6.6z",clipPath:"url(#Go_svg__b)",clipRule:"evenodd"}),y.jsx("path",{d:"M65.9 46.8c-1.3-.2-2.3-1-2.8-2.1-.2-1.6-.1-3.1 0-4.6.1-.7.1-1.4.1-2.1v-.4l5.1 1.6v.2c0 .6.1 1.2.1 1.9.1 1.3.2 2.7 0 4v.1c-.4.8-1.1 1-1.8 1.3-.2-.1-.4 0-.7.1m-2.2-2.4c.4.9 1.2 1.5 2.1 1.7.2-.1.4-.1.5-.2.6-.2 1.1-.4 1.4-.9.2-1.2.1-2.5 0-3.8 0-.6-.1-1.2-.1-1.7l-3.8-1.2c0 .6-.1 1.2-.1 1.7-.1 1.6-.2 3 0 4.4",clipPath:"url(#Go_svg__b)"}),y.jsx("path",{fillRule:"evenodd",d:"M46.3 22.5c0 2-1.5 3.6-3.3 3.6s-3.3-1.6-3.3-3.6 1.5-3.6 3.3-3.6 3.3 1.6 3.3 3.6",clipPath:"url(#Go_svg__b)",clipRule:"evenodd"}),y.jsx("path",{fill:"#fff",fillRule:"evenodd",d:"M45.2 23.3c0 .5-.4.9-.8.9s-.8-.4-.8-.9.4-.9.8-.9c.5 0 .8.4.8.9",clipPath:"url(#Go_svg__b)",clipRule:"evenodd"}),y.jsx("path",{fillRule:"evenodd",d:"M74.2 21.6c0 2-1.5 3.6-3.3 3.6s-3.3-1.6-3.3-3.6 1.5-3.6 3.3-3.6 3.3 1.6 3.3 3.6",clipPath:"url(#Go_svg__b)",clipRule:"evenodd"}),y.jsx("path",{fill:"#fff",fillRule:"evenodd",d:"M73.2 22.4c0 .5-.3.9-.8.9-.4 0-.8-.4-.8-.9s.3-.9.8-.9c.4 0 .8.4.8.9M58.4 39c-1.5 3.5.8 10.6 4.8 5.4-.3-2.2.1-4.4.2-6.6z",clipPath:"url(#Go_svg__b)",clipRule:"evenodd"}),y.jsx("path",{d:"M60.5 46.6c-.7 0-1.4-.4-1.9-1.2-1.1-1.6-1.3-4.6-.5-6.5l.1-.2 5.5-1.4v.4l-.1 2.2c-.1 1.5-.2 2.9 0 4.4v.1l-.1.1q-1.5 2.1-3 2.1m-1.8-7.3c-.6 1.7-.4 4.4.5 5.7.4.6.8.9 1.3.9.7 0 1.5-.6 2.3-1.6-.2-1.5-.1-3 .1-4.4l.1-1.7z",clipPath:"url(#Go_svg__b)"}),y.jsx("path",{fill:"#F6D2A2",fillRule:"evenodd",d:"M58.9 32.2c-2.7.2-4.9 3.5-3.5 6 1.9 3.4 6-.3 8.6 0 3 .1 5.4 3.2 7.8.6 2.7-2.9-1.2-5.7-4.1-7z",clipPath:"url(#Go_svg__b)",clipRule:"evenodd"}),y.jsx("path",{fill:"#231F20",d:"M69.7 40.2c-.9 0-1.8-.4-2.7-.8s-1.9-.8-3-.8h-.3c-.8 0-1.7.3-2.7.7-1.1.4-2.2.7-3.2.7-1.2 0-2.1-.5-2.7-1.6-.7-1.2-.6-2.6.1-3.9.8-1.5 2.2-2.4 3.7-2.6l8.9-.4h.1c2.2.9 4.7 2.6 5.2 4.6.2 1-.1 2-.9 2.9s-1.6 1.2-2.5 1.2M64.1 38c1.1 0 2.2.5 3.2.9.9.4 1.7.7 2.5.7.7 0 1.3-.3 1.9-.9.7-.7.9-1.5.8-2.3-.4-1.7-2.8-3.3-4.7-4.1l-8.7.4c-1.3.1-2.5 1-3.2 2.2-.6 1.1-.6 2.3-.1 3.3.5.9 1.1 1.3 2.1 1.3.9 0 1.9-.4 2.9-.7 1.1-.4 2-.7 3-.7 0-.2.1-.2.3-.1",clipPath:"url(#Go_svg__b)"}),y.jsx("path",{fillRule:"evenodd",d:"M58.6 32.1c-.2-4.7 8.8-5.3 9.8-1.4 1.1 4-9.4 4.9-9.8 1.4",clipPath:"url(#Go_svg__b)",clipRule:"evenodd"})]}),Krt=e=>y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 128 128",...e,children:[y.jsxs("linearGradient",{id:"Grafana_svg__a",x1:45.842,x2:45.842,y1:89.57,y2:8.802,gradientTransform:"translate(-.23 28.462)scale(1.4011)",gradientUnits:"userSpaceOnUse",children:[y.jsx("stop",{offset:0,stopColor:"#fcee1f"}),y.jsx("stop",{offset:1,stopColor:"#f15b2a"})]}),y.jsx("path",{fill:"url(#Grafana_svg__a)",d:"M120.8 56.9q-.3-3.15-1.2-7.2c-.9-4.05-1.8-5.5-3.2-8.6-1.5-3-3.4-6.2-5.9-9.1-1-1.2-2.1-2.3-3.2-3.5 1.8-6.9-2.1-13-2.1-13-6.7-.4-10.9 2.1-12.4 3.2-.2-.1-.6-.2-.8-.3-1.1-.4-2.3-.9-3.5-1.3-1.2-.3-2.4-.8-3.6-1-1.2-.3-2.5-.6-3.9-.8-.2 0-.4-.1-.7-.1C77.5 6 69.1 2 69.1 2c-9.6 6.2-11.4 14.4-11.4 14.4s0 .2-.1.4c-.6.1-1 .3-1.5.4-.7.2-1.4.4-2.1.8l-2.1.9c-1.4.7-2.8 1.3-4.2 2.1-1.3.8-2.6 1.5-3.9 2.4-.2-.1-.3-.2-.3-.2-12.9-5-24.3 1-24.3 1-1 13.8 5.2 22.3 6.4 23.9-.3.9-.6 1.7-.9 2.5q-1.5 4.65-2.1 9.6c-.1.4-.1 1-.2 1.4C10.5 67.5 7 79.6 7 79.6 16.9 91 28.5 91.7 28.5 91.7c1.4 2.6 3.2 5.2 5.1 7.5.8 1 1.7 1.9 2.5 2.9-3.6 10.3.6 19 .6 19 11.1.4 18.4-4.8 19.9-6.1 1.1.3 2.2.7 3.3 1 3.4.9 6.9 1.4 10.3 1.5h4.5c5.2 7.5 14.4 8.5 14.4 8.5 6.5-6.9 6.9-13.6 6.9-15.2v-.6c1.3-1 2.6-2 4-3.1 2.6-2.3 4.8-5.1 6.8-7.9.2-.2.3-.6.6-.8 7.4.4 12.5-4.6 12.5-4.6-1.2-7.7-5.6-11.4-6.5-12.1l-.1-.1-.1-.1-.1-.1c0-.4.1-.9.1-1.4.1-.9.1-1.7.1-2.5v-3.3c0-.2 0-.4-.1-.7l-.1-.7-.1-.7c-.1-.9-.3-1.7-.4-2.5-.8-3.3-2.1-6.5-3.7-9.2-1.8-2.9-3.9-5.3-6.3-7.5-2.4-2.1-5.1-3.9-7.9-5.1-2.9-1.3-5.7-2.1-8.7-2.4-1.4-.2-3-.2-4.4-.2h-2.3c-.8.1-1.5.2-2.2.3-3 .6-5.7 1.7-8.1 3.1s-4.5 3.3-6.3 5.4-3.1 4.3-4 6.7c-.9 2.3-1.4 4.8-1.5 7.2v2.6c0 .3 0 .6.1.9.1 1.2.3 2.3.7 3.4.7 2.2 1.7 4.2 3 5.9s2.8 3.1 4.4 4.2c1.7 1.1 3.3 1.9 5.1 2.4s3.4.8 5 .7h2.3c.2 0 .4-.1.6-.1s.3-.1.6-.1c.3-.1.8-.2 1.1-.3.7-.2 1.3-.6 2-.8.7-.3 1.2-.7 1.7-1 .1-.1.3-.2.4-.3.6-.4.7-1.2.2-1.8-.4-.4-1.1-.6-1.7-.3-.1.1-.2.1-.4.2-.4.2-1 .4-1.4.6-.6.1-1.1.3-1.7.4-.3 0-.6.1-.9.1h-1.8s-.1 0 0 0h-.7c-.1 0-.3 0-.4-.1-1.2-.2-2.5-.6-3.7-1.1-1.2-.6-2.4-1.3-3.4-2.3-1.1-1-2-2.1-2.8-3.4s-1.2-2.8-1.4-4.2c-.1-.8-.2-1.5-.1-2.3v-.7c0 .1 0 0 0 0V70c0-.4.1-.8.2-1.2.6-3.3 2.2-6.5 4.7-8.9.7-.7 1.3-1.2 2.1-1.7.8-.6 1.5-1 2.3-1.3s1.7-.7 2.5-.9c.9-.2 1.8-.4 2.6-.4.4 0 .9-.1 1.3-.1h.8c.1 0 0 0 0 0h.4c1 .1 2 .2 2.9.4 1.9.4 3.7 1.1 5.5 2.1 3.5 2 6.5 5 8.3 8.6.9 1.8 1.5 3.7 1.9 5.8.1.6.1 1 .2 1.5v2.7c0 .6-.1 1.1-.1 1.7-.1.6-.1 1.1-.2 1.7s-.2 1.1-.3 1.7c-.2 1.1-.7 2.1-1 3.2-.8 2.1-1.9 4.1-3.2 5.8-2.6 3.6-6.3 6.6-10.3 8.5-2.1.9-4.2 1.7-6.4 2q-1.65.3-3.3.3h-1.6c.1 0 0 0 0 0h-.1c-.6 0-1.2 0-1.8-.1-2.4-.2-4.7-.7-7-1.3-2.3-.7-4.5-1.5-6.6-2.6-4.2-2.2-7.9-5.4-10.9-9-1.4-1.9-2.8-3.9-3.9-5.9s-1.9-4.3-2.5-6.5c-.7-2.2-1-4.5-1.1-6.8v-3.5c0-1.1.1-2.3.3-3.5.1-1.2.3-2.3.6-3.5.2-1.2.6-2.3.9-3.5.7-2.3 1.4-4.5 2.4-6.6 2-4.2 4.5-7.9 7.5-10.9.8-.8 1.5-1.4 2.4-2.1.3-.3 1.1-1 2-1.5s1.8-1.1 2.8-1.5c.4-.2.9-.4 1.4-.7.2-.1.4-.2.8-.3.2-.1.4-.2.8-.3 1-.4 2-.8 3-1.1.2-.1.6-.1.8-.2s.6-.1.8-.2c.6-.1 1-.2 1.5-.4.2-.1.6-.1.8-.2.2 0 .6-.1.8-.1s.6-.1.8-.1l.4-.1.4-.1c.2 0 .6-.1.8-.1.3 0 .6-.1.9-.1.2 0 .7-.1.9-.1s.3 0 .6-.1h.7c.3 0 .6 0 .9-.1h.4s.1 0 0 0h4.1c2 .1 4 .3 5.8.7 3.7.7 7.4 1.9 10.6 3.5 3.2 1.5 6.2 3.5 8.6 5.6.1.1.3.2.4.4.1.1.3.2.4.4.3.2.6.6.9.8s.6.6.9.8c.2.3.6.6.8.9 1.1 1.1 2.1 2.3 3 3.4 1.8 2.3 3.2 4.6 4.3 6.8.1.1.1.2.2.4.1.1.1.2.2.4s.2.6.4.8c.1.2.2.6.3.8s.2.6.3.8c.4 1 .8 2 1.1 3 .6 1.5.9 2.9 1.2 4 .1.4.6.8 1 .8.6 0 .9-.4.9-1-.3-1.7-.3-3.1-.4-4.8"})]}),Zrt=e=>y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 128 128",...e,children:[y.jsx("path",{fill:"#0074BD",d:"M47.617 98.12s-4.767 2.774 3.397 3.71c9.892 1.13 14.947.968 25.845-1.092 0 0 2.871 1.795 6.873 3.351-24.439 10.47-55.308-.607-36.115-5.969m-2.988-13.665s-5.348 3.959 2.823 4.805c10.567 1.091 18.91 1.18 33.354-1.6 0 0 1.993 2.025 5.132 3.131-29.542 8.64-62.446.68-41.309-6.336"}),y.jsx("path",{fill:"#EA2D2E",d:"M69.802 61.271c6.025 6.935-1.58 13.17-1.58 13.17s15.289-7.891 8.269-17.777c-6.559-9.215-11.587-13.792 15.635-29.58 0 .001-42.731 10.67-22.324 34.187"}),y.jsx("path",{fill:"#0074BD",d:"M102.123 108.229s3.529 2.91-3.888 5.159c-14.102 4.272-58.706 5.56-71.094.171-4.451-1.938 3.899-4.625 6.526-5.192 2.739-.593 4.303-.485 4.303-.485-4.953-3.487-32.013 6.85-13.743 9.815 49.821 8.076 90.817-3.637 77.896-9.468M49.912 70.294s-22.686 5.389-8.033 7.348c6.188.828 18.518.638 30.011-.326 9.39-.789 18.813-2.474 18.813-2.474s-3.308 1.419-5.704 3.053c-23.042 6.061-67.544 3.238-54.731-2.958 10.832-5.239 19.644-4.643 19.644-4.643m40.697 22.747c23.421-12.167 12.591-23.86 5.032-22.285-1.848.385-2.677.72-2.677.72s.688-1.079 2-1.543c14.953-5.255 26.451 15.503-4.823 23.725 0-.002.359-.327.468-.617"}),y.jsx("path",{fill:"#EA2D2E",d:"M76.491 1.587S89.459 14.563 64.188 34.51c-20.266 16.006-4.621 25.13-.007 35.559-11.831-10.673-20.509-20.07-14.688-28.815C58.041 28.42 81.722 22.195 76.491 1.587"}),y.jsx("path",{fill:"#0074BD",d:"M52.214 126.021c22.476 1.437 57-.8 57.817-11.436 0 0-1.571 4.032-18.577 7.231-19.186 3.612-42.854 3.191-56.887.874 0 .001 2.875 2.381 17.647 3.331"})]}),Qrt=e=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 128 128",...e,children:y.jsxs("g",{fill:"#486bb3",children:[y.jsx("path",{d:"M56.484 55.098c.37.27.82.43 1.31.43 1.2 0 2.18-.95 2.23-2.13l.05-.03.75-13.26c-.9.11-1.8.26-2.7.46-4.93 1.12-9.2 3.55-12.54 6.83l10.87 7.71zm-1.45 19.43a2.22 2.22 0 0 0-2.58-1.69l-.02-.03-13.05 2.21a26.15 26.15 0 0 0 10.51 13.15l5.06-12.22-.04-.05c.17-.42.23-.89.12-1.37m-4.34-9.41c.44-.12.85-.38 1.16-.76.75-.94.62-2.29-.28-3.07l.01-.05-9.93-8.88a26.07 26.07 0 0 0-3.7 16.48l12.73-3.67zm9.64 3.9 3.66 1.76 3.66-1.75.9-3.95-2.53-3.16h-4.06l-2.54 3.16zm7.6-15.67c.02.46.18.91.49 1.29.75.94 2.1 1.11 3.06.41l.04.02 10.8-7.66c-4.08-3.99-9.4-6.6-15.15-7.3l.75 13.24zm7.58 19.43c-.17-.03-.34-.05-.51-.04-.29.01-.58.09-.85.22a2.23 2.23 0 0 0-1.08 2.89l-.02.02 5.11 12.34c4.93-3.14 8.61-7.83 10.54-13.24l-13.16-2.23zm-9.56 6.54a2.25 2.25 0 0 0-2.04-1.17c-.77.03-1.5.46-1.89 1.18h-.01l-6.42 11.6a26.16 26.16 0 0 0 14.27.73c.88-.2 1.74-.44 2.57-.72l-6.43-11.63h-.05z"}),y.jsx("path",{d:"m124.544 76.788-10.44-45.33a8.01 8.01 0 0 0-4.37-5.43l-42.24-20.18a8.16 8.16 0 0 0-3.92-.78 8.2 8.2 0 0 0-3.1.78l-42.24 20.18a8.06 8.06 0 0 0-4.37 5.43l-10.41 45.34a7.92 7.92 0 0 0 1.1 6.14c.14.22.3.43.46.64l29.24 36.35a8.09 8.09 0 0 0 6.32 3.01l46.89-.01c2.46 0 4.78-1.11 6.32-3.01l29.23-36.36a7.98 7.98 0 0 0 1.53-6.77m-16.07-.55c-.31 1.35-1.76 2.17-3.26 1.85-.01 0-.03 0-.04-.01-.02 0-.03-.01-.05-.02-.21-.05-.47-.09-.65-.14-.86-.23-1.49-.58-2.27-.88-1.67-.6-3.06-1.1-4.41-1.3-.69-.05-1.04.27-1.42.52-.18-.04-.75-.14-1.08-.19-2.42 7.61-7.58 14.21-14.57 18.33.12.29.33.91.42 1.02-.16.43-.4.83-.19 1.49.49 1.27 1.28 2.52 2.24 4.01.46.69.94 1.22 1.36 2.02.1.19.23.48.33.68.65 1.39.17 2.99-1.08 3.59-1.26.61-2.82-.03-3.5-1.43-.1-.2-.23-.46-.31-.65-.36-.82-.48-1.52-.73-2.32-.57-1.68-1.05-3.07-1.73-4.25-.39-.57-.86-.64-1.29-.78-.08-.14-.38-.69-.54-.97-1.4.53-2.84.97-4.34 1.31-6.56 1.49-13.13.89-18.99-1.37l-.57 1.04c-.43.11-.84.23-1.09.53-.92 1.1-1.29 2.86-1.96 4.54-.25.79-.37 1.5-.73 2.32-.08.19-.22.45-.31.64v.01l-.01.01c-.67 1.39-2.23 2.03-3.49 1.43-1.25-.6-1.72-2.2-1.08-3.59.1-.2.22-.49.32-.68.42-.79.89-1.33 1.36-2.02.96-1.5 1.8-2.84 2.29-4.11.12-.42-.06-1-.22-1.43l.46-1.1c-6.73-3.99-12.04-10.34-14.58-18.21l-1.1.19c-.3-.17-.89-.56-1.45-.51-1.35.2-2.74.7-4.41 1.3-.78.3-1.4.64-2.27.87-.18.05-.44.1-.65.15-.02 0-.03.01-.05.02-.01 0-.03 0-.04.01-1.5.32-2.95-.5-3.26-1.85s.65-2.72 2.14-3.08c.01 0 .03-.01.04-.01s.01 0 .02-.01c.21-.05.48-.12.68-.16.88-.17 1.6-.13 2.43-.19 1.77-.19 3.23-.34 4.53-.75.41-.17.81-.74 1.09-1.1l1.06-.31c-1.19-8.22.82-16.28 5.16-22.81l-.81-.72c-.05-.32-.12-1.04-.51-1.46-.99-.93-2.25-1.71-3.76-2.64-.72-.42-1.38-.69-2.1-1.23-.15-.11-.36-.29-.52-.42-.01-.01-.03-.02-.04-.03-1.21-.97-1.49-2.64-.62-3.73.49-.61 1.24-.92 2.01-.89.6.02 1.23.24 1.76.66.17.14.41.32.56.45.68.58 1.09 1.16 1.66 1.77 1.25 1.27 2.28 2.32 3.41 3.08.59.35 1.05.21 1.5.15.15.11.63.46.91.65 4.3-4.57 9.96-7.95 16.52-9.44 1.53-.35 3.05-.58 4.57-.7l.06-1.07c.34-.33.71-.79.82-1.31.11-1.36-.07-2.82-.28-4.59-.12-.82-.31-1.51-.35-2.4-.01-.18 0-.44.01-.65 0-.02-.01-.05-.01-.07 0-1.55 1.13-2.81 2.53-2.81s2.53 1.26 2.53 2.81c0 .22.01.52.01.72-.03.89-.23 1.58-.35 2.4-.21 1.76-.4 3.23-.29 4.59.1.68.5.95.83 1.26.01.18.04.79.06 1.13 8.04.71 15.5 4.39 20.99 10.14l.96-.69c.33.02 1.04.12 1.53-.17 1.13-.76 2.16-1.82 3.41-3.08.57-.61.99-1.18 1.67-1.77.15-.13.39-.31.56-.45 1.21-.97 2.9-.86 3.77.23s.59 2.76-.62 3.73c-.17.14-.39.33-.56.45-.72.53-1.38.8-2.1 1.23-1.51.93-2.77 1.71-3.76 2.64-.47.5-.43.98-.48 1.43-.14.13-.63.57-.9.8a32.8 32.8 0 0 1 4.74 10.95c.92 3.99 1.06 7.97.53 11.8l1.02.3c.18.26.56.89 1.09 1.1 1.3.41 2.76.56 4.53.75.83.07 1.55.03 2.43.19.21.04.52.12.73.17 1.5.37 2.45 1.74 2.14 3.09"}),y.jsx("path",{d:"m86.274 52.358-9.88 8.84.01.03c-.34.3-.6.7-.71 1.18-.27 1.17.44 2.33 1.58 2.65l.01.05 12.79 3.68c.27-2.76.11-5.62-.55-8.48-.66-2.89-1.77-5.56-3.25-7.95"})]})}),Jrt=e=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 128 128",...e,children:y.jsx("path",{fill:"#090",d:"M24.5 50.5c-1.5 0-2.5 1.2-2.5 2.7v14.1l-15.9-16c-.8-.8-2.2-1-3.2-.6S1 52.1 1 53.2v20.7c0 1.5 1.5 2.7 3 2.7s3-1.2 3-2.7V59.8l16.1 16c.5.5 1.2.8 1.9.8.3 0 .4-.1.7-.2 1-.4 1.3-1.4 1.3-2.5V53.3c0-1.5-1-2.8-2.5-2.8m19.7 11.8c-1.4 0-2.7 1.4-2.7 2.8s1.3 2.8 2.7 2.8l6.6.4-1.5 3.7h-8.5l-4.2-7.9 4.3-8.1H50l2.1 4h5.5L54 52.1l-.8-1.1H37.6l-.7 1.2L31 62.5l-.7 1.3.7 1.3 5.8 10.3.8 1.6h15.1l.7-1.7 4.3-9 1.9-4.3h-4.4zM65 50.5c-1.4 0-3 1.3-3 2.7V60h6v-6.7c0-1.5-1.6-2.8-3-2.8m30.4.3c-1-.4-2.4-.2-3.1.6L76 67.4V53.3c0-1.5-1-2.7-2.5-2.7S71 51.8 71 53.3V74c0 1.1.7 2.1 1.7 2.5.3.1.7.2 1 .2.7 0 1.6-.3 2.1-.8l16.2-16V74c0 1.5 1 2.7 2.5 2.7S97 75.5 97 74V53.3c0-1.1-.6-2.1-1.6-2.5m21.8 12.8 8.4-8.4c1.1-1.1 1.1-2.8 0-3.8-1.1-1.1-2.8-1.1-3.8 0l-8.4 8.4-8.4-8.4c-1.1-1.1-2.8-1.1-3.8 0-1.1 1.1-1.1 2.8 0 3.8l8.4 8.4-8.4 8.4c-1.1 1.1-1.1 2.8 0 3.8.5.5 1.2.8 1.9.8s1.4-.3 1.9-.8l8.4-8.4 8.4 8.4c.5.5 1.2.8 1.9.8s1.4-.3 1.9-.8c1.1-1.1 1.1-2.8 0-3.8zM62 73.9c0 1.4 1.5 2.7 3 2.7 1.4 0 3-1.3 3-2.7V62h-6z"})}),ent=e=>y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 128 128",...e,children:[y.jsx("path",{d:"M93.809 92.112c.785-6.533.55-7.492 5.416-6.433l1.235.108c3.742.17 8.637-.602 11.513-1.938 6.191-2.873 9.861-7.668 3.758-6.409-13.924 2.873-14.881-1.842-14.881-1.842 14.703-21.815 20.849-49.508 15.543-56.287-14.47-18.489-39.517-9.746-39.936-9.52l-.134.025c-2.751-.571-5.83-.912-9.289-.968-6.301-.104-11.082 1.652-14.709 4.402 0 0-44.683-18.409-42.604 23.151.442 8.841 12.672 66.898 27.26 49.362 5.332-6.412 10.484-11.834 10.484-11.834 2.558 1.699 5.622 2.567 8.834 2.255l.249-.212c-.078.796-.044 1.575.099 2.497-3.757 4.199-2.653 4.936-10.166 6.482-7.602 1.566-3.136 4.355-.221 5.084 3.535.884 11.712 2.136 17.238-5.598l-.22.882c1.474 1.18 1.375 8.477 1.583 13.69.209 5.214.558 10.079 1.621 12.948s2.317 10.256 12.191 8.14c8.252-1.764 14.561-4.309 15.136-27.985"}),y.jsx("path",{d:"M75.458 125.256c-4.367 0-7.211-1.689-8.938-3.32-2.607-2.46-3.641-5.629-4.259-7.522l-.267-.79c-1.244-3.358-1.666-8.193-1.916-14.419-.038-.935-.064-1.898-.093-2.919-.021-.747-.047-1.684-.085-2.664a18.8 18.8 0 0 1-4.962 1.568c-3.079.526-6.389.356-9.84-.507-2.435-.609-4.965-1.871-6.407-3.82-4.203 3.681-8.212 3.182-10.396 2.453-3.853-1.285-7.301-4.896-10.542-11.037-2.309-4.375-4.542-10.075-6.638-16.943-3.65-11.96-5.969-24.557-6.175-28.693C4.292 23.698 7.777 14.44 15.296 9.129 27.157.751 45.128 5.678 51.68 7.915c4.402-2.653 9.581-3.944 15.433-3.851 3.143.051 6.136.327 8.916.823 2.9-.912 8.628-2.221 15.185-2.139 12.081.144 22.092 4.852 28.949 13.615 4.894 6.252 2.474 19.381.597 26.651-2.642 10.226-7.271 21.102-12.957 30.57 1.544.011 3.781-.174 6.961-.831 6.274-1.295 8.109 2.069 8.607 3.575 1.995 6.042-6.677 10.608-9.382 11.864-3.466 1.609-9.117 2.589-13.745 2.377l-.202-.013-1.216-.107-.12 1.014-.116.991c-.311 11.999-2.025 19.598-5.552 24.619-3.697 5.264-8.835 6.739-13.361 7.709-1.544.33-2.947.474-4.219.474m-9.19-43.671c2.819 2.256 3.066 6.501 3.287 14.434.028.99.054 1.927.089 2.802.106 2.65.355 8.855 1.327 11.477.137.371.26.747.39 1.146 1.083 3.316 1.626 4.979 6.309 3.978 3.931-.843 5.952-1.599 7.534-3.851 2.299-3.274 3.585-9.86 3.821-19.575l4.783.116-4.75-.57.14-1.186c.455-3.91.783-6.734 3.396-8.602 2.097-1.498 4.486-1.353 6.389-1.01-2.091-1.58-2.669-3.433-2.823-4.193l-.399-1.965 1.121-1.663c6.457-9.58 11.781-21.354 14.609-32.304 2.906-11.251 2.02-17.226 1.134-18.356-11.729-14.987-32.068-8.799-34.192-8.097l-.359.194-1.8.335-.922-.191c-2.542-.528-5.366-.82-8.393-.869-4.756-.08-8.593 1.044-11.739 3.431l-2.183 1.655-2.533-1.043c-5.412-2.213-21.308-6.662-29.696-.721-4.656 3.298-6.777 9.76-6.305 19.207.156 3.119 2.275 14.926 5.771 26.377 4.831 15.825 9.221 21.082 11.054 21.693.32.108 1.15-.537 1.976-1.529a271 271 0 0 1 10.694-12.07l2.77-2.915 3.349 2.225c1.35.897 2.839 1.406 4.368 1.502l7.987-6.812-1.157 11.808c-.026.265-.039.626.065 1.296l.348 2.238-1.51 1.688-.174.196 4.388 2.025z"}),y.jsx("path",{fill:"#336791",d:"M115.731 77.44c-13.925 2.873-14.882-1.842-14.882-1.842 14.703-21.816 20.849-49.51 15.545-56.287C101.924.823 76.875 9.566 76.457 9.793l-.135.024c-2.751-.571-5.83-.911-9.291-.967-6.301-.103-11.08 1.652-14.707 4.402 0 0-44.684-18.408-42.606 23.151.442 8.842 12.672 66.899 27.26 49.363 5.332-6.412 10.483-11.834 10.483-11.834 2.559 1.699 5.622 2.567 8.833 2.255l.25-.212c-.078.796-.042 1.575.1 2.497-3.758 4.199-2.654 4.936-10.167 6.482-7.602 1.566-3.136 4.355-.22 5.084 3.534.884 11.712 2.136 17.237-5.598l-.221.882c1.473 1.18 2.507 7.672 2.334 13.557s-.29 9.926.871 13.082c1.16 3.156 2.316 10.256 12.192 8.14 8.252-1.768 12.528-6.351 13.124-13.995.422-5.435 1.377-4.631 1.438-9.49l.767-2.3c.884-7.367.14-9.743 5.225-8.638l1.235.108c3.742.17 8.639-.602 11.514-1.938 6.19-2.871 9.861-7.667 3.758-6.408"}),y.jsx("path",{fill:"#fff",d:"M75.957 122.307c-8.232 0-10.84-6.519-11.907-9.185-1.562-3.907-1.899-19.069-1.551-31.503a1.59 1.59 0 0 1 1.64-1.55 1.594 1.594 0 0 1 1.55 1.639c-.401 14.341.168 27.337 1.324 30.229 1.804 4.509 4.54 8.453 12.275 6.796 7.343-1.575 10.093-4.359 11.318-11.46.94-5.449 2.799-20.951 3.028-24.01a1.593 1.593 0 0 1 1.71-1.472 1.597 1.597 0 0 1 1.472 1.71c-.239 3.185-2.089 18.657-3.065 24.315-1.446 8.387-5.185 12.191-13.794 14.037-1.463.313-2.792.453-4 .454M31.321 90.466a6.7 6.7 0 0 1-2.116-.35c-5.347-1.784-10.44-10.492-15.138-25.885-3.576-11.717-5.842-23.947-6.041-27.922-.589-11.784 2.445-20.121 9.02-24.778 13.007-9.216 34.888-.44 35.813-.062a1.596 1.596 0 0 1-1.207 2.955c-.211-.086-21.193-8.492-32.768-.285-5.622 3.986-8.203 11.392-7.672 22.011.167 3.349 2.284 15.285 5.906 27.149 4.194 13.742 8.967 22.413 13.096 23.79.648.216 2.62.873 5.439-2.517A245 245 0 0 1 45.88 73.046a1.596 1.596 0 0 1 2.304 2.208c-.048.05-4.847 5.067-10.077 11.359-2.477 2.979-4.851 3.853-6.786 3.853m69.429-13.445a1.596 1.596 0 0 1-1.322-2.487c14.863-22.055 20.08-48.704 15.612-54.414-5.624-7.186-13.565-10.939-23.604-11.156-7.433-.16-13.341 1.738-14.307 2.069l-.243.099c-.971.305-1.716-.227-1.997-.849a1.6 1.6 0 0 1 .631-2.025c.046-.027.192-.089.429-.176l-.021.006.021-.007c1.641-.601 7.639-2.4 15.068-2.315 11.108.118 20.284 4.401 26.534 12.388 2.957 3.779 2.964 12.485.019 23.887-3.002 11.625-8.651 24.118-15.497 34.277-.306.457-.81.703-1.323.703m.76 10.21c-2.538 0-4.813-.358-6.175-1.174-1.4-.839-1.667-1.979-1.702-2.584-.382-6.71 3.32-7.878 5.208-8.411-.263-.398-.637-.866-1.024-1.349-1.101-1.376-2.609-3.26-3.771-6.078-.182-.44-.752-1.463-1.412-2.648-3.579-6.418-11.026-19.773-6.242-26.612 2.214-3.165 6.623-4.411 13.119-3.716C97.6 28.837 88.5 10.625 66.907 10.271c-6.494-.108-11.82 1.889-15.822 5.93-8.96 9.049-8.636 25.422-8.631 25.586a1.595 1.595 0 1 1-3.19.084c-.02-.727-.354-17.909 9.554-27.916C53.455 9.272 59.559 6.96 66.96 7.081c13.814.227 22.706 7.25 27.732 13.101 5.479 6.377 8.165 13.411 8.386 15.759.165 1.746-1.088 2.095-1.341 2.147l-.576.013c-6.375-1.021-10.465-.312-12.156 2.104-3.639 5.201 3.406 17.834 6.414 23.229.768 1.376 1.322 2.371 1.576 2.985.988 2.396 2.277 4.006 3.312 5.3.911 1.138 1.7 2.125 1.982 3.283.131.23 1.99 2.98 13.021.703 2.765-.57 4.423-.083 4.93 1.45.997 3.015-4.597 6.532-7.694 7.97-2.775 1.29-7.204 2.106-11.036 2.106m-4.696-4.021c.35.353 2.101.962 5.727.806 3.224-.138 6.624-.839 8.664-1.786 2.609-1.212 4.351-2.567 5.253-3.492l-.5.092c-7.053 1.456-12.042 1.262-14.828-.577a6 6 0 0 1-.54-.401c-.302.119-.581.197-.78.253-1.58.443-3.214.902-2.996 5.105m-45.562 8.915c-1.752 0-3.596-.239-5.479-.71-1.951-.488-5.24-1.957-5.19-4.37.057-2.707 3.994-3.519 5.476-3.824 5.354-1.103 5.703-1.545 7.376-3.67.488-.619 1.095-1.39 1.923-2.314 1.229-1.376 2.572-2.073 3.992-2.073.989 0 1.8.335 2.336.558 1.708.708 3.133 2.42 3.719 4.467.529 1.847.276 3.625-.71 5.006-3.237 4.533-7.886 6.93-13.443 6.93m-7.222-4.943c.481.372 1.445.869 2.518 1.137 1.631.408 3.213.615 4.705.615 4.546 0 8.196-1.882 10.847-5.594.553-.774.387-1.757.239-2.274-.31-1.083-1.08-2.068-1.873-2.397-.43-.178-.787-.314-1.115-.314-.176 0-.712 0-1.614 1.009a41 41 0 0 0-1.794 2.162c-2.084 2.646-3.039 3.544-9.239 4.821-1.513.31-2.289.626-2.674.835m12.269-7.36a1.596 1.596 0 0 1-1.575-1.354 8 8 0 0 1-.08-.799c-4.064-.076-7.985-1.82-10.962-4.926-3.764-3.927-5.477-9.368-4.699-14.927.845-6.037.529-11.366.359-14.229-.047-.796-.081-1.371-.079-1.769.003-.505.013-1.844 4.489-4.113 1.592-.807 4.784-2.215 8.271-2.576 5.777-.597 9.585 1.976 10.725 7.246 3.077 14.228.244 20.521-1.825 25.117-.385.856-.749 1.664-1.04 2.447l-.257.69c-1.093 2.931-2.038 5.463-1.748 7.354a1.595 1.595 0 0 1-1.335 1.819zM42.464 42.26l.062 1.139c.176 2.974.504 8.508-.384 14.86-.641 4.585.759 9.06 3.843 12.276 2.437 2.542 5.644 3.945 8.94 3.945h.068c.369-1.555.982-3.197 1.642-4.966l.255-.686c.329-.884.714-1.74 1.122-2.646 1.991-4.424 4.47-9.931 1.615-23.132-.565-2.615-1.936-4.128-4.189-4.627-4.628-1.022-11.525 2.459-12.974 3.837m9.63-.677c-.08.564 1.033 2.07 2.485 2.271 1.449.203 2.689-.975 2.768-1.539s-1.033-1.186-2.485-1.388-2.691.092-2.768.656m2.818 2.826-.407-.028c-.9-.125-1.81-.692-2.433-1.518-.219-.29-.576-.852-.505-1.354.101-.736.999-1.177 2.4-1.177.313 0 .639.023.967.069.766.106 1.477.327 2.002.62.91.508.977 1.075.936 1.368-.112.813-1.405 2.02-2.96 2.02m-2.289-2.732c.045.348.907 1.496 2.029 1.651l.261.018c1.036 0 1.81-.815 1.901-1.082-.096-.182-.762-.634-2.025-.81a6 6 0 0 0-.821-.059c-.812 0-1.243.183-1.345.282m43.605-1.245c.079.564-1.033 2.07-2.484 2.272-1.45.202-2.691-.975-2.771-1.539-.076-.564 1.036-1.187 2.486-1.388 1.45-.203 2.689.092 2.769.655m-2.819 2.56c-1.396 0-2.601-1.086-2.7-1.791-.115-.846 1.278-1.489 2.712-1.688.316-.044.629-.066.93-.066 1.238 0 2.058.363 2.14.949.053.379-.238.964-.739 1.492-.331.347-1.026.948-1.973 1.079zm.943-3.013q-.416 0-.856.061c-1.441.201-2.301.779-2.259 1.089.048.341.968 1.332 2.173 1.332l.297-.021c.787-.109 1.378-.623 1.66-.919.443-.465.619-.903.598-1.052-.028-.198-.56-.49-1.613-.49m3.965 32.843a1.594 1.594 0 0 1-1.324-2.483c3.398-5.075 2.776-10.25 2.175-15.255-.257-2.132-.521-4.337-.453-6.453.07-2.177.347-3.973.614-5.71.317-2.058.617-4.002.493-6.31a1.595 1.595 0 1 1 3.186-.172c.142 2.638-.197 4.838-.525 6.967-.253 1.643-.515 3.342-.578 5.327-.061 1.874.178 3.864.431 5.97.64 5.322 1.365 11.354-2.691 17.411a1.6 1.6 0 0 1-1.328.708"})]}),tnt=e=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 128 128",...e,children:y.jsx("path",{fill:"#e75225",d:"M63.66 2.477c33.477.007 60.957 27.296 60.914 60.5-.043 33.703-27.41 60.617-61.613 60.593-33.441-.023-60.477-27.343-60.453-61.086C2.53 29.488 30.066 2.47 63.66 2.477m-18.504 21.25c.766 3.777.024 7.3-1.113 10.765-.785 2.399-1.871 4.711-2.52 7.145-1.07 4.008-2.28 8.039-2.726 12.136-.64 5.895 1.676 11.086 5.64 16.25l-18.222-3.835c.031.574 0 .792.062.976 1.727 5.074 4.766 9.348 8.172 13.379.36.426 1.18.644 1.79.644 18.167.036 36.335.032 54.503.008.563 0 1.317-.105 1.66-.468 3.895-4.094 6.871-8.758 8.735-14.63l-19.29 3.778c1.274-2.496 2.723-4.688 3.56-7.098 2.855-8.242 1.671-16.21-2.427-23.726-3.289-6.031-6.324-12.035-4.683-19.305-3.473 3.434-4.809 7.8-5.656 12.3-.832 4.434-1.325 8.93-1.97 13.43-.093-.136-.21-.238-.23-.355a13 13 0 0 1-.168-1.422c-.394-7.367-1.832-14.465-4.87-21.246-1.786-3.988-3.758-8.07-1.915-12.832-1.246.66-2.375 1.313-3.183 2.246-2.41 2.785-3.407 6.13-3.664 9.793-.22 3.13-.52 6.274-1.102 9.352-.61 3.234-1.574 6.402-3.75 9.375-.875-6.348-.973-12.63-6.633-16.66M92 86.75H35.016v9.898H92zm-45.684 15.016c-.046 8.242 8.348 14.382 18.723 13.937 8.602-.371 16.211-7.137 15.559-13.937zm0 0"})}),rnt=e=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 128 128",...e,children:y.jsxs("g",{fill:"#61DAFB",children:[y.jsx("circle",{cx:64,cy:64,r:11.4}),y.jsx("path",{d:"M107.3 45.2c-2.2-.8-4.5-1.6-6.9-2.3.6-2.4 1.1-4.8 1.5-7.1 2.1-13.2-.2-22.5-6.6-26.1-1.9-1.1-4-1.6-6.4-1.6-7 0-15.9 5.2-24.9 13.9-9-8.7-17.9-13.9-24.9-13.9-2.4 0-4.5.5-6.4 1.6-6.4 3.7-8.7 13-6.6 26.1.4 2.3.9 4.7 1.5 7.1-2.4.7-4.7 1.4-6.9 2.3C8.2 50 1.4 56.6 1.4 64s6.9 14 19.3 18.8c2.2.8 4.5 1.6 6.9 2.3-.6 2.4-1.1 4.8-1.5 7.1-2.1 13.2.2 22.5 6.6 26.1 1.9 1.1 4 1.6 6.4 1.6 7.1 0 16-5.2 24.9-13.9 9 8.7 17.9 13.9 24.9 13.9 2.4 0 4.5-.5 6.4-1.6 6.4-3.7 8.7-13 6.6-26.1-.4-2.3-.9-4.7-1.5-7.1 2.4-.7 4.7-1.4 6.9-2.3 12.5-4.8 19.3-11.4 19.3-18.8s-6.8-14-19.3-18.8M92.5 14.7c4.1 2.4 5.5 9.8 3.8 20.3-.3 2.1-.8 4.3-1.4 6.6-5.2-1.2-10.7-2-16.5-2.5-3.4-4.8-6.9-9.1-10.4-13 7.4-7.3 14.9-12.3 21-12.3 1.3 0 2.5.3 3.5.9M81.3 74c-1.8 3.2-3.9 6.4-6.1 9.6-3.7.3-7.4.4-11.2.4-3.9 0-7.6-.1-11.2-.4q-3.3-4.8-6-9.6c-1.9-3.3-3.7-6.7-5.3-10 1.6-3.3 3.4-6.7 5.3-10 1.8-3.2 3.9-6.4 6.1-9.6 3.7-.3 7.4-.4 11.2-.4 3.9 0 7.6.1 11.2.4q3.3 4.8 6 9.6c1.9 3.3 3.7 6.7 5.3 10-1.7 3.3-3.4 6.6-5.3 10m8.3-3.3c1.5 3.5 2.7 6.9 3.8 10.3-3.4.8-7 1.4-10.8 1.9 1.2-1.9 2.5-3.9 3.6-6 1.2-2.1 2.3-4.2 3.4-6.2M64 97.8c-2.4-2.6-4.7-5.4-6.9-8.3 2.3.1 4.6.2 6.9.2s4.6-.1 6.9-.2c-2.2 2.9-4.5 5.7-6.9 8.3m-18.6-15c-3.8-.5-7.4-1.1-10.8-1.9 1.1-3.3 2.3-6.8 3.8-10.3 1.1 2 2.2 4.1 3.4 6.1 1.2 2.2 2.4 4.1 3.6 6.1m-7-25.5c-1.5-3.5-2.7-6.9-3.8-10.3 3.4-.8 7-1.4 10.8-1.9-1.2 1.9-2.5 3.9-3.6 6-1.2 2.1-2.3 4.2-3.4 6.2M64 30.2c2.4 2.6 4.7 5.4 6.9 8.3-2.3-.1-4.6-.2-6.9-.2s-4.6.1-6.9.2c2.2-2.9 4.5-5.7 6.9-8.3m22.2 21-3.6-6c3.8.5 7.4 1.1 10.8 1.9-1.1 3.3-2.3 6.8-3.8 10.3-1.1-2.1-2.2-4.2-3.4-6.2M31.7 35c-1.7-10.5-.3-17.9 3.8-20.3 1-.6 2.2-.9 3.5-.9 6 0 13.5 4.9 21 12.3-3.5 3.8-7 8.2-10.4 13-5.8.5-11.3 1.4-16.5 2.5-.6-2.3-1-4.5-1.4-6.6M7 64c0-4.7 5.7-9.7 15.7-13.4 2-.8 4.2-1.5 6.4-2.1 1.6 5 3.6 10.3 6 15.6-2.4 5.3-4.5 10.5-6 15.5C15.3 75.6 7 69.6 7 64m28.5 49.3c-4.1-2.4-5.5-9.8-3.8-20.3.3-2.1.8-4.3 1.4-6.6 5.2 1.2 10.7 2 16.5 2.5 3.4 4.8 6.9 9.1 10.4 13-7.4 7.3-14.9 12.3-21 12.3-1.3 0-2.5-.3-3.5-.9M96.3 93c1.7 10.5.3 17.9-3.8 20.3-1 .6-2.2.9-3.5.9-6 0-13.5-4.9-21-12.3 3.5-3.8 7-8.2 10.4-13 5.8-.5 11.3-1.4 16.5-2.5.6 2.3 1 4.5 1.4 6.6m9-15.6c-2 .8-4.2 1.5-6.4 2.1-1.6-5-3.6-10.3-6-15.6 2.4-5.3 4.5-10.5 6-15.5 13.8 4 22.1 10 22.1 15.6 0 4.7-5.8 9.7-15.7 13.4"})]})}),nnt=e=>y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 128 128",...e,children:[y.jsx("path",{fill:"#A41E11",d:"M121.8 93.1c-6.7 3.5-41.4 17.7-48.8 21.6s-11.5 3.8-17.3 1S13 98.1 6.3 94.9c-3.3-1.6-5-2.9-5-4.2V78s48-10.5 55.8-13.2c7.8-2.8 10.4-2.9 17-.5s46.1 9.5 52.6 11.9v12.5c0 1.3-1.5 2.7-4.9 4.4"}),y.jsx("path",{fill:"#D82C20",d:"M121.8 80.5C115.1 84 80.4 98.2 73 102.1s-11.5 3.8-17.3 1S13 85.4 6.3 82.2C-.3 79-.5 76.8 6 74.3c6.5-2.6 43.2-17 51-19.7 7.8-2.8 10.4-2.9 17-.5s41.1 16.1 47.6 18.5c6.7 2.4 6.9 4.4.2 7.9"}),y.jsx("path",{fill:"#A41E11",d:"M121.8 72.5C115.1 76 80.4 90.2 73 94.1c-7.4 3.8-11.5 3.8-17.3 1S13 77.4 6.3 74.2c-3.3-1.6-5-2.9-5-4.2V57.3s48-10.5 55.8-13.2c7.8-2.8 10.4-2.9 17-.5s46.1 9.5 52.6 11.9V68c0 1.3-1.5 2.7-4.9 4.5"}),y.jsx("path",{fill:"#D82C20",d:"M121.8 59.8c-6.7 3.5-41.4 17.7-48.8 21.6-7.4 3.8-11.5 3.8-17.3 1S13 64.7 6.3 61.5s-6.8-5.4-.3-7.9c6.5-2.6 43.2-17 51-19.7 7.8-2.8 10.4-2.9 17-.5s41.1 16.1 47.6 18.5c6.7 2.4 6.9 4.4.2 7.9"}),y.jsx("path",{fill:"#A41E11",d:"M121.8 51c-6.7 3.5-41.4 17.7-48.8 21.6-7.4 3.8-11.5 3.8-17.3 1C49.9 70.9 13 56 6.3 52.8c-3.3-1.6-5.1-2.9-5.1-4.2V35.9s48-10.5 55.8-13.2c7.8-2.8 10.4-2.9 17-.5s46.1 9.5 52.6 11.9v12.5c.1 1.3-1.4 2.6-4.8 4.4"}),y.jsx("path",{fill:"#D82C20",d:"M121.8 38.3C115.1 41.8 80.4 56 73 59.9c-7.4 3.8-11.5 3.8-17.3 1S13 43.3 6.3 40.1s-6.8-5.4-.3-7.9c6.5-2.6 43.2-17 51-19.7 7.8-2.8 10.4-2.9 17-.5s41.1 16.1 47.6 18.5c6.7 2.4 6.9 4.4.2 7.8"}),y.jsx("path",{fill:"#fff",d:"m80.4 26.1-10.8 1.2-2.5 5.8-3.9-6.5-12.5-1.1 9.3-3.4-2.8-5.2 8.8 3.4 8.2-2.7L72 23zM66.5 54.5l-20.3-8.4 29.1-4.4z"}),y.jsx("ellipse",{cx:38.4,cy:35.4,fill:"#fff",rx:15.5,ry:6}),y.jsx("path",{fill:"#7A0C00",d:"m93.3 27.7 17.2 6.8-17.2 6.8z"}),y.jsx("path",{fill:"#AD2115",d:"m74.3 35.3 19-7.6v13.6l-1.9.8z"})]}),ont=e=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 128 128",...e,children:y.jsx("path",{fill:"#e15919",d:"M57.646.004c-2.269.064-4.51 1.143-6.384 3.223-1.03 1.146-1.905 2.51-2.63 3.855-1.89 3.54-2.262 7.547-2.962 11.43l-3.852 21.81c-.148.856-.532 1.21-1.3 1.455l-28.268 8.98c-2.06.673-4.125 1.543-5.947 2.7-5.558 3.53-6.38 9.338-2.207 14.438 1.842 2.256 4.216 3.843 6.85 4.996l17.603 7.843c.147.08.304.132.463.162l3.717 2.682s-3.7 40.948 3.246 43.781c-.061-.01-.41-.082-.41-.082s.704.761 2.603.537c1.454.27 1.262.226.074-.01 2.583-.334 7.337-2.497 15.578-10.784a47 47 0 0 0 1.776-1.676l17.8-19.217 4.163 1.465c.15.207.367.34.714.443l19.823 6.031c2.709.836 5.389 1.448 8.277 1.026 5.156-.755 8.951-5 8.9-10.192-.02-2.28-.82-4.339-1.87-6.324l-13.128-24.898c-.418-.787-.405-1.296.196-2l22.054-25.922c1.428-1.703 2.717-3.529 3.465-5.645 1.643-4.67-.482-8.382-5.33-9.289-2.229-.398-4.427-.188-6.6.385l-31.597 8.395c-.93.25-1.39.075-1.895-.772l-12.9-21.434c-.975-1.615-2.14-3.194-3.477-4.527C62.212.89 59.915-.059 57.646.004m.944 19.736c.51.358.768.727 1.01 1.125l13.88 23.13c.382.628.725.85 1.485.648l24.443-6.497 5.885-1.54c-.087.493-.302.79-.537 1.068l-20.16 23.672c-.57.688-.623 1.17-.194 1.976l12.743 24.16.585 1.237-.015.02-22.727-6.264-.006-.018-4.298-1.205-25.493 28.256 4.663-37.15-4.184-1.82.008-.007-23.674-9.4c.454-.413.86-.585 1.285-.717l28.777-9.096c.676-.21 1.061-.47 1.125-1.242l.403-2.355 3.875-21.807 1.12-6.174z"})}),ant=e=>y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 128 128",...e,children:[y.jsx("path",{fill:"#85ea2d",d:"M63.999 124.945c-33.607 0-60.95-27.34-60.95-60.949C3.05 30.388 30.392 3.048 64 3.048s60.95 27.342 60.95 60.95c0 33.607-27.343 60.946-60.95 60.946z"}),y.jsx("path",{fill:"#173647",d:"M40.3 43.311c-.198 2.19.072 4.454-.073 6.668-.173 2.217-.444 4.407-.888 6.596-.615 3.126-2.56 5.489-5.24 7.458 5.218 3.396 5.807 8.662 6.152 14.003.172 2.88.098 5.785.394 8.638.221 2.215 1.082 2.782 3.372 2.854.935.025 1.894 0 2.978 0v6.842c-6.768 1.156-12.354-.762-13.734-6.496a39.3 39.3 0 0 1-.836-6.4c-.148-2.287.097-4.577-.074-6.864-.492-6.277-1.305-8.393-7.308-8.689v-7.8c.441-.1.86-.174 1.302-.223 3.298-.172 4.701-1.182 5.414-4.43a37.5 37.5 0 0 0 .616-5.536c.247-3.569.148-7.21.763-10.754.86-5.094 4.01-7.556 9.254-7.852 1.476-.074 2.978 0 4.676 0v6.99c-.714.05-1.33.147-1.969.147-4.258-.148-4.48 1.304-4.8 4.848zm8.195 16.193h-.099c-2.462-.123-4.578 1.796-4.702 4.258-.122 2.485 1.797 4.603 4.259 4.724h.295c2.436.148 4.527-1.724 4.676-4.16v-.245c.05-2.486-1.944-4.527-4.43-4.577zm15.43 0c-2.386-.074-4.38 1.796-4.454 4.159 0 .149 0 .271.024.418 0 2.684 1.821 4.406 4.578 4.406 2.707 0 4.406-1.772 4.406-4.553-.025-2.682-1.823-4.455-4.554-4.43m15.801 0a4.596 4.596 0 0 0-4.676 4.454 4.515 4.515 0 0 0 4.528 4.528h.05c2.264.394 4.553-1.796 4.701-4.429.122-2.437-2.092-4.553-4.604-4.553Zm21.682.369c-2.855-.123-4.284-1.083-4.996-3.79a27.4 27.4 0 0 1-.811-5.292c-.198-3.298-.174-6.62-.395-9.918-.516-7.826-6.177-10.557-14.397-9.205v6.792c1.304 0 2.313 0 3.322.025 1.748.024 3.077.69 3.249 2.634.172 1.772.172 3.568.344 5.365.346 3.57.542 7.187 1.157 10.706.542 2.904 2.536 5.07 5.02 6.841-4.355 2.929-5.636 7.113-5.857 11.814-.122 3.223-.196 6.472-.368 9.721-.148 2.953-1.181 3.913-4.16 3.987-.835.024-1.648.098-2.583.148v6.964c1.748 0 3.347.1 4.946 0 4.971-.295 7.974-2.706 8.96-7.531.417-2.658.662-5.34.737-8.023.171-2.46.148-4.946.394-7.382.369-3.815 2.116-5.389 5.93-5.636a5 5 0 0 0 1.06-.245v-7.801c-.64-.074-1.084-.148-1.552-.173zM64 6.1c31.977 0 57.9 25.92 57.9 57.898 0 31.977-25.923 57.899-57.9 57.899-31.976 0-57.898-25.922-57.898-57.9C6.102 32.023 32.024 6.101 64 6.101m0-6.1C28.71 0 0 28.71 0 64c0 35.288 28.71 63.998 64 63.998s64-28.71 64-64S99.289.002 64 .002Z"})]}),int=e=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 128 128",...e,children:y.jsxs("g",{fillRule:"evenodd",children:[y.jsx("path",{fill:"#5c4ee5",d:"M77.941 44.5v36.836L46.324 62.918V26.082zm0 0"}),y.jsx("path",{fill:"#4040b2",d:"m81.41 81.336 31.633-18.418V26.082L81.41 44.5zm0 0"}),y.jsx("path",{fill:"#5c4ee5",d:"M11.242 42.36 42.86 60.776V23.941L11.242 5.523zm66.699 43.015L46.324 66.957v36.82l31.617 18.418zm0 0"})]})});const snt={"tech:elasticsearch":Urt,"tech:electron":Wrt,"tech:git":Yrt,"tech:github":Grt,"tech:go":Xrt,"tech:grafana":Krt,"tech:java":Zrt,"tech:kubernetes":Qrt,"tech:nginx":Jrt,"tech:postgresql":ent,"tech:prometheus":tnt,"tech:react":rnt,"tech:redis":nnt,"tech:spark":ont,"tech:swagger":ant,"tech:terraform":int};function lnt(e){const r=snt[e.node.icon??""];return r?y.jsx(r,e):null}function cnt(e,r,n){let o=a=>e(a,...r);return n===void 0?o:Object.assign(o,{lazy:n,lazyArgs:r})}function Lne(e,r,n){let o=e.length-r.length;if(o===0)return e(...r);if(o===1)return cnt(e,r,n);throw Error("Wrong number of arguments")}function dnt(...e){return Lne(unt,e)}function unt(e,r){let n={};for(let[o,a]of Object.entries(e))n[o]=r(a,o,e);return n}function Bne(...e){return Lne(tb,e)}function tb(e,r){if(e===r||Object.is(e,r))return!0;if(typeof e!="object"||typeof r!="object"||e===null||r===null||Object.getPrototypeOf(e)!==Object.getPrototypeOf(r))return!1;if(Array.isArray(e))return pnt(e,r);if(e instanceof Map)return hnt(e,r);if(e instanceof Set)return fnt(e,r);if(e instanceof Date)return e.getTime()===r.getTime();if(e instanceof RegExp)return e.toString()===r.toString();if(Object.keys(e).length!==Object.keys(r).length)return!1;for(let[n,o]of Object.entries(e))if(!(n in r)||!tb(o,r[n]))return!1;return!0}function pnt(e,r){if(e.length!==r.length)return!1;for(let[n,o]of e.entries())if(!tb(o,r[n]))return!1;return!0}function hnt(e,r){if(e.size!==r.size)return!1;for(let[n,o]of e.entries())if(!r.has(n)||!tb(o,r.get(n)))return!1;return!0}function fnt(e,r){if(e.size!==r.size)return!1;let n=[...r];for(let o of e){let a=!1;for(let[i,s]of n.entries())if(tb(o,s)){a=!0,n.splice(i,1);break}if(!a)return!1}return!0}let Ns=[],Kd=0;const F4=4;let H4=0,Fne=e=>{let r=[],n={get(){return n.lc||n.listen(()=>{})(),n.value},lc:0,listen(o){return n.lc=r.push(o),()=>{for(let i=Kd+F4;i(e.events=e.events||{},e.events[n+q4]||(e.events[n+q4]=o(a=>{e.events[n].reduceRight((i,s)=>(s(i),i),{shared:{},...a})})),e.events[n]=e.events[n]||[],e.events[n].push(r),()=>{let a=e.events[n],i=a.indexOf(r);a.splice(i,1),a.length||(delete e.events[n],e.events[n+q4](),delete e.events[n+q4])}),ynt=1e3,bnt=(e,r)=>gnt(e,n=>{let o=r(n);o&&e.events[V4].push(o)},mnt,n=>{let o=e.listen;e.listen=(...i)=>(!e.lc&&!e.active&&(e.active=!0,n()),o(...i));let a=e.off;return e.events[V4]=[],e.off=()=>{a(),setTimeout(()=>{if(e.active&&!e.lc){e.active=!1;for(let i of e.events[V4])i();e.events[V4]=[]}},ynt)},()=>{e.listen=o,e.off=a}}),vnt=(e,r,n)=>{Array.isArray(e)||(e=[e]);let o,a,i=()=>{if(a===H4)return;a=H4;let d=e.map(u=>u.get());if(!o||d.some((u,h)=>u!==o[h])){o=d;let u=r(...d);u&&u.then&&u.t?u.then(h=>{o===d&&s.set(h)}):(s.set(u),a=H4)}},s=Fne(void 0),l=s.get;s.get=()=>(i(),l());let c=i;return bnt(s,()=>{let d=e.map(u=>u.listen(c));return i(),()=>{for(let u of d)u()}}),s},Hne=(e,r)=>vnt(e,r);function xnt(e,r,n){let o=new Set(r).add(void 0);return e.listen((a,i,s)=>{o.has(s)&&n(a,i,s)})}let zR=(e,r)=>n=>{e.current!==n&&(e.current=n,r())};function Vne(e,{keys:r,deps:n=[e,r]}={}){let o=E.useRef();o.current=e.get();let a=E.useCallback(s=>(zR(o,s)(e.value),r?.length>0?xnt(e,r,zR(o,s)):e.listen(zR(o,s))),n),i=()=>o.current;return E.useSyncExternalStore(a,i,i)}const wnt=e=>{const r=Hne(e,l=>rp.create(l));function n(l){const c=e.get();if(Bne(c,l))return;const d={...l,views:dnt(l.views,u=>{const h=c.views[u.id];return Bne(h,u)?h:u})};e.set(d)}const o=Hne(e,l=>Object.values(l.views));function a(){return Vne(r)}function i(){return Vne(o)}function s(l){const[c,d]=E.useState(e.value?.views[l]??null);return E.useEffect(()=>e.subscribe(u=>{d(u.views[l]??null)}),[l]),c}return{updateModel:n,$likec4model:r,useLikeC4Model:a,useLikeC4Views:i,useLikeC4View:s}},knt=Fne({_stage:"layouted",projectId:"architecture",project:{id:"architecture",title:"architecture"},specification:{tags:{internal:{color:"tomato"}},elements:{actor:{style:{shape:"person",color:"green"}},person:{style:{shape:"person",color:"green"}},component:{style:{}},container:{style:{opacity:20}},internalComponent:{style:{color:"muted",opacity:15}},schema:{style:{}},step:{style:{}},system:{style:{}},workflow:{style:{}},tool:{style:{}},process:{style:{}},repository:{style:{shape:"storage"}}},relationships:{},deployments:{cloud:{style:{}},environment:{style:{}},computeressource:{style:{}},paas:{style:{}},kubernetes:{style:{}},cluster:{style:{}},namespace:{style:{}}},customColors:{}},elements:{edfbuilder_workflow:{style:{},title:"EDFbuilder",kind:"workflow",id:"edfbuilder_workflow"},argocdworkflow:{style:{},title:"EDP ArgoCD Setup Workflow",kind:"workflow",id:"argocdworkflow"},edpworkflow:{style:{},title:"EDP Infrastructure Setup Workflow",kind:"workflow",id:"edpworkflow"},applicationspecification:{style:{},description:{txt:"The application specification describes the application and its components. It is used to generate the application and its components."},title:"application-specification",kind:"component",id:"applicationspecification"},forgejoRunner:{style:{},description:{txt:"A runner is a service that runs jobs triggered by Forgejo. A runner can have different technical implementations like a container or a VM."},title:"Forgejo Runner",kind:"component",id:"forgejoRunner"},forgejoRunnerWorker:{style:{},description:{txt:"A worker is a service that runs a job invoked by a runner. A worker typically is a container."},title:"Forgejo Runner Worker",kind:"component",id:"forgejoRunnerWorker"},promtail:{style:{},description:{txt:"Log shipper agent for Loki"},title:"Promtail",kind:"component",id:"promtail"},edfbuilder:{style:{shape:"rectangle",icon:"tech:go"},technology:"Golang",description:{txt:"EDP Foundry Builder"},title:"edfbuilder",kind:"component",id:"edfbuilder"},elasticsearch:{style:{opacity:20,icon:"tech:elasticsearch"},technology:"Elasticsearch",description:{txt:`Elasticsearch is a distributed, RESTful search and analytics engine capable of +`.trim()}const Gte=S.forwardRef(({children:e,theme:r=Ate,injectFontCss:n=!0,styleNonce:o,colorScheme:a,keepAspectRatio:i=!1,...l},s)=>{const c=AKe(a),d=MW(),u=eQe(d,i),p=S.useRef(null),f=TKe(n,o),g=S.useCallback(()=>p.current??void 0,[p]),v=it(()=>{if(Ja(o)){if(typeof o=="string")return o;if(typeof o=="function")return o()}return""});let w=Ja(o)?v():void 0;return y.jsxs(y.Fragment,{children:[y.jsx("style",{type:"text/css",nonce:w,dangerouslySetInnerHTML:{__html:u}}),y.jsx(JKe,{ssr:!1,...l,styleSheets:f,"data-likec4-instance":d,children:y.jsx("div",{ref:$r(p,s),"data-mantine-color-scheme":c,className:"likec4-shadow-root",children:y.jsx(q7,{...a&&{forceColorScheme:a},defaultColorScheme:c,getRootElement:g,...!!w&&{getStyleNonce:v},cssVariablesSelector:".likec4-shadow-root",theme:r,children:y.jsx(jz,{children:e})})})})]})});Gte.displayName="ShadowRoot";const tQe=fe({cursor:"pointer","--mantine-cursor-pointer":"pointer","& :where(.likec4-diagram, .likec4-compound-node, .likec4-element-node)":{cursor:"pointer"}});function rQe({viewId:e,className:r,pannable:n=!1,zoomable:o=!1,keepAspectRatio:a=!0,colorScheme:i,injectFontCss:l=!0,controls:s=!1,background:c="transparent",browser:d=!0,showNavigationButtons:u=!1,enableNotations:p,enableFocusMode:f=!1,enableDynamicViewWalkthrough:g=!1,enableElementDetails:v=!1,enableRelationshipDetails:w=!1,enableRelationshipBrowser:x=w,reduceGraphics:k="auto",mantineTheme:C,styleNonce:_,style:$,reactFlowProps:z,renderNodes:j,children:A,...R}){const T=S.useRef(null),O=oMe(),[P,L]=S.useState("manual"),[H,M]=S.useState(null),V=it(Q=>{Q&&Q!==H&&L("manual"),M(Q)}),B=it(()=>{V(e)});if(!O)return y.jsx(Tz,{children:"LikeC4Model not found. Make sure you provided LikeC4ModelProvider."});const F=O.findView(e)?.$layouted;if(!F)return y.jsx(NKe,{viewId:e});if(F._stage!=="layouted")return y.jsxs(Tz,{children:['LikeC4 View "$',e,'" is not layouted. Make sure you have LikeC4ModelProvider with layouted model.']});const q=H?O.findView(H):null,G=P==="manual"?q?.$layouted:q?.$view,U=!!p&&(F.notation?.nodes?.length??0)>0,Y=(G?.notation?.nodes?.length??0)>0,Z=d!==!1,I=OV(d)?{}:d,W=wJ(F,R.dynamicViewVariant),K=T.current?{root:T.current}:void 0;return y.jsx(Gte,{ref:T,injectFontCss:l,theme:C,colorScheme:i,styleNonce:_,keepAspectRatio:a?W:!1,className:Ge("likec4-view",r),style:$,children:y.jsxs(jz,{children:[y.jsx(Nte,{view:F,pannable:n,zoomable:o,background:c,fitView:!0,fitViewPadding:K3.default,enableNotations:U,enableDynamicViewWalkthrough:g,showNavigationButtons:u,enableCompareWithLatest:!1,enableFocusMode:f,enableRelationshipDetails:w,enableElementDetails:v,enableRelationshipBrowser:x,enableElementTags:!1,controls:s,reduceGraphics:k,className:Ge("likec4-static-view",Z&&tQe),enableSearch:!1,...Z&&{onCanvasClick:B,onNodeClick:B},reactFlowProps:z,renderNodes:j,children:A,...R}),y.jsx(Cn,{...K,children:G&&y.jsxs(n0,{openDelay:0,onClose:()=>V(null),children:[y.jsx(Nte,{view:G,pannable:!0,zoomable:!0,background:"dots",onNavigateTo:V,showNavigationButtons:!0,enableDynamicViewWalkthrough:!0,enableFocusMode:!0,enableRelationshipBrowser:!0,enableElementDetails:!0,enableRelationshipDetails:!0,enableSearch:!0,enableElementTags:!0,enableCompareWithLatest:!0,controls:!0,fitView:!0,...R,fitViewPadding:K3.withControls,...I,enableNotations:Y&&(I.enableNotations??!0),renderNodes:j,onLayoutTypeChange:L}),y.jsx(hr,{pos:"absolute",top:"4",right:"4",zIndex:"999",children:y.jsx(lr,{variant:"default",color:"gray",onClick:Q=>{Q.stopPropagation(),V(null)},children:y.jsx(lp,{})})})]})})]})})}var nQe=e=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid",viewBox:"0 0 512 131",...e,children:y.jsx("path",{fill:"#2396ED",d:"m140.598 25.715 3.892 2.818c6.77 5.46 10.662 11.625 11.508 18.67 7.277-1.409 16.584-.352 20.646 2.466l3.723 2.29-.677 1.41c-1.185 2.641-1.523 3.346-1.692 3.698-6.6 13.21-19.631 13.386-25.723 13.21-15.4 38.573-48.23 59.885-92.57 59.885-20.476 0-36.045-6.517-46.538-19.375C-.709 93.88-.709 71.862.475 64.817l.339-1.41h122.353c6.43 0 11.339-1.76 13.708-3.17-2.539-3.875-3.385-8.278-3.554-10.744-.508-7.045 1.185-14.443 4.57-19.727zm106.014 8.179q2.048 0 3.468 1.373t1.42 3.467v43.563q0 10.89-7.634 18.43-7.726 7.633-18.43 7.633-10.798 0-18.43-7.633-7.633-7.633-7.633-18.43t7.633-18.43q7.632-7.634 18.43-7.633 9.262 0 16.336 5.724V38.734q0-2.094 1.373-3.467t3.467-1.373m36.49 22.34q10.705 0 18.43 7.632 3.818 3.818 5.702 8.424 1.885 4.608 1.932 10.007 0 10.89-7.633 18.43-7.725 7.633-18.43 7.633-10.798 0-18.43-7.633-7.634-7.633-7.634-18.43t7.633-18.43q7.633-7.634 18.43-7.633m57.574 0q9.82 0 16.988 6.33 1.675 1.488 1.675 3.676 0 2.095-1.373 3.49-1.373 1.397-3.467 1.397a4.93 4.93 0 0 1-3.165-1.117q-2.373-2.002-4.98-3.025t-5.678-1.024q-3.397 0-6.376 1.28a16.7 16.7 0 0 0-5.213 3.49 16.2 16.2 0 0 0-3.514 5.19q-1.28 2.977-1.28 6.376 0 3.397 1.28 6.376a16.2 16.2 0 0 0 3.514 5.19 16.7 16.7 0 0 0 5.213 3.49q2.979 1.28 6.376 1.28 3.072 0 5.678-1 2.607-1.002 4.933-3.003 1.304-.977 3.072-1.024 2.094 0 3.467 1.373t1.373 3.468q0 2.048-1.535 3.583-7.214 6.33-16.988 6.33-10.798 0-18.43-7.633-7.633-7.633-7.633-18.43t7.633-18.43q7.632-7.634 18.43-7.633m29.044-22.34q2.001 0 3.42 1.42 1.42 1.418 1.42 3.467v36.302l27.832-18.105q1.163-.744 2.606-.744 1.024 0 1.908.372.885.372 1.536 1.047t1.047 1.56.396 1.86q0 2.607-1.862 3.864l-19.5 12.66 20.012 22.525q1.35 1.489 1.35 3.398 0 .977-.396 1.861a5.4 5.4 0 0 1-1.047 1.56q-.651.675-1.536 1.046a4.9 4.9 0 0 1-1.908.373q-1.955 0-3.258-1.257l-21.502-24.155-5.678 3.724v16.801q0 2.001-1.42 3.444t-3.42 1.443q-2.048 0-3.468-1.443t-1.42-3.444V38.781q0-2.048 1.42-3.468t3.468-1.42m71.489 22.34q10.704 0 18.43 7.632 3.816 3.77 5.725 8.401 1.908 4.63 1.908 10.03 0 2.094-1.42 3.467t-3.467 1.373h-36.86a15.9 15.9 0 0 0 2.327 4.677 16.3 16.3 0 0 0 3.606 3.63 16.7 16.7 0 0 0 4.562 2.351q2.49.838 5.189.838 3.072 0 5.631-.931 2.56-.93 4.748-2.793a5.1 5.1 0 0 1 3.21-1.21q2.095 0 3.468 1.373t1.373 3.468q0 2.047-1.396 3.49-7.214 6.33-17.034 6.33-10.798 0-18.43-7.633-7.633-7.633-7.633-18.43t7.633-18.43q7.632-7.634 18.43-7.633m57.48 0q2.048 0 4.398.279 2.35.28 4.329 1 1.978.721 3.28 1.978 1.305 1.257 1.304 3.258 0 1.025-.396 1.909a5.4 5.4 0 0 1-1.047 1.559q-.651.675-1.536 1.047a4.9 4.9 0 0 1-1.908.372q-.885 0-2.048-.512-2.932-1.163-6.376-1.163-3.397 0-6.376 1.28-2.978 1.28-5.19 3.49-2.21 2.211-3.49 5.19-1.28 2.977-1.28 6.376v21.223q0 2.001-1.42 3.42t-3.42 1.42q-2.048 0-3.467-1.42t-1.42-3.42V61.074q0-2.002 1.42-3.42 1.42-1.42 3.467-1.42 2.001 0 3.42 1.42 1.42 1.418 1.42 3.42v.93a26.7 26.7 0 0 1 7.586-4.281q4.095-1.49 8.75-1.49M225.436 65.96q-3.444 0-6.423 1.303t-5.166 3.514-3.467 5.19-1.28 6.329 1.28 6.33 3.467 5.189 5.166 3.514q2.979 1.302 6.423 1.303 3.397 0 6.376-1.303a16.6 16.6 0 0 0 5.19-3.538 16.8 16.8 0 0 0 3.49-5.189q1.28-2.955 1.28-6.306t-1.28-6.307a16.8 16.8 0 0 0-3.49-5.189 16.6 16.6 0 0 0-5.19-3.537q-2.978-1.303-6.376-1.303m57.667 0q-3.444 0-6.423 1.303t-5.166 3.514-3.468 5.19-1.28 6.329 1.28 6.33q1.281 2.978 3.468 5.189t5.166 3.514 6.423 1.303q3.397 0 6.376-1.303a16.6 16.6 0 0 0 5.19-3.538 16.8 16.8 0 0 0 3.49-5.189q1.28-2.955 1.28-6.306t-1.28-6.307a16.8 16.8 0 0 0-3.49-5.189 16.6 16.6 0 0 0-5.19-3.537q-2.979-1.303-6.376-1.303m158.106 0q-2.653 0-5.166.837a17 17 0 0 0-4.608 2.35 16.1 16.1 0 0 0-3.63 3.631 15.1 15.1 0 0 0-2.28 4.677h31.368a15.6 15.6 0 0 0-2.35-4.677 16.8 16.8 0 0 0-3.63-3.63 16.7 16.7 0 0 0-4.561-2.35 16 16 0 0 0-5.143-.838M32.629 42.27v17.614H14.014V42.272zm22 0v17.614H36.014V42.272zm22 0v17.614H58.013V42.272zm22 0v17.614H80.013V42.272zm22 0v17.614h-18.616V42.272zm-22-21.135v17.613H80.013V21.136zm-22 0v17.613H58.013V21.136zm-22 0v17.613H36.014V21.136zM98.629 0v17.613H80.013V0z"})}),oQe=e=>y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid",viewBox:"0 0 256 288",...e,children:[y.jsx("path",{fill:"#343741",d:"M0 143.82c0 12.44 1.744 24.441 4.71 35.956h175.067c19.856 0 35.955-16.1 35.955-35.956 0-19.865-16.1-35.955-35.955-35.955H4.71C1.744 119.371 0 131.38 0 143.82"}),y.jsx("path",{fill:"#FEC514",d:"M242.013 68.863c5.025-4.629 9.7-9.6 13.987-14.93C229.636 21.079 189.213 0 143.82 0 87 0 38.101 33.052 14.775 80.9h196.559c11.38 0 22.319-4.324 30.678-12.037"}),y.jsx("path",{fill:"#00BFB3",d:"M211.334 206.742H14.774c23.336 47.839 72.226 80.9 129.045 80.9 45.393 0 85.816-21.088 112.18-53.933a136.6 136.6 0 0 0-13.987-14.94c-8.36-7.721-19.299-12.027-30.678-12.027"})]}),aQe=e=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid",viewBox:"0 0 256 278",...e,children:y.jsx("path",{fill:"#47848F",d:"M90.317 59.645c-36.264-6.605-64.936.308-76.364 20.101-8.527 14.77-6.09 34.353 5.912 55.285a3.719 3.719 0 1 0 6.452-3.699c-10.811-18.856-12.915-35.757-5.923-47.867 9.493-16.442 35.068-22.608 68.59-16.503a3.719 3.719 0 1 0 1.333-7.317m53.63-33.684c-2.959 5.723-8.932 9.635-15.819 9.635-9.83 0-17.798-7.969-17.798-17.798C110.33 7.968 118.3 0 128.128 0c9.83 0 17.798 7.968 17.798 17.798q0 .386-.016.767c29.461 15.237 49.933 67.197 49.933 127.226 0 24.69-3.452 48.382-9.879 68.92a3.719 3.719 0 1 1-7.097-2.221c6.196-19.802 9.539-42.747 9.539-66.699 0-56.524-18.789-105.163-44.458-119.83M16.469 193.319a18 18 0 0 1 1.33-.05c9.83 0 17.798 7.97 17.798 17.799s-7.969 17.797-17.798 17.797C7.968 228.865 0 220.897 0 211.068c0-6.692 3.693-12.52 9.151-15.56-2.68-33.265 32.283-77.855 85.12-108.36 21.946-12.671 44.798-21.665 66.267-26.265a3.719 3.719 0 0 1 1.558 7.273c-20.69 4.433-42.817 13.141-64.107 25.433-49.759 28.728-82.66 70.134-81.52 99.73m206.26 26.546a17.7 17.7 0 0 1-2.324-8.797c0-9.83 7.969-17.798 17.798-17.798 9.83 0 17.798 7.968 17.798 17.798s-7.968 17.797-17.798 17.797a17.7 17.7 0 0 1-10.38-3.338c-28.392 16.703-82.625 8.184-133.66-21.282-21.726-12.543-40.776-27.657-55.439-43.77a3.719 3.719 0 0 1 5.5-5.006c14.134 15.532 32.581 30.167 53.657 42.335 48.165 27.808 98.886 36.084 124.847 22.061m-1.166-63.914a3.719 3.719 0 0 1-5.676-4.805c21.946-25.926 29.34-51.086 19.867-67.492-6.876-11.91-22.159-18.52-43.362-18.796a3.719 3.719 0 1 1 .097-7.437c23.575.307 41.315 7.98 49.706 22.514 11.404 19.752 3.113 47.965-20.632 76.016M72.564 221.49a3.719 3.719 0 0 1 7.001-2.507c11.476 32.045 29.591 51.082 48.563 51.082 13.645 0 26.91-9.774 37.71-27.74a3.719 3.719 0 0 1 6.375 3.832c-12.018 19.99-27.428 31.345-44.085 31.345-22.839 0-43.15-21.344-55.564-56.011m175.999-10.423c0-5.722-4.639-10.361-10.36-10.361-5.723 0-10.362 4.639-10.362 10.36 0 5.723 4.64 10.361 10.361 10.361s10.36-4.638 10.36-10.36m-230.765 10.36c5.722 0 10.36-4.638 10.36-10.36s-4.638-10.361-10.36-10.361-10.36 4.639-10.36 10.36c0 5.723 4.638 10.361 10.36 10.361m110.33-193.27c5.722 0 10.36-4.638 10.36-10.36s-4.638-10.36-10.36-10.36-10.36 4.638-10.36 10.36 4.638 10.36 10.36 10.36m2.718 130.22c-6.951 1.502-13.8-2.916-15.305-9.868-1.499-6.952 2.916-13.8 9.868-15.305 6.951-1.502 13.8 2.915 15.305 9.867 1.502 6.952-2.916 13.8-9.868 15.305"})}),iQe=e=>y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid",viewBox:"0 0 256 108",...e,children:[y.jsx("path",{fill:"#2F2707",d:"M152.984 37.214c-5.597 0-9.765 2.748-9.765 9.362 0 4.983 2.747 8.443 9.463 8.443 5.693 0 9.56-3.355 9.56-8.65 0-6-3.46-9.155-9.258-9.155m-11.19 46.701c-1.325 1.625-2.645 3.353-2.645 5.39 0 4.067 5.186 5.291 12.31 5.291 5.9 0 13.938-.414 13.938-5.9 0-3.261-3.867-3.462-8.753-3.768zm30.113-46.394c1.828 2.34 3.764 5.597 3.764 10.276 0 11.292-8.851 17.904-21.667 17.904-3.259 0-6.209-.406-8.038-.914l-3.359 5.39 9.969.61c17.602 1.122 27.975 1.632 27.975 15.157 0 11.702-10.272 18.311-27.975 18.311-18.413 0-25.433-4.68-25.433-12.716 0-4.578 2.035-7.015 5.596-10.378-3.358-1.419-4.476-3.961-4.476-6.71 0-2.24 1.118-4.273 2.952-6.208 1.83-1.93 3.864-3.865 6.306-6.103-4.984-2.442-8.75-7.732-8.75-15.262 0-11.697 7.733-19.731 23.295-19.731 4.376 0 7.022.402 9.362 1.017h19.84v8.644zM199.166 19.034c-5.8 0-9.157-3.36-9.157-9.161 0-5.793 3.356-8.95 9.157-8.95 5.9 0 9.258 3.157 9.258 8.95 0 5.801-3.357 9.161-9.258 9.161M186.04 80.171v-8.033l5.19-.71c1.425-.205 1.627-.509 1.627-2.038V39.48c0-1.116-.304-1.832-1.325-2.134l-5.492-1.935 1.118-8.238h21.061V69.39c0 1.63.098 1.833 1.629 2.039l5.188.71v8.032zM255.267 76.227c-4.376 2.135-10.785 4.068-16.586 4.068-12.106 0-16.682-4.878-16.682-16.38V37.264c0-.61 0-1.017-.817-1.017h-7.12V27.19c8.955-1.02 12.513-5.496 13.632-16.585h9.666v14.45c0 .71 0 1.017.815 1.017h14.343v10.173H237.36v24.313c0 6.002 1.426 8.34 6.917 8.34 2.852 0 5.799-.71 8.24-1.626z"}),y.jsx("path",{fill:"#DE4C36",d:"M104.529 49.53 58.013 3.017a6.86 6.86 0 0 0-9.703 0l-9.659 9.66 12.253 12.252a8.15 8.15 0 0 1 8.383 1.953 8.16 8.16 0 0 1 1.936 8.434L73.03 47.125c2.857-.984 6.154-.347 8.435 1.938a8.16 8.16 0 0 1 0 11.545 8.164 8.164 0 0 1-13.324-8.88L57.129 40.716l-.001 28.98a8.3 8.3 0 0 1 2.159 1.544 8.164 8.164 0 0 1 0 11.547c-3.19 3.19-8.36 3.19-11.545 0a8.164 8.164 0 0 1 2.672-13.328v-29.25a8.1 8.1 0 0 1-2.672-1.782c-2.416-2.413-2.997-5.958-1.759-8.925l-12.078-12.08L2.011 49.314a6.863 6.863 0 0 0 0 9.706l46.516 46.514a6.86 6.86 0 0 0 9.703 0l46.299-46.297a6.866 6.866 0 0 0 0-9.707"})]}),lQe=e=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid",viewBox:"0 0 512 139",...e,children:y.jsx("path",{fill:"#11110F",d:"M98.696 59.312h-43.06c-1.111 0-2.013.903-2.013 2.014v21.053c0 1.111.902 2.015 2.012 2.015h16.799v26.157s-3.772 1.286-14.2 1.286c-12.303 0-29.49-4.496-29.49-42.288 0-37.8 17.897-42.773 34.698-42.773 14.543 0 20.809 2.56 24.795 3.794 1.253.384 2.412-.863 2.412-1.975l4.803-20.342c0-.52-.176-1.146-.769-1.571C93.064 5.527 83.187 0 58.233 0 29.488 0 0 12.23 0 71.023c0 58.795 33.76 67.556 62.21 67.556 23.555 0 37.844-10.066 37.844-10.066.59-.325.653-1.148.653-1.526V61.326c0-1.11-.9-2.014-2.01-2.014m221.8-51.953c0-1.12-.888-2.024-1.999-2.024h-24.246a2.016 2.016 0 0 0-2.008 2.024l.006 46.856h-37.792V7.36c0-1.12-.892-2.024-2.001-2.024H228.21a2.014 2.014 0 0 0-2.003 2.024v126.872c0 1.12.9 2.03 2.003 2.03h24.245c1.109 0 2-.91 2-2.03V79.964h37.793l-.066 54.267c0 1.12.9 2.03 2.008 2.03h24.304c1.11 0 1.998-.91 2-2.03zM144.37 24.322c0-8.73-7-15.786-15.635-15.786-8.627 0-15.632 7.055-15.632 15.786 0 8.72 7.005 15.795 15.632 15.795 8.635 0 15.635-7.075 15.635-15.795m-1.924 83.212V48.97c0-1.112-.897-2.021-2.006-2.021h-24.169c-1.109 0-2.1 1.144-2.1 2.256v83.905c0 2.466 1.536 3.199 3.525 3.199h21.775c2.39 0 2.975-1.173 2.975-3.239zM413.162 46.95h-24.06c-1.104 0-2.002.909-2.002 2.028v62.21s-6.112 4.472-14.788 4.472-10.977-3.937-10.977-12.431v-54.25c0-1.12-.897-2.03-2.001-2.03h-24.419c-1.102 0-2.005.91-2.005 2.03v58.358c0 25.23 14.063 31.403 33.408 31.403 15.87 0 28.665-8.767 28.665-8.767s.61 4.62.885 5.168c.276.547.994 1.098 1.77 1.098l15.535-.068c1.102 0 2.005-.911 2.005-2.025l-.008-85.168c0-1.119-.9-2.028-2.008-2.028m55.435 68.758c-8.345-.254-14.006-4.041-14.006-4.041V71.488s5.585-3.423 12.436-4.035c8.664-.776 17.013 1.841 17.013 22.51 0 21.795-3.768 26.096-15.443 25.744m9.49-71.483c-13.665 0-22.96 6.097-22.96 6.097V7.359a2.01 2.01 0 0 0-2-2.024h-24.315a2.013 2.013 0 0 0-2.004 2.024v126.872c0 1.12.898 2.03 2.007 2.03h16.87c.76 0 1.335-.39 1.76-1.077.419-.682 1.024-5.85 1.024-5.85s9.942 9.422 28.763 9.422c22.096 0 34.768-11.208 34.768-50.315s-20.238-44.217-33.913-44.217M212.229 46.73h-18.187l-.028-24.027c0-.909-.468-1.364-1.52-1.364H167.71c-.964 0-1.481.424-1.481 1.35v24.83s-12.42 2.998-13.26 3.24a2.01 2.01 0 0 0-1.452 1.934v15.603c0 1.122.896 2.027 2.005 2.027h12.707v37.536c0 27.88 19.556 30.619 32.753 30.619 6.03 0 13.243-1.937 14.434-2.376.72-.265 1.138-1.01 1.138-1.82l.02-17.164c0-1.119-.945-2.025-2.01-2.025-1.06 0-3.77.431-6.562.431-8.933 0-11.96-4.154-11.96-9.53l-.001-35.67h18.188a2.014 2.014 0 0 0 2.006-2.028V48.753c0-1.12-.897-2.022-2.006-2.022"})}),sQe=e=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid",viewBox:"0 0 512 192",...e,children:y.jsx("path",{fill:"#00ACD7",d:"m292.533 13.295 1.124.75c13.212 8.725 22.685 20.691 28.917 35.15 1.496 2.243.499 3.49-2.493 4.237l-5.063 1.296c-11.447 2.949-20.53 5.429-31.827 8.378l-6.443 1.678c-2.32.574-2.96.333-5.428-2.477l-.348-.399c-3.519-3.988-6.155-6.652-10.817-9.03l-.899-.443c-15.705-7.727-30.911-5.484-45.12 3.74-16.952 10.968-25.677 27.172-25.428 47.364.25 19.942 13.96 36.395 33.654 39.137 16.951 2.244 31.16-3.739 42.378-16.452 2.244-2.743 4.238-5.734 6.73-9.224H223.36c-5.235 0-6.481-3.24-4.736-7.478l.864-2.035c3.204-7.454 8.173-18.168 11.4-24.294l.704-1.319c.862-1.494 2.612-3.513 5.977-3.513h80.224c3.603-11.415 9.449-22.201 17.246-32.407 18.198-23.931 40.135-36.396 69.8-41.63 25.427-4.488 49.359-1.995 71.046 12.713 19.694 13.461 31.909 31.66 35.15 55.59 4.237 33.654-5.485 61.075-28.668 84.508-16.453 16.702-36.645 27.172-59.829 31.908-6.73 1.247-13.461 1.496-19.942 2.244-22.685-.499-43.376-6.98-60.826-21.937-12.273-10.61-20.727-23.648-24.928-38.828a105 105 0 0 1-10.47 16.89c-17.949 23.683-41.381 38.39-71.046 42.38-24.43 3.24-47.115-1.497-67.058-16.454-18.447-13.96-28.917-32.407-31.66-55.34-3.24-27.173 4.737-51.603 21.19-73.041 17.7-23.184 41.132-37.891 69.8-43.126 22.999-4.16 45.037-1.595 64.936 11.464M411.12 49.017l-.798.178c-23.183 5.235-38.14 19.942-43.624 43.375-4.488 19.444 4.985 39.138 22.934 47.115 13.71 5.983 27.421 5.235 40.633-1.496 19.694-10.22 30.413-26.175 31.66-47.613-.25-3.24-.25-5.734-.749-8.227-4.436-24.401-26.664-38.324-50.056-33.332M116.416 94.564c.997 0 1.496.748 1.496 1.745l-.499 5.983c0 .997-.997 1.745-1.745 1.745l-54.344-.249c-.997 0-1.246-.748-.748-1.496l3.49-6.232c.499-.748 1.496-1.496 2.493-1.496zM121.9 71.63c.997 0 1.496.748 1.247 1.496l-1.995 5.983c-.249.997-1.246 1.495-2.243 1.495l-117.912.25c-.997 0-1.246-.499-.748-1.247l5.235-6.73c.499-.748 1.745-1.247 2.742-1.247zm12.963-22.934c.997 0 1.246.748.748 1.496l-4.238 6.481c-.499.748-1.745 1.496-2.493 1.496l-90.24-.25c-.998 0-1.247-.498-.749-1.246l5.235-6.73c.499-.748 1.745-1.247 2.742-1.247z"})}),cQe=e=>y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid",viewBox:"0 0 256 279",...e,children:[y.jsx("defs",{children:y.jsxs("linearGradient",{id:"Grafana_svg__a",x1:"49.995%",x2:"49.995%",y1:"122.45%",y2:"31.139%",children:[y.jsx("stop",{offset:"0%",stopColor:"#FFF100"}),y.jsx("stop",{offset:"100%",stopColor:"#F05A28"})]})}),y.jsx("path",{fill:"url(#Grafana_svg__a)",d:"M255.59 122.775c-.46-4.675-1.226-10.04-2.759-16.017a98 98 0 0 0-7.204-19.16 106.7 106.7 0 0 0-13.412-20.54c-2.222-2.681-4.675-5.287-7.28-7.816 3.908-15.558-4.752-29.046-4.752-29.046-14.945-.92-24.448 4.675-27.973 7.204-.613-.23-1.15-.537-1.763-.767-2.529-.996-5.135-1.992-7.894-2.835a130 130 0 0 0-8.277-2.3c-2.835-.69-5.67-1.226-8.583-1.686-.537-.076-.996-.153-1.533-.23C157.646 8.738 138.946 0 138.946 0c-20.922 13.258-24.831 31.805-24.831 31.805s-.077.383-.23 1.073c-1.15.307-2.299.69-3.449.996-1.609.46-3.218 1.073-4.751 1.686a123 123 0 0 0-4.752 1.916 117 117 0 0 0-9.35 4.599c-2.989 1.686-5.9 3.525-8.737 5.441l-.766-.307c-28.97-11.036-54.643 2.223-54.643 2.223-2.376 30.809 11.572 50.198 14.331 53.724-.69 1.916-1.303 3.832-1.916 5.748-2.146 6.974-3.755 14.101-4.751 21.535-.154 1.073-.307 2.146-.384 3.219C7.894 146.916 0 173.97 0 173.97c22.302 25.674 48.359 27.283 48.359 27.283l.077-.076c3.295 5.9 7.127 11.495 11.419 16.783a112 112 0 0 0 5.671 6.362c-8.124 23.298 1.15 42.61 1.15 42.61 24.83.92 41.155-10.882 44.603-13.564a85 85 0 0 0 7.511 2.222 109.7 109.7 0 0 0 23.298 3.449c1.916.076 3.909.153 5.825.076h2.759l1.226-.076v.076c11.726 16.708 32.265 19.084 32.265 19.084 14.638-15.405 15.48-30.733 15.48-34.028v-1.38c3.066-2.145 5.979-4.445 8.738-6.974 5.824-5.288 10.959-11.342 15.25-17.857l1.15-1.839c16.554.92 28.28-10.27 28.28-10.27-2.759-17.243-12.569-25.673-14.638-27.283 0 0-.077-.076-.23-.153s-.153-.153-.153-.153c-.077-.077-.23-.154-.383-.23.076-1.073.153-2.07.23-3.142.153-1.84.153-3.756.153-5.595v-2.913l-.077-1.149-.076-1.533c0-.536-.077-.996-.154-1.456-.076-.46-.076-.996-.153-1.456l-.153-1.456-.23-1.456c-.307-1.916-.613-3.756-1.073-5.672-1.763-7.433-4.675-14.484-8.43-20.845a70.4 70.4 0 0 0-14.025-16.707c-5.365-4.752-11.42-8.584-17.704-11.42-6.36-2.835-12.952-4.675-19.543-5.518-3.295-.46-6.59-.613-9.886-.536h-2.453l-1.226.077c-.46 0-.92.076-1.303.076a52 52 0 0 0-4.981.69c-6.591 1.226-12.799 3.602-18.24 6.897s-10.193 7.358-14.025 11.956a54.7 54.7 0 0 0-8.89 15.021 52.9 52.9 0 0 0-3.525 16.094c-.077 1.303-.077 2.683-.077 3.986v.996l.077 1.073c.076.613.076 1.303.153 1.916.23 2.682.766 5.288 1.456 7.74 1.456 4.982 3.755 9.503 6.59 13.335s6.285 6.975 9.887 9.504c3.602 2.452 7.51 4.215 11.343 5.364 3.832 1.15 7.664 1.61 11.266 1.61h1.993c.23 0 .46 0 .689-.077.383 0 .766-.077 1.15-.077.076 0 .23 0 .306-.076l.383-.077c.23 0 .46-.076.69-.076.46-.077.843-.154 1.303-.23s.843-.154 1.226-.307c.843-.153 1.61-.46 2.376-.69 1.533-.536 3.066-1.15 4.368-1.839 1.38-.69 2.606-1.533 3.832-2.3.307-.23.69-.459.997-.766 1.226-.996 1.456-2.835.46-4.061-.844-1.073-2.376-1.38-3.603-.69l-.92.46a25 25 0 0 1-3.295 1.38c-1.15.382-2.375.689-3.602.919-.613.076-1.226.153-1.916.23-.306 0-.613.076-.996.076h-1.84c-.383 0-.766 0-1.149-.076h-.46c-.153 0-.383 0-.536-.077-.383-.077-.69-.077-1.073-.153-2.836-.383-5.671-1.226-8.354-2.453a29.3 29.3 0 0 1-7.74-5.058c-2.376-2.146-4.445-4.675-6.055-7.587s-2.759-6.131-3.295-9.503c-.23-1.686-.383-3.449-.307-5.135 0-.46.077-.92.077-1.38v-.613c0-.23.077-.46.077-.69.076-.919.23-1.839.383-2.758 1.303-7.358 4.981-14.562 10.653-20.003 1.456-1.38 2.988-2.606 4.598-3.755a31.7 31.7 0 0 1 5.211-2.99 36 36 0 0 1 5.672-2.068c1.915-.537 3.908-.844 5.977-1.073.997-.077 1.993-.154 3.066-.154h2.376l.843.077c2.222.153 4.368.46 6.514.996 4.292.92 8.507 2.53 12.415 4.675 7.818 4.369 14.485 11.113 18.547 19.237 2.07 4.061 3.525 8.43 4.215 12.951.153 1.15.307 2.3.383 3.45l.077.842.077.843v3.296c0 .536-.077 1.456-.077 1.992-.077 1.227-.23 2.53-.383 3.756s-.383 2.452-.613 3.678a50 50 0 0 1-.843 3.602 64 64 0 0 1-2.3 7.128 62.4 62.4 0 0 1-7.204 13.105c-5.9 8.124-13.948 14.715-23.144 18.93-4.599 2.069-9.427 3.602-14.408 4.368-2.453.46-4.982.69-7.511.766h-3.832a36 36 0 0 1-4.062-.23c-5.365-.383-10.653-1.379-15.864-2.835-5.135-1.456-10.116-3.525-14.868-5.978-9.427-5.058-17.933-11.956-24.524-20.31a79 79 0 0 1-8.584-13.334 79 79 0 0 1-5.671-14.638c-1.38-5.058-2.223-10.193-2.606-15.405l-.077-.996v-6.821c.077-2.529.307-5.211.614-7.817.306-2.606.766-5.288 1.302-7.894.537-2.605 1.15-5.211 1.916-7.817a103 103 0 0 1 5.442-14.791c4.368-9.35 10.04-17.704 16.86-24.371 1.686-1.686 3.449-3.22 5.288-4.752a78 78 0 0 1 5.748-4.138c1.916-1.303 3.985-2.453 6.055-3.526a40 40 0 0 1 3.142-1.533l3.219-1.379c2.146-.92 4.368-1.686 6.667-2.376.537-.153 1.15-.306 1.686-.536.537-.154 1.15-.307 1.686-.46 1.15-.307 2.3-.613 3.45-.843.536-.153 1.149-.23 1.762-.383.613-.154 1.15-.23 1.763-.384.613-.076 1.15-.23 1.762-.306l.843-.153.92-.154c.613-.076 1.15-.153 1.763-.23.69-.076 1.302-.153 1.992-.23.537-.076 1.456-.153 1.993-.23.383-.076.843-.076 1.226-.153l.843-.076.383-.077h.46c.69-.077 1.303-.077 1.993-.153l.996-.077h.767c.536 0 1.149-.076 1.685-.076a99 99 0 0 1 6.745 0c4.445.153 8.813.69 13.028 1.456 8.507 1.61 16.478 4.291 23.758 7.893 7.28 3.526 13.719 7.894 19.39 12.646.383.306.69.613 1.073.92.306.306.69.613.996.92.69.612 1.303 1.225 1.993 1.838.69.614 1.303 1.227 1.916 1.84a44 44 0 0 1 1.839 1.916c2.376 2.529 4.598 5.058 6.59 7.664a99 99 0 0 1 9.734 15.25l.46.92.46.92c.306.613.613 1.226.843 1.84.306.613.536 1.149.843 1.762.23.613.536 1.15.766 1.763.92 2.299 1.84 4.521 2.53 6.59 1.149 3.373 1.992 6.362 2.682 8.967a2.043 2.043 0 0 0 2.299 1.61c1.15-.077 1.992-.996 1.992-2.146.077-2.759 0-6.054-.383-9.81"})]}),dQe=e=>y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid",viewBox:"0 0 256 346",...e,children:[y.jsx("path",{fill:"#5382A1",d:"M82.554 267.473s-13.198 7.675 9.393 10.272c27.369 3.122 41.356 2.675 71.517-3.034 0 0 7.93 4.972 19.003 9.279-67.611 28.977-153.019-1.679-99.913-16.517M74.292 229.659s-14.803 10.958 7.805 13.296c29.236 3.016 52.324 3.263 92.276-4.43 0 0 5.526 5.602 14.215 8.666-81.747 23.904-172.798 1.885-114.296-17.532"}),y.jsx("path",{fill:"#E76F00",d:"M143.942 165.515c16.66 19.18-4.377 36.44-4.377 36.44s42.301-21.837 22.874-49.183c-18.144-25.5-32.059-38.172 43.268-81.858 0 0-118.238 29.53-61.765 94.6"}),y.jsx("path",{fill:"#5382A1",d:"M233.364 295.442s9.767 8.047-10.757 14.273c-39.026 11.823-162.432 15.393-196.714.471-12.323-5.36 10.787-12.8 18.056-14.362 7.581-1.644 11.914-1.337 11.914-1.337-13.705-9.655-88.583 18.957-38.034 27.15 137.853 22.356 251.292-10.066 215.535-26.195M88.9 190.48s-62.771 14.91-22.228 20.323c17.118 2.292 51.243 1.774 83.03-.89 25.978-2.19 52.063-6.85 52.063-6.85s-9.16 3.923-15.787 8.448c-63.744 16.765-186.886 8.966-151.435-8.183 29.981-14.492 54.358-12.848 54.358-12.848M201.506 253.422c64.8-33.672 34.839-66.03 13.927-61.67-5.126 1.066-7.411 1.99-7.411 1.99s1.903-2.98 5.537-4.27c41.37-14.545 73.187 42.897-13.355 65.647 0 .001 1.003-.895 1.302-1.697"}),y.jsx("path",{fill:"#E76F00",d:"M162.439.371s35.887 35.9-34.037 91.101c-56.071 44.282-12.786 69.53-.023 98.377-32.73-29.53-56.75-55.526-40.635-79.72C111.395 74.612 176.918 57.393 162.439.37"}),y.jsx("path",{fill:"#5382A1",d:"M95.268 344.665c62.199 3.982 157.712-2.209 159.974-31.64 0 0-4.348 11.158-51.404 20.018-53.088 9.99-118.564 8.824-157.399 2.421.001 0 7.95 6.58 48.83 9.201"})]}),uQe=e=>y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid",viewBox:"0 0 256 249",...e,children:[y.jsx("path",{fill:"#326DE6",d:"M82.085 244.934c-5.946 0-11.561-2.642-15.36-7.432L8.92 165.657c-3.799-4.79-5.285-10.9-3.799-16.847l20.645-89.682c1.321-5.946 5.285-10.736 10.736-13.378l83.571-39.97c2.643-1.32 5.616-1.981 8.589-1.981s5.945.66 8.588 1.982l83.572 39.804c5.45 2.642 9.414 7.432 10.735 13.378l20.645 89.682c1.322 5.946 0 12.057-3.798 16.847l-57.807 71.845c-3.799 4.624-9.414 7.432-15.36 7.432z"}),y.jsx("path",{fill:"#FFF",d:"M128.495 7.928c2.313 0 4.625.495 6.772 1.486l83.572 39.804c4.294 2.147 7.597 6.111 8.588 10.736l20.645 89.682c1.156 4.79 0 9.745-3.138 13.543l-57.806 71.846c-2.973 3.798-7.598 5.945-12.387 5.945H82.085c-4.79 0-9.414-2.147-12.387-5.945l-57.806-71.846c-2.973-3.798-4.13-8.753-3.138-13.543l20.645-89.682c1.156-4.79 4.294-8.754 8.588-10.736L121.56 9.25c2.147-.826 4.624-1.321 6.936-1.321m0-7.763c-3.468 0-6.936.826-10.24 2.312l-83.571 39.97c-6.607 3.138-11.231 8.918-12.883 16.02L1.156 148.15c-1.651 7.102 0 14.369 4.625 20.15l57.806 71.845c4.46 5.615 11.231 8.753 18.333 8.753h92.655c7.102 0 13.874-3.138 18.333-8.753l57.807-71.846c4.624-5.615 6.276-13.047 4.624-20.15l-20.645-89.682c-1.651-7.102-6.276-12.882-12.882-16.02L138.57 2.476C135.432.991 131.964.165 128.495.165"}),y.jsx("path",{fill:"#FFF",d:"M212.232 142.534q-.248 0 0 0h-.165c-.165 0-.33 0-.33-.165-.33 0-.66-.165-.991-.165-1.156-.165-2.147-.33-3.138-.33-.496 0-.991 0-1.652-.166h-.165c-3.468-.33-6.276-.66-8.919-1.486-1.156-.496-1.486-1.156-1.817-1.817 0-.165-.165-.165-.165-.33l-2.147-.66a65.3 65.3 0 0 0-1.156-23.289 68 68 0 0 0-9.249-21.636l1.652-1.486v-.33c0-.826.165-1.652.825-2.478 1.982-1.817 4.46-3.303 7.433-5.12.495-.33.99-.495 1.486-.826.991-.495 1.817-.99 2.808-1.651.165-.165.495-.33.826-.66.165-.166.33-.166.33-.331 2.312-1.982 2.808-5.285 1.156-7.433-.826-1.156-2.312-1.816-3.799-1.816-1.32 0-2.477.495-3.633 1.321l-.33.33c-.33.165-.496.496-.826.661-.826.826-1.487 1.486-2.147 2.312-.33.33-.66.826-1.156 1.156-2.313 2.478-4.46 4.46-6.607 5.946q-.742.495-1.486.496c-.33 0-.661 0-.991-.166h-.33l-1.983 1.322c-2.147-2.312-4.459-4.294-6.771-6.276a65.96 65.96 0 0 0-34.519-13.709l-.165-2.147-.33-.33c-.496-.496-1.156-.991-1.322-2.147-.165-2.643.166-5.616.496-8.919v-.165c0-.496.165-1.156.33-1.652.165-.99.33-1.982.496-3.138v-1.486c0-2.973-2.313-5.45-5.12-5.45-1.322 0-2.643.66-3.634 1.651-.99.991-1.486 2.312-1.486 3.799v1.321c0 1.156.165 2.147.495 3.138.165.496.165.991.33 1.652v.165c.33 3.303.826 6.276.496 8.919-.165 1.156-.826 1.651-1.321 2.147l-.33.33-.166 2.147c-2.973.33-5.946.66-8.919 1.321-12.717 2.808-23.948 9.25-32.701 18.498l-1.652-1.156h-.33c-.33 0-.661.165-.991.165q-.743 0-1.487-.495c-2.147-1.486-4.294-3.634-6.606-6.111-.33-.33-.66-.826-1.156-1.156-.661-.826-1.322-1.487-2.148-2.312-.165-.166-.495-.33-.825-.661-.165-.165-.33-.165-.33-.33a5.77 5.77 0 0 0-3.634-1.322c-1.487 0-2.973.661-3.799 1.817-1.652 2.147-1.156 5.45 1.156 7.432.165 0 .165.166.33.166.33.165.496.495.826.66.991.66 1.817 1.156 2.808 1.652.496.165.991.495 1.487.826 2.972 1.816 5.45 3.303 7.432 5.12.826.825.826 1.651.826 2.477v.33l1.651 1.487c-.33.495-.66.826-.826 1.321-8.258 13.048-11.396 28.408-9.249 43.603l-2.147.66c0 .166-.165.166-.165.33-.33.661-.826 1.322-1.817 1.817-2.477.826-5.45 1.157-8.918 1.487h-.166c-.495 0-1.156 0-1.651.165-.991 0-1.982.165-3.138.33-.33 0-.66.166-.991.166-.165 0-.33 0-.496.165-2.973.66-4.79 3.468-4.294 6.11.496 2.313 2.643 3.8 5.285 3.8.496 0 .826 0 1.322-.166.165 0 .33 0 .33-.165.33 0 .66-.165.99-.165 1.157-.33 1.983-.66 2.974-1.156.495-.165.99-.496 1.486-.66h.165c3.138-1.157 5.946-2.148 8.589-2.478h.33c.991 0 1.652.495 2.147.826.165 0 .165.165.33.165l2.313-.33c3.964 12.221 11.561 23.122 21.636 31.05 2.312 1.816 4.624 3.303 7.102 4.79l-.991 2.146c0 .166.165.166.165.33.33.661.66 1.487.33 2.643-.99 2.478-2.477 4.955-4.294 7.763v.165c-.33.496-.66.826-.99 1.321-.661.826-1.157 1.652-1.818 2.643-.165.165-.33.495-.495.826 0 .165-.165.33-.165.33-1.321 2.808-.33 5.946 2.147 7.102q.99.496 1.982.496c1.982 0 3.964-1.322 4.955-3.139 0-.165.165-.33.165-.33.165-.33.33-.66.495-.826.496-1.156.661-1.982.991-2.973l.496-1.486c1.156-3.303 1.982-5.946 3.468-8.258.66-.991 1.487-1.156 2.147-1.487.165 0 .165 0 .33-.165l1.157-2.147c7.267 2.808 15.195 4.294 23.122 4.294 4.79 0 9.745-.495 14.37-1.651a73 73 0 0 0 8.588-2.478l.99 1.817c.166 0 .166 0 .331.165.826.165 1.486.496 2.147 1.487 1.321 2.312 2.312 5.12 3.468 8.258v.165l.496 1.486c.33.991.495 1.982.99 2.973.166.33.331.496.496.826 0 .165.166.33.166.33.99 1.982 2.972 3.139 4.954 3.139q.992 0 1.982-.496c1.156-.66 2.147-1.652 2.478-2.973.33-1.321.33-2.808-.33-4.129 0-.165-.166-.165-.166-.33-.165-.33-.33-.66-.495-.826-.496-.991-1.156-1.817-1.817-2.643-.33-.495-.66-.825-.99-1.32v-.166c-1.818-2.808-3.47-5.285-4.295-7.763-.33-1.156 0-1.816.165-2.642 0-.165.165-.165.165-.33l-.826-1.982c8.754-5.12 16.186-12.388 21.802-21.306 2.973-4.625 5.285-9.745 6.936-14.865l1.982.33c.166 0 .166-.165.33-.165.661-.33 1.157-.825 2.148-.825h.33c2.643.33 5.45 1.32 8.589 2.477h.165c.495.165.99.495 1.486.66.991.496 1.817.826 2.973 1.157.33 0 .66.165.991.165.165 0 .33 0 .495.165.496.165.826.165 1.322.165 2.477 0 4.624-1.651 5.285-3.798 0-1.982-1.817-4.625-4.79-5.45m-76.47-8.093-7.267 3.469-7.267-3.469-1.816-7.762 4.954-6.276h8.093l4.955 6.276zm43.108-17.176a52.1 52.1 0 0 1 1.156 16.68l-25.27-7.266c-2.312-.66-3.633-2.973-3.138-5.285.165-.661.496-1.322.991-1.817l19.985-18.003c2.807 4.625 4.954 9.91 6.276 15.69m-14.204-25.6-21.636 15.36c-1.817 1.156-4.295.825-5.781-.991-.495-.496-.66-1.157-.826-1.817l-1.486-26.922a50.13 50.13 0 0 1 29.729 14.37M116.769 78.12c1.817-.33 3.468-.66 5.285-.99l-1.486 26.425c-.165 2.312-1.982 4.294-4.46 4.294-.66 0-1.486-.165-1.982-.495L92.16 91.665c6.772-6.772 15.195-11.397 24.609-13.544m-32.537 23.453 19.654 17.507c1.817 1.487 1.982 4.294.496 6.111-.496.66-1.156 1.156-1.982 1.322l-25.6 7.432c-.991-11.231 1.486-22.627 7.432-32.372m-4.46 44.759 26.262-4.46c2.147-.165 4.129 1.322 4.624 3.469.165.99.165 1.817-.165 2.643l-10.075 24.278c-9.249-5.946-16.681-15.03-20.645-25.93m60.285 32.867c-3.799.826-7.598 1.321-11.562 1.321-5.78 0-11.396-.99-16.68-2.642l13.047-23.618c1.321-1.487 3.468-2.147 5.285-1.156a7 7 0 0 1 1.982 1.816l12.717 22.958c-1.486.495-3.138.826-4.79 1.321m32.206-22.957c-4.129 6.606-9.58 11.891-15.855 16.02l-10.405-24.94c-.496-1.981.33-4.128 2.312-5.12.66-.33 1.486-.495 2.312-.495l26.426 4.46c-.991 3.633-2.643 6.937-4.79 10.075"})]}),pQe=e=>y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid",viewBox:"0 0 256 291",...e,children:[y.jsx("path",{fill:"#009639",d:"M2.054 218.187c1.32 2.347 3.227 4.108 5.575 5.428l112.962 65.137c4.695 2.787 10.416 2.787 14.964 0l112.963-65.137c4.695-2.64 7.482-7.629 7.482-13.057V80.284c0-5.428-2.787-10.416-7.482-13.056L135.555 2.09c-4.694-2.788-10.416-2.788-14.964 0L7.63 67.228C2.787 69.868 0 74.856 0 80.284v130.42c0 2.642.587 5.136 2.054 7.483"}),y.jsx("path",{fill:"#FFF",d:"M91.837 195.154a14.463 14.463 0 0 1-14.524 14.524 14.463 14.463 0 0 1-14.523-14.524V95.542c0-7.776 6.895-14.084 16.43-14.084 6.896 0 14.965 2.787 19.806 8.802l4.4 5.282 60.737 72.618V95.835a14.463 14.463 0 0 1 14.524-14.524 14.463 14.463 0 0 1 14.523 14.524v99.613c0 7.775-6.895 14.083-16.43 14.083-6.896 0-14.965-2.787-19.806-8.802l-65.137-77.754z"})]}),hQe=e=>y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid",viewBox:"0 0 256 264",...e,children:[y.jsx("path",{d:"M255.008 158.086c-1.535-4.649-5.556-7.887-10.756-8.664-2.452-.366-5.26-.21-8.583.475-5.792 1.195-10.089 1.65-13.225 1.738 11.837-19.985 21.462-42.775 27.003-64.228 8.96-34.689 4.172-50.492-1.423-57.64C233.217 10.847 211.614.683 185.552.372c-13.903-.17-26.108 2.575-32.475 4.549-5.928-1.046-12.302-1.63-18.99-1.738-12.537-.2-23.614 2.533-33.079 8.15-5.24-1.772-13.65-4.27-23.362-5.864-22.842-3.75-41.252-.828-54.718 8.685C6.622 25.672-.937 45.684.461 73.634c.444 8.874 5.408 35.874 13.224 61.48 4.492 14.718 9.282 26.94 14.237 36.33 7.027 13.315 14.546 21.156 22.987 23.972 4.731 1.576 13.327 2.68 22.368-4.85 1.146 1.388 2.675 2.767 4.704 4.048 2.577 1.625 5.728 2.953 8.875 3.74 11.341 2.835 21.964 2.126 31.027-1.848.056 1.612.099 3.152.135 4.482.06 2.157.12 4.272.199 6.25.537 13.374 1.447 23.773 4.143 31.049.148.4.347 1.01.557 1.657 1.345 4.118 3.594 11.012 9.316 16.411 5.925 5.593 13.092 7.308 19.656 7.308 3.292 0 6.433-.432 9.188-1.022 9.82-2.105 20.973-5.311 29.041-16.799 7.628-10.86 11.336-27.217 12.007-52.99q.13-1.094.244-2.088l.16-1.362 1.797.158.463.031c10.002.456 22.232-1.665 29.743-5.154 5.935-2.754 24.954-12.795 20.476-26.351"}),y.jsx("path",{fill:"#336791",d:"M237.906 160.722c-29.74 6.135-31.785-3.934-31.785-3.934 31.4-46.593 44.527-105.736 33.2-120.211-30.904-39.485-84.399-20.811-85.292-20.327l-.287.052c-5.876-1.22-12.451-1.946-19.842-2.067-13.456-.22-23.664 3.528-31.41 9.402 0 0-95.43-39.314-90.991 49.444.944 18.882 27.064 142.873 58.218 105.422 11.387-13.695 22.39-25.274 22.39-25.274 5.464 3.63 12.006 5.482 18.864 4.817l.533-.452c-.166 1.7-.09 3.363.213 5.332-8.026 8.967-5.667 10.541-21.711 13.844-16.235 3.346-6.698 9.302-.471 10.86 7.549 1.887 25.013 4.561 36.813-11.958l-.47 1.885c3.144 2.519 5.352 16.383 4.982 28.952-.37 12.568-.617 21.197 1.86 27.937 2.479 6.74 4.948 21.905 26.04 17.386 17.623-3.777 26.756-13.564 28.027-29.89.901-11.606 2.942-9.89 3.07-20.267l1.637-4.912c1.887-15.733.3-20.809 11.157-18.448l2.64.232c7.99.363 18.45-1.286 24.589-4.139 13.218-6.134 21.058-16.377 8.024-13.686z"}),y.jsx("path",{fill:"#FFF",d:"M108.076 81.525c-2.68-.373-5.107-.028-6.335.902-.69.523-.904 1.129-.962 1.546-.154 1.105.62 2.327 1.096 2.957 1.346 1.784 3.312 3.01 5.258 3.28q.423.059.842.058c3.245 0 6.196-2.527 6.456-4.392.325-2.336-3.066-3.893-6.355-4.35M196.86 81.599c-.256-1.831-3.514-2.353-6.606-1.923-3.088.43-6.082 1.824-5.832 3.659.2 1.427 2.777 3.863 5.827 3.863q.387 0 .78-.054c2.036-.282 3.53-1.575 4.24-2.32 1.08-1.136 1.706-2.402 1.591-3.225"}),y.jsx("path",{fill:"#FFF",d:"M247.802 160.025c-1.134-3.429-4.784-4.532-10.848-3.28-18.005 3.716-24.453 1.142-26.57-.417 13.995-21.32 25.508-47.092 31.719-71.137 2.942-11.39 4.567-21.968 4.7-30.59.147-9.463-1.465-16.417-4.789-20.665-13.402-17.125-33.072-26.311-56.882-26.563-16.369-.184-30.199 4.005-32.88 5.183-5.646-1.404-11.801-2.266-18.502-2.376-12.288-.199-22.91 2.743-31.704 8.74-3.82-1.422-13.692-4.811-25.765-6.756-20.872-3.36-37.458-.814-49.294 7.571-14.123 10.006-20.643 27.892-19.38 53.16.425 8.501 5.269 34.653 12.913 59.698 10.062 32.964 21 51.625 32.508 55.464 1.347.449 2.9.763 4.613.763 4.198 0 9.345-1.892 14.7-8.33a530 530 0 0 1 20.261-22.926c4.524 2.428 9.494 3.784 14.577 3.92q.016.2.035.398a118 118 0 0 0-2.57 3.175c-3.522 4.471-4.255 5.402-15.592 7.736-3.225.666-11.79 2.431-11.916 8.435-.136 6.56 10.125 9.315 11.294 9.607 4.074 1.02 7.999 1.523 11.742 1.523 9.103 0 17.114-2.992 23.516-8.781-.197 23.386.778 46.43 3.586 53.451 2.3 5.748 7.918 19.795 25.664 19.794 2.604 0 5.47-.303 8.623-.979 18.521-3.97 26.564-12.156 29.675-30.203 1.665-9.645 4.522-32.676 5.866-45.03 2.836.885 6.487 1.29 10.434 1.289 8.232 0 17.731-1.749 23.688-4.514 6.692-3.108 18.768-10.734 16.578-17.36m-44.106-83.48c-.061 3.647-.563 6.958-1.095 10.414-.573 3.717-1.165 7.56-1.314 12.225-.147 4.54.42 9.26.968 13.825 1.108 9.22 2.245 18.712-2.156 28.078a37 37 0 0 1-1.95-4.009c-.547-1.326-1.735-3.456-3.38-6.404-6.399-11.476-21.384-38.35-13.713-49.316 2.285-3.264 8.084-6.62 22.64-4.813m-17.644-61.787c21.334.471 38.21 8.452 50.158 23.72 9.164 11.711-.927 64.998-30.14 110.969a171 171 0 0 0-.886-1.117l-.37-.462c7.549-12.467 6.073-24.802 4.759-35.738-.54-4.488-1.05-8.727-.92-12.709.134-4.22.692-7.84 1.232-11.34.663-4.313 1.338-8.776 1.152-14.037.139-.552.195-1.204.122-1.978-.475-5.045-6.235-20.144-17.975-33.81-6.422-7.475-15.787-15.84-28.574-21.482 5.5-1.14 13.021-2.203 21.442-2.016M66.674 175.778c-5.9 7.094-9.974 5.734-11.314 5.288-8.73-2.912-18.86-21.364-27.791-50.624-7.728-25.318-12.244-50.777-12.602-57.916-1.128-22.578 4.345-38.313 16.268-46.769 19.404-13.76 51.306-5.524 64.125-1.347-.184.182-.376.352-.558.537-21.036 21.244-20.537 57.54-20.485 59.759-.002.856.07 2.068.168 3.735.362 6.105 1.036 17.467-.764 30.334-1.672 11.957 2.014 23.66 10.111 32.109a36 36 0 0 0 2.617 2.468c-3.604 3.86-11.437 12.396-19.775 22.426m22.479-29.993c-6.526-6.81-9.49-16.282-8.133-25.99 1.9-13.592 1.199-25.43.822-31.79-.053-.89-.1-1.67-.127-2.285 3.073-2.725 17.314-10.355 27.47-8.028 4.634 1.061 7.458 4.217 8.632 9.645 6.076 28.103.804 39.816-3.432 49.229-.873 1.939-1.698 3.772-2.402 5.668l-.546 1.466c-1.382 3.706-2.668 7.152-3.465 10.424-6.938-.02-13.687-2.984-18.819-8.34m1.065 37.9c-2.026-.506-3.848-1.385-4.917-2.114.893-.42 2.482-.992 5.238-1.56 13.337-2.745 15.397-4.683 19.895-10.394 1.031-1.31 2.2-2.794 3.819-4.602l.002-.002c2.411-2.7 3.514-2.242 5.514-1.412 1.621.67 3.2 2.702 3.84 4.938.303 1.056.643 3.06-.47 4.62-9.396 13.156-23.088 12.987-32.921 10.526m69.799 64.952c-16.316 3.496-22.093-4.829-25.9-14.346-2.457-6.144-3.665-33.85-2.808-64.447.011-.407-.047-.8-.159-1.17a15.4 15.4 0 0 0-.456-2.162c-1.274-4.452-4.379-8.176-8.104-9.72-1.48-.613-4.196-1.738-7.46-.903.696-2.868 1.903-6.107 3.212-9.614l.549-1.475c.618-1.663 1.394-3.386 2.214-5.21 4.433-9.848 10.504-23.337 3.915-53.81-2.468-11.414-10.71-16.988-23.204-15.693-7.49.775-14.343 3.797-17.761 5.53-.735.372-1.407.732-2.035 1.082.954-11.5 4.558-32.992 18.04-46.59 8.489-8.56 19.794-12.788 33.568-12.56 27.14.444 44.544 14.372 54.366 25.979 8.464 10.001 13.047 20.076 14.876 25.51-13.755-1.399-23.11 1.316-27.852 8.096-10.317 14.748 5.644 43.372 13.315 57.129 1.407 2.521 2.621 4.7 3.003 5.626 2.498 6.054 5.732 10.096 8.093 13.046.724.904 1.426 1.781 1.96 2.547-4.166 1.201-11.649 3.976-10.967 17.847-.55 6.96-4.461 39.546-6.448 51.059-2.623 15.21-8.22 20.875-23.957 24.25m68.104-77.936c-4.26 1.977-11.389 3.46-18.161 3.779-7.48.35-11.288-.838-12.184-1.569-.42-8.644 2.797-9.547 6.202-10.503.535-.15 1.057-.297 1.561-.473q.469.383 1.032.756c6.012 3.968 16.735 4.396 31.874 1.271l.166-.033c-2.042 1.909-5.536 4.471-10.49 6.772"})]}),fQe=e=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid",viewBox:"0 0 256 257",...e,children:y.jsx("path",{fill:"#DA4E31",d:"M128.001.667C57.311.667 0 57.971 0 128.664c0 70.69 57.311 127.998 128.001 127.998S256 199.354 256 128.664C256 57.97 198.689.667 128.001.667m0 239.56c-20.112 0-36.419-13.435-36.419-30.004h72.838c0 16.566-16.306 30.004-36.419 30.004m60.153-39.94H67.842V178.47h120.314v21.816zm-.432-33.045H68.185c-.398-.458-.804-.91-1.188-1.375-12.315-14.954-15.216-22.76-18.032-30.716-.048-.262 14.933 3.06 25.556 5.45 0 0 5.466 1.265 13.458 2.722-7.673-8.994-12.23-20.428-12.23-32.116 0-25.658 19.68-48.079 12.58-66.201 6.91.562 14.3 14.583 14.8 36.505 7.346-10.152 10.42-28.69 10.42-40.056 0-11.769 7.755-25.44 15.512-25.907-6.915 11.396 1.79 21.165 9.53 45.4 2.902 9.103 2.532 24.423 4.772 34.138.744-20.178 4.213-49.62 17.014-59.784-5.647 12.8.836 28.818 5.27 36.518 7.154 12.424 11.49 21.836 11.49 39.638 0 11.936-4.407 23.173-11.84 31.958 8.452-1.586 14.289-3.016 14.289-3.016l27.45-5.355c.002-.002-3.987 16.401-19.314 32.197"})}),mQe=e=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid",viewBox:"0 0 256 228",...e,children:y.jsx("path",{fill:"#00D8FF",d:"M210.483 73.824a172 172 0 0 0-8.24-2.597c.465-1.9.893-3.777 1.273-5.621 6.238-30.281 2.16-54.676-11.769-62.708-13.355-7.7-35.196.329-57.254 19.526a171 171 0 0 0-6.375 5.848 156 156 0 0 0-4.241-3.917C100.759 3.829 77.587-4.822 63.673 3.233 50.33 10.957 46.379 33.89 51.995 62.588a171 171 0 0 0 1.892 8.48c-3.28.932-6.445 1.924-9.474 2.98C17.309 83.498 0 98.307 0 113.668c0 15.865 18.582 31.778 46.812 41.427a146 146 0 0 0 6.921 2.165 168 168 0 0 0-2.01 9.138c-5.354 28.2-1.173 50.591 12.134 58.266 13.744 7.926 36.812-.22 59.273-19.855a146 146 0 0 0 5.342-4.923 168 168 0 0 0 6.92 6.314c21.758 18.722 43.246 26.282 56.54 18.586 13.731-7.949 18.194-32.003 12.4-61.268a145 145 0 0 0-1.535-6.842c1.62-.48 3.21-.974 4.76-1.488 29.348-9.723 48.443-25.443 48.443-41.52 0-15.417-17.868-30.326-45.517-39.844m-6.365 70.984c-1.4.463-2.836.91-4.3 1.345-3.24-10.257-7.612-21.163-12.963-32.432 5.106-11 9.31-21.767 12.459-31.957 2.619.758 5.16 1.557 7.61 2.4 23.69 8.156 38.14 20.213 38.14 29.504 0 9.896-15.606 22.743-40.946 31.14m-10.514 20.834c2.562 12.94 2.927 24.64 1.23 33.787-1.524 8.219-4.59 13.698-8.382 15.893-8.067 4.67-25.32-1.4-43.927-17.412a157 157 0 0 1-6.437-5.87c7.214-7.889 14.423-17.06 21.459-27.246 12.376-1.098 24.068-2.894 34.671-5.345q.785 3.162 1.386 6.193M87.276 214.515c-7.882 2.783-14.16 2.863-17.955.675-8.075-4.657-11.432-22.636-6.853-46.752a157 157 0 0 1 1.869-8.499c10.486 2.32 22.093 3.988 34.498 4.994 7.084 9.967 14.501 19.128 21.976 27.15a135 135 0 0 1-4.877 4.492c-9.933 8.682-19.886 14.842-28.658 17.94M50.35 144.747c-12.483-4.267-22.792-9.812-29.858-15.863-6.35-5.437-9.555-10.836-9.555-15.216 0-9.322 13.897-21.212 37.076-29.293 2.813-.98 5.757-1.905 8.812-2.773 3.204 10.42 7.406 21.315 12.477 32.332-5.137 11.18-9.399 22.249-12.634 32.792a135 135 0 0 1-6.318-1.979m12.378-84.26c-4.811-24.587-1.616-43.134 6.425-47.789 8.564-4.958 27.502 2.111 47.463 19.835a144 144 0 0 1 3.841 3.545c-7.438 7.987-14.787 17.08-21.808 26.988-12.04 1.116-23.565 2.908-34.161 5.309a160 160 0 0 1-1.76-7.887m110.427 27.268a348 348 0 0 0-7.785-12.803c8.168 1.033 15.994 2.404 23.343 4.08-2.206 7.072-4.956 14.465-8.193 22.045a381 381 0 0 0-7.365-13.322m-45.032-43.861c5.044 5.465 10.096 11.566 15.065 18.186a322 322 0 0 0-30.257-.006c4.974-6.559 10.069-12.652 15.192-18.18M82.802 87.83a323 323 0 0 0-7.227 13.238c-3.184-7.553-5.909-14.98-8.134-22.152 7.304-1.634 15.093-2.97 23.209-3.984a322 322 0 0 0-7.848 12.897m8.081 65.352c-8.385-.936-16.291-2.203-23.593-3.793 2.26-7.3 5.045-14.885 8.298-22.6a321 321 0 0 0 7.257 13.246c2.594 4.48 5.28 8.868 8.038 13.147m37.542 31.03c-5.184-5.592-10.354-11.779-15.403-18.433 4.902.192 9.899.29 14.978.29 5.218 0 10.376-.117 15.453-.343-4.985 6.774-10.018 12.97-15.028 18.486m52.198-57.817c3.422 7.8 6.306 15.345 8.596 22.52-7.422 1.694-15.436 3.058-23.88 4.071a382 382 0 0 0 7.859-13.026 347 347 0 0 0 7.425-13.565m-16.898 8.101a359 359 0 0 1-12.281 19.815 329 329 0 0 1-23.444.823c-7.967 0-15.716-.248-23.178-.732a310 310 0 0 1-12.513-19.846h.001a307 307 0 0 1-10.923-20.627 310 310 0 0 1 10.89-20.637l-.001.001a307 307 0 0 1 12.413-19.761c7.613-.576 15.42-.876 23.31-.876H128c7.926 0 15.743.303 23.354.883a329 329 0 0 1 12.335 19.695 359 359 0 0 1 11.036 20.54 330 330 0 0 1-11 20.722m22.56-122.124c8.572 4.944 11.906 24.881 6.52 51.026q-.518 2.504-1.15 5.09c-10.622-2.452-22.155-4.275-34.23-5.408-7.034-10.017-14.323-19.124-21.64-27.008a161 161 0 0 1 5.888-5.4c18.9-16.447 36.564-22.941 44.612-18.3M128 90.808c12.625 0 22.86 10.235 22.86 22.86s-10.235 22.86-22.86 22.86-22.86-10.235-22.86-22.86 10.235-22.86 22.86-22.86"})}),gQe=e=>y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid",viewBox:"0 0 256 220",...e,children:[y.jsx("path",{fill:"#912626",d:"M245.97 168.943c-13.662 7.121-84.434 36.22-99.501 44.075s-23.437 7.78-35.34 2.09c-11.902-5.69-87.216-36.112-100.783-42.597C3.566 169.271 0 166.535 0 163.951v-25.876s98.05-21.345 113.879-27.024c15.828-5.679 21.32-5.884 34.79-.95 13.472 4.936 94.018 19.468 107.331 24.344l-.006 25.51c.002 2.558-3.07 5.364-10.024 8.988"}),y.jsx("path",{fill:"#C6302B",d:"M245.965 143.22c-13.661 7.118-84.431 36.218-99.498 44.072-15.066 7.857-23.436 7.78-35.338 2.09-11.903-5.686-87.214-36.113-100.78-42.594-13.566-6.485-13.85-10.948-.524-16.166 13.326-5.22 88.224-34.605 104.055-40.284 15.828-5.677 21.319-5.884 34.789-.948 13.471 4.934 83.819 32.935 97.13 37.81 13.316 4.881 13.827 8.9.166 16.02"}),y.jsx("path",{fill:"#912626",d:"M245.97 127.074c-13.662 7.122-84.434 36.22-99.501 44.078-15.067 7.853-23.437 7.777-35.34 2.087-11.903-5.687-87.216-36.112-100.783-42.597C3.566 127.402 0 124.67 0 122.085V96.206s98.05-21.344 113.879-27.023c15.828-5.679 21.32-5.885 34.79-.95C162.142 73.168 242.688 87.697 256 92.574l-.006 25.513c.002 2.557-3.07 5.363-10.024 8.987"}),y.jsx("path",{fill:"#C6302B",d:"M245.965 101.351c-13.661 7.12-84.431 36.218-99.498 44.075-15.066 7.854-23.436 7.777-35.338 2.087-11.903-5.686-87.214-36.112-100.78-42.594-13.566-6.483-13.85-10.947-.524-16.167C23.151 83.535 98.05 54.148 113.88 48.47c15.828-5.678 21.319-5.884 34.789-.949 13.471 4.934 83.819 32.933 97.13 37.81 13.316 4.88 13.827 8.9.166 16.02"}),y.jsx("path",{fill:"#912626",d:"M245.97 83.653c-13.662 7.12-84.434 36.22-99.501 44.078-15.067 7.854-23.437 7.777-35.34 2.087-11.903-5.687-87.216-36.113-100.783-42.595C3.566 83.98 0 81.247 0 78.665v-25.88s98.05-21.343 113.879-27.021c15.828-5.68 21.32-5.884 34.79-.95C162.142 29.749 242.688 44.278 256 49.155l-.006 25.512c.002 2.555-3.07 5.361-10.024 8.986"}),y.jsx("path",{fill:"#C6302B",d:"M245.965 57.93c-13.661 7.12-84.431 36.22-99.498 44.074-15.066 7.854-23.436 7.777-35.338 2.09C99.227 98.404 23.915 67.98 10.35 61.497S-3.5 50.55 9.825 45.331C23.151 40.113 98.05 10.73 113.88 5.05c15.828-5.679 21.319-5.883 34.789-.948s83.819 32.934 97.13 37.811c13.316 4.876 13.827 8.897.166 16.017"}),y.jsx("path",{fill:"#FFF",d:"m159.283 32.757-22.01 2.285-4.927 11.856-7.958-13.23-25.415-2.284 18.964-6.839-5.69-10.498 17.755 6.944 16.738-5.48-4.524 10.855zM131.032 90.275 89.955 73.238l58.86-9.035zM74.082 39.347c17.375 0 31.46 5.46 31.46 12.194 0 6.736-14.085 12.195-31.46 12.195s-31.46-5.46-31.46-12.195c0-6.734 14.085-12.194 31.46-12.194"}),y.jsx("path",{fill:"#621B1C",d:"m185.295 35.998 34.836 13.766-34.806 13.753z"}),y.jsx("path",{fill:"#9A2928",d:"m146.755 51.243 38.54-15.245.03 27.519-3.779 1.478z"})]}),yQe=e=>y.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid",viewBox:"0 0 256 258",...e,children:y.jsxs("g",{fill:"#FFA64D",children:[y.jsx("path",{d:"M13.222 183.045C30.007 165.978 244.278 4.782 247.936 8.44c2.813 2.813-156.507 219.616-173.387 236.589s-44.26 16.785-61.14-.282c-16.972-17.066-16.972-44.73-.187-61.702",opacity:.5}),y.jsx("path",{d:"M22.693 175.45c20.63-12.098 230.119-95.18 232.65-90.68 1.97 3.47-168.79 154.538-189.514 166.541-20.63 12.003-46.98 4.783-58.89-16.222-11.909-20.818-4.876-47.543 15.754-59.64",opacity:.3}),y.jsx("path",{d:"M82.051 235.276C94.054 214.46 176.387 3.47 171.98.938 168.51-1.032 18.661 171.042 6.658 191.859c-11.91 20.818-4.689 47.356 16.129 59.265C43.51 263.127 70.048 256 82.05 235.276",opacity:.3}),y.jsx("path",{d:"M32.727 171.042c23.068-6.283 216.521-30.195 217.928-25.225 1.031 3.845-172.73 103.431-195.798 109.714s-46.699-7.595-52.794-30.945 7.69-47.261 30.664-53.544",opacity:.2}),y.jsx("path",{d:"M32.727 171.042c23.068-6.283 179.387 29.07 180.7 33.946 1.032 3.844-135.595 44.167-158.664 50.45-23.068 6.282-46.699-7.596-52.794-30.946-6.001-23.255 7.783-47.167 30.758-53.45",opacity:.1}),y.jsx("path",{d:"M86.459 225.055c6.282-23.256-28.882-180.7-33.852-182.013C48.762 42.01 8.815 179.575 2.626 202.83c-6.19 23.255 7.595 47.074 30.757 53.075 23.068 6.19 46.887-7.595 53.076-30.851",opacity:.1}),y.jsx("path",{d:"M86.459 225.055C92.74 201.799 116.372 6.939 111.496 5.626 107.651 4.595 8.908 179.576 2.626 202.925-3.564 226.18 10.22 249.999 33.383 256c23.068 6.189 46.887-7.69 53.076-30.945",opacity:.2})]})}),vQe=e=>y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid",viewBox:"0 0 256 256",...e,children:[y.jsx("path",{fill:"#85EA2D",d:"M127.999 249.895c-67.215 0-121.9-54.68-121.9-121.896S60.785 6.102 128 6.102c67.214 0 121.899 54.685 121.899 121.9 0 67.214-54.685 121.893-121.9 121.893"}),y.jsx("path",{fill:"#173647",d:"M127.999 12.202c63.954 0 115.797 51.842 115.797 115.797 0 63.952-51.843 115.797-115.797 115.797-63.952 0-115.797-51.845-115.797-115.797S64.047 12.202 127.999 12.202m0-12.202C57.419 0 0 57.42 0 127.999s57.42 127.998 127.999 127.998S256 198.577 256 128C256 57.419 198.578 0 127.999 0"}),y.jsx("path",{fill:"#173647",d:"M80.598 86.619c-.394 4.38.146 8.909-.146 13.338-.345 4.431-.887 8.811-1.773 13.192-1.23 6.25-5.12 10.976-10.482 14.914 10.436 6.793 11.616 17.324 12.304 28.006.345 5.76.197 11.567.788 17.276.443 4.429 2.165 5.562 6.745 5.708 1.87.048 3.786 0 5.956 0v13.683c-13.535 2.313-24.708-1.525-27.467-12.992-.887-4.184-1.478-8.467-1.673-12.798-.297-4.578.195-9.155-.148-13.732-.985-12.553-2.61-16.785-14.618-17.376v-15.602a24 24 0 0 1 2.608-.443c6.596-.345 9.4-2.364 10.828-8.86.69-3.641 1.084-7.333 1.23-11.074.494-7.136.297-14.42 1.525-21.507C67.997 68.163 74.3 63.24 84.785 62.65c2.952-.149 5.955 0 9.35 0v13.98c-1.427.1-2.658.294-3.937.294-8.515-.297-8.96 2.607-9.6 9.695m16.39 32.386h-.196c-4.923-.245-9.155 3.593-9.403 8.515-.246 4.972 3.592 9.206 8.515 9.45h.59c4.875.296 9.056-3.447 9.352-8.319v-.491c.1-4.971-3.886-9.055-8.857-9.155m30.862 0c-4.774-.148-8.763 3.593-8.909 8.318 0 .297 0 .543.051.837 0 5.365 3.641 8.812 9.155 8.812 5.414 0 8.812-3.544 8.812-9.106-.051-5.366-3.646-8.91-9.109-8.86m31.602 0c-5.02-.1-9.206 3.89-9.352 8.91a9.03 9.03 0 0 0 9.055 9.054h.1c4.528.788 9.106-3.592 9.402-8.858.243-4.874-4.186-9.106-9.205-9.106m43.363.737c-5.711-.245-8.567-2.164-9.992-7.581a55 55 0 0 1-1.624-10.582c-.395-6.596-.346-13.241-.789-19.837-1.033-15.651-12.352-21.114-28.794-18.41V76.92c2.607 0 4.626 0 6.645.049 3.495.048 6.153 1.379 6.496 5.268.345 3.543.345 7.136.69 10.73.692 7.139 1.083 14.372 2.314 21.41 1.085 5.809 5.07 10.14 10.04 13.684-8.71 5.857-11.27 14.223-11.714 23.626-.245 6.448-.394 12.944-.736 19.443-.297 5.905-2.362 7.824-8.318 7.972-1.674.05-3.298.198-5.169.297v13.93c3.495 0 6.694.196 9.892 0 9.942-.592 15.947-5.415 17.918-15.063a126 126 0 0 0 1.476-16.045c.343-4.923.297-9.894.788-14.766.737-7.63 4.232-10.78 11.862-11.27.739-.1 1.427-.246 2.118-.492v-15.604c-1.282-.149-2.17-.295-3.103-.346"})]}),bQe=e=>y.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid",viewBox:"0 0 512 123",...e,children:[y.jsx("path",{d:"M207.785 45.398c15.276 0 18.696 8.908 18.696 19.188v10.239H199.86v2.457c.102 5.693 2.15 7.945 9.399 7.945a50 50 0 0 0 14.58-2.252l1.863 9.01a51.2 51.2 0 0 1-17.528 3.03c-14.97 0-20.17-6.942-20.17-18.43V63.993c0-10.075 4.504-18.594 19.78-18.594m100.38-.02c14.97 0 19.392 5.283 19.392 17.222l-.04 31.432h-9.789l-.88-3.235a26.06 26.06 0 0 1-14.191 4.218c-8.703 0-12.43-5.98-12.43-14.19 0-9.686 4.218-13.413 13.904-13.413h11.447v-4.997c0-5.283-1.474-7.146-9.113-7.146-4.443.049-8.866.544-13.208 1.474l-1.474-9.112a62.4 62.4 0 0 1 16.382-2.253m79.35 0c16.341 0 20.744 9.01 20.744 18.798v12.041c.02 9.788-4.403 18.798-20.744 18.798-16.382 0-20.743-9.01-20.743-18.798v-12.04c0-9.789 4.402-18.799 20.743-18.799M198.017 28.832v10.874h-18.225v54.326h-12.286l-.041-54.326H149.26V28.832zm157.205-3.911c3.46-.012 6.905.45 10.239 1.372l-1.25 9.194a35 35 0 0 0-6.86-.778c-4.688 0-5.385 2.048-5.385 5.673v5.979h12.143l-.675 9.501h-11.447v38.17h-11.939v-38.17h-7.638v-9.501h7.638v-6.655c0-9.89 4.608-14.785 15.174-14.785M482.04 50.477a46.8 46.8 0 0 1 19.187-5.099c7.925 0 10.772 5.57 10.772 14.089v34.565h-11.939V60.757c0-2.54-1.085-3.81-3.809-3.81a31.6 31.6 0 0 0-12.43 4.096v32.99H471.8V60.756c0-2.54-1.085-3.81-3.808-3.81-4.376.52-8.601 1.913-12.43 4.096v32.99h-11.939V46.36h9.113l1.167 4.095a47.7 47.7 0 0 1 19.126-5.078 9.05 9.05 0 0 1 9.01 5.099m-224.863-5.099 1.229 10.976a94 94 0 0 0-12.676 6.942v30.716h-11.938V46.361h10.075l.778 5.283a53.5 53.5 0 0 1 12.532-6.266m29.201 0 1.188 10.976a94 94 0 0 0-12.635 6.942v30.716h-11.938V46.361h10.075l.778 5.283a53.5 53.5 0 0 1 12.532-6.266m151.43 0 1.188 10.976a94 94 0 0 0-12.634 6.942v30.716h-11.938V46.361h10.074l.779 5.283a53.4 53.4 0 0 1 12.532-6.266m-122.23 30.634h-8.804c-3.912 0-4.997 1.086-4.997 4.69s1.085 4.791 4.792 4.791a18.8 18.8 0 0 0 9.01-2.457zm71.938-20.457c-6.368 0-8.805 2.847-8.805 8.191v12.82c0 5.385 2.457 8.19 8.805 8.19s8.805-2.846 8.805-8.19V63.786c0-5.385-2.436-8.232-8.805-8.232m-179.628-.389c-5.877 0-7.925 3.133-7.925 7.638v2.417h15.174v-2.417c0-4.505-1.372-7.638-7.249-7.638"}),y.jsx("path",{fill:"#4040B2",d:"M74.538 79.821 108.12 60.45V21.645L74.538 41.057z"}),y.jsx("path",{fill:"#5C4EE5",d:"m37.269 21.645 33.583 19.412v38.764L37.269 60.43M0 38.784l33.583 19.392V19.392L0 0m37.269 103.473 33.583 19.392V84.08L37.269 64.688"})]});const xQe={"tech:docker":nQe,"tech:elasticsearch":oQe,"tech:electron":aQe,"tech:git":iQe,"tech:github":lQe,"tech:go":sQe,"tech:grafana":cQe,"tech:java":dQe,"tech:kubernetes":uQe,"tech:nginx":pQe,"tech:postgresql":hQe,"tech:prometheus":fQe,"tech:react":mQe,"tech:redis":gQe,"tech:spark":yQe,"tech:swagger":vQe,"tech:terraform":bQe};function wQe(e){const r=xQe[e.node.icon??""];return r?y.jsx(r,e):null}function kQe(e,r,n){let o=a=>e(a,...r);return n===void 0?o:Object.assign(o,{lazy:n,lazyArgs:r})}function Yte(e,r,n){let o=e.length-r.length;if(o===0)return e(...r);if(o===1)return kQe(e,r,n);throw Error("Wrong number of arguments")}function _Qe(...e){return Yte(SQe,e)}function SQe(e,r){let n={};for(let[o,a]of Object.entries(e))n[o]=r(a,o,e);return n}function Xte(...e){return Yte(v0,e)}function v0(e,r){if(e===r||Object.is(e,r))return!0;if(typeof e!="object"||typeof r!="object"||e===null||r===null||Object.getPrototypeOf(e)!==Object.getPrototypeOf(r))return!1;if(Array.isArray(e))return EQe(e,r);if(e instanceof Map)return CQe(e,r);if(e instanceof Set)return $Qe(e,r);if(e instanceof Date)return e.getTime()===r.getTime();if(e instanceof RegExp)return e.toString()===r.toString();if(Object.keys(e).length!==Object.keys(r).length)return!1;for(let[n,o]of Object.entries(e))if(!(n in r)||!v0(o,r[n]))return!1;return!0}function EQe(e,r){if(e.length!==r.length)return!1;for(let[n,o]of e.entries())if(!v0(o,r[n]))return!1;return!0}function CQe(e,r){if(e.size!==r.size)return!1;for(let[n,o]of e.entries())if(!r.has(n)||!v0(o,r.get(n)))return!1;return!0}function $Qe(e,r){if(e.size!==r.size)return!1;let n=[...r];for(let o of e){let a=!1;for(let[i,l]of n.entries())if(v0(o,l)){a=!0,n.splice(i,1);break}if(!a)return!1}return!0}let fl=[],Ad=0;const q2=4;let H2=0;const Zte=e=>{let r=[],n={get(){return n.lc||n.listen(()=>{})(),n.value},lc:0,listen(o){return n.lc=r.push(o),()=>{for(let i=Ad+q2;i(e.events=e.events||{},e.events[n+W2]||(e.events[n+W2]=o(a=>{e.events[n].reduceRight((i,l)=>(l(i),i),{shared:{},...a})})),e.events[n]=e.events[n]||[],e.events[n].push(r),()=>{let a=e.events[n],i=a.indexOf(r);a.splice(i,1),a.length||(delete e.events[n],e.events[n+W2](),delete e.events[n+W2])}),jQe=1e3,TQe=(e,r)=>RQe(e,n=>{let o=r(n);o&&e.events[U2].push(o)},zQe,n=>{let o=e.listen;e.listen=(...i)=>(!e.lc&&!e.active&&(e.active=!0,n()),o(...i));let a=e.off;return e.events[U2]=[],e.off=()=>{a(),setTimeout(()=>{if(e.active&&!e.lc){e.active=!1;for(let i of e.events[U2])i();e.events[U2]=[]}},jQe)},()=>{e.listen=o,e.off=a}}),AQe=(e,r,n)=>{Array.isArray(e)||(e=[e]);let o,a,i=()=>{if(a===H2)return;a=H2;let d=e.map(u=>u.get());if(!o||d.some((u,p)=>u!==o[p])){o=d;let u=r(...d);u&&u.then&&u.t?u.then(p=>{o===d&&l.set(p)}):(l.set(u),a=H2)}},l=Zte(void 0),s=l.get;l.get=()=>(i(),s());let c=i;return TQe(l,()=>{let d=e.map(u=>u.listen(c));return i(),()=>{for(let u of d)u()}}),l};const Kte=(e,r)=>AQe(e,r);function DQe(e,r,n){let o=new Set(r).add(void 0);return e.listen((a,i,l)=>{o.has(l)&&n(a,i,l)})}let Nz=(e,r)=>n=>{e.current!==n&&(e.current=n,r())};function Qte(e,{keys:r,deps:n=[e,r]}={}){let o=S.useRef();o.current=e.get();let a=S.useCallback(l=>(Nz(o,l)(e.value),r?.length>0?DQe(e,r,Nz(o,l)):e.listen(Nz(o,l))),n),i=()=>o.current;return S.useSyncExternalStore(a,i,i)}const MQe=e=>{const r=Kte(e,s=>Du.create(s));function n(s){const c=e.get();if(Xte(c,s))return;const d={...s,views:_Qe(s.views,u=>{const p=c.views[u.id];return Xte(p,u)?p:u})};e.set(d)}const o=Kte(e,s=>Object.values(s.views));function a(){return Qte(r)}function i(){return Qte(o)}function l(s){const[c,d]=S.useState(e.value?.views[s]??null);return S.useEffect(()=>e.subscribe(u=>{d(u.views[s]??null)}),[s]),c}return{updateModel:n,$likec4model:r,useLikeC4Model:a,useLikeC4Views:i,useLikeC4View:l}},NQe=Zte({_stage:"layouted",projectId:"architecture",project:{id:"architecture",title:"architecture"},specification:{tags:{internal:{color:"tomato"}},elements:{actor:{style:{shape:"person",color:"green"}},person:{style:{shape:"person",color:"green"}},component:{style:{}},container:{style:{opacity:20}},internalComponent:{style:{color:"muted",opacity:15}},schema:{style:{}},step:{style:{}},system:{style:{}},workflow:{style:{}},tool:{style:{}},process:{style:{}},repository:{style:{shape:"storage"}}},relationships:{},deployments:{cloud:{style:{}},environment:{style:{}},computeressource:{style:{}},paas:{style:{}},kubernetes:{style:{}},cluster:{style:{}},namespace:{style:{}}},customColors:{}},elements:{edfbuilder_workflow:{style:{},title:"EDFbuilder",kind:"workflow",id:"edfbuilder_workflow"},argocdworkflow:{style:{},title:"EDP ArgoCD Setup Workflow",kind:"workflow",id:"argocdworkflow"},edpworkflow:{style:{},title:"EDP Infrastructure Setup Workflow",kind:"workflow",id:"edpworkflow"},applicationspecification:{style:{},description:{txt:"The application specification describes the application and its components. It is used to generate the application and its components."},title:"application-specification",kind:"component",id:"applicationspecification"},forgejoRunner:{style:{},description:{txt:"A runner is a service that runs jobs triggered by Forgejo. A runner can have different technical implementations like a container or a VM."},title:"Forgejo Runner",kind:"component",id:"forgejoRunner"},forgejoRunnerWorker:{style:{},description:{txt:"A worker is a service that runs a job invoked by a runner. A worker typically is a container."},title:"Forgejo Runner Worker",kind:"component",id:"forgejoRunnerWorker"},promtail:{style:{},description:{txt:"Log shipper agent for Loki"},title:"Promtail",kind:"component",id:"promtail"},edfbuilder:{style:{shape:"rectangle",icon:"tech:go"},technology:"Golang",description:{txt:"EDP Foundry Builder"},title:"edfbuilder",kind:"component",id:"edfbuilder"},edgeConnect:{style:{},description:{txt:"Provides an API to run applications on the edge"},title:"Edge Connect",kind:"component",id:"edgeConnect"},elasticsearch:{style:{opacity:20,icon:"tech:elasticsearch"},technology:"Elasticsearch",description:{txt:`Elasticsearch is a distributed, RESTful search and analytics engine capable of addressing a growing number of use cases. It centrally stores your data so you can discover the expected and uncover the unexpected.`},title:"Elasticsearch",kind:"container",id:"elasticsearch"},objectstorage:{style:{opacity:20},technology:"S3 Object Storage",description:{txt:"s3 Object Storage"},title:"s3 Object Storage",kind:"container",id:"objectstorage"},postgres:{style:{opacity:20,icon:"tech:postgresql"},technology:"PostgreSQL",description:{txt:`PostgreSQL is a powerful, open source object-relational database system. It has more than 15 years of active development and a proven architecture @@ -217,17 +216,17 @@ and correctness.`},title:"PostgreSQL",kind:"container",id:"postgres"},redis:{sty offering capabilities like code version controling collaboration and ticketing -and security scanning`},title:"Forgejo",kind:"container",id:"edp.forgejo"},"edp.forgejoActions":{style:{icon:"tech:go"},technology:"Golang",description:{txt:"Continuous Integration like Github Actions"},title:"Forgejo Actions",kind:"component",id:"edp.forgejoActions"},"edp.imageregistry":{style:{icon:"tech:go"},technology:"Golang",description:{txt:"Container Image Registry"},title:"Forgejo OCI Image Registry",kind:"component",id:"edp.imageregistry"},"edp.forgejogit":{style:{icon:"tech:git"},title:"ForgejoGit",kind:"component",id:"edp.forgejogit"},"edp.grafana":{style:{opacity:20,icon:"tech:grafana"},description:{txt:"Data visualization and monitoring"},title:"Grafana",kind:"container",id:"edp.grafana"},"edp.ingressNginx":{style:{opacity:20},tags:["internal"],description:{txt:"Ingress Controller for incoming http(s) traffic"},title:"Ingress",kind:"container",id:"edp.ingressNginx"},"edp.keycloak":{style:{opacity:20},description:{txt:"Single Sign On for all EDP products"},title:"Keycloak",kind:"container",id:"edp.keycloak"},"edp.kyverno":{style:{opacity:20},tags:["internal"],description:{txt:"Policy-as-Code"},title:"Kyverno",kind:"container",id:"edp.kyverno"},"edp.loki":{style:{opacity:20},description:{txt:"Log aggregation system"},title:"Loki",kind:"container",id:"edp.loki"},"edp.mailhog":{style:{opacity:20},description:{txt:"Web and API based SMTP testing"},title:"Mailhog",kind:"container",id:"edp.mailhog"},"edp.minio":{style:{opacity:20},description:{txt:"S3 compatible blob storage"},title:"Minio",kind:"container",id:"edp.minio"},"edp.monitoring":{style:{opacity:20},description:{txt:"Observability system to monitor deployed components"},title:"Monitoring",kind:"container",id:"edp.monitoring"},"edp.openbao":{style:{opacity:20},description:{txt:"Secure secret storage"},title:"OpenBao",kind:"container",id:"edp.openbao"},"edp.prometheus":{style:{opacity:20,icon:"tech:prometheus"},description:{txt:"Monitoring and alerting toolkit"},title:"Prometheus",kind:"container",id:"edp.prometheus"},"edp.spark":{style:{opacity:20},tags:["internal"],description:{txt:"Allows running Spark applications on K8s"},title:"Spark",kind:"container",id:"edp.spark"},"edp.velero":{style:{opacity:20},tags:["internal"],description:{txt:"Backup Kubernetes resources"},title:"Velero",kind:"container",id:"edp.velero"},"cloud.application":{style:{color:"primary"},technology:"DSL",description:{txt:"An application description"},title:"application",kind:"schema",id:"cloud.application"},"edp.application":{style:{color:"primary"},technology:"DSL",description:{txt:"An application description"},title:"application",kind:"schema",id:"edp.application"},"edp.testApp":{style:{opacity:20},description:{txt:"Testapp to validate deployments"},title:"Fibonacci",kind:"container",id:"edp.testApp"},"localbox.application":{style:{color:"primary"},technology:"DSL",description:{txt:"An application description"},title:"application",kind:"schema",id:"localbox.application"},"localbox.git":{style:{icon:"tech:git"},technology:"Git",description:{txt:"local git"},title:"git",kind:"component",id:"localbox.git"},"edfbuilder_workflow.runEDP.createCrossplaneNS":{style:{},title:"Create Crossplane namespace",kind:"step",id:"edfbuilder_workflow.runEDP.createCrossplaneNS"},"edfbuilder_workflow.runEDP.installCrossplaneHelm":{style:{},title:"Install Crossplane Helm Chart",kind:"step",id:"edfbuilder_workflow.runEDP.installCrossplaneHelm"},"edfbuilder_workflow.runEDP.installCrossplaneFunctionsAndProviders":{style:{},title:"Install Crossplane Functions and Providers",kind:"step",id:"edfbuilder_workflow.runEDP.installCrossplaneFunctionsAndProviders"},"edfbuilder_workflow.runEDP.waitForCrossplaneFunctionsAndProviders":{style:{},title:"Wait for Crossplane Functions and Providers to become available",kind:"step",id:"edfbuilder_workflow.runEDP.waitForCrossplaneFunctionsAndProviders"},"edfbuilder_workflow.runEDP.setupCrossplaneServiceAccount":{style:{},title:"Apply cluster-admin role to crossplane shell provider service account",kind:"step",id:"edfbuilder_workflow.runEDP.setupCrossplaneServiceAccount"},"edfbuilder_workflow.runEDP.createArgoCdNS":{style:{},title:"Create ArgoCD namespace",kind:"step",id:"edfbuilder_workflow.runEDP.createArgoCdNS"},"edfbuilder_workflow.runEDP.createGiteaNS":{style:{},title:"Create Gitea namespace",kind:"step",id:"edfbuilder_workflow.runEDP.createGiteaNS"},"edfbuilder_workflow.runEDP.createArgoCdTlsCert":{style:{},title:"Create TLS Cert for Argo",kind:"step",id:"edfbuilder_workflow.runEDP.createArgoCdTlsCert"},"edfbuilder_workflow.runEDP.createGiteaTlsCert":{style:{},title:"Create TLS Cert for Forgejo",kind:"step",id:"edfbuilder_workflow.runEDP.createGiteaTlsCert"},"edfbuilder_workflow.runEDP.createEDFBuilderDefinition":{style:{},title:"Create EDFbuilder crossplane definition (defines API)",kind:"step",id:"edfbuilder_workflow.runEDP.createEDFBuilderDefinition"},"edfbuilder_workflow.runEDP.createEDFBuilderComposition":{style:{},title:"Create EDFbuilder crossplane composition (defines what happens when EDFbuilder is applied)",kind:"step",id:"edfbuilder_workflow.runEDP.createEDFBuilderComposition"},"edfbuilder_workflow.applyEDFBuilder.setEnvVars":{style:{},title:"Set required environment variables",kind:"step",id:"edfbuilder_workflow.applyEDFBuilder.setEnvVars"},"edfbuilder_workflow.applyEDFBuilder.readWriteKubeConf":{style:{},title:"Make kube.conf write/readbale",kind:"step",id:"edfbuilder_workflow.applyEDFBuilder.readWriteKubeConf"},"edfbuilder_workflow.applyEDFBuilder.setWorkDir":{style:{},title:"Set workdir to /tmp/rundir",kind:"step",id:"edfbuilder_workflow.applyEDFBuilder.setWorkDir"},"edfbuilder_workflow.applyEDFBuilder.cloneStacksRepo":{style:{},title:"Clone steps repo and checkout desired branch",kind:"step",id:"edfbuilder_workflow.applyEDFBuilder.cloneStacksRepo"},"edfbuilder_workflow.applyEDFBuilder.hydrateStacksWithValues":{style:{},title:"Hydrate Stacks with values",kind:"step",id:"edfbuilder_workflow.applyEDFBuilder.hydrateStacksWithValues"},"edfbuilder_workflow.applyEDFBuilder.createNamespaces":{style:{},title:"Create all required namespaces",kind:"step",id:"edfbuilder_workflow.applyEDFBuilder.createNamespaces"},"edfbuilder_workflow.applyEDFBuilder.createGiteaAdminPass":{style:{},title:"Create Admin Password for Forgejo",kind:"step",id:"edfbuilder_workflow.applyEDFBuilder.createGiteaAdminPass"},"edfbuilder_workflow.applyEDFBuilder.createGrafanaPass":{style:{},title:"Create Grafana Admin Password",kind:"step",id:"edfbuilder_workflow.applyEDFBuilder.createGrafanaPass"},"edfbuilder_workflow.applyEDFBuilder.applyServiceMonitorCRD":{style:{},title:"Apply ServiceMonitor CRDs for Prometheus",kind:"step",id:"edfbuilder_workflow.applyEDFBuilder.applyServiceMonitorCRD"},"edfbuilder_workflow.applyEDFBuilder.cloneIngressNginxChart":{style:{},title:"Git clone ingress-nginx helm chart",kind:"step",id:"edfbuilder_workflow.applyEDFBuilder.cloneIngressNginxChart"},"edfbuilder_workflow.applyEDFBuilder.isntallIngressNginx":{style:{},title:"Install ingress-nginx from cloned chart",kind:"step",id:"edfbuilder_workflow.applyEDFBuilder.isntallIngressNginx"},"edfbuilder_workflow.applyEDFBuilder.waitForIngress":{style:{},title:"Wait till ingress-nginx is ready",kind:"step",id:"edfbuilder_workflow.applyEDFBuilder.waitForIngress"},"edfbuilder_workflow.applyEDFBuilder.cloneArgoCDHelm":{style:{},title:"Git clone ArgoCD Helm Chart",kind:"step",id:"edfbuilder_workflow.applyEDFBuilder.cloneArgoCDHelm"},"edfbuilder_workflow.applyEDFBuilder.installArgoCD":{style:{},title:"Install ArgoCD Helm Chart",kind:"step",id:"edfbuilder_workflow.applyEDFBuilder.installArgoCD"},"edfbuilder_workflow.applyEDFBuilder.installArgoCDIngress":{style:{},title:"Install ingress for ArgoCD",kind:"step",id:"edfbuilder_workflow.applyEDFBuilder.installArgoCDIngress"},"edfbuilder_workflow.applyEDFBuilder.cloneForgejoHelmChart":{style:{},title:"Git clone Forgejo Helm Chart",kind:"step",id:"edfbuilder_workflow.applyEDFBuilder.cloneForgejoHelmChart"},"edfbuilder_workflow.applyEDFBuilder.installForgejo":{style:{},title:"Install Forgejo Helm Chart",kind:"step",id:"edfbuilder_workflow.applyEDFBuilder.installForgejo"},"edfbuilder_workflow.applyEDFBuilder.installForgejoIngress":{style:{},title:"Install ingress for Forgejo",kind:"step",id:"edfbuilder_workflow.applyEDFBuilder.installForgejoIngress"},"edfbuilder_workflow.applyEDFBuilder.waitForArgoCD":{style:{},title:"Wait till ArgoCD is available",kind:"step",id:"edfbuilder_workflow.applyEDFBuilder.waitForArgoCD"},"edfbuilder_workflow.applyEDFBuilder.waitForForgejo":{style:{},title:"Wait till Forgejo is available",kind:"step",id:"edfbuilder_workflow.applyEDFBuilder.waitForForgejo"},"edfbuilder_workflow.applyEDFBuilder.createForgejoUser":{style:{},title:"Create technical user for Forgejo",kind:"step",id:"edfbuilder_workflow.applyEDFBuilder.createForgejoUser"},"edfbuilder_workflow.applyEDFBuilder.createForgejoRepo":{style:{},title:"Create repository for EDP state in Forgejo",kind:"step",id:"edfbuilder_workflow.applyEDFBuilder.createForgejoRepo"},"edfbuilder_workflow.applyEDFBuilder.installForgejoRunner":{style:{},title:"Install Forgejo Runner deployment",kind:"step",id:"edfbuilder_workflow.applyEDFBuilder.installForgejoRunner"},"edfbuilder_workflow.applyEDFBuilder.registerForgejoRunner":{style:{},title:"Create registration token secret for runner",kind:"step",id:"edfbuilder_workflow.applyEDFBuilder.registerForgejoRunner"},"edfbuilder_workflow.applyEDFBuilder.configGitIdentity":{style:{},title:"Configure Git identity",kind:"step",id:"edfbuilder_workflow.applyEDFBuilder.configGitIdentity"},"edfbuilder_workflow.applyEDFBuilder.configCrossplaneArgoCDProvider":{style:{},title:"Configure Crossplane ArgoCD provider",kind:"step",id:"edfbuilder_workflow.applyEDFBuilder.configCrossplaneArgoCDProvider"},"edfbuilder_workflow.applyEDFBuilder.configCrossplaneKindProvider":{style:{},title:"Configure Crossplane Kind provider",kind:"step",id:"edfbuilder_workflow.applyEDFBuilder.configCrossplaneKindProvider"},"edfbuilder_workflow.applyEDFBuilder.uploadStacksToForgjo":{style:{},title:"Git push hydrated stacks to Forgejo isntance",kind:"step",id:"edfbuilder_workflow.applyEDFBuilder.uploadStacksToForgjo"},"edfbuilder_workflow.applyEDFBuilder.configArgoDockerRegistry":{style:{},title:"Configure Docker Registry for Argo Workflows",kind:"step",id:"edfbuilder_workflow.applyEDFBuilder.configArgoDockerRegistry"},"edfbuilder_workflow.applyEDFBuilder.createPackagesForgejoUser":{style:{},title:"Create packages user and token in Forgejo (unused?)",kind:"step",id:"edfbuilder_workflow.applyEDFBuilder.createPackagesForgejoUser"},"edfbuilder_workflow.applyEDFBuilder.installArgoCDStacks":{style:{},title:"Apply all selected ArgoCD stacks",kind:"step",id:"edfbuilder_workflow.applyEDFBuilder.installArgoCDStacks"},"edfbuilder_workflow.applyEDFBuilder.cleanup":{style:{},title:"Cleanup work folder and unset all env vars",kind:"step",id:"edfbuilder_workflow.applyEDFBuilder.cleanup"},"edp.argoCD.argocdServer":{style:{},title:"ArgoCD Server",kind:"component",id:"edp.argoCD.argocdServer"},"edp.argoCD.argocdAppController":{style:{},title:"ApplicationController",kind:"component",id:"edp.argoCD.argocdAppController"},"edp.argoCD.argocdAppSetController":{style:{},title:"ApplicationSeetController",kind:"component",id:"edp.argoCD.argocdAppSetController"},"edp.argoCD.argocdRedis":{style:{icon:"tech:redis"},technology:"Redis",title:"Redis",kind:"component",id:"edp.argoCD.argocdRedis"},"edp.argoCD.argocdRepoServer":{style:{},title:"Repo Server",kind:"component",id:"edp.argoCD.argocdRepoServer"},"edp.ui.backstage":{style:{icon:"tech:react",shape:"browser"},title:"Backstage",kind:"component",id:"edp.ui.backstage"},"edp.ui.database":{style:{shape:"storage",icon:"tech:postgresql"},technology:"Postgresql",title:"Database",kind:"component",id:"edp.ui.database"},"edp.crossplane.crossplane":{style:{},title:"Crossplane",kind:"component",id:"edp.crossplane.crossplane"},"edp.crossplane.crossplaneFunction":{style:{},title:"Function Patch and Transform",kind:"component",id:"edp.crossplane.crossplaneFunction"},"edp.crossplane.crossplaneRbacManager":{style:{},title:"RBAC Manager",kind:"component",id:"edp.crossplane.crossplaneRbacManager"},"edp.crossplane.providerArgoCD":{style:{},title:"ArgoCD Provider",kind:"component",id:"edp.crossplane.providerArgoCD"},"edp.crossplane.providerKind":{style:{},title:"Kind Provider",kind:"component",id:"edp.crossplane.providerKind"},"edp.crossplane.providerShell":{style:{},title:"Shell Provider",kind:"component",id:"edp.crossplane.providerShell"},"edp.externalSecrets.externalSecrets":{style:{},title:"external-secrets controller",kind:"component",id:"edp.externalSecrets.externalSecrets"},"edp.externalSecrets.certController":{style:{},title:"cert-controller",kind:"component",id:"edp.externalSecrets.certController"},"edp.externalSecrets.webhook":{style:{},title:"webhook",kind:"component",id:"edp.externalSecrets.webhook"},"edp.forgejo.forgejocollaboration":{style:{icon:"tech:github"},title:"Collaboration",kind:"component",id:"edp.forgejo.forgejocollaboration"},"edp.forgejo.forgejoproject":{style:{icon:"tech:github"},title:"Project Mgmt",kind:"component",id:"edp.forgejo.forgejoproject"},"edp.ingressNginx.ingressNginx":{style:{icon:"tech:nginx"},technology:"Nginx",title:"ingress-nginx",kind:"component",id:"edp.ingressNginx.ingressNginx"},"edp.keycloak.keycloak":{style:{icon:"tech:java"},technology:"Java",title:"Keycloak",kind:"component",id:"edp.keycloak.keycloak"},"edp.keycloak.keycloakDB":{style:{shape:"storage",icon:"tech:postgresql"},technology:"Postgresql",title:"Database",kind:"component",id:"edp.keycloak.keycloakDB"},"edp.mailhog.mailhog":{style:{icon:"tech:go"},technology:"Golang",title:"Mailhog",kind:"component",id:"edp.mailhog.mailhog"},"edp.minio.minio":{style:{shape:"storage"},technology:"Minio",title:"S3 Blob Storage",kind:"component",id:"edp.minio.minio"},"edp.monitoring.alloy":{style:{icon:"tech:grafana",multiple:!0},description:{txt:"Open Telemetry Collector"},title:"Alloy",kind:"component",id:"edp.monitoring.alloy"},"edp.monitoring.loki":{style:{opacity:20,icon:"tech:grafana"},description:{txt:"Log aggregation system"},title:"Loki",kind:"container",id:"edp.monitoring.loki"},"edp.openbao.openbao":{style:{shape:"storage"},technology:"Openbao",title:"Openbao",kind:"component",id:"edp.openbao.openbao"},"edp.openbao.agentInjector":{style:{},title:"Agent Injector",kind:"component",id:"edp.openbao.agentInjector"},"edp.spark.sparkoperator":{style:{icon:"tech:spark"},technology:"Spark",title:"Spark Operator",kind:"component",id:"edp.spark.sparkoperator"},"edp.velero.velero":{style:{},title:"Velero",kind:"component",id:"edp.velero.velero"},"edp.testApp.fibonacci":{style:{icon:"tech:go"},technology:"Golang",title:"Fibonacci",kind:"component",id:"edp.testApp.fibonacci"},"edp.monitoring.loki.queryFrontend":{style:{},title:"Query Frontend",kind:"component",id:"edp.monitoring.loki.queryFrontend"},"edp.monitoring.loki.distributor":{style:{},title:"Distributor",kind:"component",id:"edp.monitoring.loki.distributor"},"edp.monitoring.loki.gateway":{style:{},title:"Gateway",kind:"component",id:"edp.monitoring.loki.gateway"},"edp.monitoring.loki.ingestor":{style:{},title:"Ingestor",kind:"component",id:"edp.monitoring.loki.ingestor"},"edp.monitoring.loki.querier":{style:{},title:"Querier",kind:"component",id:"edp.monitoring.loki.querier"}},relations:{zgprrj:{title:"",source:{model:"edfbuilder_workflow.runEDP.createCrossplaneNS"},target:{model:"edfbuilder_workflow.runEDP.installCrossplaneHelm"},id:"zgprrj"},hkqe1q:{title:"",source:{model:"edfbuilder_workflow.runEDP.installCrossplaneHelm"},target:{model:"edfbuilder_workflow.runEDP.installCrossplaneFunctionsAndProviders"},id:"hkqe1q"},"7hhs3w":{title:"",source:{model:"edfbuilder_workflow.runEDP.installCrossplaneFunctionsAndProviders"},target:{model:"edfbuilder_workflow.runEDP.waitForCrossplaneFunctionsAndProviders"},id:"7hhs3w"},xjeqlb:{title:"",source:{model:"edfbuilder_workflow.runEDP.waitForCrossplaneFunctionsAndProviders"},target:{model:"edfbuilder_workflow.runEDP.setupCrossplaneServiceAccount"},id:"xjeqlb"},"1nhvr49":{title:"",source:{model:"edfbuilder_workflow.runEDP.setupCrossplaneServiceAccount"},target:{model:"edfbuilder_workflow.runEDP.createArgoCdNS"},id:"1nhvr49"},i203to:{title:"",source:{model:"edfbuilder_workflow.runEDP.createArgoCdNS"},target:{model:"edfbuilder_workflow.runEDP.createGiteaNS"},id:"i203to"},"1b9cczp":{title:"",source:{model:"edfbuilder_workflow.runEDP.createGiteaNS"},target:{model:"edfbuilder_workflow.runEDP.createArgoCdTlsCert"},id:"1b9cczp"},i514he:{title:"",source:{model:"edfbuilder_workflow.runEDP.createArgoCdTlsCert"},target:{model:"edfbuilder_workflow.runEDP.createGiteaTlsCert"},id:"i514he"},"13ashxq":{title:"",source:{model:"edfbuilder_workflow.runEDP.createGiteaTlsCert"},target:{model:"edfbuilder_workflow.runEDP.createEDFBuilderDefinition"},id:"13ashxq"},"14kigg4":{title:"",source:{model:"edfbuilder_workflow.runEDP.createEDFBuilderDefinition"},target:{model:"edfbuilder_workflow.runEDP.createEDFBuilderComposition"},id:"14kigg4"},"1y9fees":{title:"",source:{model:"edfbuilder_workflow.runEDP.createEDFBuilderComposition"},target:{model:"edfbuilder_workflow.applyEDFBuilder"},id:"1y9fees"},"1pfgmn3":{title:"",source:{model:"edfbuilder_workflow.applyEDFBuilder.setEnvVars"},target:{model:"edfbuilder_workflow.applyEDFBuilder.readWriteKubeConf"},id:"1pfgmn3"},"11gwuq3":{title:"",source:{model:"edfbuilder_workflow.applyEDFBuilder.readWriteKubeConf"},target:{model:"edfbuilder_workflow.applyEDFBuilder.setWorkDir"},id:"11gwuq3"},"1ddvozk":{title:"",source:{model:"edfbuilder_workflow.applyEDFBuilder.setWorkDir"},target:{model:"edfbuilder_workflow.applyEDFBuilder.cloneStacksRepo"},id:"1ddvozk"},c4bphp:{title:"",source:{model:"edfbuilder_workflow.applyEDFBuilder.cloneStacksRepo"},target:{model:"edfbuilder_workflow.applyEDFBuilder.hydrateStacksWithValues"},id:"c4bphp"},"22u12c":{title:"",source:{model:"edfbuilder_workflow.applyEDFBuilder.hydrateStacksWithValues"},target:{model:"edfbuilder_workflow.applyEDFBuilder.createNamespaces"},id:"22u12c"},"1veymj5":{title:"",source:{model:"edfbuilder_workflow.applyEDFBuilder.createNamespaces"},target:{model:"edfbuilder_workflow.applyEDFBuilder.createGiteaAdminPass"},id:"1veymj5"},"1bx48yr":{title:"",source:{model:"edfbuilder_workflow.applyEDFBuilder.createGiteaAdminPass"},target:{model:"edfbuilder_workflow.applyEDFBuilder.createGrafanaPass"},id:"1bx48yr"},pbq0ly:{title:"",source:{model:"edfbuilder_workflow.applyEDFBuilder.createGrafanaPass"},target:{model:"edfbuilder_workflow.applyEDFBuilder.applyServiceMonitorCRD"},id:"pbq0ly"},"1tj029j":{title:"",source:{model:"edfbuilder_workflow.applyEDFBuilder.applyServiceMonitorCRD"},target:{model:"edfbuilder_workflow.applyEDFBuilder.cloneIngressNginxChart"},id:"1tj029j"},ukdpc6:{title:"",source:{model:"edfbuilder_workflow.applyEDFBuilder.cloneIngressNginxChart"},target:{model:"edfbuilder_workflow.applyEDFBuilder.isntallIngressNginx"},id:"ukdpc6"},tm63b8:{title:"",source:{model:"edfbuilder_workflow.applyEDFBuilder.isntallIngressNginx"},target:{model:"edfbuilder_workflow.applyEDFBuilder.waitForIngress"},id:"tm63b8"},mnqt5q:{title:"",source:{model:"edfbuilder_workflow.applyEDFBuilder.waitForIngress"},target:{model:"edfbuilder_workflow.applyEDFBuilder.cloneArgoCDHelm"},id:"mnqt5q"},c3zfur:{title:"",source:{model:"edfbuilder_workflow.applyEDFBuilder.cloneArgoCDHelm"},target:{model:"edfbuilder_workflow.applyEDFBuilder.installArgoCD"},id:"c3zfur"},"157ptzn":{title:"",source:{model:"edfbuilder_workflow.applyEDFBuilder.installArgoCD"},target:{model:"edfbuilder_workflow.applyEDFBuilder.installArgoCDIngress"},id:"157ptzn"},"8kcuka":{title:"",source:{model:"edfbuilder_workflow.applyEDFBuilder.installArgoCDIngress"},target:{model:"edfbuilder_workflow.applyEDFBuilder.cloneForgejoHelmChart"},id:"8kcuka"},"5sub2k":{title:"",source:{model:"edfbuilder_workflow.applyEDFBuilder.cloneForgejoHelmChart"},target:{model:"edfbuilder_workflow.applyEDFBuilder.installForgejo"},id:"5sub2k"},z8qrfi:{title:"",source:{model:"edfbuilder_workflow.applyEDFBuilder.installForgejo"},target:{model:"edfbuilder_workflow.applyEDFBuilder.installForgejoIngress"},id:"z8qrfi"},"1dqe9ri":{title:"",source:{model:"edfbuilder_workflow.applyEDFBuilder.installForgejoIngress"},target:{model:"edfbuilder_workflow.applyEDFBuilder.waitForArgoCD"},id:"1dqe9ri"},"12iu5vk":{title:"",source:{model:"edfbuilder_workflow.applyEDFBuilder.waitForArgoCD"},target:{model:"edfbuilder_workflow.applyEDFBuilder.waitForForgejo"},id:"12iu5vk"},"1xhuuis":{title:"",source:{model:"edfbuilder_workflow.applyEDFBuilder.waitForForgejo"},target:{model:"edfbuilder_workflow.applyEDFBuilder.createForgejoUser"},id:"1xhuuis"},vhezff:{title:"",source:{model:"edfbuilder_workflow.applyEDFBuilder.createForgejoUser"},target:{model:"edfbuilder_workflow.applyEDFBuilder.createForgejoRepo"},id:"vhezff"},"1dow3tq":{title:"",source:{model:"edfbuilder_workflow.applyEDFBuilder.createForgejoRepo"},target:{model:"edfbuilder_workflow.applyEDFBuilder.installForgejoRunner"},id:"1dow3tq"},"1k46mx8":{title:"",source:{model:"edfbuilder_workflow.applyEDFBuilder.installForgejoRunner"},target:{model:"edfbuilder_workflow.applyEDFBuilder.registerForgejoRunner"},id:"1k46mx8"},f5bybq:{title:"",source:{model:"edfbuilder_workflow.applyEDFBuilder.registerForgejoRunner"},target:{model:"edfbuilder_workflow.applyEDFBuilder.configGitIdentity"},id:"f5bybq"},"8g1uqn":{title:"",source:{model:"edfbuilder_workflow.applyEDFBuilder.configGitIdentity"},target:{model:"edfbuilder_workflow.applyEDFBuilder.configCrossplaneArgoCDProvider"},id:"8g1uqn"},"9c504z":{title:"",source:{model:"edfbuilder_workflow.applyEDFBuilder.configCrossplaneArgoCDProvider"},target:{model:"edfbuilder_workflow.applyEDFBuilder.configCrossplaneKindProvider"},id:"9c504z"},"19gp6kf":{title:"",source:{model:"edfbuilder_workflow.applyEDFBuilder.configCrossplaneKindProvider"},target:{model:"edfbuilder_workflow.applyEDFBuilder.uploadStacksToForgjo"},id:"19gp6kf"},h55zvp:{title:"",source:{model:"edfbuilder_workflow.applyEDFBuilder.uploadStacksToForgjo"},target:{model:"edfbuilder_workflow.applyEDFBuilder.configArgoDockerRegistry"},id:"h55zvp"},"1b7dj03":{title:"",source:{model:"edfbuilder_workflow.applyEDFBuilder.configArgoDockerRegistry"},target:{model:"edfbuilder_workflow.applyEDFBuilder.createPackagesForgejoUser"},id:"1b7dj03"},"1bk65oi":{title:"",source:{model:"edfbuilder_workflow.applyEDFBuilder.createPackagesForgejoUser"},target:{model:"edfbuilder_workflow.applyEDFBuilder.installArgoCDStacks"},id:"1bk65oi"},rsncrl:{title:"",source:{model:"edfbuilder_workflow.applyEDFBuilder.installArgoCDStacks"},target:{model:"edfbuilder_workflow.applyEDFBuilder.cleanup"},id:"rsncrl"},"18dtot7":{title:"register",source:{model:"forgejoRunner"},target:{model:"edp.forgejoActions"},id:"18dtot7"},"1oxlsu0":{title:"boots one",source:{model:"edfbuilder"},target:{model:"edf"},id:"1oxlsu0"},s1l7g7:{title:"runs",source:{model:"platformdeveloper"},target:{model:"edfbuilder"},id:"s1l7g7"},yfhhi5:{title:"read/write",source:{model:"edp.argoCD.argocdServer"},target:{model:"edp.argoCD.argocdRedis"},id:"yfhhi5"},iullhy:{title:"read/write",source:{model:"edp.argoCD.argocdRepoServer"},target:{model:"edp.argoCD.argocdRedis"},id:"iullhy"},"10vkxaf":{title:"read/write",source:{model:"edp.argoCD.argocdAppController"},target:{model:"edp.argoCD.argocdRedis"},id:"10vkxaf"},i8z0mi:{title:"read/write",source:{model:"edp.argoCD.argocdAppSetController"},target:{model:"edp.argoCD.argocdRedis"},id:"i8z0mi"},"6mupa0":{title:"Syncs git repo",source:{model:"edp.argoCD.argocdRepoServer"},target:{model:"edp.forgejogit"},id:"6mupa0"},c23sak:{title:"reads/writes",source:{model:"edp.ui.backstage"},target:{model:"edp.ui.database"},id:"c23sak"},"1pbc22f":{title:"runs workflows",source:{model:"edp.forgejoActions"},target:{model:"forgejoRunner"},id:"1pbc22f"},"13uvtiq":{title:"get metrics and alerts",source:{model:"edp.grafana"},target:{model:"edp.prometheus"},id:"13uvtiq"},"1n1utzc":{title:"get logs",source:{model:"edp.grafana"},target:{model:"edp.loki"},id:"1n1utzc"},"123efwn":{title:"https",source:{model:"edp.ingressNginx.ingressNginx"},target:{model:"edp.forgejo"},id:"123efwn"},h3rut2:{title:"https",source:{model:"edp.ingressNginx.ingressNginx"},target:{model:"edp.keycloak.keycloak"},id:"h3rut2"},"1p30hav":{title:"https",source:{model:"edp.ingressNginx.ingressNginx"},target:{model:"edp.openbao.openbao"},id:"1p30hav"},"1yssos5":{title:"https",source:{model:"edp.ingressNginx.ingressNginx"},target:{model:"edp.argoCD.argocdServer"},id:"1yssos5"},v8c8aq:{title:"https",source:{model:"edp.ingressNginx.ingressNginx"},target:{model:"edp.ui.backstage"},id:"v8c8aq"},fe65w2:{title:"https",source:{model:"edp.ingressNginx.ingressNginx"},target:{model:"edp.minio.minio"},id:"fe65w2"},"1jvab2g":{title:"https",source:{model:"edp.ingressNginx.ingressNginx"},target:{model:"edp.monitoring.alloy"},id:"1jvab2g"},fs60l7:{title:"https",source:{model:"edp.ingressNginx.ingressNginx"},target:{model:"edp.monitoring.loki.queryFrontend"},id:"fs60l7"},"1i5f8um":{title:"https",source:{model:"edp.ingressNginx.ingressNginx"},target:{model:"edp.testApp.fibonacci"},id:"1i5f8um"},ofdedh:{title:"https",source:{model:"edp.ingressNginx.ingressNginx"},target:{model:"edp.mailhog.mailhog"},id:"ofdedh"},"18zxrhs":{title:"reads/writes",source:{model:"edp.keycloak.keycloak"},target:{model:"edp.keycloak.keycloakDB"},id:"18zxrhs"},"11ollyi":{title:"pushes logs",source:{model:"edp.monitoring.alloy"},target:{model:"edp.monitoring.loki.distributor"},id:"11ollyi"},"1mazt1x":{title:"store backups",source:{model:"edp.velero.velero"},target:{model:"edp.minio.minio"},id:"1mazt1x"},"5hkplj":{title:"inner loop development",source:{model:"developer"},target:{model:"localbox"},id:"5hkplj"},"1pp73vj":{title:"outer loop development",source:{model:"developer"},target:{model:"edp"},id:"1pp73vj"},yk9zv2:{title:"manages project",source:{model:"developer"},target:{model:"edp.ui"},id:"yk9zv2"},"12036hb":{title:"manages code",source:{model:"developer"},target:{model:"edp.forgejo"},id:"12036hb"},jpl8ll:{title:"authenticates",source:{model:"developer"},target:{model:"edp.keycloak"},id:"jpl8ll"},"1ghp31l":{title:"manages deployments",source:{model:"developer"},target:{model:"edp.argoCD"},id:"1ghp31l"},"1xiorre":{title:"monitors",source:{model:"developer"},target:{model:"edp.grafana"},id:"1xiorre"},"1woleh6":{title:"create and maintain apps",source:{model:"developer"},target:{model:"edp.ui.backstage"},id:"1woleh6"},"177bm2y":{title:"pushes and pull images",source:{model:"developer"},target:{model:"edp.imageregistry"},id:"177bm2y"},"1l9a3pd":{title:"uses API",source:{model:"developer"},target:{model:"edp.api"},id:"1l9a3pd"},"1uzzn9j":{title:"uses git",source:{model:"developer"},target:{model:"edp.forgejogit"},id:"1uzzn9j"},lb4xas:{title:"act according to responibility",source:{model:"otherProductLifecycleRoles"},target:{model:"edp"},id:"lb4xas"},"1g2ebwc":{title:"uses your app",source:{model:"customers"},target:{model:"cloud"},id:"1g2ebwc"},nc44l9:{title:"app specific dependencies",source:{model:"enterprise"},target:{model:"cloud"},id:"nc44l9"},xw0pne:{title:"provides documentation for",source:{model:"documentation"},target:{model:"edp"},id:"xw0pne"},"3sz3k3":{title:"creates and maintains documentation",source:{model:"platformdeveloper"},target:{model:"documentation"},id:"3sz3k3"},wsm3kf:{title:"builds many",source:{model:"edf"},target:{model:"edp"},id:"wsm3kf"},v8v12:{title:"develops EDP and EDF",source:{model:"platformdeveloper"},target:{model:"edf"},id:"v8v12"},"615gvx":{title:"integrates",source:{model:"edp"},target:{model:"enterprise"},id:"615gvx"},gerdx4:{title:"deploys and observes",source:{model:"edp"},target:{model:"cloud"},id:"gerdx4"},wvo8i:{title:"",source:{model:"edp"},target:{model:"localbox"},id:"wvo8i"},"1mp9fps":{title:"inner-outer-loop synchronization",source:{model:"localbox"},target:{model:"edp"},id:"1mp9fps"},"1abvxlh":{title:"company integration",source:{model:"localbox"},target:{model:"enterprise"},id:"1abvxlh"}},globals:{predicates:{},dynamicPredicates:{},styles:{text_large:[{targets:[{wildcard:!0}],style:{size:"xl"}}]}},views:{provider:{_type:"deployment",tags:null,links:null,_stage:"layouted",sourcePath:"views/deployment/edge/provider.c4",description:null,title:"Terraform Edge provider",id:"provider",autoLayout:{direction:"TB"},hash:"6d8d09edc6680144412e69672560195ee9c68fc2",bounds:{x:0,y:0,width:1059,height:1265},nodes:[{id:"edgeProvider",parent:null,level:0,children:[],inEdges:[],outEdges:["u9omtf","r4j4sg","1xqlhup"],deploymentRef:"edgeProvider",title:"Terraform Edge provider",kind:"paas",color:"primary",shape:"rectangle",icon:"tech:terraform",description:{txt:"Unlocks the terraform ecosystem"},tags:[],style:{opacity:15,size:"md"},x:242,y:0,width:343,height:180,labelBBox:{x:46,y:63,width:282,height:48}},{id:"edgeSdk",parent:null,level:0,children:[],inEdges:["1xqlhup"],outEdges:["14pfq5a","lw6otg"],deploymentRef:"edgeSdk",title:"Edge Cloud SDK",kind:"paas",technology:"Cloud Services",color:"primary",shape:"rectangle",icon:"tech:go",description:{txt:"Wrapper around API"},tags:[],style:{opacity:15,size:"md"},x:86,y:347,width:320,height:180,labelBBox:{x:68,y:53,width:214,height:67}},{id:"edgeProviderHost",parent:null,level:0,children:["edgeProviderHost.terralist","edgeProviderHost.edp"],inEdges:["14pfq5a","u9omtf","r4j4sg"],outEdges:[],deploymentRef:"edgeProviderHost",title:"OTC",kind:"environment",color:"primary",shape:"rectangle",tags:[],style:{opacity:15,size:"md"},depth:1,x:478,y:276,width:466,height:648,labelBBox:{x:6,y:0,width:27,height:15}},{id:"edgeCloud",parent:null,level:0,children:["edgeCloud.edgeApi","edgeCloud.edgeResources"],inEdges:["lw6otg"],outEdges:[],deploymentRef:"edgeCloud",title:"Edge cloud",kind:"environment",color:"primary",shape:"rectangle",tags:[],style:{opacity:15,size:"md"},depth:1,x:8,y:623,width:420,height:634,labelBBox:{x:6,y:0,width:77,height:15}},{id:"edgeProviderHost.terralist",parent:"edgeProviderHost",level:1,children:[],inEdges:["r4j4sg"],outEdges:["c8rye7"],deploymentRef:"edgeProviderHost.terralist",title:"Terralist",kind:"paas",technology:"Cloud Services",color:"primary",shape:"rectangle",icon:"tech:terraform",description:{txt:"Terraform provider private hosting"},tags:[],style:{opacity:15,size:"md"},x:536,y:347,width:350,height:180,labelBBox:{x:46,y:53,width:288,height:67}},{id:"edgeCloud.edgeApi",parent:"edgeCloud",level:1,children:[],inEdges:["lw6otg"],outEdges:["1toht4t"],deploymentRef:"edgeCloud.edgeApi",title:"Edge Cloud API",kind:"paas",technology:"Edge Cloud (managed)",links:[{url:"https://swagger.edge.platform.mg3.mdb.osc.live",title:"Documentation"}],color:"primary",shape:"rectangle",icon:"tech:swagger",tags:[],style:{opacity:15,size:"md"},x:58,y:694,width:320,height:180,labelBBox:{x:73,y:64,width:204,height:46}},{id:"edgeProviderHost.edp",parent:"edgeProviderHost",level:1,children:[],inEdges:["c8rye7","14pfq5a","u9omtf"],outEdges:[],deploymentRef:"edgeProviderHost.edp",title:"Forgejo for all EDP-tenants",kind:"cluster",color:"primary",shape:"rectangle",modelRef:"edp.forgejo",icon:"tech:git",description:{txt:"edp.buildth.ing"},tags:[],style:{opacity:15,size:"md"},navigateTo:"forgejo",x:528,y:694,width:365,height:180,labelBBox:{x:46,y:63,width:304,height:48}},{id:"edgeCloud.edgeResources",parent:"edgeCloud",level:1,children:[],inEdges:["1toht4t"],outEdges:[],deploymentRef:"edgeCloud.edgeResources",title:"Edge Cloud Resources",kind:"paas",technology:"Edge Cloud (managed)",color:"primary",shape:"rectangle",description:{txt:"App, AppInstance, etc."},tags:[],style:{opacity:15,size:"md"},x:58,y:1027,width:320,height:180,labelBBox:{x:55,y:53,width:210,height:67}}],edges:[{id:"1toht4t",source:"edgeCloud.edgeApi",target:"edgeCloud.edgeResources",label:"creates/destroys",dotpos:"e,218,1026.9 218,873.65 218,917.68 218,971.04 218,1016.4",points:[[218,874],[218,918],[218,971],[218,1016]],labelBBox:{x:219,y:939,width:107,height:18},parent:"edgeCloud",relations:["rr0lcz"],color:"gray",line:"dashed",head:"normal"},{id:"c8rye7",source:"edgeProviderHost.terralist",target:"edgeProviderHost.edp",label:"authenticates via",dotpos:"e,711,694.16 711,526.85 711,574.84 711,634.24 711,683.75",points:[[711,527],[711,575],[711,634],[711,684]],labelBBox:{x:712,y:592,width:109,height:18},parent:"edgeProviderHost",relations:["1q6ftvm"],color:"gray",line:"dashed",head:"normal"},{id:"14pfq5a",source:"edgeSdk",target:"edgeProviderHost.edp",label:"hosted on",dotpos:"e,591.25,694.16 365.75,526.85 432.33,576.25 515.2,637.73 583.05,688.07",points:[[366,527],[432,576],[515,638],[583,688]],labelBBox:{x:480,y:592,width:66,height:18},parent:null,relations:["1sm6ifh"],color:"gray",line:"dashed",head:"normal"},{id:"lw6otg",source:"edgeSdk",target:"edgeCloud.edgeApi",label:"calls",dotpos:"e,225.21,694.16 238.79,526.85 234.89,574.84 230.07,634.24 226.06,683.75",points:[[239,527],[235,575],[230,634],[226,684]],labelBBox:{x:234,y:592,width:32,height:18},parent:null,relations:["vfhcba"],color:"gray",line:"dashed",head:"normal"},{id:"u9omtf",source:"edgeProvider",target:"edgeProviderHost.edp",label:"hosted on",dotpos:"e,826.4,694.28 585.39,99.841 709.22,116.27 868.62,160.32 951,275.8 1015.8,366.69 992.06,423.18 951,527 926.7,588.45 879.91,643.78 834.05,687.15",points:[[585,100],[709,116],[869,160],[951,276],[1016,367],[992,423],[951,527],[927,588],[880,644],[834,687]],labelBBox:{x:992,y:425,width:66,height:18},parent:null,relations:["12ssq9"],color:"gray",line:"dashed",head:"normal"},{id:"r4j4sg",source:"edgeProvider",target:"edgeProviderHost.terralist",label:"published to",dotpos:"e,634.52,347.16 490.48,179.85 532.49,228.65 584.65,289.23 627.69,339.23",points:[[490,180],[532,229],[585,289],[628,339]],labelBBox:{x:564,y:245,width:80,height:18},parent:null,relations:["1mpjz5d"],color:"gray",line:"dashed",head:"normal"},{id:"1xqlhup",source:"edgeProvider",target:"edgeSdk",label:"built using",dotpos:"e,289.26,347.16 370.74,179.85 347.17,228.24 317.96,288.23 293.73,337.99",points:[[371,180],[347,228],[318,288],[294,338]],labelBBox:{x:336,y:245,width:67,height:18},parent:null,relations:["1wlvsb5"],color:"gray",line:"dashed",head:"normal"}]},index:{_type:"deployment",tags:null,links:null,_stage:"layouted",sourcePath:"views/deployment/kind/kind.c4",description:null,title:"Local Kind Deployment",id:"index",autoLayout:{direction:"TB"},hash:"38ef98dfaa2a9ab596c11cc9bcf4ea68be58f045",bounds:{x:0,y:0,width:13818,height:1769},nodes:[{id:"local",parent:null,level:0,children:["local.ingressNginx","local.velero","local.crossplane","local.externalSecrets","local.monitoring","local.backstage","local.argocd","local.gitea","local.keycloak","local.openbao","local.fibonacci","local.mailhog","local.minio","local.spark.sparkoperator"],inEdges:[],outEdges:[],deploymentRef:"local",title:"Local kind-cluster",kind:"environment",technology:"Kind",color:"primary",shape:"rectangle",icon:"tech:kubernetes",description:{txt:"Local kind-cluster environment for EDP, typically run by edpbuilder"},tags:[],style:{opacity:15,size:"md"},depth:2,x:3332,y:8,width:10478,height:1449,labelBBox:{x:6,y:0,width:127,height:15}},{id:"otc-faas",parent:null,level:0,children:[],inEdges:[],outEdges:[],deploymentRef:"otc-faas",title:"OTC prototype FaaS",kind:"cloud",technology:"OTC",color:"primary",shape:"rectangle",description:{txt:"OTC environments for Prototype FaaS."},tags:[],style:{opacity:15,size:"md"},x:0,y:150,width:320,height:180,labelBBox:{x:28,y:54,width:264,height:67}},{id:"edge",parent:null,level:0,children:[],inEdges:[],outEdges:[],deploymentRef:"edge",title:"Edge Cloud",kind:"cloud",technology:"Edge",color:"primary",shape:"rectangle",description:{txt:"Edge environments for distributed workloads."},tags:[],style:{opacity:15,size:"md"},x:450,y:150,width:340,height:180,labelBBox:{x:18,y:54,width:304,height:67}},{id:"edgeProvider",parent:null,level:0,children:[],inEdges:[],outEdges:["1xqlhup","u9omtf","r4j4sg"],deploymentRef:"edgeProvider",title:"Terraform Edge provider",kind:"paas",color:"primary",shape:"rectangle",icon:"tech:terraform",description:{txt:"Unlocks the terraform ecosystem"},tags:[],style:{opacity:15,size:"md"},x:920,y:150,width:343,height:180,labelBBox:{x:46,y:63,width:282,height:48}},{id:"otc-edpFoundry",parent:null,level:0,children:["otc-edpFoundry.forgejoRunnerInfrastructure","otc-edpFoundry.cce","otc-edpFoundry.workflowSetupEDPInfrastructure","otc-edpFoundry.workflowSetupArgoCDInfrastructure"],inEdges:[],outEdges:["r3wxut","1sng0q0","e3benz"],deploymentRef:"otc-edpFoundry",title:"OTC EDP Foundry Central Service clusters",kind:"cloud",technology:"OTC",color:"primary",shape:"rectangle",description:{txt:`OTC environments for the central EDP Foundry services. This is kubernetes clusters and other infrastructure like nodes and vms, and optionally platform services. All is set up by IaC terraform and edpbuilder. +and security scanning`},title:"Forgejo",kind:"container",id:"edp.forgejo"},"edp.forgejoActions":{style:{icon:"tech:go"},technology:"Golang",description:{txt:"Continuous Integration like Github Actions"},title:"Forgejo Actions",kind:"component",id:"edp.forgejoActions"},"edp.imageregistry":{style:{icon:"tech:go"},technology:"Golang",description:{txt:"Container Image Registry"},title:"Forgejo OCI Image Registry",kind:"component",id:"edp.imageregistry"},"edp.forgejogit":{style:{icon:"tech:git"},title:"ForgejoGit",kind:"component",id:"edp.forgejogit"},"edp.garm":{style:{opacity:20,icon:"tech:docker"},title:"Garm Image",kind:"container",id:"edp.garm"},"edp.grafana":{style:{opacity:20,icon:"tech:grafana"},description:{txt:"Data visualization and monitoring"},title:"Grafana",kind:"container",id:"edp.grafana"},"edp.ingressNginx":{style:{opacity:20},tags:["internal"],description:{txt:"Ingress Controller for incoming http(s) traffic"},title:"Ingress",kind:"container",id:"edp.ingressNginx"},"edp.keycloak":{style:{opacity:20},description:{txt:"Single Sign On for all EDP products"},title:"Keycloak",kind:"container",id:"edp.keycloak"},"edp.kyverno":{style:{opacity:20},tags:["internal"],description:{txt:"Policy-as-Code"},title:"Kyverno",kind:"container",id:"edp.kyverno"},"edp.loki":{style:{opacity:20},description:{txt:"Log aggregation system"},title:"Loki",kind:"container",id:"edp.loki"},"edp.mailhog":{style:{opacity:20},description:{txt:"Web and API based SMTP testing"},title:"Mailhog",kind:"container",id:"edp.mailhog"},"edp.minio":{style:{opacity:20},description:{txt:"S3 compatible blob storage"},title:"Minio",kind:"container",id:"edp.minio"},"edp.monitoring":{style:{opacity:20},description:{txt:"Observability system to monitor deployed components"},title:"Monitoring",kind:"container",id:"edp.monitoring"},"edp.openbao":{style:{opacity:20},description:{txt:"Secure secret storage"},title:"OpenBao",kind:"container",id:"edp.openbao"},"edp.prometheus":{style:{opacity:20,icon:"tech:prometheus"},description:{txt:"Monitoring and alerting toolkit"},title:"Prometheus",kind:"container",id:"edp.prometheus"},"edp.spark":{style:{opacity:20},tags:["internal"],description:{txt:"Allows running Spark applications on K8s"},title:"Spark",kind:"container",id:"edp.spark"},"edp.velero":{style:{opacity:20},tags:["internal"],description:{txt:"Backup Kubernetes resources"},title:"Velero",kind:"container",id:"edp.velero"},"cloud.application":{style:{color:"primary"},technology:"DSL",description:{txt:"An application description"},title:"application",kind:"schema",id:"cloud.application"},"edp.application":{style:{color:"primary"},technology:"DSL",description:{txt:"An application description"},title:"application",kind:"schema",id:"edp.application"},"edp.testApp":{style:{opacity:20},description:{txt:"Testapp to validate deployments"},title:"Fibonacci",kind:"container",id:"edp.testApp"},"localbox.application":{style:{color:"primary"},technology:"DSL",description:{txt:"An application description"},title:"application",kind:"schema",id:"localbox.application"},"localbox.git":{style:{icon:"tech:git"},technology:"Git",description:{txt:"local git"},title:"git",kind:"component",id:"localbox.git"},"edfbuilder_workflow.runEDP.createCrossplaneNS":{style:{},title:"Create Crossplane namespace",kind:"step",id:"edfbuilder_workflow.runEDP.createCrossplaneNS"},"edfbuilder_workflow.runEDP.installCrossplaneHelm":{style:{},title:"Install Crossplane Helm Chart",kind:"step",id:"edfbuilder_workflow.runEDP.installCrossplaneHelm"},"edfbuilder_workflow.runEDP.installCrossplaneFunctionsAndProviders":{style:{},title:"Install Crossplane Functions and Providers",kind:"step",id:"edfbuilder_workflow.runEDP.installCrossplaneFunctionsAndProviders"},"edfbuilder_workflow.runEDP.waitForCrossplaneFunctionsAndProviders":{style:{},title:"Wait for Crossplane Functions and Providers to become available",kind:"step",id:"edfbuilder_workflow.runEDP.waitForCrossplaneFunctionsAndProviders"},"edfbuilder_workflow.runEDP.setupCrossplaneServiceAccount":{style:{},title:"Apply cluster-admin role to crossplane shell provider service account",kind:"step",id:"edfbuilder_workflow.runEDP.setupCrossplaneServiceAccount"},"edfbuilder_workflow.runEDP.createArgoCdNS":{style:{},title:"Create ArgoCD namespace",kind:"step",id:"edfbuilder_workflow.runEDP.createArgoCdNS"},"edfbuilder_workflow.runEDP.createGiteaNS":{style:{},title:"Create Gitea namespace",kind:"step",id:"edfbuilder_workflow.runEDP.createGiteaNS"},"edfbuilder_workflow.runEDP.createArgoCdTlsCert":{style:{},title:"Create TLS Cert for Argo",kind:"step",id:"edfbuilder_workflow.runEDP.createArgoCdTlsCert"},"edfbuilder_workflow.runEDP.createGiteaTlsCert":{style:{},title:"Create TLS Cert for Forgejo",kind:"step",id:"edfbuilder_workflow.runEDP.createGiteaTlsCert"},"edfbuilder_workflow.runEDP.createEDFBuilderDefinition":{style:{},title:"Create EDFbuilder crossplane definition (defines API)",kind:"step",id:"edfbuilder_workflow.runEDP.createEDFBuilderDefinition"},"edfbuilder_workflow.runEDP.createEDFBuilderComposition":{style:{},title:"Create EDFbuilder crossplane composition (defines what happens when EDFbuilder is applied)",kind:"step",id:"edfbuilder_workflow.runEDP.createEDFBuilderComposition"},"edfbuilder_workflow.applyEDFBuilder.setEnvVars":{style:{},title:"Set required environment variables",kind:"step",id:"edfbuilder_workflow.applyEDFBuilder.setEnvVars"},"edfbuilder_workflow.applyEDFBuilder.readWriteKubeConf":{style:{},title:"Make kube.conf write/readbale",kind:"step",id:"edfbuilder_workflow.applyEDFBuilder.readWriteKubeConf"},"edfbuilder_workflow.applyEDFBuilder.setWorkDir":{style:{},title:"Set workdir to /tmp/rundir",kind:"step",id:"edfbuilder_workflow.applyEDFBuilder.setWorkDir"},"edfbuilder_workflow.applyEDFBuilder.cloneStacksRepo":{style:{},title:"Clone steps repo and checkout desired branch",kind:"step",id:"edfbuilder_workflow.applyEDFBuilder.cloneStacksRepo"},"edfbuilder_workflow.applyEDFBuilder.hydrateStacksWithValues":{style:{},title:"Hydrate Stacks with values",kind:"step",id:"edfbuilder_workflow.applyEDFBuilder.hydrateStacksWithValues"},"edfbuilder_workflow.applyEDFBuilder.createNamespaces":{style:{},title:"Create all required namespaces",kind:"step",id:"edfbuilder_workflow.applyEDFBuilder.createNamespaces"},"edfbuilder_workflow.applyEDFBuilder.createGiteaAdminPass":{style:{},title:"Create Admin Password for Forgejo",kind:"step",id:"edfbuilder_workflow.applyEDFBuilder.createGiteaAdminPass"},"edfbuilder_workflow.applyEDFBuilder.createGrafanaPass":{style:{},title:"Create Grafana Admin Password",kind:"step",id:"edfbuilder_workflow.applyEDFBuilder.createGrafanaPass"},"edfbuilder_workflow.applyEDFBuilder.applyServiceMonitorCRD":{style:{},title:"Apply ServiceMonitor CRDs for Prometheus",kind:"step",id:"edfbuilder_workflow.applyEDFBuilder.applyServiceMonitorCRD"},"edfbuilder_workflow.applyEDFBuilder.cloneIngressNginxChart":{style:{},title:"Git clone ingress-nginx helm chart",kind:"step",id:"edfbuilder_workflow.applyEDFBuilder.cloneIngressNginxChart"},"edfbuilder_workflow.applyEDFBuilder.isntallIngressNginx":{style:{},title:"Install ingress-nginx from cloned chart",kind:"step",id:"edfbuilder_workflow.applyEDFBuilder.isntallIngressNginx"},"edfbuilder_workflow.applyEDFBuilder.waitForIngress":{style:{},title:"Wait till ingress-nginx is ready",kind:"step",id:"edfbuilder_workflow.applyEDFBuilder.waitForIngress"},"edfbuilder_workflow.applyEDFBuilder.cloneArgoCDHelm":{style:{},title:"Git clone ArgoCD Helm Chart",kind:"step",id:"edfbuilder_workflow.applyEDFBuilder.cloneArgoCDHelm"},"edfbuilder_workflow.applyEDFBuilder.installArgoCD":{style:{},title:"Install ArgoCD Helm Chart",kind:"step",id:"edfbuilder_workflow.applyEDFBuilder.installArgoCD"},"edfbuilder_workflow.applyEDFBuilder.installArgoCDIngress":{style:{},title:"Install ingress for ArgoCD",kind:"step",id:"edfbuilder_workflow.applyEDFBuilder.installArgoCDIngress"},"edfbuilder_workflow.applyEDFBuilder.cloneForgejoHelmChart":{style:{},title:"Git clone Forgejo Helm Chart",kind:"step",id:"edfbuilder_workflow.applyEDFBuilder.cloneForgejoHelmChart"},"edfbuilder_workflow.applyEDFBuilder.installForgejo":{style:{},title:"Install Forgejo Helm Chart",kind:"step",id:"edfbuilder_workflow.applyEDFBuilder.installForgejo"},"edfbuilder_workflow.applyEDFBuilder.installForgejoIngress":{style:{},title:"Install ingress for Forgejo",kind:"step",id:"edfbuilder_workflow.applyEDFBuilder.installForgejoIngress"},"edfbuilder_workflow.applyEDFBuilder.waitForArgoCD":{style:{},title:"Wait till ArgoCD is available",kind:"step",id:"edfbuilder_workflow.applyEDFBuilder.waitForArgoCD"},"edfbuilder_workflow.applyEDFBuilder.waitForForgejo":{style:{},title:"Wait till Forgejo is available",kind:"step",id:"edfbuilder_workflow.applyEDFBuilder.waitForForgejo"},"edfbuilder_workflow.applyEDFBuilder.createForgejoUser":{style:{},title:"Create technical user for Forgejo",kind:"step",id:"edfbuilder_workflow.applyEDFBuilder.createForgejoUser"},"edfbuilder_workflow.applyEDFBuilder.createForgejoRepo":{style:{},title:"Create repository for EDP state in Forgejo",kind:"step",id:"edfbuilder_workflow.applyEDFBuilder.createForgejoRepo"},"edfbuilder_workflow.applyEDFBuilder.installForgejoRunner":{style:{},title:"Install Forgejo Runner deployment",kind:"step",id:"edfbuilder_workflow.applyEDFBuilder.installForgejoRunner"},"edfbuilder_workflow.applyEDFBuilder.registerForgejoRunner":{style:{},title:"Create registration token secret for runner",kind:"step",id:"edfbuilder_workflow.applyEDFBuilder.registerForgejoRunner"},"edfbuilder_workflow.applyEDFBuilder.configGitIdentity":{style:{},title:"Configure Git identity",kind:"step",id:"edfbuilder_workflow.applyEDFBuilder.configGitIdentity"},"edfbuilder_workflow.applyEDFBuilder.configCrossplaneArgoCDProvider":{style:{},title:"Configure Crossplane ArgoCD provider",kind:"step",id:"edfbuilder_workflow.applyEDFBuilder.configCrossplaneArgoCDProvider"},"edfbuilder_workflow.applyEDFBuilder.configCrossplaneKindProvider":{style:{},title:"Configure Crossplane Kind provider",kind:"step",id:"edfbuilder_workflow.applyEDFBuilder.configCrossplaneKindProvider"},"edfbuilder_workflow.applyEDFBuilder.uploadStacksToForgjo":{style:{},title:"Git push hydrated stacks to Forgejo isntance",kind:"step",id:"edfbuilder_workflow.applyEDFBuilder.uploadStacksToForgjo"},"edfbuilder_workflow.applyEDFBuilder.configArgoDockerRegistry":{style:{},title:"Configure Docker Registry for Argo Workflows",kind:"step",id:"edfbuilder_workflow.applyEDFBuilder.configArgoDockerRegistry"},"edfbuilder_workflow.applyEDFBuilder.createPackagesForgejoUser":{style:{},title:"Create packages user and token in Forgejo (unused?)",kind:"step",id:"edfbuilder_workflow.applyEDFBuilder.createPackagesForgejoUser"},"edfbuilder_workflow.applyEDFBuilder.installArgoCDStacks":{style:{},title:"Apply all selected ArgoCD stacks",kind:"step",id:"edfbuilder_workflow.applyEDFBuilder.installArgoCDStacks"},"edfbuilder_workflow.applyEDFBuilder.cleanup":{style:{},title:"Cleanup work folder and unset all env vars",kind:"step",id:"edfbuilder_workflow.applyEDFBuilder.cleanup"},"edp.argoCD.argocdServer":{style:{},title:"ArgoCD Server",kind:"component",id:"edp.argoCD.argocdServer"},"edp.argoCD.argocdAppController":{style:{},title:"ApplicationController",kind:"component",id:"edp.argoCD.argocdAppController"},"edp.argoCD.argocdAppSetController":{style:{},title:"ApplicationSeetController",kind:"component",id:"edp.argoCD.argocdAppSetController"},"edp.argoCD.argocdRedis":{style:{icon:"tech:redis"},technology:"Redis",title:"Redis",kind:"component",id:"edp.argoCD.argocdRedis"},"edp.argoCD.argocdRepoServer":{style:{},title:"Repo Server",kind:"component",id:"edp.argoCD.argocdRepoServer"},"edp.ui.backstage":{style:{icon:"tech:react",shape:"browser"},title:"Backstage",kind:"component",id:"edp.ui.backstage"},"edp.ui.database":{style:{shape:"storage",icon:"tech:postgresql"},technology:"Postgresql",title:"Database",kind:"component",id:"edp.ui.database"},"edp.crossplane.crossplane":{style:{},title:"Crossplane",kind:"component",id:"edp.crossplane.crossplane"},"edp.crossplane.crossplaneFunction":{style:{},title:"Function Patch and Transform",kind:"component",id:"edp.crossplane.crossplaneFunction"},"edp.crossplane.crossplaneRbacManager":{style:{},title:"RBAC Manager",kind:"component",id:"edp.crossplane.crossplaneRbacManager"},"edp.crossplane.providerArgoCD":{style:{},title:"ArgoCD Provider",kind:"component",id:"edp.crossplane.providerArgoCD"},"edp.crossplane.providerKind":{style:{},title:"Kind Provider",kind:"component",id:"edp.crossplane.providerKind"},"edp.crossplane.providerShell":{style:{},title:"Shell Provider",kind:"component",id:"edp.crossplane.providerShell"},"edp.externalSecrets.externalSecrets":{style:{},title:"external-secrets controller",kind:"component",id:"edp.externalSecrets.externalSecrets"},"edp.externalSecrets.certController":{style:{},title:"cert-controller",kind:"component",id:"edp.externalSecrets.certController"},"edp.externalSecrets.webhook":{style:{},title:"webhook",kind:"component",id:"edp.externalSecrets.webhook"},"edp.forgejo.forgejocollaboration":{style:{icon:"tech:github"},title:"Collaboration",kind:"component",id:"edp.forgejo.forgejocollaboration"},"edp.forgejo.forgejoproject":{style:{icon:"tech:github"},title:"Project Mgmt",kind:"component",id:"edp.forgejo.forgejoproject"},"edp.garm.garm":{style:{icon:"tech:go"},description:{txt:"Provisions runners for Forgejo"},title:"Garm",kind:"component",id:"edp.garm.garm"},"edp.garm.providerEdgeConnect":{style:{icon:"tech:go"},description:{txt:"Acts as abstraction layer for EdgeConnect"},title:"Garm Provider for EdgeConnect",kind:"component",id:"edp.garm.providerEdgeConnect"},"edp.garm.providerKubernetes":{style:{icon:"tech:go"},description:{txt:"Acts as abstraction layer for Kubernetes"},title:"Garm Provider for Kubernetes",kind:"component",id:"edp.garm.providerKubernetes"},"edp.ingressNginx.ingressNginx":{style:{icon:"tech:nginx"},technology:"Nginx",title:"ingress-nginx",kind:"component",id:"edp.ingressNginx.ingressNginx"},"edp.keycloak.keycloak":{style:{icon:"tech:java"},technology:"Java",title:"Keycloak",kind:"component",id:"edp.keycloak.keycloak"},"edp.keycloak.keycloakDB":{style:{shape:"storage",icon:"tech:postgresql"},technology:"Postgresql",title:"Database",kind:"component",id:"edp.keycloak.keycloakDB"},"edp.mailhog.mailhog":{style:{icon:"tech:go"},technology:"Golang",title:"Mailhog",kind:"component",id:"edp.mailhog.mailhog"},"edp.minio.minio":{style:{shape:"storage"},technology:"Minio",title:"S3 Blob Storage",kind:"component",id:"edp.minio.minio"},"edp.monitoring.alloy":{style:{icon:"tech:grafana",multiple:!0},description:{txt:"Open Telemetry Collector"},title:"Alloy",kind:"component",id:"edp.monitoring.alloy"},"edp.monitoring.loki":{style:{opacity:20,icon:"tech:grafana"},description:{txt:"Log aggregation system"},title:"Loki",kind:"container",id:"edp.monitoring.loki"},"edp.openbao.openbao":{style:{shape:"storage"},technology:"Openbao",title:"Openbao",kind:"component",id:"edp.openbao.openbao"},"edp.openbao.agentInjector":{style:{},title:"Agent Injector",kind:"component",id:"edp.openbao.agentInjector"},"edp.spark.sparkoperator":{style:{icon:"tech:spark"},technology:"Spark",title:"Spark Operator",kind:"component",id:"edp.spark.sparkoperator"},"edp.velero.velero":{style:{},title:"Velero",kind:"component",id:"edp.velero.velero"},"edp.testApp.fibonacci":{style:{icon:"tech:go"},technology:"Golang",title:"Fibonacci",kind:"component",id:"edp.testApp.fibonacci"},"edp.monitoring.loki.queryFrontend":{style:{},title:"Query Frontend",kind:"component",id:"edp.monitoring.loki.queryFrontend"},"edp.monitoring.loki.distributor":{style:{},title:"Distributor",kind:"component",id:"edp.monitoring.loki.distributor"},"edp.monitoring.loki.gateway":{style:{},title:"Gateway",kind:"component",id:"edp.monitoring.loki.gateway"},"edp.monitoring.loki.ingestor":{style:{},title:"Ingestor",kind:"component",id:"edp.monitoring.loki.ingestor"},"edp.monitoring.loki.querier":{style:{},title:"Querier",kind:"component",id:"edp.monitoring.loki.querier"}},relations:{zgprrj:{title:"",source:{model:"edfbuilder_workflow.runEDP.createCrossplaneNS"},target:{model:"edfbuilder_workflow.runEDP.installCrossplaneHelm"},id:"zgprrj"},hkqe1q:{title:"",source:{model:"edfbuilder_workflow.runEDP.installCrossplaneHelm"},target:{model:"edfbuilder_workflow.runEDP.installCrossplaneFunctionsAndProviders"},id:"hkqe1q"},"7hhs3w":{title:"",source:{model:"edfbuilder_workflow.runEDP.installCrossplaneFunctionsAndProviders"},target:{model:"edfbuilder_workflow.runEDP.waitForCrossplaneFunctionsAndProviders"},id:"7hhs3w"},xjeqlb:{title:"",source:{model:"edfbuilder_workflow.runEDP.waitForCrossplaneFunctionsAndProviders"},target:{model:"edfbuilder_workflow.runEDP.setupCrossplaneServiceAccount"},id:"xjeqlb"},"1nhvr49":{title:"",source:{model:"edfbuilder_workflow.runEDP.setupCrossplaneServiceAccount"},target:{model:"edfbuilder_workflow.runEDP.createArgoCdNS"},id:"1nhvr49"},i203to:{title:"",source:{model:"edfbuilder_workflow.runEDP.createArgoCdNS"},target:{model:"edfbuilder_workflow.runEDP.createGiteaNS"},id:"i203to"},"1b9cczp":{title:"",source:{model:"edfbuilder_workflow.runEDP.createGiteaNS"},target:{model:"edfbuilder_workflow.runEDP.createArgoCdTlsCert"},id:"1b9cczp"},i514he:{title:"",source:{model:"edfbuilder_workflow.runEDP.createArgoCdTlsCert"},target:{model:"edfbuilder_workflow.runEDP.createGiteaTlsCert"},id:"i514he"},"13ashxq":{title:"",source:{model:"edfbuilder_workflow.runEDP.createGiteaTlsCert"},target:{model:"edfbuilder_workflow.runEDP.createEDFBuilderDefinition"},id:"13ashxq"},"14kigg4":{title:"",source:{model:"edfbuilder_workflow.runEDP.createEDFBuilderDefinition"},target:{model:"edfbuilder_workflow.runEDP.createEDFBuilderComposition"},id:"14kigg4"},"1y9fees":{title:"",source:{model:"edfbuilder_workflow.runEDP.createEDFBuilderComposition"},target:{model:"edfbuilder_workflow.applyEDFBuilder"},id:"1y9fees"},"1pfgmn3":{title:"",source:{model:"edfbuilder_workflow.applyEDFBuilder.setEnvVars"},target:{model:"edfbuilder_workflow.applyEDFBuilder.readWriteKubeConf"},id:"1pfgmn3"},"11gwuq3":{title:"",source:{model:"edfbuilder_workflow.applyEDFBuilder.readWriteKubeConf"},target:{model:"edfbuilder_workflow.applyEDFBuilder.setWorkDir"},id:"11gwuq3"},"1ddvozk":{title:"",source:{model:"edfbuilder_workflow.applyEDFBuilder.setWorkDir"},target:{model:"edfbuilder_workflow.applyEDFBuilder.cloneStacksRepo"},id:"1ddvozk"},c4bphp:{title:"",source:{model:"edfbuilder_workflow.applyEDFBuilder.cloneStacksRepo"},target:{model:"edfbuilder_workflow.applyEDFBuilder.hydrateStacksWithValues"},id:"c4bphp"},"22u12c":{title:"",source:{model:"edfbuilder_workflow.applyEDFBuilder.hydrateStacksWithValues"},target:{model:"edfbuilder_workflow.applyEDFBuilder.createNamespaces"},id:"22u12c"},"1veymj5":{title:"",source:{model:"edfbuilder_workflow.applyEDFBuilder.createNamespaces"},target:{model:"edfbuilder_workflow.applyEDFBuilder.createGiteaAdminPass"},id:"1veymj5"},"1bx48yr":{title:"",source:{model:"edfbuilder_workflow.applyEDFBuilder.createGiteaAdminPass"},target:{model:"edfbuilder_workflow.applyEDFBuilder.createGrafanaPass"},id:"1bx48yr"},pbq0ly:{title:"",source:{model:"edfbuilder_workflow.applyEDFBuilder.createGrafanaPass"},target:{model:"edfbuilder_workflow.applyEDFBuilder.applyServiceMonitorCRD"},id:"pbq0ly"},"1tj029j":{title:"",source:{model:"edfbuilder_workflow.applyEDFBuilder.applyServiceMonitorCRD"},target:{model:"edfbuilder_workflow.applyEDFBuilder.cloneIngressNginxChart"},id:"1tj029j"},ukdpc6:{title:"",source:{model:"edfbuilder_workflow.applyEDFBuilder.cloneIngressNginxChart"},target:{model:"edfbuilder_workflow.applyEDFBuilder.isntallIngressNginx"},id:"ukdpc6"},tm63b8:{title:"",source:{model:"edfbuilder_workflow.applyEDFBuilder.isntallIngressNginx"},target:{model:"edfbuilder_workflow.applyEDFBuilder.waitForIngress"},id:"tm63b8"},mnqt5q:{title:"",source:{model:"edfbuilder_workflow.applyEDFBuilder.waitForIngress"},target:{model:"edfbuilder_workflow.applyEDFBuilder.cloneArgoCDHelm"},id:"mnqt5q"},c3zfur:{title:"",source:{model:"edfbuilder_workflow.applyEDFBuilder.cloneArgoCDHelm"},target:{model:"edfbuilder_workflow.applyEDFBuilder.installArgoCD"},id:"c3zfur"},"157ptzn":{title:"",source:{model:"edfbuilder_workflow.applyEDFBuilder.installArgoCD"},target:{model:"edfbuilder_workflow.applyEDFBuilder.installArgoCDIngress"},id:"157ptzn"},"8kcuka":{title:"",source:{model:"edfbuilder_workflow.applyEDFBuilder.installArgoCDIngress"},target:{model:"edfbuilder_workflow.applyEDFBuilder.cloneForgejoHelmChart"},id:"8kcuka"},"5sub2k":{title:"",source:{model:"edfbuilder_workflow.applyEDFBuilder.cloneForgejoHelmChart"},target:{model:"edfbuilder_workflow.applyEDFBuilder.installForgejo"},id:"5sub2k"},z8qrfi:{title:"",source:{model:"edfbuilder_workflow.applyEDFBuilder.installForgejo"},target:{model:"edfbuilder_workflow.applyEDFBuilder.installForgejoIngress"},id:"z8qrfi"},"1dqe9ri":{title:"",source:{model:"edfbuilder_workflow.applyEDFBuilder.installForgejoIngress"},target:{model:"edfbuilder_workflow.applyEDFBuilder.waitForArgoCD"},id:"1dqe9ri"},"12iu5vk":{title:"",source:{model:"edfbuilder_workflow.applyEDFBuilder.waitForArgoCD"},target:{model:"edfbuilder_workflow.applyEDFBuilder.waitForForgejo"},id:"12iu5vk"},"1xhuuis":{title:"",source:{model:"edfbuilder_workflow.applyEDFBuilder.waitForForgejo"},target:{model:"edfbuilder_workflow.applyEDFBuilder.createForgejoUser"},id:"1xhuuis"},vhezff:{title:"",source:{model:"edfbuilder_workflow.applyEDFBuilder.createForgejoUser"},target:{model:"edfbuilder_workflow.applyEDFBuilder.createForgejoRepo"},id:"vhezff"},"1dow3tq":{title:"",source:{model:"edfbuilder_workflow.applyEDFBuilder.createForgejoRepo"},target:{model:"edfbuilder_workflow.applyEDFBuilder.installForgejoRunner"},id:"1dow3tq"},"1k46mx8":{title:"",source:{model:"edfbuilder_workflow.applyEDFBuilder.installForgejoRunner"},target:{model:"edfbuilder_workflow.applyEDFBuilder.registerForgejoRunner"},id:"1k46mx8"},f5bybq:{title:"",source:{model:"edfbuilder_workflow.applyEDFBuilder.registerForgejoRunner"},target:{model:"edfbuilder_workflow.applyEDFBuilder.configGitIdentity"},id:"f5bybq"},"8g1uqn":{title:"",source:{model:"edfbuilder_workflow.applyEDFBuilder.configGitIdentity"},target:{model:"edfbuilder_workflow.applyEDFBuilder.configCrossplaneArgoCDProvider"},id:"8g1uqn"},"9c504z":{title:"",source:{model:"edfbuilder_workflow.applyEDFBuilder.configCrossplaneArgoCDProvider"},target:{model:"edfbuilder_workflow.applyEDFBuilder.configCrossplaneKindProvider"},id:"9c504z"},"19gp6kf":{title:"",source:{model:"edfbuilder_workflow.applyEDFBuilder.configCrossplaneKindProvider"},target:{model:"edfbuilder_workflow.applyEDFBuilder.uploadStacksToForgjo"},id:"19gp6kf"},h55zvp:{title:"",source:{model:"edfbuilder_workflow.applyEDFBuilder.uploadStacksToForgjo"},target:{model:"edfbuilder_workflow.applyEDFBuilder.configArgoDockerRegistry"},id:"h55zvp"},"1b7dj03":{title:"",source:{model:"edfbuilder_workflow.applyEDFBuilder.configArgoDockerRegistry"},target:{model:"edfbuilder_workflow.applyEDFBuilder.createPackagesForgejoUser"},id:"1b7dj03"},"1bk65oi":{title:"",source:{model:"edfbuilder_workflow.applyEDFBuilder.createPackagesForgejoUser"},target:{model:"edfbuilder_workflow.applyEDFBuilder.installArgoCDStacks"},id:"1bk65oi"},rsncrl:{title:"",source:{model:"edfbuilder_workflow.applyEDFBuilder.installArgoCDStacks"},target:{model:"edfbuilder_workflow.applyEDFBuilder.cleanup"},id:"rsncrl"},"18dtot7":{title:"register",source:{model:"forgejoRunner"},target:{model:"edp.forgejoActions"},id:"18dtot7"},"1oxlsu0":{title:"boots one",source:{model:"edfbuilder"},target:{model:"edf"},id:"1oxlsu0"},s1l7g7:{title:"runs",source:{model:"platformdeveloper"},target:{model:"edfbuilder"},id:"s1l7g7"},yfhhi5:{title:"read/write",source:{model:"edp.argoCD.argocdServer"},target:{model:"edp.argoCD.argocdRedis"},id:"yfhhi5"},iullhy:{title:"read/write",source:{model:"edp.argoCD.argocdRepoServer"},target:{model:"edp.argoCD.argocdRedis"},id:"iullhy"},"10vkxaf":{title:"read/write",source:{model:"edp.argoCD.argocdAppController"},target:{model:"edp.argoCD.argocdRedis"},id:"10vkxaf"},i8z0mi:{title:"read/write",source:{model:"edp.argoCD.argocdAppSetController"},target:{model:"edp.argoCD.argocdRedis"},id:"i8z0mi"},"6mupa0":{title:"Syncs git repo",source:{model:"edp.argoCD.argocdRepoServer"},target:{model:"edp.forgejogit"},id:"6mupa0"},c23sak:{title:"reads/writes",source:{model:"edp.ui.backstage"},target:{model:"edp.ui.database"},id:"c23sak"},"1pbc22f":{title:"runs workflows",source:{model:"edp.forgejoActions"},target:{model:"forgejoRunner"},id:"1pbc22f"},"1olxwwi":{title:"calls binary",source:{model:"edp.garm.garm"},target:{model:"edp.garm.providerEdgeConnect"},id:"1olxwwi"},iu7wve:{title:"calls binary",source:{model:"edp.garm.garm"},target:{model:"edp.garm.providerKubernetes"},id:"iu7wve"},"13uvtiq":{title:"get metrics and alerts",source:{model:"edp.grafana"},target:{model:"edp.prometheus"},id:"13uvtiq"},"1n1utzc":{title:"get logs",source:{model:"edp.grafana"},target:{model:"edp.loki"},id:"1n1utzc"},"123efwn":{title:"https",source:{model:"edp.ingressNginx.ingressNginx"},target:{model:"edp.forgejo"},id:"123efwn"},h3rut2:{title:"https",source:{model:"edp.ingressNginx.ingressNginx"},target:{model:"edp.keycloak.keycloak"},id:"h3rut2"},"1p30hav":{title:"https",source:{model:"edp.ingressNginx.ingressNginx"},target:{model:"edp.openbao.openbao"},id:"1p30hav"},"1yssos5":{title:"https",source:{model:"edp.ingressNginx.ingressNginx"},target:{model:"edp.argoCD.argocdServer"},id:"1yssos5"},v8c8aq:{title:"https",source:{model:"edp.ingressNginx.ingressNginx"},target:{model:"edp.ui.backstage"},id:"v8c8aq"},fe65w2:{title:"https",source:{model:"edp.ingressNginx.ingressNginx"},target:{model:"edp.minio.minio"},id:"fe65w2"},"1jvab2g":{title:"https",source:{model:"edp.ingressNginx.ingressNginx"},target:{model:"edp.monitoring.alloy"},id:"1jvab2g"},fs60l7:{title:"https",source:{model:"edp.ingressNginx.ingressNginx"},target:{model:"edp.monitoring.loki.queryFrontend"},id:"fs60l7"},"1i5f8um":{title:"https",source:{model:"edp.ingressNginx.ingressNginx"},target:{model:"edp.testApp.fibonacci"},id:"1i5f8um"},ofdedh:{title:"https",source:{model:"edp.ingressNginx.ingressNginx"},target:{model:"edp.mailhog.mailhog"},id:"ofdedh"},"18zxrhs":{title:"reads/writes",source:{model:"edp.keycloak.keycloak"},target:{model:"edp.keycloak.keycloakDB"},id:"18zxrhs"},"11ollyi":{title:"pushes logs",source:{model:"edp.monitoring.alloy"},target:{model:"edp.monitoring.loki.distributor"},id:"11ollyi"},"1mazt1x":{title:"store backups",source:{model:"edp.velero.velero"},target:{model:"edp.minio.minio"},id:"1mazt1x"},"5hkplj":{title:"inner loop development",source:{model:"developer"},target:{model:"localbox"},id:"5hkplj"},"1pp73vj":{title:"outer loop development",source:{model:"developer"},target:{model:"edp"},id:"1pp73vj"},yk9zv2:{title:"manages project",source:{model:"developer"},target:{model:"edp.ui"},id:"yk9zv2"},"12036hb":{title:"manages code",source:{model:"developer"},target:{model:"edp.forgejo"},id:"12036hb"},jpl8ll:{title:"authenticates",source:{model:"developer"},target:{model:"edp.keycloak"},id:"jpl8ll"},"1ghp31l":{title:"manages deployments",source:{model:"developer"},target:{model:"edp.argoCD"},id:"1ghp31l"},"1xiorre":{title:"monitors",source:{model:"developer"},target:{model:"edp.grafana"},id:"1xiorre"},"1woleh6":{title:"create and maintain apps",source:{model:"developer"},target:{model:"edp.ui.backstage"},id:"1woleh6"},"177bm2y":{title:"pushes and pull images",source:{model:"developer"},target:{model:"edp.imageregistry"},id:"177bm2y"},"1l9a3pd":{title:"uses API",source:{model:"developer"},target:{model:"edp.api"},id:"1l9a3pd"},"1uzzn9j":{title:"uses git",source:{model:"developer"},target:{model:"edp.forgejogit"},id:"1uzzn9j"},lb4xas:{title:"act according to responibility",source:{model:"otherProductLifecycleRoles"},target:{model:"edp"},id:"lb4xas"},"1g2ebwc":{title:"uses your app",source:{model:"customers"},target:{model:"cloud"},id:"1g2ebwc"},nc44l9:{title:"app specific dependencies",source:{model:"enterprise"},target:{model:"cloud"},id:"nc44l9"},xw0pne:{title:"provides documentation for",source:{model:"documentation"},target:{model:"edp"},id:"xw0pne"},"3sz3k3":{title:"creates and maintains documentation",source:{model:"platformdeveloper"},target:{model:"documentation"},id:"3sz3k3"},wsm3kf:{title:"builds many",source:{model:"edf"},target:{model:"edp"},id:"wsm3kf"},v8v12:{title:"develops EDP and EDF",source:{model:"platformdeveloper"},target:{model:"edf"},id:"v8v12"},"615gvx":{title:"integrates",source:{model:"edp"},target:{model:"enterprise"},id:"615gvx"},gerdx4:{title:"deploys and observes",source:{model:"edp"},target:{model:"cloud"},id:"gerdx4"},wvo8i:{title:"",source:{model:"edp"},target:{model:"localbox"},id:"wvo8i"},"1mp9fps":{title:"inner-outer-loop synchronization",source:{model:"localbox"},target:{model:"edp"},id:"1mp9fps"},"1abvxlh":{title:"company integration",source:{model:"localbox"},target:{model:"enterprise"},id:"1abvxlh"}},globals:{predicates:{},dynamicPredicates:{},styles:{text_large:[{targets:[{wildcard:!0}],style:{size:"xl"}}]}},views:{provider:{_type:"deployment",tags:null,links:null,_stage:"layouted",sourcePath:"views/deployment/edge/provider.c4",description:null,title:"Terraform Edge provider",id:"provider",autoLayout:{direction:"TB"},hash:"6d8d09edc6680144412e69672560195ee9c68fc2",bounds:{x:0,y:0,width:1059,height:1265},nodes:[{id:"edgeProvider",parent:null,level:0,children:[],inEdges:[],outEdges:["u9omtf","r4j4sg","1xqlhup"],deploymentRef:"edgeProvider",title:"Terraform Edge provider",kind:"paas",color:"primary",shape:"rectangle",icon:"tech:terraform",description:{txt:"Unlocks the terraform ecosystem"},tags:[],style:{opacity:15,size:"md"},x:242,y:0,width:343,height:180,labelBBox:{x:46,y:63,width:282,height:48}},{id:"edgeSdk",parent:null,level:0,children:[],inEdges:["1xqlhup"],outEdges:["14pfq5a","lw6otg"],deploymentRef:"edgeSdk",title:"Edge Cloud SDK",kind:"paas",technology:"Cloud Services",color:"primary",shape:"rectangle",icon:"tech:go",description:{txt:"Wrapper around API"},tags:[],style:{opacity:15,size:"md"},x:86,y:347,width:320,height:180,labelBBox:{x:68,y:53,width:214,height:67}},{id:"edgeProviderHost",parent:null,level:0,children:["edgeProviderHost.terralist","edgeProviderHost.edp"],inEdges:["14pfq5a","u9omtf","r4j4sg"],outEdges:[],deploymentRef:"edgeProviderHost",title:"OTC",kind:"environment",color:"primary",shape:"rectangle",tags:[],style:{opacity:15,size:"md"},depth:1,x:478,y:276,width:466,height:648,labelBBox:{x:6,y:0,width:27,height:15}},{id:"edgeCloud",parent:null,level:0,children:["edgeCloud.edgeApi","edgeCloud.edgeResources"],inEdges:["lw6otg"],outEdges:[],deploymentRef:"edgeCloud",title:"Edge cloud",kind:"environment",color:"primary",shape:"rectangle",tags:[],style:{opacity:15,size:"md"},depth:1,x:8,y:623,width:420,height:634,labelBBox:{x:6,y:0,width:77,height:15}},{id:"edgeProviderHost.terralist",parent:"edgeProviderHost",level:1,children:[],inEdges:["r4j4sg"],outEdges:["c8rye7"],deploymentRef:"edgeProviderHost.terralist",title:"Terralist",kind:"paas",technology:"Cloud Services",color:"primary",shape:"rectangle",icon:"tech:terraform",description:{txt:"Terraform provider private hosting"},tags:[],style:{opacity:15,size:"md"},x:536,y:347,width:350,height:180,labelBBox:{x:46,y:53,width:288,height:67}},{id:"edgeCloud.edgeApi",parent:"edgeCloud",level:1,children:[],inEdges:["lw6otg"],outEdges:["1toht4t"],deploymentRef:"edgeCloud.edgeApi",title:"Edge Cloud API",kind:"paas",technology:"Edge Cloud (managed)",links:[{url:"https://swagger.edge.platform.mg3.mdb.osc.live",title:"Documentation"}],color:"primary",shape:"rectangle",icon:"tech:swagger",tags:[],style:{opacity:15,size:"md"},x:58,y:694,width:320,height:180,labelBBox:{x:73,y:64,width:204,height:46}},{id:"edgeProviderHost.edp",parent:"edgeProviderHost",level:1,children:[],inEdges:["c8rye7","14pfq5a","u9omtf"],outEdges:[],deploymentRef:"edgeProviderHost.edp",title:"Forgejo for all EDP-tenants",kind:"cluster",color:"primary",shape:"rectangle",modelRef:"edp.forgejo",icon:"tech:git",description:{txt:"edp.buildth.ing"},tags:[],style:{opacity:15,size:"md"},navigateTo:"forgejo",x:528,y:694,width:365,height:180,labelBBox:{x:46,y:63,width:304,height:48}},{id:"edgeCloud.edgeResources",parent:"edgeCloud",level:1,children:[],inEdges:["1toht4t"],outEdges:[],deploymentRef:"edgeCloud.edgeResources",title:"Edge Cloud Resources",kind:"paas",technology:"Edge Cloud (managed)",color:"primary",shape:"rectangle",description:{txt:"App, AppInstance, etc."},tags:[],style:{opacity:15,size:"md"},x:58,y:1027,width:320,height:180,labelBBox:{x:55,y:53,width:210,height:67}}],edges:[{id:"1toht4t",source:"edgeCloud.edgeApi",target:"edgeCloud.edgeResources",label:"creates/destroys",points:[[218,874],[218,918],[218,971],[218,1016]],labelBBox:{x:219,y:939,width:107,height:18},parent:"edgeCloud",relations:["rr0lcz"],color:"gray",line:"dashed",head:"normal"},{id:"c8rye7",source:"edgeProviderHost.terralist",target:"edgeProviderHost.edp",label:"authenticates via",points:[[711,527],[711,575],[711,634],[711,684]],labelBBox:{x:712,y:592,width:109,height:18},parent:"edgeProviderHost",relations:["1q6ftvm"],color:"gray",line:"dashed",head:"normal"},{id:"14pfq5a",source:"edgeSdk",target:"edgeProviderHost.edp",label:"hosted on",points:[[366,527],[432,576],[515,638],[583,688]],labelBBox:{x:480,y:592,width:66,height:18},parent:null,relations:["1sm6ifh"],color:"gray",line:"dashed",head:"normal"},{id:"lw6otg",source:"edgeSdk",target:"edgeCloud.edgeApi",label:"calls",points:[[239,527],[235,575],[230,634],[226,684]],labelBBox:{x:234,y:592,width:32,height:18},parent:null,relations:["vfhcba"],color:"gray",line:"dashed",head:"normal"},{id:"u9omtf",source:"edgeProvider",target:"edgeProviderHost.edp",label:"hosted on",points:[[585,100],[709,116],[869,160],[951,276],[1016,367],[992,423],[951,527],[927,588],[880,644],[834,687]],labelBBox:{x:992,y:425,width:66,height:18},parent:null,relations:["12ssq9"],color:"gray",line:"dashed",head:"normal"},{id:"r4j4sg",source:"edgeProvider",target:"edgeProviderHost.terralist",label:"published to",points:[[490,180],[532,229],[585,289],[628,339]],labelBBox:{x:564,y:245,width:80,height:18},parent:null,relations:["1mpjz5d"],color:"gray",line:"dashed",head:"normal"},{id:"1xqlhup",source:"edgeProvider",target:"edgeSdk",label:"built using",points:[[371,180],[347,228],[318,288],[294,338]],labelBBox:{x:336,y:245,width:67,height:18},parent:null,relations:["1wlvsb5"],color:"gray",line:"dashed",head:"normal"}]},index:{_type:"deployment",tags:null,links:null,_stage:"layouted",sourcePath:"views/deployment/kind/kind.c4",description:null,title:"Local Kind Deployment",id:"index",autoLayout:{direction:"TB"},hash:"b04b332e17910fc2f4f7b56048c7814a216b321b",bounds:{x:0,y:0,width:13818,height:1769},nodes:[{id:"local",parent:null,level:0,children:["local.ingressNginx","local.velero","local.crossplane","local.externalSecrets","local.monitoring","local.backstage","local.argocd","local.gitea","local.keycloak","local.openbao","local.fibonacci","local.mailhog","local.minio","local.spark.sparkoperator"],inEdges:[],outEdges:[],deploymentRef:"local",title:"Local kind-cluster",kind:"environment",technology:"Kind",color:"primary",shape:"rectangle",icon:"tech:kubernetes",description:{txt:"Local kind-cluster environment for EDP, typically run by edpbuilder"},tags:[],style:{opacity:15,size:"md"},depth:2,x:3332,y:8,width:10478,height:1449,labelBBox:{x:6,y:0,width:127,height:15}},{id:"otc-faas",parent:null,level:0,children:[],inEdges:[],outEdges:[],deploymentRef:"otc-faas",title:"OTC prototype FaaS",kind:"cloud",technology:"OTC",color:"primary",shape:"rectangle",description:{txt:"OTC environments for Prototype FaaS."},tags:[],style:{opacity:15,size:"md"},x:0,y:150,width:320,height:180,labelBBox:{x:28,y:54,width:264,height:67}},{id:"edge",parent:null,level:0,children:[],inEdges:[],outEdges:[],deploymentRef:"edge",title:"Edge Cloud",kind:"cloud",technology:"Edge",color:"primary",shape:"rectangle",description:{txt:"Edge environments for distributed workloads."},tags:[],style:{opacity:15,size:"md"},x:450,y:150,width:340,height:180,labelBBox:{x:18,y:54,width:304,height:67}},{id:"edgeProvider",parent:null,level:0,children:[],inEdges:[],outEdges:["1xqlhup","u9omtf","r4j4sg"],deploymentRef:"edgeProvider",title:"Terraform Edge provider",kind:"paas",color:"primary",shape:"rectangle",icon:"tech:terraform",description:{txt:"Unlocks the terraform ecosystem"},tags:[],style:{opacity:15,size:"md"},x:920,y:150,width:343,height:180,labelBBox:{x:46,y:63,width:282,height:48}},{id:"otc-edpFoundry",parent:null,level:0,children:["otc-edpFoundry.forgejoRunnerInfrastructure","otc-edpFoundry.cce","otc-edpFoundry.workflowSetupEDPInfrastructure","otc-edpFoundry.workflowSetupArgoCDInfrastructure"],inEdges:[],outEdges:["r3wxut","1sng0q0","e3benz"],deploymentRef:"otc-edpFoundry",title:"OTC EDP Foundry Central Service clusters",kind:"cloud",technology:"OTC",color:"primary",shape:"rectangle",description:{txt:`OTC environments for the central EDP Foundry services. This is kubernetes clusters and other infrastructure like nodes and vms, and optionally platform services. All is set up by IaC terraform and edpbuilder. A tenant is a folder in Foundry-Config-Forgejo. On merge triggers reconciliation to EDP. Optionally we will have a WebUI/API/CLI`},tags:[],style:{opacity:15,size:"md"},depth:1,x:1920,y:79,width:870,height:995,labelBBox:{x:6,y:0,width:280,height:15}},{id:"local.ingressNginx",parent:"local",level:1,children:["local.ingressNginx.ingressNginx"],inEdges:[],outEdges:["15juth8","p2br4p","o229dq","2vnvvg","4ix58c","1hr2s5j","1nksp5g","m2japo","4drflo","ihlgsc"],deploymentRef:"local.ingressNginx",title:"ingress-nginx",kind:"namespace",color:"primary",shape:"rectangle",modelRef:"edp.ingressNginx.ingressNginx",icon:"tech:nginx",tags:[],style:{opacity:15,size:"md"},depth:1,x:6035,y:444,width:384,height:265,labelBBox:{x:6,y:0,width:92,height:15}},{id:"local.velero",parent:"local",level:1,children:["local.velero.velero"],inEdges:[],outEdges:["3znaik"],deploymentRef:"local.velero",title:"Velero",kind:"namespace",color:"primary",shape:"rectangle",modelRef:"edp.velero.velero",tags:[],style:{opacity:15,size:"md"},depth:1,x:9320,y:444,width:384,height:265,labelBBox:{x:6,y:0,width:49,height:15}},{id:"edgeSdk",parent:null,level:0,children:[],inEdges:["1xqlhup"],outEdges:["14pfq5a","lw6otg"],deploymentRef:"edgeSdk",title:"Edge Cloud SDK",kind:"paas",technology:"Cloud Services",color:"primary",shape:"rectangle",icon:"tech:go",description:{txt:"Wrapper around API"},tags:[],style:{opacity:15,size:"md"},x:731,y:497,width:320,height:180,labelBBox:{x:68,y:54,width:214,height:67}},{id:"otc-edpFoundry.forgejoRunnerInfrastructure",parent:"otc-edpFoundry",level:1,children:[],inEdges:[],outEdges:["109g3jm"],deploymentRef:"otc-edpFoundry.forgejoRunnerInfrastructure",title:"EDP ForgejoRunner infrastructure",kind:"computeressource",color:"primary",shape:"rectangle",modelRef:"forgejoRunner",description:{txt:"Infrastructure for Forgejo runners like pods, vms, lxds, etc"},tags:[],style:{opacity:15,size:"md"},x:1981,y:150,width:342,height:180,labelBBox:{x:18,y:54,width:306,height:66}},{id:"local.crossplane",parent:"local",level:1,children:["local.crossplane.crossplane","local.crossplane.crossplaneFunction","local.crossplane.crossplaneRbacManager","local.crossplane.providerArgoCD","local.crossplane.providerKind","local.crossplane.providerShell"],inEdges:[],outEdges:[],deploymentRef:"local.crossplane",title:"crossplane-system",kind:"namespace",color:"primary",shape:"rectangle",tags:[],style:{opacity:15,size:"md"},depth:1,x:9320,y:79,width:2670,height:301,labelBBox:{x:6,y:0,width:129,height:15}},{id:"local.crossplane.crossplane",parent:"local.crossplane",level:2,children:[],inEdges:[],outEdges:[],kind:"instance",title:"Crossplane",tags:[],color:"primary",shape:"rectangle",style:{opacity:15,size:"md"},deploymentRef:"local.crossplane.crossplane",modelRef:"edp.crossplane.crossplane",x:9370,y:150,width:320,height:180,labelBBox:{x:107,y:74,width:105,height:24}},{id:"local.crossplane.crossplaneFunction",parent:"local.crossplane",level:2,children:[],inEdges:[],outEdges:[],kind:"instance",title:"Function Patch and Transform",tags:[],color:"primary",shape:"rectangle",style:{opacity:15,size:"md"},deploymentRef:"local.crossplane.crossplaneFunction",modelRef:"edp.crossplane.crossplaneFunction",x:9820,y:150,width:320,height:180,labelBBox:{x:24,y:74,width:273,height:24}},{id:"local.crossplane.crossplaneRbacManager",parent:"local.crossplane",level:2,children:[],inEdges:[],outEdges:[],kind:"instance",title:"RBAC Manager",tags:[],color:"primary",shape:"rectangle",style:{opacity:15,size:"md"},deploymentRef:"local.crossplane.crossplaneRbacManager",modelRef:"edp.crossplane.crossplaneRbacManager",x:10270,y:150,width:320,height:180,labelBBox:{x:88,y:74,width:144,height:24}},{id:"local.crossplane.providerArgoCD",parent:"local.crossplane",level:2,children:[],inEdges:[],outEdges:[],kind:"instance",title:"ArgoCD Provider",tags:[],color:"primary",shape:"rectangle",style:{opacity:15,size:"md"},deploymentRef:"local.crossplane.providerArgoCD",modelRef:"edp.crossplane.providerArgoCD",x:10720,y:150,width:320,height:180,labelBBox:{x:82,y:74,width:155,height:24}},{id:"local.crossplane.providerKind",parent:"local.crossplane",level:2,children:[],inEdges:[],outEdges:[],kind:"instance",title:"Kind Provider",tags:[],color:"primary",shape:"rectangle",style:{opacity:15,size:"md"},deploymentRef:"local.crossplane.providerKind",modelRef:"edp.crossplane.providerKind",x:11170,y:150,width:320,height:180,labelBBox:{x:98,y:74,width:124,height:24}},{id:"local.crossplane.providerShell",parent:"local.crossplane",level:2,children:[],inEdges:[],outEdges:[],kind:"instance",title:"Shell Provider",tags:[],color:"primary",shape:"rectangle",style:{opacity:15,size:"md"},deploymentRef:"local.crossplane.providerShell",modelRef:"edp.crossplane.providerShell",x:11620,y:150,width:320,height:180,labelBBox:{x:96,y:74,width:129,height:24}},{id:"local.externalSecrets",parent:"local",level:1,children:["local.externalSecrets.certController","local.externalSecrets.externalSecrets","local.externalSecrets.webhook"],inEdges:[],outEdges:[],deploymentRef:"local.externalSecrets",title:"external-secrets",kind:"namespace",color:"primary",shape:"rectangle",tags:[],style:{opacity:15,size:"md"},depth:1,x:12040,y:79,width:1320,height:301,labelBBox:{x:6,y:0,width:119,height:15}},{id:"local.externalSecrets.certController",parent:"local.externalSecrets",level:2,children:[],inEdges:[],outEdges:[],kind:"instance",title:"cert-controller",tags:[],color:"primary",shape:"rectangle",style:{opacity:15,size:"md"},deploymentRef:"local.externalSecrets.certController",modelRef:"edp.externalSecrets.certController",x:12090,y:150,width:320,height:180,labelBBox:{x:97,y:74,width:126,height:24}},{id:"local.externalSecrets.externalSecrets",parent:"local.externalSecrets",level:2,children:[],inEdges:[],outEdges:[],kind:"instance",title:"external-secrets controller",tags:[],color:"primary",shape:"rectangle",style:{opacity:15,size:"md"},deploymentRef:"local.externalSecrets.externalSecrets",modelRef:"edp.externalSecrets.externalSecrets",x:12540,y:150,width:320,height:180,labelBBox:{x:43,y:74,width:234,height:24}},{id:"local.externalSecrets.webhook",parent:"local.externalSecrets",level:2,children:[],inEdges:[],outEdges:[],kind:"instance",title:"webhook",tags:[],color:"primary",shape:"rectangle",style:{opacity:15,size:"md"},deploymentRef:"local.externalSecrets.webhook",modelRef:"edp.externalSecrets.webhook",x:12990,y:150,width:320,height:180,labelBBox:{x:118,y:74,width:84,height:24}},{id:"local.monitoring",parent:"local",level:1,children:["local.monitoring.gateway","local.monitoring.ingestor","local.monitoring.querier","local.monitoring.alloy","local.monitoring.queryFrontend","local.monitoring.distributor"],inEdges:["1hr2s5j","1nksp5g"],outEdges:[],deploymentRef:"local.monitoring",title:"monitoring",kind:"namespace",color:"primary",shape:"rectangle",tags:[],style:{opacity:15,size:"md"},depth:1,x:3852,y:79,width:1320,height:1328,labelBBox:{x:6,y:0,width:75,height:15}},{id:"local.monitoring.gateway",parent:"local.monitoring",level:2,children:[],inEdges:[],outEdges:[],kind:"instance",title:"Gateway",tags:[],color:"primary",shape:"rectangle",style:{opacity:15,size:"md"},deploymentRef:"local.monitoring.gateway",modelRef:"edp.monitoring.loki.gateway",x:3902,y:150,width:320,height:180,labelBBox:{x:119,y:74,width:83,height:24}},{id:"local.monitoring.ingestor",parent:"local.monitoring",level:2,children:[],inEdges:[],outEdges:[],kind:"instance",title:"Ingestor",tags:[],color:"primary",shape:"rectangle",style:{opacity:15,size:"md"},deploymentRef:"local.monitoring.ingestor",modelRef:"edp.monitoring.loki.ingestor",x:4352,y:150,width:320,height:180,labelBBox:{x:122,y:74,width:76,height:24}},{id:"local.monitoring.querier",parent:"local.monitoring",level:2,children:[],inEdges:[],outEdges:[],kind:"instance",title:"Querier",tags:[],color:"primary",shape:"rectangle",style:{opacity:15,size:"md"},deploymentRef:"local.monitoring.querier",modelRef:"edp.monitoring.loki.querier",x:4802,y:150,width:320,height:180,labelBBox:{x:125,y:74,width:71,height:24}},{id:"local.ingressNginx.ingressNginx",parent:"local.ingressNginx",level:2,children:[],inEdges:[],outEdges:["15juth8","p2br4p","o229dq","2vnvvg","4ix58c","1hr2s5j","1nksp5g","m2japo","4drflo","ihlgsc"],kind:"instance",title:"ingress-nginx",technology:"Nginx",tags:[],icon:"tech:nginx",color:"primary",shape:"rectangle",style:{opacity:15,size:"md"},deploymentRef:"local.ingressNginx.ingressNginx",modelRef:"edp.ingressNginx.ingressNginx",x:6067,y:497,width:320,height:180,labelBBox:{x:85,y:65,width:181,height:45}},{id:"local.velero.velero",parent:"local.velero",level:2,children:[],inEdges:[],outEdges:["3znaik"],kind:"instance",title:"Velero",tags:[],color:"primary",shape:"rectangle",style:{opacity:15,size:"md"},deploymentRef:"local.velero.velero",modelRef:"edp.velero.velero",x:9352,y:497,width:320,height:180,labelBBox:{x:129,y:74,width:62,height:24}},{id:"edgeProviderHost",parent:null,level:0,children:["edgeProviderHost.terralist","edgeProviderHost.edp"],inEdges:["u9omtf","r4j4sg","14pfq5a"],outEdges:[],deploymentRef:"edgeProviderHost",title:"OTC",kind:"environment",color:"primary",shape:"rectangle",tags:[],style:{opacity:15,size:"md"},depth:1,x:1123,y:426,width:466,height:648,labelBBox:{x:6,y:0,width:27,height:15}},{id:"edgeCloud",parent:null,level:0,children:["edgeCloud.edgeApi","edgeCloud.edgeResources"],inEdges:["lw6otg"],outEdges:[],deploymentRef:"edgeCloud",title:"Edge cloud",kind:"environment",color:"primary",shape:"rectangle",tags:[],style:{opacity:15,size:"md"},depth:1,x:653,y:773,width:420,height:634,labelBBox:{x:6,y:0,width:77,height:15}},{id:"otc-edpFoundry.cce",parent:"otc-edpFoundry",level:1,children:[],inEdges:["109g3jm"],outEdges:["llfvob","fil3na"],deploymentRef:"otc-edpFoundry.cce",title:"OTC CCE",kind:"kubernetes",technology:"Kubernetes",color:"primary",shape:"rectangle",icon:"tech:kubernetes",description:{txt:"OTC Container Cluster Engine"},tags:[],style:{opacity:15,size:"md"},x:1988,y:497,width:327,height:180,labelBBox:{x:46,y:54,width:266,height:67}},{id:"local.backstage",parent:"local",level:1,children:["local.backstage.backstage","local.backstage.database"],inEdges:["15juth8"],outEdges:[],deploymentRef:"local.backstage",title:"backstage",kind:"namespace",color:"primary",shape:"rectangle",tags:[],style:{opacity:15,size:"md"},depth:1,x:6106,y:773,width:420,height:634,labelBBox:{x:6,y:0,width:74,height:15}},{id:"local.argocd",parent:"local",level:1,children:["local.argocd.argocdAppController","local.argocd.argocdAppSetController","local.argocd.argocdRepoServer","local.argocd.argocdServer","local.argocd.argocdRedis"],inEdges:["p2br4p"],outEdges:[],deploymentRef:"local.argocd",title:"argocd",kind:"namespace",color:"primary",shape:"rectangle",tags:[],style:{opacity:15,size:"md"},depth:1,x:6576,y:773,width:1770,height:634,labelBBox:{x:6,y:0,width:53,height:15}},{id:"local.gitea",parent:"local",level:1,children:["local.gitea.forgejo"],inEdges:["o229dq"],outEdges:[],deploymentRef:"local.gitea",title:"gitea",kind:"namespace",color:"primary",shape:"rectangle",tags:[],style:{opacity:15,size:"md"},depth:1,x:8396,y:791,width:404,height:265,labelBBox:{x:6,y:0,width:38,height:15}},{id:"local.keycloak",parent:"local",level:1,children:["local.keycloak.keycloak","local.keycloak.keycloakDB"],inEdges:["2vnvvg"],outEdges:[],deploymentRef:"local.keycloak",title:"keycloak",kind:"namespace",color:"primary",shape:"rectangle",tags:[],style:{opacity:15,size:"md"},depth:1,x:3382,y:773,width:420,height:634,labelBBox:{x:6,y:0,width:66,height:15}},{id:"local.openbao",parent:"local",level:1,children:["local.openbao.openbao","local.openbao.agentInjector"],inEdges:["m2japo"],outEdges:[],deploymentRef:"local.openbao",title:"openbao",kind:"namespace",color:"primary",shape:"rectangle",tags:[],style:{opacity:15,size:"md"},depth:1,x:8850,y:79,width:420,height:995,labelBBox:{x:6,y:0,width:60,height:15}},{id:"local.fibonacci",parent:"local",level:1,children:["local.fibonacci.fibonacci"],inEdges:["4drflo"],outEdges:[],deploymentRef:"local.fibonacci",title:"fibonacci-app",kind:"namespace",color:"primary",shape:"rectangle",modelRef:"edp.testApp.fibonacci",icon:"tech:go",tags:[],style:{opacity:15,size:"md"},depth:1,x:5222,y:791,width:384,height:265,labelBBox:{x:6,y:0,width:91,height:15}},{id:"local.mailhog",parent:"local",level:1,children:["local.mailhog.mailhog"],inEdges:["ihlgsc"],outEdges:[],deploymentRef:"local.mailhog",title:"Mailhog",kind:"namespace",color:"primary",shape:"rectangle",modelRef:"edp.mailhog.mailhog",icon:"tech:go",tags:[],style:{opacity:15,size:"md"},depth:1,x:5672,y:791,width:384,height:265,labelBBox:{x:6,y:0,width:56,height:15}},{id:"local.minio",parent:"local",level:1,children:["local.minio.minio"],inEdges:["3znaik","4ix58c"],outEdges:[],deploymentRef:"local.minio",title:"minio-backup",kind:"namespace",color:"primary",shape:"storage",modelRef:"edp.minio.minio",tags:[],style:{opacity:15,size:"md"},depth:1,x:9320,y:791,width:384,height:265,labelBBox:{x:6,y:0,width:86,height:15}},{id:"edgeProviderHost.terralist",parent:"edgeProviderHost",level:1,children:[],inEdges:["r4j4sg"],outEdges:["c8rye7"],deploymentRef:"edgeProviderHost.terralist",title:"Terralist",kind:"paas",technology:"Cloud Services",color:"primary",shape:"rectangle",icon:"tech:terraform",description:{txt:"Terraform provider private hosting"},tags:[],style:{opacity:15,size:"md"},x:1181,y:497,width:350,height:180,labelBBox:{x:46,y:54,width:288,height:67}},{id:"edgeCloud.edgeApi",parent:"edgeCloud",level:1,children:[],inEdges:["lw6otg"],outEdges:["1toht4t"],deploymentRef:"edgeCloud.edgeApi",title:"Edge Cloud API",kind:"paas",technology:"Edge Cloud (managed)",links:[{url:"https://swagger.edge.platform.mg3.mdb.osc.live",title:"Documentation"}],color:"primary",shape:"rectangle",icon:"tech:swagger",tags:[],style:{opacity:15,size:"md"},x:703,y:844,width:320,height:180,labelBBox:{x:73,y:65,width:204,height:45}},{id:"otc-edpFoundry.workflowSetupEDPInfrastructure",parent:"otc-edpFoundry",level:1,children:[],inEdges:["llfvob"],outEdges:["r3wxut","e3benz"],deploymentRef:"otc-edpFoundry.workflowSetupEDPInfrastructure",title:"EDP infrastructure Workflow",kind:"computeressource",color:"primary",shape:"rectangle",description:{txt:"EDP infrastructure Workflow"},tags:[],style:{opacity:15,size:"md"},x:1970,y:844,width:320,height:180,labelBBox:{x:32,y:63,width:255,height:48}},{id:"otc-edpFoundry.workflowSetupArgoCDInfrastructure",parent:"otc-edpFoundry",level:1,children:[],inEdges:["fil3na"],outEdges:["1sng0q0"],deploymentRef:"otc-edpFoundry.workflowSetupArgoCDInfrastructure",title:"EDP ArgoCD Workflow",kind:"computeressource",color:"primary",shape:"rectangle",description:{txt:"EDP Setup ArgoCD Workflow"},tags:[],style:{opacity:15,size:"md"},x:2420,y:844,width:320,height:180,labelBBox:{x:55,y:63,width:210,height:48}},{id:"local.backstage.backstage",parent:"local.backstage",level:2,children:[],inEdges:["15juth8"],outEdges:["19kg5y"],kind:"instance",title:"Backstage",tags:[],icon:"tech:react",color:"primary",shape:"browser",style:{opacity:15,size:"md"},deploymentRef:"local.backstage.backstage",modelRef:"edp.ui.backstage",x:6156,y:844,width:320,height:180,labelBBox:{x:97,y:74,width:156,height:24}},{id:"local.argocd.argocdAppController",parent:"local.argocd",level:2,children:[],inEdges:[],outEdges:["1gfgfhk"],kind:"instance",title:"ApplicationController",tags:[],color:"primary",shape:"rectangle",style:{opacity:15,size:"md"},deploymentRef:"local.argocd.argocdAppController",modelRef:"edp.argoCD.argocdAppController",x:6626,y:844,width:320,height:180,labelBBox:{x:66,y:74,width:189,height:24}},{id:"local.argocd.argocdAppSetController",parent:"local.argocd",level:2,children:[],inEdges:[],outEdges:["qfu5xm"],kind:"instance",title:"ApplicationSeetController",tags:[],color:"primary",shape:"rectangle",style:{opacity:15,size:"md"},deploymentRef:"local.argocd.argocdAppSetController",modelRef:"edp.argoCD.argocdAppSetController",x:7076,y:844,width:320,height:180,labelBBox:{x:45,y:74,width:230,height:24}},{id:"local.argocd.argocdRepoServer",parent:"local.argocd",level:2,children:[],inEdges:[],outEdges:["g7xnzs"],kind:"instance",title:"Repo Server",tags:[],color:"primary",shape:"rectangle",style:{opacity:15,size:"md"},deploymentRef:"local.argocd.argocdRepoServer",modelRef:"edp.argoCD.argocdRepoServer",x:7526,y:844,width:320,height:180,labelBBox:{x:102,y:74,width:116,height:24}},{id:"local.argocd.argocdServer",parent:"local.argocd",level:2,children:[],inEdges:["p2br4p"],outEdges:["fon3rk"],kind:"instance",title:"ArgoCD Server",tags:[],color:"primary",shape:"rectangle",style:{opacity:15,size:"md"},deploymentRef:"local.argocd.argocdServer",modelRef:"edp.argoCD.argocdServer",x:7976,y:844,width:320,height:180,labelBBox:{x:90,y:74,width:140,height:24}},{id:"local.gitea.forgejo",parent:"local.gitea",level:2,children:[],inEdges:["o229dq"],outEdges:[],kind:"instance",title:"Forgejo",description:{txt:`Fully managed DevOps Platform offering capabilities like code version controling collaboration and ticketing -and security scanning`},technology:"Golang",tags:[],icon:"tech:go",color:"primary",shape:"rectangle",style:{opacity:20,size:"md"},deploymentRef:"local.gitea.forgejo",modelRef:"edp.forgejo",navigateTo:"forgejo",x:8428,y:844,width:340,height:180,labelBBox:{x:46,y:18,width:278,height:139}},{id:"local.keycloak.keycloak",parent:"local.keycloak",level:2,children:[],inEdges:["2vnvvg"],outEdges:["4zwy1m"],kind:"instance",title:"Keycloak",technology:"Java",tags:[],icon:"tech:java",color:"primary",shape:"rectangle",style:{opacity:15,size:"md"},deploymentRef:"local.keycloak.keycloak",modelRef:"edp.keycloak.keycloak",x:3432,y:844,width:320,height:180,labelBBox:{x:104,y:65,width:143,height:45}},{id:"local.monitoring.alloy",parent:"local.monitoring",level:2,children:[],inEdges:["1hr2s5j"],outEdges:["sb2j38"],kind:"instance",title:"Alloy",description:{txt:"Open Telemetry Collector"},tags:[],icon:"tech:grafana",color:"primary",shape:"rectangle",style:{opacity:15,size:"md",multiple:!0},deploymentRef:"local.monitoring.alloy",modelRef:"edp.monitoring.alloy",x:4802,y:844,width:320,height:180,labelBBox:{x:59,y:63,width:233,height:48}},{id:"local.monitoring.queryFrontend",parent:"local.monitoring",level:2,children:[],inEdges:["1nksp5g"],outEdges:[],kind:"instance",title:"Query Frontend",tags:[],color:"primary",shape:"rectangle",style:{opacity:15,size:"md"},deploymentRef:"local.monitoring.queryFrontend",modelRef:"edp.monitoring.loki.queryFrontend",x:4352,y:844,width:320,height:180,labelBBox:{x:88,y:74,width:144,height:24}},{id:"local.openbao.openbao",parent:"local.openbao",level:2,children:[],inEdges:["m2japo"],outEdges:[],kind:"instance",title:"Openbao",technology:"Openbao",tags:[],color:"primary",shape:"storage",style:{opacity:15,size:"md"},deploymentRef:"local.openbao.openbao",modelRef:"edp.openbao.openbao",x:8900,y:844,width:320,height:180,labelBBox:{x:117,y:65,width:86,height:45}},{id:"local.openbao.agentInjector",parent:"local.openbao",level:2,children:[],inEdges:[],outEdges:[],kind:"instance",title:"Agent Injector",tags:[],color:"primary",shape:"rectangle",style:{opacity:15,size:"md"},deploymentRef:"local.openbao.agentInjector",modelRef:"edp.openbao.agentInjector",x:8900,y:150,width:320,height:180,labelBBox:{x:96,y:74,width:127,height:24}},{id:"local.fibonacci.fibonacci",parent:"local.fibonacci",level:2,children:[],inEdges:["4drflo"],outEdges:[],kind:"instance",title:"Fibonacci",technology:"Golang",tags:[],icon:"tech:go",color:"primary",shape:"rectangle",style:{opacity:15,size:"md"},deploymentRef:"local.fibonacci.fibonacci",modelRef:"edp.testApp.fibonacci",x:5254,y:844,width:320,height:180,labelBBox:{x:101,y:65,width:148,height:45}},{id:"local.mailhog.mailhog",parent:"local.mailhog",level:2,children:[],inEdges:["ihlgsc"],outEdges:[],kind:"instance",title:"Mailhog",technology:"Golang",tags:[],icon:"tech:go",color:"primary",shape:"rectangle",style:{opacity:15,size:"md"},deploymentRef:"local.mailhog.mailhog",modelRef:"edp.mailhog.mailhog",x:5704,y:844,width:320,height:180,labelBBox:{x:109,y:65,width:132,height:45}},{id:"local.minio.minio",parent:"local.minio",level:2,children:[],inEdges:["3znaik","4ix58c"],outEdges:[],kind:"instance",title:"S3 Blob Storage",technology:"Minio",tags:[],color:"primary",shape:"storage",style:{opacity:15,size:"md"},deploymentRef:"local.minio.minio",modelRef:"edp.minio.minio",x:9352,y:844,width:320,height:180,labelBBox:{x:85,y:65,width:150,height:45}},{id:"edgeProviderHost.edp",parent:"edgeProviderHost",level:1,children:[],inEdges:["u9omtf","14pfq5a","c8rye7"],outEdges:[],deploymentRef:"edgeProviderHost.edp",title:"Forgejo for all EDP-tenants",kind:"cluster",color:"primary",shape:"rectangle",modelRef:"edp.forgejo",icon:"tech:git",description:{txt:"edp.buildth.ing"},tags:[],style:{opacity:15,size:"md"},navigateTo:"forgejo",x:1173,y:844,width:365,height:180,labelBBox:{x:46,y:63,width:304,height:48}},{id:"edgeCloud.edgeResources",parent:"edgeCloud",level:1,children:[],inEdges:["1toht4t"],outEdges:[],deploymentRef:"edgeCloud.edgeResources",title:"Edge Cloud Resources",kind:"paas",technology:"Edge Cloud (managed)",color:"primary",shape:"rectangle",description:{txt:"App, AppInstance, etc."},tags:[],style:{opacity:15,size:"md"},x:703,y:1177,width:320,height:180,labelBBox:{x:55,y:53,width:210,height:68}},{id:"otc-edp-per-tenant",parent:null,level:0,children:["otc-edp-per-tenant.forgejoRunnerInfrastructure","otc-edp-per-tenant.cce","otc-edp-per-tenant.cloudServices"],inEdges:["r3wxut","1sng0q0","e3benz"],outEdges:[],deploymentRef:"otc-edp-per-tenant",title:"OTC EDP per tenant cluster",kind:"cloud",technology:"OTC",color:"primary",shape:"rectangle",description:{txt:`OTC environment for EDP. EDP is the environment a customer gets from us. - - This is kubernetes clusters and other infrastructure like nodes and vms, and platform services. All is set up by IaC-pipelines in the Foundry.`},tags:[],style:{opacity:15,size:"md"},depth:1,x:2840,y:79,width:442,height:1682,labelBBox:{x:6,y:0,width:181,height:15}},{id:"local.backstage.database",parent:"local.backstage",level:2,children:[],inEdges:["19kg5y"],outEdges:[],kind:"instance",title:"Database",technology:"Postgresql",tags:[],icon:"tech:postgresql",color:"primary",shape:"storage",style:{opacity:15,size:"md"},deploymentRef:"local.backstage.database",modelRef:"edp.ui.database",x:6156,y:1177,width:320,height:180,labelBBox:{x:101,y:64,width:148,height:46}},{id:"local.argocd.argocdRedis",parent:"local.argocd",level:2,children:[],inEdges:["1gfgfhk","qfu5xm","g7xnzs","fon3rk"],outEdges:[],kind:"instance",title:"Redis",technology:"Redis",tags:[],icon:"tech:redis",color:"primary",shape:"rectangle",style:{opacity:15,size:"md"},deploymentRef:"local.argocd.argocdRedis",modelRef:"edp.argoCD.argocdRedis",x:7751,y:1177,width:320,height:180,labelBBox:{x:119,y:64,width:113,height:46}},{id:"local.keycloak.keycloakDB",parent:"local.keycloak",level:2,children:[],inEdges:["4zwy1m"],outEdges:[],kind:"instance",title:"Database",technology:"Postgresql",tags:[],icon:"tech:postgresql",color:"primary",shape:"storage",style:{opacity:15,size:"md"},deploymentRef:"local.keycloak.keycloakDB",modelRef:"edp.keycloak.keycloakDB",x:3432,y:1177,width:320,height:180,labelBBox:{x:101,y:64,width:148,height:46}},{id:"local.monitoring.distributor",parent:"local.monitoring",level:2,children:[],inEdges:["sb2j38"],outEdges:[],kind:"instance",title:"Distributor",tags:[],color:"primary",shape:"rectangle",style:{opacity:15,size:"md"},deploymentRef:"local.monitoring.distributor",modelRef:"edp.monitoring.loki.distributor",x:4802,y:1177,width:320,height:180,labelBBox:{x:112,y:74,width:95,height:24}},{id:"otc-edp-per-tenant.forgejoRunnerInfrastructure",parent:"otc-edp-per-tenant",level:1,children:[],inEdges:[],outEdges:["fkkf8y"],deploymentRef:"otc-edp-per-tenant.forgejoRunnerInfrastructure",title:"EDP ForgejoRunner infrastructure",kind:"computeressource",color:"primary",shape:"rectangle",modelRef:"forgejoRunner",description:{txt:"Infrastructure for Forgejo runners like pods, vms, lxds, etc"},tags:[],style:{opacity:15,size:"md"},x:2890,y:150,width:342,height:180,labelBBox:{x:18,y:54,width:306,height:66}},{id:"otc-edp-per-tenant.cce",parent:"otc-edp-per-tenant",level:1,children:[],inEdges:["fkkf8y","r3wxut","1sng0q0"],outEdges:["pit45i"],deploymentRef:"otc-edp-per-tenant.cce",title:"OTC CCE",kind:"kubernetes",technology:"Kubernetes",color:"primary",shape:"rectangle",icon:"tech:kubernetes",description:{txt:"OTC Container Cluster Engine"},tags:[],style:{opacity:15,size:"md"},x:2893,y:1177,width:327,height:180,labelBBox:{x:46,y:53,width:266,height:68}},{id:"otc-edp-per-tenant.cloudServices",parent:"otc-edp-per-tenant",level:1,children:[],inEdges:["pit45i","e3benz"],outEdges:[],deploymentRef:"otc-edp-per-tenant.cloudServices",title:"EDP Cloud Services",kind:"paas",technology:"Cloud Services",color:"primary",shape:"rectangle",description:{txt:"EDP Cloud Services"},tags:[],style:{opacity:15,size:"md"},x:2897,y:1531,width:320,height:180,labelBBox:{x:67,y:53,width:185,height:68}},{id:"local.spark.sparkoperator",parent:"local",level:1,children:[],inEdges:[],outEdges:[],kind:"instance",title:"Spark Operator",technology:"Spark",tags:[],icon:"tech:spark",color:"primary",shape:"rectangle",style:{opacity:15,size:"md"},deploymentRef:"local.spark.sparkoperator",modelRef:"edp.spark.sparkoperator",x:13440,y:150,width:320,height:180,labelBBox:{x:76,y:65,width:198,height:45}}],edges:[{id:"1xqlhup",source:"edgeProvider",target:"edgeSdk",label:"built using",dotpos:"e,937.73,497.79 1034.6,330.38 1021.3,351.53 1007.4,374.14 994.98,395.4 977.41,425.36 959.05,458.44 942.73,488.55",points:[[1035,330],[1021,352],[1007,374],[995,395],[977,425],[959,458],[943,489]],labelBBox:{x:996,y:395,width:67,height:18},parent:null,relations:["1wlvsb5"],color:"gray",line:"dashed",head:"normal"},{id:"u9omtf",source:"edgeProvider",target:"edgeProviderHost.edp",label:"hosted on",dotpos:"e,1488.2,844.55 1263.6,255.11 1378.4,274.23 1521.5,319.52 1596,426.2 1668.1,529.39 1646.2,593.96 1596,709.4 1574.4,759.1 1535.8,802.78 1495.7,838.06",points:[[1264,255],[1378,274],[1522,320],[1596,426],[1668,529],[1646,594],[1596,709],[1574,759],[1536,803],[1496,838]],labelBBox:{x:1643,y:576,width:66,height:18},parent:null,relations:["12ssq9"],color:"gray",line:"dashed",head:"normal"},{id:"r4j4sg",source:"edgeProvider",target:"edgeProviderHost.terralist",label:"published to",dotpos:"e,1288,497.56 1160,330.25 1197.3,378.94 1243.5,439.38 1281.7,489.32",points:[[1160,330],[1197,379],[1244,439],[1282,489]],labelBBox:{x:1225,y:395,width:80,height:18},parent:null,relations:["1mpjz5d"],color:"gray",line:"dashed",head:"normal"},{id:"14pfq5a",source:"edgeSdk",target:"edgeProviderHost.edp",label:"hosted on",dotpos:"e,1236.3,844.56 1010.8,677.25 1077.4,726.65 1160.2,788.13 1228.1,838.47",points:[[1011,677],[1077,727],[1160,788],[1228,838]],labelBBox:{x:1125,y:742,width:66,height:18},parent:null,relations:["1sm6ifh"],color:"gray",line:"dashed",head:"normal"},{id:"lw6otg",source:"edgeSdk",target:"edgeCloud.edgeApi",label:"calls",dotpos:"e,870.23,844.56 883.81,677.25 879.91,725.24 875.09,784.64 871.08,834.15",points:[[884,677],[880,725],[875,785],[871,834]],labelBBox:{x:879,y:742,width:32,height:18},parent:null,relations:["vfhcba"],color:"gray",line:"dashed",head:"normal"},{id:"pit45i",source:"otc-edp-per-tenant.cce",target:"otc-edp-per-tenant.cloudServices",label:null,dotpos:"e,3057,1531.4 3057,1357 3057,1406.9 3057,1469.4 3057,1520.9",points:[[3057,1357],[3057,1407],[3057,1469],[3057,1521]],labelBBox:null,parent:"otc-edp-per-tenant",relations:["1fzhjm9","15njmlz","hks76r","1w18ve8"],color:"gray",line:"dashed",head:"normal"},{id:"fkkf8y",source:"otc-edp-per-tenant.forgejoRunnerInfrastructure",target:"otc-edp-per-tenant.cce",label:"registers",dotpos:"e,3057.4,1177.5 3060.7,330.11 3059.9,520.59 3058.2,967.58 3057.4,1167.1",points:[[3061,330],[3060,521],[3058,968],[3057,1167]],labelBBox:{x:3060,y:742,width:58,height:18},parent:"otc-edp-per-tenant",relations:["g9oj4f"],color:"gray",line:"dashed",head:"normal"},{id:"r3wxut",source:"otc-edpFoundry.workflowSetupEDPInfrastructure",target:"otc-edp-per-tenant.cce",label:"deploys edp to otc.cce",dotpos:"e,2893.3,1235.4 2259.8,1024.3 2290.2,1042.6 2323,1060.5 2355,1074.4 2528.2,1149.7 2738.4,1202.4 2883.4,1233.3",points:[[2260,1024],[2290,1043],[2323,1060],[2355,1074],[2528,1150],[2738,1202],[2883,1233]],labelBBox:{x:2448,y:1089,width:143,height:18},parent:null,relations:["uk77s5"],color:"gray",line:"dashed",head:"normal"},{id:"1sng0q0",source:"otc-edpFoundry.workflowSetupArgoCDInfrastructure",target:"otc-edp-per-tenant.cce",label:null,dotpos:"e,2929,1177.4 2708.2,1024.3 2773.8,1069.8 2853.7,1125.2 2920.5,1171.5",points:[[2708,1024],[2774,1070],[2854,1125],[2921,1172]],labelBBox:null,parent:null,relations:["jde35l"],color:"gray",line:"dashed",head:"normal"},{id:"e3benz",source:"otc-edpFoundry.workflowSetupEDPInfrastructure",target:"otc-edp-per-tenant.cloudServices",label:"deploys edp to otc.paas",dotpos:"e,2897.3,1567.1 2204.1,1024.1 2302.1,1136.9 2484.6,1332.1 2674.1,1457.2 2739.6,1500.4 2818.5,1536.3 2887.6,1563.3",points:[[2204,1024],[2302,1137],[2485,1332],[2674,1457],[2740,1500],[2819,1536],[2888,1563]],labelBBox:{x:2675,y:1255,width:152,height:18},parent:null,relations:["1pfc6bl"],color:"gray",line:"dashed",head:"normal"},{id:"llfvob",source:"otc-edpFoundry.cce",target:"otc-edpFoundry.workflowSetupEDPInfrastructure",label:"invokes",dotpos:"e,2135.7,844.56 2146.4,677.25 2143.3,725.24 2139.5,784.64 2136.3,834.15",points:[[2146,677],[2143,725],[2140,785],[2136,834]],labelBBox:{x:2143,y:742,width:51,height:18},parent:"otc-edpFoundry",relations:["dola40"],color:"gray",line:"dashed",head:"normal"},{id:"fil3na",source:"otc-edpFoundry.cce",target:"otc-edpFoundry.workflowSetupArgoCDInfrastructure",label:"invokes",dotpos:"e,2469.8,844.56 2262.2,677.25 2323.4,726.55 2399.5,787.88 2461.9,838.17",points:[[2262,677],[2323,727],[2399,788],[2462,838]],labelBBox:{x:2367,y:742,width:51,height:18},parent:"otc-edpFoundry",relations:["1f5y9gc"],color:"gray",line:"dashed",head:"normal"},{id:"109g3jm",source:"otc-edpFoundry.forgejoRunnerInfrastructure",target:"otc-edpFoundry.cce",label:"registers",dotpos:"e,2152,497.56 2152,330.25 2152,378.24 2152,437.64 2152,487.15",points:[[2152,330],[2152,378],[2152,438],[2152,487]],labelBBox:{x:2153,y:395,width:58,height:18},parent:"otc-edpFoundry",relations:["1umzqdy"],color:"gray",line:"dashed",head:"normal"},{id:"c8rye7",source:"edgeProviderHost.terralist",target:"edgeProviderHost.edp",label:"authenticates via",dotpos:"e,1356,844.56 1356,677.25 1356,725.24 1356,784.64 1356,834.15",points:[[1356,677],[1356,725],[1356,785],[1356,834]],labelBBox:{x:1357,y:742,width:109,height:18},parent:"edgeProviderHost",relations:["1q6ftvm"],color:"gray",line:"dashed",head:"normal"},{id:"1toht4t",source:"edgeCloud.edgeApi",target:"edgeCloud.edgeResources",label:"creates/destroys",dotpos:"e,863.02,1177.3 863.02,1024 863.02,1068.1 863.02,1121.4 863.02,1166.8",points:[[863,1024],[863,1068],[863,1121],[863,1167]],labelBBox:{x:864,y:1089,width:107,height:18},parent:"edgeCloud",relations:["rr0lcz"],color:"gray",line:"dashed",head:"normal"},{id:"19kg5y",source:"local.backstage.backstage",target:"local.backstage.database",label:"reads/writes",dotpos:"e,6316,1176.4 6316,1024 6316,1067.8 6316,1120.8 6316,1166",points:[[6316,1024],[6316,1068],[6316,1121],[6316,1166]],labelBBox:{x:6317,y:1089,width:79,height:18},parent:"local.backstage",relations:["c23sak"],color:"gray",line:"dashed",head:"normal"},{id:"1gfgfhk",source:"local.argocd.argocdAppController",target:"local.argocd.argocdRedis",label:"read/write",dotpos:"e,7751.3,1249 6913.2,1024.4 6944.1,1043.1 6977.9,1061.1 7011,1074.4 7254.6,1172.2 7556.1,1223.4 7741,1247.6",points:[[6913,1024],[6944,1043],[6978,1061],[7011,1074],[7255,1172],[7556,1223],[7741,1248]],labelBBox:{x:7105,y:1089,width:65,height:18},parent:"local.argocd",relations:["10vkxaf"],color:"gray",line:"dashed",head:"normal"},{id:"qfu5xm",source:"local.argocd.argocdAppSetController",target:"local.argocd.argocdRedis",label:"read/write",dotpos:"e,7751.1,1204.9 7372.8,1024.4 7401.5,1041.8 7431.9,1059.3 7461,1074.4 7551.5,1121.3 7656,1166.4 7741.6,1201",points:[[7373,1024],[7401,1042],[7432,1059],[7461,1074],[7552,1121],[7656,1166],[7742,1201]],labelBBox:{x:7534,y:1089,width:65,height:18},parent:"local.argocd",relations:["i8z0mi"],color:"gray",line:"dashed",head:"normal"},{id:"g7xnzs",source:"local.argocd.argocdRepoServer",target:"local.argocd.argocdRedis",label:"read/write",dotpos:"e,7850.6,1177.3 7746.3,1024 7776.7,1068.7 7813.6,1123 7844.8,1168.9",points:[[7746,1024],[7777,1069],[7814,1123],[7845,1169]],labelBBox:{x:7806,y:1089,width:65,height:18},parent:"local.argocd",relations:["iullhy"],color:"gray",line:"dashed",head:"normal"},{id:"fon3rk",source:"local.argocd.argocdServer",target:"local.argocd.argocdRedis",label:"read/write",dotpos:"e,7971.5,1177.3 8075.7,1024 8045.3,1068.7 8008.4,1123 7977.2,1168.9",points:[[8076,1024],[8045,1069],[8008,1123],[7977,1169]],labelBBox:{x:8031,y:1089,width:65,height:18},parent:"local.argocd",relations:["yfhhi5"],color:"gray",line:"dashed",head:"normal"},{id:"4zwy1m",source:"local.keycloak.keycloak",target:"local.keycloak.keycloakDB",label:"reads/writes",dotpos:"e,3592,1176.4 3592,1024 3592,1067.8 3592,1120.8 3592,1166",points:[[3592,1024],[3592,1068],[3592,1121],[3592,1166]],labelBBox:{x:3593,y:1089,width:79,height:18},parent:"local.keycloak",relations:["18zxrhs"],color:"gray",line:"dashed",head:"normal"},{id:"sb2j38",source:"local.monitoring.alloy",target:"local.monitoring.distributor",label:"pushes logs",dotpos:"e,4962,1177.3 4962,1024 4962,1068.1 4962,1121.4 4962,1166.8",points:[[4962,1024],[4962,1068],[4962,1121],[4962,1167]],labelBBox:{x:4963,y:1089,width:79,height:18},parent:"local.monitoring",relations:["11ollyi"],color:"gray",line:"dashed",head:"normal"},{id:"15juth8",source:"local.ingressNginx.ingressNginx",target:"local.backstage.backstage",label:"https",dotpos:"e,6293.1,844.56 6249.9,677.25 6262.3,725.34 6277.7,784.89 6290.5,834.46",points:[[6250,677],[6262,725],[6278,785],[6291,834]],labelBBox:{x:6273,y:742,width:34,height:18},parent:"local",relations:["v8c8aq"],color:"gray",line:"dashed",head:"normal"},{id:"p2br4p",source:"local.ingressNginx.ingressNginx",target:"local.argocd.argocdServer",label:"https",dotpos:"e,8034.6,844.57 6386.9,595.67 6751.5,613.89 7634.4,667.8 7911,773.2 7951.6,788.65 7991.6,813.2 8026.3,838.48",points:[[6387,596],[6751,614],[7634,668],[7911,773],[7952,789],[7992,813],[8026,838]],labelBBox:{x:7865,y:742,width:34,height:18},parent:"local",relations:["1yssos5"],color:"gray",line:"dashed",head:"normal"},{id:"o229dq",source:"local.ingressNginx.ingressNginx",target:"local.gitea.forgejo",label:"https",dotpos:"e,8500.2,844.59 6387,591.07 6821.1,600.04 8012.9,636.78 8378,773.2 8418.4,788.28 8457.9,812.94 8492.1,838.45",points:[[6387,591],[6821,600],[8013,637],[8378,773],[8418,788],[8458,813],[8492,838]],labelBBox:{x:8351,y:742,width:34,height:18},parent:"local",relations:["123efwn"],color:"gray",line:"dashed",head:"normal"},{id:"2vnvvg",source:"local.ingressNginx.ingressNginx",target:"local.keycloak.keycloak",label:"https",dotpos:"e,3690.6,844.46 6124.5,677.3 6105.2,690.11 6084.3,701.58 6063,709.4 5963.4,746.02 5692.5,734.9 5586.7,742.4 5446.8,752.31 5412.1,759.74 5272,765.2 5251.9,765.98 3839.2,767.07 3820,773.2 3776.9,786.98 3734.8,812.12 3698.7,838.47",points:[[6125,677],[6105,690],[6084,702],[6063,709],[5963,746],[5693,735],[5587,742],[5447,752],[5412,760],[5272,765],[5252,766],[3839,767],[3820,773],[3777,787],[3735,812],[3699,838]],labelBBox:{x:5588,y:742,width:34,height:18},parent:"local",relations:["h3rut2"],color:"gray",line:"dashed",head:"normal"},{id:"3znaik",source:"local.velero.velero",target:"local.minio.minio",label:"store backups",dotpos:"e,9512,843.66 9512,677.25 9512,724.96 9512,783.95 9512,833.28",points:[[9512,677],[9512,725],[9512,784],[9512,833]],labelBBox:{x:9513,y:742,width:91,height:18},parent:"local",relations:["1mazt1x"],color:"gray",line:"dashed",head:"normal"},{id:"4ix58c",source:"local.ingressNginx.ingressNginx",target:"local.minio.minio",label:"https",dotpos:"e,9419.4,843.97 6387,592.55 6979.3,608.69 9028,671.36 9302,773.2 9341.1,787.71 9378.8,812.08 9411.3,837.49",points:[[6387,593],[6979,609],[9028,671],[9302,773],[9341,788],[9379,812],[9411,837]],labelBBox:{x:9253,y:742,width:34,height:18},parent:"local",relations:["fe65w2"],color:"gray",line:"dashed",head:"normal"},{id:"1hr2s5j",source:"local.ingressNginx.ingressNginx",target:"local.monitoring.alloy",label:"https",dotpos:"e,5061,844.55 6122.2,677.32 6103.4,689.79 6083.3,701.15 6063,709.4 5893.5,778.27 5837.5,751.2 5655,765.2 5629.3,767.18 5214.6,765.2 5190,773.2 5147,787.2 5105.1,812.32 5069.1,838.58",points:[[6122,677],[6103,690],[6083,701],[6063,709],[5893,778],[5838,751],[5655,765],[5629,767],[5215,765],[5190,773],[5147,787],[5105,812],[5069,839]],labelBBox:{x:5958,y:742,width:34,height:18},parent:"local",relations:["1jvab2g"],color:"gray",line:"dashed",head:"normal"},{id:"1nksp5g",source:"local.ingressNginx.ingressNginx",target:"local.monitoring.queryFrontend",label:"https",dotpos:"e,4609.5,844.4 6123.9,677.16 6104.7,689.9 6084,701.39 6063,709.4 6032.1,721.2 5503.1,763.47 5470,765.2 5429.4,767.33 4775.7,760.59 4737,773.2 4694.6,787.02 4653.3,811.95 4617.9,838.09",points:[[6124,677],[6105,690],[6084,701],[6063,709],[6032,721],[5503,763],[5470,765],[5429,767],[4776,761],[4737,773],[4695,787],[4653,812],[4618,838]],labelBBox:{x:5752,y:742,width:34,height:18},parent:"local",relations:["fs60l7"],color:"gray",line:"dashed",head:"normal"},{id:"m2japo",source:"local.ingressNginx.ingressNginx",target:"local.openbao.openbao",label:"https",dotpos:"e,8959.1,844.86 6386.9,588.61 6881.1,590.99 8377.9,611.7 8832,773.2 8873.9,788.09 8915.1,812.93 8950.7,838.66",points:[[6387,589],[6881,591],[8378,612],[8832,773],[8874,788],[8915,813],[8951,839]],labelBBox:{x:8798,y:742,width:34,height:18},parent:"local",relations:["1p30hav"],color:"gray",line:"dashed",head:"normal"},{id:"4drflo",source:"local.ingressNginx.ingressNginx",target:"local.fibonacci.fibonacci",label:"https",dotpos:"e,5513.1,844.54 6118.7,677.39 6100.8,689.38 6081.9,700.57 6063,709.4 5967.7,753.9 5937.2,750.55 5833,765.2 5790.5,771.18 5680.6,759.33 5640,773.2 5598,787.55 5556.9,812.39 5521.5,838.29",points:[[6119,677],[6101,689],[6082,701],[6063,709],[5968,754],[5937,751],[5833,765],[5791,771],[5681,759],[5640,773],[5598,788],[5557,812],[5521,838]],labelBBox:{x:5976,y:742,width:34,height:18},parent:"local",relations:["1i5f8um"],color:"gray",line:"dashed",head:"normal"},{id:"ihlgsc",source:"local.ingressNginx.ingressNginx",target:"local.mailhog.mailhog",label:"https",dotpos:"e,5957.5,844.56 6133.5,677.25 6081.9,726.35 6017.7,787.38 5964.9,837.55",points:[[6134,677],[6082,726],[6018,787],[5965,838]],labelBBox:{x:6057,y:742,width:34,height:18},parent:"local",relations:["ofdedh"],color:"gray",line:"dashed",head:"normal"}]},"edp-per-tenant":{_type:"deployment",tags:null,links:null,_stage:"layouted",sourcePath:"views/deployment/otc/edp.c4",description:null,title:"EDP per tenant",id:"edp-per-tenant",autoLayout:{direction:"TB"},hash:"e666149b946cddee8281b75a555e7577841d84ba",bounds:{x:0,y:0,width:2010,height:1175},nodes:[{id:"otc-edp-per-tenant",parent:null,level:0,children:["otc-edp-per-tenant.forgejoRunnerInfrastructure","otc-edp-per-tenant.cce","otc-edp-per-tenant.cloudServices"],inEdges:[],outEdges:[],deploymentRef:"otc-edp-per-tenant",title:"OTC EDP per tenant cluster",kind:"cloud",technology:"OTC",color:"slate",shape:"rectangle",description:{txt:`OTC environment for EDP. EDP is the environment a customer gets from us. - +and security scanning`},technology:"Golang",tags:[],icon:"tech:go",color:"primary",shape:"rectangle",style:{opacity:20,size:"md"},deploymentRef:"local.gitea.forgejo",modelRef:"edp.forgejo",navigateTo:"forgejo",x:8428,y:844,width:340,height:180,labelBBox:{x:46,y:18,width:278,height:139}},{id:"local.keycloak.keycloak",parent:"local.keycloak",level:2,children:[],inEdges:["2vnvvg"],outEdges:["4zwy1m"],kind:"instance",title:"Keycloak",technology:"Java",tags:[],icon:"tech:java",color:"primary",shape:"rectangle",style:{opacity:15,size:"md"},deploymentRef:"local.keycloak.keycloak",modelRef:"edp.keycloak.keycloak",x:3432,y:844,width:320,height:180,labelBBox:{x:104,y:65,width:143,height:45}},{id:"local.monitoring.alloy",parent:"local.monitoring",level:2,children:[],inEdges:["1hr2s5j"],outEdges:["sb2j38"],kind:"instance",title:"Alloy",description:{txt:"Open Telemetry Collector"},tags:[],icon:"tech:grafana",color:"primary",shape:"rectangle",style:{opacity:15,size:"md",multiple:!0},deploymentRef:"local.monitoring.alloy",modelRef:"edp.monitoring.alloy",x:4802,y:844,width:320,height:180,labelBBox:{x:59,y:63,width:233,height:48}},{id:"local.monitoring.queryFrontend",parent:"local.monitoring",level:2,children:[],inEdges:["1nksp5g"],outEdges:[],kind:"instance",title:"Query Frontend",tags:[],color:"primary",shape:"rectangle",style:{opacity:15,size:"md"},deploymentRef:"local.monitoring.queryFrontend",modelRef:"edp.monitoring.loki.queryFrontend",x:4352,y:844,width:320,height:180,labelBBox:{x:88,y:74,width:144,height:24}},{id:"local.openbao.openbao",parent:"local.openbao",level:2,children:[],inEdges:["m2japo"],outEdges:[],kind:"instance",title:"Openbao",technology:"Openbao",tags:[],color:"primary",shape:"storage",style:{opacity:15,size:"md"},deploymentRef:"local.openbao.openbao",modelRef:"edp.openbao.openbao",x:8900,y:844,width:320,height:180,labelBBox:{x:117,y:65,width:86,height:45}},{id:"local.openbao.agentInjector",parent:"local.openbao",level:2,children:[],inEdges:[],outEdges:[],kind:"instance",title:"Agent Injector",tags:[],color:"primary",shape:"rectangle",style:{opacity:15,size:"md"},deploymentRef:"local.openbao.agentInjector",modelRef:"edp.openbao.agentInjector",x:8900,y:150,width:320,height:180,labelBBox:{x:96,y:74,width:127,height:24}},{id:"local.fibonacci.fibonacci",parent:"local.fibonacci",level:2,children:[],inEdges:["4drflo"],outEdges:[],kind:"instance",title:"Fibonacci",technology:"Golang",tags:[],icon:"tech:go",color:"primary",shape:"rectangle",style:{opacity:15,size:"md"},deploymentRef:"local.fibonacci.fibonacci",modelRef:"edp.testApp.fibonacci",x:5254,y:844,width:320,height:180,labelBBox:{x:101,y:65,width:148,height:45}},{id:"local.mailhog.mailhog",parent:"local.mailhog",level:2,children:[],inEdges:["ihlgsc"],outEdges:[],kind:"instance",title:"Mailhog",technology:"Golang",tags:[],icon:"tech:go",color:"primary",shape:"rectangle",style:{opacity:15,size:"md"},deploymentRef:"local.mailhog.mailhog",modelRef:"edp.mailhog.mailhog",x:5704,y:844,width:320,height:180,labelBBox:{x:109,y:65,width:132,height:45}},{id:"local.minio.minio",parent:"local.minio",level:2,children:[],inEdges:["3znaik","4ix58c"],outEdges:[],kind:"instance",title:"S3 Blob Storage",technology:"Minio",tags:[],color:"primary",shape:"storage",style:{opacity:15,size:"md"},deploymentRef:"local.minio.minio",modelRef:"edp.minio.minio",x:9352,y:844,width:320,height:180,labelBBox:{x:85,y:65,width:150,height:45}},{id:"edgeProviderHost.edp",parent:"edgeProviderHost",level:1,children:[],inEdges:["u9omtf","14pfq5a","c8rye7"],outEdges:[],deploymentRef:"edgeProviderHost.edp",title:"Forgejo for all EDP-tenants",kind:"cluster",color:"primary",shape:"rectangle",modelRef:"edp.forgejo",icon:"tech:git",description:{txt:"edp.buildth.ing"},tags:[],style:{opacity:15,size:"md"},navigateTo:"forgejo",x:1173,y:844,width:365,height:180,labelBBox:{x:46,y:63,width:304,height:48}},{id:"edgeCloud.edgeResources",parent:"edgeCloud",level:1,children:[],inEdges:["1toht4t"],outEdges:[],deploymentRef:"edgeCloud.edgeResources",title:"Edge Cloud Resources",kind:"paas",technology:"Edge Cloud (managed)",color:"primary",shape:"rectangle",description:{txt:"App, AppInstance, etc."},tags:[],style:{opacity:15,size:"md"},x:703,y:1177,width:320,height:180,labelBBox:{x:55,y:53,width:210,height:68}},{id:"otc-edp-per-tenant",parent:null,level:0,children:["otc-edp-per-tenant.forgejoRunnerInfrastructure","otc-edp-per-tenant.cce","otc-edp-per-tenant.cloudServices"],inEdges:["r3wxut","1sng0q0","e3benz"],outEdges:[],deploymentRef:"otc-edp-per-tenant",title:"OTC EDP per tenant cluster",kind:"cloud",technology:"OTC",color:"primary",shape:"rectangle",description:{txt:`OTC environment for EDP. EDP is the environment a customer gets from us. + + This is kubernetes clusters and other infrastructure like nodes and vms, and platform services. All is set up by IaC-pipelines in the Foundry.`},tags:[],style:{opacity:15,size:"md"},depth:1,x:2840,y:79,width:442,height:1682,labelBBox:{x:6,y:0,width:181,height:15}},{id:"local.backstage.database",parent:"local.backstage",level:2,children:[],inEdges:["19kg5y"],outEdges:[],kind:"instance",title:"Database",technology:"Postgresql",tags:[],icon:"tech:postgresql",color:"primary",shape:"storage",style:{opacity:15,size:"md"},deploymentRef:"local.backstage.database",modelRef:"edp.ui.database",x:6156,y:1177,width:320,height:180,labelBBox:{x:101,y:64,width:148,height:46}},{id:"local.argocd.argocdRedis",parent:"local.argocd",level:2,children:[],inEdges:["1gfgfhk","qfu5xm","g7xnzs","fon3rk"],outEdges:[],kind:"instance",title:"Redis",technology:"Redis",tags:[],icon:"tech:redis",color:"primary",shape:"rectangle",style:{opacity:15,size:"md"},deploymentRef:"local.argocd.argocdRedis",modelRef:"edp.argoCD.argocdRedis",x:7751,y:1177,width:320,height:180,labelBBox:{x:119,y:64,width:113,height:46}},{id:"local.keycloak.keycloakDB",parent:"local.keycloak",level:2,children:[],inEdges:["4zwy1m"],outEdges:[],kind:"instance",title:"Database",technology:"Postgresql",tags:[],icon:"tech:postgresql",color:"primary",shape:"storage",style:{opacity:15,size:"md"},deploymentRef:"local.keycloak.keycloakDB",modelRef:"edp.keycloak.keycloakDB",x:3432,y:1177,width:320,height:180,labelBBox:{x:101,y:64,width:148,height:46}},{id:"local.monitoring.distributor",parent:"local.monitoring",level:2,children:[],inEdges:["sb2j38"],outEdges:[],kind:"instance",title:"Distributor",tags:[],color:"primary",shape:"rectangle",style:{opacity:15,size:"md"},deploymentRef:"local.monitoring.distributor",modelRef:"edp.monitoring.loki.distributor",x:4802,y:1177,width:320,height:180,labelBBox:{x:112,y:74,width:95,height:24}},{id:"otc-edp-per-tenant.forgejoRunnerInfrastructure",parent:"otc-edp-per-tenant",level:1,children:[],inEdges:[],outEdges:["fkkf8y"],deploymentRef:"otc-edp-per-tenant.forgejoRunnerInfrastructure",title:"EDP ForgejoRunner infrastructure",kind:"computeressource",color:"primary",shape:"rectangle",modelRef:"forgejoRunner",description:{txt:"Infrastructure for Forgejo runners like pods, vms, lxds, etc"},tags:[],style:{opacity:15,size:"md"},x:2890,y:150,width:342,height:180,labelBBox:{x:18,y:54,width:306,height:66}},{id:"otc-edp-per-tenant.cce",parent:"otc-edp-per-tenant",level:1,children:[],inEdges:["fkkf8y","r3wxut","1sng0q0"],outEdges:["pit45i"],deploymentRef:"otc-edp-per-tenant.cce",title:"OTC CCE",kind:"kubernetes",technology:"Kubernetes",color:"primary",shape:"rectangle",icon:"tech:kubernetes",description:{txt:"OTC Container Cluster Engine"},tags:[],style:{opacity:15,size:"md"},x:2893,y:1177,width:327,height:180,labelBBox:{x:46,y:53,width:266,height:68}},{id:"otc-edp-per-tenant.cloudServices",parent:"otc-edp-per-tenant",level:1,children:[],inEdges:["pit45i","e3benz"],outEdges:[],deploymentRef:"otc-edp-per-tenant.cloudServices",title:"EDP Cloud Services",kind:"paas",technology:"Cloud Services",color:"primary",shape:"rectangle",description:{txt:"EDP Cloud Services"},tags:[],style:{opacity:15,size:"md"},x:2897,y:1531,width:320,height:180,labelBBox:{x:67,y:53,width:185,height:68}},{id:"local.spark.sparkoperator",parent:"local",level:1,children:[],inEdges:[],outEdges:[],kind:"instance",title:"Spark Operator",technology:"Spark",tags:[],icon:"tech:spark",color:"primary",shape:"rectangle",style:{opacity:15,size:"md"},deploymentRef:"local.spark.sparkoperator",modelRef:"edp.spark.sparkoperator",x:13440,y:150,width:320,height:180,labelBBox:{x:76,y:65,width:198,height:45}}],edges:[{id:"1xqlhup",source:"edgeProvider",target:"edgeSdk",label:"built using",points:[[1035,330],[1021,352],[1007,374],[995,395],[977,425],[959,458],[943,489]],labelBBox:{x:996,y:395,width:67,height:18},parent:null,relations:["1wlvsb5"],color:"gray",line:"dashed",head:"normal"},{id:"u9omtf",source:"edgeProvider",target:"edgeProviderHost.edp",label:"hosted on",points:[[1264,255],[1378,274],[1522,320],[1596,426],[1668,529],[1646,594],[1596,709],[1574,759],[1536,803],[1496,838]],labelBBox:{x:1643,y:576,width:66,height:18},parent:null,relations:["12ssq9"],color:"gray",line:"dashed",head:"normal"},{id:"r4j4sg",source:"edgeProvider",target:"edgeProviderHost.terralist",label:"published to",points:[[1160,330],[1197,379],[1244,439],[1282,489]],labelBBox:{x:1225,y:395,width:80,height:18},parent:null,relations:["1mpjz5d"],color:"gray",line:"dashed",head:"normal"},{id:"14pfq5a",source:"edgeSdk",target:"edgeProviderHost.edp",label:"hosted on",points:[[1011,677],[1077,727],[1160,788],[1228,838]],labelBBox:{x:1125,y:742,width:66,height:18},parent:null,relations:["1sm6ifh"],color:"gray",line:"dashed",head:"normal"},{id:"lw6otg",source:"edgeSdk",target:"edgeCloud.edgeApi",label:"calls",points:[[884,677],[880,725],[875,785],[871,834]],labelBBox:{x:879,y:742,width:32,height:18},parent:null,relations:["vfhcba"],color:"gray",line:"dashed",head:"normal"},{id:"pit45i",source:"otc-edp-per-tenant.cce",target:"otc-edp-per-tenant.cloudServices",label:null,points:[[3057,1357],[3057,1407],[3057,1469],[3057,1521]],labelBBox:null,parent:"otc-edp-per-tenant",relations:["1fzhjm9","15njmlz","hks76r","1w18ve8"],color:"gray",line:"dashed",head:"normal"},{id:"fkkf8y",source:"otc-edp-per-tenant.forgejoRunnerInfrastructure",target:"otc-edp-per-tenant.cce",label:"registers",points:[[3061,330],[3060,521],[3058,968],[3057,1167]],labelBBox:{x:3060,y:742,width:58,height:18},parent:"otc-edp-per-tenant",relations:["g9oj4f"],color:"gray",line:"dashed",head:"normal"},{id:"r3wxut",source:"otc-edpFoundry.workflowSetupEDPInfrastructure",target:"otc-edp-per-tenant.cce",label:"deploys edp to otc.cce",points:[[2260,1024],[2290,1043],[2323,1060],[2355,1074],[2528,1150],[2738,1202],[2883,1233]],labelBBox:{x:2448,y:1089,width:143,height:18},parent:null,relations:["uk77s5"],color:"gray",line:"dashed",head:"normal"},{id:"1sng0q0",source:"otc-edpFoundry.workflowSetupArgoCDInfrastructure",target:"otc-edp-per-tenant.cce",label:null,points:[[2708,1024],[2774,1070],[2854,1125],[2921,1172]],labelBBox:null,parent:null,relations:["jde35l"],color:"gray",line:"dashed",head:"normal"},{id:"e3benz",source:"otc-edpFoundry.workflowSetupEDPInfrastructure",target:"otc-edp-per-tenant.cloudServices",label:"deploys edp to otc.paas",points:[[2204,1024],[2302,1137],[2485,1332],[2674,1457],[2740,1500],[2819,1536],[2888,1563]],labelBBox:{x:2675,y:1255,width:152,height:18},parent:null,relations:["1pfc6bl"],color:"gray",line:"dashed",head:"normal"},{id:"llfvob",source:"otc-edpFoundry.cce",target:"otc-edpFoundry.workflowSetupEDPInfrastructure",label:"invokes",points:[[2146,677],[2143,725],[2140,785],[2136,834]],labelBBox:{x:2143,y:742,width:51,height:18},parent:"otc-edpFoundry",relations:["dola40"],color:"gray",line:"dashed",head:"normal"},{id:"fil3na",source:"otc-edpFoundry.cce",target:"otc-edpFoundry.workflowSetupArgoCDInfrastructure",label:"invokes",points:[[2262,677],[2323,727],[2399,788],[2462,838]],labelBBox:{x:2367,y:742,width:51,height:18},parent:"otc-edpFoundry",relations:["1f5y9gc"],color:"gray",line:"dashed",head:"normal"},{id:"109g3jm",source:"otc-edpFoundry.forgejoRunnerInfrastructure",target:"otc-edpFoundry.cce",label:"registers",points:[[2152,330],[2152,378],[2152,438],[2152,487]],labelBBox:{x:2153,y:395,width:58,height:18},parent:"otc-edpFoundry",relations:["1umzqdy"],color:"gray",line:"dashed",head:"normal"},{id:"c8rye7",source:"edgeProviderHost.terralist",target:"edgeProviderHost.edp",label:"authenticates via",points:[[1356,677],[1356,725],[1356,785],[1356,834]],labelBBox:{x:1357,y:742,width:109,height:18},parent:"edgeProviderHost",relations:["1q6ftvm"],color:"gray",line:"dashed",head:"normal"},{id:"1toht4t",source:"edgeCloud.edgeApi",target:"edgeCloud.edgeResources",label:"creates/destroys",points:[[863,1024],[863,1068],[863,1121],[863,1167]],labelBBox:{x:864,y:1089,width:107,height:18},parent:"edgeCloud",relations:["rr0lcz"],color:"gray",line:"dashed",head:"normal"},{id:"19kg5y",source:"local.backstage.backstage",target:"local.backstage.database",label:"reads/writes",points:[[6316,1024],[6316,1068],[6316,1121],[6316,1166]],labelBBox:{x:6317,y:1089,width:79,height:18},parent:"local.backstage",relations:["c23sak"],color:"gray",line:"dashed",head:"normal"},{id:"1gfgfhk",source:"local.argocd.argocdAppController",target:"local.argocd.argocdRedis",label:"read/write",points:[[6913,1024],[6944,1043],[6978,1061],[7011,1074],[7255,1172],[7556,1223],[7741,1248]],labelBBox:{x:7105,y:1089,width:65,height:18},parent:"local.argocd",relations:["10vkxaf"],color:"gray",line:"dashed",head:"normal"},{id:"qfu5xm",source:"local.argocd.argocdAppSetController",target:"local.argocd.argocdRedis",label:"read/write",points:[[7373,1024],[7401,1042],[7432,1059],[7461,1074],[7552,1121],[7656,1166],[7742,1201]],labelBBox:{x:7534,y:1089,width:65,height:18},parent:"local.argocd",relations:["i8z0mi"],color:"gray",line:"dashed",head:"normal"},{id:"g7xnzs",source:"local.argocd.argocdRepoServer",target:"local.argocd.argocdRedis",label:"read/write",points:[[7746,1024],[7777,1069],[7814,1123],[7845,1169]],labelBBox:{x:7806,y:1089,width:65,height:18},parent:"local.argocd",relations:["iullhy"],color:"gray",line:"dashed",head:"normal"},{id:"fon3rk",source:"local.argocd.argocdServer",target:"local.argocd.argocdRedis",label:"read/write",points:[[8076,1024],[8045,1069],[8008,1123],[7977,1169]],labelBBox:{x:8031,y:1089,width:65,height:18},parent:"local.argocd",relations:["yfhhi5"],color:"gray",line:"dashed",head:"normal"},{id:"4zwy1m",source:"local.keycloak.keycloak",target:"local.keycloak.keycloakDB",label:"reads/writes",points:[[3592,1024],[3592,1068],[3592,1121],[3592,1166]],labelBBox:{x:3593,y:1089,width:79,height:18},parent:"local.keycloak",relations:["18zxrhs"],color:"gray",line:"dashed",head:"normal"},{id:"sb2j38",source:"local.monitoring.alloy",target:"local.monitoring.distributor",label:"pushes logs",points:[[4962,1024],[4962,1068],[4962,1121],[4962,1167]],labelBBox:{x:4963,y:1089,width:79,height:18},parent:"local.monitoring",relations:["11ollyi"],color:"gray",line:"dashed",head:"normal"},{id:"15juth8",source:"local.ingressNginx.ingressNginx",target:"local.backstage.backstage",label:"https",points:[[6250,677],[6262,725],[6278,785],[6291,834]],labelBBox:{x:6273,y:742,width:34,height:18},parent:"local",relations:["v8c8aq"],color:"gray",line:"dashed",head:"normal"},{id:"p2br4p",source:"local.ingressNginx.ingressNginx",target:"local.argocd.argocdServer",label:"https",points:[[6387,596],[6751,614],[7634,668],[7911,773],[7952,789],[7992,813],[8026,838]],labelBBox:{x:7865,y:742,width:34,height:18},parent:"local",relations:["1yssos5"],color:"gray",line:"dashed",head:"normal"},{id:"o229dq",source:"local.ingressNginx.ingressNginx",target:"local.gitea.forgejo",label:"https",points:[[6387,591],[6821,600],[8013,637],[8378,773],[8418,788],[8458,813],[8492,838]],labelBBox:{x:8351,y:742,width:34,height:18},parent:"local",relations:["123efwn"],color:"gray",line:"dashed",head:"normal"},{id:"2vnvvg",source:"local.ingressNginx.ingressNginx",target:"local.keycloak.keycloak",label:"https",points:[[6125,677],[6105,690],[6084,702],[6063,709],[5963,746],[5693,735],[5587,742],[5447,752],[5412,760],[5272,765],[5252,766],[3839,767],[3820,773],[3777,787],[3735,812],[3699,838]],labelBBox:{x:5588,y:742,width:34,height:18},parent:"local",relations:["h3rut2"],color:"gray",line:"dashed",head:"normal"},{id:"3znaik",source:"local.velero.velero",target:"local.minio.minio",label:"store backups",points:[[9512,677],[9512,725],[9512,784],[9512,833]],labelBBox:{x:9513,y:742,width:91,height:18},parent:"local",relations:["1mazt1x"],color:"gray",line:"dashed",head:"normal"},{id:"4ix58c",source:"local.ingressNginx.ingressNginx",target:"local.minio.minio",label:"https",points:[[6387,593],[6979,609],[9028,671],[9302,773],[9341,788],[9379,812],[9411,837]],labelBBox:{x:9253,y:742,width:34,height:18},parent:"local",relations:["fe65w2"],color:"gray",line:"dashed",head:"normal"},{id:"1hr2s5j",source:"local.ingressNginx.ingressNginx",target:"local.monitoring.alloy",label:"https",points:[[6122,677],[6103,690],[6083,701],[6063,709],[5893,778],[5838,751],[5655,765],[5629,767],[5215,765],[5190,773],[5147,787],[5105,812],[5069,839]],labelBBox:{x:5958,y:742,width:34,height:18},parent:"local",relations:["1jvab2g"],color:"gray",line:"dashed",head:"normal"},{id:"1nksp5g",source:"local.ingressNginx.ingressNginx",target:"local.monitoring.queryFrontend",label:"https",points:[[6124,677],[6105,690],[6084,701],[6063,709],[6032,721],[5503,763],[5470,765],[5429,767],[4776,761],[4737,773],[4695,787],[4653,812],[4618,838]],labelBBox:{x:5752,y:742,width:34,height:18},parent:"local",relations:["fs60l7"],color:"gray",line:"dashed",head:"normal"},{id:"m2japo",source:"local.ingressNginx.ingressNginx",target:"local.openbao.openbao",label:"https",points:[[6387,589],[6881,591],[8378,612],[8832,773],[8874,788],[8915,813],[8951,839]],labelBBox:{x:8798,y:742,width:34,height:18},parent:"local",relations:["1p30hav"],color:"gray",line:"dashed",head:"normal"},{id:"4drflo",source:"local.ingressNginx.ingressNginx",target:"local.fibonacci.fibonacci",label:"https",points:[[6119,677],[6101,689],[6082,701],[6063,709],[5968,754],[5937,751],[5833,765],[5791,771],[5681,759],[5640,773],[5598,788],[5557,812],[5521,838]],labelBBox:{x:5976,y:742,width:34,height:18},parent:"local",relations:["1i5f8um"],color:"gray",line:"dashed",head:"normal"},{id:"ihlgsc",source:"local.ingressNginx.ingressNginx",target:"local.mailhog.mailhog",label:"https",points:[[6134,677],[6082,726],[6018,787],[5965,838]],labelBBox:{x:6057,y:742,width:34,height:18},parent:"local",relations:["ofdedh"],color:"gray",line:"dashed",head:"normal"}]},"edp-per-tenant":{_type:"deployment",tags:null,links:null,_stage:"layouted",sourcePath:"views/deployment/otc/edp.c4",description:null,title:"EDP per tenant",id:"edp-per-tenant",autoLayout:{direction:"TB"},hash:"1767a1203e463aa5c6283c309b8414cd4b5d1b8f",bounds:{x:0,y:0,width:2010,height:1175},nodes:[{id:"otc-edp-per-tenant",parent:null,level:0,children:["otc-edp-per-tenant.forgejoRunnerInfrastructure","otc-edp-per-tenant.cce","otc-edp-per-tenant.cloudServices"],inEdges:[],outEdges:[],deploymentRef:"otc-edp-per-tenant",title:"OTC EDP per tenant cluster",kind:"cloud",technology:"OTC",color:"slate",shape:"rectangle",description:{txt:`OTC environment for EDP. EDP is the environment a customer gets from us. + This is kubernetes clusters and other infrastructure like nodes and vms, and platform services. All is set up by IaC-pipelines in the Foundry.`},tags:[],style:{opacity:15,size:"md"},depth:3,x:8,y:8,width:1994,height:1159,labelBBox:{x:6,y:0,width:181,height:15}},{id:"otc-edp-per-tenant.forgejoRunnerInfrastructure",parent:"otc-edp-per-tenant",level:1,children:["otc-edp-per-tenant.forgejoRunnerInfrastructure.forgejoRunner"],inEdges:[],outEdges:["1dcszi5"],deploymentRef:"otc-edp-per-tenant.forgejoRunnerInfrastructure",title:"EDP ForgejoRunner infrastructure",kind:"computeressource",color:"primary",shape:"rectangle",modelRef:"forgejoRunner",description:{txt:"Infrastructure for Forgejo runners like pods, vms, lxds, etc"},tags:[],style:{opacity:15,size:"md"},depth:1,x:321,y:150,width:384,height:266,labelBBox:{x:6,y:0,width:235,height:15}},{id:"otc-edp-per-tenant.cce",parent:"otc-edp-per-tenant",level:1,children:["otc-edp-per-tenant.cce.edp"],inEdges:["1dcszi5"],outEdges:["8msu1q","120qe5o","ealiax","1trj5u6"],deploymentRef:"otc-edp-per-tenant.cce",title:"OTC CCE",kind:"kubernetes",technology:"Kubernetes",color:"red",shape:"rectangle",icon:"tech:kubernetes",description:{txt:"OTC Container Cluster Engine"},tags:[],style:{opacity:15,size:"md"},depth:2,x:755,y:79,width:954,height:719,labelBBox:{x:6,y:0,width:54,height:15}},{id:"otc-edp-per-tenant.cce.edp",parent:"otc-edp-per-tenant.cce",level:2,children:["otc-edp-per-tenant.cce.edp.externalSecrets","otc-edp-per-tenant.cce.edp.ingressNginx","otc-edp-per-tenant.cce.edp.argoCD","otc-edp-per-tenant.cce.edp.forgejo"],inEdges:["1dcszi5"],outEdges:["8msu1q","120qe5o","ealiax","1trj5u6"],deploymentRef:"otc-edp-per-tenant.cce.edp",title:"EDP",kind:"cluster",color:"primary",shape:"rectangle",tags:[],style:{opacity:15,size:"md"},depth:1,x:787,y:132,width:890,height:634,labelBBox:{x:6,y:0,width:27,height:15}},{id:"otc-edp-per-tenant.cce.edp.externalSecrets",parent:"otc-edp-per-tenant.cce.edp",level:3,children:[],inEdges:[],outEdges:[],kind:"instance",title:"external-secrets",description:{txt:"Provider to access externally stored Kubernetes secrets"},tags:["internal"],color:"primary",shape:"rectangle",style:{opacity:20,size:"md"},deploymentRef:"otc-edp-per-tenant.cce.edp.externalSecrets",modelRef:"edp.externalSecrets",navigateTo:"externalSecrets",x:837,y:204,width:320,height:180,labelBBox:{x:39,y:54,width:242,height:65}},{id:"otc-edp-per-tenant.forgejoRunnerInfrastructure.forgejoRunner",parent:"otc-edp-per-tenant.forgejoRunnerInfrastructure",level:2,children:[],inEdges:[],outEdges:["1dcszi5"],kind:"instance",title:"Forgejo Runner",description:{txt:"A runner is a service that runs jobs triggered by Forgejo. A runner can have different technical implementations like a container or a VM."},tags:[],color:"primary",shape:"rectangle",style:{opacity:15,size:"md"},deploymentRef:"otc-edp-per-tenant.forgejoRunnerInfrastructure.forgejoRunner",modelRef:"forgejoRunner",x:353,y:204,width:320,height:180,labelBBox:{x:23,y:36,width:274,height:101}},{id:"otc-edp-per-tenant.cce.edp.ingressNginx",parent:"otc-edp-per-tenant.cce.edp",level:3,children:[],inEdges:[],outEdges:["1ir70dd","1kr1wg1"],kind:"instance",title:"Ingress",description:{txt:"Ingress Controller for incoming http(s) traffic"},tags:["internal"],color:"primary",shape:"rectangle",style:{opacity:20,size:"md"},deploymentRef:"otc-edp-per-tenant.cce.edp.ingressNginx",modelRef:"edp.ingressNginx",navigateTo:"ingressNginx",x:1287,y:204,width:320,height:180,labelBBox:{x:33,y:54,width:255,height:65}},{id:"otc-edp-per-tenant.cce.edp.argoCD",parent:"otc-edp-per-tenant.cce.edp",level:3,children:[],inEdges:["1ir70dd"],outEdges:[],kind:"instance",title:"ArgoCD",description:{txt:"GitOps Service"},tags:[],color:"primary",shape:"rectangle",style:{opacity:20,size:"md"},deploymentRef:"otc-edp-per-tenant.cce.edp.argoCD",modelRef:"edp.argoCD",navigateTo:"argoCD",x:1307,y:536,width:320,height:180,labelBBox:{x:108,y:63,width:105,height:48}},{id:"otc-edp-per-tenant.cce.edp.forgejo",parent:"otc-edp-per-tenant.cce.edp",level:3,children:[],inEdges:["1kr1wg1","1dcszi5"],outEdges:["8msu1q","120qe5o","ealiax","1trj5u6"],kind:"instance",title:"Forgejo",description:{txt:`Fully managed DevOps Platform offering capabilities like code version controling @@ -237,18 +236,18 @@ It has more than 15 years of active development and a proven architecture that has earned it a strong reputation for reliability, data integrity, and correctness.`},technology:"PostgreSQL",tags:[],icon:"tech:postgresql",color:"primary",shape:"rectangle",style:{opacity:20,size:"md"},deploymentRef:"otc-edp-per-tenant.cloudServices.postgres",modelRef:"postgres",x:108,y:887,width:354,height:180,labelBBox:{x:46,y:17,width:292,height:139}},{id:"otc-edp-per-tenant.cloudServices.redis",parent:"otc-edp-per-tenant.cloudServices",level:2,children:[],inEdges:["120qe5o"],outEdges:[],kind:"instance",title:"Redis",description:{txt:"Redis is an open source (BSD licensed), in-memory data structure store, used as a database, cache and message broker."},technology:"Redis",tags:[],icon:"tech:redis",color:"primary",shape:"rectangle",style:{opacity:20,size:"md"},deploymentRef:"otc-edp-per-tenant.cloudServices.redis",modelRef:"redis",x:592,y:887,width:359,height:180,labelBBox:{x:47,y:26,width:297,height:121}},{id:"otc-edp-per-tenant.cloudServices.objectstorage",parent:"otc-edp-per-tenant.cloudServices",level:2,children:[],inEdges:["ealiax"],outEdges:[],kind:"instance",title:"s3 Object Storage",description:{txt:"s3 Object Storage"},technology:"S3 Object Storage",tags:[],color:"primary",shape:"rectangle",style:{opacity:20,size:"md"},deploymentRef:"otc-edp-per-tenant.cloudServices.objectstorage",modelRef:"objectstorage",x:1082,y:887,width:320,height:180,labelBBox:{x:78,y:53,width:164,height:67}},{id:"otc-edp-per-tenant.cloudServices.elasticsearch",parent:"otc-edp-per-tenant.cloudServices",level:2,children:[],inEdges:["1trj5u6"],outEdges:[],kind:"instance",title:"Elasticsearch",description:{txt:`Elasticsearch is a distributed, RESTful search and analytics engine capable of addressing a growing number of use cases. It centrally stores your data so you can -discover the expected and uncover the unexpected.`},technology:"Elasticsearch",tags:[],icon:"tech:elasticsearch",color:"primary",shape:"rectangle",style:{opacity:20,size:"md"},deploymentRef:"otc-edp-per-tenant.cloudServices.elasticsearch",modelRef:"elasticsearch",x:1532,y:887,width:370,height:180,labelBBox:{x:46,y:17,width:308,height:139}}],edges:[{id:"1ir70dd",source:"otc-edp-per-tenant.cce.edp.ingressNginx",target:"otc-edp-per-tenant.cce.edp.argoCD",label:"https",dotpos:"e,1461.6,536.51 1452.4,383.25 1455,427.28 1458.2,480.64 1461,526.05",points:[[1452,383],[1455,427],[1458,481],[1461,526]],labelBBox:{x:1459,y:448,width:34,height:18},parent:"otc-edp-per-tenant.cce.edp",relations:["1yssos5"],color:"gray",line:"dashed",head:"normal"},{id:"1kr1wg1",source:"otc-edp-per-tenant.cce.edp.ingressNginx",target:"otc-edp-per-tenant.cce.edp.forgejo",label:"https",dotpos:"e,1125.1,536.62 1328.8,383.47 1268.4,428.89 1194.8,484.19 1133.3,530.44",points:[[1329,383],[1268,429],[1195,484],[1133,530]],labelBBox:{x:1241,y:448,width:34,height:18},parent:"otc-edp-per-tenant.cce.edp",relations:["123efwn"],color:"gray",line:"dashed",head:"normal"},{id:"1dcszi5",source:"otc-edp-per-tenant.forgejoRunnerInfrastructure.forgejoRunner",target:"otc-edp-per-tenant.cce.edp.forgejo",label:"registers",dotpos:"e,874.42,536.62 645.71,383.47 713.81,429.07 796.79,484.64 866.04,531.01",points:[[646,383],[714,429],[797,485],[866,531]],labelBBox:{x:776,y:448,width:58,height:18},parent:"otc-edp-per-tenant",relations:["g9oj4f"],color:"gray",line:"dashed",head:"normal"},{id:"8msu1q",source:"otc-edp-per-tenant.cce.edp.forgejo",target:"otc-edp-per-tenant.cloudServices.postgres",label:null,dotpos:"e,408.47,886.62 836.84,684.1 743.28,717.71 626.38,763.79 527,815.4 490.05,834.59 451.75,858.08 416.81,881.1",points:[[837,684],[743,718],[626,764],[527,815],[490,835],[452,858],[417,881]],labelBBox:null,parent:"otc-edp-per-tenant",relations:["hks76r"],color:"gray",line:"dashed",head:"normal"},{id:"120qe5o",source:"otc-edp-per-tenant.cce.edp.forgejo",target:"otc-edp-per-tenant.cloudServices.redis",label:null,dotpos:"e,832,886.69 947.09,716.17 913.73,765.59 872.15,827.21 837.87,877.99",points:[[947,716],[914,766],[872,827],[838,878]],labelBBox:null,parent:"otc-edp-per-tenant",relations:["1w18ve8"],color:"gray",line:"dashed",head:"normal"},{id:"ealiax",source:"otc-edp-per-tenant.cce.edp.forgejo",target:"otc-edp-per-tenant.cloudServices.objectstorage",label:null,dotpos:"e,1182,886.69 1066.9,716.17 1100.3,765.59 1141.9,827.21 1176.1,877.99",points:[[1067,716],[1100,766],[1142,827],[1176,878]],labelBBox:null,parent:"otc-edp-per-tenant",relations:["15njmlz"],color:"gray",line:"dashed",head:"normal"},{id:"1trj5u6",source:"otc-edp-per-tenant.cce.edp.forgejo",target:"otc-edp-per-tenant.cloudServices.elasticsearch",label:null,dotpos:"e,1604.5,886.79 1103.6,716.4 1143.6,747.92 1192.2,780.08 1242,798.4 1336.1,833 1371.9,783.6 1467,815.4 1512.1,830.47 1557.1,855.46 1596.3,881.27",points:[[1104,716],[1144,748],[1192,780],[1242,798],[1336,833],[1372,784],[1467,815],[1512,830],[1557,855],[1596,881]],labelBBox:null,parent:"otc-edp-per-tenant",relations:["1fzhjm9"],color:"gray",line:"dashed",head:"normal"}]},"edp-foundry-central-service":{_type:"deployment",tags:null,links:null,_stage:"layouted",sourcePath:"views/deployment/otc/foundry.c4",description:null,title:"EDP Foundry Central Service",id:"edp-foundry-central-service",autoLayout:{direction:"TB"},hash:"8f8eb235b0e8ff555a22ed61d124ba68e67e5ee2",bounds:{x:0,y:0,width:3894,height:1218},nodes:[{id:"otc-edpFoundry",parent:null,level:0,children:["otc-edpFoundry.cce","otc-edpFoundry.forgejoRunnerInfrastructure","otc-edpFoundry.workflowSetupEDPInfrastructure","otc-edpFoundry.workflowSetupArgoCDInfrastructure"],inEdges:[],outEdges:[],deploymentRef:"otc-edpFoundry",title:"OTC EDP Foundry Central Service clusters",kind:"cloud",technology:"OTC",color:"slate",shape:"rectangle",description:{txt:`OTC environments for the central EDP Foundry services. This is kubernetes clusters and other infrastructure like nodes and vms, and optionally platform services. All is set up by IaC terraform and edpbuilder. +discover the expected and uncover the unexpected.`},technology:"Elasticsearch",tags:[],icon:"tech:elasticsearch",color:"primary",shape:"rectangle",style:{opacity:20,size:"md"},deploymentRef:"otc-edp-per-tenant.cloudServices.elasticsearch",modelRef:"elasticsearch",x:1532,y:887,width:370,height:180,labelBBox:{x:46,y:17,width:308,height:139}}],edges:[{id:"1ir70dd",source:"otc-edp-per-tenant.cce.edp.ingressNginx",target:"otc-edp-per-tenant.cce.edp.argoCD",label:"https",points:[[1452,383],[1455,427],[1458,481],[1461,526]],labelBBox:{x:1459,y:448,width:34,height:18},parent:"otc-edp-per-tenant.cce.edp",relations:["1yssos5"],color:"gray",line:"dashed",head:"normal"},{id:"1kr1wg1",source:"otc-edp-per-tenant.cce.edp.ingressNginx",target:"otc-edp-per-tenant.cce.edp.forgejo",label:"https",points:[[1329,383],[1268,429],[1195,484],[1133,530]],labelBBox:{x:1241,y:448,width:34,height:18},parent:"otc-edp-per-tenant.cce.edp",relations:["123efwn"],color:"gray",line:"dashed",head:"normal"},{id:"1dcszi5",source:"otc-edp-per-tenant.forgejoRunnerInfrastructure.forgejoRunner",target:"otc-edp-per-tenant.cce.edp.forgejo",label:"registers",points:[[646,383],[714,429],[797,485],[866,531]],labelBBox:{x:776,y:448,width:58,height:18},parent:"otc-edp-per-tenant",relations:["g9oj4f"],color:"gray",line:"dashed",head:"normal"},{id:"8msu1q",source:"otc-edp-per-tenant.cce.edp.forgejo",target:"otc-edp-per-tenant.cloudServices.postgres",label:null,points:[[837,684],[743,718],[626,764],[527,815],[490,835],[452,858],[417,881]],labelBBox:null,parent:"otc-edp-per-tenant",relations:["hks76r"],color:"gray",line:"dashed",head:"normal"},{id:"120qe5o",source:"otc-edp-per-tenant.cce.edp.forgejo",target:"otc-edp-per-tenant.cloudServices.redis",label:null,points:[[947,716],[914,766],[872,827],[838,878]],labelBBox:null,parent:"otc-edp-per-tenant",relations:["1w18ve8"],color:"gray",line:"dashed",head:"normal"},{id:"ealiax",source:"otc-edp-per-tenant.cce.edp.forgejo",target:"otc-edp-per-tenant.cloudServices.objectstorage",label:null,points:[[1067,716],[1100,766],[1142,827],[1176,878]],labelBBox:null,parent:"otc-edp-per-tenant",relations:["15njmlz"],color:"gray",line:"dashed",head:"normal"},{id:"1trj5u6",source:"otc-edp-per-tenant.cce.edp.forgejo",target:"otc-edp-per-tenant.cloudServices.elasticsearch",label:null,points:[[1104,716],[1144,748],[1192,780],[1242,798],[1336,833],[1372,784],[1467,815],[1512,830],[1557,855],[1596,881]],labelBBox:null,parent:"otc-edp-per-tenant",relations:["1fzhjm9"],color:"gray",line:"dashed",head:"normal"}]},"edp-foundry-central-service":{_type:"deployment",tags:null,links:null,_stage:"layouted",sourcePath:"views/deployment/otc/foundry.c4",description:null,title:"EDP Foundry Central Service",id:"edp-foundry-central-service",autoLayout:{direction:"TB"},hash:"8f8eb235b0e8ff555a22ed61d124ba68e67e5ee2",bounds:{x:0,y:0,width:3894,height:1218},nodes:[{id:"otc-edpFoundry",parent:null,level:0,children:["otc-edpFoundry.cce","otc-edpFoundry.forgejoRunnerInfrastructure","otc-edpFoundry.workflowSetupEDPInfrastructure","otc-edpFoundry.workflowSetupArgoCDInfrastructure"],inEdges:[],outEdges:[],deploymentRef:"otc-edpFoundry",title:"OTC EDP Foundry Central Service clusters",kind:"cloud",technology:"OTC",color:"slate",shape:"rectangle",description:{txt:`OTC environments for the central EDP Foundry services. This is kubernetes clusters and other infrastructure like nodes and vms, and optionally platform services. All is set up by IaC terraform and edpbuilder. A tenant is a folder in Foundry-Config-Forgejo. On merge triggers reconciliation to EDP. Optionally we will have a WebUI/API/CLI`},tags:[],style:{opacity:15,size:"md"},depth:3,x:8,y:8,width:3878,height:1202,labelBBox:{x:6,y:0,width:280,height:15}},{id:"otc-edpFoundry.cce",parent:"otc-edpFoundry",level:1,children:["otc-edpFoundry.cce.internalServices","otc-edpFoundry.cce.centralObservability"],inEdges:["628xl1"],outEdges:["84397w","1oz2va9"],deploymentRef:"otc-edpFoundry.cce",title:"OTC CCE",kind:"kubernetes",technology:"Kubernetes",color:"red",shape:"rectangle",icon:"tech:kubernetes",description:{txt:"OTC Container Cluster Engine"},tags:[],style:{opacity:15,size:"md"},depth:2,x:58,y:79,width:2360,height:755,labelBBox:{x:6,y:0,width:54,height:15}},{id:"otc-edpFoundry.cce.internalServices",parent:"otc-edpFoundry.cce",level:2,children:["otc-edpFoundry.cce.internalServices.externalSecrets","otc-edpFoundry.cce.internalServices.ingressNginx","otc-edpFoundry.cce.internalServices.argoCD","otc-edpFoundry.cce.internalServices.forgejo","otc-edpFoundry.cce.internalServices.openbao"],inEdges:["628xl1"],outEdges:["84397w","1oz2va9"],deploymentRef:"otc-edpFoundry.cce.internalServices",title:"EDP Foundry Internal Services",kind:"cluster",color:"primary",shape:"rectangle",tags:[],style:{opacity:15,size:"md"},depth:1,x:1028,y:150,width:1340,height:634,labelBBox:{x:6,y:0,width:201,height:15}},{id:"otc-edpFoundry.cce.internalServices.externalSecrets",parent:"otc-edpFoundry.cce.internalServices",level:3,children:[],inEdges:[],outEdges:[],kind:"instance",title:"external-secrets",description:{txt:"Provider to access externally stored Kubernetes secrets"},tags:["internal"],color:"primary",shape:"rectangle",style:{opacity:20,size:"md"},deploymentRef:"otc-edpFoundry.cce.internalServices.externalSecrets",modelRef:"edp.externalSecrets",navigateTo:"externalSecrets",x:1308,y:222,width:320,height:180,labelBBox:{x:39,y:54,width:242,height:65}},{id:"otc-edpFoundry.cce.centralObservability",parent:"otc-edpFoundry.cce",level:2,children:["otc-edpFoundry.cce.centralObservability.grafana","otc-edpFoundry.cce.centralObservability.prometheus","otc-edpFoundry.cce.centralObservability.loki"],inEdges:[],outEdges:[],deploymentRef:"otc-edpFoundry.cce.centralObservability",title:"EDP Foundry Central Observability",kind:"cluster",color:"primary",shape:"rectangle",tags:[],style:{opacity:15,size:"md"},depth:1,x:108,y:150,width:870,height:634,labelBBox:{x:6,y:0,width:232,height:15}},{id:"otc-edpFoundry.forgejoRunnerInfrastructure",parent:"otc-edpFoundry",level:1,children:["otc-edpFoundry.forgejoRunnerInfrastructure.forgejoRunner"],inEdges:[],outEdges:["628xl1"],deploymentRef:"otc-edpFoundry.forgejoRunnerInfrastructure",title:"EDP ForgejoRunner infrastructure",kind:"computeressource",color:"green",shape:"rectangle",modelRef:"forgejoRunner",description:{txt:"Infrastructure for Forgejo runners like pods, vms, lxds, etc"},tags:[],style:{opacity:15,size:"md"},depth:1,x:2468,y:168,width:384,height:266,labelBBox:{x:6,y:0,width:235,height:15}},{id:"otc-edpFoundry.cce.centralObservability.grafana",parent:"otc-edpFoundry.cce.centralObservability",level:3,children:[],inEdges:[],outEdges:["qykxlm","yv49z5"],kind:"instance",title:"Grafana",description:{txt:"Data visualization and monitoring"},tags:[],icon:"tech:grafana",color:"primary",shape:"rectangle",style:{opacity:20,size:"md"},deploymentRef:"otc-edpFoundry.cce.centralObservability.grafana",modelRef:"edp.grafana",x:289,y:222,width:345,height:180,labelBBox:{x:47,y:63,width:283,height:47}},{id:"otc-edpFoundry.forgejoRunnerInfrastructure.forgejoRunner",parent:"otc-edpFoundry.forgejoRunnerInfrastructure",level:2,children:[],inEdges:[],outEdges:["628xl1"],kind:"instance",title:"Forgejo Runner",description:{txt:"A runner is a service that runs jobs triggered by Forgejo. A runner can have different technical implementations like a container or a VM."},tags:[],color:"primary",shape:"rectangle",style:{opacity:15,size:"md"},deploymentRef:"otc-edpFoundry.forgejoRunnerInfrastructure.forgejoRunner",modelRef:"forgejoRunner",x:2500,y:222,width:320,height:180,labelBBox:{x:23,y:36,width:274,height:101}},{id:"otc-edpFoundry.cce.centralObservability.prometheus",parent:"otc-edpFoundry.cce.centralObservability",level:3,children:[],inEdges:["qykxlm"],outEdges:[],kind:"instance",title:"Prometheus",description:{txt:"Monitoring and alerting toolkit"},tags:[],icon:"tech:prometheus",color:"primary",shape:"rectangle",style:{opacity:20,size:"md"},deploymentRef:"otc-edpFoundry.cce.centralObservability.prometheus",modelRef:"edp.prometheus",x:158,y:554,width:320,height:180,labelBBox:{x:46,y:63,width:258,height:48}},{id:"otc-edpFoundry.cce.centralObservability.loki",parent:"otc-edpFoundry.cce.centralObservability",level:3,children:[],inEdges:["yv49z5"],outEdges:[],kind:"instance",title:"Loki",description:{txt:"Log aggregation system"},tags:[],color:"primary",shape:"rectangle",style:{opacity:20,size:"md"},deploymentRef:"otc-edpFoundry.cce.centralObservability.loki",modelRef:"edp.loki",x:608,y:554,width:320,height:180,labelBBox:{x:78,y:63,width:164,height:48}},{id:"otc-edpFoundry.cce.internalServices.ingressNginx",parent:"otc-edpFoundry.cce.internalServices",level:3,children:[],inEdges:[],outEdges:["17kru01","170pc3l","u5oqat"],kind:"instance",title:"Ingress",description:{txt:"Ingress Controller for incoming http(s) traffic"},tags:["internal"],color:"primary",shape:"rectangle",style:{opacity:20,size:"md"},deploymentRef:"otc-edpFoundry.cce.internalServices.ingressNginx",modelRef:"edp.ingressNginx",navigateTo:"ingressNginx",x:1988,y:222,width:320,height:180,labelBBox:{x:33,y:54,width:255,height:65}},{id:"otc-edpFoundry.cce.internalServices.argoCD",parent:"otc-edpFoundry.cce.internalServices",level:3,children:[],inEdges:["17kru01"],outEdges:[],kind:"instance",title:"ArgoCD",description:{txt:"GitOps Service"},tags:[],color:"primary",shape:"rectangle",style:{opacity:20,size:"md"},deploymentRef:"otc-edpFoundry.cce.internalServices.argoCD",modelRef:"edp.argoCD",navigateTo:"argoCD",x:1078,y:554,width:320,height:180,labelBBox:{x:108,y:63,width:105,height:48}},{id:"otc-edpFoundry.cce.internalServices.forgejo",parent:"otc-edpFoundry.cce.internalServices",level:3,children:[],inEdges:["170pc3l","628xl1"],outEdges:["84397w","1oz2va9"],kind:"instance",title:"Forgejo",description:{txt:`Fully managed DevOps Platform offering capabilities like code version controling collaboration and ticketing -and security scanning`},technology:"Golang",tags:[],icon:"tech:go",color:"primary",shape:"rectangle",style:{opacity:20,size:"md"},deploymentRef:"otc-edpFoundry.cce.internalServices.forgejo",modelRef:"edp.forgejo",navigateTo:"forgejo",x:1978,y:554,width:340,height:180,labelBBox:{x:46,y:18,width:278,height:139}},{id:"otc-edpFoundry.cce.internalServices.openbao",parent:"otc-edpFoundry.cce.internalServices",level:3,children:[],inEdges:["u5oqat"],outEdges:[],kind:"instance",title:"OpenBao",description:{txt:"Secure secret storage"},tags:[],color:"primary",shape:"rectangle",style:{opacity:20,size:"md"},deploymentRef:"otc-edpFoundry.cce.internalServices.openbao",modelRef:"edp.openbao",x:1528,y:554,width:320,height:180,labelBBox:{x:85,y:63,width:151,height:48}},{id:"otc-edpFoundry.workflowSetupEDPInfrastructure",parent:"otc-edpFoundry",level:1,children:["otc-edpFoundry.workflowSetupEDPInfrastructure.forgejoRunner","otc-edpFoundry.workflowSetupEDPInfrastructure.forgejoRunnerWorker","otc-edpFoundry.workflowSetupEDPInfrastructure.edpworkflow"],inEdges:["84397w"],outEdges:[],deploymentRef:"otc-edpFoundry.workflowSetupEDPInfrastructure",title:"EDP infrastructure Workflow",kind:"computeressource",color:"amber",shape:"rectangle",description:{txt:"EDP infrastructure Workflow"},tags:[],style:{opacity:15,size:"md"},depth:1,x:2902,y:150,width:442,height:1010,labelBBox:{x:6,y:0,width:201,height:15}},{id:"otc-edpFoundry.workflowSetupArgoCDInfrastructure",parent:"otc-edpFoundry",level:1,children:["otc-edpFoundry.workflowSetupArgoCDInfrastructure.forgejoRunner","otc-edpFoundry.workflowSetupArgoCDInfrastructure.forgejoRunnerWorker","otc-edpFoundry.workflowSetupArgoCDInfrastructure.edpworkflow"],inEdges:["1oz2va9"],outEdges:[],deploymentRef:"otc-edpFoundry.workflowSetupArgoCDInfrastructure",title:"EDP ArgoCD Workflow",kind:"computeressource",color:"amber",shape:"rectangle",description:{txt:"EDP Setup ArgoCD Workflow"},tags:[],style:{opacity:15,size:"md"},depth:1,x:3394,y:150,width:442,height:1010,labelBBox:{x:6,y:0,width:149,height:15}},{id:"otc-edpFoundry.workflowSetupEDPInfrastructure.forgejoRunner",parent:"otc-edpFoundry.workflowSetupEDPInfrastructure",level:2,children:[],inEdges:["84397w"],outEdges:["1hnil62"],kind:"instance",title:"Forgejo Runner",description:{txt:"A runner is a service that runs jobs triggered by Forgejo. A runner can have different technical implementations like a container or a VM."},tags:[],color:"primary",shape:"rectangle",style:{opacity:15,size:"md"},deploymentRef:"otc-edpFoundry.workflowSetupEDPInfrastructure.forgejoRunner",modelRef:"forgejoRunner",x:2961,y:222,width:320,height:180,labelBBox:{x:23,y:36,width:274,height:101}},{id:"otc-edpFoundry.workflowSetupArgoCDInfrastructure.forgejoRunner",parent:"otc-edpFoundry.workflowSetupArgoCDInfrastructure",level:2,children:[],inEdges:["1oz2va9"],outEdges:["1gtxobu"],kind:"instance",title:"Forgejo Runner",description:{txt:"A runner is a service that runs jobs triggered by Forgejo. A runner can have different technical implementations like a container or a VM."},tags:[],color:"primary",shape:"rectangle",style:{opacity:15,size:"md"},deploymentRef:"otc-edpFoundry.workflowSetupArgoCDInfrastructure.forgejoRunner",modelRef:"forgejoRunner",x:3466,y:222,width:320,height:180,labelBBox:{x:23,y:36,width:274,height:101}},{id:"otc-edpFoundry.workflowSetupEDPInfrastructure.forgejoRunnerWorker",parent:"otc-edpFoundry.workflowSetupEDPInfrastructure",level:2,children:[],inEdges:["1hnil62"],outEdges:["ekzztw"],kind:"instance",title:"Forgejo Runner Worker",description:{txt:"A worker is a service that runs a job invoked by a runner. A worker typically is a container."},tags:[],color:"primary",shape:"rectangle",style:{opacity:15,size:"md"},deploymentRef:"otc-edpFoundry.workflowSetupEDPInfrastructure.forgejoRunnerWorker",modelRef:"forgejoRunnerWorker",x:2954,y:554,width:333,height:180,labelBBox:{x:18,y:45,width:297,height:84}},{id:"otc-edpFoundry.workflowSetupArgoCDInfrastructure.forgejoRunnerWorker",parent:"otc-edpFoundry.workflowSetupArgoCDInfrastructure",level:2,children:[],inEdges:["1gtxobu"],outEdges:["b9ntr8"],kind:"instance",title:"Forgejo Runner Worker",description:{txt:"A worker is a service that runs a job invoked by a runner. A worker typically is a container."},tags:[],color:"primary",shape:"rectangle",style:{opacity:15,size:"md"},deploymentRef:"otc-edpFoundry.workflowSetupArgoCDInfrastructure.forgejoRunnerWorker",modelRef:"forgejoRunnerWorker",x:3452,y:554,width:333,height:180,labelBBox:{x:18,y:45,width:297,height:84}},{id:"otc-edpFoundry.workflowSetupEDPInfrastructure.edpworkflow",parent:"otc-edpFoundry.workflowSetupEDPInfrastructure",level:2,children:[],inEdges:["ekzztw"],outEdges:[],kind:"instance",title:"EDP Infrastructure Setup Workflow",tags:[],color:"primary",shape:"rectangle",style:{opacity:15,size:"md"},deploymentRef:"otc-edpFoundry.workflowSetupEDPInfrastructure.edpworkflow",modelRef:"edpworkflow",x:2952,y:930,width:342,height:180,labelBBox:{x:14,y:74,width:314,height:24}},{id:"otc-edpFoundry.workflowSetupArgoCDInfrastructure.edpworkflow",parent:"otc-edpFoundry.workflowSetupArgoCDInfrastructure",level:2,children:[],inEdges:["b9ntr8"],outEdges:[],kind:"instance",title:"EDP Infrastructure Setup Workflow",tags:[],color:"primary",shape:"rectangle",style:{opacity:15,size:"md"},deploymentRef:"otc-edpFoundry.workflowSetupArgoCDInfrastructure.edpworkflow",modelRef:"edpworkflow",x:3444,y:930,width:342,height:180,labelBBox:{x:14,y:74,width:314,height:24}}],edges:[{id:"17kru01",source:"otc-edpFoundry.cce.internalServices.ingressNginx",target:"otc-edpFoundry.cce.internalServices.argoCD",label:"https",dotpos:"e,1397.8,579.34 1988.2,367.11 1849,415.06 1642,487.45 1463,554.4 1445,561.14 1426.2,568.31 1407.6,575.55",points:[[1988,367],[1849,415],[1642,487],[1463,554],[1445,561],[1426,568],[1408,576]],labelBBox:{x:1689,y:466,width:34,height:18},parent:"otc-edpFoundry.cce.internalServices",relations:["1yssos5"],color:"gray",line:"dashed",head:"normal"},{id:"170pc3l",source:"otc-edpFoundry.cce.internalServices.ingressNginx",target:"otc-edpFoundry.cce.internalServices.forgejo",label:"https",dotpos:"e,2148,554.51 2148,401.25 2148,445.28 2148,498.64 2148,544.05",points:[[2148,401],[2148,445],[2148,499],[2148,544]],labelBBox:{x:2149,y:466,width:34,height:18},parent:"otc-edpFoundry.cce.internalServices",relations:["123efwn"],color:"gray",line:"dashed",head:"normal"},{id:"u5oqat",source:"otc-edpFoundry.cce.internalServices.ingressNginx",target:"otc-edpFoundry.cce.internalServices.openbao",label:"https",dotpos:"e,1811.5,554.62 2024.4,401.47 1961.1,446.98 1884.1,502.41 1819.6,548.73",points:[[2024,401],[1961,447],[1884,502],[1820,549]],labelBBox:{x:1933,y:466,width:34,height:18},parent:"otc-edpFoundry.cce.internalServices",relations:["1p30hav"],color:"gray",line:"dashed",head:"normal"},{id:"qykxlm",source:"otc-edpFoundry.cce.centralObservability.grafana",target:"otc-edpFoundry.cce.centralObservability.prometheus",label:"get metrics and alerts",dotpos:"e,356.7,554.51 423.41,401.25 404.12,445.56 380.72,499.31 360.87,544.91",points:[[423,401],[404,446],[381,499],[361,545]],labelBBox:{x:395,y:466,width:138,height:18},parent:"otc-edpFoundry.cce.centralObservability",relations:["13uvtiq"],color:"gray",line:"dashed",head:"normal"},{id:"yv49z5",source:"otc-edpFoundry.cce.centralObservability.grafana",target:"otc-edpFoundry.cce.centralObservability.loki",label:"get logs",dotpos:"e,685.77,554.51 544,401.25 585.59,446.21 636.17,500.89 678.74,546.91",points:[[544,401],[586,446],[636,501],[679,547]],labelBBox:{x:625,y:466,width:53,height:18},parent:"otc-edpFoundry.cce.centralObservability",relations:["1n1utzc"],color:"gray",line:"dashed",head:"normal"},{id:"84397w",source:"otc-edpFoundry.cce.internalServices.forgejo",target:"otc-edpFoundry.workflowSetupEDPInfrastructure.forgejoRunner",label:"invokes",dotpos:"e,2961,399.55 2318.4,604.81 2469.6,568.24 2695.1,507.91 2884,433.6 2906.3,424.83 2929.3,414.65 2951.8,403.98",points:[[2318,605],[2470,568],[2695,508],[2884,434],[2906,425],[2929,415],[2952,404]],labelBBox:{x:2787,y:466,width:51,height:18},parent:"otc-edpFoundry",relations:["dola40"],color:"gray",line:"dashed",head:"normal"},{id:"1hnil62",source:"otc-edpFoundry.workflowSetupEDPInfrastructure.forgejoRunner",target:"otc-edpFoundry.workflowSetupEDPInfrastructure.forgejoRunnerWorker",label:"runs",dotpos:"e,3121,554.51 3121,401.25 3121,445.28 3121,498.64 3121,544.05",points:[[3121,401],[3121,445],[3121,499],[3121,544]],labelBBox:{x:3122,y:466,width:31,height:18},parent:"otc-edpFoundry.workflowSetupEDPInfrastructure",relations:["7kqly3"],color:"gray",line:"dashed",head:"normal"},{id:"ekzztw",source:"otc-edpFoundry.workflowSetupEDPInfrastructure.forgejoRunnerWorker",target:"otc-edpFoundry.workflowSetupEDPInfrastructure.edpworkflow",label:"executes",dotpos:"e,3122.5,930.28 3121.5,733.99 3121.8,789.89 3122.2,862.2 3122.5,920.03",points:[[3121,734],[3122,790],[3122,862],[3122,920]],labelBBox:{x:3123,y:842,width:60,height:18},parent:"otc-edpFoundry.workflowSetupEDPInfrastructure",relations:["12hf1w4"],color:"gray",line:"dashed",head:"normal"},{id:"1oz2va9",source:"otc-edpFoundry.cce.internalServices.forgejo",target:"otc-edpFoundry.workflowSetupArgoCDInfrastructure.forgejoRunner",label:"invokes",dotpos:"e,3524.7,401.42 2318.4,622.3 2654.2,580.67 3369.9,491.78 3376,489.4 3425.8,470.06 3475.1,438.64 3516.5,407.61",points:[[2318,622],[2654,581],[3370,492],[3376,489],[3426,470],[3475,439],[3517,408]],labelBBox:{x:3422,y:466,width:51,height:18},parent:"otc-edpFoundry",relations:["1f5y9gc"],color:"gray",line:"dashed",head:"normal"},{id:"1gtxobu",source:"otc-edpFoundry.workflowSetupArgoCDInfrastructure.forgejoRunner",target:"otc-edpFoundry.workflowSetupArgoCDInfrastructure.forgejoRunnerWorker",label:"runs",dotpos:"e,3620.9,554.51 3624.1,401.25 3623.2,445.28 3622.1,498.64 3621.1,544.05",points:[[3624,401],[3623,445],[3622,499],[3621,544]],labelBBox:{x:3624,y:466,width:31,height:18},parent:"otc-edpFoundry.workflowSetupArgoCDInfrastructure",relations:["hqie0"],color:"gray",line:"dashed",head:"normal"},{id:"b9ntr8",source:"otc-edpFoundry.workflowSetupArgoCDInfrastructure.forgejoRunnerWorker",target:"otc-edpFoundry.workflowSetupArgoCDInfrastructure.edpworkflow",label:"executes",dotpos:"e,3616,930.28 3618.1,733.99 3617.5,789.89 3616.7,862.2 3616.1,920.03",points:[[3618,734],[3617,790],[3617,862],[3616,920]],labelBBox:{x:3618,y:842,width:60,height:18},parent:"otc-edpFoundry.workflowSetupArgoCDInfrastructure",relations:["1j16hqv"],color:"gray",line:"dashed",head:"normal"},{id:"628xl1",source:"otc-edpFoundry.forgejoRunnerInfrastructure.forgejoRunner",target:"otc-edpFoundry.cce.internalServices.forgejo",label:"registers",dotpos:"e,2285.4,554.62 2522.5,401.47 2451.9,447.07 2365.9,502.64 2294.1,549.01",points:[[2522,401],[2452,447],[2366,503],[2294,549]],labelBBox:{x:2420,y:466,width:58,height:18},parent:"otc-edpFoundry",relations:["1umzqdy"],color:"gray",line:"dashed",head:"normal"}]},"forgejo-as-a-service":{_type:"deployment",tags:null,links:null,_stage:"layouted",sourcePath:"views/deployment/otc/foundry-and-edp.c4",description:null,title:"Forgejo as a Service",id:"forgejo-as-a-service",autoLayout:{direction:"TB"},hash:"04b470ef03e0995fc0d9fa8ac4c4c0a494f74722",bounds:{x:0,y:0,width:5468,height:1994},nodes:[{id:"otc-edpFoundry",parent:null,level:0,children:["otc-edpFoundry.cce","otc-edpFoundry.forgejoRunnerInfrastructure","otc-edpFoundry.workflowSetupEDPInfrastructure","otc-edpFoundry.workflowSetupArgoCDInfrastructure"],inEdges:[],outEdges:["1asm38z","1or831y","ejqwjt"],deploymentRef:"otc-edpFoundry",title:"OTC EDP Foundry Central Service clusters",kind:"cloud",technology:"OTC",color:"slate",shape:"rectangle",description:{txt:`OTC environments for the central EDP Foundry services. This is kubernetes clusters and other infrastructure like nodes and vms, and optionally platform services. All is set up by IaC terraform and edpbuilder. +and security scanning`},technology:"Golang",tags:[],icon:"tech:go",color:"primary",shape:"rectangle",style:{opacity:20,size:"md"},deploymentRef:"otc-edpFoundry.cce.internalServices.forgejo",modelRef:"edp.forgejo",navigateTo:"forgejo",x:1978,y:554,width:340,height:180,labelBBox:{x:46,y:18,width:278,height:139}},{id:"otc-edpFoundry.cce.internalServices.openbao",parent:"otc-edpFoundry.cce.internalServices",level:3,children:[],inEdges:["u5oqat"],outEdges:[],kind:"instance",title:"OpenBao",description:{txt:"Secure secret storage"},tags:[],color:"primary",shape:"rectangle",style:{opacity:20,size:"md"},deploymentRef:"otc-edpFoundry.cce.internalServices.openbao",modelRef:"edp.openbao",x:1528,y:554,width:320,height:180,labelBBox:{x:85,y:63,width:151,height:48}},{id:"otc-edpFoundry.workflowSetupEDPInfrastructure",parent:"otc-edpFoundry",level:1,children:["otc-edpFoundry.workflowSetupEDPInfrastructure.forgejoRunner","otc-edpFoundry.workflowSetupEDPInfrastructure.forgejoRunnerWorker","otc-edpFoundry.workflowSetupEDPInfrastructure.edpworkflow"],inEdges:["84397w"],outEdges:[],deploymentRef:"otc-edpFoundry.workflowSetupEDPInfrastructure",title:"EDP infrastructure Workflow",kind:"computeressource",color:"amber",shape:"rectangle",description:{txt:"EDP infrastructure Workflow"},tags:[],style:{opacity:15,size:"md"},depth:1,x:2902,y:150,width:442,height:1010,labelBBox:{x:6,y:0,width:201,height:15}},{id:"otc-edpFoundry.workflowSetupArgoCDInfrastructure",parent:"otc-edpFoundry",level:1,children:["otc-edpFoundry.workflowSetupArgoCDInfrastructure.forgejoRunner","otc-edpFoundry.workflowSetupArgoCDInfrastructure.forgejoRunnerWorker","otc-edpFoundry.workflowSetupArgoCDInfrastructure.edpworkflow"],inEdges:["1oz2va9"],outEdges:[],deploymentRef:"otc-edpFoundry.workflowSetupArgoCDInfrastructure",title:"EDP ArgoCD Workflow",kind:"computeressource",color:"amber",shape:"rectangle",description:{txt:"EDP Setup ArgoCD Workflow"},tags:[],style:{opacity:15,size:"md"},depth:1,x:3394,y:150,width:442,height:1010,labelBBox:{x:6,y:0,width:149,height:15}},{id:"otc-edpFoundry.workflowSetupEDPInfrastructure.forgejoRunner",parent:"otc-edpFoundry.workflowSetupEDPInfrastructure",level:2,children:[],inEdges:["84397w"],outEdges:["1hnil62"],kind:"instance",title:"Forgejo Runner",description:{txt:"A runner is a service that runs jobs triggered by Forgejo. A runner can have different technical implementations like a container or a VM."},tags:[],color:"primary",shape:"rectangle",style:{opacity:15,size:"md"},deploymentRef:"otc-edpFoundry.workflowSetupEDPInfrastructure.forgejoRunner",modelRef:"forgejoRunner",x:2961,y:222,width:320,height:180,labelBBox:{x:23,y:36,width:274,height:101}},{id:"otc-edpFoundry.workflowSetupArgoCDInfrastructure.forgejoRunner",parent:"otc-edpFoundry.workflowSetupArgoCDInfrastructure",level:2,children:[],inEdges:["1oz2va9"],outEdges:["1gtxobu"],kind:"instance",title:"Forgejo Runner",description:{txt:"A runner is a service that runs jobs triggered by Forgejo. A runner can have different technical implementations like a container or a VM."},tags:[],color:"primary",shape:"rectangle",style:{opacity:15,size:"md"},deploymentRef:"otc-edpFoundry.workflowSetupArgoCDInfrastructure.forgejoRunner",modelRef:"forgejoRunner",x:3466,y:222,width:320,height:180,labelBBox:{x:23,y:36,width:274,height:101}},{id:"otc-edpFoundry.workflowSetupEDPInfrastructure.forgejoRunnerWorker",parent:"otc-edpFoundry.workflowSetupEDPInfrastructure",level:2,children:[],inEdges:["1hnil62"],outEdges:["ekzztw"],kind:"instance",title:"Forgejo Runner Worker",description:{txt:"A worker is a service that runs a job invoked by a runner. A worker typically is a container."},tags:[],color:"primary",shape:"rectangle",style:{opacity:15,size:"md"},deploymentRef:"otc-edpFoundry.workflowSetupEDPInfrastructure.forgejoRunnerWorker",modelRef:"forgejoRunnerWorker",x:2954,y:554,width:333,height:180,labelBBox:{x:18,y:45,width:297,height:84}},{id:"otc-edpFoundry.workflowSetupArgoCDInfrastructure.forgejoRunnerWorker",parent:"otc-edpFoundry.workflowSetupArgoCDInfrastructure",level:2,children:[],inEdges:["1gtxobu"],outEdges:["b9ntr8"],kind:"instance",title:"Forgejo Runner Worker",description:{txt:"A worker is a service that runs a job invoked by a runner. A worker typically is a container."},tags:[],color:"primary",shape:"rectangle",style:{opacity:15,size:"md"},deploymentRef:"otc-edpFoundry.workflowSetupArgoCDInfrastructure.forgejoRunnerWorker",modelRef:"forgejoRunnerWorker",x:3452,y:554,width:333,height:180,labelBBox:{x:18,y:45,width:297,height:84}},{id:"otc-edpFoundry.workflowSetupEDPInfrastructure.edpworkflow",parent:"otc-edpFoundry.workflowSetupEDPInfrastructure",level:2,children:[],inEdges:["ekzztw"],outEdges:[],kind:"instance",title:"EDP Infrastructure Setup Workflow",tags:[],color:"primary",shape:"rectangle",style:{opacity:15,size:"md"},deploymentRef:"otc-edpFoundry.workflowSetupEDPInfrastructure.edpworkflow",modelRef:"edpworkflow",x:2952,y:930,width:342,height:180,labelBBox:{x:14,y:74,width:314,height:24}},{id:"otc-edpFoundry.workflowSetupArgoCDInfrastructure.edpworkflow",parent:"otc-edpFoundry.workflowSetupArgoCDInfrastructure",level:2,children:[],inEdges:["b9ntr8"],outEdges:[],kind:"instance",title:"EDP Infrastructure Setup Workflow",tags:[],color:"primary",shape:"rectangle",style:{opacity:15,size:"md"},deploymentRef:"otc-edpFoundry.workflowSetupArgoCDInfrastructure.edpworkflow",modelRef:"edpworkflow",x:3444,y:930,width:342,height:180,labelBBox:{x:14,y:74,width:314,height:24}}],edges:[{id:"17kru01",source:"otc-edpFoundry.cce.internalServices.ingressNginx",target:"otc-edpFoundry.cce.internalServices.argoCD",label:"https",points:[[1988,367],[1849,415],[1642,487],[1463,554],[1445,561],[1426,568],[1408,576]],labelBBox:{x:1689,y:466,width:34,height:18},parent:"otc-edpFoundry.cce.internalServices",relations:["1yssos5"],color:"gray",line:"dashed",head:"normal"},{id:"170pc3l",source:"otc-edpFoundry.cce.internalServices.ingressNginx",target:"otc-edpFoundry.cce.internalServices.forgejo",label:"https",points:[[2148,401],[2148,445],[2148,499],[2148,544]],labelBBox:{x:2149,y:466,width:34,height:18},parent:"otc-edpFoundry.cce.internalServices",relations:["123efwn"],color:"gray",line:"dashed",head:"normal"},{id:"u5oqat",source:"otc-edpFoundry.cce.internalServices.ingressNginx",target:"otc-edpFoundry.cce.internalServices.openbao",label:"https",points:[[2024,401],[1961,447],[1884,502],[1820,549]],labelBBox:{x:1933,y:466,width:34,height:18},parent:"otc-edpFoundry.cce.internalServices",relations:["1p30hav"],color:"gray",line:"dashed",head:"normal"},{id:"qykxlm",source:"otc-edpFoundry.cce.centralObservability.grafana",target:"otc-edpFoundry.cce.centralObservability.prometheus",label:"get metrics and alerts",points:[[423,401],[404,446],[381,499],[361,545]],labelBBox:{x:395,y:466,width:138,height:18},parent:"otc-edpFoundry.cce.centralObservability",relations:["13uvtiq"],color:"gray",line:"dashed",head:"normal"},{id:"yv49z5",source:"otc-edpFoundry.cce.centralObservability.grafana",target:"otc-edpFoundry.cce.centralObservability.loki",label:"get logs",points:[[544,401],[586,446],[636,501],[679,547]],labelBBox:{x:625,y:466,width:53,height:18},parent:"otc-edpFoundry.cce.centralObservability",relations:["1n1utzc"],color:"gray",line:"dashed",head:"normal"},{id:"84397w",source:"otc-edpFoundry.cce.internalServices.forgejo",target:"otc-edpFoundry.workflowSetupEDPInfrastructure.forgejoRunner",label:"invokes",points:[[2318,605],[2470,568],[2695,508],[2884,434],[2906,425],[2929,415],[2952,404]],labelBBox:{x:2787,y:466,width:51,height:18},parent:"otc-edpFoundry",relations:["dola40"],color:"gray",line:"dashed",head:"normal"},{id:"1hnil62",source:"otc-edpFoundry.workflowSetupEDPInfrastructure.forgejoRunner",target:"otc-edpFoundry.workflowSetupEDPInfrastructure.forgejoRunnerWorker",label:"runs",points:[[3121,401],[3121,445],[3121,499],[3121,544]],labelBBox:{x:3122,y:466,width:31,height:18},parent:"otc-edpFoundry.workflowSetupEDPInfrastructure",relations:["7kqly3"],color:"gray",line:"dashed",head:"normal"},{id:"ekzztw",source:"otc-edpFoundry.workflowSetupEDPInfrastructure.forgejoRunnerWorker",target:"otc-edpFoundry.workflowSetupEDPInfrastructure.edpworkflow",label:"executes",points:[[3121,734],[3122,790],[3122,862],[3122,920]],labelBBox:{x:3123,y:842,width:60,height:18},parent:"otc-edpFoundry.workflowSetupEDPInfrastructure",relations:["12hf1w4"],color:"gray",line:"dashed",head:"normal"},{id:"1oz2va9",source:"otc-edpFoundry.cce.internalServices.forgejo",target:"otc-edpFoundry.workflowSetupArgoCDInfrastructure.forgejoRunner",label:"invokes",points:[[2318,622],[2654,581],[3370,492],[3376,489],[3426,470],[3475,439],[3517,408]],labelBBox:{x:3422,y:466,width:51,height:18},parent:"otc-edpFoundry",relations:["1f5y9gc"],color:"gray",line:"dashed",head:"normal"},{id:"1gtxobu",source:"otc-edpFoundry.workflowSetupArgoCDInfrastructure.forgejoRunner",target:"otc-edpFoundry.workflowSetupArgoCDInfrastructure.forgejoRunnerWorker",label:"runs",points:[[3624,401],[3623,445],[3622,499],[3621,544]],labelBBox:{x:3624,y:466,width:31,height:18},parent:"otc-edpFoundry.workflowSetupArgoCDInfrastructure",relations:["hqie0"],color:"gray",line:"dashed",head:"normal"},{id:"b9ntr8",source:"otc-edpFoundry.workflowSetupArgoCDInfrastructure.forgejoRunnerWorker",target:"otc-edpFoundry.workflowSetupArgoCDInfrastructure.edpworkflow",label:"executes",points:[[3618,734],[3617,790],[3617,862],[3616,920]],labelBBox:{x:3618,y:842,width:60,height:18},parent:"otc-edpFoundry.workflowSetupArgoCDInfrastructure",relations:["1j16hqv"],color:"gray",line:"dashed",head:"normal"},{id:"628xl1",source:"otc-edpFoundry.forgejoRunnerInfrastructure.forgejoRunner",target:"otc-edpFoundry.cce.internalServices.forgejo",label:"registers",points:[[2522,401],[2452,447],[2366,503],[2294,549]],labelBBox:{x:2420,y:466,width:58,height:18},parent:"otc-edpFoundry",relations:["1umzqdy"],color:"gray",line:"dashed",head:"normal"}]},"forgejo-as-a-service":{_type:"deployment",tags:null,links:null,_stage:"layouted",sourcePath:"views/deployment/otc/foundry-and-edp.c4",description:null,title:"Forgejo as a Service",id:"forgejo-as-a-service",autoLayout:{direction:"TB"},hash:"7a905e08830b8bdb7ac1b61e8977611bb4f29345",bounds:{x:0,y:0,width:5468,height:1994},nodes:[{id:"otc-edpFoundry",parent:null,level:0,children:["otc-edpFoundry.cce","otc-edpFoundry.forgejoRunnerInfrastructure","otc-edpFoundry.workflowSetupEDPInfrastructure","otc-edpFoundry.workflowSetupArgoCDInfrastructure"],inEdges:[],outEdges:["1asm38z","1or831y","ejqwjt"],deploymentRef:"otc-edpFoundry",title:"OTC EDP Foundry Central Service clusters",kind:"cloud",technology:"OTC",color:"slate",shape:"rectangle",description:{txt:`OTC environments for the central EDP Foundry services. This is kubernetes clusters and other infrastructure like nodes and vms, and optionally platform services. All is set up by IaC terraform and edpbuilder. A tenant is a folder in Foundry-Config-Forgejo. On merge triggers reconciliation to EDP. -Optionally we will have a WebUI/API/CLI`},tags:[],style:{opacity:15,size:"md"},depth:3,x:2052,y:8,width:3408,height:1609,labelBBox:{x:6,y:0,width:280,height:15}},{id:"otc-edpFoundry.cce",parent:"otc-edpFoundry",level:1,children:["otc-edpFoundry.cce.internalServices","otc-edpFoundry.cce.centralObservability"],inEdges:["628xl1"],outEdges:["84397w","1oz2va9"],deploymentRef:"otc-edpFoundry.cce",title:"OTC CCE",kind:"kubernetes",technology:"Kubernetes",color:"red",shape:"rectangle",icon:"tech:kubernetes",description:{txt:"OTC Container Cluster Engine"},tags:[],style:{opacity:15,size:"md"},depth:2,x:2594,y:79,width:1890,height:1488,labelBBox:{x:6,y:0,width:54,height:15}},{id:"otc-edpFoundry.cce.internalServices",parent:"otc-edpFoundry.cce",level:2,children:["otc-edpFoundry.cce.internalServices.externalSecrets","otc-edpFoundry.cce.internalServices.ingressNginx","otc-edpFoundry.cce.internalServices.argoCD","otc-edpFoundry.cce.internalServices.forgejo","otc-edpFoundry.cce.internalServices.openbao"],inEdges:["628xl1"],outEdges:["84397w","1oz2va9"],deploymentRef:"otc-edpFoundry.cce.internalServices",title:"EDP Foundry Internal Services",kind:"cluster",color:"primary",shape:"rectangle",tags:[],style:{opacity:15,size:"md"},depth:1,x:2644,y:883,width:1790,height:634,labelBBox:{x:6,y:0,width:201,height:15}},{id:"otc-edpFoundry.cce.internalServices.externalSecrets",parent:"otc-edpFoundry.cce.internalServices",level:3,children:[],inEdges:[],outEdges:[],kind:"instance",title:"external-secrets",description:{txt:"Provider to access externally stored Kubernetes secrets"},tags:["internal"],color:"primary",shape:"rectangle",style:{opacity:20,size:"md"},deploymentRef:"otc-edpFoundry.cce.internalServices.externalSecrets",modelRef:"edp.externalSecrets",navigateTo:"externalSecrets",x:2694,y:1287,width:320,height:180,labelBBox:{x:39,y:54,width:242,height:66}},{id:"otc-edpFoundry.cce.centralObservability",parent:"otc-edpFoundry.cce",level:2,children:["otc-edpFoundry.cce.centralObservability.grafana","otc-edpFoundry.cce.centralObservability.prometheus","otc-edpFoundry.cce.centralObservability.loki"],inEdges:[],outEdges:[],deploymentRef:"otc-edpFoundry.cce.centralObservability",title:"EDP Foundry Central Observability",kind:"cluster",color:"primary",shape:"rectangle",tags:[],style:{opacity:15,size:"md"},depth:1,x:3349,y:150,width:870,height:634,labelBBox:{x:6,y:0,width:232,height:15}},{id:"otc-edpFoundry.forgejoRunnerInfrastructure",parent:"otc-edpFoundry",level:1,children:["otc-edpFoundry.forgejoRunnerInfrastructure.forgejoRunner"],inEdges:[],outEdges:["628xl1"],deploymentRef:"otc-edpFoundry.forgejoRunnerInfrastructure",title:"EDP ForgejoRunner infrastructure",kind:"computeressource",color:"green",shape:"rectangle",modelRef:"forgejoRunner",description:{txt:"Infrastructure for Forgejo runners like pods, vms, lxds, etc"},tags:[],style:{opacity:15,size:"md"},depth:1,x:5026,y:168,width:384,height:266,labelBBox:{x:6,y:0,width:235,height:15}},{id:"otc-edp-per-tenant",parent:null,level:0,children:["otc-edp-per-tenant.forgejoRunnerInfrastructure","otc-edp-per-tenant.cce","otc-edp-per-tenant.cloudServices"],inEdges:["1asm38z","1or831y","ejqwjt"],outEdges:[],deploymentRef:"otc-edp-per-tenant",title:"OTC EDP per tenant cluster",kind:"cloud",technology:"OTC",color:"slate",shape:"rectangle",description:{txt:`OTC environment for EDP. EDP is the environment a customer gets from us. - +Optionally we will have a WebUI/API/CLI`},tags:[],style:{opacity:15,size:"md"},depth:3,x:2052,y:8,width:3408,height:1609,labelBBox:{x:6,y:0,width:280,height:15}},{id:"otc-edpFoundry.cce",parent:"otc-edpFoundry",level:1,children:["otc-edpFoundry.cce.internalServices","otc-edpFoundry.cce.centralObservability"],inEdges:["628xl1"],outEdges:["84397w","1oz2va9"],deploymentRef:"otc-edpFoundry.cce",title:"OTC CCE",kind:"kubernetes",technology:"Kubernetes",color:"red",shape:"rectangle",icon:"tech:kubernetes",description:{txt:"OTC Container Cluster Engine"},tags:[],style:{opacity:15,size:"md"},depth:2,x:2594,y:79,width:1890,height:1488,labelBBox:{x:6,y:0,width:54,height:15}},{id:"otc-edpFoundry.cce.internalServices",parent:"otc-edpFoundry.cce",level:2,children:["otc-edpFoundry.cce.internalServices.externalSecrets","otc-edpFoundry.cce.internalServices.ingressNginx","otc-edpFoundry.cce.internalServices.argoCD","otc-edpFoundry.cce.internalServices.forgejo","otc-edpFoundry.cce.internalServices.openbao"],inEdges:["628xl1"],outEdges:["84397w","1oz2va9"],deploymentRef:"otc-edpFoundry.cce.internalServices",title:"EDP Foundry Internal Services",kind:"cluster",color:"primary",shape:"rectangle",tags:[],style:{opacity:15,size:"md"},depth:1,x:2644,y:883,width:1790,height:634,labelBBox:{x:6,y:0,width:201,height:15}},{id:"otc-edpFoundry.cce.internalServices.externalSecrets",parent:"otc-edpFoundry.cce.internalServices",level:3,children:[],inEdges:[],outEdges:[],kind:"instance",title:"external-secrets",description:{txt:"Provider to access externally stored Kubernetes secrets"},tags:["internal"],color:"primary",shape:"rectangle",style:{opacity:20,size:"md"},deploymentRef:"otc-edpFoundry.cce.internalServices.externalSecrets",modelRef:"edp.externalSecrets",navigateTo:"externalSecrets",x:2694,y:1287,width:320,height:180,labelBBox:{x:39,y:54,width:242,height:66}},{id:"otc-edpFoundry.cce.centralObservability",parent:"otc-edpFoundry.cce",level:2,children:["otc-edpFoundry.cce.centralObservability.grafana","otc-edpFoundry.cce.centralObservability.prometheus","otc-edpFoundry.cce.centralObservability.loki"],inEdges:[],outEdges:[],deploymentRef:"otc-edpFoundry.cce.centralObservability",title:"EDP Foundry Central Observability",kind:"cluster",color:"primary",shape:"rectangle",tags:[],style:{opacity:15,size:"md"},depth:1,x:3349,y:150,width:870,height:634,labelBBox:{x:6,y:0,width:232,height:15}},{id:"otc-edpFoundry.forgejoRunnerInfrastructure",parent:"otc-edpFoundry",level:1,children:["otc-edpFoundry.forgejoRunnerInfrastructure.forgejoRunner"],inEdges:[],outEdges:["628xl1"],deploymentRef:"otc-edpFoundry.forgejoRunnerInfrastructure",title:"EDP ForgejoRunner infrastructure",kind:"computeressource",color:"green",shape:"rectangle",modelRef:"forgejoRunner",description:{txt:"Infrastructure for Forgejo runners like pods, vms, lxds, etc"},tags:[],style:{opacity:15,size:"md"},depth:1,x:5026,y:168,width:384,height:266,labelBBox:{x:6,y:0,width:235,height:15}},{id:"otc-edp-per-tenant",parent:null,level:0,children:["otc-edp-per-tenant.forgejoRunnerInfrastructure","otc-edp-per-tenant.cce","otc-edp-per-tenant.cloudServices"],inEdges:["1asm38z","1or831y","ejqwjt"],outEdges:[],deploymentRef:"otc-edp-per-tenant",title:"OTC EDP per tenant cluster",kind:"cloud",technology:"OTC",color:"slate",shape:"rectangle",description:{txt:`OTC environment for EDP. EDP is the environment a customer gets from us. + This is kubernetes clusters and other infrastructure like nodes and vms, and platform services. All is set up by IaC-pipelines in the Foundry.`},tags:[],style:{opacity:15,size:"md"},depth:3,x:8,y:97,width:1994,height:1889,labelBBox:{x:6,y:0,width:181,height:15}},{id:"otc-edp-per-tenant.forgejoRunnerInfrastructure",parent:"otc-edp-per-tenant",level:1,children:["otc-edp-per-tenant.forgejoRunnerInfrastructure.forgejoRunner"],inEdges:[],outEdges:["1dcszi5"],deploymentRef:"otc-edp-per-tenant.forgejoRunnerInfrastructure",title:"EDP ForgejoRunner infrastructure",kind:"computeressource",color:"primary",shape:"rectangle",modelRef:"forgejoRunner",description:{txt:"Infrastructure for Forgejo runners like pods, vms, lxds, etc"},tags:[],style:{opacity:15,size:"md"},depth:1,x:608,y:168,width:384,height:266,labelBBox:{x:6,y:0,width:235,height:15}},{id:"otc-edpFoundry.cce.centralObservability.grafana",parent:"otc-edpFoundry.cce.centralObservability",level:3,children:[],inEdges:[],outEdges:["qykxlm","yv49z5"],kind:"instance",title:"Grafana",description:{txt:"Data visualization and monitoring"},tags:[],icon:"tech:grafana",color:"primary",shape:"rectangle",style:{opacity:20,size:"md"},deploymentRef:"otc-edpFoundry.cce.centralObservability.grafana",modelRef:"edp.grafana",x:3530,y:222,width:345,height:180,labelBBox:{x:47,y:63,width:283,height:47}},{id:"otc-edpFoundry.forgejoRunnerInfrastructure.forgejoRunner",parent:"otc-edpFoundry.forgejoRunnerInfrastructure",level:2,children:[],inEdges:[],outEdges:["628xl1"],kind:"instance",title:"Forgejo Runner",description:{txt:"A runner is a service that runs jobs triggered by Forgejo. A runner can have different technical implementations like a container or a VM."},tags:[],color:"primary",shape:"rectangle",style:{opacity:15,size:"md"},deploymentRef:"otc-edpFoundry.forgejoRunnerInfrastructure.forgejoRunner",modelRef:"forgejoRunner",x:5058,y:222,width:320,height:180,labelBBox:{x:23,y:36,width:274,height:101}},{id:"otc-edp-per-tenant.cce",parent:"otc-edp-per-tenant",level:1,children:["otc-edp-per-tenant.cce.edp"],inEdges:["1or831y","ejqwjt","1dcszi5"],outEdges:["8msu1q","120qe5o","ealiax","1trj5u6"],deploymentRef:"otc-edp-per-tenant.cce",title:"OTC CCE",kind:"kubernetes",technology:"Kubernetes",color:"red",shape:"rectangle",icon:"tech:kubernetes",description:{txt:"OTC Container Cluster Engine"},tags:[],style:{opacity:15,size:"md"},depth:2,x:548,y:830,width:1404,height:719,labelBBox:{x:6,y:0,width:54,height:15}},{id:"otc-edp-per-tenant.cce.edp",parent:"otc-edp-per-tenant.cce",level:2,children:["otc-edp-per-tenant.cce.edp.externalSecrets","otc-edp-per-tenant.cce.edp.ingressNginx","otc-edp-per-tenant.cce.edp.argoCD","otc-edp-per-tenant.cce.edp.forgejo"],inEdges:["1or831y","ejqwjt","1dcszi5"],outEdges:["8msu1q","120qe5o","ealiax","1trj5u6"],deploymentRef:"otc-edp-per-tenant.cce.edp",title:"EDP",kind:"cluster",color:"primary",shape:"rectangle",tags:[],style:{opacity:15,size:"md"},depth:1,x:580,y:883,width:1340,height:634,labelBBox:{x:6,y:0,width:27,height:15}},{id:"otc-edp-per-tenant.cce.edp.externalSecrets",parent:"otc-edp-per-tenant.cce.edp",level:3,children:[],inEdges:[],outEdges:[],kind:"instance",title:"external-secrets",description:{txt:"Provider to access externally stored Kubernetes secrets"},tags:["internal"],color:"primary",shape:"rectangle",style:{opacity:20,size:"md"},deploymentRef:"otc-edp-per-tenant.cce.edp.externalSecrets",modelRef:"edp.externalSecrets",navigateTo:"externalSecrets",x:1550,y:1287,width:320,height:180,labelBBox:{x:39,y:54,width:242,height:66}},{id:"otc-edp-per-tenant.forgejoRunnerInfrastructure.forgejoRunner",parent:"otc-edp-per-tenant.forgejoRunnerInfrastructure",level:2,children:[],inEdges:[],outEdges:["1dcszi5"],kind:"instance",title:"Forgejo Runner",description:{txt:"A runner is a service that runs jobs triggered by Forgejo. A runner can have different technical implementations like a container or a VM."},tags:[],color:"primary",shape:"rectangle",style:{opacity:15,size:"md"},deploymentRef:"otc-edp-per-tenant.forgejoRunnerInfrastructure.forgejoRunner",modelRef:"forgejoRunner",x:640,y:222,width:320,height:180,labelBBox:{x:23,y:36,width:274,height:101}},{id:"otc-edpFoundry.cce.centralObservability.prometheus",parent:"otc-edpFoundry.cce.centralObservability",level:3,children:[],inEdges:["qykxlm"],outEdges:[],kind:"instance",title:"Prometheus",description:{txt:"Monitoring and alerting toolkit"},tags:[],icon:"tech:prometheus",color:"primary",shape:"rectangle",style:{opacity:20,size:"md"},deploymentRef:"otc-edpFoundry.cce.centralObservability.prometheus",modelRef:"edp.prometheus",x:3399,y:554,width:320,height:180,labelBBox:{x:46,y:63,width:258,height:48}},{id:"otc-edpFoundry.cce.centralObservability.loki",parent:"otc-edpFoundry.cce.centralObservability",level:3,children:[],inEdges:["yv49z5"],outEdges:[],kind:"instance",title:"Loki",description:{txt:"Log aggregation system"},tags:[],color:"primary",shape:"rectangle",style:{opacity:20,size:"md"},deploymentRef:"otc-edpFoundry.cce.centralObservability.loki",modelRef:"edp.loki",x:3849,y:554,width:320,height:180,labelBBox:{x:78,y:63,width:164,height:48}},{id:"otc-edpFoundry.cce.internalServices.ingressNginx",parent:"otc-edpFoundry.cce.internalServices",level:3,children:[],inEdges:[],outEdges:["17kru01","170pc3l","u5oqat"],kind:"instance",title:"Ingress",description:{txt:"Ingress Controller for incoming http(s) traffic"},tags:["internal"],color:"primary",shape:"rectangle",style:{opacity:20,size:"md"},deploymentRef:"otc-edpFoundry.cce.internalServices.ingressNginx",modelRef:"edp.ingressNginx",navigateTo:"ingressNginx",x:4054,y:955,width:320,height:180,labelBBox:{x:33,y:54,width:255,height:65}},{id:"otc-edpFoundry.cce.internalServices.argoCD",parent:"otc-edpFoundry.cce.internalServices",level:3,children:[],inEdges:["17kru01"],outEdges:[],kind:"instance",title:"ArgoCD",description:{txt:"GitOps Service"},tags:[],color:"primary",shape:"rectangle",style:{opacity:20,size:"md"},deploymentRef:"otc-edpFoundry.cce.internalServices.argoCD",modelRef:"edp.argoCD",navigateTo:"argoCD",x:3144,y:1287,width:320,height:180,labelBBox:{x:108,y:63,width:105,height:48}},{id:"otc-edpFoundry.cce.internalServices.forgejo",parent:"otc-edpFoundry.cce.internalServices",level:3,children:[],inEdges:["170pc3l","628xl1"],outEdges:["84397w","1oz2va9"],kind:"instance",title:"Forgejo",description:{txt:`Fully managed DevOps Platform offering capabilities like code version controling @@ -262,96 +261,100 @@ It has more than 15 years of active development and a proven architecture that has earned it a strong reputation for reliability, data integrity, and correctness.`},technology:"PostgreSQL",tags:[],icon:"tech:postgresql",color:"primary",shape:"rectangle",style:{opacity:20,size:"md"},deploymentRef:"otc-edp-per-tenant.cloudServices.postgres",modelRef:"postgres",x:1548,y:1706,width:354,height:180,labelBBox:{x:46,y:17,width:292,height:139}},{id:"otc-edp-per-tenant.cloudServices.redis",parent:"otc-edp-per-tenant.cloudServices",level:2,children:[],inEdges:["120qe5o"],outEdges:[],kind:"instance",title:"Redis",description:{txt:"Redis is an open source (BSD licensed), in-memory data structure store, used as a database, cache and message broker."},technology:"Redis",tags:[],icon:"tech:redis",color:"primary",shape:"rectangle",style:{opacity:20,size:"md"},deploymentRef:"otc-edp-per-tenant.cloudServices.redis",modelRef:"redis",x:608,y:1706,width:359,height:180,labelBBox:{x:47,y:26,width:297,height:121}},{id:"otc-edp-per-tenant.cloudServices.objectstorage",parent:"otc-edp-per-tenant.cloudServices",level:2,children:[],inEdges:["ealiax"],outEdges:[],kind:"instance",title:"s3 Object Storage",description:{txt:"s3 Object Storage"},technology:"S3 Object Storage",tags:[],color:"primary",shape:"rectangle",style:{opacity:20,size:"md"},deploymentRef:"otc-edp-per-tenant.cloudServices.objectstorage",modelRef:"objectstorage",x:1098,y:1706,width:320,height:180,labelBBox:{x:78,y:53,width:164,height:67}},{id:"otc-edp-per-tenant.cloudServices.elasticsearch",parent:"otc-edp-per-tenant.cloudServices",level:2,children:[],inEdges:["1trj5u6"],outEdges:[],kind:"instance",title:"Elasticsearch",description:{txt:`Elasticsearch is a distributed, RESTful search and analytics engine capable of addressing a growing number of use cases. It centrally stores your data so you can -discover the expected and uncover the unexpected.`},technology:"Elasticsearch",tags:[],icon:"tech:elasticsearch",color:"primary",shape:"rectangle",style:{opacity:20,size:"md"},deploymentRef:"otc-edp-per-tenant.cloudServices.elasticsearch",modelRef:"elasticsearch",x:108,y:1706,width:370,height:180,labelBBox:{x:46,y:17,width:308,height:139}}],edges:[{id:"17kru01",source:"otc-edpFoundry.cce.internalServices.ingressNginx",target:"otc-edpFoundry.cce.internalServices.argoCD",label:"https",dotpos:"e,3463.8,1312.3 4054.2,1100.1 3915,1148.1 3708,1220.4 3529,1287.4 3511,1294.1 3492.2,1301.3 3473.6,1308.5",points:[[4054,1100],[3915,1148],[3708,1220],[3529,1287],[3511,1294],[3492,1301],[3474,1309]],labelBBox:{x:3755,y:1199,width:34,height:18},parent:"otc-edpFoundry.cce.internalServices",relations:["1yssos5"],color:"gray",line:"dashed",head:"normal"},{id:"170pc3l",source:"otc-edpFoundry.cce.internalServices.ingressNginx",target:"otc-edpFoundry.cce.internalServices.forgejo",label:"https",dotpos:"e,4214,1287.5 4214,1134.2 4214,1178.3 4214,1231.6 4214,1277",points:[[4214,1134],[4214,1178],[4214,1232],[4214,1277]],labelBBox:{x:4215,y:1199,width:34,height:18},parent:"otc-edpFoundry.cce.internalServices",relations:["123efwn"],color:"gray",line:"dashed",head:"normal"},{id:"u5oqat",source:"otc-edpFoundry.cce.internalServices.ingressNginx",target:"otc-edpFoundry.cce.internalServices.openbao",label:"https",dotpos:"e,3877.5,1287.6 4090.4,1134.5 4027.1,1180 3950.1,1235.4 3885.6,1281.7",points:[[4090,1134],[4027,1180],[3950,1235],[3886,1282]],labelBBox:{x:3999,y:1199,width:34,height:18},parent:"otc-edpFoundry.cce.internalServices",relations:["1p30hav"],color:"gray",line:"dashed",head:"normal"},{id:"qykxlm",source:"otc-edpFoundry.cce.centralObservability.grafana",target:"otc-edpFoundry.cce.centralObservability.prometheus",label:"get metrics and alerts",dotpos:"e,3597.7,554.51 3664.4,401.25 3645.1,445.56 3621.7,499.31 3601.9,544.91",points:[[3664,401],[3645,446],[3622,499],[3602,545]],labelBBox:{x:3636,y:466,width:138,height:18},parent:"otc-edpFoundry.cce.centralObservability",relations:["13uvtiq"],color:"gray",line:"dashed",head:"normal"},{id:"yv49z5",source:"otc-edpFoundry.cce.centralObservability.grafana",target:"otc-edpFoundry.cce.centralObservability.loki",label:"get logs",dotpos:"e,3926.8,554.51 3785,401.25 3826.6,446.21 3877.2,500.89 3919.7,546.91",points:[[3785,401],[3827,446],[3877,501],[3920,547]],labelBBox:{x:3866,y:466,width:53,height:18},parent:"otc-edpFoundry.cce.centralObservability",relations:["1n1utzc"],color:"gray",line:"dashed",head:"normal"},{id:"84397w",source:"otc-edpFoundry.cce.internalServices.forgejo",target:"otc-edpFoundry.workflowSetupEDPInfrastructure.forgejoRunner",label:"invokes",dotpos:"e,4871.9,401.35 4384,1358.7 4589.5,1333.3 4917.1,1279 4991,1184.6 5006.1,1165.4 5006.3,601.48 4987,554.4 4964.1,498.68 4921.8,448.48 4879.5,408.45",points:[[4384,1359],[4590,1333],[4917,1279],[4991,1185],[5006,1165],[5006,601],[4987,554],[4964,499],[4922,448],[4880,408]],labelBBox:{x:5002,y:799,width:51,height:18},parent:"otc-edpFoundry",relations:["dola40"],color:"gray",line:"dashed",head:"normal"},{id:"1hnil62",source:"otc-edpFoundry.workflowSetupEDPInfrastructure.forgejoRunner",target:"otc-edpFoundry.workflowSetupEDPInfrastructure.forgejoRunnerWorker",label:"runs",dotpos:"e,4755,554.51 4755,401.25 4755,445.28 4755,498.64 4755,544.05",points:[[4755,401],[4755,445],[4755,499],[4755,544]],labelBBox:{x:4756,y:466,width:31,height:18},parent:"otc-edpFoundry.workflowSetupEDPInfrastructure",relations:["7kqly3"],color:"gray",line:"dashed",head:"normal"},{id:"ekzztw",source:"otc-edpFoundry.workflowSetupEDPInfrastructure.forgejoRunnerWorker",target:"otc-edpFoundry.workflowSetupEDPInfrastructure.edpworkflow",label:"executes",dotpos:"e,4755,954.66 4755,734.27 4755,796.6 4755,879.99 4755,944.48",points:[[4755,734],[4755,797],[4755,880],[4755,944]],labelBBox:{x:4756,y:799,width:60,height:18},parent:"otc-edpFoundry.workflowSetupEDPInfrastructure",relations:["12hf1w4"],color:"gray",line:"dashed",head:"normal"},{id:"1oz2va9",source:"otc-edpFoundry.cce.internalServices.forgejo",target:"otc-edpFoundry.workflowSetupArgoCDInfrastructure.forgejoRunner",label:"invokes",dotpos:"e,2425.7,401.35 4043.6,1308.6 4022,1301 4000.1,1293.7 3979,1287.4 3850.3,1249.1 3807.5,1275.1 3684,1222.4 3176,1005.8 2655,593.8 2433.5,407.87",points:[[4044,1309],[4022,1301],[4e3,1294],[3979,1287],[3850,1249],[3808,1275],[3684,1222],[3176,1006],[2655,594],[2433,408]],labelBBox:{x:2970,y:799,width:51,height:18},parent:"otc-edpFoundry",relations:["1f5y9gc"],color:"gray",line:"dashed",head:"normal"},{id:"1gtxobu",source:"otc-edpFoundry.workflowSetupArgoCDInfrastructure.forgejoRunner",target:"otc-edpFoundry.workflowSetupArgoCDInfrastructure.forgejoRunnerWorker",label:"runs",dotpos:"e,2323,554.51 2323,401.25 2323,445.28 2323,498.64 2323,544.05",points:[[2323,401],[2323,445],[2323,499],[2323,544]],labelBBox:{x:2324,y:466,width:31,height:18},parent:"otc-edpFoundry.workflowSetupArgoCDInfrastructure",relations:["hqie0"],color:"gray",line:"dashed",head:"normal"},{id:"b9ntr8",source:"otc-edpFoundry.workflowSetupArgoCDInfrastructure.forgejoRunnerWorker",target:"otc-edpFoundry.workflowSetupArgoCDInfrastructure.edpworkflow",label:"executes",dotpos:"e,2323,954.66 2323,734.27 2323,796.6 2323,879.99 2323,944.48",points:[[2323,734],[2323,797],[2323,880],[2323,944]],labelBBox:{x:2324,y:799,width:60,height:18},parent:"otc-edpFoundry.workflowSetupArgoCDInfrastructure",relations:["1j16hqv"],color:"gray",line:"dashed",head:"normal"},{id:"628xl1",source:"otc-edpFoundry.forgejoRunnerInfrastructure.forgejoRunner",target:"otc-edpFoundry.cce.internalServices.forgejo",label:"registers",dotpos:"e,4384.3,1373.5 5231.3,401.47 5254.9,597.41 5277.7,1061.9 4995,1222.4 4808.3,1328.4 4560.5,1362.5 4394.6,1372.9",points:[[5231,401],[5255,597],[5278,1062],[4995,1222],[4808,1328],[4561,1362],[4395,1373]],labelBBox:{x:5232,y:799,width:58,height:18},parent:"otc-edpFoundry",relations:["1umzqdy"],color:"gray",line:"dashed",head:"normal"},{id:"ejqwjt",source:"otc-edpFoundry.workflowSetupArgoCDInfrastructure.edpworkflow",target:"otc-edp-per-tenant.cce.edp.argoCD",label:null,dotpos:"e,1419.9,1309.5 2152,1115.5 2089.7,1139.4 2018.3,1165 1952,1184.6 1748.2,1244.9 1688.2,1225.3 1485,1287.4 1466.9,1292.9 1448.1,1299.3 1429.6,1306",points:[[2152,1115],[2090,1139],[2018,1165],[1952,1185],[1748,1245],[1688,1225],[1485,1287],[1467,1293],[1448,1299],[1430,1306]],labelBBox:null,parent:null,relations:["jde35l"],color:"gray",line:"dashed",head:"normal"},{id:"1ir70dd",source:"otc-edp-per-tenant.cce.edp.ingressNginx",target:"otc-edp-per-tenant.cce.edp.argoCD",label:"https",dotpos:"e,1260,1287.5 1260,1134.2 1260,1178.3 1260,1231.6 1260,1277",points:[[1260,1134],[1260,1178],[1260,1232],[1260,1277]],labelBBox:{x:1261,y:1199,width:34,height:18},parent:"otc-edp-per-tenant.cce.edp",relations:["1yssos5"],color:"gray",line:"dashed",head:"normal"},{id:"1kr1wg1",source:"otc-edp-per-tenant.cce.edp.ingressNginx",target:"otc-edp-per-tenant.cce.edp.forgejo",label:"https",dotpos:"e,923.46,1287.6 1136.4,1134.5 1073.1,1180 996.05,1235.4 931.65,1281.7",points:[[1136,1134],[1073,1180],[996,1235],[932,1282]],labelBBox:{x:1045,y:1199,width:34,height:18},parent:"otc-edp-per-tenant.cce.edp",relations:["123efwn"],color:"gray",line:"dashed",head:"normal"},{id:"1dcszi5",source:"otc-edp-per-tenant.forgejoRunnerInfrastructure.forgejoRunner",target:"otc-edp-per-tenant.cce.edp.forgejo",label:"registers",dotpos:"e,800,1287.4 800,401.47 800,598.41 800,1070.4 800,1276.9",points:[[800,401],[800,598],[800,1070],[800,1277]],labelBBox:{x:801,y:799,width:58,height:18},parent:"otc-edp-per-tenant",relations:["g9oj4f"],color:"gray",line:"dashed",head:"normal"},{id:"8msu1q",source:"otc-edp-per-tenant.cce.edp.forgejo",target:"otc-edp-per-tenant.cloudServices.postgres",label:null,dotpos:"e,1618.1,1705.6 859.94,1467.1 901.94,1521.2 963.27,1585.7 1035,1617.4 1080.6,1637.5 1435.6,1619.1 1483,1634.4 1527.5,1648.7 1571.5,1673.7 1609.5,1699.7",points:[[860,1467],[902,1521],[963,1586],[1035,1617],[1081,1638],[1436,1619],[1483,1634],[1527,1649],[1571,1674],[1610,1700]],labelBBox:null,parent:"otc-edp-per-tenant",relations:["hks76r"],color:"gray",line:"dashed",head:"normal"},{id:"120qe5o",source:"otc-edp-per-tenant.cce.edp.forgejo",target:"otc-edp-per-tenant.cloudServices.redis",label:null,dotpos:"e,790.57,1705.6 797.44,1467.2 795.51,1534 792.87,1625.8 790.87,1695.1",points:[[797,1467],[796,1534],[793,1626],[791,1695]],labelBBox:null,parent:"otc-edp-per-tenant",relations:["1w18ve8"],color:"gray",line:"dashed",head:"normal"},{id:"ealiax",source:"otc-edp-per-tenant.cce.edp.forgejo",target:"otc-edp-per-tenant.cloudServices.objectstorage",label:null,dotpos:"e,1140.6,1705.7 882.38,1467.3 926.38,1513.4 982.22,1569.9 1035,1617.4 1065.7,1645 1100,1673.4 1132.4,1699.2",points:[[882,1467],[926,1513],[982,1570],[1035,1617],[1066,1645],[1100,1673],[1132,1699]],labelBBox:null,parent:"otc-edp-per-tenant",relations:["15njmlz"],color:"gray",line:"dashed",head:"normal"},{id:"1trj5u6",source:"otc-edp-per-tenant.cce.edp.forgejo",target:"otc-edp-per-tenant.cloudServices.elasticsearch",label:null,dotpos:"e,401.41,1705.6 691.86,1467.2 608.89,1535.3 494.54,1629.2 409.54,1698.9",points:[[692,1467],[609,1535],[495,1629],[410,1699]],labelBBox:null,parent:"otc-edp-per-tenant",relations:["1fzhjm9"],color:"gray",line:"dashed",head:"normal"},{id:"1asm38z",source:"otc-edpFoundry.workflowSetupEDPInfrastructure.edpworkflow",target:"otc-edp-per-tenant.cloudServices",label:"deploys edp to otc.paas",dotpos:"e,1952,1792.7 4738.6,1134.4 4709.3,1265.2 4634.5,1506.1 4466,1617.4 4259.7,1753.6 2589.5,1785.4 1962.1,1792.6",points:[[4739,1134],[4709,1265],[4634,1506],[4466,1617],[4260,1754],[2590,1785],[1962,1793]],labelBBox:{x:3219,y:1730,width:152,height:18},parent:null,relations:["1pfc6bl"],color:"gray",line:"dashed",head:"normal"},{id:"1or831y",source:"otc-edpFoundry.workflowSetupEDPInfrastructure.edpworkflow",target:"otc-edp-per-tenant.cce.edp",label:"deploys edp to otc.cce",dotpos:"e,1920,1323.8 4602.1,1134.5 4559.4,1155 4512.1,1173.9 4466,1184.6 4365.7,1207.9 2714.5,1189.2 2612,1199.6 2376.8,1223.4 2111.8,1278.8 1930.2,1321.4",points:[[4602,1134],[4559,1155],[4512,1174],[4466,1185],[4366,1208],[2714,1189],[2612,1200],[2377,1223],[2112,1279],[1930,1321]],labelBBox:{x:3117,y:1173,width:143,height:18},parent:null,relations:["uk77s5"],color:"gray",line:"dashed",head:"normal"}]},"otc-faas":{_type:"deployment",tags:null,links:null,_stage:"layouted",sourcePath:"views/deployment/otc/otc-faas.c4",description:null,title:"OTC Prototype FaaS",id:"otc-faas",autoLayout:{direction:"TB"},hash:"883b9424089788d2cd149fa271e66b32ffc8470e",bounds:{x:0,y:0,width:2086,height:802},nodes:[{id:"otc-faas",parent:null,level:0,children:["otc-faas.dev","otc-faas.prod"],inEdges:[],outEdges:[],deploymentRef:"otc-faas",title:"OTC prototype FaaS",kind:"cloud",technology:"OTC",color:"primary",shape:"rectangle",description:{txt:"OTC environments for Prototype FaaS."},tags:[],style:{opacity:15,size:"md"},depth:3,x:8,y:8,width:2070,height:786,labelBBox:{x:6,y:0,width:131,height:15}},{id:"otc-faas.dev",parent:"otc-faas",level:1,children:["otc-faas.dev.cce","otc-faas.dev.observability","otc-faas.dev.cloudServices"],inEdges:[],outEdges:[],deploymentRef:"otc-faas.dev",title:"tenant Dev",kind:"environment",technology:"OTC",color:"primary",shape:"rectangle",description:{txt:"*.t09.de"},tags:[],style:{opacity:15,size:"md"},depth:2,x:58,y:79,width:972,height:665,labelBBox:{x:6,y:0,width:74,height:15}},{id:"otc-faas.dev.cce",parent:"otc-faas.dev",level:2,children:["otc-faas.dev.cce.edp"],inEdges:[],outEdges:["p747qx"],deploymentRef:"otc-faas.dev.cce",title:"Central Forgejo",kind:"kubernetes",technology:"Kubernetes",color:"primary",shape:"rectangle",modelRef:"edp.forgejo",icon:"tech:kubernetes",description:{txt:"*.t09.de"},tags:[],style:{opacity:15,size:"md"},depth:1,navigateTo:"forgejo",x:108,y:150,width:454,height:266,labelBBox:{x:6,y:0,width:113,height:15}},{id:"otc-faas.dev.observability",parent:"otc-faas.dev",level:2,children:[],inEdges:[],outEdges:[],deploymentRef:"otc-faas.dev.observability",title:"Observability",kind:"kubernetes",technology:"Kubernetes",color:"primary",shape:"rectangle",icon:"tech:kubernetes",description:{txt:"*.t09.de"},tags:[],style:{opacity:15,size:"md"},x:660,y:204,width:320,height:180,labelBBox:{x:86,y:53,width:178,height:67}},{id:"otc-faas.prod",parent:"otc-faas",level:1,children:["otc-faas.prod.cce","otc-faas.prod.observability","otc-faas.prod.cloudServices"],inEdges:[],outEdges:[],deploymentRef:"otc-faas.prod",title:"Tenant Prod",kind:"environment",technology:"OTC",color:"primary",shape:"rectangle",description:{txt:"*.buildth.ing"},tags:[],style:{opacity:15,size:"md"},depth:2,x:1080,y:79,width:948,height:665,labelBBox:{x:6,y:0,width:83,height:15}},{id:"otc-faas.prod.cce",parent:"otc-faas.prod",level:2,children:["otc-faas.prod.cce.edp"],inEdges:[],outEdges:["tb8sk9"],deploymentRef:"otc-faas.prod.cce",title:"Central Forgejo",kind:"kubernetes",technology:"Kubernetes",color:"primary",shape:"rectangle",modelRef:"edp.forgejo",icon:"tech:kubernetes",description:{txt:"*.buildth.ing"},tags:[],style:{opacity:15,size:"md"},depth:1,navigateTo:"forgejo",x:1130,y:150,width:430,height:266,labelBBox:{x:6,y:0,width:113,height:15}},{id:"otc-faas.dev.cce.edp",parent:"otc-faas.dev.cce",level:3,children:[],inEdges:[],outEdges:["p747qx"],deploymentRef:"otc-faas.dev.cce.edp",title:"Forgejo Dev for platform team",kind:"cluster",color:"primary",shape:"rectangle",modelRef:"edp.forgejo",icon:"tech:go",description:{txt:"t09.de"},tags:[],style:{opacity:15,size:"md"},navigateTo:"forgejo",x:140,y:204,width:389,height:180,labelBBox:{x:46,y:63,width:328,height:47}},{id:"otc-faas.prod.observability",parent:"otc-faas.prod",level:2,children:[],inEdges:[],outEdges:[],deploymentRef:"otc-faas.prod.observability",title:"Observability",kind:"kubernetes",technology:"Kubernetes",color:"primary",shape:"rectangle",icon:"tech:kubernetes",description:{txt:"*.buildth.ing"},tags:[],style:{opacity:15,size:"md"},x:1658,y:204,width:320,height:180,labelBBox:{x:86,y:53,width:178,height:67}},{id:"otc-faas.prod.cce.edp",parent:"otc-faas.prod.cce",level:3,children:[],inEdges:[],outEdges:["tb8sk9"],deploymentRef:"otc-faas.prod.cce.edp",title:"Forgejo for all EDP-tenants",kind:"cluster",color:"primary",shape:"rectangle",modelRef:"edp.forgejo",icon:"tech:go",description:{txt:"buildth.ing"},tags:[],style:{opacity:15,size:"md"},navigateTo:"forgejo",x:1162,y:204,width:365,height:180,labelBBox:{x:46,y:63,width:304,height:47}},{id:"otc-faas.dev.cloudServices",parent:"otc-faas.dev",level:2,children:[],inEdges:["p747qx"],outEdges:[],deploymentRef:"otc-faas.dev.cloudServices",title:"EDP Cloud Services",kind:"paas",technology:"Cloud Services",color:"primary",shape:"rectangle",description:{txt:"EDP Cloud Services (Postgres, Redis, etc.)"},tags:[],style:{opacity:15,size:"md"},x:171,y:514,width:328,height:180,labelBBox:{x:18,y:53,width:292,height:67}},{id:"otc-faas.prod.cloudServices",parent:"otc-faas.prod",level:2,children:[],inEdges:["tb8sk9"],outEdges:[],deploymentRef:"otc-faas.prod.cloudServices",title:"EDP Cloud Services",kind:"paas",technology:"Cloud Services",color:"primary",shape:"rectangle",description:{txt:"EDP Cloud Services (Postgres, Redis, etc.)"},tags:[],style:{opacity:15,size:"md"},x:1181,y:514,width:328,height:180,labelBBox:{x:18,y:53,width:292,height:67}}],edges:[{id:"p747qx",source:"otc-faas.dev.cce.edp",target:"otc-faas.dev.cloudServices",label:null,dotpos:"e,335,513.75 335,383.27 335,420.88 335,464.86 335,503.52",points:[[335,383],[335,421],[335,465],[335,504]],labelBBox:null,parent:"otc-faas.dev",relations:["dz2rdn"],color:"gray",line:"dashed",head:"normal"},{id:"tb8sk9",source:"otc-faas.prod.cce.edp",target:"otc-faas.prod.cloudServices",label:null,dotpos:"e,1345,513.75 1345,383.27 1345,420.88 1345,464.86 1345,503.52",points:[[1345,383],[1345,421],[1345,465],[1345,504]],labelBBox:null,parent:"otc-faas.prod",relations:["2shw6y"],color:"gray",line:"dashed",head:"normal"}]},"components-template-documentation":{_type:"element",tags:null,links:null,viewOf:"documentation",_stage:"layouted",sourcePath:"views/documentation/components-template-documentation.c4",description:{txt:"Documentation System Context View"},title:"Documentation",id:"components-template-documentation",autoLayout:{direction:"TB"},hash:"b411a2274eea9b4e4f881a62211880ca09920b61",bounds:{x:0,y:0,width:431,height:503},nodes:[{id:"platformdeveloper",parent:null,level:0,children:[],inEdges:[],outEdges:["1kjl8ep"],title:"Technical Writer",modelRef:"platformdeveloper",shape:"person",color:"gray",style:{opacity:15,size:"md"},description:{txt:"Could be an engineer, but in this case it's the Technical Writer"},tags:[],kind:"actor",isCustomized:!0,x:32,y:0,width:320,height:180,labelBBox:{x:21,y:54,width:278,height:66}},{id:"documentation",parent:null,level:0,children:[],inEdges:["1kjl8ep"],outEdges:[],title:"Documentation",modelRef:"documentation",shape:"rectangle",color:"primary",icon:"tech:electron",style:{opacity:15,size:"md"},description:{txt:"Documentation system for EDP LikeC4 platform."},tags:[],technology:"Static Site Generator",kind:"system",x:0,y:323,width:384,height:180,labelBBox:{x:46,y:44,width:322,height:85}}],edges:[{id:"1kjl8ep",source:"platformdeveloper",target:"documentation",label:"creates and maintains documentation",dotpos:"e,192.12,322.97 192.12,179.93 192.12,221.13 192.12,270.24 192.12,312.63",points:[[192,180],[192,221],[192,270],[192,313]],labelBBox:{x:193,y:240,width:237,height:18},parent:null,relations:["3sz3k3"],color:"gray",line:"dashed",head:"normal"}]},"view_gitops-inner-outer-loop_15":{_type:"dynamic",tags:null,links:null,_stage:"layouted",sourcePath:"views/dynamic/cicd/gitops-inner-outer-loop.c4",description:null,title:"outer-ci-loop",id:"view_gitops-inner-outer-loop_15",variant:"diagram",autoLayout:{direction:"LR"},hash:"d85bdffdca5f49220457db75761ae8ba47744c16",sequenceLayout:{actors:[{id:"localbox.git",x:32,y:52,width:320,height:180,ports:[{id:"step-01_source",cx:160,cy:338,height:40,type:"source",position:"right"}]},{id:"edp.forgejogit",x:448,y:52,width:320,height:180,ports:[{id:"step-01_target",cx:160,cy:338,height:24,type:"target",position:"left"},{id:"step-02_source",cx:160,cy:360,height:40,type:"source",position:"right"},{id:"step-04_target",cx:160,cy:475,height:24,type:"target",position:"right"},{id:"step-05_source",cx:160,cy:568,height:40,type:"source",position:"right"}]},{id:"forgejoRunner",x:832,y:52,width:320,height:180,ports:[{id:"step-02_target",cx:160,cy:360,height:24,type:"target",position:"left"},{id:"step-03_source",cx:160,cy:382,height:40,type:"source",position:"right"},{id:"step-04_source",cx:160,cy:475,height:40,type:"source",position:"left"}]},{id:"edp.imageregistry",x:1216,y:52,width:373,height:180,ports:[{id:"step-03_target",cx:187,cy:382,height:24,type:"target",position:"left"},{id:"step-07_target",cx:187,cy:683,height:24,type:"target",position:"right"}]},{id:"edp.argoCD",x:1649,y:52,width:320,height:180,ports:[{id:"step-05_target",cx:160,cy:568,height:24,type:"target",position:"left"},{id:"step-06_source",cx:160,cy:590,height:40,type:"source",position:"right"}]},{id:"cloud",x:2033,y:52,width:320,height:180,ports:[{id:"step-06_target",cx:160,cy:590,height:24,type:"target",position:"left"},{id:"step-07_source",cx:160,cy:683,height:40,type:"source",position:"left"}]}],compounds:[{depth:0,x:0,y:0,width:384,height:527,id:"localbox",origin:"localbox"},{depth:0,x:416,y:0,width:384,height:735,id:"edp-1",origin:"edp"},{depth:0,x:1184,y:0,width:817,height:828,id:"edp-2",origin:"edp"}],steps:[{id:"step-01",sourceHandle:"step-01_source",targetHandle:"step-01_target",labelBBox:{width:91,height:27}},{id:"step-02",sourceHandle:"step-02_source",targetHandle:"step-02_target",labelBBox:{width:92,height:27}},{id:"step-03",sourceHandle:"step-03_source",targetHandle:"step-03_target",labelBBox:{width:159,height:27}},{id:"step-04",sourceHandle:"step-04_source",targetHandle:"step-04_target",labelBBox:{width:174,height:27}},{id:"step-05",sourceHandle:"step-05_source",targetHandle:"step-05_target",labelBBox:{width:164,height:27}},{id:"step-06",sourceHandle:"step-06_source",targetHandle:"step-06_target",labelBBox:{width:161,height:27}},{id:"step-07",sourceHandle:"step-07_source",targetHandle:"step-07_target",labelBBox:{width:113,height:27}}],parallelAreas:[],bounds:{x:0,y:0,width:2353,height:828}},bounds:{x:0,y:0,width:2150,height:1243},nodes:[{id:"localbox",parent:null,level:0,children:["localbox.git"],inEdges:[],outEdges:["step-01"],title:"localbox",modelRef:"localbox",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"A local development system"},tags:[],technology:"Linux/Windows/Mac",kind:"system",depth:1,x:8,y:306,width:384,height:265,labelBBox:{x:6,y:0,width:66,height:15}},{id:"localbox.git",parent:"localbox",level:1,children:[],inEdges:[],outEdges:["step-01"],title:"git",modelRef:"localbox.git",shape:"rectangle",color:"primary",icon:"tech:git",style:{opacity:15,size:"md"},description:{txt:"local git"},tags:[],technology:"Git",kind:"component",x:40,y:359,width:320,height:180,labelBBox:{x:119,y:53,width:113,height:67}},{id:"edp",parent:null,level:0,children:["edp.forgejogit","edp.imageregistry","edp.argoCD","edp.forgejo"],inEdges:["step-01","step-03","step-04","step-07"],outEdges:["step-02","step-06"],title:"EDP",modelRef:"edp",shape:"rectangle",color:"secondary",icon:"tech:kubernetes",style:{opacity:15,size:"md"},description:{txt:"EDP Edge Development Platform"},tags:[],technology:"Kubernetes",kind:"system",depth:1,navigateTo:"edp",x:528,y:8,width:1064,height:861,labelBBox:{x:6,y:0,width:27,height:15}},{id:"edp.forgejogit",parent:"edp",level:1,children:[],inEdges:["step-01","step-04"],outEdges:["step-02","step-05"],title:"ForgejoGit",modelRef:"edp.forgejogit",shape:"rectangle",color:"secondary",icon:"tech:git",style:{opacity:15,size:"md"},tags:[],kind:"component",x:595,y:359,width:320,height:180,labelBBox:{x:97,y:74,width:155,height:24}},{id:"forgejoRunner",parent:null,level:0,children:[],inEdges:["step-02"],outEdges:["step-03","step-04"],title:"Forgejo Runner",modelRef:"forgejoRunner",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"A runner is a service that runs jobs triggered by Forgejo. A runner can have different technical implementations like a container or a VM."},tags:[],kind:"component",x:1232,y:909,width:320,height:180,labelBBox:{x:23,y:36,width:274,height:102}},{id:"edp.imageregistry",parent:"edp",level:1,children:[],inEdges:["step-03","step-07"],outEdges:[],title:"Forgejo OCI Image Registry",modelRef:"edp.imageregistry",shape:"rectangle",color:"secondary",icon:"tech:go",style:{opacity:15,size:"md"},description:{txt:"Container Image Registry"},tags:[],technology:"Golang",kind:"component",x:568,y:649,width:373,height:180,labelBBox:{x:46,y:53,width:311,height:67}},{id:"edp.argoCD",parent:"edp",level:1,children:[],inEdges:["step-05"],outEdges:["step-06"],title:"ArgoCD",modelRef:"edp.argoCD",shape:"rectangle",color:"secondary",style:{opacity:20,size:"md"},description:{txt:"GitOps Service"},tags:[],kind:"container",navigateTo:"argoCD",x:1232,y:495,width:320,height:180,labelBBox:{x:107,y:63,width:105,height:48}},{id:"cloud",parent:null,level:0,children:[],inEdges:["step-06"],outEdges:["step-07"],title:"Cloud",modelRef:"cloud",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Cloud environments"},tags:[],technology:"IaaS/PaaS",kind:"system",x:1830,y:1063,width:320,height:180,labelBBox:{x:91,y:53,width:137,height:67}},{id:"edp.forgejo",parent:"edp",level:1,children:[],inEdges:[],outEdges:[],title:"Forgejo",modelRef:"edp.forgejo",shape:"rectangle",color:"gray",icon:"tech:go",style:{opacity:20,size:"md"},description:{txt:`Fully managed DevOps Platform +discover the expected and uncover the unexpected.`},technology:"Elasticsearch",tags:[],icon:"tech:elasticsearch",color:"primary",shape:"rectangle",style:{opacity:20,size:"md"},deploymentRef:"otc-edp-per-tenant.cloudServices.elasticsearch",modelRef:"elasticsearch",x:108,y:1706,width:370,height:180,labelBBox:{x:46,y:17,width:308,height:139}}],edges:[{id:"17kru01",source:"otc-edpFoundry.cce.internalServices.ingressNginx",target:"otc-edpFoundry.cce.internalServices.argoCD",label:"https",points:[[4054,1100],[3915,1148],[3708,1220],[3529,1287],[3511,1294],[3492,1301],[3474,1309]],labelBBox:{x:3755,y:1199,width:34,height:18},parent:"otc-edpFoundry.cce.internalServices",relations:["1yssos5"],color:"gray",line:"dashed",head:"normal"},{id:"170pc3l",source:"otc-edpFoundry.cce.internalServices.ingressNginx",target:"otc-edpFoundry.cce.internalServices.forgejo",label:"https",points:[[4214,1134],[4214,1178],[4214,1232],[4214,1277]],labelBBox:{x:4215,y:1199,width:34,height:18},parent:"otc-edpFoundry.cce.internalServices",relations:["123efwn"],color:"gray",line:"dashed",head:"normal"},{id:"u5oqat",source:"otc-edpFoundry.cce.internalServices.ingressNginx",target:"otc-edpFoundry.cce.internalServices.openbao",label:"https",points:[[4090,1134],[4027,1180],[3950,1235],[3886,1282]],labelBBox:{x:3999,y:1199,width:34,height:18},parent:"otc-edpFoundry.cce.internalServices",relations:["1p30hav"],color:"gray",line:"dashed",head:"normal"},{id:"qykxlm",source:"otc-edpFoundry.cce.centralObservability.grafana",target:"otc-edpFoundry.cce.centralObservability.prometheus",label:"get metrics and alerts",points:[[3664,401],[3645,446],[3622,499],[3602,545]],labelBBox:{x:3636,y:466,width:138,height:18},parent:"otc-edpFoundry.cce.centralObservability",relations:["13uvtiq"],color:"gray",line:"dashed",head:"normal"},{id:"yv49z5",source:"otc-edpFoundry.cce.centralObservability.grafana",target:"otc-edpFoundry.cce.centralObservability.loki",label:"get logs",points:[[3785,401],[3827,446],[3877,501],[3920,547]],labelBBox:{x:3866,y:466,width:53,height:18},parent:"otc-edpFoundry.cce.centralObservability",relations:["1n1utzc"],color:"gray",line:"dashed",head:"normal"},{id:"84397w",source:"otc-edpFoundry.cce.internalServices.forgejo",target:"otc-edpFoundry.workflowSetupEDPInfrastructure.forgejoRunner",label:"invokes",points:[[4384,1359],[4590,1333],[4917,1279],[4991,1185],[5006,1165],[5006,601],[4987,554],[4964,499],[4922,448],[4880,408]],labelBBox:{x:5002,y:799,width:51,height:18},parent:"otc-edpFoundry",relations:["dola40"],color:"gray",line:"dashed",head:"normal"},{id:"1hnil62",source:"otc-edpFoundry.workflowSetupEDPInfrastructure.forgejoRunner",target:"otc-edpFoundry.workflowSetupEDPInfrastructure.forgejoRunnerWorker",label:"runs",points:[[4755,401],[4755,445],[4755,499],[4755,544]],labelBBox:{x:4756,y:466,width:31,height:18},parent:"otc-edpFoundry.workflowSetupEDPInfrastructure",relations:["7kqly3"],color:"gray",line:"dashed",head:"normal"},{id:"ekzztw",source:"otc-edpFoundry.workflowSetupEDPInfrastructure.forgejoRunnerWorker",target:"otc-edpFoundry.workflowSetupEDPInfrastructure.edpworkflow",label:"executes",points:[[4755,734],[4755,797],[4755,880],[4755,944]],labelBBox:{x:4756,y:799,width:60,height:18},parent:"otc-edpFoundry.workflowSetupEDPInfrastructure",relations:["12hf1w4"],color:"gray",line:"dashed",head:"normal"},{id:"1oz2va9",source:"otc-edpFoundry.cce.internalServices.forgejo",target:"otc-edpFoundry.workflowSetupArgoCDInfrastructure.forgejoRunner",label:"invokes",points:[[4044,1309],[4022,1301],[4e3,1294],[3979,1287],[3850,1249],[3808,1275],[3684,1222],[3176,1006],[2655,594],[2433,408]],labelBBox:{x:2970,y:799,width:51,height:18},parent:"otc-edpFoundry",relations:["1f5y9gc"],color:"gray",line:"dashed",head:"normal"},{id:"1gtxobu",source:"otc-edpFoundry.workflowSetupArgoCDInfrastructure.forgejoRunner",target:"otc-edpFoundry.workflowSetupArgoCDInfrastructure.forgejoRunnerWorker",label:"runs",points:[[2323,401],[2323,445],[2323,499],[2323,544]],labelBBox:{x:2324,y:466,width:31,height:18},parent:"otc-edpFoundry.workflowSetupArgoCDInfrastructure",relations:["hqie0"],color:"gray",line:"dashed",head:"normal"},{id:"b9ntr8",source:"otc-edpFoundry.workflowSetupArgoCDInfrastructure.forgejoRunnerWorker",target:"otc-edpFoundry.workflowSetupArgoCDInfrastructure.edpworkflow",label:"executes",points:[[2323,734],[2323,797],[2323,880],[2323,944]],labelBBox:{x:2324,y:799,width:60,height:18},parent:"otc-edpFoundry.workflowSetupArgoCDInfrastructure",relations:["1j16hqv"],color:"gray",line:"dashed",head:"normal"},{id:"628xl1",source:"otc-edpFoundry.forgejoRunnerInfrastructure.forgejoRunner",target:"otc-edpFoundry.cce.internalServices.forgejo",label:"registers",points:[[5231,401],[5255,597],[5278,1062],[4995,1222],[4808,1328],[4561,1362],[4395,1373]],labelBBox:{x:5232,y:799,width:58,height:18},parent:"otc-edpFoundry",relations:["1umzqdy"],color:"gray",line:"dashed",head:"normal"},{id:"ejqwjt",source:"otc-edpFoundry.workflowSetupArgoCDInfrastructure.edpworkflow",target:"otc-edp-per-tenant.cce.edp.argoCD",label:null,points:[[2152,1115],[2090,1139],[2018,1165],[1952,1185],[1748,1245],[1688,1225],[1485,1287],[1467,1293],[1448,1299],[1430,1306]],labelBBox:null,parent:null,relations:["jde35l"],color:"gray",line:"dashed",head:"normal"},{id:"1ir70dd",source:"otc-edp-per-tenant.cce.edp.ingressNginx",target:"otc-edp-per-tenant.cce.edp.argoCD",label:"https",points:[[1260,1134],[1260,1178],[1260,1232],[1260,1277]],labelBBox:{x:1261,y:1199,width:34,height:18},parent:"otc-edp-per-tenant.cce.edp",relations:["1yssos5"],color:"gray",line:"dashed",head:"normal"},{id:"1kr1wg1",source:"otc-edp-per-tenant.cce.edp.ingressNginx",target:"otc-edp-per-tenant.cce.edp.forgejo",label:"https",points:[[1136,1134],[1073,1180],[996,1235],[932,1282]],labelBBox:{x:1045,y:1199,width:34,height:18},parent:"otc-edp-per-tenant.cce.edp",relations:["123efwn"],color:"gray",line:"dashed",head:"normal"},{id:"1dcszi5",source:"otc-edp-per-tenant.forgejoRunnerInfrastructure.forgejoRunner",target:"otc-edp-per-tenant.cce.edp.forgejo",label:"registers",points:[[800,401],[800,598],[800,1070],[800,1277]],labelBBox:{x:801,y:799,width:58,height:18},parent:"otc-edp-per-tenant",relations:["g9oj4f"],color:"gray",line:"dashed",head:"normal"},{id:"8msu1q",source:"otc-edp-per-tenant.cce.edp.forgejo",target:"otc-edp-per-tenant.cloudServices.postgres",label:null,points:[[860,1467],[902,1521],[963,1586],[1035,1617],[1081,1638],[1436,1619],[1483,1634],[1527,1649],[1571,1674],[1610,1700]],labelBBox:null,parent:"otc-edp-per-tenant",relations:["hks76r"],color:"gray",line:"dashed",head:"normal"},{id:"120qe5o",source:"otc-edp-per-tenant.cce.edp.forgejo",target:"otc-edp-per-tenant.cloudServices.redis",label:null,points:[[797,1467],[796,1534],[793,1626],[791,1695]],labelBBox:null,parent:"otc-edp-per-tenant",relations:["1w18ve8"],color:"gray",line:"dashed",head:"normal"},{id:"ealiax",source:"otc-edp-per-tenant.cce.edp.forgejo",target:"otc-edp-per-tenant.cloudServices.objectstorage",label:null,points:[[882,1467],[926,1513],[982,1570],[1035,1617],[1066,1645],[1100,1673],[1132,1699]],labelBBox:null,parent:"otc-edp-per-tenant",relations:["15njmlz"],color:"gray",line:"dashed",head:"normal"},{id:"1trj5u6",source:"otc-edp-per-tenant.cce.edp.forgejo",target:"otc-edp-per-tenant.cloudServices.elasticsearch",label:null,points:[[692,1467],[609,1535],[495,1629],[410,1699]],labelBBox:null,parent:"otc-edp-per-tenant",relations:["1fzhjm9"],color:"gray",line:"dashed",head:"normal"},{id:"1asm38z",source:"otc-edpFoundry.workflowSetupEDPInfrastructure.edpworkflow",target:"otc-edp-per-tenant.cloudServices",label:"deploys edp to otc.paas",points:[[4739,1134],[4709,1265],[4634,1506],[4466,1617],[4260,1754],[2590,1785],[1962,1793]],labelBBox:{x:3219,y:1730,width:152,height:18},parent:null,relations:["1pfc6bl"],color:"gray",line:"dashed",head:"normal"},{id:"1or831y",source:"otc-edpFoundry.workflowSetupEDPInfrastructure.edpworkflow",target:"otc-edp-per-tenant.cce.edp",label:"deploys edp to otc.cce",points:[[4602,1134],[4559,1155],[4512,1174],[4466,1185],[4366,1208],[2714,1189],[2612,1200],[2377,1223],[2112,1279],[1930,1321]],labelBBox:{x:3117,y:1173,width:143,height:18},parent:null,relations:["uk77s5"],color:"gray",line:"dashed",head:"normal"}]},"otc-faas":{_type:"deployment",tags:null,links:null,_stage:"layouted",sourcePath:"views/deployment/otc/otc-faas.c4",description:null,title:"OTC Prototype FaaS",id:"otc-faas",autoLayout:{direction:"TB"},hash:"883b9424089788d2cd149fa271e66b32ffc8470e",bounds:{x:0,y:0,width:2086,height:802},nodes:[{id:"otc-faas",parent:null,level:0,children:["otc-faas.dev","otc-faas.prod"],inEdges:[],outEdges:[],deploymentRef:"otc-faas",title:"OTC prototype FaaS",kind:"cloud",technology:"OTC",color:"primary",shape:"rectangle",description:{txt:"OTC environments for Prototype FaaS."},tags:[],style:{opacity:15,size:"md"},depth:3,x:8,y:8,width:2070,height:786,labelBBox:{x:6,y:0,width:131,height:15}},{id:"otc-faas.dev",parent:"otc-faas",level:1,children:["otc-faas.dev.cce","otc-faas.dev.observability","otc-faas.dev.cloudServices"],inEdges:[],outEdges:[],deploymentRef:"otc-faas.dev",title:"tenant Dev",kind:"environment",technology:"OTC",color:"primary",shape:"rectangle",description:{txt:"*.t09.de"},tags:[],style:{opacity:15,size:"md"},depth:2,x:58,y:79,width:972,height:665,labelBBox:{x:6,y:0,width:74,height:15}},{id:"otc-faas.dev.cce",parent:"otc-faas.dev",level:2,children:["otc-faas.dev.cce.edp"],inEdges:[],outEdges:["p747qx"],deploymentRef:"otc-faas.dev.cce",title:"Central Forgejo",kind:"kubernetes",technology:"Kubernetes",color:"primary",shape:"rectangle",modelRef:"edp.forgejo",icon:"tech:kubernetes",description:{txt:"*.t09.de"},tags:[],style:{opacity:15,size:"md"},depth:1,navigateTo:"forgejo",x:108,y:150,width:454,height:266,labelBBox:{x:6,y:0,width:113,height:15}},{id:"otc-faas.dev.observability",parent:"otc-faas.dev",level:2,children:[],inEdges:[],outEdges:[],deploymentRef:"otc-faas.dev.observability",title:"Observability",kind:"kubernetes",technology:"Kubernetes",color:"primary",shape:"rectangle",icon:"tech:kubernetes",description:{txt:"*.t09.de"},tags:[],style:{opacity:15,size:"md"},x:660,y:204,width:320,height:180,labelBBox:{x:86,y:53,width:178,height:67}},{id:"otc-faas.prod",parent:"otc-faas",level:1,children:["otc-faas.prod.cce","otc-faas.prod.observability","otc-faas.prod.cloudServices"],inEdges:[],outEdges:[],deploymentRef:"otc-faas.prod",title:"Tenant Prod",kind:"environment",technology:"OTC",color:"primary",shape:"rectangle",description:{txt:"*.buildth.ing"},tags:[],style:{opacity:15,size:"md"},depth:2,x:1080,y:79,width:948,height:665,labelBBox:{x:6,y:0,width:83,height:15}},{id:"otc-faas.prod.cce",parent:"otc-faas.prod",level:2,children:["otc-faas.prod.cce.edp"],inEdges:[],outEdges:["tb8sk9"],deploymentRef:"otc-faas.prod.cce",title:"Central Forgejo",kind:"kubernetes",technology:"Kubernetes",color:"primary",shape:"rectangle",modelRef:"edp.forgejo",icon:"tech:kubernetes",description:{txt:"*.buildth.ing"},tags:[],style:{opacity:15,size:"md"},depth:1,navigateTo:"forgejo",x:1130,y:150,width:430,height:266,labelBBox:{x:6,y:0,width:113,height:15}},{id:"otc-faas.dev.cce.edp",parent:"otc-faas.dev.cce",level:3,children:[],inEdges:[],outEdges:["p747qx"],deploymentRef:"otc-faas.dev.cce.edp",title:"Forgejo Dev for platform team",kind:"cluster",color:"primary",shape:"rectangle",modelRef:"edp.forgejo",icon:"tech:go",description:{txt:"t09.de"},tags:[],style:{opacity:15,size:"md"},navigateTo:"forgejo",x:140,y:204,width:389,height:180,labelBBox:{x:46,y:63,width:328,height:47}},{id:"otc-faas.prod.observability",parent:"otc-faas.prod",level:2,children:[],inEdges:[],outEdges:[],deploymentRef:"otc-faas.prod.observability",title:"Observability",kind:"kubernetes",technology:"Kubernetes",color:"primary",shape:"rectangle",icon:"tech:kubernetes",description:{txt:"*.buildth.ing"},tags:[],style:{opacity:15,size:"md"},x:1658,y:204,width:320,height:180,labelBBox:{x:86,y:53,width:178,height:67}},{id:"otc-faas.prod.cce.edp",parent:"otc-faas.prod.cce",level:3,children:[],inEdges:[],outEdges:["tb8sk9"],deploymentRef:"otc-faas.prod.cce.edp",title:"Forgejo for all EDP-tenants",kind:"cluster",color:"primary",shape:"rectangle",modelRef:"edp.forgejo",icon:"tech:go",description:{txt:"buildth.ing"},tags:[],style:{opacity:15,size:"md"},navigateTo:"forgejo",x:1162,y:204,width:365,height:180,labelBBox:{x:46,y:63,width:304,height:47}},{id:"otc-faas.dev.cloudServices",parent:"otc-faas.dev",level:2,children:[],inEdges:["p747qx"],outEdges:[],deploymentRef:"otc-faas.dev.cloudServices",title:"EDP Cloud Services",kind:"paas",technology:"Cloud Services",color:"primary",shape:"rectangle",description:{txt:"EDP Cloud Services (Postgres, Redis, etc.)"},tags:[],style:{opacity:15,size:"md"},x:171,y:514,width:328,height:180,labelBBox:{x:18,y:53,width:292,height:67}},{id:"otc-faas.prod.cloudServices",parent:"otc-faas.prod",level:2,children:[],inEdges:["tb8sk9"],outEdges:[],deploymentRef:"otc-faas.prod.cloudServices",title:"EDP Cloud Services",kind:"paas",technology:"Cloud Services",color:"primary",shape:"rectangle",description:{txt:"EDP Cloud Services (Postgres, Redis, etc.)"},tags:[],style:{opacity:15,size:"md"},x:1181,y:514,width:328,height:180,labelBBox:{x:18,y:53,width:292,height:67}}],edges:[{id:"p747qx",source:"otc-faas.dev.cce.edp",target:"otc-faas.dev.cloudServices",label:null,points:[[335,383],[335,421],[335,465],[335,504]],labelBBox:null,parent:"otc-faas.dev",relations:["dz2rdn"],color:"gray",line:"dashed",head:"normal"},{id:"tb8sk9",source:"otc-faas.prod.cce.edp",target:"otc-faas.prod.cloudServices",label:null,points:[[1345,383],[1345,421],[1345,465],[1345,504]],labelBBox:null,parent:"otc-faas.prod",relations:["2shw6y"],color:"gray",line:"dashed",head:"normal"}]},"components-template-documentation":{_type:"element",tags:null,links:null,viewOf:"documentation",_stage:"layouted",sourcePath:"views/documentation/components-template-documentation.c4",description:{txt:"Documentation System Context View"},title:"Documentation",id:"components-template-documentation",autoLayout:{direction:"TB"},hash:"b411a2274eea9b4e4f881a62211880ca09920b61",bounds:{x:0,y:0,width:431,height:503},nodes:[{id:"platformdeveloper",parent:null,level:0,children:[],inEdges:[],outEdges:["1kjl8ep"],title:"Technical Writer",modelRef:"platformdeveloper",shape:"person",color:"gray",style:{opacity:15,size:"md"},description:{txt:"Could be an engineer, but in this case it's the Technical Writer"},tags:[],kind:"actor",isCustomized:!0,x:32,y:0,width:320,height:180,labelBBox:{x:21,y:54,width:278,height:66}},{id:"documentation",parent:null,level:0,children:[],inEdges:["1kjl8ep"],outEdges:[],title:"Documentation",modelRef:"documentation",shape:"rectangle",color:"primary",icon:"tech:electron",style:{opacity:15,size:"md"},description:{txt:"Documentation system for EDP LikeC4 platform."},tags:[],technology:"Static Site Generator",kind:"system",x:0,y:323,width:384,height:180,labelBBox:{x:46,y:44,width:322,height:85}}],edges:[{id:"1kjl8ep",source:"platformdeveloper",target:"documentation",label:"creates and maintains documentation",points:[[192,180],[192,221],[192,270],[192,313]],labelBBox:{x:193,y:240,width:237,height:18},parent:null,relations:["3sz3k3"],color:"gray",line:"dashed",head:"normal"}]},forgejoGarmInteraction:{_type:"dynamic",tags:null,links:null,_stage:"layouted",sourcePath:"views/dynamic/cicd/forgejo-garm.c4",description:null,title:"Forgejo <-> Garm",id:"forgejoGarmInteraction",variant:"diagram",autoLayout:{direction:"LR"},hash:"a429b3027cc166f4613f1dd67f49e3375d4adf32",sequenceLayout:{actors:[{id:"edp.forgejo",x:32,y:92,width:340,height:180,ports:[{id:"step-01_source",cx:170,cy:370,height:40,type:"source",position:"right"},{id:"step-07_target",cx:170,cy:644,height:24,type:"target",position:"right"},{id:"step-08_source",cx:170,cy:737,height:40,type:"source",position:"right"},{id:"step-10_target",cx:170,cy:852,height:24,type:"target",position:"right"},{id:"step-11_target",cx:170,cy:945,height:24,type:"target",position:"right"},{id:"step-13_target",cx:170,cy:1153,height:24,type:"target",position:"right"},{id:"step-14_source",cx:170,cy:1175,height:40,type:"source",position:"right"},{id:"step-14_target",cx:170,cy:1312,height:24,type:"target",position:"right"},{id:"step-16_source",cx:170,cy:1521,height:40,type:"source",position:"right"}]},{id:"edp.garm.garm",x:436,y:92,width:325,height:180,ports:[{id:"step-01_target",cx:163,cy:370,height:24,type:"target",position:"left"},{id:"step-02_source",cx:163,cy:392,height:40,type:"source",position:"right"},{id:"step-06_target",cx:163,cy:622,height:24,type:"target",position:"right"},{id:"step-07_source",cx:163,cy:644,height:40,type:"source",position:"left"},{id:"step-08_target",cx:163,cy:737,height:24,type:"target",position:"left"},{id:"step-09_source",cx:163,cy:759,height:40,type:"source",position:"right"},{id:"step-16_target",cx:163,cy:1521,height:24,type:"target",position:"left"},{id:"step-17_source",cx:163,cy:1543,height:40,type:"source",position:"right"}]},{id:"edp.garm.providerEdgeConnect",x:821,y:92,width:409,height:180,ports:[{id:"step-02_target",cx:205,cy:392,height:24,type:"target",position:"left"},{id:"step-03_source",cx:205,cy:414,height:40,type:"source",position:"right"},{id:"step-04_source",cx:205,cy:507,height:40,type:"source",position:"right"},{id:"step-17_target",cx:205,cy:1543,height:24,type:"target",position:"left"},{id:"step-18_source",cx:205,cy:1565,height:40,type:"source",position:"right"},{id:"step-19_source",cx:205,cy:1658,height:40,type:"source",position:"right"}]},{id:"edgeConnect",x:1326,y:92,width:320,height:180,ports:[{id:"step-03_target",cx:160,cy:414,height:24,type:"target",position:"left"},{id:"step-04_target",cx:160,cy:507,height:24,type:"target",position:"left"},{id:"step-05_source",cx:160,cy:529,height:40,type:"source",position:"right"},{id:"step-18_target",cx:160,cy:1565,height:24,type:"target",position:"left"},{id:"step-19_target",cx:160,cy:1658,height:24,type:"target",position:"left"}]},{id:"forgejoRunner",x:1706,y:92,width:320,height:180,ports:[{id:"step-05_target",cx:160,cy:529,height:24,type:"target",position:"left"},{id:"step-06_source",cx:160,cy:622,height:40,type:"source",position:"left"},{id:"step-09_target",cx:160,cy:759,height:24,type:"target",position:"left"},{id:"step-10_source",cx:160,cy:852,height:40,type:"source",position:"left"},{id:"step-11_source",cx:160,cy:945,height:40,type:"source",position:"left"},{id:"step-12_source",cx:160,cy:1038,height:40,type:"source",position:"right"},{id:"step-12_target",cx:160,cy:1131,height:24,type:"target",position:"right"},{id:"step-13_source",cx:160,cy:1153,height:40,type:"source",position:"left"},{id:"step-15_source",cx:160,cy:1348,height:40,type:"source",position:"right"},{id:"step-15_target",cx:160,cy:1441,height:24,type:"target",position:"right"}]}],compounds:[{depth:1,x:0,y:0,width:1294,height:1875,id:"edp",origin:"edp"},{depth:0,x:404,y:40,width:858,height:1803,id:"edp.garm",origin:"edp.garm"}],steps:[{id:"step-01",sourceHandle:"step-01_source",targetHandle:"step-01_target",labelBBox:{width:244,height:27}},{id:"step-02",sourceHandle:"step-02_source",targetHandle:"step-02_target",labelBBox:{width:157,height:27}},{id:"step-03",sourceHandle:"step-03_source",targetHandle:"step-03_target",labelBBox:{width:172,height:27}},{id:"step-04",sourceHandle:"step-04_source",targetHandle:"step-04_target",labelBBox:{width:225,height:27}},{id:"step-05",sourceHandle:"step-05_source",targetHandle:"step-05_target",labelBBox:{width:93,height:27}},{id:"step-06",sourceHandle:"step-06_source",targetHandle:"step-06_target",labelBBox:{width:220,height:27}},{id:"step-07",sourceHandle:"step-07_source",targetHandle:"step-07_target",labelBBox:{width:220,height:27}},{id:"step-08",sourceHandle:"step-08_source",targetHandle:"step-08_target",labelBBox:{width:81,height:27}},{id:"step-09",sourceHandle:"step-09_source",targetHandle:"step-09_target",labelBBox:{width:81,height:27}},{id:"step-10",sourceHandle:"step-10_source",targetHandle:"step-10_target",labelBBox:{width:145,height:27}},{id:"step-11",sourceHandle:"step-11_source",targetHandle:"step-11_target",labelBBox:{width:108,height:27}},{id:"step-12",sourceHandle:"step-12_source",targetHandle:"step-12_target",labelBBox:{width:125,height:27}},{id:"step-13",sourceHandle:"step-13_source",targetHandle:"step-13_target",labelBBox:{width:120,height:27}},{id:"step-14",sourceHandle:"step-14_source",targetHandle:"step-14_target",labelBBox:{width:164,height:27}},{id:"step-15",sourceHandle:"step-15_source",targetHandle:"step-15_target",labelBBox:{width:113,height:27}},{id:"step-16",sourceHandle:"step-16_source",targetHandle:"step-16_target",labelBBox:{width:205,height:27}},{id:"step-17",sourceHandle:"step-17_source",targetHandle:"step-17_target",labelBBox:{width:135,height:27}},{id:"step-18",sourceHandle:"step-18_source",targetHandle:"step-18_target",labelBBox:{width:231,height:27}},{id:"step-19",sourceHandle:"step-19_source",targetHandle:"step-19_target",labelBBox:{width:177,height:27}}],parallelAreas:[],bounds:{x:0,y:0,width:2041,height:1875}},bounds:{x:0,y:0,width:2985,height:1512},nodes:[{id:"edp",parent:null,level:0,children:["edp.forgejo","edp.garm"],inEdges:["step-06","step-10","step-11","step-13"],outEdges:["step-03","step-04","step-09","step-18","step-19"],title:"EDP",modelRef:"edp",shape:"rectangle",color:"primary",icon:"tech:kubernetes",style:{opacity:15,size:"md"},description:{txt:"EDP Edge Development Platform"},tags:[],technology:"Kubernetes",kind:"system",depth:2,navigateTo:"edp",x:8,y:81,width:1831,height:712,labelBBox:{x:6,y:0,width:27,height:15}},{id:"edp.forgejo",parent:"edp",level:1,children:[],inEdges:["step-07","step-10","step-11","step-13","step-14"],outEdges:["step-01","step-08","step-14","step-16"],title:"Forgejo",modelRef:"edp.forgejo",shape:"rectangle",color:"primary",icon:"tech:go",style:{opacity:20,size:"md"},description:{txt:`Fully managed DevOps Platform offering capabilities like code version controling collaboration and ticketing -and security scanning`},tags:[],technology:"Golang",kind:"container",isCustomized:!0,navigateTo:"forgejo",x:585,y:69,width:340,height:180,labelBBox:{x:45,y:17,width:279,height:139}}],edges:[{id:"step-01",source:"localbox.git",target:"edp.forgejogit",label:"git push",dotpos:"e,594.97,449 359.74,449 430.11,449 512.98,449 584.5,449",points:[[360,449],[430,449],[513,449],[585,449]],labelBBox:{x:429,y:417,width:75,height:19},parent:null,relations:[],color:"gray",line:"dashed",head:"normal",tags:[],astPath:"/steps@0"},{id:"step-02",source:"edp.forgejogit",target:"forgejoRunner",label:"on push",dotpos:"e,1243.2,909.08 895.71,538.9 1008.4,612.21 1151.2,707.77 1171.7,734 1218.9,794.54 1183.7,836.08 1231.7,896 1233.2,897.83 1234.7,899.63 1236.2,901.41",points:[[896,539],[1008,612],[1151,708],[1172,734],[1219,795],[1184,836],[1232,896],[1233,898],[1235,900],[1236,901]],labelBBox:{x:1051,y:582,width:76,height:19},parent:null,relations:[],color:"gray",line:"dashed",head:"normal",tags:[],astPath:"/steps@1"},{id:"step-03",source:"forgejoRunner",target:"edp.imageregistry",label:"pushes new image",dotpos:"e,823.44,828.86 1231.8,1011.9 1158.8,1011.9 1072.7,1003.2 1001.2,971.8 934.18,942.34 874.24,886.42 830.35,836.77",points:[[1232,1012],[1159,1012],[1073,1003],[1001,972],[934,942],[874,886],[830,837]],labelBBox:{x:1018,y:940,width:143,height:19},parent:null,relations:[],color:"gray",line:"dashed",head:"normal",tags:[],astPath:"/steps@2"},{id:"step-04",source:"forgejoRunner",target:"edp.forgejogit",label:"pushes new appspec",dotpos:"s,892.11,538.97 899.79,546.08 915.25,560.79 929.55,576.84 941.18,594 994.62,672.87 940.47,726.37 1001.2,799.8 1033.6,839.02 1138.8,891.76 1231.7,933.12",points:[[900,546],[915,561],[930,577],[941,594],[995,673],[940,726],[1001,800],[1034,839],[1139,892],[1232,933]],labelBBox:{x:1010,y:768,width:158,height:19},dir:"back",parent:null,relations:[],color:"gray",line:"dashed",head:"normal",tags:[],astPath:"/steps@3"},{id:"step-05",source:"edp.forgejogit",target:"edp.argoCD",label:"triggers deployment",dotpos:"e,1231.9,550.99 914.25,482.97 1007.9,503.03 1126.5,528.41 1221.9,548.84",points:[[914,483],[1008,503],[1126,528],[1222,549]],labelBBox:{x:1015,y:473,width:148,height:19},parent:"edp",relations:[],color:"gray",line:"dashed",head:"normal",tags:[],astPath:"/steps@4"},{id:"step-06",source:"edp.argoCD",target:"cloud",label:"deploys application",dotpos:"e,1894.7,1063.3 1486.9,674.69 1596,778.69 1775.3,949.49 1887.4,1056.4",points:[[1487,675],[1596,779],[1775,949],[1887,1056]],labelBBox:{x:1621,y:769,width:145,height:19},parent:null,relations:[],color:"gray",line:"dashed",head:"normal",tags:[],astPath:"/steps@5"},{id:"step-07",source:"cloud",target:"edp.imageregistry",label:"pulls image",dotpos:"s,812.1,828.53 817.94,836.93 897.44,950.49 1047,1129 1231.7,1182.8 1431.9,1241.1 1674.4,1215.8 1830.1,1188.1",points:[[818,837],[897,950],[1047,1129],[1232,1183],[1432,1241],[1674,1216],[1830,1188]],labelBBox:{x:1346,y:1151,width:97,height:19},dir:"back",parent:null,relations:[],color:"gray",line:"dashed",head:"normal",tags:[],astPath:"/steps@6"}]},edpbuilderworkflow:{_type:"element",tags:null,links:null,viewOf:"edfbuilder",_stage:"layouted",sourcePath:"views/edp/edfbuilder.c4",description:{txt:"Describes the process how to create an EDP instance"},title:"edfbuilder",id:"edpbuilderworkflow",autoLayout:{direction:"LR",nodeSep:110,rankSep:120},hash:"40921acf4f52bd8d6d2ac3a0d1810b3b7bc13b2a",bounds:{x:0,y:0,width:320,height:180},nodes:[{id:"edfbuilder",parent:null,level:0,children:[],inEdges:[],outEdges:[],title:"edfbuilder",modelRef:"edfbuilder",shape:"rectangle",color:"primary",icon:"tech:go",style:{opacity:15,size:"md"},description:{txt:"EDP Foundry Builder"},tags:[],technology:"Golang",kind:"component",x:0,y:0,width:320,height:180,labelBBox:{x:74,y:53,width:203,height:67}}],edges:[]},edp:{_type:"element",tags:null,links:null,viewOf:"edp",_stage:"layouted",sourcePath:"views/edp/edp.c4",description:null,title:"Context view",id:"edp",autoLayout:{direction:"TB"},hash:"28d4204eb300a4296f82769be0ee6d6ba8d0882b",bounds:{x:0,y:0,width:5229,height:943},nodes:[{id:"forgejoRunner",parent:null,level:0,children:[],inEdges:["stl3mw"],outEdges:["1cy1y20"],title:"Forgejo Runner",modelRef:"forgejoRunner",shape:"rectangle",color:"primary",style:{opacity:25,size:"md"},description:{txt:"A runner is a service that runs jobs triggered by Forgejo. A runner can have different technical implementations like a container or a VM."},tags:[],kind:"component",x:0,y:392,width:320,height:180,labelBBox:{x:23,y:36,width:274,height:102}},{id:"developer",parent:null,level:0,children:[],inEdges:[],outEdges:["1y3lcyj","1ttqc1r","170qzun","1bt83vj","1nv0w41","1agven9","3nxrq7","bfgapq"],title:"Developer",modelRef:"developer",shape:"person",color:"green",style:{opacity:25,size:"md"},description:{txt:"The regular user of the platform"},tags:[],kind:"actor",x:4909,y:69,width:320,height:180,labelBBox:{x:53,y:63,width:214,height:48}},{id:"edp",parent:null,level:0,children:["edp.forgejoActions","edp.api","edp.argoCD","edp.ui","edp.forgejo","edp.imageregistry","edp.grafana","edp.keycloak","edp.forgejogit","edp.loki","edp.prometheus","edp.mailhog","edp.minio","edp.monitoring","edp.openbao","edp.testApp","edp.application"],inEdges:["1cy1y20","1y3lcyj","1ttqc1r","170qzun","1bt83vj","1nv0w41","1agven9","3nxrq7","bfgapq"],outEdges:["stl3mw"],title:"EDP",modelRef:"edp",shape:"rectangle",color:"primary",icon:"tech:kubernetes",style:{opacity:25,size:"md"},description:{txt:"EDP Edge Development Platform"},tags:[],technology:"Kubernetes",kind:"system",depth:1,navigateTo:"idp",x:390,y:8,width:4479,height:927,labelBBox:{x:6,y:0,width:27,height:15}},{id:"edp.forgejoActions",parent:"edp",level:1,children:[],inEdges:["1cy1y20"],outEdges:["stl3mw"],title:"Forgejo Actions",modelRef:"edp.forgejoActions",shape:"rectangle",color:"primary",icon:"tech:go",style:{opacity:25,size:"md"},description:{txt:"Continuous Integration like Github Actions"},tags:[],technology:"Golang",kind:"component",x:430,y:69,width:350,height:180,labelBBox:{x:46,y:44,width:288,height:86}},{id:"edp.api",parent:"edp",level:1,children:[],inEdges:["1y3lcyj"],outEdges:[],title:"API",modelRef:"edp.api",shape:"rectangle",color:"primary",icon:"tech:swagger",style:{opacity:25,size:"md"},description:{txt:"API for the EDP platform"},tags:[],kind:"container",x:3649,y:392,width:320,height:180,labelBBox:{x:62,y:63,width:226,height:48}},{id:"edp.argoCD",parent:"edp",level:1,children:[],inEdges:["1ttqc1r"],outEdges:["f6xyb4"],title:"ArgoCD",modelRef:"edp.argoCD",shape:"rectangle",color:"primary",style:{opacity:25,size:"md"},description:{txt:"GitOps Service"},tags:[],kind:"container",navigateTo:"argoCD",x:4079,y:392,width:320,height:180,labelBBox:{x:108,y:63,width:105,height:48}},{id:"edp.ui",parent:"edp",level:1,children:[],inEdges:["170qzun"],outEdges:[],title:"Backstage",modelRef:"edp.ui",shape:"rectangle",color:"primary",style:{opacity:25,size:"md"},description:{txt:"Developer Portal"},tags:[],kind:"container",x:4509,y:392,width:320,height:180,labelBBox:{x:102,y:63,width:116,height:48}},{id:"edp.forgejo",parent:"edp",level:1,children:[],inEdges:["1bt83vj"],outEdges:[],title:"Forgejo",modelRef:"edp.forgejo",shape:"rectangle",color:"primary",icon:"tech:go",style:{opacity:25,size:"md"},description:{txt:`Fully managed DevOps Platform +and security scanning`},tags:[],technology:"Golang",kind:"container",isCustomized:!0,navigateTo:"forgejo",x:48,y:553,width:340,height:180,labelBBox:{x:46,y:17,width:279,height:139}},{id:"edp.garm",parent:"edp",level:1,children:["edp.garm.garm","edp.garm.providerEdgeConnect"],inEdges:["step-01","step-06","step-08","step-16"],outEdges:["step-03","step-04","step-07","step-09","step-18","step-19"],title:"Garm Image",modelRef:"edp.garm",shape:"rectangle",color:"primary",icon:"tech:docker",style:{opacity:20,size:"md"},tags:[],kind:"container",depth:1,x:709,y:142,width:1090,height:404,labelBBox:{x:6,y:0,width:77,height:15}},{id:"edp.garm.garm",parent:"edp.garm",level:2,children:[],inEdges:["step-01","step-06","step-08","step-16"],outEdges:["step-02","step-07","step-09","step-17"],title:"Garm",modelRef:"edp.garm.garm",shape:"rectangle",color:"primary",icon:"tech:go",style:{opacity:15,size:"md"},description:{txt:"Provisions runners for Forgejo"},tags:[],kind:"component",x:749,y:316,width:325,height:180,labelBBox:{x:47,y:63,width:262,height:47}},{id:"edp.garm.providerEdgeConnect",parent:"edp.garm",level:2,children:[],inEdges:["step-02","step-17"],outEdges:["step-03","step-04","step-18","step-19"],title:"Garm Provider for EdgeConnect",modelRef:"edp.garm.providerEdgeConnect",shape:"rectangle",color:"primary",icon:"tech:go",style:{opacity:15,size:"md"},description:{txt:"Acts as abstraction layer for EdgeConnect"},tags:[],kind:"component",x:1349,y:203,width:409,height:180,labelBBox:{x:47,y:54,width:347,height:65}},{id:"edgeConnect",parent:null,level:0,children:[],inEdges:["step-03","step-04","step-18","step-19"],outEdges:["step-05"],title:"Edge Connect",modelRef:"edgeConnect",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Provides an API to run applications on the edge"},tags:[],kind:"component",x:2135,y:169,width:320,height:180,labelBBox:{x:18,y:54,width:283,height:65}},{id:"forgejoRunner",parent:null,level:0,children:[],inEdges:["step-05","step-09","step-12","step-15"],outEdges:["step-06","step-10","step-11","step-12","step-13","step-15"],title:"Forgejo Runner",modelRef:"forgejoRunner",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"A runner is a service that runs jobs triggered by Forgejo. A runner can have different technical implementations like a container or a VM."},tags:[],kind:"component",x:2665,y:810,width:320,height:180,labelBBox:{x:23,y:36,width:274,height:101}}],edges:[{id:"step-01",source:"edp.forgejo",target:"edp.garm.garm",label:"(Webhook) A new job is pending",points:[[389,687],[482,703],[596,707],[689,664],[761,631],[818,563],[857,504]],labelBBox:{x:458,y:632,width:228,height:19},parent:"edp",relations:[],color:"gray",line:"dashed",head:"normal",tags:[],astPath:"/steps@0"},{id:"step-02",source:"edp.garm.garm",target:"edp.garm.providerEdgeConnect",label:"Create new runner",points:[[1074,428],[1142,433],[1220,433],[1289,417],[1321,410],[1352,399],[1383,387]],labelBBox:{x:1144,y:385,width:141,height:19},parent:"edp.garm",relations:["1olxwwi"],color:"gray",line:"dashed",head:"normal",tags:[],astPath:"/steps@1"},{id:"step-03",source:"edp.garm.providerEdgeConnect",target:"edgeConnect",label:"Create App (Runner)",points:[[1639,203],[1692,152],[1767,92],[1847,65],[1943,32],[1980,29],[2075,65],[2128,85],[2176,124],[2214,162]],labelBBox:{x:1886,y:7,width:156,height:19},parent:null,relations:[],color:"gray",line:"dashed",head:"normal",tags:[],astPath:"/steps@2"},{id:"step-04",source:"edp.garm.providerEdgeConnect",target:"edgeConnect",label:"Create AppInstance (Runner)",points:[[1759,234],[1788,228],[1818,222],[1847,219],[1948,206],[1974,210],[2075,219],[2091,220],[2108,222],[2125,225]],labelBBox:{x:1859,y:178,width:209,height:19},parent:null,relations:[],color:"gray",line:"dashed",head:"normal",tags:[],astPath:"/steps@3"},{id:"step-05",source:"edgeConnect",target:"forgejoRunner",label:"Deploys",points:[[2448,349],[2502,386],[2560,432],[2605,484],[2687,579],[2750,711],[2787,800]],labelBBox:{x:2524,y:372,width:77,height:19},parent:null,relations:[],color:"gray",line:"dashed",head:"normal",tags:[],astPath:"/steps@4"},{id:"step-06",source:"forgejoRunner",target:"edp.garm.garm",label:"Get runner registration token",points:[[1084,448],[1101,452],[1118,455],[1134,459],[1784,591],[2007,420],[2605,706],[2657,731],[2706,772],[2745,810]],labelBBox:{x:1862,y:491,width:204,height:19},dir:"back",parent:null,relations:[],color:"gray",line:"dashed",head:"normal",tags:[],astPath:"/steps@5"},{id:"step-07",source:"edp.garm.garm",target:"edp.forgejo",label:"Get runner registration token",points:[[399,600],[488,577],[595,546],[689,510],[709,503],[730,495],[750,486]],labelBBox:{x:470,y:478,width:204,height:19},dir:"back",parent:"edp",relations:[],color:"gray",line:"dashed",head:"normal",tags:[],astPath:"/steps@6"},{id:"step-08",source:"edp.forgejo",target:"edp.garm.garm",label:"Token",points:[[300,553],[341,514],[393,472],[449,449],[540,410],[650,399],[739,397]],labelBBox:{x:539,y:368,width:65,height:19},parent:"edp",relations:[],color:"gray",line:"dashed",head:"normal",tags:[],astPath:"/steps@7"},{id:"step-09",source:"edp.garm.garm",target:"forgejoRunner",label:"Token",points:[[1074,487],[1094,496],[1115,504],[1134,511],[1676,699],[2346,822],[2654,873]],labelBBox:{x:1931,y:682,width:65,height:19},parent:null,relations:[],color:"gray",line:"dashed",head:"normal",tags:[],astPath:"/steps@8"},{id:"step-10",source:"forgejoRunner",target:"edp.forgejo",label:"Register runner",points:[[399,713],[415,718],[432,722],[449,726],[1184,886],[1385,807],[2135,865],[2304,878],[2346,883],[2515,892],[2564,894],[2617,896],[2665,897]],labelBBox:{x:1492,y:803,width:129,height:19},dir:"back",parent:null,relations:[],color:"gray",line:"dashed",head:"normal",tags:[],astPath:"/steps@9"},{id:"step-11",source:"forgejoRunner",target:"edp.forgejo",label:"Fetch job",points:[[272,741],[371,914],[606,1253],[911,1253],[911,1253],[911,1253],[2296,1253],[2485,1253],[2658,1094],[2751,990]],labelBBox:{x:1511,y:1220,width:92,height:19},dir:"back",parent:null,relations:[],color:"gray",line:"dashed",head:"normal",tags:[],astPath:"/steps@10"},{id:"step-12",source:"forgejoRunner",target:"forgejoRunner",label:"Work on job",points:[[2802,810],[2796,753],[2804,700],[2825,700],[2845,700],[2852,747],[2849,799]],labelBBox:{x:2773,y:667,width:109,height:19},parent:null,relations:[],color:"gray",line:"dashed",head:"normal",tags:[],astPath:"/steps@11"},{id:"step-13",source:"forgejoRunner",target:"edp.forgejo",label:"Send result",points:[[240,743],[268,866],[332,1075],[449,1217],[604,1404],[667,1512],[911,1512],[911,1512],[911,1512],[2296,1512],[2568,1512],[2731,1160],[2794,990]],labelBBox:{x:1505,y:1479,width:104,height:19},dir:"back",parent:null,relations:[],color:"gray",line:"dashed",head:"normal",tags:[],astPath:"/steps@12"},{id:"step-14",source:"edp.forgejo",target:"edp.forgejo",label:"Deregister Runner",points:[[157,553],[142,496],[163,443],[218,443],[271,443],[292,490],[282,542]],labelBBox:{x:147,y:410,width:148,height:19},parent:"edp",relations:[],color:"gray",line:"dashed",head:"normal",tags:[],astPath:"/steps@13"},{id:"step-15",source:"forgejoRunner",target:"forgejoRunner",label:"Terminate",points:[[2788,810],[2763,708],[2775,590],[2825,590],[2873,590],[2886,700],[2864,800]],labelBBox:{x:2779,y:557,width:97,height:19},parent:null,relations:[],color:"gray",line:"dashed",head:"normal",tags:[],astPath:"/steps@14"},{id:"step-16",source:"edp.forgejo",target:"edp.garm.garm",label:"(Webhook) A job finished",points:[[258,553],[295,479],[358,379],[449,334],[538,289],[649,304],[740,332]],labelBBox:{x:477,y:273,width:189,height:19},parent:"edp",relations:[],color:"gray",line:"dashed",head:"normal",tags:[],astPath:"/steps@15"},{id:"step-17",source:"edp.garm.garm",target:"edp.garm.providerEdgeConnect",label:"Delete runner",points:[[1074,368],[1094,363],[1115,359],[1134,356],[1201,343],[1274,332],[1340,322]],labelBBox:{x:1155,y:298,width:119,height:19},parent:"edp.garm",relations:["1olxwwi"],color:"gray",line:"dashed",head:"normal",tags:[],astPath:"/steps@16"},{id:"step-18",source:"edp.garm.providerEdgeConnect",target:"edgeConnect",label:"Delete AppInstance (Runner)",points:[[1759,294],[1855,294],[1971,291],[2075,284],[2091,283],[2108,282],[2125,280]],labelBBox:{x:1856,y:252,width:215,height:19},parent:null,relations:[],color:"gray",line:"dashed",head:"normal",tags:[],astPath:"/steps@17"},{id:"step-19",source:"edp.garm.providerEdgeConnect",target:"edgeConnect",label:"Delete App (Runner)",points:[[1759,350],[1856,369],[1972,381],[2075,358],[2092,355],[2109,350],[2126,344]],labelBBox:{x:1883,y:326,width:161,height:19},parent:null,relations:[],color:"gray",line:"dashed",head:"normal",tags:[],astPath:"/steps@18"}]},"view_gitops-inner-outer-loop_15":{_type:"dynamic",tags:null,links:null,_stage:"layouted",sourcePath:"views/dynamic/cicd/gitops-inner-outer-loop.c4",description:null,title:"outer-ci-loop",id:"view_gitops-inner-outer-loop_15",variant:"diagram",autoLayout:{direction:"LR"},hash:"d85bdffdca5f49220457db75761ae8ba47744c16",sequenceLayout:{actors:[{id:"localbox.git",x:32,y:52,width:320,height:180,ports:[{id:"step-01_source",cx:160,cy:338,height:40,type:"source",position:"right"}]},{id:"edp.forgejogit",x:448,y:52,width:320,height:180,ports:[{id:"step-01_target",cx:160,cy:338,height:24,type:"target",position:"left"},{id:"step-02_source",cx:160,cy:360,height:40,type:"source",position:"right"},{id:"step-04_target",cx:160,cy:475,height:24,type:"target",position:"right"},{id:"step-05_source",cx:160,cy:568,height:40,type:"source",position:"right"}]},{id:"forgejoRunner",x:832,y:52,width:320,height:180,ports:[{id:"step-02_target",cx:160,cy:360,height:24,type:"target",position:"left"},{id:"step-03_source",cx:160,cy:382,height:40,type:"source",position:"right"},{id:"step-04_source",cx:160,cy:475,height:40,type:"source",position:"left"}]},{id:"edp.imageregistry",x:1216,y:52,width:373,height:180,ports:[{id:"step-03_target",cx:187,cy:382,height:24,type:"target",position:"left"},{id:"step-07_target",cx:187,cy:683,height:24,type:"target",position:"right"}]},{id:"edp.argoCD",x:1649,y:52,width:320,height:180,ports:[{id:"step-05_target",cx:160,cy:568,height:24,type:"target",position:"left"},{id:"step-06_source",cx:160,cy:590,height:40,type:"source",position:"right"}]},{id:"cloud",x:2033,y:52,width:320,height:180,ports:[{id:"step-06_target",cx:160,cy:590,height:24,type:"target",position:"left"},{id:"step-07_source",cx:160,cy:683,height:40,type:"source",position:"left"}]}],compounds:[{depth:0,x:0,y:0,width:384,height:527,id:"localbox",origin:"localbox"},{depth:0,x:416,y:0,width:384,height:735,id:"edp-1",origin:"edp"},{depth:0,x:1184,y:0,width:817,height:828,id:"edp-2",origin:"edp"}],steps:[{id:"step-01",sourceHandle:"step-01_source",targetHandle:"step-01_target",labelBBox:{width:91,height:27}},{id:"step-02",sourceHandle:"step-02_source",targetHandle:"step-02_target",labelBBox:{width:92,height:27}},{id:"step-03",sourceHandle:"step-03_source",targetHandle:"step-03_target",labelBBox:{width:159,height:27}},{id:"step-04",sourceHandle:"step-04_source",targetHandle:"step-04_target",labelBBox:{width:174,height:27}},{id:"step-05",sourceHandle:"step-05_source",targetHandle:"step-05_target",labelBBox:{width:164,height:27}},{id:"step-06",sourceHandle:"step-06_source",targetHandle:"step-06_target",labelBBox:{width:161,height:27}},{id:"step-07",sourceHandle:"step-07_source",targetHandle:"step-07_target",labelBBox:{width:113,height:27}}],parallelAreas:[],bounds:{x:0,y:0,width:2353,height:828}},bounds:{x:0,y:0,width:2150,height:1243},nodes:[{id:"localbox",parent:null,level:0,children:["localbox.git"],inEdges:[],outEdges:["step-01"],title:"localbox",modelRef:"localbox",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"A local development system"},tags:[],technology:"Linux/Windows/Mac",kind:"system",depth:1,x:8,y:306,width:384,height:265,labelBBox:{x:6,y:0,width:66,height:15}},{id:"localbox.git",parent:"localbox",level:1,children:[],inEdges:[],outEdges:["step-01"],title:"git",modelRef:"localbox.git",shape:"rectangle",color:"primary",icon:"tech:git",style:{opacity:15,size:"md"},description:{txt:"local git"},tags:[],technology:"Git",kind:"component",x:40,y:359,width:320,height:180,labelBBox:{x:119,y:53,width:113,height:67}},{id:"edp",parent:null,level:0,children:["edp.forgejogit","edp.imageregistry","edp.argoCD","edp.forgejo"],inEdges:["step-01","step-03","step-04","step-07"],outEdges:["step-02","step-06"],title:"EDP",modelRef:"edp",shape:"rectangle",color:"secondary",icon:"tech:kubernetes",style:{opacity:15,size:"md"},description:{txt:"EDP Edge Development Platform"},tags:[],technology:"Kubernetes",kind:"system",depth:1,navigateTo:"edp",x:528,y:8,width:1064,height:861,labelBBox:{x:6,y:0,width:27,height:15}},{id:"edp.forgejogit",parent:"edp",level:1,children:[],inEdges:["step-01","step-04"],outEdges:["step-02","step-05"],title:"ForgejoGit",modelRef:"edp.forgejogit",shape:"rectangle",color:"secondary",icon:"tech:git",style:{opacity:15,size:"md"},tags:[],kind:"component",x:595,y:359,width:320,height:180,labelBBox:{x:97,y:74,width:155,height:24}},{id:"forgejoRunner",parent:null,level:0,children:[],inEdges:["step-02"],outEdges:["step-03","step-04"],title:"Forgejo Runner",modelRef:"forgejoRunner",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"A runner is a service that runs jobs triggered by Forgejo. A runner can have different technical implementations like a container or a VM."},tags:[],kind:"component",x:1232,y:909,width:320,height:180,labelBBox:{x:23,y:36,width:274,height:102}},{id:"edp.imageregistry",parent:"edp",level:1,children:[],inEdges:["step-03","step-07"],outEdges:[],title:"Forgejo OCI Image Registry",modelRef:"edp.imageregistry",shape:"rectangle",color:"secondary",icon:"tech:go",style:{opacity:15,size:"md"},description:{txt:"Container Image Registry"},tags:[],technology:"Golang",kind:"component",x:568,y:649,width:373,height:180,labelBBox:{x:46,y:53,width:311,height:67}},{id:"edp.argoCD",parent:"edp",level:1,children:[],inEdges:["step-05"],outEdges:["step-06"],title:"ArgoCD",modelRef:"edp.argoCD",shape:"rectangle",color:"secondary",style:{opacity:20,size:"md"},description:{txt:"GitOps Service"},tags:[],kind:"container",navigateTo:"argoCD",x:1232,y:495,width:320,height:180,labelBBox:{x:107,y:63,width:105,height:48}},{id:"cloud",parent:null,level:0,children:[],inEdges:["step-06"],outEdges:["step-07"],title:"Cloud",modelRef:"cloud",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Cloud environments"},tags:[],technology:"IaaS/PaaS",kind:"system",x:1830,y:1063,width:320,height:180,labelBBox:{x:91,y:53,width:137,height:67}},{id:"edp.forgejo",parent:"edp",level:1,children:[],inEdges:[],outEdges:[],title:"Forgejo",modelRef:"edp.forgejo",shape:"rectangle",color:"gray",icon:"tech:go",style:{opacity:20,size:"md"},description:{txt:`Fully managed DevOps Platform offering capabilities like code version controling collaboration and ticketing -and security scanning`},tags:[],technology:"Golang",kind:"container",navigateTo:"forgejo",x:1830,y:392,width:340,height:180,labelBBox:{x:46,y:17,width:278,height:139}},{id:"edp.imageregistry",parent:"edp",level:1,children:[],inEdges:["1nv0w41"],outEdges:[],title:"Forgejo OCI Image Registry",modelRef:"edp.imageregistry",shape:"rectangle",color:"primary",icon:"tech:go",style:{opacity:25,size:"md"},description:{txt:"Container Image Registry"},tags:[],technology:"Golang",kind:"component",x:2280,y:392,width:373,height:180,labelBBox:{x:47,y:53,width:311,height:67}},{id:"edp.grafana",parent:"edp",level:1,children:[],inEdges:["3nxrq7"],outEdges:["1tfxhhz","1adt45o"],title:"Grafana",modelRef:"edp.grafana",shape:"rectangle",color:"primary",icon:"tech:grafana",style:{opacity:25,size:"md"},description:{txt:"Data visualization and monitoring"},tags:[],kind:"container",x:2763,y:392,width:345,height:180,labelBBox:{x:47,y:63,width:283,height:48}},{id:"edp.keycloak",parent:"edp",level:1,children:[],inEdges:["bfgapq"],outEdges:[],title:"Keycloak",modelRef:"edp.keycloak",shape:"rectangle",color:"primary",style:{opacity:25,size:"md"},description:{txt:"Single Sign On for all EDP products"},tags:[],kind:"container",navigateTo:"keycloak",x:3219,y:392,width:320,height:180,labelBBox:{x:39,y:63,width:242,height:48}},{id:"edp.forgejogit",parent:"edp",level:1,children:[],inEdges:["1agven9","f6xyb4"],outEdges:[],title:"ForgejoGit",modelRef:"edp.forgejogit",shape:"rectangle",color:"primary",icon:"tech:git",style:{opacity:25,size:"md"},tags:[],kind:"component",x:4079,y:715,width:320,height:180,labelBBox:{x:97,y:74,width:156,height:24}},{id:"edp.loki",parent:"edp",level:1,children:[],inEdges:["1tfxhhz"],outEdges:[],title:"Loki",modelRef:"edp.loki",shape:"rectangle",color:"primary",style:{opacity:25,size:"md"},description:{txt:"Log aggregation system"},tags:[],kind:"container",x:2561,y:715,width:320,height:180,labelBBox:{x:78,y:63,width:164,height:47}},{id:"edp.prometheus",parent:"edp",level:1,children:[],inEdges:["1adt45o"],outEdges:[],title:"Prometheus",modelRef:"edp.prometheus",shape:"rectangle",color:"primary",icon:"tech:prometheus",style:{opacity:25,size:"md"},description:{txt:"Monitoring and alerting toolkit"},tags:[],kind:"container",x:2991,y:715,width:320,height:180,labelBBox:{x:46,y:63,width:258,height:47}},{id:"edp.mailhog",parent:"edp",level:1,children:[],inEdges:[],outEdges:[],title:"Mailhog",modelRef:"edp.mailhog",shape:"rectangle",color:"primary",style:{opacity:25,size:"md"},description:{txt:"Web and API based SMTP testing"},tags:[],kind:"container",navigateTo:"mailhog",x:890,y:69,width:320,height:180,labelBBox:{x:44,y:63,width:232,height:48}},{id:"edp.minio",parent:"edp",level:1,children:[],inEdges:[],outEdges:[],title:"Minio",modelRef:"edp.minio",shape:"rectangle",color:"primary",style:{opacity:25,size:"md"},description:{txt:"S3 compatible blob storage"},tags:[],kind:"container",navigateTo:"minio",x:1320,y:69,width:320,height:180,labelBBox:{x:67,y:63,width:186,height:48}},{id:"edp.monitoring",parent:"edp",level:1,children:[],inEdges:[],outEdges:[],title:"Monitoring",modelRef:"edp.monitoring",shape:"rectangle",color:"primary",style:{opacity:25,size:"md"},description:{txt:"Observability system to monitor deployed components"},tags:[],kind:"container",navigateTo:"monitoring",x:1860,y:69,width:320,height:180,labelBBox:{x:21,y:54,width:278,height:66}},{id:"edp.openbao",parent:"edp",level:1,children:[],inEdges:[],outEdges:[],title:"OpenBao",modelRef:"edp.openbao",shape:"rectangle",color:"primary",style:{opacity:25,size:"md"},description:{txt:"Secure secret storage"},tags:[],kind:"container",x:430,y:392,width:320,height:180,labelBBox:{x:85,y:63,width:151,height:48}},{id:"edp.testApp",parent:"edp",level:1,children:[],inEdges:[],outEdges:[],title:"Fibonacci",modelRef:"edp.testApp",shape:"rectangle",color:"primary",style:{opacity:25,size:"md"},description:{txt:"Testapp to validate deployments"},tags:[],kind:"container",navigateTo:"testapp",x:860,y:392,width:320,height:180,labelBBox:{x:50,y:63,width:220,height:48}},{id:"edp.application",parent:"edp",level:1,children:[],inEdges:[],outEdges:[],title:"application",modelRef:"edp.application",shape:"rectangle",color:"primary",style:{opacity:25,size:"md"},description:{txt:"An application description"},tags:[],technology:"DSL",kind:"schema",x:1400,y:392,width:320,height:180,labelBBox:{x:73,y:53,width:175,height:67}}],edges:[{id:"1cy1y20",source:"forgejoRunner",target:"edp.forgejoActions",label:"register",dotpos:"e,430.23,247.69 241.41,392.19 269.67,363.9 302.52,333.63 335.34,309.2 362.09,289.28 391.8,270.23 421.45,252.8",points:[[241,392],[270,364],[303,334],[335,309],[362,289],[392,270],[421,253]],labelBBox:{x:336,y:309,width:51,height:18},parent:null,relations:["18dtot7"],color:"gray",line:"dashed",head:"normal"},{id:"1y3lcyj",source:"developer",target:"edp.api",label:"uses API",dotpos:"e,3968.7,410.28 4909.1,244.68 4904.7,246.27 4900.4,247.79 4896,249.2 4732.6,302.52 4683.6,281.55 4514,309.2 4296,344.73 4236.3,330.98 4024,392 4009,396.32 3993.6,401.37 3978.3,406.83",points:[[4909,245],[4905,246],[4900,248],[4896,249],[4733,303],[4684,282],[4514,309],[4296,345],[4236,331],[4024,392],[4009,396],[3994,401],[3978,407]],labelBBox:{x:4515,y:309,width:60,height:18},parent:null,relations:["1l9a3pd"],color:"gray",line:"dashed",head:"normal"},{id:"1ttqc1r",source:"developer",target:"edp.argoCD",label:"manages deployments",dotpos:"e,4398.9,414.45 4909.4,243.91 4904.9,245.75 4900.4,247.51 4896,249.2 4797,287.01 4766,276.46 4665.2,309.2 4569.3,340.33 4547.5,354.32 4454,392 4439.2,397.97 4423.8,404.22 4408.4,410.52",points:[[4909,244],[4905,246],[4900,248],[4896,249],[4797,287],[4766,276],[4665,309],[4569,340],[4548,354],[4454,392],[4439,398],[4424,404],[4408,411]],labelBBox:{x:4666,y:309,width:145,height:18},parent:null,relations:["1ghp31l"],color:"gray",line:"dashed",head:"normal"},{id:"170qzun",source:"developer",target:"edp.ui",label:"manages project",dotpos:"e,4767.9,392.21 4944.9,249.03 4918.7,268.47 4891.5,289.22 4866.5,309.2 4836.5,333.25 4804.7,360.19 4775.6,385.47",points:[[4945,249],[4919,268],[4891,289],[4867,309],[4836,333],[4805,360],[4776,385]],labelBBox:{x:4868,y:309,width:108,height:18},parent:null,relations:["yk9zv2","1woleh6"],color:"gray",line:"dashed",head:"normal"},{id:"1bt83vj",source:"developer",target:"edp.forgejo",label:"manages code",dotpos:"e,2170.2,408.41 4909.3,245.41 4904.9,246.79 4900.4,248.06 4896,249.2 4470.7,359.05 3358.2,276.52 2920.2,309.2 2609.9,332.34 2526.7,315.74 2225,392 2210.2,395.74 2195.1,400.2 2180.1,405.12",points:[[4909,245],[4905,247],[4900,248],[4896,249],[4471,359],[3358,277],[2920,309],[2610,332],[2527,316],[2225,392],[2210,396],[2195,400],[2180,405]],labelBBox:{x:2921,y:309,width:96,height:18},parent:null,relations:["12036hb"],color:"gray",line:"dashed",head:"normal"},{id:"1nv0w41",source:"developer",target:"edp.imageregistry",label:"pushes and pull images",dotpos:"e,2653.6,407.48 4909.3,245.36 4904.9,246.76 4900.4,248.04 4896,249.2 4562.4,336.85 3688.7,280.27 3344.9,309.2 3060.5,333.14 2985.2,323.73 2708,392 2693.4,395.61 2678.4,399.82 2663.4,404.41",points:[[4909,245],[4905,247],[4900,248],[4896,249],[4562,337],[3689,280],[3345,309],[3060,333],[2985,324],[2708,392],[2693,396],[2678,400],[2663,404]],labelBBox:{x:3346,y:309,width:151,height:18},parent:null,relations:["177bm2y"],color:"gray",line:"dashed",head:"normal"},{id:"1agven9",source:"developer",target:"edp.forgejogit",label:"uses git",dotpos:"e,4398.8,781.42 5051.3,249 5028.2,341.96 4979.1,486.12 4884,572 4750.9,692.23 4550.9,751.24 4408.9,779.44",points:[[5051,249],[5028,342],[4979,486],[4884,572],[4751,692],[4551,751],[4409,779]],labelBBox:{x:5005,y:470,width:52,height:18},parent:null,relations:["1uzzn9j"],color:"gray",line:"dashed",head:"normal"},{id:"3nxrq7",source:"developer",target:"edp.grafana",label:"monitors",dotpos:"e,3108.5,408.4 4909.3,245.25 4904.8,246.68 4900.4,248 4896,249.2 4675.3,309.5 4096.2,289.17 3868.3,309.2 3554.4,336.8 3469.8,315.67 3164,392 3148.9,395.77 3133.5,400.29 3118.1,405.25",points:[[4909,245],[4905,247],[4900,248],[4896,249],[4675,310],[4096,289],[3868,309],[3554,337],[3470,316],[3164,392],[3149,396],[3133,400],[3118,405]],labelBBox:{x:3869,y:309,width:58,height:18},parent:null,relations:["1xiorre"],color:"gray",line:"dashed",head:"normal"},{id:"bfgapq",source:"developer",target:"edp.keycloak",label:"authenticates",dotpos:"e,3538.8,409.46 4909.2,245.06 4904.8,246.54 4900.4,247.93 4896,249.2 4613.1,331.45 4528.6,277.01 4235.7,309.2 3949.9,340.62 3871.9,317.96 3594,392 3579.1,395.97 3563.9,400.73 3548.8,405.96",points:[[4909,245],[4905,247],[4900,248],[4896,249],[4613,331],[4529,277],[4236,309],[3950,341],[3872,318],[3594,392],[3579,396],[3564,401],[3549,406]],labelBBox:{x:4237,y:309,width:87,height:18},parent:null,relations:["jpl8ll"],color:"gray",line:"dashed",head:"normal"},{id:"f6xyb4",source:"edp.argoCD",target:"edp.forgejogit",label:"Syncs git repo",dotpos:"e,4239,714.97 4239,571.93 4239,613.13 4239,662.24 4239,704.63",points:[[4239,572],[4239,613],[4239,662],[4239,705]],labelBBox:{x:4240,y:632,width:93,height:18},parent:"edp",relations:["6mupa0"],color:"gray",line:"dashed",head:"normal"},{id:"1tfxhhz",source:"edp.grafana",target:"edp.loki",label:"get logs",dotpos:"e,2780.6,714.97 2876.4,571.93 2848.5,613.66 2815.1,663.49 2786.4,706.24",points:[[2876,572],[2848,614],[2815,663],[2786,706]],labelBBox:{x:2836,y:632,width:53,height:18},parent:"edp",relations:["1n1utzc"],color:"gray",line:"dashed",head:"normal"},{id:"1adt45o",source:"edp.grafana",target:"edp.prometheus",label:"get metrics and alerts",dotpos:"e,3091.5,714.97 2995.6,571.93 3023.6,613.66 3057,663.49 3085.6,706.24",points:[[2996,572],[3024,614],[3057,663],[3086,706]],labelBBox:{x:3051,y:632,width:138,height:18},parent:"edp",relations:["13uvtiq"],color:"gray",line:"dashed",head:"normal"},{id:"stl3mw",source:"edp.forgejoActions",target:"forgejoRunner",label:"runs workflows",dotpos:"e,319.93,392.23 511.82,249.14 480.79,276.98 445.37,306.94 411.02,332 385.14,350.88 356.74,369.52 328.64,386.89",points:[[512,249],[481,277],[445,307],[411,332],[385,351],[357,370],[329,387]],labelBBox:{x:440,y:309,width:97,height:18},parent:null,relations:["1pbc22f"],color:"gray",line:"dashed",head:"normal"}]},keycloak:{_type:"element",tags:null,links:null,viewOf:"edp.keycloak",_stage:"layouted",sourcePath:"views/edp/edp.c4",description:null,title:"Keycloak",id:"keycloak",autoLayout:{direction:"TB"},hash:"528a426001df41ee3034ded0cc7ae02a1bd96842",bounds:{x:0,y:0,width:927,height:560},nodes:[{id:"edp.ingressNginx",parent:null,level:0,children:[],inEdges:[],outEdges:["119ru5h"],title:"Ingress",modelRef:"edp.ingressNginx",shape:"rectangle",color:"primary",style:{opacity:20,size:"md"},description:{txt:"Ingress Controller for incoming http(s) traffic"},tags:["internal"],kind:"container",navigateTo:"ingressNginx",x:48,y:0,width:320,height:180,labelBBox:{x:33,y:54,width:255,height:66}},{id:"edp.keycloak",parent:null,level:0,children:["edp.keycloak.keycloak","edp.keycloak.keycloakDB"],inEdges:["119ru5h"],outEdges:[],title:"Keycloak",modelRef:"edp.keycloak",shape:"rectangle",color:"primary",style:{opacity:20,size:"md"},description:{txt:"Single Sign On for all EDP products"},tags:[],kind:"container",depth:1,x:8,y:271,width:911,height:281,labelBBox:{x:6,y:0,width:66,height:15}},{id:"edp.keycloak.keycloak",parent:"edp.keycloak",level:1,children:[],inEdges:["119ru5h"],outEdges:["kn0x70"],title:"Keycloak",modelRef:"edp.keycloak.keycloak",shape:"rectangle",color:"primary",icon:"tech:java",style:{opacity:15,size:"md"},tags:[],technology:"Java",kind:"component",x:48,y:332,width:320,height:180,labelBBox:{x:103,y:64,width:144,height:46}},{id:"edp.keycloak.keycloakDB",parent:"edp.keycloak",level:1,children:[],inEdges:["kn0x70"],outEdges:[],title:"Database",modelRef:"edp.keycloak.keycloakDB",shape:"storage",color:"primary",icon:"tech:postgresql",style:{opacity:15,size:"md"},tags:[],technology:"Postgresql",kind:"component",x:559,y:332,width:320,height:180,labelBBox:{x:101,y:64,width:148,height:46}}],edges:[{id:"119ru5h",source:"edp.ingressNginx",target:"edp.keycloak.keycloak",label:"https",dotpos:"e,208,332.26 208,179.87 208,223.7 208,276.72 208,321.86",points:[[208,180],[208,224],[208,277],[208,322]],labelBBox:{x:209,y:240,width:34,height:18},parent:null,relations:["h3rut2"],color:"gray",line:"dashed",head:"normal"},{id:"kn0x70",source:"edp.keycloak.keycloak",target:"edp.keycloak.keycloakDB",label:"reads/writes",dotpos:"e,558.2,422 367.93,422 425.1,422 489.73,422 547.81,422",points:[[368,422],[425,422],[490,422],[548,422]],labelBBox:{x:424,y:396,width:79,height:18},parent:"edp.keycloak",relations:["18zxrhs"],color:"gray",line:"dashed",head:"normal"}]},forgejo:{_type:"element",tags:null,links:null,viewOf:"edp.forgejo",_stage:"layouted",sourcePath:"views/edp/edp.c4",description:null,title:"Forgejo",id:"forgejo",autoLayout:{direction:"TB"},hash:"e58fa1188b5809568e6fb20b5adc1584fef396d8",bounds:{x:0,y:0,width:846,height:528},nodes:[{id:"edp.forgejo",parent:null,level:0,children:["edp.forgejo.forgejocollaboration","edp.forgejo.forgejoproject"],inEdges:["1dgzzfb"],outEdges:[],title:"Forgejo",modelRef:"edp.forgejo",shape:"rectangle",color:"primary",icon:"tech:go",style:{opacity:20,size:"md"},description:{txt:`Fully managed DevOps Platform +and security scanning`},tags:[],technology:"Golang",kind:"container",isCustomized:!0,navigateTo:"forgejo",x:585,y:69,width:340,height:180,labelBBox:{x:45,y:17,width:279,height:139}}],edges:[{id:"step-01",source:"localbox.git",target:"edp.forgejogit",label:"git push",points:[[360,449],[430,449],[513,449],[585,449]],labelBBox:{x:429,y:417,width:75,height:19},parent:null,relations:[],color:"gray",line:"dashed",head:"normal",tags:[],astPath:"/steps@0"},{id:"step-02",source:"edp.forgejogit",target:"forgejoRunner",label:"on push",points:[[896,539],[1008,612],[1151,708],[1172,734],[1219,795],[1184,836],[1232,896],[1233,898],[1235,900],[1236,901]],labelBBox:{x:1051,y:582,width:76,height:19},parent:null,relations:[],color:"gray",line:"dashed",head:"normal",tags:[],astPath:"/steps@1"},{id:"step-03",source:"forgejoRunner",target:"edp.imageregistry",label:"pushes new image",points:[[1232,1012],[1159,1012],[1073,1003],[1001,972],[934,942],[874,886],[830,837]],labelBBox:{x:1018,y:940,width:143,height:19},parent:null,relations:[],color:"gray",line:"dashed",head:"normal",tags:[],astPath:"/steps@2"},{id:"step-04",source:"forgejoRunner",target:"edp.forgejogit",label:"pushes new appspec",points:[[900,546],[915,561],[930,577],[941,594],[995,673],[940,726],[1001,800],[1034,839],[1139,892],[1232,933]],labelBBox:{x:1010,y:768,width:158,height:19},dir:"back",parent:null,relations:[],color:"gray",line:"dashed",head:"normal",tags:[],astPath:"/steps@3"},{id:"step-05",source:"edp.forgejogit",target:"edp.argoCD",label:"triggers deployment",points:[[914,483],[1008,503],[1126,528],[1222,549]],labelBBox:{x:1015,y:473,width:148,height:19},parent:"edp",relations:[],color:"gray",line:"dashed",head:"normal",tags:[],astPath:"/steps@4"},{id:"step-06",source:"edp.argoCD",target:"cloud",label:"deploys application",points:[[1487,675],[1596,779],[1775,949],[1887,1056]],labelBBox:{x:1621,y:769,width:145,height:19},parent:null,relations:[],color:"gray",line:"dashed",head:"normal",tags:[],astPath:"/steps@5"},{id:"step-07",source:"cloud",target:"edp.imageregistry",label:"pulls image",points:[[818,837],[897,950],[1047,1129],[1232,1183],[1432,1241],[1674,1216],[1830,1188]],labelBBox:{x:1346,y:1151,width:97,height:19},dir:"back",parent:null,relations:[],color:"gray",line:"dashed",head:"normal",tags:[],astPath:"/steps@6"}]},edpbuilderworkflow:{_type:"element",tags:null,links:null,viewOf:"edfbuilder",_stage:"layouted",sourcePath:"views/edp/edfbuilder.c4",description:{txt:"Describes the process how to create an EDP instance"},title:"edfbuilder",id:"edpbuilderworkflow",autoLayout:{direction:"LR",nodeSep:110,rankSep:120},hash:"40921acf4f52bd8d6d2ac3a0d1810b3b7bc13b2a",bounds:{x:0,y:0,width:320,height:180},nodes:[{id:"edfbuilder",parent:null,level:0,children:[],inEdges:[],outEdges:[],title:"edfbuilder",modelRef:"edfbuilder",shape:"rectangle",color:"primary",icon:"tech:go",style:{opacity:15,size:"md"},description:{txt:"EDP Foundry Builder"},tags:[],technology:"Golang",kind:"component",x:0,y:0,width:320,height:180,labelBBox:{x:74,y:53,width:203,height:67}}],edges:[]},edp:{_type:"element",tags:null,links:null,viewOf:"edp",_stage:"layouted",sourcePath:"views/edp/edp.c4",description:null,title:"Context view",id:"edp",autoLayout:{direction:"TB"},hash:"3ab95ff726e92d4e64a6b566beb19c19bcc22d22",bounds:{x:0,y:0,width:5229,height:943},nodes:[{id:"forgejoRunner",parent:null,level:0,children:[],inEdges:["stl3mw"],outEdges:["1cy1y20"],title:"Forgejo Runner",modelRef:"forgejoRunner",shape:"rectangle",color:"primary",style:{opacity:25,size:"md"},description:{txt:"A runner is a service that runs jobs triggered by Forgejo. A runner can have different technical implementations like a container or a VM."},tags:[],kind:"component",x:0,y:392,width:320,height:180,labelBBox:{x:23,y:36,width:274,height:102}},{id:"developer",parent:null,level:0,children:[],inEdges:[],outEdges:["1y3lcyj","1ttqc1r","170qzun","1bt83vj","1nv0w41","1agven9","3nxrq7","bfgapq"],title:"Developer",modelRef:"developer",shape:"person",color:"green",style:{opacity:25,size:"md"},description:{txt:"The regular user of the platform"},tags:[],kind:"actor",x:4909,y:69,width:320,height:180,labelBBox:{x:53,y:63,width:214,height:48}},{id:"edp",parent:null,level:0,children:["edp.forgejoActions","edp.api","edp.argoCD","edp.ui","edp.forgejo","edp.imageregistry","edp.grafana","edp.keycloak","edp.forgejogit","edp.loki","edp.prometheus","edp.mailhog","edp.minio","edp.monitoring","edp.openbao","edp.testApp","edp.garm","edp.application"],inEdges:["1cy1y20","1y3lcyj","1ttqc1r","170qzun","1bt83vj","1nv0w41","1agven9","3nxrq7","bfgapq"],outEdges:["stl3mw"],title:"EDP",modelRef:"edp",shape:"rectangle",color:"primary",icon:"tech:kubernetes",style:{opacity:25,size:"md"},description:{txt:"EDP Edge Development Platform"},tags:[],technology:"Kubernetes",kind:"system",depth:1,navigateTo:"idp",x:390,y:8,width:4479,height:927,labelBBox:{x:6,y:0,width:27,height:15}},{id:"edp.forgejoActions",parent:"edp",level:1,children:[],inEdges:["1cy1y20"],outEdges:["stl3mw"],title:"Forgejo Actions",modelRef:"edp.forgejoActions",shape:"rectangle",color:"primary",icon:"tech:go",style:{opacity:25,size:"md"},description:{txt:"Continuous Integration like Github Actions"},tags:[],technology:"Golang",kind:"component",x:430,y:69,width:350,height:180,labelBBox:{x:46,y:44,width:288,height:86}},{id:"edp.api",parent:"edp",level:1,children:[],inEdges:["1y3lcyj"],outEdges:[],title:"API",modelRef:"edp.api",shape:"rectangle",color:"primary",icon:"tech:swagger",style:{opacity:25,size:"md"},description:{txt:"API for the EDP platform"},tags:[],kind:"container",x:3649,y:392,width:320,height:180,labelBBox:{x:62,y:63,width:226,height:48}},{id:"edp.argoCD",parent:"edp",level:1,children:[],inEdges:["1ttqc1r"],outEdges:["f6xyb4"],title:"ArgoCD",modelRef:"edp.argoCD",shape:"rectangle",color:"primary",style:{opacity:25,size:"md"},description:{txt:"GitOps Service"},tags:[],kind:"container",navigateTo:"argoCD",x:4079,y:392,width:320,height:180,labelBBox:{x:108,y:63,width:105,height:48}},{id:"edp.ui",parent:"edp",level:1,children:[],inEdges:["170qzun"],outEdges:[],title:"Backstage",modelRef:"edp.ui",shape:"rectangle",color:"primary",style:{opacity:25,size:"md"},description:{txt:"Developer Portal"},tags:[],kind:"container",x:4509,y:392,width:320,height:180,labelBBox:{x:102,y:63,width:116,height:48}},{id:"edp.forgejo",parent:"edp",level:1,children:[],inEdges:["1bt83vj"],outEdges:[],title:"Forgejo",modelRef:"edp.forgejo",shape:"rectangle",color:"primary",icon:"tech:go",style:{opacity:25,size:"md"},description:{txt:`Fully managed DevOps Platform offering capabilities like code version controling collaboration and ticketing -and security scanning`},tags:[],technology:"Golang",kind:"container",depth:1,x:8,y:239,width:830,height:281,labelBBox:{x:6,y:0,width:58,height:15}},{id:"edp.forgejo.forgejocollaboration",parent:"edp.forgejo",level:1,children:[],inEdges:[],outEdges:[],title:"Collaboration",modelRef:"edp.forgejo.forgejocollaboration",shape:"rectangle",color:"primary",icon:"tech:github",style:{opacity:15,size:"md"},tags:[],kind:"component",x:48,y:300,width:320,height:180,labelBBox:{x:85,y:74,width:180,height:24}},{id:"edp.forgejo.forgejoproject",parent:"edp.forgejo",level:1,children:[],inEdges:[],outEdges:[],title:"Project Mgmt",modelRef:"edp.forgejo.forgejoproject",shape:"rectangle",color:"primary",icon:"tech:github",style:{opacity:15,size:"md"},tags:[],kind:"component",x:478,y:300,width:320,height:180,labelBBox:{x:85,y:74,width:180,height:24}},{id:"edp.ingressNginx",parent:null,level:0,children:[],inEdges:[],outEdges:["1dgzzfb"],title:"Ingress",modelRef:"edp.ingressNginx",shape:"rectangle",color:"primary",style:{opacity:20,size:"md"},description:{txt:"Ingress Controller for incoming http(s) traffic"},tags:["internal"],kind:"container",navigateTo:"ingressNginx",x:48,y:0,width:320,height:180,labelBBox:{x:33,y:54,width:255,height:66}}],edges:[{id:"1dgzzfb",source:"edp.ingressNginx",target:"edp.forgejo",label:"https",dotpos:"e,208,238.8 208,179.6 208,195.09 208,211.63 208,228.36",points:[[208,180],[208,195],[208,212],[208,228]],labelBBox:{x:173,y:186,width:34,height:18},parent:null,relations:["123efwn"],color:"gray",line:"dashed",head:"normal"}]},crossplane:{_type:"element",tags:null,links:null,viewOf:"edp.crossplane",_stage:"layouted",sourcePath:"views/edp/edp.c4",description:null,title:"Crossplane",id:"crossplane",autoLayout:{direction:"TB"},hash:"21cafdc6d03bbe02437c3a01524d368cfd652a88",bounds:{x:0,y:0,width:1276,height:597},nodes:[{id:"edp.crossplane",parent:null,level:0,children:["edp.crossplane.crossplane","edp.crossplane.crossplaneFunction","edp.crossplane.crossplaneRbacManager","edp.crossplane.providerArgoCD","edp.crossplane.providerKind","edp.crossplane.providerShell"],inEdges:[],outEdges:[],title:"Crossplane",modelRef:"edp.crossplane",shape:"rectangle",color:"primary",style:{opacity:20,size:"md"},description:{txt:"Declarative management of ressources"},tags:["internal"],kind:"container",depth:1,x:8,y:8,width:1260,height:581,labelBBox:{x:6,y:0,width:80,height:15}},{id:"edp.crossplane.crossplane",parent:"edp.crossplane",level:1,children:[],inEdges:[],outEdges:[],title:"Crossplane",modelRef:"edp.crossplane.crossplane",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},tags:[],kind:"component",x:48,y:69,width:320,height:180,labelBBox:{x:107,y:74,width:105,height:24}},{id:"edp.crossplane.crossplaneFunction",parent:"edp.crossplane",level:1,children:[],inEdges:[],outEdges:[],title:"Function Patch and Transform",modelRef:"edp.crossplane.crossplaneFunction",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},tags:[],kind:"component",x:478,y:69,width:320,height:180,labelBBox:{x:23,y:74,width:273,height:24}},{id:"edp.crossplane.crossplaneRbacManager",parent:"edp.crossplane",level:1,children:[],inEdges:[],outEdges:[],title:"RBAC Manager",modelRef:"edp.crossplane.crossplaneRbacManager",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},tags:[],kind:"component",x:908,y:69,width:320,height:180,labelBBox:{x:88,y:74,width:144,height:24}},{id:"edp.crossplane.providerArgoCD",parent:"edp.crossplane",level:1,children:[],inEdges:[],outEdges:[],title:"ArgoCD Provider",modelRef:"edp.crossplane.providerArgoCD",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},tags:[],kind:"component",x:48,y:369,width:320,height:180,labelBBox:{x:82,y:74,width:155,height:24}},{id:"edp.crossplane.providerKind",parent:"edp.crossplane",level:1,children:[],inEdges:[],outEdges:[],title:"Kind Provider",modelRef:"edp.crossplane.providerKind",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},tags:[],kind:"component",x:478,y:369,width:320,height:180,labelBBox:{x:98,y:74,width:124,height:24}},{id:"edp.crossplane.providerShell",parent:"edp.crossplane",level:1,children:[],inEdges:[],outEdges:[],title:"Shell Provider",modelRef:"edp.crossplane.providerShell",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},tags:[],kind:"component",x:908,y:369,width:320,height:180,labelBBox:{x:96,y:74,width:129,height:24}}],edges:[]},externalSecrets:{_type:"element",tags:null,links:null,viewOf:"edp.externalSecrets",_stage:"layouted",sourcePath:"views/edp/edp.c4",description:null,title:"external-secrets",id:"externalSecrets",autoLayout:{direction:"TB"},hash:"b3af3338d1f389aa939be93f7233de72e9cf818b",bounds:{x:0,y:0,width:846,height:597},nodes:[{id:"edp.externalSecrets",parent:null,level:0,children:["edp.externalSecrets.externalSecrets","edp.externalSecrets.certController","edp.externalSecrets.webhook"],inEdges:[],outEdges:[],title:"external-secrets",modelRef:"edp.externalSecrets",shape:"rectangle",color:"primary",style:{opacity:20,size:"md"},description:{txt:"Provider to access externally stored Kubernetes secrets"},tags:["internal"],kind:"container",depth:1,x:8,y:8,width:830,height:581,labelBBox:{x:6,y:0,width:119,height:15}},{id:"edp.externalSecrets.externalSecrets",parent:"edp.externalSecrets",level:1,children:[],inEdges:[],outEdges:[],title:"external-secrets controller",modelRef:"edp.externalSecrets.externalSecrets",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},tags:[],kind:"component",x:48,y:69,width:320,height:180,labelBBox:{x:43,y:74,width:234,height:24}},{id:"edp.externalSecrets.certController",parent:"edp.externalSecrets",level:1,children:[],inEdges:[],outEdges:[],title:"cert-controller",modelRef:"edp.externalSecrets.certController",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},tags:[],kind:"component",x:478,y:69,width:320,height:180,labelBBox:{x:97,y:74,width:126,height:24}},{id:"edp.externalSecrets.webhook",parent:"edp.externalSecrets",level:1,children:[],inEdges:[],outEdges:[],title:"webhook",modelRef:"edp.externalSecrets.webhook",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},tags:[],kind:"component",x:48,y:369,width:320,height:180,labelBBox:{x:118,y:74,width:84,height:24}}],edges:[]},velero:{_type:"element",tags:null,links:null,viewOf:"edp.velero",_stage:"layouted",sourcePath:"views/edp/edp.c4",description:null,title:"Velero",id:"velero",autoLayout:{direction:"TB"},hash:"31cb339645f3556f63935e842bc8b051e3e17e78",bounds:{x:0,y:0,width:826,height:564},nodes:[{id:"edp.velero",parent:null,level:0,children:["edp.velero.velero"],inEdges:[],outEdges:["13dald4"],title:"Velero",modelRef:"edp.velero",shape:"rectangle",color:"primary",style:{opacity:20,size:"md"},description:{txt:"Backup Kubernetes resources"},tags:["internal"],kind:"container",depth:1,x:434,y:8,width:384,height:265,labelBBox:{x:6,y:0,width:49,height:15}},{id:"edp.ingressNginx",parent:null,level:0,children:[],inEdges:[],outEdges:["mcc3r"],title:"Ingress",modelRef:"edp.ingressNginx",shape:"rectangle",color:"primary",style:{opacity:20,size:"md"},description:{txt:"Ingress Controller for incoming http(s) traffic"},tags:["internal"],kind:"container",navigateTo:"ingressNginx",x:0,y:384,width:320,height:180,labelBBox:{x:33,y:54,width:255,height:66}},{id:"edp.velero.velero",parent:"edp.velero",level:1,children:[],inEdges:[],outEdges:["13dald4"],title:"Velero",modelRef:"edp.velero.velero",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},tags:[],kind:"component",x:466,y:61,width:320,height:180,labelBBox:{x:129,y:74,width:62,height:24}},{id:"edp.minio",parent:null,level:0,children:[],inEdges:["13dald4","mcc3r"],outEdges:[],title:"Minio",modelRef:"edp.minio",shape:"rectangle",color:"primary",style:{opacity:20,size:"md"},description:{txt:"S3 compatible blob storage"},tags:[],kind:"container",navigateTo:"minio",x:466,y:384,width:320,height:180,labelBBox:{x:67,y:63,width:186,height:48}}],edges:[{id:"13dald4",source:"edp.velero.velero",target:"edp.minio",label:"store backups",dotpos:"e,626.02,384.17 626.02,241.13 626.02,282.33 626.02,331.44 626.02,373.83",points:[[626,241],[626,282],[626,331],[626,374]],labelBBox:{x:627,y:301,width:91,height:18},parent:null,relations:["1mazt1x"],color:"gray",line:"dashed",head:"normal"},{id:"mcc3r",source:"edp.ingressNginx",target:"edp.minio",label:"https",dotpos:"e,466.11,474 319.74,474 363.61,474 411.35,474 455.79,474",points:[[320,474],[364,474],[411,474],[456,474]],labelBBox:{x:376,y:448,width:34,height:18},parent:null,relations:["fe65w2"],color:"gray",line:"dashed",head:"normal"}]},minio:{_type:"element",tags:null,links:null,viewOf:"edp.minio",_stage:"layouted",sourcePath:"views/edp/edp.c4",description:null,title:"Minio",id:"minio",autoLayout:{direction:"TB"},hash:"0fb400499e182662d442885af28e9f6c9738a4da",bounds:{x:0,y:0,width:750,height:544},nodes:[{id:"edp.ingressNginx",parent:null,level:0,children:[],inEdges:[],outEdges:["jfb4ud"],title:"Ingress",modelRef:"edp.ingressNginx",shape:"rectangle",color:"primary",style:{opacity:20,size:"md"},description:{txt:"Ingress Controller for incoming http(s) traffic"},tags:["internal"],kind:"container",navigateTo:"ingressNginx",x:0,y:0,width:320,height:180,labelBBox:{x:33,y:54,width:255,height:66}},{id:"edp.velero",parent:null,level:0,children:[],inEdges:[],outEdges:["wqj1c3"],title:"Velero",modelRef:"edp.velero",shape:"rectangle",color:"primary",style:{opacity:20,size:"md"},description:{txt:"Backup Kubernetes resources"},tags:["internal"],kind:"container",navigateTo:"velero",x:430,y:0,width:320,height:180,labelBBox:{x:58,y:63,width:205,height:48}},{id:"edp.minio",parent:null,level:0,children:["edp.minio.minio"],inEdges:["jfb4ud","wqj1c3"],outEdges:[],title:"Minio",modelRef:"edp.minio",shape:"rectangle",color:"primary",style:{opacity:20,size:"md"},description:{txt:"S3 compatible blob storage"},tags:[],kind:"container",depth:1,x:183,y:271,width:384,height:265,labelBBox:{x:6,y:0,width:36,height:15}},{id:"edp.minio.minio",parent:"edp.minio",level:1,children:[],inEdges:["jfb4ud","wqj1c3"],outEdges:[],title:"S3 Blob Storage",modelRef:"edp.minio.minio",shape:"storage",color:"primary",style:{opacity:15,size:"md"},tags:[],technology:"Minio",kind:"component",x:215,y:324,width:320,height:180,labelBBox:{x:85,y:64,width:150,height:46}}],edges:[{id:"jfb4ud",source:"edp.ingressNginx",target:"edp.minio.minio",label:"https",dotpos:"e,314.96,323.05 219.34,179.84 247.25,221.64 280.62,271.62 309.29,314.56",points:[[219,180],[247,222],[281,272],[309,315]],labelBBox:{x:275,y:240,width:34,height:18},parent:null,relations:["fe65w2"],color:"gray",line:"dashed",head:"normal"},{id:"wqj1c3",source:"edp.velero",target:"edp.minio.minio",label:"store backups",dotpos:"e,435.08,323.05 530.7,179.84 502.79,221.64 469.42,271.62 440.75,314.56",points:[[531,180],[503,222],[469,272],[441,315]],labelBBox:{x:490,y:240,width:91,height:18},parent:null,relations:["1mazt1x"],color:"gray",line:"dashed",head:"normal"}]},monitoring:{_type:"element",tags:null,links:null,viewOf:"edp.monitoring",_stage:"layouted",sourcePath:"views/edp/edp.c4",description:null,title:"Monitoring",id:"monitoring",autoLayout:{direction:"TB"},hash:"0eedaf64b05f32fb962d9b885c9c7febad53741c",bounds:{x:0,y:0,width:878,height:645},nodes:[{id:"edp.ingressNginx",parent:null,level:0,children:[],inEdges:[],outEdges:["j52jq6","15c9gki"],title:"Ingress",modelRef:"edp.ingressNginx",shape:"rectangle",color:"primary",style:{opacity:20,size:"md"},description:{txt:"Ingress Controller for incoming http(s) traffic"},tags:["internal"],kind:"container",navigateTo:"ingressNginx",x:510,y:0,width:320,height:180,labelBBox:{x:33,y:54,width:255,height:66}},{id:"edp.monitoring",parent:null,level:0,children:["edp.monitoring.loki","edp.monitoring.alloy"],inEdges:["j52jq6","15c9gki"],outEdges:[],title:"Monitoring",modelRef:"edp.monitoring",shape:"rectangle",color:"primary",style:{opacity:20,size:"md"},description:{txt:"Observability system to monitor deployed components"},tags:[],kind:"container",depth:2,x:8,y:271,width:862,height:366,labelBBox:{x:6,y:0,width:75,height:15}},{id:"edp.monitoring.loki",parent:"edp.monitoring",level:1,children:["edp.monitoring.loki.queryFrontend"],inEdges:["15c9gki"],outEdges:[],title:"Loki",modelRef:"edp.monitoring.loki",shape:"rectangle",color:"primary",icon:"tech:grafana",style:{opacity:20,size:"md"},description:{txt:"Log aggregation system"},tags:[],kind:"container",depth:1,x:48,y:332,width:384,height:265,labelBBox:{x:6,y:0,width:30,height:15}},{id:"edp.monitoring.alloy",parent:"edp.monitoring",level:1,children:[],inEdges:["j52jq6"],outEdges:[],title:"Alloy",modelRef:"edp.monitoring.alloy",shape:"rectangle",color:"primary",icon:"tech:grafana",style:{opacity:15,size:"md",multiple:!0},description:{txt:"Open Telemetry Collector"},tags:[],kind:"component",x:510,y:385,width:320,height:180,labelBBox:{x:59,y:63,width:233,height:48}},{id:"edp.monitoring.loki.queryFrontend",parent:"edp.monitoring.loki",level:2,children:[],inEdges:["15c9gki"],outEdges:[],title:"Query Frontend",modelRef:"edp.monitoring.loki.queryFrontend",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},tags:[],kind:"component",x:80,y:385,width:320,height:180,labelBBox:{x:88,y:74,width:144,height:24}}],edges:[{id:"j52jq6",source:"edp.ingressNginx",target:"edp.monitoring.alloy",label:"https",dotpos:"e,670,385.47 670,179.88 670,238.29 670,314.8 670,375.17",points:[[670,180],[670,238],[670,315],[670,375]],labelBBox:{x:671,y:240,width:34,height:18},parent:null,relations:["1jvab2g"],color:"gray",line:"dashed",head:"normal"},{id:"15c9gki",source:"edp.ingressNginx",target:"edp.monitoring.loki.queryFrontend",label:"https",dotpos:"e,302.37,385.41 521.62,179.94 481.62,206.88 439.6,238.08 404,270.8 369.46,302.55 336.06,341.85 308.52,377.41",points:[[522,180],[482,207],[440,238],[404,271],[369,303],[336,342],[309,377]],labelBBox:{x:438,y:240,width:34,height:18},parent:null,relations:["fs60l7"],color:"gray",line:"dashed",head:"normal"}]},ingressNginx:{_type:"element",tags:null,links:null,viewOf:"edp.ingressNginx",_stage:"layouted",sourcePath:"views/edp/edp.c4",description:null,title:"Ingress",id:"ingressNginx",autoLayout:{direction:"TB"},hash:"7a821addac59ba362551aa1d990ed1be9968679c",bounds:{x:0,y:0,width:3780,height:564},nodes:[{id:"edp.ingressNginx",parent:null,level:0,children:["edp.ingressNginx.ingressNginx"],inEdges:[],outEdges:["1poylyw","llqgvs","75xltk","dh7ut5","1bv0wod","68hu20","nx2xew","momp7g","8cmkj7"],title:"Ingress",modelRef:"edp.ingressNginx",shape:"rectangle",color:"primary",style:{opacity:20,size:"md"},description:{txt:"Ingress Controller for incoming http(s) traffic"},tags:["internal"],kind:"container",depth:1,x:1708,y:8,width:384,height:265,labelBBox:{x:6,y:0,width:54,height:15}},{id:"edp.ingressNginx.ingressNginx",parent:"edp.ingressNginx",level:1,children:[],inEdges:[],outEdges:["1poylyw","llqgvs","75xltk","dh7ut5","1bv0wod","68hu20","nx2xew","momp7g","8cmkj7"],title:"ingress-nginx",modelRef:"edp.ingressNginx.ingressNginx",shape:"rectangle",color:"primary",icon:"tech:nginx",style:{opacity:15,size:"md"},tags:[],technology:"Nginx",kind:"component",x:1740,y:61,width:320,height:180,labelBBox:{x:85,y:64,width:181,height:46}},{id:"edp.argoCD",parent:null,level:0,children:[],inEdges:["1poylyw"],outEdges:[],title:"ArgoCD",modelRef:"edp.argoCD",shape:"rectangle",color:"primary",style:{opacity:20,size:"md"},description:{txt:"GitOps Service"},tags:[],kind:"container",navigateTo:"argoCD",x:0,y:384,width:320,height:180,labelBBox:{x:108,y:63,width:105,height:48}},{id:"edp.ui",parent:null,level:0,children:[],inEdges:["llqgvs"],outEdges:[],title:"Backstage",modelRef:"edp.ui",shape:"rectangle",color:"primary",style:{opacity:20,size:"md"},description:{txt:"Developer Portal"},tags:[],kind:"container",x:430,y:384,width:320,height:180,labelBBox:{x:102,y:63,width:116,height:48}},{id:"edp.forgejo",parent:null,level:0,children:[],inEdges:["75xltk"],outEdges:[],title:"Forgejo",modelRef:"edp.forgejo",shape:"rectangle",color:"primary",icon:"tech:go",style:{opacity:20,size:"md"},description:{txt:`Fully managed DevOps Platform +and security scanning`},tags:[],technology:"Golang",kind:"container",navigateTo:"forgejo",x:1830,y:392,width:340,height:180,labelBBox:{x:46,y:17,width:278,height:139}},{id:"edp.imageregistry",parent:"edp",level:1,children:[],inEdges:["1nv0w41"],outEdges:[],title:"Forgejo OCI Image Registry",modelRef:"edp.imageregistry",shape:"rectangle",color:"primary",icon:"tech:go",style:{opacity:25,size:"md"},description:{txt:"Container Image Registry"},tags:[],technology:"Golang",kind:"component",x:2280,y:392,width:373,height:180,labelBBox:{x:47,y:53,width:311,height:67}},{id:"edp.grafana",parent:"edp",level:1,children:[],inEdges:["3nxrq7"],outEdges:["1tfxhhz","1adt45o"],title:"Grafana",modelRef:"edp.grafana",shape:"rectangle",color:"primary",icon:"tech:grafana",style:{opacity:25,size:"md"},description:{txt:"Data visualization and monitoring"},tags:[],kind:"container",x:2763,y:392,width:345,height:180,labelBBox:{x:47,y:63,width:283,height:48}},{id:"edp.keycloak",parent:"edp",level:1,children:[],inEdges:["bfgapq"],outEdges:[],title:"Keycloak",modelRef:"edp.keycloak",shape:"rectangle",color:"primary",style:{opacity:25,size:"md"},description:{txt:"Single Sign On for all EDP products"},tags:[],kind:"container",navigateTo:"keycloak",x:3219,y:392,width:320,height:180,labelBBox:{x:39,y:63,width:242,height:48}},{id:"edp.forgejogit",parent:"edp",level:1,children:[],inEdges:["1agven9","f6xyb4"],outEdges:[],title:"ForgejoGit",modelRef:"edp.forgejogit",shape:"rectangle",color:"primary",icon:"tech:git",style:{opacity:25,size:"md"},tags:[],kind:"component",x:4079,y:715,width:320,height:180,labelBBox:{x:97,y:74,width:156,height:24}},{id:"edp.loki",parent:"edp",level:1,children:[],inEdges:["1tfxhhz"],outEdges:[],title:"Loki",modelRef:"edp.loki",shape:"rectangle",color:"primary",style:{opacity:25,size:"md"},description:{txt:"Log aggregation system"},tags:[],kind:"container",x:2991,y:715,width:320,height:180,labelBBox:{x:78,y:63,width:164,height:47}},{id:"edp.prometheus",parent:"edp",level:1,children:[],inEdges:["1adt45o"],outEdges:[],title:"Prometheus",modelRef:"edp.prometheus",shape:"rectangle",color:"primary",icon:"tech:prometheus",style:{opacity:25,size:"md"},description:{txt:"Monitoring and alerting toolkit"},tags:[],kind:"container",x:2561,y:715,width:320,height:180,labelBBox:{x:46,y:63,width:258,height:47}},{id:"edp.mailhog",parent:"edp",level:1,children:[],inEdges:[],outEdges:[],title:"Mailhog",modelRef:"edp.mailhog",shape:"rectangle",color:"primary",style:{opacity:25,size:"md"},description:{txt:"Web and API based SMTP testing"},tags:[],kind:"container",navigateTo:"mailhog",x:890,y:69,width:320,height:180,labelBBox:{x:44,y:63,width:232,height:48}},{id:"edp.minio",parent:"edp",level:1,children:[],inEdges:[],outEdges:[],title:"Minio",modelRef:"edp.minio",shape:"rectangle",color:"primary",style:{opacity:25,size:"md"},description:{txt:"S3 compatible blob storage"},tags:[],kind:"container",navigateTo:"minio",x:1320,y:69,width:320,height:180,labelBBox:{x:67,y:63,width:186,height:48}},{id:"edp.monitoring",parent:"edp",level:1,children:[],inEdges:[],outEdges:[],title:"Monitoring",modelRef:"edp.monitoring",shape:"rectangle",color:"primary",style:{opacity:25,size:"md"},description:{txt:"Observability system to monitor deployed components"},tags:[],kind:"container",navigateTo:"monitoring",x:1860,y:69,width:320,height:180,labelBBox:{x:21,y:54,width:278,height:66}},{id:"edp.openbao",parent:"edp",level:1,children:[],inEdges:[],outEdges:[],title:"OpenBao",modelRef:"edp.openbao",shape:"rectangle",color:"primary",style:{opacity:25,size:"md"},description:{txt:"Secure secret storage"},tags:[],kind:"container",x:430,y:392,width:320,height:180,labelBBox:{x:85,y:63,width:151,height:48}},{id:"edp.testApp",parent:"edp",level:1,children:[],inEdges:[],outEdges:[],title:"Fibonacci",modelRef:"edp.testApp",shape:"rectangle",color:"primary",style:{opacity:25,size:"md"},description:{txt:"Testapp to validate deployments"},tags:[],kind:"container",navigateTo:"testapp",x:860,y:392,width:320,height:180,labelBBox:{x:50,y:63,width:220,height:48}},{id:"edp.garm",parent:"edp",level:1,children:[],inEdges:[],outEdges:[],title:"Garm Image",modelRef:"edp.garm",shape:"rectangle",color:"primary",icon:"tech:docker",style:{opacity:25,size:"md"},tags:[],kind:"container",x:1400,y:392,width:320,height:180,labelBBox:{x:89,y:74,width:173,height:24}},{id:"edp.application",parent:"edp",level:1,children:[],inEdges:[],outEdges:[],title:"application",modelRef:"edp.application",shape:"rectangle",color:"primary",style:{opacity:25,size:"md"},description:{txt:"An application description"},tags:[],technology:"DSL",kind:"schema",x:430,y:715,width:320,height:180,labelBBox:{x:73,y:53,width:175,height:67}}],edges:[{id:"1cy1y20",source:"forgejoRunner",target:"edp.forgejoActions",label:"register",points:[[241,392],[270,364],[303,334],[335,309],[362,289],[392,270],[421,253]],labelBBox:{x:336,y:309,width:51,height:18},parent:null,relations:["18dtot7"],color:"gray",line:"dashed",head:"normal"},{id:"1y3lcyj",source:"developer",target:"edp.api",label:"uses API",points:[[4909,245],[4905,246],[4900,248],[4896,249],[4733,303],[4684,282],[4514,309],[4296,345],[4236,331],[4024,392],[4009,396],[3994,401],[3978,407]],labelBBox:{x:4515,y:309,width:60,height:18},parent:null,relations:["1l9a3pd"],color:"gray",line:"dashed",head:"normal"},{id:"1ttqc1r",source:"developer",target:"edp.argoCD",label:"manages deployments",points:[[4909,244],[4905,246],[4900,248],[4896,249],[4797,287],[4766,276],[4665,309],[4569,340],[4548,354],[4454,392],[4439,398],[4424,404],[4408,411]],labelBBox:{x:4666,y:309,width:145,height:18},parent:null,relations:["1ghp31l"],color:"gray",line:"dashed",head:"normal"},{id:"170qzun",source:"developer",target:"edp.ui",label:"manages project",points:[[4945,249],[4919,268],[4891,289],[4867,309],[4836,333],[4805,360],[4776,385]],labelBBox:{x:4868,y:309,width:108,height:18},parent:null,relations:["yk9zv2","1woleh6"],color:"gray",line:"dashed",head:"normal"},{id:"1bt83vj",source:"developer",target:"edp.forgejo",label:"manages code",points:[[4909,245],[4905,247],[4900,248],[4896,249],[4471,359],[3358,277],[2920,309],[2610,332],[2527,316],[2225,392],[2210,396],[2195,400],[2180,405]],labelBBox:{x:2921,y:309,width:96,height:18},parent:null,relations:["12036hb"],color:"gray",line:"dashed",head:"normal"},{id:"1nv0w41",source:"developer",target:"edp.imageregistry",label:"pushes and pull images",points:[[4909,245],[4905,247],[4900,248],[4896,249],[4562,337],[3689,280],[3345,309],[3060,333],[2985,324],[2708,392],[2693,396],[2678,400],[2663,404]],labelBBox:{x:3346,y:309,width:151,height:18},parent:null,relations:["177bm2y"],color:"gray",line:"dashed",head:"normal"},{id:"1agven9",source:"developer",target:"edp.forgejogit",label:"uses git",points:[[5051,249],[5028,342],[4979,486],[4884,572],[4751,692],[4551,751],[4409,779]],labelBBox:{x:5005,y:470,width:52,height:18},parent:null,relations:["1uzzn9j"],color:"gray",line:"dashed",head:"normal"},{id:"3nxrq7",source:"developer",target:"edp.grafana",label:"monitors",points:[[4909,245],[4905,247],[4900,248],[4896,249],[4675,310],[4096,289],[3868,309],[3554,337],[3470,316],[3164,392],[3149,396],[3133,400],[3118,405]],labelBBox:{x:3869,y:309,width:58,height:18},parent:null,relations:["1xiorre"],color:"gray",line:"dashed",head:"normal"},{id:"bfgapq",source:"developer",target:"edp.keycloak",label:"authenticates",points:[[4909,245],[4905,247],[4900,248],[4896,249],[4613,331],[4529,277],[4236,309],[3950,341],[3872,318],[3594,392],[3579,396],[3564,401],[3549,406]],labelBBox:{x:4237,y:309,width:87,height:18},parent:null,relations:["jpl8ll"],color:"gray",line:"dashed",head:"normal"},{id:"f6xyb4",source:"edp.argoCD",target:"edp.forgejogit",label:"Syncs git repo",points:[[4239,572],[4239,613],[4239,662],[4239,705]],labelBBox:{x:4240,y:632,width:93,height:18},parent:"edp",relations:["6mupa0"],color:"gray",line:"dashed",head:"normal"},{id:"1tfxhhz",source:"edp.grafana",target:"edp.loki",label:"get logs",points:[[2996,572],[3024,614],[3057,663],[3086,706]],labelBBox:{x:3051,y:632,width:53,height:18},parent:"edp",relations:["1n1utzc"],color:"gray",line:"dashed",head:"normal"},{id:"1adt45o",source:"edp.grafana",target:"edp.prometheus",label:"get metrics and alerts",points:[[2876,572],[2848,614],[2815,663],[2786,706]],labelBBox:{x:2836,y:632,width:138,height:18},parent:"edp",relations:["13uvtiq"],color:"gray",line:"dashed",head:"normal"},{id:"stl3mw",source:"edp.forgejoActions",target:"forgejoRunner",label:"runs workflows",points:[[512,249],[481,277],[445,307],[411,332],[385,351],[357,370],[329,387]],labelBBox:{x:440,y:309,width:97,height:18},parent:null,relations:["1pbc22f"],color:"gray",line:"dashed",head:"normal"}]},keycloak:{_type:"element",tags:null,links:null,viewOf:"edp.keycloak",_stage:"layouted",sourcePath:"views/edp/edp.c4",description:null,title:"Keycloak",id:"keycloak",autoLayout:{direction:"TB"},hash:"528a426001df41ee3034ded0cc7ae02a1bd96842",bounds:{x:0,y:0,width:927,height:560},nodes:[{id:"edp.ingressNginx",parent:null,level:0,children:[],inEdges:[],outEdges:["119ru5h"],title:"Ingress",modelRef:"edp.ingressNginx",shape:"rectangle",color:"primary",style:{opacity:20,size:"md"},description:{txt:"Ingress Controller for incoming http(s) traffic"},tags:["internal"],kind:"container",navigateTo:"ingressNginx",x:48,y:0,width:320,height:180,labelBBox:{x:33,y:54,width:255,height:66}},{id:"edp.keycloak",parent:null,level:0,children:["edp.keycloak.keycloak","edp.keycloak.keycloakDB"],inEdges:["119ru5h"],outEdges:[],title:"Keycloak",modelRef:"edp.keycloak",shape:"rectangle",color:"primary",style:{opacity:20,size:"md"},description:{txt:"Single Sign On for all EDP products"},tags:[],kind:"container",depth:1,x:8,y:271,width:911,height:281,labelBBox:{x:6,y:0,width:66,height:15}},{id:"edp.keycloak.keycloak",parent:"edp.keycloak",level:1,children:[],inEdges:["119ru5h"],outEdges:["kn0x70"],title:"Keycloak",modelRef:"edp.keycloak.keycloak",shape:"rectangle",color:"primary",icon:"tech:java",style:{opacity:15,size:"md"},tags:[],technology:"Java",kind:"component",x:48,y:332,width:320,height:180,labelBBox:{x:103,y:64,width:144,height:46}},{id:"edp.keycloak.keycloakDB",parent:"edp.keycloak",level:1,children:[],inEdges:["kn0x70"],outEdges:[],title:"Database",modelRef:"edp.keycloak.keycloakDB",shape:"storage",color:"primary",icon:"tech:postgresql",style:{opacity:15,size:"md"},tags:[],technology:"Postgresql",kind:"component",x:559,y:332,width:320,height:180,labelBBox:{x:101,y:64,width:148,height:46}}],edges:[{id:"119ru5h",source:"edp.ingressNginx",target:"edp.keycloak.keycloak",label:"https",points:[[208,180],[208,224],[208,277],[208,322]],labelBBox:{x:209,y:240,width:34,height:18},parent:null,relations:["h3rut2"],color:"gray",line:"dashed",head:"normal"},{id:"kn0x70",source:"edp.keycloak.keycloak",target:"edp.keycloak.keycloakDB",label:"reads/writes",points:[[368,422],[425,422],[490,422],[548,422]],labelBBox:{x:424,y:396,width:79,height:18},parent:"edp.keycloak",relations:["18zxrhs"],color:"gray",line:"dashed",head:"normal"}]},forgejo:{_type:"element",tags:null,links:null,viewOf:"edp.forgejo",_stage:"layouted",sourcePath:"views/edp/edp.c4",description:null,title:"Forgejo",id:"forgejo",autoLayout:{direction:"TB"},hash:"e58fa1188b5809568e6fb20b5adc1584fef396d8",bounds:{x:0,y:0,width:846,height:528},nodes:[{id:"edp.forgejo",parent:null,level:0,children:["edp.forgejo.forgejocollaboration","edp.forgejo.forgejoproject"],inEdges:["1dgzzfb"],outEdges:[],title:"Forgejo",modelRef:"edp.forgejo",shape:"rectangle",color:"primary",icon:"tech:go",style:{opacity:20,size:"md"},description:{txt:`Fully managed DevOps Platform offering capabilities like code version controling collaboration and ticketing -and security scanning`},tags:[],technology:"Golang",kind:"container",navigateTo:"forgejo",x:860,y:384,width:340,height:180,labelBBox:{x:46,y:17,width:278,height:139}},{id:"edp.keycloak",parent:null,level:0,children:[],inEdges:["dh7ut5"],outEdges:[],title:"Keycloak",modelRef:"edp.keycloak",shape:"rectangle",color:"primary",style:{opacity:20,size:"md"},description:{txt:"Single Sign On for all EDP products"},tags:[],kind:"container",navigateTo:"keycloak",x:1310,y:384,width:320,height:180,labelBBox:{x:39,y:63,width:242,height:48}},{id:"edp.mailhog",parent:null,level:0,children:[],inEdges:["1bv0wod"],outEdges:[],title:"Mailhog",modelRef:"edp.mailhog",shape:"rectangle",color:"primary",style:{opacity:20,size:"md"},description:{txt:"Web and API based SMTP testing"},tags:[],kind:"container",navigateTo:"mailhog",x:1740,y:384,width:320,height:180,labelBBox:{x:44,y:63,width:232,height:48}},{id:"edp.minio",parent:null,level:0,children:[],inEdges:["68hu20"],outEdges:[],title:"Minio",modelRef:"edp.minio",shape:"rectangle",color:"primary",style:{opacity:20,size:"md"},description:{txt:"S3 compatible blob storage"},tags:[],kind:"container",navigateTo:"minio",x:2170,y:384,width:320,height:180,labelBBox:{x:67,y:63,width:186,height:48}},{id:"edp.monitoring",parent:null,level:0,children:[],inEdges:["nx2xew"],outEdges:[],title:"Monitoring",modelRef:"edp.monitoring",shape:"rectangle",color:"primary",style:{opacity:20,size:"md"},description:{txt:"Observability system to monitor deployed components"},tags:[],kind:"container",navigateTo:"monitoring",x:2600,y:384,width:320,height:180,labelBBox:{x:21,y:54,width:278,height:66}},{id:"edp.openbao",parent:null,level:0,children:[],inEdges:["momp7g"],outEdges:[],title:"OpenBao",modelRef:"edp.openbao",shape:"rectangle",color:"primary",style:{opacity:20,size:"md"},description:{txt:"Secure secret storage"},tags:[],kind:"container",x:3030,y:384,width:320,height:180,labelBBox:{x:85,y:63,width:151,height:48}},{id:"edp.testApp",parent:null,level:0,children:[],inEdges:["8cmkj7"],outEdges:[],title:"Fibonacci",modelRef:"edp.testApp",shape:"rectangle",color:"primary",style:{opacity:20,size:"md"},description:{txt:"Testapp to validate deployments"},tags:[],kind:"container",navigateTo:"testapp",x:3460,y:384,width:320,height:180,labelBBox:{x:50,y:63,width:220,height:48}}],edges:[{id:"1poylyw",source:"edp.ingressNginx.ingressNginx",target:"edp.argoCD",label:"https",dotpos:"e,319.96,401.87 1740.1,163.73 1459.5,186.77 861.79,248.41 375.02,384 360.03,388.17 344.69,393.11 329.44,398.47",points:[[1740,164],[1459,187],[862,248],[375,384],[360,388],[345,393],[329,398]],labelBBox:{x:704,y:301,width:34,height:18},parent:null,relations:["1yssos5"],color:"gray",line:"dashed",head:"normal"},{id:"llqgvs",source:"edp.ingressNginx.ingressNginx",target:"edp.ui",label:"https",dotpos:"e,749.97,403.03 1740.4,176.52 1525.1,211.47 1131,282.97 805.02,384 790.08,388.63 774.74,393.9 759.47,399.5",points:[[1740,177],[1525,211],[1131,283],[805,384],[790,389],[775,394],[759,400]],labelBBox:{x:1102,y:301,width:34,height:18},parent:null,relations:["v8c8aq"],color:"gray",line:"dashed",head:"normal"},{id:"75xltk",source:"edp.ingressNginx.ingressNginx",target:"edp.forgejo",label:"https",dotpos:"e,1200.3,405 1740.1,208.08 1609.3,254.18 1419.6,321.88 1255,384 1240.3,389.56 1225.1,395.4 1209.8,401.31",points:[[1740,208],[1609,254],[1420,322],[1255,384],[1240,390],[1225,395],[1210,401]],labelBBox:{x:1468,y:301,width:34,height:18},parent:null,relations:["123efwn"],color:"gray",line:"dashed",head:"normal"},{id:"dh7ut5",source:"edp.ingressNginx.ingressNginx",target:"edp.keycloak",label:"https",dotpos:"e,1589.1,384.17 1780.8,241.13 1723.7,283.73 1655.3,334.77 1597.2,378.11",points:[[1781,241],[1724,284],[1655,335],[1597,378]],labelBBox:{x:1699,y:301,width:34,height:18},parent:null,relations:["h3rut2"],color:"gray",line:"dashed",head:"normal"},{id:"1bv0wod",source:"edp.ingressNginx.ingressNginx",target:"edp.mailhog",label:"https",dotpos:"e,1900,384.17 1900,241.13 1900,282.33 1900,331.44 1900,373.83",points:[[1900,241],[1900,282],[1900,331],[1900,374]],labelBBox:{x:1901,y:301,width:34,height:18},parent:null,relations:["ofdedh"],color:"gray",line:"dashed",head:"normal"},{id:"68hu20",source:"edp.ingressNginx.ingressNginx",target:"edp.minio",label:"https",dotpos:"e,2211,384.17 2019.2,241.13 2076.3,283.73 2144.7,334.77 2202.8,378.11",points:[[2019,241],[2076,284],[2145,335],[2203,378]],labelBBox:{x:2129,y:301,width:34,height:18},parent:null,relations:["fe65w2"],color:"gray",line:"dashed",head:"normal"},{id:"nx2xew",source:"edp.ingressNginx.ingressNginx",target:"edp.monitoring",label:"https",dotpos:"e,2600.1,405.82 2059.8,207.26 2190.8,252.97 2380.8,320.52 2545,384 2559.8,389.73 2575.2,395.8 2590.5,401.97",points:[[2060,207],[2191,253],[2381,321],[2545,384],[2560,390],[2575,396],[2591,402]],labelBBox:{x:2370,y:301,width:34,height:18},parent:null,relations:["1jvab2g","fs60l7"],color:"gray",line:"dashed",head:"normal"},{id:"momp7g",source:"edp.ingressNginx.ingressNginx",target:"edp.openbao",label:"https",dotpos:"e,3030,403.09 2059.9,177.4 2271.9,212.91 2656.5,284.63 2975,384 2990,388.66 3005.3,393.94 3020.6,399.56",points:[[2060,177],[2272,213],[2657,285],[2975,384],[2990,389],[3005,394],[3021,400]],labelBBox:{x:2744,y:301,width:34,height:18},parent:null,relations:["1p30hav"],color:"gray",line:"dashed",head:"normal"},{id:"8cmkj7",source:"edp.ingressNginx.ingressNginx",target:"edp.testApp",label:"https",dotpos:"e,3460.1,401.91 2060,164.18 2337.9,187.76 2925.9,250.03 3405,384 3420,388.19 3435.3,393.13 3450.6,398.51",points:[[2060,164],[2338,188],[2926,250],[3405,384],[3420,388],[3435,393],[3451,399]],labelBBox:{x:3165,y:301,width:34,height:18},parent:null,relations:["1i5f8um"],color:"gray",line:"dashed",head:"normal"}]},testapp:{_type:"element",tags:null,links:null,viewOf:"edp.testApp",_stage:"layouted",sourcePath:"views/edp/edp.c4",description:null,title:"Fibonacci",id:"testapp",autoLayout:{direction:"TB"},hash:"d8f40f5cfab10e6e91c79feeef6be3240922c723",bounds:{x:0,y:0,width:400,height:544},nodes:[{id:"edp.ingressNginx",parent:null,level:0,children:[],inEdges:[],outEdges:["1tefjx2"],title:"Ingress",modelRef:"edp.ingressNginx",shape:"rectangle",color:"primary",style:{opacity:20,size:"md"},description:{txt:"Ingress Controller for incoming http(s) traffic"},tags:["internal"],kind:"container",navigateTo:"ingressNginx",x:40,y:0,width:320,height:180,labelBBox:{x:33,y:54,width:255,height:66}},{id:"edp.testApp",parent:null,level:0,children:["edp.testApp.fibonacci"],inEdges:["1tefjx2"],outEdges:[],title:"Fibonacci",modelRef:"edp.testApp",shape:"rectangle",color:"primary",style:{opacity:20,size:"md"},description:{txt:"Testapp to validate deployments"},tags:[],kind:"container",depth:1,x:8,y:271,width:384,height:265,labelBBox:{x:6,y:0,width:65,height:15}},{id:"edp.testApp.fibonacci",parent:"edp.testApp",level:1,children:[],inEdges:["1tefjx2"],outEdges:[],title:"Fibonacci",modelRef:"edp.testApp.fibonacci",shape:"rectangle",color:"primary",icon:"tech:go",style:{opacity:15,size:"md"},tags:[],technology:"Golang",kind:"component",x:40,y:324,width:320,height:180,labelBBox:{x:101,y:64,width:148,height:46}}],edges:[{id:"1tefjx2",source:"edp.ingressNginx",target:"edp.testApp.fibonacci",label:"https",dotpos:"e,200,324.17 200,179.84 200,221.37 200,270.98 200,313.74",points:[[200,180],[200,221],[200,271],[200,314]],labelBBox:{x:201,y:240,width:34,height:18},parent:null,relations:["1i5f8um"],color:"gray",line:"dashed",head:"normal"}]},mailhog:{_type:"element",tags:null,links:null,viewOf:"edp.mailhog",_stage:"layouted",sourcePath:"views/edp/edp.c4",description:null,title:"Mailhog",id:"mailhog",autoLayout:{direction:"TB"},hash:"b9e703c2ceb2b2a400194d90ac7caa94525ac068",bounds:{x:0,y:0,width:400,height:544},nodes:[{id:"edp.ingressNginx",parent:null,level:0,children:[],inEdges:[],outEdges:["axipfp"],title:"Ingress",modelRef:"edp.ingressNginx",shape:"rectangle",color:"primary",style:{opacity:20,size:"md"},description:{txt:"Ingress Controller for incoming http(s) traffic"},tags:["internal"],kind:"container",navigateTo:"ingressNginx",x:40,y:0,width:320,height:180,labelBBox:{x:33,y:54,width:255,height:66}},{id:"edp.mailhog",parent:null,level:0,children:["edp.mailhog.mailhog"],inEdges:["axipfp"],outEdges:[],title:"Mailhog",modelRef:"edp.mailhog",shape:"rectangle",color:"primary",style:{opacity:20,size:"md"},description:{txt:"Web and API based SMTP testing"},tags:[],kind:"container",depth:1,x:8,y:271,width:384,height:265,labelBBox:{x:6,y:0,width:56,height:15}},{id:"edp.mailhog.mailhog",parent:"edp.mailhog",level:1,children:[],inEdges:["axipfp"],outEdges:[],title:"Mailhog",modelRef:"edp.mailhog.mailhog",shape:"rectangle",color:"primary",icon:"tech:go",style:{opacity:15,size:"md"},tags:[],technology:"Golang",kind:"component",x:40,y:324,width:320,height:180,labelBBox:{x:109,y:64,width:132,height:46}}],edges:[{id:"axipfp",source:"edp.ingressNginx",target:"edp.mailhog.mailhog",label:"https",dotpos:"e,200,324.17 200,179.84 200,221.37 200,270.98 200,313.74",points:[[200,180],[200,221],[200,271],[200,314]],labelBBox:{x:201,y:240,width:34,height:18},parent:null,relations:["ofdedh"],color:"gray",line:"dashed",head:"normal"}]},spark:{_type:"element",tags:null,links:null,viewOf:"edp.spark",_stage:"layouted",sourcePath:"views/edp/edp.c4",description:null,title:"Spark",id:"spark",autoLayout:{direction:"TB"},hash:"1ec41779bad408405a96c4063aa06b24ec2aace8",bounds:{x:0,y:0,width:400,height:281},nodes:[{id:"edp.spark",parent:null,level:0,children:["edp.spark.sparkoperator"],inEdges:[],outEdges:[],title:"Spark",modelRef:"edp.spark",shape:"rectangle",color:"primary",style:{opacity:20,size:"md"},description:{txt:"Allows running Spark applications on K8s"},tags:["internal"],kind:"container",depth:1,x:8,y:8,width:384,height:265,labelBBox:{x:6,y:0,width:43,height:15}},{id:"edp.spark.sparkoperator",parent:"edp.spark",level:1,children:[],inEdges:[],outEdges:[],title:"Spark Operator",modelRef:"edp.spark.sparkoperator",shape:"rectangle",color:"primary",icon:"tech:spark",style:{opacity:15,size:"md"},tags:[],technology:"Spark",kind:"component",x:40,y:61,width:320,height:180,labelBBox:{x:76,y:64,width:198,height:46}}],edges:[]},argoCD:{_type:"element",tags:null,links:null,viewOf:"edp.argoCD",_stage:"layouted",sourcePath:"views/edp/edp.c4",description:null,title:"ArgoCD",id:"argoCD",autoLayout:{direction:"TB"},hash:"53d798ca0a34dbe3ebf9b43318a151943ecaec33",bounds:{x:0,y:0,width:2058,height:883},nodes:[{id:"edp.ingressNginx",parent:null,level:0,children:[],inEdges:[],outEdges:["ce0h9c"],title:"Ingress",modelRef:"edp.ingressNginx",shape:"rectangle",color:"primary",style:{opacity:20,size:"md"},description:{txt:"Ingress Controller for incoming http(s) traffic"},tags:["internal"],kind:"container",navigateTo:"ingressNginx",x:48,y:0,width:320,height:180,labelBBox:{x:33,y:54,width:255,height:66}},{id:"edp.argoCD",parent:null,level:0,children:["edp.argoCD.argocdServer","edp.argoCD.argocdAppController","edp.argoCD.argocdAppSetController","edp.argoCD.argocdRepoServer","edp.argoCD.argocdRedis"],inEdges:["ce0h9c"],outEdges:["1e5s57z"],title:"ArgoCD",modelRef:"edp.argoCD",shape:"rectangle",color:"primary",style:{opacity:20,size:"md"},description:{txt:"GitOps Service"},tags:[],kind:"container",depth:1,x:8,y:271,width:1690,height:604,labelBBox:{x:6,y:0,width:53,height:15}},{id:"edp.argoCD.argocdServer",parent:"edp.argoCD",level:1,children:[],inEdges:["ce0h9c"],outEdges:["124uc06"],title:"ArgoCD Server",modelRef:"edp.argoCD.argocdServer",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},tags:[],kind:"component",x:48,y:332,width:320,height:180,labelBBox:{x:90,y:74,width:140,height:24}},{id:"edp.argoCD.argocdAppController",parent:"edp.argoCD",level:1,children:[],inEdges:[],outEdges:["doh0se"],title:"ApplicationController",modelRef:"edp.argoCD.argocdAppController",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},tags:[],kind:"component",x:478,y:332,width:320,height:180,labelBBox:{x:66,y:74,width:189,height:24}},{id:"edp.argoCD.argocdAppSetController",parent:"edp.argoCD",level:1,children:[],inEdges:[],outEdges:["ekc7mk"],title:"ApplicationSeetController",modelRef:"edp.argoCD.argocdAppSetController",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},tags:[],kind:"component",x:908,y:332,width:320,height:180,labelBBox:{x:45,y:74,width:230,height:24}},{id:"edp.argoCD.argocdRepoServer",parent:"edp.argoCD",level:1,children:[],inEdges:[],outEdges:["173l3xq","1e5s57z"],title:"Repo Server",modelRef:"edp.argoCD.argocdRepoServer",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},tags:[],kind:"component",x:1338,y:332,width:320,height:180,labelBBox:{x:102,y:74,width:116,height:24}},{id:"edp.argoCD.argocdRedis",parent:"edp.argoCD",level:1,children:[],inEdges:["124uc06","doh0se","ekc7mk","173l3xq"],outEdges:[],title:"Redis",modelRef:"edp.argoCD.argocdRedis",shape:"rectangle",color:"primary",icon:"tech:redis",style:{opacity:15,size:"md"},tags:[],technology:"Redis",kind:"component",x:693,y:655,width:320,height:180,labelBBox:{x:118,y:64,width:114,height:46}},{id:"edp.forgejogit",parent:null,level:0,children:[],inEdges:["1e5s57z"],outEdges:[],title:"ForgejoGit",modelRef:"edp.forgejogit",shape:"rectangle",color:"primary",icon:"tech:git",style:{opacity:15,size:"md"},tags:[],kind:"component",x:1738,y:655,width:320,height:180,labelBBox:{x:97,y:74,width:156,height:24}}],edges:[{id:"ce0h9c",source:"edp.ingressNginx",target:"edp.argoCD.argocdServer",label:"https",dotpos:"e,208,332.26 208,179.87 208,223.7 208,276.72 208,321.86",points:[[208,180],[208,224],[208,277],[208,322]],labelBBox:{x:209,y:240,width:34,height:18},parent:null,relations:["1yssos5"],color:"gray",line:"dashed",head:"normal"},{id:"124uc06",source:"edp.argoCD.argocdServer",target:"edp.argoCD.argocdRedis",label:"read/write",dotpos:"e,693.08,664.26 367.85,502.5 463.9,550.27 586.02,611.01 683.7,659.6",points:[[368,503],[464,550],[586,611],[684,660]],labelBBox:{x:551,y:572,width:65,height:18},parent:"edp.argoCD",relations:["yfhhi5"],color:"gray",line:"dashed",head:"normal"},{id:"doh0se",source:"edp.argoCD.argocdAppController",target:"edp.argoCD.argocdRedis",label:"read/write",dotpos:"e,782.56,654.82 687.71,511.63 703.62,538.73 721.74,568.36 739.53,594.8 751,611.84 763.71,629.54 776.36,646.54",points:[[688,512],[704,539],[722,568],[740,595],[751,612],[764,630],[776,647]],labelBBox:{x:741,y:572,width:65,height:18},parent:"edp.argoCD",relations:["10vkxaf"],color:"gray",line:"dashed",head:"normal"},{id:"ekc7mk",source:"edp.argoCD.argocdAppSetController",target:"edp.argoCD.argocdRedis",label:"read/write",dotpos:"e,912.53,654.97 1008.4,511.93 980.43,553.66 947.04,603.49 918.38,646.24",points:[[1008,512],[980,554],[947,603],[918,646]],labelBBox:{x:968,y:572,width:65,height:18},parent:"edp.argoCD",relations:["i8z0mi"],color:"gray",line:"dashed",head:"normal"},{id:"173l3xq",source:"edp.argoCD.argocdRepoServer",target:"edp.argoCD.argocdRedis",label:"read/write",dotpos:"e,1012.9,664.26 1338.1,502.5 1242.1,550.27 1120,611.01 1022.3,659.6",points:[[1338,503],[1242,550],[1120,611],[1022,660]],labelBBox:{x:1196,y:572,width:65,height:18},parent:"edp.argoCD",relations:["iullhy"],color:"gray",line:"dashed",head:"normal"},{id:"1e5s57z",source:"edp.argoCD.argocdRepoServer",target:"edp.forgejogit",label:"Syncs git repo",dotpos:"e,1787.2,654.97 1608.9,511.93 1661.9,554.44 1725.4,605.36 1779.3,648.64",points:[[1609,512],[1662,554],[1725,605],[1779,649]],labelBBox:{x:1711,y:572,width:93,height:18},parent:null,relations:["6mupa0"],color:"gray",line:"dashed",head:"normal"}]},idp:{_type:"element",tags:null,links:null,viewOf:"edp",_stage:"layouted",sourcePath:"views/edp/edp-as-idp.c4",description:null,title:"EDP as IDP",id:"idp",autoLayout:{direction:"TB"},hash:"d1e4c998ee263bce5b2572834b6a9a7b6d6391f5",bounds:{x:0,y:0,width:6408,height:1862},nodes:[{id:"developer",parent:null,level:0,children:[],inEdges:[],outEdges:["1w9cpb2","1y3lcyj","1agven9","1nv0w41","3nxrq7","bfgapq"],title:"Developer",modelRef:"developer",shape:"person",color:"green",style:{opacity:25,size:"xl"},description:{txt:"The regular user of the platform"},tags:[],kind:"actor",x:5888,y:192,width:520,height:290,labelBBox:{x:111,y:108,width:298,height:64}},{id:"@gr1",parent:null,kind:"@group",title:"EDP",color:"primary",shape:"rectangle",children:["@gr2","@gr5","@gr6","@gr7"],inEdges:["1w9cpb2","1y3lcyj","1agven9","1nv0w41","3nxrq7","bfgapq"],outEdges:[],level:0,depth:3,tags:[],style:{border:"dashed",opacity:15},x:8,y:8,width:5840,height:1846,labelBBox:{x:6,y:0,width:27,height:15}},{id:"@gr2",parent:"@gr1",kind:"@group",title:"Developer Control Plane",color:"primary",shape:"rectangle",children:["@gr3","@gr4"],inEdges:["1w9cpb2","1y3lcyj","1agven9"],outEdges:[],level:0,depth:2,tags:[],style:{border:"dashed",opacity:15},x:48,y:69,width:2580,height:935,labelBBox:{x:6,y:0,width:170,height:15}},{id:"@gr3",parent:"@gr2",kind:"@group",title:"Frontend",color:"primary",shape:"rectangle",children:["edp.ui.backstage","edp.api"],inEdges:["1w9cpb2","1y3lcyj"],outEdges:[],level:0,depth:1,tags:[],style:{border:"dashed",opacity:15},x:1358,y:572,width:1230,height:392,labelBBox:{x:6,y:0,width:65,height:15}},{id:"@gr4",parent:"@gr2",kind:"@group",title:"Version Control",color:"primary",shape:"rectangle",children:["applicationspecification.application_gitrepo","applicationspecification.applicationspec_gitrepo","edp.forgejogit"],inEdges:["1agven9"],outEdges:[],level:0,depth:1,tags:[],style:{border:"dashed",opacity:15},x:88,y:130,width:1230,height:834,labelBBox:{x:6,y:0,width:111,height:15}},{id:"@gr5",parent:"@gr1",kind:"@group",title:"Integration & Delivery Plane",color:"primary",shape:"rectangle",children:["forgejoRunner","edp.imageregistry","edp.argoCD"],inEdges:["1nv0w41"],outEdges:[],level:0,depth:1,tags:[],style:{border:"dashed",opacity:15},x:3308,y:572,width:600,height:1242,labelBBox:{x:6,y:0,width:189,height:15}},{id:"@gr6",parent:"@gr1",kind:"@group",title:"Monitoring Plane",color:"primary",shape:"rectangle",children:["edp.monitoring","edp.grafana"],inEdges:["3nxrq7"],outEdges:[],level:0,depth:1,tags:[],style:{border:"dashed",opacity:15},x:2668,y:130,width:600,height:834,labelBBox:{x:6,y:0,width:116,height:15}},{id:"@gr7",parent:"@gr1",kind:"@group",title:"Security Plane",color:"primary",shape:"rectangle",children:["edp.keycloak","edp.kyverno","edp.externalSecrets","edp.openbao"],inEdges:["bfgapq"],outEdges:[],level:0,depth:1,tags:[],style:{border:"dashed",opacity:15},x:3948,y:572,width:1860,height:831,labelBBox:{x:6,y:0,width:100,height:15}},{id:"edp.ui.backstage",parent:"@gr3",level:1,children:[],inEdges:["1w9cpb2"],outEdges:[],title:"Backstage",modelRef:"edp.ui.backstage",shape:"browser",color:"primary",icon:"tech:react",style:{opacity:25,size:"xl"},tags:[],kind:"component",x:1398,y:634,width:520,height:290,labelBBox:{x:179,y:123,width:192,height:32}},{id:"edp.api",parent:"@gr3",level:1,children:[],inEdges:["1y3lcyj"],outEdges:[],title:"API",modelRef:"edp.api",shape:"rectangle",color:"primary",icon:"tech:swagger",style:{opacity:25,size:"xl"},description:{txt:"API for the EDP platform"},tags:[],kind:"container",x:2028,y:634,width:520,height:290,labelBBox:{x:129,y:108,width:292,height:64}},{id:"applicationspecification.application_gitrepo",parent:"@gr4",level:1,children:[],inEdges:[],outEdges:[],title:"Git App Repo",modelRef:"applicationspecification.application_gitrepo",shape:"rectangle",color:"primary",icon:"tech:git",style:{opacity:25,size:"xl"},description:{txt:"Git Application Repository"},tags:[],technology:"Git",kind:"component",x:128,y:192,width:520,height:290,labelBBox:{x:123,y:96,width:304,height:89}},{id:"applicationspecification.applicationspec_gitrepo",parent:"@gr4",level:1,children:[],inEdges:[],outEdges:[],title:"Git AppSpec Repo",modelRef:"applicationspecification.applicationspec_gitrepo",shape:"rectangle",color:"primary",icon:"tech:git",style:{opacity:25,size:"xl"},description:{txt:"Git Application Specification Repository"},tags:[],technology:"Git",kind:"component",x:128,y:634,width:520,height:290,labelBBox:{x:114,y:83,width:322,height:114}},{id:"edp.forgejogit",parent:"@gr4",level:1,children:[],inEdges:["1agven9"],outEdges:[],title:"ForgejoGit",modelRef:"edp.forgejogit",shape:"rectangle",color:"primary",icon:"tech:git",style:{opacity:25,size:"xl"},tags:[],kind:"component",x:758,y:634,width:520,height:290,labelBBox:{x:179,y:123,width:192,height:32}},{id:"forgejoRunner",parent:"@gr5",level:1,children:[],inEdges:[],outEdges:[],title:"Forgejo Runner",modelRef:"forgejoRunner",shape:"rectangle",color:"primary",style:{opacity:25,size:"xl"},description:{txt:"A runner is a service that runs jobs triggered by Forgejo. A runner can have different technical implementations like a container or a VM."},tags:[],kind:"component",x:3348,y:1073,width:520,height:290,labelBBox:{x:69,y:71,width:382,height:139}},{id:"edp.imageregistry",parent:"@gr5",level:1,children:[],inEdges:["1nv0w41"],outEdges:[],title:"Forgejo OCI Image Registry",modelRef:"edp.imageregistry",shape:"rectangle",color:"primary",icon:"tech:go",style:{opacity:25,size:"xl"},description:{txt:"Container Image Registry"},tags:[],technology:"Golang",kind:"component",x:3348,y:634,width:520,height:290,labelBBox:{x:70,y:96,width:410,height:89}},{id:"edp.argoCD",parent:"@gr5",level:1,children:[],inEdges:[],outEdges:[],title:"ArgoCD",modelRef:"edp.argoCD",shape:"rectangle",color:"primary",style:{opacity:25,size:"xl"},description:{txt:"GitOps Service"},tags:[],kind:"container",navigateTo:"argoCD",x:3348,y:1484,width:520,height:290,labelBBox:{x:187,y:108,width:145,height:64}},{id:"edp.monitoring",parent:"@gr6",level:1,children:[],inEdges:[],outEdges:[],title:"Monitoring",modelRef:"edp.monitoring",shape:"rectangle",color:"primary",style:{opacity:25,size:"xl"},description:{txt:"Observability system to monitor deployed components"},tags:[],kind:"container",navigateTo:"monitoring",x:2708,y:192,width:520,height:290,labelBBox:{x:66,y:96,width:388,height:88}},{id:"edp.grafana",parent:"@gr6",level:1,children:[],inEdges:["3nxrq7"],outEdges:[],title:"Grafana",modelRef:"edp.grafana",shape:"rectangle",color:"primary",icon:"tech:grafana",style:{opacity:25,size:"xl"},description:{txt:"Data visualization and monitoring"},tags:[],kind:"container",x:2708,y:634,width:520,height:290,labelBBox:{x:89,y:108,width:372,height:64}},{id:"edp.keycloak",parent:"@gr7",level:1,children:[],inEdges:["bfgapq"],outEdges:[],title:"Keycloak",modelRef:"edp.keycloak",shape:"rectangle",color:"primary",style:{opacity:25,size:"xl"},description:{txt:"Single Sign On for all EDP products"},tags:[],kind:"container",navigateTo:"keycloak",x:5248,y:634,width:520,height:290,labelBBox:{x:92,y:108,width:337,height:64}},{id:"edp.kyverno",parent:"@gr7",level:1,children:[],inEdges:[],outEdges:[],title:"Kyverno",modelRef:"edp.kyverno",shape:"rectangle",color:"primary",style:{opacity:25,size:"xl"},description:{txt:"Policy-as-Code"},tags:["internal"],kind:"container",x:3988,y:634,width:520,height:290,labelBBox:{x:187,y:108,width:146,height:64}},{id:"edp.externalSecrets",parent:"@gr7",level:1,children:[],inEdges:[],outEdges:[],title:"external-secrets",modelRef:"edp.externalSecrets",shape:"rectangle",color:"primary",style:{opacity:25,size:"xl"},description:{txt:"Provider to access externally stored Kubernetes secrets"},tags:["internal"],kind:"container",navigateTo:"externalSecrets",x:4618,y:634,width:520,height:290,labelBBox:{x:92,y:96,width:337,height:88}},{id:"edp.openbao",parent:"@gr7",level:1,children:[],inEdges:[],outEdges:[],title:"OpenBao",modelRef:"edp.openbao",shape:"rectangle",color:"primary",style:{opacity:25,size:"xl"},description:{txt:"Secure secret storage"},tags:[],kind:"container",x:3988,y:1073,width:520,height:290,labelBBox:{x:155,y:108,width:209,height:64}}],edges:[{id:"1w9cpb2",source:"developer",target:"edp.ui.backstage",label:"create and maintain apps",dotpos:"e,1840.8,633.87 5888.3,380.18 5537.3,435.39 4891.5,528.84 4336,564.42 4303.2,566.51 2004.4,563.02 1973,572.42 1930.6,585.1 1888.5,605.48 1849.6,628.59",points:[[5888,380],[5537,435],[4891,529],[4336,564],[4303,567],[2004,563],[1973,572],[1931,585],[1888,605],[1850,629]],labelBBox:{x:4585,y:541,width:161,height:18},parent:null,relations:["1woleh6"],color:"gray",line:"dashed",head:"normal"},{id:"1y3lcyj",source:"developer",target:"edp.api",label:"uses API",dotpos:"e,2494.7,633.74 5888.2,397.27 5631.2,453.06 5225.9,532.44 4870,564.42 4839.2,567.19 2670.9,564.31 2641,572.42 2594.4,585.07 2547.6,605.53 2504,628.75",points:[[5888,397],[5631,453],[5226,532],[4870,564],[4839,567],[2671,564],[2641,572],[2594,585],[2548,606],[2504,629]],labelBBox:{x:5046,y:541,width:60,height:18},parent:null,relations:["1l9a3pd"],color:"gray",line:"dashed",head:"normal"},{id:"1agven9",source:"developer",target:"edp.forgejogit",label:"uses git",dotpos:"e,1199.9,633.62 5888.4,368.77 5435.9,421.39 4472.9,525.91 3656,564.42 3623.7,565.94 1361.9,563.12 1331,572.42 1288.9,585.06 1247.2,605.35 1208.6,628.36",points:[[5888,369],[5436,421],[4473,526],[3656,564],[3624,566],[1362,563],[1331,572],[1289,585],[1247,605],[1209,628]],labelBBox:{x:3997,y:541,width:52,height:18},parent:null,relations:["1uzzn9j"],color:"gray",line:"dashed",head:"normal"},{id:"1nv0w41",source:"developer",target:"edp.imageregistry",label:"pushes and pull images",dotpos:"e,3790,633.69 5888.3,438.36 5749.8,486.81 5575.2,539.64 5414,564.42 5373,570.72 3960.7,560.44 3921,572.42 3878.9,585.1 3837.2,605.41 3798.7,628.42",points:[[5888,438],[5750,487],[5575,540],[5414,564],[5373,571],[3961,560],[3921,572],[3879,585],[3837,605],[3799,628]],labelBBox:{x:5518,y:541,width:151,height:18},parent:null,relations:["177bm2y"],color:"gray",line:"dashed",head:"normal"},{id:"3nxrq7",source:"developer",target:"edp.grafana",label:"monitors",dotpos:"e,3150,633.65 5888.1,415.01 5693.7,468.76 5420.3,535.68 5175,564.42 5122.7,570.54 3331.4,557.26 3281,572.42 3238.9,585.08 3197.2,605.37 3158.6,628.38",points:[[5888,415],[5694,469],[5420,536],[5175,564],[5123,571],[3331,557],[3281,572],[3239,585],[3197,605],[3159,628]],labelBBox:{x:5310,y:541,width:58,height:18},parent:null,relations:["1xiorre"],color:"gray",line:"dashed",head:"normal"},{id:"bfgapq",source:"developer",target:"edp.keycloak",label:"authenticates",dotpos:"e,5717.2,633.79 5938.9,481.38 5870.6,528.36 5794.5,580.63 5725.6,628.03",points:[[5939,481],[5871,528],[5795,581],[5726,628]],labelBBox:{x:5848,y:541,width:87,height:18},parent:null,relations:["jpl8ll"],color:"gray",line:"dashed",head:"normal"}]},edporchestrator:{_type:"element",tags:null,links:null,viewOf:"edp",_stage:"layouted",sourcePath:"views/edp/edp-as-orchestrator.c4",description:null,title:"EDP as Orchestrator",id:"edporchestrator",autoLayout:{direction:"TB"},hash:"3b527fd6f99efa02fc730d4569c0a0ccc75b4ef3",bounds:{x:0,y:0,width:846,height:1457},nodes:[{id:"@gr1",parent:null,kind:"@group",title:"EDP",color:"primary",shape:"rectangle",children:["@gr2","@gr3","@gr4","@gr5","@gr6"],inEdges:[],outEdges:[],level:0,depth:2,tags:[],style:{border:"dashed",opacity:15},x:8,y:8,width:830,height:1441,labelBBox:{x:6,y:0,width:27,height:15}},{id:"@gr2",parent:"@gr1",kind:"@group",title:"Developer Control Plane",color:"primary",shape:"rectangle",children:[],inEdges:[],outEdges:[],level:0,depth:0,tags:[],style:{border:"dashed",opacity:15},x:48,y:69,width:320,height:180,labelBBox:{x:49,y:74,width:222,height:24}},{id:"@gr3",parent:"@gr1",kind:"@group",title:"Integration & Delivery Plane",color:"primary",shape:"rectangle",children:[],inEdges:[],outEdges:[],level:0,depth:0,tags:[],style:{border:"dashed",opacity:15},x:478,y:69,width:320,height:180,labelBBox:{x:34,y:74,width:252,height:24}},{id:"@gr4",parent:"@gr1",kind:"@group",title:"Monitoring Plane",color:"primary",shape:"rectangle",children:[],inEdges:[],outEdges:[],level:0,depth:0,tags:[],style:{border:"dashed",opacity:15},x:48,y:369,width:320,height:180,labelBBox:{x:83,y:74,width:154,height:24}},{id:"@gr5",parent:"@gr1",kind:"@group",title:"Security Plane",color:"primary",shape:"rectangle",children:[],inEdges:[],outEdges:[],level:0,depth:0,tags:[],style:{border:"dashed",opacity:15},x:478,y:369,width:320,height:180,labelBBox:{x:94,y:74,width:133,height:24}},{id:"@gr6",parent:"@gr1",kind:"@group",title:"Backend",color:"primary",shape:"rectangle",children:["edp.argoCD","edp.crossplane"],inEdges:[],outEdges:[],level:0,depth:1,tags:[],style:{border:"dashed",opacity:15},x:198,y:608,width:600,height:801,labelBBox:{x:6,y:0,width:59,height:15}},{id:"edp.argoCD",parent:"@gr6",level:1,children:[],inEdges:[],outEdges:[],title:"ArgoCD",modelRef:"edp.argoCD",shape:"rectangle",color:"primary",style:{opacity:25,size:"xl"},description:{txt:"Declarative management of platform tools"},tags:[],kind:"container",isCustomized:!0,navigateTo:"argoCD",x:238,y:669,width:520,height:290,labelBBox:{x:64,y:109,width:393,height:63}},{id:"edp.crossplane",parent:"@gr6",level:1,children:[],inEdges:[],outEdges:[],title:"Crossplane",modelRef:"edp.crossplane",shape:"rectangle",color:"primary",style:{opacity:25,size:"xl"},description:{txt:"Declarative management of ressources"},tags:["internal"],kind:"container",navigateTo:"crossplane",x:238,y:1079,width:520,height:290,labelBBox:{x:75,y:109,width:369,height:63}}],edges:[]},"application-transition":{_type:"element",tags:null,links:null,_stage:"layouted",sourcePath:"views/high-level-concept/application-transition.c4",description:null,title:"application-transistion",id:"application-transition",autoLayout:{direction:"TB"},hash:"024761d9274cbfc35558ae3606770e2c3e3afd0f",bounds:{x:0,y:0,width:1032,height:934},nodes:[{id:"@gr1",parent:null,kind:"@group",title:"developer-scope",color:"green",shape:"rectangle",children:["@gr2","@gr3","developer","otherProductLifecycleRoles"],inEdges:[],outEdges:["17brhnu"],level:0,depth:3,tags:[],style:{border:"none",opacity:20},x:8,y:8,width:1016,height:645,labelBBox:{x:6,y:0,width:114,height:15}},{id:"@gr2",parent:"@gr1",kind:"@group",title:"Devops inner-loop",color:"gray",shape:"rectangle",children:["localbox"],inEdges:["zjg544","6szgsj"],outEdges:["1uo6k6b"],level:0,depth:2,tags:[],style:{border:"none",opacity:30},x:48,y:263,width:448,height:350,labelBBox:{x:6,y:0,width:122,height:15}},{id:"@gr3",parent:"@gr1",kind:"@group",title:"Devops outer-loop",color:"gray",shape:"rectangle",children:["edp"],inEdges:["1okgiq5","1wupl5x","1uo6k6b"],outEdges:["17brhnu","6szgsj"],level:0,depth:2,tags:[],style:{border:"none",opacity:30},x:536,y:263,width:448,height:350,labelBBox:{x:6,y:0,width:126,height:15}},{id:"cloud",parent:null,level:0,children:["cloud.application"],inEdges:["17brhnu"],outEdges:[],title:"Cloud",modelRef:"cloud",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Cloud environments"},tags:[],technology:"IaaS/PaaS",kind:"system",depth:1,x:568,y:661,width:384,height:265,labelBBox:{x:6,y:0,width:43,height:15}},{id:"cloud.application",parent:"cloud",level:1,children:[],inEdges:[],outEdges:[],title:"application",modelRef:"cloud.application",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"An application description"},tags:[],technology:"DSL",kind:"schema",x:600,y:714,width:320,height:180,labelBBox:{x:73,y:54,width:175,height:67}},{id:"developer",parent:"@gr1",level:1,children:[],inEdges:[],outEdges:["zjg544","1okgiq5"],title:"Developer",modelRef:"developer",shape:"person",color:"green",style:{opacity:15,size:"md"},description:{txt:"The regular user of the platform"},tags:[],kind:"actor",x:127,y:69,width:320,height:180,labelBBox:{x:53,y:63,width:214,height:48}},{id:"otherProductLifecycleRoles",parent:"@gr1",level:1,children:[],inEdges:[],outEdges:["1wupl5x"],title:"Reviewer, Tester, Auditors, Operators",modelRef:"otherProductLifecycleRoles",shape:"person",color:"green",style:{opacity:15,size:"md"},description:{txt:"Coworking roles in the outer loop"},tags:[],kind:"actor",x:572,y:69,width:375,height:180,labelBBox:{x:18,y:63,width:340,height:48}},{id:"localbox",parent:"@gr2",level:1,children:["localbox.application"],inEdges:["zjg544","6szgsj"],outEdges:["1uo6k6b"],title:"localbox",modelRef:"localbox",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"A local development system"},tags:[],technology:"Linux/Windows/Mac",kind:"system",depth:1,x:80,y:316,width:384,height:265,labelBBox:{x:6,y:0,width:66,height:15}},{id:"localbox.application",parent:"localbox",level:2,children:[],inEdges:[],outEdges:[],title:"application",modelRef:"localbox.application",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"An application description"},tags:[],technology:"DSL",kind:"schema",x:112,y:369,width:320,height:180,labelBBox:{x:73,y:53,width:175,height:68}},{id:"edp",parent:"@gr3",level:1,children:["edp.application"],inEdges:["1okgiq5","1wupl5x","1uo6k6b"],outEdges:["17brhnu","6szgsj"],title:"EDP",modelRef:"edp",shape:"rectangle",color:"primary",icon:"tech:kubernetes",style:{opacity:15,size:"md"},description:{txt:"EDP Edge Development Platform"},tags:[],technology:"Kubernetes",kind:"system",depth:1,navigateTo:"edp",x:568,y:316,width:384,height:265,labelBBox:{x:6,y:0,width:27,height:15}},{id:"edp.application",parent:"edp",level:2,children:[],inEdges:[],outEdges:[],title:"application",modelRef:"edp.application",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"An application description"},tags:[],technology:"DSL",kind:"schema",x:600,y:369,width:320,height:180,labelBBox:{x:73,y:53,width:175,height:68}}],edges:[{id:"zjg544",source:"developer",target:"localbox",label:"inner loop development",dotpos:"e,279.16,316 282.54,248.8 281.64,266.75 280.66,286.09 279.68,305.53",points:[[283,249],[282,267],[281,286],[280,306]],labelBBox:{x:130,y:282,width:150,height:18},parent:"@gr1",relations:["5hkplj"],color:"gray",line:"dashed",head:"normal"},{id:"1okgiq5",source:"developer",target:"edp",label:"outer loop development",dotpos:"e,572.31,316 446.79,237.41 461.91,245.66 476.86,254.19 491,262.8 515.03,277.44 539.66,293.58 563.79,310.14",points:[[447,237],[462,246],[477,254],[491,263],[515,277],[540,294],[564,310]],labelBBox:{x:360,y:252,width:150,height:18},parent:"@gr1",relations:["1pp73vj","yk9zv2","12036hb","jpl8ll","1ghp31l","1xiorre","1woleh6","177bm2y","1l9a3pd","1uzzn9j"],color:"gray",line:"dashed",head:"normal"},{id:"1wupl5x",source:"otherProductLifecycleRoles",target:"edp",label:"act according to responibility",dotpos:"e,760,316 760,248.8 760,266.75 760,286.09 760,305.53",points:[[760,249],[760,267],[760,286],[760,306]],labelBBox:{x:578,y:282,width:181,height:18},parent:"@gr1",relations:["lb4xas"],color:"gray",line:"dashed",head:"normal"},{id:"1uo6k6b",source:"localbox",target:"edp",label:"inner-outer-loop synchronization",dotpos:"e,568,459.2 464,459.2 495.2,459.2 526.41,459.2 557.62,459.2",points:[[464,459],[495,459],[526,459],[558,459]],labelBBox:{x:414,y:459,width:204,height:18},parent:"@gr1",relations:["1mp9fps"],color:"gray",line:"dashed",head:"normal"},{id:"17brhnu",source:"edp",target:"cloud",label:"deploys and observes",dotpos:"e,760,661.2 760,581.2 760,603.74 760,627.57 760,650.92",points:[[760,581],[760,604],[760,628],[760,651]],labelBBox:{x:619,y:598,width:140,height:18},parent:null,relations:["gerdx4"],color:"gray",line:"dashed",head:"normal"},{id:"6szgsj",source:"edp",target:"localbox",label:null,dotpos:"e,464,459.2 568,459.2 536.79,459.2 505.57,459.2 474.36,459.2",points:[[568,459],[537,459],[506,459],[474,459]],labelBBox:null,parent:"@gr1",relations:["wvo8i"],color:"gray",line:"dashed",head:"normal"}]},landscape:{_type:"element",tags:null,links:null,_stage:"layouted",sourcePath:"views/high-level-concept/platform-context/developer-landscape.c4",description:null,title:"Developer Landscape View",id:"landscape",autoLayout:{direction:"LR",nodeSep:100,rankSep:100},hash:"55fcafa716faf1d0e234f3e0411868055c01907e",bounds:{x:0,y:0,width:3419,height:1756},nodes:[{id:"applicationspecification",parent:null,level:0,children:[],inEdges:[],outEdges:[],title:"application-specification",modelRef:"applicationspecification",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"The application specification describes the application and its components. It is used to generate the application and its components."},tags:[],kind:"component",x:0,y:280,width:338,height:180,labelBBox:{x:18,y:45,width:303,height:84}},{id:"forgejoRunnerWorker",parent:null,level:0,children:[],inEdges:[],outEdges:[],title:"Forgejo Runner Worker",modelRef:"forgejoRunnerWorker",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"A worker is a service that runs a job invoked by a runner. A worker typically is a container."},tags:[],kind:"component",x:702,y:280,width:333,height:180,labelBBox:{x:19,y:45,width:297,height:84}},{id:"promtail",parent:null,level:0,children:[],inEdges:[],outEdges:[],title:"Promtail",modelRef:"promtail",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Log shipper agent for Loki"},tags:[],kind:"component",x:1257,y:280,width:320,height:180,labelBBox:{x:71,y:63,width:177,height:48}},{id:"elasticsearch",parent:null,level:0,children:[],inEdges:[],outEdges:[],title:"Elasticsearch",modelRef:"elasticsearch",shape:"rectangle",color:"primary",icon:"tech:elasticsearch",style:{opacity:20,size:"md"},description:{txt:`Elasticsearch is a distributed, RESTful search and analytics engine capable of +and security scanning`},tags:[],technology:"Golang",kind:"container",depth:1,x:8,y:239,width:830,height:281,labelBBox:{x:6,y:0,width:58,height:15}},{id:"edp.forgejo.forgejocollaboration",parent:"edp.forgejo",level:1,children:[],inEdges:[],outEdges:[],title:"Collaboration",modelRef:"edp.forgejo.forgejocollaboration",shape:"rectangle",color:"primary",icon:"tech:github",style:{opacity:15,size:"md"},tags:[],kind:"component",x:48,y:300,width:320,height:180,labelBBox:{x:85,y:74,width:180,height:24}},{id:"edp.forgejo.forgejoproject",parent:"edp.forgejo",level:1,children:[],inEdges:[],outEdges:[],title:"Project Mgmt",modelRef:"edp.forgejo.forgejoproject",shape:"rectangle",color:"primary",icon:"tech:github",style:{opacity:15,size:"md"},tags:[],kind:"component",x:478,y:300,width:320,height:180,labelBBox:{x:85,y:74,width:180,height:24}},{id:"edp.ingressNginx",parent:null,level:0,children:[],inEdges:[],outEdges:["1dgzzfb"],title:"Ingress",modelRef:"edp.ingressNginx",shape:"rectangle",color:"primary",style:{opacity:20,size:"md"},description:{txt:"Ingress Controller for incoming http(s) traffic"},tags:["internal"],kind:"container",navigateTo:"ingressNginx",x:48,y:0,width:320,height:180,labelBBox:{x:33,y:54,width:255,height:66}}],edges:[{id:"1dgzzfb",source:"edp.ingressNginx",target:"edp.forgejo",label:"https",points:[[208,180],[208,195],[208,212],[208,228]],labelBBox:{x:173,y:186,width:34,height:18},parent:null,relations:["123efwn"],color:"gray",line:"dashed",head:"normal"}]},crossplane:{_type:"element",tags:null,links:null,viewOf:"edp.crossplane",_stage:"layouted",sourcePath:"views/edp/edp.c4",description:null,title:"Crossplane",id:"crossplane",autoLayout:{direction:"TB"},hash:"21cafdc6d03bbe02437c3a01524d368cfd652a88",bounds:{x:0,y:0,width:1276,height:597},nodes:[{id:"edp.crossplane",parent:null,level:0,children:["edp.crossplane.crossplane","edp.crossplane.crossplaneFunction","edp.crossplane.crossplaneRbacManager","edp.crossplane.providerArgoCD","edp.crossplane.providerKind","edp.crossplane.providerShell"],inEdges:[],outEdges:[],title:"Crossplane",modelRef:"edp.crossplane",shape:"rectangle",color:"primary",style:{opacity:20,size:"md"},description:{txt:"Declarative management of ressources"},tags:["internal"],kind:"container",depth:1,x:8,y:8,width:1260,height:581,labelBBox:{x:6,y:0,width:80,height:15}},{id:"edp.crossplane.crossplane",parent:"edp.crossplane",level:1,children:[],inEdges:[],outEdges:[],title:"Crossplane",modelRef:"edp.crossplane.crossplane",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},tags:[],kind:"component",x:48,y:69,width:320,height:180,labelBBox:{x:107,y:74,width:105,height:24}},{id:"edp.crossplane.crossplaneFunction",parent:"edp.crossplane",level:1,children:[],inEdges:[],outEdges:[],title:"Function Patch and Transform",modelRef:"edp.crossplane.crossplaneFunction",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},tags:[],kind:"component",x:478,y:69,width:320,height:180,labelBBox:{x:23,y:74,width:273,height:24}},{id:"edp.crossplane.crossplaneRbacManager",parent:"edp.crossplane",level:1,children:[],inEdges:[],outEdges:[],title:"RBAC Manager",modelRef:"edp.crossplane.crossplaneRbacManager",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},tags:[],kind:"component",x:908,y:69,width:320,height:180,labelBBox:{x:88,y:74,width:144,height:24}},{id:"edp.crossplane.providerArgoCD",parent:"edp.crossplane",level:1,children:[],inEdges:[],outEdges:[],title:"ArgoCD Provider",modelRef:"edp.crossplane.providerArgoCD",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},tags:[],kind:"component",x:48,y:369,width:320,height:180,labelBBox:{x:82,y:74,width:155,height:24}},{id:"edp.crossplane.providerKind",parent:"edp.crossplane",level:1,children:[],inEdges:[],outEdges:[],title:"Kind Provider",modelRef:"edp.crossplane.providerKind",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},tags:[],kind:"component",x:478,y:369,width:320,height:180,labelBBox:{x:98,y:74,width:124,height:24}},{id:"edp.crossplane.providerShell",parent:"edp.crossplane",level:1,children:[],inEdges:[],outEdges:[],title:"Shell Provider",modelRef:"edp.crossplane.providerShell",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},tags:[],kind:"component",x:908,y:369,width:320,height:180,labelBBox:{x:96,y:74,width:129,height:24}}],edges:[]},externalSecrets:{_type:"element",tags:null,links:null,viewOf:"edp.externalSecrets",_stage:"layouted",sourcePath:"views/edp/edp.c4",description:null,title:"external-secrets",id:"externalSecrets",autoLayout:{direction:"TB"},hash:"b3af3338d1f389aa939be93f7233de72e9cf818b",bounds:{x:0,y:0,width:846,height:597},nodes:[{id:"edp.externalSecrets",parent:null,level:0,children:["edp.externalSecrets.externalSecrets","edp.externalSecrets.certController","edp.externalSecrets.webhook"],inEdges:[],outEdges:[],title:"external-secrets",modelRef:"edp.externalSecrets",shape:"rectangle",color:"primary",style:{opacity:20,size:"md"},description:{txt:"Provider to access externally stored Kubernetes secrets"},tags:["internal"],kind:"container",depth:1,x:8,y:8,width:830,height:581,labelBBox:{x:6,y:0,width:119,height:15}},{id:"edp.externalSecrets.externalSecrets",parent:"edp.externalSecrets",level:1,children:[],inEdges:[],outEdges:[],title:"external-secrets controller",modelRef:"edp.externalSecrets.externalSecrets",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},tags:[],kind:"component",x:48,y:69,width:320,height:180,labelBBox:{x:43,y:74,width:234,height:24}},{id:"edp.externalSecrets.certController",parent:"edp.externalSecrets",level:1,children:[],inEdges:[],outEdges:[],title:"cert-controller",modelRef:"edp.externalSecrets.certController",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},tags:[],kind:"component",x:478,y:69,width:320,height:180,labelBBox:{x:97,y:74,width:126,height:24}},{id:"edp.externalSecrets.webhook",parent:"edp.externalSecrets",level:1,children:[],inEdges:[],outEdges:[],title:"webhook",modelRef:"edp.externalSecrets.webhook",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},tags:[],kind:"component",x:48,y:369,width:320,height:180,labelBBox:{x:118,y:74,width:84,height:24}}],edges:[]},velero:{_type:"element",tags:null,links:null,viewOf:"edp.velero",_stage:"layouted",sourcePath:"views/edp/edp.c4",description:null,title:"Velero",id:"velero",autoLayout:{direction:"TB"},hash:"31cb339645f3556f63935e842bc8b051e3e17e78",bounds:{x:0,y:0,width:826,height:564},nodes:[{id:"edp.velero",parent:null,level:0,children:["edp.velero.velero"],inEdges:[],outEdges:["13dald4"],title:"Velero",modelRef:"edp.velero",shape:"rectangle",color:"primary",style:{opacity:20,size:"md"},description:{txt:"Backup Kubernetes resources"},tags:["internal"],kind:"container",depth:1,x:434,y:8,width:384,height:265,labelBBox:{x:6,y:0,width:49,height:15}},{id:"edp.ingressNginx",parent:null,level:0,children:[],inEdges:[],outEdges:["mcc3r"],title:"Ingress",modelRef:"edp.ingressNginx",shape:"rectangle",color:"primary",style:{opacity:20,size:"md"},description:{txt:"Ingress Controller for incoming http(s) traffic"},tags:["internal"],kind:"container",navigateTo:"ingressNginx",x:0,y:384,width:320,height:180,labelBBox:{x:33,y:54,width:255,height:66}},{id:"edp.velero.velero",parent:"edp.velero",level:1,children:[],inEdges:[],outEdges:["13dald4"],title:"Velero",modelRef:"edp.velero.velero",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},tags:[],kind:"component",x:466,y:61,width:320,height:180,labelBBox:{x:129,y:74,width:62,height:24}},{id:"edp.minio",parent:null,level:0,children:[],inEdges:["13dald4","mcc3r"],outEdges:[],title:"Minio",modelRef:"edp.minio",shape:"rectangle",color:"primary",style:{opacity:20,size:"md"},description:{txt:"S3 compatible blob storage"},tags:[],kind:"container",navigateTo:"minio",x:466,y:384,width:320,height:180,labelBBox:{x:67,y:63,width:186,height:48}}],edges:[{id:"13dald4",source:"edp.velero.velero",target:"edp.minio",label:"store backups",points:[[626,241],[626,282],[626,331],[626,374]],labelBBox:{x:627,y:301,width:91,height:18},parent:null,relations:["1mazt1x"],color:"gray",line:"dashed",head:"normal"},{id:"mcc3r",source:"edp.ingressNginx",target:"edp.minio",label:"https",points:[[320,474],[364,474],[411,474],[456,474]],labelBBox:{x:376,y:448,width:34,height:18},parent:null,relations:["fe65w2"],color:"gray",line:"dashed",head:"normal"}]},minio:{_type:"element",tags:null,links:null,viewOf:"edp.minio",_stage:"layouted",sourcePath:"views/edp/edp.c4",description:null,title:"Minio",id:"minio",autoLayout:{direction:"TB"},hash:"0fb400499e182662d442885af28e9f6c9738a4da",bounds:{x:0,y:0,width:750,height:544},nodes:[{id:"edp.ingressNginx",parent:null,level:0,children:[],inEdges:[],outEdges:["jfb4ud"],title:"Ingress",modelRef:"edp.ingressNginx",shape:"rectangle",color:"primary",style:{opacity:20,size:"md"},description:{txt:"Ingress Controller for incoming http(s) traffic"},tags:["internal"],kind:"container",navigateTo:"ingressNginx",x:0,y:0,width:320,height:180,labelBBox:{x:33,y:54,width:255,height:66}},{id:"edp.velero",parent:null,level:0,children:[],inEdges:[],outEdges:["wqj1c3"],title:"Velero",modelRef:"edp.velero",shape:"rectangle",color:"primary",style:{opacity:20,size:"md"},description:{txt:"Backup Kubernetes resources"},tags:["internal"],kind:"container",navigateTo:"velero",x:430,y:0,width:320,height:180,labelBBox:{x:58,y:63,width:205,height:48}},{id:"edp.minio",parent:null,level:0,children:["edp.minio.minio"],inEdges:["jfb4ud","wqj1c3"],outEdges:[],title:"Minio",modelRef:"edp.minio",shape:"rectangle",color:"primary",style:{opacity:20,size:"md"},description:{txt:"S3 compatible blob storage"},tags:[],kind:"container",depth:1,x:183,y:271,width:384,height:265,labelBBox:{x:6,y:0,width:36,height:15}},{id:"edp.minio.minio",parent:"edp.minio",level:1,children:[],inEdges:["jfb4ud","wqj1c3"],outEdges:[],title:"S3 Blob Storage",modelRef:"edp.minio.minio",shape:"storage",color:"primary",style:{opacity:15,size:"md"},tags:[],technology:"Minio",kind:"component",x:215,y:324,width:320,height:180,labelBBox:{x:85,y:64,width:150,height:46}}],edges:[{id:"jfb4ud",source:"edp.ingressNginx",target:"edp.minio.minio",label:"https",points:[[219,180],[247,222],[281,272],[309,315]],labelBBox:{x:275,y:240,width:34,height:18},parent:null,relations:["fe65w2"],color:"gray",line:"dashed",head:"normal"},{id:"wqj1c3",source:"edp.velero",target:"edp.minio.minio",label:"store backups",points:[[531,180],[503,222],[469,272],[441,315]],labelBBox:{x:490,y:240,width:91,height:18},parent:null,relations:["1mazt1x"],color:"gray",line:"dashed",head:"normal"}]},monitoring:{_type:"element",tags:null,links:null,viewOf:"edp.monitoring",_stage:"layouted",sourcePath:"views/edp/edp.c4",description:null,title:"Monitoring",id:"monitoring",autoLayout:{direction:"TB"},hash:"0eedaf64b05f32fb962d9b885c9c7febad53741c",bounds:{x:0,y:0,width:878,height:645},nodes:[{id:"edp.ingressNginx",parent:null,level:0,children:[],inEdges:[],outEdges:["j52jq6","15c9gki"],title:"Ingress",modelRef:"edp.ingressNginx",shape:"rectangle",color:"primary",style:{opacity:20,size:"md"},description:{txt:"Ingress Controller for incoming http(s) traffic"},tags:["internal"],kind:"container",navigateTo:"ingressNginx",x:510,y:0,width:320,height:180,labelBBox:{x:33,y:54,width:255,height:66}},{id:"edp.monitoring",parent:null,level:0,children:["edp.monitoring.loki","edp.monitoring.alloy"],inEdges:["j52jq6","15c9gki"],outEdges:[],title:"Monitoring",modelRef:"edp.monitoring",shape:"rectangle",color:"primary",style:{opacity:20,size:"md"},description:{txt:"Observability system to monitor deployed components"},tags:[],kind:"container",depth:2,x:8,y:271,width:862,height:366,labelBBox:{x:6,y:0,width:75,height:15}},{id:"edp.monitoring.loki",parent:"edp.monitoring",level:1,children:["edp.monitoring.loki.queryFrontend"],inEdges:["15c9gki"],outEdges:[],title:"Loki",modelRef:"edp.monitoring.loki",shape:"rectangle",color:"primary",icon:"tech:grafana",style:{opacity:20,size:"md"},description:{txt:"Log aggregation system"},tags:[],kind:"container",depth:1,x:48,y:332,width:384,height:265,labelBBox:{x:6,y:0,width:30,height:15}},{id:"edp.monitoring.alloy",parent:"edp.monitoring",level:1,children:[],inEdges:["j52jq6"],outEdges:[],title:"Alloy",modelRef:"edp.monitoring.alloy",shape:"rectangle",color:"primary",icon:"tech:grafana",style:{opacity:15,size:"md",multiple:!0},description:{txt:"Open Telemetry Collector"},tags:[],kind:"component",x:510,y:385,width:320,height:180,labelBBox:{x:59,y:63,width:233,height:48}},{id:"edp.monitoring.loki.queryFrontend",parent:"edp.monitoring.loki",level:2,children:[],inEdges:["15c9gki"],outEdges:[],title:"Query Frontend",modelRef:"edp.monitoring.loki.queryFrontend",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},tags:[],kind:"component",x:80,y:385,width:320,height:180,labelBBox:{x:88,y:74,width:144,height:24}}],edges:[{id:"j52jq6",source:"edp.ingressNginx",target:"edp.monitoring.alloy",label:"https",points:[[670,180],[670,238],[670,315],[670,375]],labelBBox:{x:671,y:240,width:34,height:18},parent:null,relations:["1jvab2g"],color:"gray",line:"dashed",head:"normal"},{id:"15c9gki",source:"edp.ingressNginx",target:"edp.monitoring.loki.queryFrontend",label:"https",points:[[522,180],[482,207],[440,238],[404,271],[369,303],[336,342],[309,377]],labelBBox:{x:438,y:240,width:34,height:18},parent:null,relations:["fs60l7"],color:"gray",line:"dashed",head:"normal"}]},ingressNginx:{_type:"element",tags:null,links:null,viewOf:"edp.ingressNginx",_stage:"layouted",sourcePath:"views/edp/edp.c4",description:null,title:"Ingress",id:"ingressNginx",autoLayout:{direction:"TB"},hash:"7a821addac59ba362551aa1d990ed1be9968679c",bounds:{x:0,y:0,width:3780,height:564},nodes:[{id:"edp.ingressNginx",parent:null,level:0,children:["edp.ingressNginx.ingressNginx"],inEdges:[],outEdges:["1poylyw","llqgvs","75xltk","dh7ut5","1bv0wod","68hu20","nx2xew","momp7g","8cmkj7"],title:"Ingress",modelRef:"edp.ingressNginx",shape:"rectangle",color:"primary",style:{opacity:20,size:"md"},description:{txt:"Ingress Controller for incoming http(s) traffic"},tags:["internal"],kind:"container",depth:1,x:1708,y:8,width:384,height:265,labelBBox:{x:6,y:0,width:54,height:15}},{id:"edp.ingressNginx.ingressNginx",parent:"edp.ingressNginx",level:1,children:[],inEdges:[],outEdges:["1poylyw","llqgvs","75xltk","dh7ut5","1bv0wod","68hu20","nx2xew","momp7g","8cmkj7"],title:"ingress-nginx",modelRef:"edp.ingressNginx.ingressNginx",shape:"rectangle",color:"primary",icon:"tech:nginx",style:{opacity:15,size:"md"},tags:[],technology:"Nginx",kind:"component",x:1740,y:61,width:320,height:180,labelBBox:{x:85,y:64,width:181,height:46}},{id:"edp.argoCD",parent:null,level:0,children:[],inEdges:["1poylyw"],outEdges:[],title:"ArgoCD",modelRef:"edp.argoCD",shape:"rectangle",color:"primary",style:{opacity:20,size:"md"},description:{txt:"GitOps Service"},tags:[],kind:"container",navigateTo:"argoCD",x:0,y:384,width:320,height:180,labelBBox:{x:108,y:63,width:105,height:48}},{id:"edp.ui",parent:null,level:0,children:[],inEdges:["llqgvs"],outEdges:[],title:"Backstage",modelRef:"edp.ui",shape:"rectangle",color:"primary",style:{opacity:20,size:"md"},description:{txt:"Developer Portal"},tags:[],kind:"container",x:430,y:384,width:320,height:180,labelBBox:{x:102,y:63,width:116,height:48}},{id:"edp.forgejo",parent:null,level:0,children:[],inEdges:["75xltk"],outEdges:[],title:"Forgejo",modelRef:"edp.forgejo",shape:"rectangle",color:"primary",icon:"tech:go",style:{opacity:20,size:"md"},description:{txt:`Fully managed DevOps Platform +offering capabilities like +code version controling +collaboration and ticketing +and security scanning`},tags:[],technology:"Golang",kind:"container",navigateTo:"forgejo",x:860,y:384,width:340,height:180,labelBBox:{x:46,y:17,width:278,height:139}},{id:"edp.keycloak",parent:null,level:0,children:[],inEdges:["dh7ut5"],outEdges:[],title:"Keycloak",modelRef:"edp.keycloak",shape:"rectangle",color:"primary",style:{opacity:20,size:"md"},description:{txt:"Single Sign On for all EDP products"},tags:[],kind:"container",navigateTo:"keycloak",x:1310,y:384,width:320,height:180,labelBBox:{x:39,y:63,width:242,height:48}},{id:"edp.mailhog",parent:null,level:0,children:[],inEdges:["1bv0wod"],outEdges:[],title:"Mailhog",modelRef:"edp.mailhog",shape:"rectangle",color:"primary",style:{opacity:20,size:"md"},description:{txt:"Web and API based SMTP testing"},tags:[],kind:"container",navigateTo:"mailhog",x:1740,y:384,width:320,height:180,labelBBox:{x:44,y:63,width:232,height:48}},{id:"edp.minio",parent:null,level:0,children:[],inEdges:["68hu20"],outEdges:[],title:"Minio",modelRef:"edp.minio",shape:"rectangle",color:"primary",style:{opacity:20,size:"md"},description:{txt:"S3 compatible blob storage"},tags:[],kind:"container",navigateTo:"minio",x:2170,y:384,width:320,height:180,labelBBox:{x:67,y:63,width:186,height:48}},{id:"edp.monitoring",parent:null,level:0,children:[],inEdges:["nx2xew"],outEdges:[],title:"Monitoring",modelRef:"edp.monitoring",shape:"rectangle",color:"primary",style:{opacity:20,size:"md"},description:{txt:"Observability system to monitor deployed components"},tags:[],kind:"container",navigateTo:"monitoring",x:2600,y:384,width:320,height:180,labelBBox:{x:21,y:54,width:278,height:66}},{id:"edp.openbao",parent:null,level:0,children:[],inEdges:["momp7g"],outEdges:[],title:"OpenBao",modelRef:"edp.openbao",shape:"rectangle",color:"primary",style:{opacity:20,size:"md"},description:{txt:"Secure secret storage"},tags:[],kind:"container",x:3030,y:384,width:320,height:180,labelBBox:{x:85,y:63,width:151,height:48}},{id:"edp.testApp",parent:null,level:0,children:[],inEdges:["8cmkj7"],outEdges:[],title:"Fibonacci",modelRef:"edp.testApp",shape:"rectangle",color:"primary",style:{opacity:20,size:"md"},description:{txt:"Testapp to validate deployments"},tags:[],kind:"container",navigateTo:"testapp",x:3460,y:384,width:320,height:180,labelBBox:{x:50,y:63,width:220,height:48}}],edges:[{id:"1poylyw",source:"edp.ingressNginx.ingressNginx",target:"edp.argoCD",label:"https",points:[[1740,164],[1459,187],[862,248],[375,384],[360,388],[345,393],[329,398]],labelBBox:{x:704,y:301,width:34,height:18},parent:null,relations:["1yssos5"],color:"gray",line:"dashed",head:"normal"},{id:"llqgvs",source:"edp.ingressNginx.ingressNginx",target:"edp.ui",label:"https",points:[[1740,177],[1525,211],[1131,283],[805,384],[790,389],[775,394],[759,400]],labelBBox:{x:1102,y:301,width:34,height:18},parent:null,relations:["v8c8aq"],color:"gray",line:"dashed",head:"normal"},{id:"75xltk",source:"edp.ingressNginx.ingressNginx",target:"edp.forgejo",label:"https",points:[[1740,208],[1609,254],[1420,322],[1255,384],[1240,390],[1225,395],[1210,401]],labelBBox:{x:1468,y:301,width:34,height:18},parent:null,relations:["123efwn"],color:"gray",line:"dashed",head:"normal"},{id:"dh7ut5",source:"edp.ingressNginx.ingressNginx",target:"edp.keycloak",label:"https",points:[[1781,241],[1724,284],[1655,335],[1597,378]],labelBBox:{x:1699,y:301,width:34,height:18},parent:null,relations:["h3rut2"],color:"gray",line:"dashed",head:"normal"},{id:"1bv0wod",source:"edp.ingressNginx.ingressNginx",target:"edp.mailhog",label:"https",points:[[1900,241],[1900,282],[1900,331],[1900,374]],labelBBox:{x:1901,y:301,width:34,height:18},parent:null,relations:["ofdedh"],color:"gray",line:"dashed",head:"normal"},{id:"68hu20",source:"edp.ingressNginx.ingressNginx",target:"edp.minio",label:"https",points:[[2019,241],[2076,284],[2145,335],[2203,378]],labelBBox:{x:2129,y:301,width:34,height:18},parent:null,relations:["fe65w2"],color:"gray",line:"dashed",head:"normal"},{id:"nx2xew",source:"edp.ingressNginx.ingressNginx",target:"edp.monitoring",label:"https",points:[[2060,207],[2191,253],[2381,321],[2545,384],[2560,390],[2575,396],[2591,402]],labelBBox:{x:2370,y:301,width:34,height:18},parent:null,relations:["1jvab2g","fs60l7"],color:"gray",line:"dashed",head:"normal"},{id:"momp7g",source:"edp.ingressNginx.ingressNginx",target:"edp.openbao",label:"https",points:[[2060,177],[2272,213],[2657,285],[2975,384],[2990,389],[3005,394],[3021,400]],labelBBox:{x:2744,y:301,width:34,height:18},parent:null,relations:["1p30hav"],color:"gray",line:"dashed",head:"normal"},{id:"8cmkj7",source:"edp.ingressNginx.ingressNginx",target:"edp.testApp",label:"https",points:[[2060,164],[2338,188],[2926,250],[3405,384],[3420,388],[3435,393],[3451,399]],labelBBox:{x:3165,y:301,width:34,height:18},parent:null,relations:["1i5f8um"],color:"gray",line:"dashed",head:"normal"}]},testapp:{_type:"element",tags:null,links:null,viewOf:"edp.testApp",_stage:"layouted",sourcePath:"views/edp/edp.c4",description:null,title:"Fibonacci",id:"testapp",autoLayout:{direction:"TB"},hash:"d8f40f5cfab10e6e91c79feeef6be3240922c723",bounds:{x:0,y:0,width:400,height:544},nodes:[{id:"edp.ingressNginx",parent:null,level:0,children:[],inEdges:[],outEdges:["1tefjx2"],title:"Ingress",modelRef:"edp.ingressNginx",shape:"rectangle",color:"primary",style:{opacity:20,size:"md"},description:{txt:"Ingress Controller for incoming http(s) traffic"},tags:["internal"],kind:"container",navigateTo:"ingressNginx",x:40,y:0,width:320,height:180,labelBBox:{x:33,y:54,width:255,height:66}},{id:"edp.testApp",parent:null,level:0,children:["edp.testApp.fibonacci"],inEdges:["1tefjx2"],outEdges:[],title:"Fibonacci",modelRef:"edp.testApp",shape:"rectangle",color:"primary",style:{opacity:20,size:"md"},description:{txt:"Testapp to validate deployments"},tags:[],kind:"container",depth:1,x:8,y:271,width:384,height:265,labelBBox:{x:6,y:0,width:65,height:15}},{id:"edp.testApp.fibonacci",parent:"edp.testApp",level:1,children:[],inEdges:["1tefjx2"],outEdges:[],title:"Fibonacci",modelRef:"edp.testApp.fibonacci",shape:"rectangle",color:"primary",icon:"tech:go",style:{opacity:15,size:"md"},tags:[],technology:"Golang",kind:"component",x:40,y:324,width:320,height:180,labelBBox:{x:101,y:64,width:148,height:46}}],edges:[{id:"1tefjx2",source:"edp.ingressNginx",target:"edp.testApp.fibonacci",label:"https",points:[[200,180],[200,221],[200,271],[200,314]],labelBBox:{x:201,y:240,width:34,height:18},parent:null,relations:["1i5f8um"],color:"gray",line:"dashed",head:"normal"}]},mailhog:{_type:"element",tags:null,links:null,viewOf:"edp.mailhog",_stage:"layouted",sourcePath:"views/edp/edp.c4",description:null,title:"Mailhog",id:"mailhog",autoLayout:{direction:"TB"},hash:"b9e703c2ceb2b2a400194d90ac7caa94525ac068",bounds:{x:0,y:0,width:400,height:544},nodes:[{id:"edp.ingressNginx",parent:null,level:0,children:[],inEdges:[],outEdges:["axipfp"],title:"Ingress",modelRef:"edp.ingressNginx",shape:"rectangle",color:"primary",style:{opacity:20,size:"md"},description:{txt:"Ingress Controller for incoming http(s) traffic"},tags:["internal"],kind:"container",navigateTo:"ingressNginx",x:40,y:0,width:320,height:180,labelBBox:{x:33,y:54,width:255,height:66}},{id:"edp.mailhog",parent:null,level:0,children:["edp.mailhog.mailhog"],inEdges:["axipfp"],outEdges:[],title:"Mailhog",modelRef:"edp.mailhog",shape:"rectangle",color:"primary",style:{opacity:20,size:"md"},description:{txt:"Web and API based SMTP testing"},tags:[],kind:"container",depth:1,x:8,y:271,width:384,height:265,labelBBox:{x:6,y:0,width:56,height:15}},{id:"edp.mailhog.mailhog",parent:"edp.mailhog",level:1,children:[],inEdges:["axipfp"],outEdges:[],title:"Mailhog",modelRef:"edp.mailhog.mailhog",shape:"rectangle",color:"primary",icon:"tech:go",style:{opacity:15,size:"md"},tags:[],technology:"Golang",kind:"component",x:40,y:324,width:320,height:180,labelBBox:{x:109,y:64,width:132,height:46}}],edges:[{id:"axipfp",source:"edp.ingressNginx",target:"edp.mailhog.mailhog",label:"https",points:[[200,180],[200,221],[200,271],[200,314]],labelBBox:{x:201,y:240,width:34,height:18},parent:null,relations:["ofdedh"],color:"gray",line:"dashed",head:"normal"}]},spark:{_type:"element",tags:null,links:null,viewOf:"edp.spark",_stage:"layouted",sourcePath:"views/edp/edp.c4",description:null,title:"Spark",id:"spark",autoLayout:{direction:"TB"},hash:"1ec41779bad408405a96c4063aa06b24ec2aace8",bounds:{x:0,y:0,width:400,height:281},nodes:[{id:"edp.spark",parent:null,level:0,children:["edp.spark.sparkoperator"],inEdges:[],outEdges:[],title:"Spark",modelRef:"edp.spark",shape:"rectangle",color:"primary",style:{opacity:20,size:"md"},description:{txt:"Allows running Spark applications on K8s"},tags:["internal"],kind:"container",depth:1,x:8,y:8,width:384,height:265,labelBBox:{x:6,y:0,width:43,height:15}},{id:"edp.spark.sparkoperator",parent:"edp.spark",level:1,children:[],inEdges:[],outEdges:[],title:"Spark Operator",modelRef:"edp.spark.sparkoperator",shape:"rectangle",color:"primary",icon:"tech:spark",style:{opacity:15,size:"md"},tags:[],technology:"Spark",kind:"component",x:40,y:61,width:320,height:180,labelBBox:{x:76,y:64,width:198,height:46}}],edges:[]},argoCD:{_type:"element",tags:null,links:null,viewOf:"edp.argoCD",_stage:"layouted",sourcePath:"views/edp/edp.c4",description:null,title:"ArgoCD",id:"argoCD",autoLayout:{direction:"TB"},hash:"53d798ca0a34dbe3ebf9b43318a151943ecaec33",bounds:{x:0,y:0,width:2058,height:883},nodes:[{id:"edp.ingressNginx",parent:null,level:0,children:[],inEdges:[],outEdges:["ce0h9c"],title:"Ingress",modelRef:"edp.ingressNginx",shape:"rectangle",color:"primary",style:{opacity:20,size:"md"},description:{txt:"Ingress Controller for incoming http(s) traffic"},tags:["internal"],kind:"container",navigateTo:"ingressNginx",x:48,y:0,width:320,height:180,labelBBox:{x:33,y:54,width:255,height:66}},{id:"edp.argoCD",parent:null,level:0,children:["edp.argoCD.argocdServer","edp.argoCD.argocdAppController","edp.argoCD.argocdAppSetController","edp.argoCD.argocdRepoServer","edp.argoCD.argocdRedis"],inEdges:["ce0h9c"],outEdges:["1e5s57z"],title:"ArgoCD",modelRef:"edp.argoCD",shape:"rectangle",color:"primary",style:{opacity:20,size:"md"},description:{txt:"GitOps Service"},tags:[],kind:"container",depth:1,x:8,y:271,width:1690,height:604,labelBBox:{x:6,y:0,width:53,height:15}},{id:"edp.argoCD.argocdServer",parent:"edp.argoCD",level:1,children:[],inEdges:["ce0h9c"],outEdges:["124uc06"],title:"ArgoCD Server",modelRef:"edp.argoCD.argocdServer",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},tags:[],kind:"component",x:48,y:332,width:320,height:180,labelBBox:{x:90,y:74,width:140,height:24}},{id:"edp.argoCD.argocdAppController",parent:"edp.argoCD",level:1,children:[],inEdges:[],outEdges:["doh0se"],title:"ApplicationController",modelRef:"edp.argoCD.argocdAppController",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},tags:[],kind:"component",x:478,y:332,width:320,height:180,labelBBox:{x:66,y:74,width:189,height:24}},{id:"edp.argoCD.argocdAppSetController",parent:"edp.argoCD",level:1,children:[],inEdges:[],outEdges:["ekc7mk"],title:"ApplicationSeetController",modelRef:"edp.argoCD.argocdAppSetController",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},tags:[],kind:"component",x:908,y:332,width:320,height:180,labelBBox:{x:45,y:74,width:230,height:24}},{id:"edp.argoCD.argocdRepoServer",parent:"edp.argoCD",level:1,children:[],inEdges:[],outEdges:["173l3xq","1e5s57z"],title:"Repo Server",modelRef:"edp.argoCD.argocdRepoServer",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},tags:[],kind:"component",x:1338,y:332,width:320,height:180,labelBBox:{x:102,y:74,width:116,height:24}},{id:"edp.argoCD.argocdRedis",parent:"edp.argoCD",level:1,children:[],inEdges:["124uc06","doh0se","ekc7mk","173l3xq"],outEdges:[],title:"Redis",modelRef:"edp.argoCD.argocdRedis",shape:"rectangle",color:"primary",icon:"tech:redis",style:{opacity:15,size:"md"},tags:[],technology:"Redis",kind:"component",x:693,y:655,width:320,height:180,labelBBox:{x:118,y:64,width:114,height:46}},{id:"edp.forgejogit",parent:null,level:0,children:[],inEdges:["1e5s57z"],outEdges:[],title:"ForgejoGit",modelRef:"edp.forgejogit",shape:"rectangle",color:"primary",icon:"tech:git",style:{opacity:15,size:"md"},tags:[],kind:"component",x:1738,y:655,width:320,height:180,labelBBox:{x:97,y:74,width:156,height:24}}],edges:[{id:"ce0h9c",source:"edp.ingressNginx",target:"edp.argoCD.argocdServer",label:"https",points:[[208,180],[208,224],[208,277],[208,322]],labelBBox:{x:209,y:240,width:34,height:18},parent:null,relations:["1yssos5"],color:"gray",line:"dashed",head:"normal"},{id:"124uc06",source:"edp.argoCD.argocdServer",target:"edp.argoCD.argocdRedis",label:"read/write",points:[[368,503],[464,550],[586,611],[684,660]],labelBBox:{x:551,y:572,width:65,height:18},parent:"edp.argoCD",relations:["yfhhi5"],color:"gray",line:"dashed",head:"normal"},{id:"doh0se",source:"edp.argoCD.argocdAppController",target:"edp.argoCD.argocdRedis",label:"read/write",points:[[688,512],[704,539],[722,568],[740,595],[751,612],[764,630],[776,647]],labelBBox:{x:741,y:572,width:65,height:18},parent:"edp.argoCD",relations:["10vkxaf"],color:"gray",line:"dashed",head:"normal"},{id:"ekc7mk",source:"edp.argoCD.argocdAppSetController",target:"edp.argoCD.argocdRedis",label:"read/write",points:[[1008,512],[980,554],[947,603],[918,646]],labelBBox:{x:968,y:572,width:65,height:18},parent:"edp.argoCD",relations:["i8z0mi"],color:"gray",line:"dashed",head:"normal"},{id:"173l3xq",source:"edp.argoCD.argocdRepoServer",target:"edp.argoCD.argocdRedis",label:"read/write",points:[[1338,503],[1242,550],[1120,611],[1022,660]],labelBBox:{x:1196,y:572,width:65,height:18},parent:"edp.argoCD",relations:["iullhy"],color:"gray",line:"dashed",head:"normal"},{id:"1e5s57z",source:"edp.argoCD.argocdRepoServer",target:"edp.forgejogit",label:"Syncs git repo",points:[[1609,512],[1662,554],[1725,605],[1779,649]],labelBBox:{x:1711,y:572,width:93,height:18},parent:null,relations:["6mupa0"],color:"gray",line:"dashed",head:"normal"}]},idp:{_type:"element",tags:null,links:null,viewOf:"edp",_stage:"layouted",sourcePath:"views/edp/edp-as-idp.c4",description:null,title:"EDP as IDP",id:"idp",autoLayout:{direction:"TB"},hash:"d1e4c998ee263bce5b2572834b6a9a7b6d6391f5",bounds:{x:0,y:0,width:6408,height:1862},nodes:[{id:"developer",parent:null,level:0,children:[],inEdges:[],outEdges:["1w9cpb2","1y3lcyj","1agven9","1nv0w41","3nxrq7","bfgapq"],title:"Developer",modelRef:"developer",shape:"person",color:"green",style:{opacity:25,size:"xl"},description:{txt:"The regular user of the platform"},tags:[],kind:"actor",x:5888,y:192,width:520,height:290,labelBBox:{x:111,y:108,width:298,height:64}},{id:"@gr1",parent:null,kind:"@group",title:"EDP",color:"primary",shape:"rectangle",children:["@gr2","@gr5","@gr6","@gr7"],inEdges:["1w9cpb2","1y3lcyj","1agven9","1nv0w41","3nxrq7","bfgapq"],outEdges:[],level:0,depth:3,tags:[],style:{border:"dashed",opacity:15},x:8,y:8,width:5840,height:1846,labelBBox:{x:6,y:0,width:27,height:15}},{id:"@gr2",parent:"@gr1",kind:"@group",title:"Developer Control Plane",color:"primary",shape:"rectangle",children:["@gr3","@gr4"],inEdges:["1w9cpb2","1y3lcyj","1agven9"],outEdges:[],level:0,depth:2,tags:[],style:{border:"dashed",opacity:15},x:48,y:69,width:2580,height:935,labelBBox:{x:6,y:0,width:170,height:15}},{id:"@gr3",parent:"@gr2",kind:"@group",title:"Frontend",color:"primary",shape:"rectangle",children:["edp.ui.backstage","edp.api"],inEdges:["1w9cpb2","1y3lcyj"],outEdges:[],level:0,depth:1,tags:[],style:{border:"dashed",opacity:15},x:1358,y:572,width:1230,height:392,labelBBox:{x:6,y:0,width:65,height:15}},{id:"@gr4",parent:"@gr2",kind:"@group",title:"Version Control",color:"primary",shape:"rectangle",children:["applicationspecification.application_gitrepo","applicationspecification.applicationspec_gitrepo","edp.forgejogit"],inEdges:["1agven9"],outEdges:[],level:0,depth:1,tags:[],style:{border:"dashed",opacity:15},x:88,y:130,width:1230,height:834,labelBBox:{x:6,y:0,width:111,height:15}},{id:"@gr5",parent:"@gr1",kind:"@group",title:"Integration & Delivery Plane",color:"primary",shape:"rectangle",children:["forgejoRunner","edp.imageregistry","edp.argoCD"],inEdges:["1nv0w41"],outEdges:[],level:0,depth:1,tags:[],style:{border:"dashed",opacity:15},x:3308,y:572,width:600,height:1242,labelBBox:{x:6,y:0,width:189,height:15}},{id:"@gr6",parent:"@gr1",kind:"@group",title:"Monitoring Plane",color:"primary",shape:"rectangle",children:["edp.monitoring","edp.grafana"],inEdges:["3nxrq7"],outEdges:[],level:0,depth:1,tags:[],style:{border:"dashed",opacity:15},x:2668,y:130,width:600,height:834,labelBBox:{x:6,y:0,width:116,height:15}},{id:"@gr7",parent:"@gr1",kind:"@group",title:"Security Plane",color:"primary",shape:"rectangle",children:["edp.keycloak","edp.kyverno","edp.externalSecrets","edp.openbao"],inEdges:["bfgapq"],outEdges:[],level:0,depth:1,tags:[],style:{border:"dashed",opacity:15},x:3948,y:572,width:1860,height:831,labelBBox:{x:6,y:0,width:100,height:15}},{id:"edp.ui.backstage",parent:"@gr3",level:1,children:[],inEdges:["1w9cpb2"],outEdges:[],title:"Backstage",modelRef:"edp.ui.backstage",shape:"browser",color:"primary",icon:"tech:react",style:{opacity:25,size:"xl"},tags:[],kind:"component",x:1398,y:634,width:520,height:290,labelBBox:{x:179,y:123,width:192,height:32}},{id:"edp.api",parent:"@gr3",level:1,children:[],inEdges:["1y3lcyj"],outEdges:[],title:"API",modelRef:"edp.api",shape:"rectangle",color:"primary",icon:"tech:swagger",style:{opacity:25,size:"xl"},description:{txt:"API for the EDP platform"},tags:[],kind:"container",x:2028,y:634,width:520,height:290,labelBBox:{x:129,y:108,width:292,height:64}},{id:"applicationspecification.application_gitrepo",parent:"@gr4",level:1,children:[],inEdges:[],outEdges:[],title:"Git App Repo",modelRef:"applicationspecification.application_gitrepo",shape:"rectangle",color:"primary",icon:"tech:git",style:{opacity:25,size:"xl"},description:{txt:"Git Application Repository"},tags:[],technology:"Git",kind:"component",x:128,y:192,width:520,height:290,labelBBox:{x:123,y:96,width:304,height:89}},{id:"applicationspecification.applicationspec_gitrepo",parent:"@gr4",level:1,children:[],inEdges:[],outEdges:[],title:"Git AppSpec Repo",modelRef:"applicationspecification.applicationspec_gitrepo",shape:"rectangle",color:"primary",icon:"tech:git",style:{opacity:25,size:"xl"},description:{txt:"Git Application Specification Repository"},tags:[],technology:"Git",kind:"component",x:128,y:634,width:520,height:290,labelBBox:{x:114,y:83,width:322,height:114}},{id:"edp.forgejogit",parent:"@gr4",level:1,children:[],inEdges:["1agven9"],outEdges:[],title:"ForgejoGit",modelRef:"edp.forgejogit",shape:"rectangle",color:"primary",icon:"tech:git",style:{opacity:25,size:"xl"},tags:[],kind:"component",x:758,y:634,width:520,height:290,labelBBox:{x:179,y:123,width:192,height:32}},{id:"forgejoRunner",parent:"@gr5",level:1,children:[],inEdges:[],outEdges:[],title:"Forgejo Runner",modelRef:"forgejoRunner",shape:"rectangle",color:"primary",style:{opacity:25,size:"xl"},description:{txt:"A runner is a service that runs jobs triggered by Forgejo. A runner can have different technical implementations like a container or a VM."},tags:[],kind:"component",x:3348,y:1073,width:520,height:290,labelBBox:{x:69,y:71,width:382,height:139}},{id:"edp.imageregistry",parent:"@gr5",level:1,children:[],inEdges:["1nv0w41"],outEdges:[],title:"Forgejo OCI Image Registry",modelRef:"edp.imageregistry",shape:"rectangle",color:"primary",icon:"tech:go",style:{opacity:25,size:"xl"},description:{txt:"Container Image Registry"},tags:[],technology:"Golang",kind:"component",x:3348,y:634,width:520,height:290,labelBBox:{x:70,y:96,width:410,height:89}},{id:"edp.argoCD",parent:"@gr5",level:1,children:[],inEdges:[],outEdges:[],title:"ArgoCD",modelRef:"edp.argoCD",shape:"rectangle",color:"primary",style:{opacity:25,size:"xl"},description:{txt:"GitOps Service"},tags:[],kind:"container",navigateTo:"argoCD",x:3348,y:1484,width:520,height:290,labelBBox:{x:187,y:108,width:145,height:64}},{id:"edp.monitoring",parent:"@gr6",level:1,children:[],inEdges:[],outEdges:[],title:"Monitoring",modelRef:"edp.monitoring",shape:"rectangle",color:"primary",style:{opacity:25,size:"xl"},description:{txt:"Observability system to monitor deployed components"},tags:[],kind:"container",navigateTo:"monitoring",x:2708,y:192,width:520,height:290,labelBBox:{x:66,y:96,width:388,height:88}},{id:"edp.grafana",parent:"@gr6",level:1,children:[],inEdges:["3nxrq7"],outEdges:[],title:"Grafana",modelRef:"edp.grafana",shape:"rectangle",color:"primary",icon:"tech:grafana",style:{opacity:25,size:"xl"},description:{txt:"Data visualization and monitoring"},tags:[],kind:"container",x:2708,y:634,width:520,height:290,labelBBox:{x:89,y:108,width:372,height:64}},{id:"edp.keycloak",parent:"@gr7",level:1,children:[],inEdges:["bfgapq"],outEdges:[],title:"Keycloak",modelRef:"edp.keycloak",shape:"rectangle",color:"primary",style:{opacity:25,size:"xl"},description:{txt:"Single Sign On for all EDP products"},tags:[],kind:"container",navigateTo:"keycloak",x:5248,y:634,width:520,height:290,labelBBox:{x:92,y:108,width:337,height:64}},{id:"edp.kyverno",parent:"@gr7",level:1,children:[],inEdges:[],outEdges:[],title:"Kyverno",modelRef:"edp.kyverno",shape:"rectangle",color:"primary",style:{opacity:25,size:"xl"},description:{txt:"Policy-as-Code"},tags:["internal"],kind:"container",x:3988,y:634,width:520,height:290,labelBBox:{x:187,y:108,width:146,height:64}},{id:"edp.externalSecrets",parent:"@gr7",level:1,children:[],inEdges:[],outEdges:[],title:"external-secrets",modelRef:"edp.externalSecrets",shape:"rectangle",color:"primary",style:{opacity:25,size:"xl"},description:{txt:"Provider to access externally stored Kubernetes secrets"},tags:["internal"],kind:"container",navigateTo:"externalSecrets",x:4618,y:634,width:520,height:290,labelBBox:{x:92,y:96,width:337,height:88}},{id:"edp.openbao",parent:"@gr7",level:1,children:[],inEdges:[],outEdges:[],title:"OpenBao",modelRef:"edp.openbao",shape:"rectangle",color:"primary",style:{opacity:25,size:"xl"},description:{txt:"Secure secret storage"},tags:[],kind:"container",x:3988,y:1073,width:520,height:290,labelBBox:{x:155,y:108,width:209,height:64}}],edges:[{id:"1w9cpb2",source:"developer",target:"edp.ui.backstage",label:"create and maintain apps",points:[[5888,380],[5537,435],[4891,529],[4336,564],[4303,567],[2004,563],[1973,572],[1931,585],[1888,605],[1850,629]],labelBBox:{x:4585,y:541,width:161,height:18},parent:null,relations:["1woleh6"],color:"gray",line:"dashed",head:"normal"},{id:"1y3lcyj",source:"developer",target:"edp.api",label:"uses API",points:[[5888,397],[5631,453],[5226,532],[4870,564],[4839,567],[2671,564],[2641,572],[2594,585],[2548,606],[2504,629]],labelBBox:{x:5046,y:541,width:60,height:18},parent:null,relations:["1l9a3pd"],color:"gray",line:"dashed",head:"normal"},{id:"1agven9",source:"developer",target:"edp.forgejogit",label:"uses git",points:[[5888,369],[5436,421],[4473,526],[3656,564],[3624,566],[1362,563],[1331,572],[1289,585],[1247,605],[1209,628]],labelBBox:{x:3997,y:541,width:52,height:18},parent:null,relations:["1uzzn9j"],color:"gray",line:"dashed",head:"normal"},{id:"1nv0w41",source:"developer",target:"edp.imageregistry",label:"pushes and pull images",points:[[5888,438],[5750,487],[5575,540],[5414,564],[5373,571],[3961,560],[3921,572],[3879,585],[3837,605],[3799,628]],labelBBox:{x:5518,y:541,width:151,height:18},parent:null,relations:["177bm2y"],color:"gray",line:"dashed",head:"normal"},{id:"3nxrq7",source:"developer",target:"edp.grafana",label:"monitors",points:[[5888,415],[5694,469],[5420,536],[5175,564],[5123,571],[3331,557],[3281,572],[3239,585],[3197,605],[3159,628]],labelBBox:{x:5310,y:541,width:58,height:18},parent:null,relations:["1xiorre"],color:"gray",line:"dashed",head:"normal"},{id:"bfgapq",source:"developer",target:"edp.keycloak",label:"authenticates",points:[[5939,481],[5871,528],[5795,581],[5726,628]],labelBBox:{x:5848,y:541,width:87,height:18},parent:null,relations:["jpl8ll"],color:"gray",line:"dashed",head:"normal"}]},edporchestrator:{_type:"element",tags:null,links:null,viewOf:"edp",_stage:"layouted",sourcePath:"views/edp/edp-as-orchestrator.c4",description:null,title:"EDP as Orchestrator",id:"edporchestrator",autoLayout:{direction:"TB"},hash:"3b527fd6f99efa02fc730d4569c0a0ccc75b4ef3",bounds:{x:0,y:0,width:846,height:1457},nodes:[{id:"@gr1",parent:null,kind:"@group",title:"EDP",color:"primary",shape:"rectangle",children:["@gr2","@gr3","@gr4","@gr5","@gr6"],inEdges:[],outEdges:[],level:0,depth:2,tags:[],style:{border:"dashed",opacity:15},x:8,y:8,width:830,height:1441,labelBBox:{x:6,y:0,width:27,height:15}},{id:"@gr2",parent:"@gr1",kind:"@group",title:"Developer Control Plane",color:"primary",shape:"rectangle",children:[],inEdges:[],outEdges:[],level:0,depth:0,tags:[],style:{border:"dashed",opacity:15},x:48,y:69,width:320,height:180,labelBBox:{x:49,y:74,width:222,height:24}},{id:"@gr3",parent:"@gr1",kind:"@group",title:"Integration & Delivery Plane",color:"primary",shape:"rectangle",children:[],inEdges:[],outEdges:[],level:0,depth:0,tags:[],style:{border:"dashed",opacity:15},x:478,y:69,width:320,height:180,labelBBox:{x:34,y:74,width:252,height:24}},{id:"@gr4",parent:"@gr1",kind:"@group",title:"Monitoring Plane",color:"primary",shape:"rectangle",children:[],inEdges:[],outEdges:[],level:0,depth:0,tags:[],style:{border:"dashed",opacity:15},x:48,y:369,width:320,height:180,labelBBox:{x:83,y:74,width:154,height:24}},{id:"@gr5",parent:"@gr1",kind:"@group",title:"Security Plane",color:"primary",shape:"rectangle",children:[],inEdges:[],outEdges:[],level:0,depth:0,tags:[],style:{border:"dashed",opacity:15},x:478,y:369,width:320,height:180,labelBBox:{x:94,y:74,width:133,height:24}},{id:"@gr6",parent:"@gr1",kind:"@group",title:"Backend",color:"primary",shape:"rectangle",children:["edp.argoCD","edp.crossplane"],inEdges:[],outEdges:[],level:0,depth:1,tags:[],style:{border:"dashed",opacity:15},x:198,y:608,width:600,height:801,labelBBox:{x:6,y:0,width:59,height:15}},{id:"edp.argoCD",parent:"@gr6",level:1,children:[],inEdges:[],outEdges:[],title:"ArgoCD",modelRef:"edp.argoCD",shape:"rectangle",color:"primary",style:{opacity:25,size:"xl"},description:{txt:"Declarative management of platform tools"},tags:[],kind:"container",isCustomized:!0,navigateTo:"argoCD",x:238,y:669,width:520,height:290,labelBBox:{x:64,y:109,width:393,height:63}},{id:"edp.crossplane",parent:"@gr6",level:1,children:[],inEdges:[],outEdges:[],title:"Crossplane",modelRef:"edp.crossplane",shape:"rectangle",color:"primary",style:{opacity:25,size:"xl"},description:{txt:"Declarative management of ressources"},tags:["internal"],kind:"container",navigateTo:"crossplane",x:238,y:1079,width:520,height:290,labelBBox:{x:75,y:109,width:369,height:63}}],edges:[]},"application-transition":{_type:"element",tags:null,links:null,_stage:"layouted",sourcePath:"views/high-level-concept/application-transition.c4",description:null,title:"application-transistion",id:"application-transition",autoLayout:{direction:"TB"},hash:"024761d9274cbfc35558ae3606770e2c3e3afd0f",bounds:{x:0,y:0,width:1032,height:934},nodes:[{id:"@gr1",parent:null,kind:"@group",title:"developer-scope",color:"green",shape:"rectangle",children:["@gr2","@gr3","developer","otherProductLifecycleRoles"],inEdges:[],outEdges:["17brhnu"],level:0,depth:3,tags:[],style:{border:"none",opacity:20},x:8,y:8,width:1016,height:645,labelBBox:{x:6,y:0,width:114,height:15}},{id:"@gr2",parent:"@gr1",kind:"@group",title:"Devops inner-loop",color:"gray",shape:"rectangle",children:["localbox"],inEdges:["zjg544","6szgsj"],outEdges:["1uo6k6b"],level:0,depth:2,tags:[],style:{border:"none",opacity:30},x:48,y:263,width:448,height:350,labelBBox:{x:6,y:0,width:122,height:15}},{id:"@gr3",parent:"@gr1",kind:"@group",title:"Devops outer-loop",color:"gray",shape:"rectangle",children:["edp"],inEdges:["1okgiq5","1wupl5x","1uo6k6b"],outEdges:["17brhnu","6szgsj"],level:0,depth:2,tags:[],style:{border:"none",opacity:30},x:536,y:263,width:448,height:350,labelBBox:{x:6,y:0,width:126,height:15}},{id:"cloud",parent:null,level:0,children:["cloud.application"],inEdges:["17brhnu"],outEdges:[],title:"Cloud",modelRef:"cloud",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Cloud environments"},tags:[],technology:"IaaS/PaaS",kind:"system",depth:1,x:568,y:661,width:384,height:265,labelBBox:{x:6,y:0,width:43,height:15}},{id:"cloud.application",parent:"cloud",level:1,children:[],inEdges:[],outEdges:[],title:"application",modelRef:"cloud.application",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"An application description"},tags:[],technology:"DSL",kind:"schema",x:600,y:714,width:320,height:180,labelBBox:{x:73,y:54,width:175,height:67}},{id:"developer",parent:"@gr1",level:1,children:[],inEdges:[],outEdges:["zjg544","1okgiq5"],title:"Developer",modelRef:"developer",shape:"person",color:"green",style:{opacity:15,size:"md"},description:{txt:"The regular user of the platform"},tags:[],kind:"actor",x:127,y:69,width:320,height:180,labelBBox:{x:53,y:63,width:214,height:48}},{id:"otherProductLifecycleRoles",parent:"@gr1",level:1,children:[],inEdges:[],outEdges:["1wupl5x"],title:"Reviewer, Tester, Auditors, Operators",modelRef:"otherProductLifecycleRoles",shape:"person",color:"green",style:{opacity:15,size:"md"},description:{txt:"Coworking roles in the outer loop"},tags:[],kind:"actor",x:572,y:69,width:375,height:180,labelBBox:{x:18,y:63,width:340,height:48}},{id:"localbox",parent:"@gr2",level:1,children:["localbox.application"],inEdges:["zjg544","6szgsj"],outEdges:["1uo6k6b"],title:"localbox",modelRef:"localbox",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"A local development system"},tags:[],technology:"Linux/Windows/Mac",kind:"system",depth:1,x:80,y:316,width:384,height:265,labelBBox:{x:6,y:0,width:66,height:15}},{id:"localbox.application",parent:"localbox",level:2,children:[],inEdges:[],outEdges:[],title:"application",modelRef:"localbox.application",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"An application description"},tags:[],technology:"DSL",kind:"schema",x:112,y:369,width:320,height:180,labelBBox:{x:73,y:53,width:175,height:68}},{id:"edp",parent:"@gr3",level:1,children:["edp.application"],inEdges:["1okgiq5","1wupl5x","1uo6k6b"],outEdges:["17brhnu","6szgsj"],title:"EDP",modelRef:"edp",shape:"rectangle",color:"primary",icon:"tech:kubernetes",style:{opacity:15,size:"md"},description:{txt:"EDP Edge Development Platform"},tags:[],technology:"Kubernetes",kind:"system",depth:1,navigateTo:"edp",x:568,y:316,width:384,height:265,labelBBox:{x:6,y:0,width:27,height:15}},{id:"edp.application",parent:"edp",level:2,children:[],inEdges:[],outEdges:[],title:"application",modelRef:"edp.application",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"An application description"},tags:[],technology:"DSL",kind:"schema",x:600,y:369,width:320,height:180,labelBBox:{x:73,y:53,width:175,height:68}}],edges:[{id:"zjg544",source:"developer",target:"localbox",label:"inner loop development",points:[[283,249],[282,267],[281,286],[280,306]],labelBBox:{x:130,y:282,width:150,height:18},parent:"@gr1",relations:["5hkplj"],color:"gray",line:"dashed",head:"normal"},{id:"1okgiq5",source:"developer",target:"edp",label:"outer loop development",points:[[447,237],[462,246],[477,254],[491,263],[515,277],[540,294],[564,310]],labelBBox:{x:360,y:252,width:150,height:18},parent:"@gr1",relations:["1pp73vj","yk9zv2","12036hb","jpl8ll","1ghp31l","1xiorre","1woleh6","177bm2y","1l9a3pd","1uzzn9j"],color:"gray",line:"dashed",head:"normal"},{id:"1wupl5x",source:"otherProductLifecycleRoles",target:"edp",label:"act according to responibility",points:[[760,249],[760,267],[760,286],[760,306]],labelBBox:{x:578,y:282,width:181,height:18},parent:"@gr1",relations:["lb4xas"],color:"gray",line:"dashed",head:"normal"},{id:"1uo6k6b",source:"localbox",target:"edp",label:"inner-outer-loop synchronization",points:[[464,459],[495,459],[526,459],[558,459]],labelBBox:{x:414,y:459,width:204,height:18},parent:"@gr1",relations:["1mp9fps"],color:"gray",line:"dashed",head:"normal"},{id:"17brhnu",source:"edp",target:"cloud",label:"deploys and observes",points:[[760,581],[760,604],[760,628],[760,651]],labelBBox:{x:619,y:598,width:140,height:18},parent:null,relations:["gerdx4"],color:"gray",line:"dashed",head:"normal"},{id:"6szgsj",source:"edp",target:"localbox",label:null,points:[[568,459],[537,459],[506,459],[474,459]],labelBBox:null,parent:"@gr1",relations:["wvo8i"],color:"gray",line:"dashed",head:"normal"}]},landscape:{_type:"element",tags:null,links:null,_stage:"layouted",sourcePath:"views/high-level-concept/platform-context/developer-landscape.c4",description:null,title:"Developer Landscape View",id:"landscape",autoLayout:{direction:"LR",nodeSep:100,rankSep:100},hash:"2cefeeed62913b128bbc82ba88883c8c64231dae",bounds:{x:0,y:0,width:3445,height:1756},nodes:[{id:"applicationspecification",parent:null,level:0,children:[],inEdges:[],outEdges:[],title:"application-specification",modelRef:"applicationspecification",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"The application specification describes the application and its components. It is used to generate the application and its components."},tags:[],kind:"component",x:16,y:280,width:338,height:180,labelBBox:{x:18,y:45,width:303,height:84}},{id:"forgejoRunnerWorker",parent:null,level:0,children:[],inEdges:[],outEdges:[],title:"Forgejo Runner Worker",modelRef:"forgejoRunnerWorker",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"A worker is a service that runs a job invoked by a runner. A worker typically is a container."},tags:[],kind:"component",x:734,y:280,width:333,height:180,labelBBox:{x:18,y:45,width:297,height:84}},{id:"promtail",parent:null,level:0,children:[],inEdges:[],outEdges:[],title:"Promtail",modelRef:"promtail",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Log shipper agent for Loki"},tags:[],kind:"component",x:1288,y:280,width:320,height:180,labelBBox:{x:72,y:63,width:177,height:48}},{id:"edgeConnect",parent:null,level:0,children:[],inEdges:[],outEdges:[],title:"Edge Connect",modelRef:"edgeConnect",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Provides an API to run applications on the edge"},tags:[],kind:"component",x:1939,y:280,width:320,height:180,labelBBox:{x:18,y:54,width:283,height:66}},{id:"elasticsearch",parent:null,level:0,children:[],inEdges:[],outEdges:[],title:"Elasticsearch",modelRef:"elasticsearch",shape:"rectangle",color:"primary",icon:"tech:elasticsearch",style:{opacity:20,size:"md"},description:{txt:`Elasticsearch is a distributed, RESTful search and analytics engine capable of addressing a growing number of use cases. It centrally stores your data so you can -discover the expected and uncover the unexpected.`},tags:[],technology:"Elasticsearch",kind:"container",x:1888,y:280,width:370,height:180,labelBBox:{x:46,y:17,width:308,height:139}},{id:"objectstorage",parent:null,level:0,children:[],inEdges:[],outEdges:[],title:"s3 Object Storage",modelRef:"objectstorage",shape:"rectangle",color:"primary",style:{opacity:20,size:"md"},description:{txt:"s3 Object Storage"},tags:[],technology:"S3 Object Storage",kind:"container",x:9,y:0,width:320,height:180,labelBBox:{x:78,y:53,width:164,height:67}},{id:"postgres",parent:null,level:0,children:[],inEdges:[],outEdges:[],title:"PostgreSQL",modelRef:"postgres",shape:"rectangle",color:"primary",icon:"tech:postgresql",style:{opacity:20,size:"md"},description:{txt:`PostgreSQL is a powerful, open source object-relational database system. +discover the expected and uncover the unexpected.`},tags:[],technology:"Elasticsearch",kind:"container",x:0,y:0,width:370,height:180,labelBBox:{x:46,y:17,width:308,height:139}},{id:"objectstorage",parent:null,level:0,children:[],inEdges:[],outEdges:[],title:"s3 Object Storage",modelRef:"objectstorage",shape:"rectangle",color:"primary",style:{opacity:20,size:"md"},description:{txt:"s3 Object Storage"},tags:[],technology:"S3 Object Storage",kind:"container",x:741,y:0,width:320,height:180,labelBBox:{x:78,y:53,width:164,height:67}},{id:"postgres",parent:null,level:0,children:[],inEdges:[],outEdges:[],title:"PostgreSQL",modelRef:"postgres",shape:"rectangle",color:"primary",icon:"tech:postgresql",style:{opacity:20,size:"md"},description:{txt:`PostgreSQL is a powerful, open source object-relational database system. It has more than 15 years of active development and a proven architecture that has earned it a strong reputation for reliability, data integrity, -and correctness.`},tags:[],technology:"PostgreSQL",kind:"container",x:692,y:0,width:354,height:180,labelBBox:{x:46,y:17,width:293,height:139}},{id:"redis",parent:null,level:0,children:[],inEdges:[],outEdges:[],title:"Redis",modelRef:"redis",shape:"rectangle",color:"primary",icon:"tech:redis",style:{opacity:20,size:"md"},description:{txt:"Redis is an open source (BSD licensed), in-memory data structure store, used as a database, cache and message broker."},tags:[],technology:"Redis",kind:"container",x:1237,y:0,width:359,height:180,labelBBox:{x:46,y:26,width:298,height:121}},{id:"platformdeveloper",parent:null,level:0,children:[],inEdges:[],outEdges:["mox1r9","1kjl8ep","x7to90"],title:"Platform Developer",modelRef:"platformdeveloper",shape:"person",color:"gray",style:{opacity:15,size:"md"},description:{txt:"The EDP engineer"},tags:[],kind:"actor",x:9,y:1286,width:320,height:180,labelBBox:{x:73,y:63,width:175,height:48}},{id:"customers",parent:null,level:0,children:[],inEdges:[],outEdges:["8fboq4"],title:"End Customers",modelRef:"customers",shape:"person",color:"amber",style:{opacity:15,size:"md"},description:{txt:"Consumers of your Application"},tags:[],kind:"actor",x:2508,y:405,width:320,height:180,labelBBox:{x:56,y:63,width:208,height:48}},{id:"forgejoRunner",parent:null,level:0,children:[],inEdges:["5mpoyf"],outEdges:["1lyfj4n"],title:"Forgejo Runner",modelRef:"forgejoRunner",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"A runner is a service that runs jobs triggered by Forgejo. A runner can have different technical implementations like a container or a VM."},tags:[],kind:"component",x:2508,y:1188,width:320,height:180,labelBBox:{x:23,y:36,width:274,height:102}},{id:"edfbuilder",parent:null,level:0,children:[],inEdges:["mox1r9"],outEdges:["lnq8uj"],title:"edfbuilder",modelRef:"edfbuilder",shape:"rectangle",color:"primary",icon:"tech:go",style:{opacity:15,size:"md"},description:{txt:"EDP Foundry Builder"},tags:[],technology:"Golang",kind:"component",navigateTo:"edpbuilderworkflow",x:709,y:1073,width:320,height:180,labelBBox:{x:74,y:53,width:203,height:67}},{id:"documentation",parent:null,level:0,children:[],inEdges:["1kjl8ep"],outEdges:["14bjpe1"],title:"Documentation",modelRef:"documentation",shape:"rectangle",color:"primary",icon:"tech:electron",style:{opacity:15,size:"md"},description:{txt:"Documentation system for EDP LikeC4 platform."},tags:[],technology:"Static Site Generator",kind:"system",navigateTo:"components-template-documentation",x:677,y:1576,width:384,height:180,labelBBox:{x:46,y:44,width:323,height:85}},{id:"edf",parent:null,level:0,children:[],inEdges:["lnq8uj","x7to90"],outEdges:["109bf6k"],title:"EDF",modelRef:"edf",shape:"rectangle",color:"primary",icon:"tech:kubernetes",style:{opacity:15,size:"md"},description:{txt:"EDP Foundry is a platform for building and deploying EDPs tenantwise."},tags:[],technology:"Kubernetes",kind:"system",x:1256,y:1286,width:321,height:180,labelBBox:{x:46,y:35,width:260,height:103}},{id:"@gr1",parent:null,kind:"@group",title:"developer-scope",color:"green",shape:"rectangle",children:["developer","otherProductLifecycleRoles","@gr2","@gr3"],inEdges:["1lyfj4n","14bjpe1","109bf6k"],outEdges:["1tbee2v","5mpoyf","17brhnu","35ru8e"],level:0,depth:2,tags:[],style:{border:"none",opacity:20},x:1189,y:500,width:1129,height:746,labelBBox:{x:6,y:0,width:114,height:15}},{id:"developer",parent:"@gr1",level:1,children:[],inEdges:[],outEdges:["zjg544","1okgiq5"],title:"Developer",modelRef:"developer",shape:"person",color:"green",style:{opacity:15,size:"md"},description:{txt:"The regular user of the platform"},tags:[],kind:"actor",x:1257,y:664,width:320,height:180,labelBBox:{x:53,y:63,width:214,height:48}},{id:"otherProductLifecycleRoles",parent:"@gr1",level:1,children:[],inEdges:[],outEdges:["1wupl5x"],title:"Reviewer, Tester, Auditors, Operators",modelRef:"otherProductLifecycleRoles",shape:"person",color:"green",style:{opacity:15,size:"md"},description:{txt:"Coworking roles in the outer loop"},tags:[],kind:"actor",x:1229,y:994,width:375,height:180,labelBBox:{x:18,y:63,width:340,height:48}},{id:"@gr2",parent:"@gr1",kind:"@group",title:"Devops inner-loop",color:"gray",shape:"rectangle",children:["localbox"],inEdges:["zjg544","6szgsj"],outEdges:["1tbee2v","1uo6k6b"],level:0,depth:1,tags:[],style:{border:"none",opacity:30},x:1881,y:561,width:384,height:265,labelBBox:{x:6,y:0,width:122,height:15}},{id:"localbox",parent:"@gr2",level:1,children:[],inEdges:["zjg544","6szgsj"],outEdges:["1tbee2v","1uo6k6b"],title:"localbox",modelRef:"localbox",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"A local development system"},tags:[],technology:"Linux/Windows/Mac",kind:"system",x:1913,y:614,width:320,height:180,labelBBox:{x:64,y:53,width:191,height:67}},{id:"@gr3",parent:"@gr1",kind:"@group",title:"Devops outer-loop",color:"gray",shape:"rectangle",children:["edp"],inEdges:["1lyfj4n","14bjpe1","109bf6k","1okgiq5","1wupl5x","1uo6k6b"],outEdges:["5mpoyf","17brhnu","35ru8e","6szgsj"],level:0,depth:1,tags:[],style:{border:"none",opacity:30},x:1867,y:941,width:411,height:265,labelBBox:{x:6,y:0,width:126,height:15}},{id:"edp",parent:"@gr3",level:1,children:[],inEdges:["1lyfj4n","14bjpe1","109bf6k","1okgiq5","1wupl5x","1uo6k6b"],outEdges:["5mpoyf","17brhnu","35ru8e","6szgsj"],title:"EDP",modelRef:"edp",shape:"rectangle",color:"primary",icon:"tech:kubernetes",style:{opacity:15,size:"md"},description:{txt:"EDP Edge Development Platform"},tags:[],technology:"Kubernetes",kind:"system",navigateTo:"edp",x:1900,y:994,width:346,height:180,labelBBox:{x:45,y:53,width:285,height:67}},{id:"enterprise",parent:null,level:0,children:[],inEdges:["1tbee2v","35ru8e"],outEdges:["iwd51q"],title:"Customers' Enterprise Systems",modelRef:"enterprise",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"The customers' enterprise systems"},tags:[],kind:"system",x:2508,y:685,width:320,height:180,labelBBox:{x:18,y:63,width:283,height:48}},{id:"cloud",parent:null,level:0,children:[],inEdges:["8fboq4","iwd51q","17brhnu"],outEdges:[],title:"Cloud",modelRef:"cloud",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Cloud environments"},tags:[],technology:"IaaS/PaaS",kind:"system",x:3099,y:685,width:320,height:180,labelBBox:{x:91,y:53,width:137,height:67}}],edges:[{id:"lnq8uj",source:"edfbuilder",target:"edf",label:"boots one",dotpos:"e,1256.3,1313.7 1029.3,1225 1097.5,1251.7 1177.3,1282.8 1246.6,1309.9",points:[[1029,1225],[1098,1252],[1177,1283],[1247,1310]],labelBBox:{x:1113,y:1237,width:66,height:18},parent:null,relations:["1oxlsu0"],color:"gray",line:"dashed",head:"normal"},{id:"mox1r9",source:"platformdeveloper",target:"edfbuilder",label:"runs",dotpos:"e,709.48,1205.9 329.16,1319.5 349.13,1312.8 369.32,1306.1 388.65,1300 491.24,1267.5 607.25,1234.3 699.49,1208.7",points:[[329,1320],[349,1313],[369,1306],[389,1300],[491,1268],[607,1234],[699,1209]],labelBBox:{x:492,y:1207,width:31,height:18},parent:null,relations:["s1l7g7"],color:"gray",line:"dashed",head:"normal"},{id:"1kjl8ep",source:"platformdeveloper",target:"documentation",label:"creates and maintains documentation",dotpos:"e,677.63,1592.3 329.14,1448.9 349.11,1457.8 369.31,1466.6 388.65,1474.8 479.82,1513.6 581.66,1554.5 667.99,1588.5",points:[[329,1449],[349,1458],[369,1467],[389,1475],[480,1514],[582,1554],[668,1588]],labelBBox:{x:390,y:1452,width:237,height:18},parent:null,relations:["3sz3k3"],color:"gray",line:"dashed",head:"normal"},{id:"x7to90",source:"platformdeveloper",target:"edf",label:"develops EDP and EDF",dotpos:"e,1256.3,1376 329.03,1376 564.44,1376 1004.3,1376 1246,1376",points:[[329,1376],[564,1376],[1004,1376],[1246,1376]],labelBBox:{x:794,y:1353,width:152,height:18},parent:null,relations:["v8v12"],color:"gray",line:"dashed",head:"normal"},{id:"8fboq4",source:"customers",target:"cloud",label:"uses your app",dotpos:"e,3099.1,699.44 2828,570.59 2909,609.07 3007.4,655.86 3089.7,694.95",points:[[2828,571],[2909,609],[3007,656],[3090,695]],labelBBox:{x:2918,y:578,width:92,height:18},parent:null,relations:["1g2ebwc"],color:"gray",line:"dashed",head:"normal"},{id:"iwd51q",source:"enterprise",target:"cloud",label:"app specific dependencies",dotpos:"e,3099.1,775 2828,775 2908.7,775 3006.6,775 3088.7,775",points:[[2828,775],[2909,775],[3007,775],[3089,775]],labelBBox:{x:2879,y:752,width:169,height:18},parent:null,relations:["nc44l9"],color:"gray",line:"dashed",head:"normal"},{id:"zjg544",source:"developer",target:"localbox",label:"inner loop development",dotpos:"e,1912.7,716.15 1576.6,741.86 1675.2,734.32 1801.9,724.63 1902.5,716.94",points:[[1577,742],[1675,734],[1802,725],[1902,717]],labelBBox:{x:1671,y:700,width:150,height:18},parent:"@gr1",relations:["5hkplj"],color:"gray",line:"dashed",head:"normal"},{id:"1tbee2v",source:"localbox",target:"enterprise",label:"company integration",dotpos:"e,2508.1,755.99 2232.2,722.98 2314.2,732.79 2414.3,744.76 2497.8,754.75",points:[[2232,723],[2314,733],[2414,745],[2498,755]],labelBBox:{x:2327,y:711,width:130,height:18},parent:null,relations:["1abvxlh"],color:"gray",line:"dashed",head:"normal"},{id:"1lyfj4n",source:"forgejoRunner",target:"edp",label:"register",dotpos:"e,2186.1,1173.8 2508.3,1279.9 2449.7,1276.5 2383.5,1267.7 2325.9,1247.8 2280,1232 2234.2,1206.1 2194.5,1179.5",points:[[2508,1280],[2450,1276],[2384,1268],[2326,1248],[2280,1232],[2234,1206],[2194,1179]],labelBBox:{x:2367,y:1225,width:51,height:18},parent:null,relations:["18dtot7"],color:"gray",line:"dashed",head:"normal"},{id:"14bjpe1",source:"documentation",target:"edp",label:"provides documentation for",dotpos:"e,2012.6,1173.9 1061.2,1655.9 1213.3,1642.4 1429.2,1611.2 1604.9,1538.8 1780.7,1466.3 1926.9,1292.9 2006.5,1182.4",points:[[1061,1656],[1213,1642],[1429,1611],[1605,1539],[1781,1466],[1927,1293],[2006,1182]],labelBBox:{x:1331,y:1516,width:173,height:18},parent:null,relations:["xw0pne"],color:"gray",line:"dashed",head:"normal"},{id:"109bf6k",source:"edf",target:"edp",label:"builds many",dotpos:"e,1993.5,1173.7 1577.6,1365 1658.8,1354.4 1757,1333.9 1837.5,1293.8 1892.9,1266.2 1945.2,1221.9 1986.2,1181",points:[[1578,1365],[1659,1354],[1757,1334],[1838,1294],[1893,1266],[1945,1222],[1986,1181]],labelBBox:{x:1707,y:1271,width:79,height:18},parent:null,relations:["wsm3kf"],color:"gray",line:"dashed",head:"normal"},{id:"1okgiq5",source:"developer",target:"edp",label:"outer loop development",dotpos:"e,1899.2,997 1576.6,834.09 1671.2,881.87 1791.7,942.7 1890.1,992.38",points:[[1577,834],[1671,882],[1792,943],[1890,992]],labelBBox:{x:1671,y:857,width:150,height:18},parent:"@gr1",relations:["1pp73vj","yk9zv2","12036hb","jpl8ll","1ghp31l","1xiorre","1woleh6","177bm2y","1l9a3pd","1uzzn9j"],color:"gray",line:"dashed",head:"normal"},{id:"1wupl5x",source:"otherProductLifecycleRoles",target:"edp",label:"act according to responibility",dotpos:"e,1899.4,1084 1604.8,1084 1694,1084 1800.3,1084 1889,1084",points:[[1605,1084],[1694,1084],[1800,1084],[1889,1084]],labelBBox:{x:1656,y:1061,width:181,height:18},parent:"@gr1",relations:["lb4xas"],color:"gray",line:"dashed",head:"normal"},{id:"1uo6k6b",source:"localbox",target:"edp",label:"inner-outer-loop synchronization",dotpos:"e,2072.6,994.43 2072.6,793.96 2072.6,851.06 2072.6,925.03 2072.6,983.98",points:[[2073,794],[2073,851],[2073,925],[2073,984]],labelBBox:{x:1956,y:882,width:204,height:18},parent:"@gr1",relations:["1mp9fps"],color:"gray",line:"dashed",head:"normal"},{id:"5mpoyf",source:"edp",target:"forgejoRunner",label:"runs workflows",dotpos:"e,2508,1221 2245.8,1136.2 2312.3,1156.8 2388.8,1181 2458,1204 2471.1,1208.4 2484.6,1212.9 2498.1,1217.6",points:[[2246,1136],[2312,1157],[2389,1181],[2458,1204],[2471,1208],[2485,1213],[2498,1218]],labelBBox:{x:2344,y:1140,width:97,height:18},parent:null,relations:["1pbc22f"],color:"gray",line:"dashed",head:"normal"},{id:"17brhnu",source:"edp",target:"cloud",label:"deploys and observes",dotpos:"e,3099.2,842.58 2245.6,1059.2 2399.8,1035 2631.3,993.65 2828,937.8 2915.9,912.84 3011.2,877.65 3089.7,846.37",points:[[2246,1059],[2400,1035],[2631,994],[2828,938],[2916,913],[3011,878],[3090,846]],labelBBox:{x:2598,y:915,width:140,height:18},parent:null,relations:["gerdx4"],color:"gray",line:"dashed",head:"normal"},{id:"35ru8e",source:"edp",target:"enterprise",label:"integrates",dotpos:"e,2508.1,846.44 2221.8,994.11 2255.7,974.39 2291.8,954.02 2325.9,936 2381.5,906.68 2443.3,876.73 2498.8,850.74",points:[[2222,994],[2256,974],[2292,954],[2326,936],[2381,907],[2443,877],[2499,851]],labelBBox:{x:2359,y:848,width:65,height:18},parent:null,relations:["615gvx"],color:"gray",line:"dashed",head:"normal"},{id:"6szgsj",source:"edp",target:"localbox",label:null,dotpos:"e,2072.6,793.84 2072.6,994.2 2072.6,930.8 2072.6,867.41 2072.6,804.01",points:[[2073,994],[2073,931],[2073,867],[2073,804]],labelBBox:null,parent:"@gr1",relations:["wvo8i"],color:"gray",line:"dashed",head:"normal"}]},"developer-landscape-with-foundry":{_type:"element",tags:null,links:null,_stage:"layouted",sourcePath:"views/high-level-concept/platform-context/developer-landscape-with-foundry.c4",description:null,title:"Developer Landscape View (with Foundry)",id:"developer-landscape-with-foundry",autoLayout:{direction:"LR",nodeSep:100,rankSep:100},hash:"b276e3437a81a3511683487fe741e5425e3087a3",bounds:{x:0,y:0,width:4464,height:2361},nodes:[{id:"applicationspecification",parent:null,level:0,children:[],inEdges:[],outEdges:[],title:"application-specification",modelRef:"applicationspecification",shape:"rectangle",color:"primary",style:{opacity:15,size:"xl"},description:{txt:"The application specification describes the application and its components. It is used to generate the application and its components."},tags:[],kind:"component",x:0,y:390,width:520,height:290,labelBBox:{x:49,y:84,width:422,height:113}},{id:"forgejoRunnerWorker",parent:null,level:0,children:[],inEdges:[],outEdges:[],title:"Forgejo Runner Worker",modelRef:"forgejoRunnerWorker",shape:"rectangle",color:"primary",style:{opacity:15,size:"xl"},description:{txt:"A worker is a service that runs a job invoked by a runner. A worker typically is a container."},tags:[],kind:"component",x:859,y:390,width:520,height:290,labelBBox:{x:52,y:84,width:415,height:113}},{id:"promtail",parent:null,level:0,children:[],inEdges:[],outEdges:[],title:"Promtail",modelRef:"promtail",shape:"rectangle",color:"primary",style:{opacity:15,size:"xl"},description:{txt:"Log shipper agent for Loki"},tags:[],kind:"component",x:1557,y:390,width:520,height:290,labelBBox:{x:137,y:109,width:247,height:63}},{id:"elasticsearch",parent:null,level:0,children:[],inEdges:[],outEdges:[],title:"Elasticsearch",modelRef:"elasticsearch",shape:"rectangle",color:"primary",icon:"tech:elasticsearch",style:{opacity:20,size:"xl"},description:{txt:`Elasticsearch is a distributed, RESTful search and analytics engine capable of +and correctness.`},tags:[],technology:"PostgreSQL",kind:"container",x:1271,y:0,width:354,height:180,labelBBox:{x:46,y:17,width:293,height:139}},{id:"redis",parent:null,level:0,children:[],inEdges:[],outEdges:[],title:"Redis",modelRef:"redis",shape:"rectangle",color:"primary",icon:"tech:redis",style:{opacity:20,size:"md"},description:{txt:"Redis is an open source (BSD licensed), in-memory data structure store, used as a database, cache and message broker."},tags:[],technology:"Redis",kind:"container",x:1919,y:0,width:359,height:180,labelBBox:{x:46,y:26,width:297,height:121}},{id:"platformdeveloper",parent:null,level:0,children:[],inEdges:[],outEdges:["mox1r9","1kjl8ep","x7to90"],title:"Platform Developer",modelRef:"platformdeveloper",shape:"person",color:"gray",style:{opacity:15,size:"md"},description:{txt:"The EDP engineer"},tags:[],kind:"actor",x:25,y:1286,width:320,height:180,labelBBox:{x:72,y:63,width:175,height:48}},{id:"customers",parent:null,level:0,children:[],inEdges:[],outEdges:["8fboq4"],title:"End Customers",modelRef:"customers",shape:"person",color:"amber",style:{opacity:15,size:"md"},description:{txt:"Consumers of your Application"},tags:[],kind:"actor",x:2534,y:405,width:320,height:180,labelBBox:{x:56,y:63,width:208,height:48}},{id:"forgejoRunner",parent:null,level:0,children:[],inEdges:["5mpoyf"],outEdges:["1lyfj4n"],title:"Forgejo Runner",modelRef:"forgejoRunner",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"A runner is a service that runs jobs triggered by Forgejo. A runner can have different technical implementations like a container or a VM."},tags:[],kind:"component",x:2534,y:1188,width:320,height:180,labelBBox:{x:23,y:36,width:274,height:102}},{id:"edfbuilder",parent:null,level:0,children:[],inEdges:["mox1r9"],outEdges:["lnq8uj"],title:"edfbuilder",modelRef:"edfbuilder",shape:"rectangle",color:"primary",icon:"tech:go",style:{opacity:15,size:"md"},description:{txt:"EDP Foundry Builder"},tags:[],technology:"Golang",kind:"component",navigateTo:"edpbuilderworkflow",x:741,y:1073,width:320,height:180,labelBBox:{x:74,y:53,width:202,height:67}},{id:"documentation",parent:null,level:0,children:[],inEdges:["1kjl8ep"],outEdges:["14bjpe1"],title:"Documentation",modelRef:"documentation",shape:"rectangle",color:"primary",icon:"tech:electron",style:{opacity:15,size:"md"},description:{txt:"Documentation system for EDP LikeC4 platform."},tags:[],technology:"Static Site Generator",kind:"system",navigateTo:"components-template-documentation",x:709,y:1576,width:384,height:180,labelBBox:{x:46,y:44,width:322,height:85}},{id:"edf",parent:null,level:0,children:[],inEdges:["lnq8uj","x7to90"],outEdges:["109bf6k"],title:"EDF",modelRef:"edf",shape:"rectangle",color:"primary",icon:"tech:kubernetes",style:{opacity:15,size:"md"},description:{txt:"EDP Foundry is a platform for building and deploying EDPs tenantwise."},tags:[],technology:"Kubernetes",kind:"system",x:1287,y:1286,width:321,height:180,labelBBox:{x:47,y:35,width:259,height:103}},{id:"@gr1",parent:null,kind:"@group",title:"developer-scope",color:"green",shape:"rectangle",children:["developer","otherProductLifecycleRoles","@gr2","@gr3"],inEdges:["1lyfj4n","14bjpe1","109bf6k"],outEdges:["1tbee2v","5mpoyf","17brhnu","35ru8e"],level:0,depth:2,tags:[],style:{border:"none",opacity:20},x:1221,y:500,width:1123,height:746,labelBBox:{x:6,y:0,width:114,height:15}},{id:"developer",parent:"@gr1",level:1,children:[],inEdges:[],outEdges:["zjg544","1okgiq5"],title:"Developer",modelRef:"developer",shape:"person",color:"green",style:{opacity:15,size:"md"},description:{txt:"The regular user of the platform"},tags:[],kind:"actor",x:1288,y:664,width:320,height:180,labelBBox:{x:53,y:63,width:214,height:48}},{id:"otherProductLifecycleRoles",parent:"@gr1",level:1,children:[],inEdges:[],outEdges:["1wupl5x"],title:"Reviewer, Tester, Auditors, Operators",modelRef:"otherProductLifecycleRoles",shape:"person",color:"green",style:{opacity:15,size:"md"},description:{txt:"Coworking roles in the outer loop"},tags:[],kind:"actor",x:1260,y:994,width:375,height:180,labelBBox:{x:19,y:63,width:340,height:48}},{id:"@gr2",parent:"@gr1",kind:"@group",title:"Devops inner-loop",color:"gray",shape:"rectangle",children:["localbox"],inEdges:["zjg544","6szgsj"],outEdges:["1tbee2v","1uo6k6b"],level:0,depth:1,tags:[],style:{border:"none",opacity:30},x:1907,y:561,width:384,height:265,labelBBox:{x:6,y:0,width:122,height:15}},{id:"localbox",parent:"@gr2",level:1,children:[],inEdges:["zjg544","6szgsj"],outEdges:["1tbee2v","1uo6k6b"],title:"localbox",modelRef:"localbox",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"A local development system"},tags:[],technology:"Linux/Windows/Mac",kind:"system",x:1939,y:614,width:320,height:180,labelBBox:{x:64,y:53,width:191,height:67}},{id:"@gr3",parent:"@gr1",kind:"@group",title:"Devops outer-loop",color:"gray",shape:"rectangle",children:["edp"],inEdges:["1lyfj4n","14bjpe1","109bf6k","1okgiq5","1wupl5x","1uo6k6b"],outEdges:["5mpoyf","17brhnu","35ru8e","6szgsj"],level:0,depth:1,tags:[],style:{border:"none",opacity:30},x:1893,y:941,width:411,height:265,labelBBox:{x:6,y:0,width:126,height:15}},{id:"edp",parent:"@gr3",level:1,children:[],inEdges:["1lyfj4n","14bjpe1","109bf6k","1okgiq5","1wupl5x","1uo6k6b"],outEdges:["5mpoyf","17brhnu","35ru8e","6szgsj"],title:"EDP",modelRef:"edp",shape:"rectangle",color:"primary",icon:"tech:kubernetes",style:{opacity:15,size:"md"},description:{txt:"EDP Edge Development Platform"},tags:[],technology:"Kubernetes",kind:"system",navigateTo:"edp",x:1926,y:994,width:346,height:180,labelBBox:{x:45,y:53,width:285,height:67}},{id:"enterprise",parent:null,level:0,children:[],inEdges:["1tbee2v","35ru8e"],outEdges:["iwd51q"],title:"Customers' Enterprise Systems",modelRef:"enterprise",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"The customers' enterprise systems"},tags:[],kind:"system",x:2534,y:685,width:320,height:180,labelBBox:{x:18,y:63,width:283,height:48}},{id:"cloud",parent:null,level:0,children:[],inEdges:["8fboq4","iwd51q","17brhnu"],outEdges:[],title:"Cloud",modelRef:"cloud",shape:"rectangle",color:"primary",style:{opacity:15,size:"md"},description:{txt:"Cloud environments"},tags:[],technology:"IaaS/PaaS",kind:"system",x:3125,y:685,width:320,height:180,labelBBox:{x:91,y:53,width:137,height:67}}],edges:[{id:"lnq8uj",source:"edfbuilder",target:"edf",label:"boots one",points:[[1061,1225],[1129,1252],[1209,1283],[1278,1310]],labelBBox:{x:1144,y:1237,width:66,height:18},parent:null,relations:["1oxlsu0"],color:"gray",line:"dashed",head:"normal"},{id:"mox1r9",source:"platformdeveloper",target:"edfbuilder",label:"runs",points:[[345,1324],[370,1316],[396,1307],[420,1300],[523,1269],[639,1235],[731,1210]],labelBBox:{x:524,y:1208,width:31,height:18},parent:null,relations:["s1l7g7"],color:"gray",line:"dashed",head:"normal"},{id:"1kjl8ep",source:"platformdeveloper",target:"documentation",label:"creates and maintains documentation",points:[[345,1444],[370,1454],[396,1465],[420,1475],[512,1512],[613,1553],[699,1587]],labelBBox:{x:421,y:1452,width:237,height:18},parent:null,relations:["3sz3k3"],color:"gray",line:"dashed",head:"normal"},{id:"x7to90",source:"platformdeveloper",target:"edf",label:"develops EDP and EDF",points:[[345,1376],[583,1376],[1032,1376],[1277,1376]],labelBBox:{x:825,y:1353,width:152,height:18},parent:null,relations:["v8v12"],color:"gray",line:"dashed",head:"normal"},{id:"8fboq4",source:"customers",target:"cloud",label:"uses your app",points:[[2854,571],[2935,609],[3033,656],[3116,695]],labelBBox:{x:2944,y:578,width:92,height:18},parent:null,relations:["1g2ebwc"],color:"gray",line:"dashed",head:"normal"},{id:"iwd51q",source:"enterprise",target:"cloud",label:"app specific dependencies",points:[[2854,775],[2935,775],[3033,775],[3115,775]],labelBBox:{x:2905,y:752,width:169,height:18},parent:null,relations:["nc44l9"],color:"gray",line:"dashed",head:"normal"},{id:"zjg544",source:"developer",target:"localbox",label:"inner loop development",points:[[1608,742],[1705,734],[1829,725],[1928,717]],labelBBox:{x:1703,y:700,width:150,height:18},parent:"@gr1",relations:["5hkplj"],color:"gray",line:"dashed",head:"normal"},{id:"1tbee2v",source:"localbox",target:"enterprise",label:"company integration",points:[[2258,723],[2340,733],[2440,745],[2524,755]],labelBBox:{x:2353,y:711,width:130,height:18},parent:null,relations:["1abvxlh"],color:"gray",line:"dashed",head:"normal"},{id:"1lyfj4n",source:"forgejoRunner",target:"edp",label:"register",points:[[2534,1280],[2476,1276],[2410,1268],[2352,1248],[2306,1232],[2260,1206],[2220,1179]],labelBBox:{x:2393,y:1225,width:51,height:18},parent:null,relations:["18dtot7"],color:"gray",line:"dashed",head:"normal"},{id:"14bjpe1",source:"documentation",target:"edp",label:"provides documentation for",points:[[1093,1656],[1245,1642],[1461,1611],[1636,1539],[1811,1467],[1956,1293],[2034,1182]],labelBBox:{x:1362,y:1516,width:173,height:18},parent:null,relations:["xw0pne"],color:"gray",line:"dashed",head:"normal"},{id:"109bf6k",source:"edf",target:"edp",label:"builds many",points:[[1609,1365],[1690,1355],[1789,1334],[1869,1294],[1923,1266],[1975,1222],[2015,1181]],labelBBox:{x:1738,y:1271,width:79,height:18},parent:null,relations:["wsm3kf"],color:"gray",line:"dashed",head:"normal"},{id:"1okgiq5",source:"developer",target:"edp",label:"outer loop development",points:[[1608,835],[1701,882],[1819,942],[1916,992]],labelBBox:{x:1702,y:857,width:150,height:18},parent:"@gr1",relations:["1pp73vj","yk9zv2","12036hb","jpl8ll","1ghp31l","1xiorre","1woleh6","177bm2y","1l9a3pd","1uzzn9j"],color:"gray",line:"dashed",head:"normal"},{id:"1wupl5x",source:"otherProductLifecycleRoles",target:"edp",label:"act according to responibility",points:[[1636,1084],[1724,1084],[1828,1084],[1915,1084]],labelBBox:{x:1687,y:1061,width:181,height:18},parent:"@gr1",relations:["lb4xas"],color:"gray",line:"dashed",head:"normal"},{id:"1uo6k6b",source:"localbox",target:"edp",label:"inner-outer-loop synchronization",points:[[2099,794],[2099,851],[2099,925],[2099,984]],labelBBox:{x:1982,y:882,width:204,height:18},parent:"@gr1",relations:["1mp9fps"],color:"gray",line:"dashed",head:"normal"},{id:"5mpoyf",source:"edp",target:"forgejoRunner",label:"runs workflows",points:[[2272,1136],[2338,1157],[2415,1181],[2484,1204],[2497,1208],[2511,1213],[2524,1218]],labelBBox:{x:2370,y:1140,width:97,height:18},parent:null,relations:["1pbc22f"],color:"gray",line:"dashed",head:"normal"},{id:"17brhnu",source:"edp",target:"cloud",label:"deploys and observes",points:[[2272,1059],[2426,1035],[2657,994],[2854,938],[2942,913],[3037,878],[3116,846]],labelBBox:{x:2624,y:915,width:140,height:18},parent:null,relations:["gerdx4"],color:"gray",line:"dashed",head:"normal"},{id:"35ru8e",source:"edp",target:"enterprise",label:"integrates",points:[[2248,994],[2282,974],[2318,954],[2352,936],[2407,907],[2469,877],[2525,851]],labelBBox:{x:2385,y:848,width:65,height:18},parent:null,relations:["615gvx"],color:"gray",line:"dashed",head:"normal"},{id:"6szgsj",source:"edp",target:"localbox",label:null,points:[[2099,994],[2099,931],[2099,867],[2099,804]],labelBBox:null,parent:"@gr1",relations:["wvo8i"],color:"gray",line:"dashed",head:"normal"}]},"developer-landscape-with-foundry":{_type:"element",tags:null,links:null,_stage:"layouted",sourcePath:"views/high-level-concept/platform-context/developer-landscape-with-foundry.c4",description:null,title:"Developer Landscape View (with Foundry)",id:"developer-landscape-with-foundry",autoLayout:{direction:"LR",nodeSep:100,rankSep:100},hash:"3739dcefcf5775aaa97027f0848c1443a231b7a1",bounds:{x:0,y:0,width:4464,height:2361},nodes:[{id:"applicationspecification",parent:null,level:0,children:[],inEdges:[],outEdges:[],title:"application-specification",modelRef:"applicationspecification",shape:"rectangle",color:"primary",style:{opacity:15,size:"xl"},description:{txt:"The application specification describes the application and its components. It is used to generate the application and its components."},tags:[],kind:"component",x:0,y:390,width:520,height:290,labelBBox:{x:49,y:84,width:422,height:113}},{id:"forgejoRunnerWorker",parent:null,level:0,children:[],inEdges:[],outEdges:[],title:"Forgejo Runner Worker",modelRef:"forgejoRunnerWorker",shape:"rectangle",color:"primary",style:{opacity:15,size:"xl"},description:{txt:"A worker is a service that runs a job invoked by a runner. A worker typically is a container."},tags:[],kind:"component",x:859,y:390,width:520,height:290,labelBBox:{x:52,y:84,width:415,height:113}},{id:"promtail",parent:null,level:0,children:[],inEdges:[],outEdges:[],title:"Promtail",modelRef:"promtail",shape:"rectangle",color:"primary",style:{opacity:15,size:"xl"},description:{txt:"Log shipper agent for Loki"},tags:[],kind:"component",x:1557,y:390,width:520,height:290,labelBBox:{x:137,y:109,width:247,height:63}},{id:"edgeConnect",parent:null,level:0,children:[],inEdges:[],outEdges:[],title:"Edge Connect",modelRef:"edgeConnect",shape:"rectangle",color:"primary",style:{opacity:15,size:"xl"},description:{txt:"Provides an API to run applications on the edge"},tags:[],kind:"component",x:2371,y:390,width:520,height:290,labelBBox:{x:62,y:96,width:395,height:89}},{id:"elasticsearch",parent:null,level:0,children:[],inEdges:[],outEdges:[],title:"Elasticsearch",modelRef:"elasticsearch",shape:"rectangle",color:"primary",icon:"tech:elasticsearch",style:{opacity:20,size:"xl"},description:{txt:`Elasticsearch is a distributed, RESTful search and analytics engine capable of addressing a growing number of use cases. It centrally stores your data so you can -discover the expected and uncover the unexpected.`},tags:[],technology:"Elasticsearch",kind:"container",x:2371,y:390,width:520,height:290,labelBBox:{x:72,y:46,width:406,height:189}},{id:"objectstorage",parent:null,level:0,children:[],inEdges:[],outEdges:[],title:"s3 Object Storage",modelRef:"objectstorage",shape:"rectangle",color:"primary",style:{opacity:20,size:"xl"},description:{txt:"s3 Object Storage"},tags:[],technology:"S3 Object Storage",kind:"container",x:0,y:0,width:520,height:290,labelBBox:{x:146,y:96,width:228,height:89}},{id:"postgres",parent:null,level:0,children:[],inEdges:[],outEdges:[],title:"PostgreSQL",modelRef:"postgres",shape:"rectangle",color:"primary",icon:"tech:postgresql",style:{opacity:20,size:"xl"},description:{txt:`PostgreSQL is a powerful, open source object-relational database system. +discover the expected and uncover the unexpected.`},tags:[],technology:"Elasticsearch",kind:"container",x:0,y:0,width:520,height:290,labelBBox:{x:72,y:46,width:406,height:189}},{id:"objectstorage",parent:null,level:0,children:[],inEdges:[],outEdges:[],title:"s3 Object Storage",modelRef:"objectstorage",shape:"rectangle",color:"primary",style:{opacity:20,size:"xl"},description:{txt:"s3 Object Storage"},tags:[],technology:"S3 Object Storage",kind:"container",x:859,y:0,width:520,height:290,labelBBox:{x:146,y:96,width:228,height:89}},{id:"postgres",parent:null,level:0,children:[],inEdges:[],outEdges:[],title:"PostgreSQL",modelRef:"postgres",shape:"rectangle",color:"primary",icon:"tech:postgresql",style:{opacity:20,size:"xl"},description:{txt:`PostgreSQL is a powerful, open source object-relational database system. It has more than 15 years of active development and a proven architecture that has earned it a strong reputation for reliability, data integrity, -and correctness.`},tags:[],technology:"PostgreSQL",kind:"container",x:859,y:0,width:520,height:290,labelBBox:{x:83,y:46,width:384,height:189}},{id:"redis",parent:null,level:0,children:[],inEdges:[],outEdges:[],title:"Redis",modelRef:"redis",shape:"rectangle",color:"primary",icon:"tech:redis",style:{opacity:20,size:"xl"},description:{txt:"Redis is an open source (BSD licensed), in-memory data structure store, used as a database, cache and message broker."},tags:[],technology:"Redis",kind:"container",x:1557,y:0,width:520,height:290,labelBBox:{x:80,y:58,width:391,height:165}},{id:"platformdeveloper",parent:null,level:0,children:[],inEdges:[],outEdges:["mox1r9","1kjl8ep","x7to90"],title:"Platform Developer",modelRef:"platformdeveloper",shape:"person",color:"gray",style:{opacity:15,size:"xl"},description:{txt:"The EDP engineer"},tags:[],kind:"actor",x:0,y:1726,width:520,height:290,labelBBox:{x:138,y:109,width:244,height:63}},{id:"customers",parent:null,level:0,children:[],inEdges:[],outEdges:["8fboq4"],title:"End Customers",modelRef:"customers",shape:"person",color:"amber",style:{opacity:15,size:"xl"},description:{txt:"Consumers of your Application"},tags:[],kind:"actor",x:3153,y:460,width:520,height:290,labelBBox:{x:115,y:109,width:290,height:63}},{id:"forgejoRunner",parent:null,level:0,children:[],inEdges:["5mpoyf"],outEdges:["1lyfj4n"],title:"Forgejo Runner",modelRef:"forgejoRunner",shape:"rectangle",color:"primary",style:{opacity:15,size:"xl"},description:{txt:"A runner is a service that runs jobs triggered by Forgejo. A runner can have different technical implementations like a container or a VM."},tags:[],kind:"component",x:3153,y:1463,width:520,height:290,labelBBox:{x:69,y:71,width:382,height:139}},{id:"edfbuilder",parent:null,level:0,children:[],inEdges:["mox1r9"],outEdges:["lnq8uj"],title:"edfbuilder",modelRef:"edfbuilder",shape:"rectangle",color:"primary",icon:"tech:go",style:{opacity:15,size:"xl"},description:{txt:"EDP Foundry Builder"},tags:[],technology:"Golang",kind:"component",navigateTo:"edpbuilderworkflow",x:859,y:1458,width:520,height:290,labelBBox:{x:145,y:96,width:259,height:89}},{id:"documentation",parent:null,level:0,children:[],inEdges:["1kjl8ep"],outEdges:["14bjpe1"],title:"Documentation",modelRef:"documentation",shape:"rectangle",color:"primary",icon:"tech:electron",style:{opacity:15,size:"xl"},description:{txt:"Documentation system for EDP LikeC4 platform."},tags:[],technology:"Static Site Generator",kind:"system",navigateTo:"components-template-documentation",x:859,y:2071,width:520,height:290,labelBBox:{x:62,y:83,width:426,height:115}},{id:"edf",parent:null,level:0,children:[],inEdges:["lnq8uj","x7to90"],outEdges:["109bf6k"],title:"EDF",modelRef:"edf",shape:"rectangle",color:"primary",icon:"tech:kubernetes",style:{opacity:15,size:"xl"},description:{txt:"EDP Foundry is a platform for building and deploying EDPs tenantwise."},tags:[],technology:"Kubernetes",kind:"system",x:1557,y:1726,width:520,height:290,labelBBox:{x:106,y:71,width:339,height:139}},{id:"@gr1",parent:null,kind:"@group",title:"developer-scope",color:"green",shape:"rectangle",children:["developer","otherProductLifecycleRoles","@gr2","@gr3"],inEdges:["1lyfj4n","14bjpe1","109bf6k"],outEdges:["1tbee2v","5mpoyf","17brhnu","35ru8e"],level:0,depth:2,tags:[],style:{border:"none",opacity:20},x:1506,y:720,width:1457,height:966,labelBBox:{x:6,y:0,width:114,height:15}},{id:"developer",parent:"@gr1",level:1,children:[],inEdges:[],outEdges:["zjg544","1okgiq5"],title:"Developer",modelRef:"developer",shape:"person",color:"green",style:{opacity:15,size:"xl"},description:{txt:"The regular user of the platform"},tags:[],kind:"actor",x:1557,y:884,width:520,height:290,labelBBox:{x:111,y:109,width:298,height:63}},{id:"otherProductLifecycleRoles",parent:"@gr1",level:1,children:[],inEdges:[],outEdges:["1wupl5x"],title:"Reviewer, Tester, Auditors, Operators",modelRef:"otherProductLifecycleRoles",shape:"person",color:"green",style:{opacity:15,size:"xl"},description:{txt:"Coworking roles in the outer loop"},tags:[],kind:"actor",x:1546,y:1324,width:542,height:290,labelBBox:{x:34,y:109,width:474,height:63}},{id:"@gr2",parent:"@gr1",kind:"@group",title:"Devops inner-loop",color:"gray",shape:"rectangle",children:["localbox"],inEdges:["zjg544","6szgsj"],outEdges:["1tbee2v","1uo6k6b"],level:0,depth:1,tags:[],style:{border:"none",opacity:30},x:2339,y:781,width:584,height:375,labelBBox:{x:6,y:0,width:122,height:15}},{id:"localbox",parent:"@gr2",level:1,children:[],inEdges:["zjg544","6szgsj"],outEdges:["1tbee2v","1uo6k6b"],title:"localbox",modelRef:"localbox",shape:"rectangle",color:"primary",style:{opacity:15,size:"xl"},description:{txt:"A local development system"},tags:[],technology:"Linux/Windows/Mac",kind:"system",x:2371,y:834,width:520,height:290,labelBBox:{x:127,y:96,width:265,height:89}},{id:"@gr3",parent:"@gr1",kind:"@group",title:"Devops outer-loop",color:"gray",shape:"rectangle",children:["edp"],inEdges:["1lyfj4n","14bjpe1","109bf6k","1okgiq5","1wupl5x","1uo6k6b"],outEdges:["5mpoyf","17brhnu","35ru8e","6szgsj"],level:0,depth:1,tags:[],style:{border:"none",opacity:30},x:2339,y:1271,width:584,height:375,labelBBox:{x:6,y:0,width:126,height:15}},{id:"edp",parent:"@gr3",level:1,children:[],inEdges:["1lyfj4n","14bjpe1","109bf6k","1okgiq5","1wupl5x","1uo6k6b"],outEdges:["5mpoyf","17brhnu","35ru8e","6szgsj"],title:"EDP",modelRef:"edp",shape:"rectangle",color:"primary",icon:"tech:kubernetes",style:{opacity:15,size:"xl"},description:{txt:"EDP Edge Development Platform"},tags:[],technology:"Kubernetes",kind:"system",navigateTo:"edp",x:2371,y:1324,width:520,height:290,labelBBox:{x:88,y:96,width:374,height:89}},{id:"enterprise",parent:null,level:0,children:[],inEdges:["1tbee2v","35ru8e"],outEdges:["iwd51q"],title:"Customers' Enterprise Systems",modelRef:"enterprise",shape:"rectangle",color:"primary",style:{opacity:15,size:"xl"},description:{txt:"The customers' enterprise systems"},tags:[],kind:"system",x:3153,y:850,width:520,height:290,labelBBox:{x:63,y:109,width:395,height:63}},{id:"cloud",parent:null,level:0,children:[],inEdges:["8fboq4","iwd51q","17brhnu"],outEdges:[],title:"Cloud",modelRef:"cloud",shape:"rectangle",color:"primary",style:{opacity:15,size:"xl"},description:{txt:"Cloud environments"},tags:[],technology:"IaaS/PaaS",kind:"system",x:3944,y:850,width:520,height:290,labelBBox:{x:165,y:96,width:191,height:89}}],edges:[{id:"lnq8uj",source:"edfbuilder",target:"edf",label:"boots one",dotpos:"e,1557.5,1771.4 1378.6,1702.6 1433.9,1723.9 1492.3,1746.4 1547.9,1767.7",points:[[1379,1703],[1434,1724],[1492,1746],[1548,1768]],labelBBox:{x:1430,y:1702,width:66,height:18},parent:null,relations:["1oxlsu0"],color:"gray",line:"dashed",head:"normal"},{id:"mox1r9",source:"platformdeveloper",target:"edfbuilder",label:"runs",dotpos:"e,858.95,1684 519.82,1790.1 623.96,1757.5 744.04,1719.9 849.15,1687",points:[[520,1790],[624,1757],[744,1720],[849,1687]],labelBBox:{x:674,y:1682,width:31,height:18},parent:null,relations:["s1l7g7"],color:"gray",line:"dashed",head:"normal"},{id:"1kjl8ep",source:"platformdeveloper",target:"documentation",label:"creates and maintains documentation",dotpos:"e,858.95,2111.8 519.82,1975.2 624.07,2017.2 744.29,2065.6 849.47,2108",points:[[520,1975],[624,2017],[744,2066],[849,2108]],labelBBox:{x:571,y:1979,width:237,height:18},parent:null,relations:["3sz3k3"],color:"gray",line:"dashed",head:"normal"},{id:"x7to90",source:"platformdeveloper",target:"edf",label:"develops EDP and EDF",dotpos:"e,1557.6,1871 520.04,1871 804.49,1871 1259.1,1871 1547.4,1871",points:[[520,1871],[804,1871],[1259,1871],[1547,1871]],labelBBox:{x:1043,y:1848,width:152,height:18},parent:null,relations:["v8v12"],color:"gray",line:"dashed",head:"normal"},{id:"8fboq4",source:"customers",target:"cloud",label:"uses your app",dotpos:"e,3944.2,867.02 3673,732.98 3757,774.49 3850.4,820.62 3935,862.47",points:[[3673,733],[3757,774],[3850,821],[3935,862]],labelBBox:{x:3763,y:742,width:92,height:18},parent:null,relations:["1g2ebwc"],color:"gray",line:"dashed",head:"normal"},{id:"iwd51q",source:"enterprise",target:"cloud",label:"app specific dependencies",dotpos:"e,3944.2,995.01 3673,995.01 3756.6,995.01 3849.4,995.01 3933.7,995.01",points:[[3673,995],[3757,995],[3849,995],[3934,995]],labelBBox:{x:3724,y:972,width:169,height:18},parent:null,relations:["nc44l9"],color:"gray",line:"dashed",head:"normal"},{id:"zjg544",source:"developer",target:"localbox",label:"inner loop development",dotpos:"e,2371.2,994.95 2077.1,1013.1 2167.7,1007.5 2269.5,1001.2 2360.9,995.58",points:[[2077,1013],[2168,1007],[2270,1001],[2361,996]],labelBBox:{x:2155,y:975,width:150,height:18},parent:"@gr1",relations:["5hkplj"],color:"gray",line:"dashed",head:"normal"},{id:"1tbee2v",source:"localbox",target:"enterprise",label:"company integration",dotpos:"e,3153.3,989.7 2891,984.32 2971.9,985.98 3061.3,987.81 3142.9,989.49",points:[[2891,984],[2972,986],[3061,988],[3143,989]],labelBBox:{x:2972,y:963,width:130,height:18},parent:null,relations:["1abvxlh"],color:"gray",line:"dashed",head:"normal"},{id:"1lyfj4n",source:"forgejoRunner",target:"edp",label:"register",dotpos:"e,2890.8,1595.3 3153.2,1633.4 3092.9,1633.9 3029.3,1630 2971,1617.8 2947.7,1612.9 2924,1606.3 2900.5,1598.6",points:[[3153,1633],[3093,1634],[3029,1630],[2971,1618],[2948,1613],[2924,1606],[2900,1599]],labelBBox:{x:3012,y:1595,width:51,height:18},parent:null,relations:["18dtot7"],color:"gray",line:"dashed",head:"normal"},{id:"14bjpe1",source:"documentation",target:"edp",label:"provides documentation for",dotpos:"e,2547.7,1613.9 1378.7,2229.9 1582.8,2229.9 1868.5,2205.1 2088.3,2088.8 2289.3,1982.5 2449.7,1769 2542.3,1622.5",points:[[1379,2230],[1583,2230],[1869,2205],[2088,2089],[2289,1983],[2450,1769],[2542,1623]],labelBBox:{x:1731,y:2066,width:173,height:18},parent:null,relations:["xw0pne"],color:"gray",line:"dashed",head:"normal"},{id:"109bf6k",source:"edf",target:"edp",label:"builds many",dotpos:"e,2487.8,1613.8 2077.2,1823.6 2158.1,1802.7 2245.8,1773.6 2321,1733.8 2377.3,1703.9 2432.3,1662.2 2479.9,1620.8",points:[[2077,1824],[2158,1803],[2246,1774],[2321,1734],[2377,1704],[2432,1662],[2480,1621]],labelBBox:{x:2190,y:1711,width:79,height:18},parent:null,relations:["wsm3kf"],color:"gray",line:"dashed",head:"normal"},{id:"1okgiq5",source:"developer",target:"edp",label:"outer loop development",dotpos:"e,2371.2,1328.7 2077.1,1169.3 2168,1218.6 2270.4,1274 2362,1323.7",points:[[2077,1169],[2168,1219],[2270,1274],[2362,1324]],labelBBox:{x:2154,y:1180,width:150,height:18},parent:"@gr1",relations:["1pp73vj","yk9zv2","12036hb","jpl8ll","1ghp31l","1xiorre","1woleh6","177bm2y","1l9a3pd","1uzzn9j"],color:"gray",line:"dashed",head:"normal"},{id:"1wupl5x",source:"otherProductLifecycleRoles",target:"edp",label:"act according to responibility",dotpos:"e,2371.1,1469 2088.3,1469 2175.9,1469 2273.1,1469 2360.7,1469",points:[[2088,1469],[2176,1469],[2273,1469],[2361,1469]],labelBBox:{x:2139,y:1446,width:181,height:18},parent:"@gr1",relations:["lb4xas"],color:"gray",line:"dashed",head:"normal"},{id:"1uo6k6b",source:"localbox",target:"edp",label:"inner-outer-loop synchronization",dotpos:"e,2631,1324.3 2631,1123.8 2631,1183.6 2631,1253 2631,1313.8",points:[[2631,1124],[2631,1184],[2631,1253],[2631,1314]],labelBBox:{x:2515,y:1212,width:204,height:18},parent:"@gr1",relations:["1mp9fps"],color:"gray",line:"dashed",head:"normal"},{id:"5mpoyf",source:"edp",target:"forgejoRunner",label:"runs workflows",dotpos:"e,3153.3,1561.9 2891,1515.1 2972,1529.6 3061.7,1545.6 3143.4,1560.1",points:[[2891,1515],[2972,1530],[3062,1546],[3143,1560]],labelBBox:{x:2989,y:1507,width:97,height:18},parent:null,relations:["1pbc22f"],color:"gray",line:"dashed",head:"normal"},{id:"17brhnu",source:"edp",target:"cloud",label:"deploys and observes",dotpos:"e,3944.2,1110.4 2890.9,1416.5 3103.4,1370.8 3410.9,1298.4 3673.2,1212.8 3759.6,1184.6 3851.8,1148.8 3934.7,1114.4",points:[[2891,1417],[3103,1371],[3411,1298],[3673,1213],[3760,1185],[3852,1149],[3935,1114]],labelBBox:{x:3343,y:1190,width:140,height:18},parent:null,relations:["gerdx4"],color:"gray",line:"dashed",head:"normal"},{id:"35ru8e",source:"edp",target:"enterprise",label:"integrates",dotpos:"e,3153.3,1111.3 2808.6,1324.3 2859.6,1285.4 2916.3,1244.8 2971,1211 3025.4,1177.4 3085.8,1145 3144,1115.9",points:[[2809,1324],[2860,1285],[2916,1245],[2971,1211],[3025,1177],[3086,1145],[3144,1116]],labelBBox:{x:3004,y:1115,width:65,height:18},parent:null,relations:["615gvx"],color:"gray",line:"dashed",head:"normal"},{id:"6szgsj",source:"edp",target:"localbox",label:null,dotpos:"e,2631,1123.9 2631,1324 2631,1260.7 2631,1197.4 2631,1134",points:[[2631,1324],[2631,1261],[2631,1197],[2631,1134]],labelBBox:null,parent:"@gr1",relations:["wvo8i"],color:"gray",line:"dashed",head:"normal"}]}},deployments:{elements:{local:{style:{icon:"tech:kubernetes"},kind:"environment",description:{txt:"Local kind-cluster environment for EDP, typically run by edpbuilder"},technology:"Kind",title:"Local kind-cluster",id:"local"},"otc-edp-per-tenant":{style:{},kind:"cloud",description:{txt:`OTC environment for EDP. EDP is the environment a customer gets from us. - +and correctness.`},tags:[],technology:"PostgreSQL",kind:"container",x:1557,y:0,width:520,height:290,labelBBox:{x:83,y:46,width:384,height:189}},{id:"redis",parent:null,level:0,children:[],inEdges:[],outEdges:[],title:"Redis",modelRef:"redis",shape:"rectangle",color:"primary",icon:"tech:redis",style:{opacity:20,size:"xl"},description:{txt:"Redis is an open source (BSD licensed), in-memory data structure store, used as a database, cache and message broker."},tags:[],technology:"Redis",kind:"container",x:2371,y:0,width:520,height:290,labelBBox:{x:80,y:58,width:391,height:165}},{id:"platformdeveloper",parent:null,level:0,children:[],inEdges:[],outEdges:["mox1r9","1kjl8ep","x7to90"],title:"Platform Developer",modelRef:"platformdeveloper",shape:"person",color:"gray",style:{opacity:15,size:"xl"},description:{txt:"The EDP engineer"},tags:[],kind:"actor",x:0,y:1726,width:520,height:290,labelBBox:{x:138,y:109,width:244,height:63}},{id:"customers",parent:null,level:0,children:[],inEdges:[],outEdges:["8fboq4"],title:"End Customers",modelRef:"customers",shape:"person",color:"amber",style:{opacity:15,size:"xl"},description:{txt:"Consumers of your Application"},tags:[],kind:"actor",x:3153,y:460,width:520,height:290,labelBBox:{x:115,y:109,width:290,height:63}},{id:"forgejoRunner",parent:null,level:0,children:[],inEdges:["5mpoyf"],outEdges:["1lyfj4n"],title:"Forgejo Runner",modelRef:"forgejoRunner",shape:"rectangle",color:"primary",style:{opacity:15,size:"xl"},description:{txt:"A runner is a service that runs jobs triggered by Forgejo. A runner can have different technical implementations like a container or a VM."},tags:[],kind:"component",x:3153,y:1463,width:520,height:290,labelBBox:{x:69,y:71,width:382,height:139}},{id:"edfbuilder",parent:null,level:0,children:[],inEdges:["mox1r9"],outEdges:["lnq8uj"],title:"edfbuilder",modelRef:"edfbuilder",shape:"rectangle",color:"primary",icon:"tech:go",style:{opacity:15,size:"xl"},description:{txt:"EDP Foundry Builder"},tags:[],technology:"Golang",kind:"component",navigateTo:"edpbuilderworkflow",x:859,y:1458,width:520,height:290,labelBBox:{x:145,y:96,width:259,height:89}},{id:"documentation",parent:null,level:0,children:[],inEdges:["1kjl8ep"],outEdges:["14bjpe1"],title:"Documentation",modelRef:"documentation",shape:"rectangle",color:"primary",icon:"tech:electron",style:{opacity:15,size:"xl"},description:{txt:"Documentation system for EDP LikeC4 platform."},tags:[],technology:"Static Site Generator",kind:"system",navigateTo:"components-template-documentation",x:859,y:2071,width:520,height:290,labelBBox:{x:62,y:83,width:426,height:115}},{id:"edf",parent:null,level:0,children:[],inEdges:["lnq8uj","x7to90"],outEdges:["109bf6k"],title:"EDF",modelRef:"edf",shape:"rectangle",color:"primary",icon:"tech:kubernetes",style:{opacity:15,size:"xl"},description:{txt:"EDP Foundry is a platform for building and deploying EDPs tenantwise."},tags:[],technology:"Kubernetes",kind:"system",x:1557,y:1726,width:520,height:290,labelBBox:{x:106,y:71,width:339,height:139}},{id:"@gr1",parent:null,kind:"@group",title:"developer-scope",color:"green",shape:"rectangle",children:["developer","otherProductLifecycleRoles","@gr2","@gr3"],inEdges:["1lyfj4n","14bjpe1","109bf6k"],outEdges:["1tbee2v","5mpoyf","17brhnu","35ru8e"],level:0,depth:2,tags:[],style:{border:"none",opacity:20},x:1506,y:720,width:1457,height:966,labelBBox:{x:6,y:0,width:114,height:15}},{id:"developer",parent:"@gr1",level:1,children:[],inEdges:[],outEdges:["zjg544","1okgiq5"],title:"Developer",modelRef:"developer",shape:"person",color:"green",style:{opacity:15,size:"xl"},description:{txt:"The regular user of the platform"},tags:[],kind:"actor",x:1557,y:884,width:520,height:290,labelBBox:{x:111,y:109,width:298,height:63}},{id:"otherProductLifecycleRoles",parent:"@gr1",level:1,children:[],inEdges:[],outEdges:["1wupl5x"],title:"Reviewer, Tester, Auditors, Operators",modelRef:"otherProductLifecycleRoles",shape:"person",color:"green",style:{opacity:15,size:"xl"},description:{txt:"Coworking roles in the outer loop"},tags:[],kind:"actor",x:1546,y:1324,width:542,height:290,labelBBox:{x:34,y:109,width:474,height:63}},{id:"@gr2",parent:"@gr1",kind:"@group",title:"Devops inner-loop",color:"gray",shape:"rectangle",children:["localbox"],inEdges:["zjg544","6szgsj"],outEdges:["1tbee2v","1uo6k6b"],level:0,depth:1,tags:[],style:{border:"none",opacity:30},x:2339,y:781,width:584,height:375,labelBBox:{x:6,y:0,width:122,height:15}},{id:"localbox",parent:"@gr2",level:1,children:[],inEdges:["zjg544","6szgsj"],outEdges:["1tbee2v","1uo6k6b"],title:"localbox",modelRef:"localbox",shape:"rectangle",color:"primary",style:{opacity:15,size:"xl"},description:{txt:"A local development system"},tags:[],technology:"Linux/Windows/Mac",kind:"system",x:2371,y:834,width:520,height:290,labelBBox:{x:127,y:96,width:265,height:89}},{id:"@gr3",parent:"@gr1",kind:"@group",title:"Devops outer-loop",color:"gray",shape:"rectangle",children:["edp"],inEdges:["1lyfj4n","14bjpe1","109bf6k","1okgiq5","1wupl5x","1uo6k6b"],outEdges:["5mpoyf","17brhnu","35ru8e","6szgsj"],level:0,depth:1,tags:[],style:{border:"none",opacity:30},x:2339,y:1271,width:584,height:375,labelBBox:{x:6,y:0,width:126,height:15}},{id:"edp",parent:"@gr3",level:1,children:[],inEdges:["1lyfj4n","14bjpe1","109bf6k","1okgiq5","1wupl5x","1uo6k6b"],outEdges:["5mpoyf","17brhnu","35ru8e","6szgsj"],title:"EDP",modelRef:"edp",shape:"rectangle",color:"primary",icon:"tech:kubernetes",style:{opacity:15,size:"xl"},description:{txt:"EDP Edge Development Platform"},tags:[],technology:"Kubernetes",kind:"system",navigateTo:"edp",x:2371,y:1324,width:520,height:290,labelBBox:{x:88,y:96,width:374,height:89}},{id:"enterprise",parent:null,level:0,children:[],inEdges:["1tbee2v","35ru8e"],outEdges:["iwd51q"],title:"Customers' Enterprise Systems",modelRef:"enterprise",shape:"rectangle",color:"primary",style:{opacity:15,size:"xl"},description:{txt:"The customers' enterprise systems"},tags:[],kind:"system",x:3153,y:850,width:520,height:290,labelBBox:{x:63,y:109,width:395,height:63}},{id:"cloud",parent:null,level:0,children:[],inEdges:["8fboq4","iwd51q","17brhnu"],outEdges:[],title:"Cloud",modelRef:"cloud",shape:"rectangle",color:"primary",style:{opacity:15,size:"xl"},description:{txt:"Cloud environments"},tags:[],technology:"IaaS/PaaS",kind:"system",x:3944,y:850,width:520,height:290,labelBBox:{x:165,y:96,width:191,height:89}}],edges:[{id:"lnq8uj",source:"edfbuilder",target:"edf",label:"boots one",points:[[1379,1703],[1434,1724],[1492,1746],[1548,1768]],labelBBox:{x:1430,y:1702,width:66,height:18},parent:null,relations:["1oxlsu0"],color:"gray",line:"dashed",head:"normal"},{id:"mox1r9",source:"platformdeveloper",target:"edfbuilder",label:"runs",points:[[520,1790],[624,1757],[744,1720],[849,1687]],labelBBox:{x:674,y:1682,width:31,height:18},parent:null,relations:["s1l7g7"],color:"gray",line:"dashed",head:"normal"},{id:"1kjl8ep",source:"platformdeveloper",target:"documentation",label:"creates and maintains documentation",points:[[520,1975],[624,2017],[744,2066],[849,2108]],labelBBox:{x:571,y:1979,width:237,height:18},parent:null,relations:["3sz3k3"],color:"gray",line:"dashed",head:"normal"},{id:"x7to90",source:"platformdeveloper",target:"edf",label:"develops EDP and EDF",points:[[520,1871],[804,1871],[1259,1871],[1547,1871]],labelBBox:{x:1043,y:1848,width:152,height:18},parent:null,relations:["v8v12"],color:"gray",line:"dashed",head:"normal"},{id:"8fboq4",source:"customers",target:"cloud",label:"uses your app",points:[[3673,733],[3757,774],[3850,821],[3935,862]],labelBBox:{x:3763,y:742,width:92,height:18},parent:null,relations:["1g2ebwc"],color:"gray",line:"dashed",head:"normal"},{id:"iwd51q",source:"enterprise",target:"cloud",label:"app specific dependencies",points:[[3673,995],[3757,995],[3849,995],[3934,995]],labelBBox:{x:3724,y:972,width:169,height:18},parent:null,relations:["nc44l9"],color:"gray",line:"dashed",head:"normal"},{id:"zjg544",source:"developer",target:"localbox",label:"inner loop development",points:[[2077,1013],[2168,1007],[2270,1001],[2361,996]],labelBBox:{x:2155,y:975,width:150,height:18},parent:"@gr1",relations:["5hkplj"],color:"gray",line:"dashed",head:"normal"},{id:"1tbee2v",source:"localbox",target:"enterprise",label:"company integration",points:[[2891,984],[2972,986],[3061,988],[3143,989]],labelBBox:{x:2972,y:963,width:130,height:18},parent:null,relations:["1abvxlh"],color:"gray",line:"dashed",head:"normal"},{id:"1lyfj4n",source:"forgejoRunner",target:"edp",label:"register",points:[[3153,1633],[3093,1634],[3029,1630],[2971,1618],[2948,1613],[2924,1606],[2900,1599]],labelBBox:{x:3012,y:1595,width:51,height:18},parent:null,relations:["18dtot7"],color:"gray",line:"dashed",head:"normal"},{id:"14bjpe1",source:"documentation",target:"edp",label:"provides documentation for",points:[[1379,2230],[1583,2230],[1869,2205],[2088,2089],[2289,1983],[2450,1769],[2542,1623]],labelBBox:{x:1731,y:2066,width:173,height:18},parent:null,relations:["xw0pne"],color:"gray",line:"dashed",head:"normal"},{id:"109bf6k",source:"edf",target:"edp",label:"builds many",points:[[2077,1824],[2158,1803],[2246,1774],[2321,1734],[2377,1704],[2432,1662],[2480,1621]],labelBBox:{x:2190,y:1711,width:79,height:18},parent:null,relations:["wsm3kf"],color:"gray",line:"dashed",head:"normal"},{id:"1okgiq5",source:"developer",target:"edp",label:"outer loop development",points:[[2077,1169],[2168,1219],[2270,1274],[2362,1324]],labelBBox:{x:2154,y:1180,width:150,height:18},parent:"@gr1",relations:["1pp73vj","yk9zv2","12036hb","jpl8ll","1ghp31l","1xiorre","1woleh6","177bm2y","1l9a3pd","1uzzn9j"],color:"gray",line:"dashed",head:"normal"},{id:"1wupl5x",source:"otherProductLifecycleRoles",target:"edp",label:"act according to responibility",points:[[2088,1469],[2176,1469],[2273,1469],[2361,1469]],labelBBox:{x:2139,y:1446,width:181,height:18},parent:"@gr1",relations:["lb4xas"],color:"gray",line:"dashed",head:"normal"},{id:"1uo6k6b",source:"localbox",target:"edp",label:"inner-outer-loop synchronization",points:[[2631,1124],[2631,1184],[2631,1253],[2631,1314]],labelBBox:{x:2515,y:1212,width:204,height:18},parent:"@gr1",relations:["1mp9fps"],color:"gray",line:"dashed",head:"normal"},{id:"5mpoyf",source:"edp",target:"forgejoRunner",label:"runs workflows",points:[[2891,1515],[2972,1530],[3062,1546],[3143,1560]],labelBBox:{x:2989,y:1507,width:97,height:18},parent:null,relations:["1pbc22f"],color:"gray",line:"dashed",head:"normal"},{id:"17brhnu",source:"edp",target:"cloud",label:"deploys and observes",points:[[2891,1417],[3103,1371],[3411,1298],[3673,1213],[3760,1185],[3852,1149],[3935,1114]],labelBBox:{x:3343,y:1190,width:140,height:18},parent:null,relations:["gerdx4"],color:"gray",line:"dashed",head:"normal"},{id:"35ru8e",source:"edp",target:"enterprise",label:"integrates",points:[[2809,1324],[2860,1285],[2916,1245],[2971,1211],[3025,1177],[3086,1145],[3144,1116]],labelBBox:{x:3004,y:1115,width:65,height:18},parent:null,relations:["615gvx"],color:"gray",line:"dashed",head:"normal"},{id:"6szgsj",source:"edp",target:"localbox",label:null,points:[[2631,1324],[2631,1261],[2631,1197],[2631,1134]],labelBBox:null,parent:"@gr1",relations:["wvo8i"],color:"gray",line:"dashed",head:"normal"}]}},deployments:{elements:{local:{style:{icon:"tech:kubernetes"},kind:"environment",description:{txt:"Local kind-cluster environment for EDP, typically run by edpbuilder"},technology:"Kind",title:"Local kind-cluster",id:"local"},"otc-edp-per-tenant":{style:{},kind:"cloud",description:{txt:`OTC environment for EDP. EDP is the environment a customer gets from us. + This is kubernetes clusters and other infrastructure like nodes and vms, and platform services. All is set up by IaC-pipelines in the Foundry.`},technology:"OTC",title:"OTC EDP per tenant cluster",id:"otc-edp-per-tenant"},"otc-faas":{style:{},kind:"cloud",description:{txt:"OTC environments for Prototype FaaS."},technology:"OTC",title:"OTC prototype FaaS",id:"otc-faas"},edge:{style:{},kind:"cloud",description:{txt:"Edge environments for distributed workloads."},technology:"Edge",title:"Edge Cloud",id:"edge"},"otc-edpFoundry":{style:{},kind:"cloud",description:{txt:`OTC environments for the central EDP Foundry services. This is kubernetes clusters and other infrastructure like nodes and vms, and optionally platform services. All is set up by IaC terraform and edpbuilder. A tenant is a folder in Foundry-Config-Forgejo. On merge triggers reconciliation to EDP. -Optionally we will have a WebUI/API/CLI`},technology:"OTC",title:"OTC EDP Foundry Central Service clusters",id:"otc-edpFoundry"},edgeProvider:{style:{icon:"tech:terraform"},kind:"paas",description:{txt:"Unlocks the terraform ecosystem"},title:"Terraform Edge provider",id:"edgeProvider"},edgeProviderHost:{style:{},kind:"environment",title:"OTC",id:"edgeProviderHost"},edgeSdk:{style:{icon:"tech:go"},kind:"paas",description:{txt:"Wrapper around API"},technology:"Cloud Services",title:"Edge Cloud SDK",id:"edgeSdk"},edgeCloud:{style:{},kind:"environment",title:"Edge cloud",id:"edgeCloud"},"local.backstage":{style:{},kind:"namespace",title:"backstage",id:"local.backstage"},"local.argocd":{style:{},kind:"namespace",title:"argocd",id:"local.argocd"},"local.gitea":{style:{},kind:"namespace",title:"gitea",id:"local.gitea"},"local.keycloak":{style:{},kind:"namespace",title:"keycloak",id:"local.keycloak"},"local.crossplane":{style:{},kind:"namespace",title:"crossplane-system",id:"local.crossplane"},"local.externalSecrets":{style:{},kind:"namespace",title:"external-secrets",id:"local.externalSecrets"},"local.velero":{style:{},kind:"namespace",title:"velero",id:"local.velero"},"local.minio":{style:{},kind:"namespace",title:"minio-backup",id:"local.minio"},"local.monitoring":{style:{},kind:"namespace",title:"monitoring",id:"local.monitoring"},"local.ingressNginx":{style:{},kind:"namespace",title:"ingress-nginx",id:"local.ingressNginx"},"local.openbao":{style:{},kind:"namespace",title:"openbao",id:"local.openbao"},"local.fibonacci":{style:{},kind:"namespace",title:"fibonacci-app",id:"local.fibonacci"},"local.mailhog":{style:{},kind:"namespace",title:"mailhog",id:"local.mailhog"},"local.spark":{style:{},kind:"namespace",title:"spark",id:"local.spark"},"otc-edp-per-tenant.cce":{style:{icon:"tech:kubernetes"},kind:"kubernetes",description:{txt:"OTC Container Cluster Engine"},technology:"Kubernetes",title:"OTC CCE",id:"otc-edp-per-tenant.cce"},"otc-edp-per-tenant.cloudServices":{style:{},kind:"paas",description:{txt:"EDP Cloud Services"},technology:"Cloud Services",title:"EDP Cloud Services",id:"otc-edp-per-tenant.cloudServices"},"otc-edp-per-tenant.forgejoRunnerInfrastructure":{style:{},kind:"computeressource",description:{txt:"Infrastructure for Forgejo runners like pods, vms, lxds, etc"},title:"EDP ForgejoRunner infrastructure",id:"otc-edp-per-tenant.forgejoRunnerInfrastructure"},"otc-faas.dev":{style:{},kind:"environment",description:{txt:"*.t09.de"},technology:"OTC",title:"tenant Dev",id:"otc-faas.dev"},"otc-faas.prod":{style:{},kind:"environment",description:{txt:"*.buildth.ing"},technology:"OTC",title:"Tenant Prod",id:"otc-faas.prod"},"edge.edge-dev":{style:{},kind:"environment",description:{txt:"Edge development environment"},technology:"Edge",title:"Edge Dev",id:"edge.edge-dev"},"edge.edge-prod":{style:{},kind:"environment",description:{txt:"Edge production environment"},technology:"Edge",title:"Edge Prod",id:"edge.edge-prod"},"otc-edpFoundry.cce":{style:{icon:"tech:kubernetes"},kind:"kubernetes",description:{txt:"OTC Container Cluster Engine"},technology:"Kubernetes",title:"OTC CCE",id:"otc-edpFoundry.cce"},"otc-edpFoundry.workflowSetupEDPInfrastructure":{style:{},kind:"computeressource",description:{txt:"EDP infrastructure Workflow"},title:"EDP infrastructure Workflow",id:"otc-edpFoundry.workflowSetupEDPInfrastructure"},"otc-edpFoundry.workflowSetupArgoCDInfrastructure":{style:{},kind:"computeressource",description:{txt:"EDP Setup ArgoCD Workflow"},title:"EDP ArgoCD Workflow",id:"otc-edpFoundry.workflowSetupArgoCDInfrastructure"},"otc-edpFoundry.forgejoRunnerInfrastructure":{style:{},kind:"computeressource",description:{txt:"Infrastructure for Forgejo runners like pods, vms, lxds, etc"},title:"EDP ForgejoRunner infrastructure",id:"otc-edpFoundry.forgejoRunnerInfrastructure"},"edgeProviderHost.edp":{style:{icon:"tech:git"},kind:"cluster",title:"Forgejo for all EDP-tenants",id:"edgeProviderHost.edp"},"edgeProviderHost.terralist":{style:{icon:"tech:terraform"},kind:"paas",description:{txt:"Terraform provider private hosting"},technology:"Cloud Services",title:"Terralist",id:"edgeProviderHost.terralist"},"edgeCloud.edgeApi":{style:{icon:"tech:swagger"},kind:"paas",technology:"Edge Cloud (managed)",links:[{url:"https://swagger.edge.platform.mg3.mdb.osc.live",title:"Documentation"}],title:"Edge Cloud API",id:"edgeCloud.edgeApi"},"edgeCloud.edgeResources":{style:{},kind:"paas",description:{txt:"App, AppInstance, etc."},technology:"Edge Cloud (managed)",title:"Edge Cloud Resources",id:"edgeCloud.edgeResources"},"local.backstage.backstage":{id:"local.backstage.backstage",element:"edp.ui.backstage",style:{}},"local.backstage.database":{id:"local.backstage.database",element:"edp.ui.database",style:{}},"local.argocd.argocdAppController":{id:"local.argocd.argocdAppController",element:"edp.argoCD.argocdAppController",style:{}},"local.argocd.argocdAppSetController":{id:"local.argocd.argocdAppSetController",element:"edp.argoCD.argocdAppSetController",style:{}},"local.argocd.argocdRedis":{id:"local.argocd.argocdRedis",element:"edp.argoCD.argocdRedis",style:{}},"local.argocd.argocdRepoServer":{id:"local.argocd.argocdRepoServer",element:"edp.argoCD.argocdRepoServer",style:{}},"local.argocd.argocdServer":{id:"local.argocd.argocdServer",element:"edp.argoCD.argocdServer",style:{}},"local.gitea.forgejo":{id:"local.gitea.forgejo",element:"edp.forgejo",style:{}},"local.gitea.forgejoRunner":{id:"local.gitea.forgejoRunner",element:"forgejoRunner",style:{}},"local.keycloak.keycloak":{id:"local.keycloak.keycloak",element:"edp.keycloak.keycloak",style:{}},"local.keycloak.keycloakDB":{id:"local.keycloak.keycloakDB",element:"edp.keycloak.keycloakDB",style:{}},"local.crossplane.crossplane":{id:"local.crossplane.crossplane",element:"edp.crossplane.crossplane",style:{}},"local.crossplane.crossplaneFunction":{id:"local.crossplane.crossplaneFunction",element:"edp.crossplane.crossplaneFunction",style:{}},"local.crossplane.crossplaneRbacManager":{id:"local.crossplane.crossplaneRbacManager",element:"edp.crossplane.crossplaneRbacManager",style:{}},"local.crossplane.providerArgoCD":{id:"local.crossplane.providerArgoCD",element:"edp.crossplane.providerArgoCD",style:{}},"local.crossplane.providerKind":{id:"local.crossplane.providerKind",element:"edp.crossplane.providerKind",style:{}},"local.crossplane.providerShell":{id:"local.crossplane.providerShell",element:"edp.crossplane.providerShell",style:{}},"local.externalSecrets.certController":{id:"local.externalSecrets.certController",element:"edp.externalSecrets.certController",style:{}},"local.externalSecrets.externalSecrets":{id:"local.externalSecrets.externalSecrets",element:"edp.externalSecrets.externalSecrets",style:{}},"local.externalSecrets.webhook":{id:"local.externalSecrets.webhook",element:"edp.externalSecrets.webhook",style:{}},"local.velero.velero":{id:"local.velero.velero",element:"edp.velero.velero",style:{}},"local.minio.minio":{id:"local.minio.minio",element:"edp.minio.minio",style:{}},"local.monitoring.alloy":{id:"local.monitoring.alloy",element:"edp.monitoring.alloy",style:{}},"local.monitoring.distributor":{id:"local.monitoring.distributor",element:"edp.monitoring.loki.distributor",style:{}},"local.monitoring.gateway":{id:"local.monitoring.gateway",element:"edp.monitoring.loki.gateway",style:{}},"local.monitoring.ingestor":{id:"local.monitoring.ingestor",element:"edp.monitoring.loki.ingestor",style:{}},"local.monitoring.querier":{id:"local.monitoring.querier",element:"edp.monitoring.loki.querier",style:{}},"local.monitoring.queryFrontend":{id:"local.monitoring.queryFrontend",element:"edp.monitoring.loki.queryFrontend",style:{}},"local.ingressNginx.ingressNginx":{id:"local.ingressNginx.ingressNginx",element:"edp.ingressNginx.ingressNginx",style:{}},"local.openbao.openbao":{id:"local.openbao.openbao",element:"edp.openbao.openbao",style:{}},"local.openbao.agentInjector":{id:"local.openbao.agentInjector",element:"edp.openbao.agentInjector",style:{}},"local.fibonacci.fibonacci":{id:"local.fibonacci.fibonacci",element:"edp.testApp.fibonacci",style:{}},"local.mailhog.mailhog":{id:"local.mailhog.mailhog",element:"edp.mailhog.mailhog",style:{}},"local.spark.sparkoperator":{id:"local.spark.sparkoperator",element:"edp.spark.sparkoperator",style:{}},"otc-edp-per-tenant.cce.edp":{style:{},kind:"cluster",title:"EDP",id:"otc-edp-per-tenant.cce.edp"},"otc-edp-per-tenant.cloudServices.postgres":{id:"otc-edp-per-tenant.cloudServices.postgres",element:"postgres",style:{}},"otc-edp-per-tenant.cloudServices.redis":{id:"otc-edp-per-tenant.cloudServices.redis",element:"redis",style:{}},"otc-edp-per-tenant.cloudServices.objectstorage":{id:"otc-edp-per-tenant.cloudServices.objectstorage",element:"objectstorage",style:{}},"otc-edp-per-tenant.cloudServices.elasticsearch":{id:"otc-edp-per-tenant.cloudServices.elasticsearch",element:"elasticsearch",style:{}},"otc-edp-per-tenant.forgejoRunnerInfrastructure.forgejoRunner":{id:"otc-edp-per-tenant.forgejoRunnerInfrastructure.forgejoRunner",element:"forgejoRunner",style:{}},"otc-faas.dev.cce":{style:{icon:"tech:kubernetes"},kind:"kubernetes",description:{txt:"*.t09.de"},technology:"Kubernetes",title:"Central Forgejo",id:"otc-faas.dev.cce"},"otc-faas.dev.cloudServices":{style:{},kind:"paas",description:{txt:"EDP Cloud Services (Postgres, Redis, etc.)"},technology:"Cloud Services",title:"EDP Cloud Services",id:"otc-faas.dev.cloudServices"},"otc-faas.dev.observability":{style:{icon:"tech:kubernetes"},kind:"kubernetes",description:{txt:"*.t09.de"},technology:"Kubernetes",title:"Observability",id:"otc-faas.dev.observability"},"otc-faas.prod.cce":{style:{icon:"tech:kubernetes"},kind:"kubernetes",description:{txt:"*.buildth.ing"},technology:"Kubernetes",title:"Central Forgejo",id:"otc-faas.prod.cce"},"otc-faas.prod.cloudServices":{style:{},kind:"paas",description:{txt:"EDP Cloud Services (Postgres, Redis, etc.)"},technology:"Cloud Services",title:"EDP Cloud Services",id:"otc-faas.prod.cloudServices"},"otc-faas.prod.observability":{style:{icon:"tech:kubernetes"},kind:"kubernetes",description:{txt:"*.buildth.ing"},technology:"Kubernetes",title:"Observability",id:"otc-faas.prod.observability"},"otc-edpFoundry.cce.internalServices":{style:{},kind:"cluster",title:"EDP Foundry Internal Services",id:"otc-edpFoundry.cce.internalServices"},"otc-edpFoundry.cce.centralObservability":{style:{},kind:"cluster",title:"EDP Foundry Central Observability",id:"otc-edpFoundry.cce.centralObservability"},"otc-edpFoundry.workflowSetupEDPInfrastructure.forgejoRunner":{id:"otc-edpFoundry.workflowSetupEDPInfrastructure.forgejoRunner",element:"forgejoRunner",style:{}},"otc-edpFoundry.workflowSetupEDPInfrastructure.forgejoRunnerWorker":{id:"otc-edpFoundry.workflowSetupEDPInfrastructure.forgejoRunnerWorker",element:"forgejoRunnerWorker",style:{}},"otc-edpFoundry.workflowSetupEDPInfrastructure.edpworkflow":{id:"otc-edpFoundry.workflowSetupEDPInfrastructure.edpworkflow",element:"edpworkflow",style:{}},"otc-edpFoundry.workflowSetupArgoCDInfrastructure.forgejoRunner":{id:"otc-edpFoundry.workflowSetupArgoCDInfrastructure.forgejoRunner",element:"forgejoRunner",style:{}},"otc-edpFoundry.workflowSetupArgoCDInfrastructure.forgejoRunnerWorker":{id:"otc-edpFoundry.workflowSetupArgoCDInfrastructure.forgejoRunnerWorker",element:"forgejoRunnerWorker",style:{}},"otc-edpFoundry.workflowSetupArgoCDInfrastructure.edpworkflow":{id:"otc-edpFoundry.workflowSetupArgoCDInfrastructure.edpworkflow",element:"edpworkflow",style:{}},"otc-edpFoundry.forgejoRunnerInfrastructure.forgejoRunner":{id:"otc-edpFoundry.forgejoRunnerInfrastructure.forgejoRunner",element:"forgejoRunner",style:{}},"edgeProviderHost.edp.forgejo":{id:"edgeProviderHost.edp.forgejo",element:"edp.forgejo",title:"Forgejo for all EDP-tenants",description:{txt:"edp.buildth.ing"},style:{}},"otc-edp-per-tenant.cce.edp.argoCD":{id:"otc-edp-per-tenant.cce.edp.argoCD",element:"edp.argoCD",style:{}},"otc-edp-per-tenant.cce.edp.forgejoRunner":{id:"otc-edp-per-tenant.cce.edp.forgejoRunner",element:"forgejoRunner",style:{}},"otc-edp-per-tenant.cce.edp.forgejo":{id:"otc-edp-per-tenant.cce.edp.forgejo",element:"edp.forgejo",style:{}},"otc-edp-per-tenant.cce.edp.externalSecrets":{id:"otc-edp-per-tenant.cce.edp.externalSecrets",element:"edp.externalSecrets",style:{}},"otc-edp-per-tenant.cce.edp.ingressNginx":{id:"otc-edp-per-tenant.cce.edp.ingressNginx",element:"edp.ingressNginx",style:{}},"otc-faas.dev.cce.edp":{style:{},kind:"cluster",description:{txt:"t09.de"},title:"Forgejo Dev for platform team",id:"otc-faas.dev.cce.edp"},"otc-faas.prod.cce.edp":{style:{},kind:"cluster",title:"Forgejo for all EDP-tenants",id:"otc-faas.prod.cce.edp"},"otc-edpFoundry.cce.internalServices.argoCD":{id:"otc-edpFoundry.cce.internalServices.argoCD",element:"edp.argoCD",style:{}},"otc-edpFoundry.cce.internalServices.forgejo":{id:"otc-edpFoundry.cce.internalServices.forgejo",element:"edp.forgejo",style:{}},"otc-edpFoundry.cce.internalServices.externalSecrets":{id:"otc-edpFoundry.cce.internalServices.externalSecrets",element:"edp.externalSecrets",style:{}},"otc-edpFoundry.cce.internalServices.openbao":{id:"otc-edpFoundry.cce.internalServices.openbao",element:"edp.openbao",style:{}},"otc-edpFoundry.cce.internalServices.ingressNginx":{id:"otc-edpFoundry.cce.internalServices.ingressNginx",element:"edp.ingressNginx",style:{}},"otc-edpFoundry.cce.centralObservability.grafana":{id:"otc-edpFoundry.cce.centralObservability.grafana",element:"edp.grafana",style:{}},"otc-edpFoundry.cce.centralObservability.prometheus":{id:"otc-edpFoundry.cce.centralObservability.prometheus",element:"edp.prometheus",style:{}},"otc-edpFoundry.cce.centralObservability.loki":{id:"otc-edpFoundry.cce.centralObservability.loki",element:"edp.loki",style:{}},"otc-faas.dev.cce.edp.forgejo":{id:"otc-faas.dev.cce.edp.forgejo",element:"edp.forgejo",style:{}},"otc-faas.prod.cce.edp.forgejo":{id:"otc-faas.prod.cce.edp.forgejo",element:"edp.forgejo",title:"Forgejo for all EDP-tenants",description:{txt:"buildth.ing"},style:{}}},relations:{g9oj4f:{title:"registers",source:{deployment:"otc-edp-per-tenant.forgejoRunnerInfrastructure.forgejoRunner"},target:{deployment:"otc-edp-per-tenant.cce.edp.forgejo"},id:"g9oj4f"},"1fzhjm9":{source:{deployment:"otc-edp-per-tenant.cce.edp.forgejo"},target:{deployment:"otc-edp-per-tenant.cloudServices.elasticsearch"},id:"1fzhjm9"},"15njmlz":{source:{deployment:"otc-edp-per-tenant.cce.edp.forgejo"},target:{deployment:"otc-edp-per-tenant.cloudServices.objectstorage"},id:"15njmlz"},hks76r:{source:{deployment:"otc-edp-per-tenant.cce.edp.forgejo"},target:{deployment:"otc-edp-per-tenant.cloudServices.postgres"},id:"hks76r"},"1w18ve8":{source:{deployment:"otc-edp-per-tenant.cce.edp.forgejo"},target:{deployment:"otc-edp-per-tenant.cloudServices.redis"},id:"1w18ve8"},dz2rdn:{source:{deployment:"otc-faas.dev.cce.edp.forgejo"},target:{deployment:"otc-faas.dev.cloudServices"},id:"dz2rdn"},"2shw6y":{source:{deployment:"otc-faas.prod.cce.edp.forgejo"},target:{deployment:"otc-faas.prod.cloudServices"},id:"2shw6y"},"7kqly3":{title:"runs",source:{deployment:"otc-edpFoundry.workflowSetupEDPInfrastructure.forgejoRunner"},target:{deployment:"otc-edpFoundry.workflowSetupEDPInfrastructure.forgejoRunnerWorker"},id:"7kqly3"},"12hf1w4":{title:"executes",source:{deployment:"otc-edpFoundry.workflowSetupEDPInfrastructure.forgejoRunnerWorker"},target:{deployment:"otc-edpFoundry.workflowSetupEDPInfrastructure.edpworkflow"},id:"12hf1w4"},uk77s5:{title:"deploys edp to otc.cce",source:{deployment:"otc-edpFoundry.workflowSetupEDPInfrastructure.edpworkflow"},target:{deployment:"otc-edp-per-tenant.cce.edp"},id:"uk77s5"},"1pfc6bl":{title:"deploys edp to otc.paas",source:{deployment:"otc-edpFoundry.workflowSetupEDPInfrastructure.edpworkflow"},target:{deployment:"otc-edp-per-tenant.cloudServices"},id:"1pfc6bl"},hqie0:{title:"runs",source:{deployment:"otc-edpFoundry.workflowSetupArgoCDInfrastructure.forgejoRunner"},target:{deployment:"otc-edpFoundry.workflowSetupArgoCDInfrastructure.forgejoRunnerWorker"},id:"hqie0"},"1j16hqv":{title:"executes",source:{deployment:"otc-edpFoundry.workflowSetupArgoCDInfrastructure.forgejoRunnerWorker"},target:{deployment:"otc-edpFoundry.workflowSetupArgoCDInfrastructure.edpworkflow"},id:"1j16hqv"},jde35l:{source:{deployment:"otc-edpFoundry.workflowSetupArgoCDInfrastructure.edpworkflow"},target:{deployment:"otc-edp-per-tenant.cce.edp.argoCD"},id:"jde35l"},"1umzqdy":{title:"registers",source:{deployment:"otc-edpFoundry.forgejoRunnerInfrastructure.forgejoRunner"},target:{deployment:"otc-edpFoundry.cce.internalServices.forgejo"},id:"1umzqdy"},dola40:{title:"invokes",source:{deployment:"otc-edpFoundry.cce.internalServices.forgejo"},target:{deployment:"otc-edpFoundry.workflowSetupEDPInfrastructure.forgejoRunner"},id:"dola40"},"1f5y9gc":{title:"invokes",source:{deployment:"otc-edpFoundry.cce.internalServices.forgejo"},target:{deployment:"otc-edpFoundry.workflowSetupArgoCDInfrastructure.forgejoRunner"},id:"1f5y9gc"},"1wlvsb5":{title:"built using",source:{deployment:"edgeProvider"},target:{deployment:"edgeSdk"},id:"1wlvsb5"},"1mpjz5d":{title:"published to",source:{deployment:"edgeProvider"},target:{deployment:"edgeProviderHost.terralist"},id:"1mpjz5d"},"12ssq9":{title:"hosted on",source:{deployment:"edgeProvider"},target:{deployment:"edgeProviderHost.edp"},id:"12ssq9"},vfhcba:{title:"calls",source:{deployment:"edgeSdk"},target:{deployment:"edgeCloud.edgeApi"},id:"vfhcba"},"1sm6ifh":{title:"hosted on",source:{deployment:"edgeSdk"},target:{deployment:"edgeProviderHost.edp"},id:"1sm6ifh"},"1q6ftvm":{title:"authenticates via",source:{deployment:"edgeProviderHost.terralist"},target:{deployment:"edgeProviderHost.edp"},id:"1q6ftvm"},rr0lcz:{title:"creates/destroys",source:{deployment:"edgeCloud.edgeApi"},target:{deployment:"edgeCloud.edgeResources"},id:"rr0lcz"}}},imports:{}}),{useLikeC4Model:_nt}=wnt(knt);function Ent({children:e}){const r=_nt();return y.jsx(yrt,{likec4model:r,children:e})}function Snt(e){return y.jsx(Ent,{children:y.jsx(qrt,{renderIcon:lnt,...e})})}var IR={exports:{}},rb={},OR={exports:{}},jR={};var qne;function Cnt(){return qne||(qne=1,(function(e){function r(I,H){var q=I.length;I.push(H);e:for(;0>>1,W=I[Z];if(0>>1;Za(j,q))Ya(Q,j)?(I[Z]=Q,I[Y]=q,Z=Y):(I[Z]=j,I[K]=q,Z=K);else if(Ya(Q,q))I[Z]=Q,I[Y]=q,Z=Y;else break e}}return H}function a(I,H){var q=I.sortIndex-H.sortIndex;return q!==0?q:I.id-H.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var c=[],d=[],u=1,h=null,f=3,g=!1,b=!1,x=!1,w=!1,k=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,_=typeof setImmediate<"u"?setImmediate:null;function T(I){for(var H=n(d);H!==null;){if(H.callback===null)o(d);else if(H.startTime<=I)o(d),H.sortIndex=H.expirationTime,r(c,H);else break;H=n(d)}}function A(I){if(x=!1,T(I),!b)if(n(c)!==null)b=!0,R||(R=!0,L());else{var H=n(d);H!==null&&V(A,H.startTime-I)}}var R=!1,D=-1,N=5,P=-1;function O(){return w?!0:!(e.unstable_now()-PI&&O());){var Z=h.callback;if(typeof Z=="function"){h.callback=null,f=h.priorityLevel;var W=Z(h.expirationTime<=I);if(I=e.unstable_now(),typeof W=="function"){h.callback=W,T(I),H=!0;break t}h===n(c)&&o(c),T(I)}else o(c);h=n(c)}if(h!==null)H=!0;else{var G=n(d);G!==null&&V(A,G.startTime-I),H=!1}}break e}finally{h=null,f=q,g=!1}H=void 0}}finally{H?L():R=!1}}}var L;if(typeof _=="function")L=function(){_(F)};else if(typeof MessageChannel<"u"){var U=new MessageChannel,M=U.port2;U.port1.onmessage=F,L=function(){M.postMessage(null)}}else L=function(){k(F,0)};function V(I,H){D=k(function(){I(e.unstable_now())},H)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(I){I.callback=null},e.unstable_forceFrameRate=function(I){0>I||125Z?(I.sortIndex=q,r(d,I),n(c)===null&&I===n(d)&&(x?(C(D),D=-1):x=!0,V(A,q-Z))):(I.sortIndex=W,r(c,I),b||g||(b=!0,R||(R=!0,L()))),I},e.unstable_shouldYield=O,e.unstable_wrapCallback=function(I){var H=f;return function(){var q=f;f=H;try{return I.apply(this,arguments)}finally{f=q}}}})(jR)),jR}var Une;function Tnt(){return Une||(Une=1,OR.exports=Cnt()),OR.exports}var Wne;function Ant(){if(Wne)return rb;Wne=1;var e=Tnt(),r=h6(),n=Kz();function o(p){var m="https://react.dev/errors/"+p;if(1W||(p.current=Z[W],Z[W]=null,W--)}function j(p,m){W++,Z[W]=p.current,p.current=m}var Y=G(null),Q=G(null),J=G(null),ie=G(null);function ne(p,m){switch(j(J,m),j(Q,p),j(Y,null),m.nodeType){case 9:case 11:p=(p=m.documentElement)&&(p=p.namespaceURI)?Gge(p):0;break;default:if(p=m.tagName,m=m.namespaceURI)m=Gge(m),p=Xge(m,p);else switch(p){case"svg":p=1;break;case"math":p=2;break;default:p=0}}K(Y),j(Y,p)}function re(){K(Y),K(Q),K(J)}function ge(p){p.memoizedState!==null&&j(ie,p);var m=Y.current,v=Xge(m,p.type);m!==v&&(j(Q,p),j(Y,v))}function De(p){Q.current===p&&(K(Y),K(Q)),ie.current===p&&(K(ie),jv._currentValue=q)}var he,me;function Te(p){if(he===void 0)try{throw Error()}catch(v){var m=v.stack.trim().match(/\n( *(at )?)/);he=m&&m[1]||"",me=-1)":-1$||pe[S]!==we[$]){var Ne=` -`+pe[S].replace(" at new "," at ");return p.displayName&&Ne.includes("")&&(Ne=Ne.replace("",p.displayName)),Ne}while(1<=S&&0<=$);break}}}finally{Ie=!1,Error.prepareStackTrace=v}return(v=p?p.displayName||p.name:"")?Te(v):""}function rt(p,m){switch(p.tag){case 26:case 27:case 5:return Te(p.type);case 16:return Te("Lazy");case 13:return p.child!==m&&m!==null?Te("Suspense Fallback"):Te("Suspense");case 19:return Te("SuspenseList");case 0:case 15:return Ze(p.type,!1);case 11:return Ze(p.type.render,!1);case 1:return Ze(p.type,!0);case 31:return Te("Activity");default:return""}}function Rt(p){try{var m="",v=null;do m+=rt(p,v),v=p,p=p.return;while(p);return m}catch(S){return` -Error generating stack: `+S.message+` -`+S.stack}}var Qe=Object.prototype.hasOwnProperty,Mt=e.unstable_scheduleCallback,Ke=e.unstable_cancelCallback,Ge=e.unstable_shouldYield,ct=e.unstable_requestPaint,dt=e.unstable_now,Ir=e.unstable_getCurrentPriorityLevel,Ee=e.unstable_ImmediatePriority,Se=e.unstable_UserBlockingPriority,it=e.unstable_NormalPriority,xt=e.unstable_LowPriority,zt=e.unstable_IdlePriority,Fr=e.log,It=e.unstable_setDisableYieldValue,vr=null,fr=null;function dn(p){if(typeof Fr=="function"&&It(p),fr&&typeof fr.setStrictMode=="function")try{fr.setStrictMode(vr,p)}catch{}}var ir=Math.clz32?Math.clz32:ea,vn=Math.log,xr=Math.LN2;function ea(p){return p>>>=0,p===0?32:31-(vn(p)/xr|0)|0}var xa=256,Gs=262144,Vo=4194304;function wa(p){var m=p&42;if(m!==0)return m;switch(p&-p){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return p&261888;case 262144:case 524288:case 1048576:case 2097152:return p&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return p&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return p}}function Xs(p,m,v){var S=p.pendingLanes;if(S===0)return 0;var $=0,z=p.suspendedLanes,X=p.pingedLanes;p=p.warmLanes;var oe=S&134217727;return oe!==0?(S=oe&~z,S!==0?$=wa(S):(X&=oe,X!==0?$=wa(X):v||(v=oe&~p,v!==0&&($=wa(v))))):(oe=S&~z,oe!==0?$=wa(oe):X!==0?$=wa(X):v||(v=S&~p,v!==0&&($=wa(v)))),$===0?0:m!==0&&m!==$&&(m&z)===0&&(z=$&-$,v=m&-m,z>=v||z===32&&(v&4194048)!==0)?m:$}function fo(p,m){return(p.pendingLanes&~(p.suspendedLanes&~p.pingedLanes)&m)===0}function Ol(p,m){switch(p){case 1:case 2:case 4:case 8:case 64:return m+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return m+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function jl(){var p=Vo;return Vo<<=1,(Vo&62914560)===0&&(Vo=4194304),p}function Bc(p){for(var m=[],v=0;31>v;v++)m.push(p);return m}function Ks(p,m){p.pendingLanes|=m,m!==268435456&&(p.suspendedLanes=0,p.pingedLanes=0,p.warmLanes=0)}function Rh(p,m,v,S,$,z){var X=p.pendingLanes;p.pendingLanes=v,p.suspendedLanes=0,p.pingedLanes=0,p.warmLanes=0,p.expiredLanes&=v,p.entangledLanes&=v,p.errorRecoveryDisabledLanes&=v,p.shellSuspendCounter=0;var oe=p.entanglements,pe=p.expirationTimes,we=p.hiddenUpdates;for(v=X&~v;0"u")return null;try{return p.activeElement||p.body}catch{return p.body}}var pu=/[\n"\\]/g;function ee(p){return p.replace(pu,function(m){return"\\"+m.charCodeAt(0).toString(16)+" "})}function te(p,m,v,S,$,z,X,oe){p.name="",X!=null&&typeof X!="function"&&typeof X!="symbol"&&typeof X!="boolean"?p.type=X:p.removeAttribute("type"),m!=null?X==="number"?(m===0&&p.value===""||p.value!=m)&&(p.value=""+nn(m)):p.value!==""+nn(m)&&(p.value=""+nn(m)):X!=="submit"&&X!=="reset"||p.removeAttribute("value"),m!=null?le(p,X,nn(m)):v!=null?le(p,X,nn(v)):S!=null&&p.removeAttribute("value"),$==null&&z!=null&&(p.defaultChecked=!!z),$!=null&&(p.checked=$&&typeof $!="function"&&typeof $!="symbol"),oe!=null&&typeof oe!="function"&&typeof oe!="symbol"&&typeof oe!="boolean"?p.name=""+nn(oe):p.removeAttribute("name")}function ae(p,m,v,S,$,z,X,oe){if(z!=null&&typeof z!="function"&&typeof z!="symbol"&&typeof z!="boolean"&&(p.type=z),m!=null||v!=null){if(!(z!=="submit"&&z!=="reset"||m!=null)){Fi(p);return}v=v!=null?""+nn(v):"",m=m!=null?""+nn(m):v,oe||m===p.value||(p.value=m),p.defaultValue=m}S=S??$,S=typeof S!="function"&&typeof S!="symbol"&&!!S,p.checked=oe?p.checked:!!S,p.defaultChecked=!!S,X!=null&&typeof X!="function"&&typeof X!="symbol"&&typeof X!="boolean"&&(p.name=X),Fi(p)}function le(p,m,v){m==="number"&&Ul(p.ownerDocument)===p||p.defaultValue===""+v||(p.defaultValue=""+v)}function de(p,m,v,S){if(p=p.options,m){m={};for(var $=0;$"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),HP=!1;if(Uc)try{var rv={};Object.defineProperty(rv,"passive",{get:function(){HP=!0}}),window.addEventListener("test",rv,rv),window.removeEventListener("test",rv,rv)}catch{HP=!1}var fu=null,VP=null,r_=null;function Xhe(){if(r_)return r_;var p,m=VP,v=m.length,S,$="value"in fu?fu.value:fu.textContent,z=$.length;for(p=0;p=av),tfe=" ",rfe=!1;function nfe(p,m){switch(p){case"keyup":return fwt.indexOf(m.keyCode)!==-1;case"keydown":return m.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ofe(p){return p=p.detail,typeof p=="object"&&"data"in p?p.data:null}var Og=!1;function gwt(p,m){switch(p){case"compositionend":return ofe(m);case"keypress":return m.which!==32?null:(rfe=!0,tfe);case"textInput":return p=m.data,p===tfe&&rfe?null:p;default:return null}}function ywt(p,m){if(Og)return p==="compositionend"||!GP&&nfe(p,m)?(p=Xhe(),r_=VP=fu=null,Og=!1,p):null;switch(p){case"paste":return null;case"keypress":if(!(m.ctrlKey||m.altKey||m.metaKey)||m.ctrlKey&&m.altKey){if(m.char&&1=m)return{node:v,offset:m-p};p=S}e:{for(;v;){if(v.nextSibling){v=v.nextSibling;break e}v=v.parentNode}v=void 0}v=pfe(v)}}function ffe(p,m){return p&&m?p===m?!0:p&&p.nodeType===3?!1:m&&m.nodeType===3?ffe(p,m.parentNode):"contains"in p?p.contains(m):p.compareDocumentPosition?!!(p.compareDocumentPosition(m)&16):!1:!1}function mfe(p){p=p!=null&&p.ownerDocument!=null&&p.ownerDocument.defaultView!=null?p.ownerDocument.defaultView:window;for(var m=Ul(p.document);m instanceof p.HTMLIFrameElement;){try{var v=typeof m.contentWindow.location.href=="string"}catch{v=!1}if(v)p=m.contentWindow;else break;m=Ul(p.document)}return m}function ZP(p){var m=p&&p.nodeName&&p.nodeName.toLowerCase();return m&&(m==="input"&&(p.type==="text"||p.type==="search"||p.type==="tel"||p.type==="url"||p.type==="password")||m==="textarea"||p.contentEditable==="true")}var Swt=Uc&&"documentMode"in document&&11>=document.documentMode,jg=null,QP=null,cv=null,JP=!1;function gfe(p,m,v){var S=v.window===v?v.document:v.nodeType===9?v:v.ownerDocument;JP||jg==null||jg!==Ul(S)||(S=jg,"selectionStart"in S&&ZP(S)?S={start:S.selectionStart,end:S.selectionEnd}:(S=(S.ownerDocument&&S.ownerDocument.defaultView||window).getSelection(),S={anchorNode:S.anchorNode,anchorOffset:S.anchorOffset,focusNode:S.focusNode,focusOffset:S.focusOffset}),cv&&lv(cv,S)||(cv=S,S=X_(QP,"onSelect"),0>=X,$-=X,Wl=1<<32-ir(m)+$|v<<$|S,Yl=z+p}else Wl=1<Wt?(nr=pt,pt=null):nr=pt.sibling;var gr=ke(ye,pt,xe[Wt],$e);if(gr===null){pt===null&&(pt=nr);break}p&&pt&&gr.alternate===null&&m(ye,pt),fe=z(gr,fe,Wt),mr===null?yt=gr:mr.sibling=gr,mr=gr,pt=nr}if(Wt===xe.length)return v(ye,pt),sr&&Yc(ye,Wt),yt;if(pt===null){for(;WtWt?(nr=pt,pt=null):nr=pt.sibling;var Iu=ke(ye,pt,gr.value,$e);if(Iu===null){pt===null&&(pt=nr);break}p&&pt&&Iu.alternate===null&&m(ye,pt),fe=z(Iu,fe,Wt),mr===null?yt=Iu:mr.sibling=Iu,mr=Iu,pt=nr}if(gr.done)return v(ye,pt),sr&&Yc(ye,Wt),yt;if(pt===null){for(;!gr.done;Wt++,gr=xe.next())gr=Me(ye,gr.value,$e),gr!==null&&(fe=z(gr,fe,Wt),mr===null?yt=gr:mr.sibling=gr,mr=gr);return sr&&Yc(ye,Wt),yt}for(pt=S(pt);!gr.done;Wt++,gr=xe.next())gr=Ce(pt,ye,Wt,gr.value,$e),gr!==null&&(p&&gr.alternate!==null&&pt.delete(gr.key===null?Wt:gr.key),fe=z(gr,fe,Wt),mr===null?yt=gr:mr.sibling=gr,mr=gr);return p&&pt.forEach(function(U4t){return m(ye,U4t)}),sr&&Yc(ye,Wt),yt}function Pr(ye,fe,xe,$e){if(typeof xe=="object"&&xe!==null&&xe.type===x&&xe.key===null&&(xe=xe.props.children),typeof xe=="object"&&xe!==null){switch(xe.$$typeof){case g:e:{for(var yt=xe.key;fe!==null;){if(fe.key===yt){if(yt=xe.type,yt===x){if(fe.tag===7){v(ye,fe.sibling),$e=$(fe,xe.props.children),$e.return=ye,ye=$e;break e}}else if(fe.elementType===yt||typeof yt=="object"&&yt!==null&&yt.$$typeof===N&&Vh(yt)===fe.type){v(ye,fe.sibling),$e=$(fe,xe.props),mv($e,xe),$e.return=ye,ye=$e;break e}v(ye,fe);break}else m(ye,fe);fe=fe.sibling}xe.type===x?($e=jh(xe.props.children,ye.mode,$e,xe.key),$e.return=ye,ye=$e):($e=p_(xe.type,xe.key,xe.props,null,ye.mode,$e),mv($e,xe),$e.return=ye,ye=$e)}return X(ye);case b:e:{for(yt=xe.key;fe!==null;){if(fe.key===yt)if(fe.tag===4&&fe.stateNode.containerInfo===xe.containerInfo&&fe.stateNode.implementation===xe.implementation){v(ye,fe.sibling),$e=$(fe,xe.children||[]),$e.return=ye,ye=$e;break e}else{v(ye,fe);break}else m(ye,fe);fe=fe.sibling}$e=iM(xe,ye.mode,$e),$e.return=ye,ye=$e}return X(ye);case N:return xe=Vh(xe),Pr(ye,fe,xe,$e)}if(V(xe))return st(ye,fe,xe,$e);if(L(xe)){if(yt=L(xe),typeof yt!="function")throw Error(o(150));return xe=yt.call(xe),At(ye,fe,xe,$e)}if(typeof xe.then=="function")return Pr(ye,fe,v_(xe),$e);if(xe.$$typeof===_)return Pr(ye,fe,m_(ye,xe),$e);x_(ye,xe)}return typeof xe=="string"&&xe!==""||typeof xe=="number"||typeof xe=="bigint"?(xe=""+xe,fe!==null&&fe.tag===6?(v(ye,fe.sibling),$e=$(fe,xe),$e.return=ye,ye=$e):(v(ye,fe),$e=aM(xe,ye.mode,$e),$e.return=ye,ye=$e),X(ye)):v(ye,fe)}return function(ye,fe,xe,$e){try{fv=0;var yt=Pr(ye,fe,xe,$e);return Xg=null,yt}catch(pt){if(pt===Gg||pt===y_)throw pt;var mr=ti(29,pt,null,ye.mode);return mr.lanes=$e,mr.return=ye,mr}finally{}}}var Uh=Lfe(!0),Bfe=Lfe(!1),vu=!1;function bM(p){p.updateQueue={baseState:p.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function vM(p,m){p=p.updateQueue,m.updateQueue===p&&(m.updateQueue={baseState:p.baseState,firstBaseUpdate:p.firstBaseUpdate,lastBaseUpdate:p.lastBaseUpdate,shared:p.shared,callbacks:null})}function xu(p){return{lane:p,tag:0,payload:null,callback:null,next:null}}function wu(p,m,v){var S=p.updateQueue;if(S===null)return null;if(S=S.shared,(wr&2)!==0){var $=S.pending;return $===null?m.next=m:(m.next=$.next,$.next=m),S.pending=m,m=u_(p),_fe(p,null,v),m}return d_(p,S,m,v),u_(p)}function gv(p,m,v){if(m=m.updateQueue,m!==null&&(m=m.shared,(v&4194048)!==0)){var S=m.lanes;S&=p.pendingLanes,v|=S,m.lanes=v,iu(p,v)}}function xM(p,m){var v=p.updateQueue,S=p.alternate;if(S!==null&&(S=S.updateQueue,v===S)){var $=null,z=null;if(v=v.firstBaseUpdate,v!==null){do{var X={lane:v.lane,tag:v.tag,payload:v.payload,callback:null,next:null};z===null?$=z=X:z=z.next=X,v=v.next}while(v!==null);z===null?$=z=m:z=z.next=m}else $=z=m;v={baseState:S.baseState,firstBaseUpdate:$,lastBaseUpdate:z,shared:S.shared,callbacks:S.callbacks},p.updateQueue=v;return}p=v.lastBaseUpdate,p===null?v.firstBaseUpdate=m:p.next=m,v.lastBaseUpdate=m}var wM=!1;function yv(){if(wM){var p=Yg;if(p!==null)throw p}}function bv(p,m,v,S){wM=!1;var $=p.updateQueue;vu=!1;var z=$.firstBaseUpdate,X=$.lastBaseUpdate,oe=$.shared.pending;if(oe!==null){$.shared.pending=null;var pe=oe,we=pe.next;pe.next=null,X===null?z=we:X.next=we,X=pe;var Ne=p.alternate;Ne!==null&&(Ne=Ne.updateQueue,oe=Ne.lastBaseUpdate,oe!==X&&(oe===null?Ne.firstBaseUpdate=we:oe.next=we,Ne.lastBaseUpdate=pe))}if(z!==null){var Me=$.baseState;X=0,Ne=we=pe=null,oe=z;do{var ke=oe.lane&-536870913,Ce=ke!==oe.lane;if(Ce?(rr&ke)===ke:(S&ke)===ke){ke!==0&&ke===Wg&&(wM=!0),Ne!==null&&(Ne=Ne.next={lane:0,tag:oe.tag,payload:oe.payload,callback:null,next:null});e:{var st=p,At=oe;ke=m;var Pr=v;switch(At.tag){case 1:if(st=At.payload,typeof st=="function"){Me=st.call(Pr,Me,ke);break e}Me=st;break e;case 3:st.flags=st.flags&-65537|128;case 0:if(st=At.payload,ke=typeof st=="function"?st.call(Pr,Me,ke):st,ke==null)break e;Me=h({},Me,ke);break e;case 2:vu=!0}}ke=oe.callback,ke!==null&&(p.flags|=64,Ce&&(p.flags|=8192),Ce=$.callbacks,Ce===null?$.callbacks=[ke]:Ce.push(ke))}else Ce={lane:ke,tag:oe.tag,payload:oe.payload,callback:oe.callback,next:null},Ne===null?(we=Ne=Ce,pe=Me):Ne=Ne.next=Ce,X|=ke;if(oe=oe.next,oe===null){if(oe=$.shared.pending,oe===null)break;Ce=oe,oe=Ce.next,Ce.next=null,$.lastBaseUpdate=Ce,$.shared.pending=null}}while(!0);Ne===null&&(pe=Me),$.baseState=pe,$.firstBaseUpdate=we,$.lastBaseUpdate=Ne,z===null&&($.shared.lanes=0),Cu|=X,p.lanes=X,p.memoizedState=Me}}function Ffe(p,m){if(typeof p!="function")throw Error(o(191,p));p.call(m)}function Hfe(p,m){var v=p.callbacks;if(v!==null)for(p.callbacks=null,p=0;pz?z:8;var X=I.T,oe={};I.T=oe,BM(p,!1,m,v);try{var pe=$(),we=I.S;if(we!==null&&we(oe,pe),pe!==null&&typeof pe=="object"&&typeof pe.then=="function"){var Ne=Mwt(pe,S);wv(p,m,Ne,ii(p))}else wv(p,m,S,ii(p))}catch(Me){wv(p,m,{then:function(){},status:"rejected",reason:Me},ii())}finally{H.p=z,X!==null&&oe.types!==null&&(X.types=oe.types),I.T=X}}function Bwt(){}function jM(p,m,v,S){if(p.tag!==5)throw Error(o(476));var $=xme(p).queue;vme(p,$,m,q,v===null?Bwt:function(){return wme(p),v(S)})}function xme(p){var m=p.memoizedState;if(m!==null)return m;m={memoizedState:q,baseState:q,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Zc,lastRenderedState:q},next:null};var v={};return m.next={memoizedState:v,baseState:v,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Zc,lastRenderedState:v},next:null},p.memoizedState=m,p=p.alternate,p!==null&&(p.memoizedState=m),m}function wme(p){var m=xme(p);m.next===null&&(m=p.alternate.memoizedState),wv(p,m.next.queue,{},ii())}function LM(){return To(jv)}function kme(){return Rn().memoizedState}function _me(){return Rn().memoizedState}function Fwt(p){for(var m=p.return;m!==null;){switch(m.tag){case 24:case 3:var v=ii();p=xu(v);var S=wu(m,p,v);S!==null&&(Aa(S,m,v),gv(S,m,v)),m={cache:fM()},p.payload=m;return}m=m.return}}function Hwt(p,m,v){var S=ii();v={lane:S,revertLane:0,gesture:null,action:v,hasEagerState:!1,eagerState:null,next:null},N_(p)?Sme(m,v):(v=nM(p,m,v,S),v!==null&&(Aa(v,p,S),Cme(v,m,S)))}function Eme(p,m,v){var S=ii();wv(p,m,v,S)}function wv(p,m,v,S){var $={lane:S,revertLane:0,gesture:null,action:v,hasEagerState:!1,eagerState:null,next:null};if(N_(p))Sme(m,$);else{var z=p.alternate;if(p.lanes===0&&(z===null||z.lanes===0)&&(z=m.lastRenderedReducer,z!==null))try{var X=m.lastRenderedState,oe=z(X,v);if($.hasEagerState=!0,$.eagerState=oe,ei(oe,X))return d_(p,m,$,0),Or===null&&c_(),!1}catch{}finally{}if(v=nM(p,m,$,S),v!==null)return Aa(v,p,S),Cme(v,m,S),!0}return!1}function BM(p,m,v,S){if(S={lane:2,revertLane:bz(),gesture:null,action:S,hasEagerState:!1,eagerState:null,next:null},N_(p)){if(m)throw Error(o(479))}else m=nM(p,v,S,2),m!==null&&Aa(m,p,2)}function N_(p){var m=p.alternate;return p===Ut||m!==null&&m===Ut}function Sme(p,m){Zg=__=!0;var v=p.pending;v===null?m.next=m:(m.next=v.next,v.next=m),p.pending=m}function Cme(p,m,v){if((v&4194048)!==0){var S=m.lanes;S&=p.pendingLanes,v|=S,m.lanes=v,iu(p,v)}}var kv={readContext:To,use:C_,useCallback:xn,useContext:xn,useEffect:xn,useImperativeHandle:xn,useLayoutEffect:xn,useInsertionEffect:xn,useMemo:xn,useReducer:xn,useRef:xn,useState:xn,useDebugValue:xn,useDeferredValue:xn,useTransition:xn,useSyncExternalStore:xn,useId:xn,useHostTransitionStatus:xn,useFormState:xn,useActionState:xn,useOptimistic:xn,useMemoCache:xn,useCacheRefresh:xn};kv.useEffectEvent=xn;var Tme={readContext:To,use:C_,useCallback:function(p,m){return na().memoizedState=[p,m===void 0?null:m],p},useContext:To,useEffect:dme,useImperativeHandle:function(p,m,v){v=v!=null?v.concat([p]):null,A_(4194308,4,fme.bind(null,m,p),v)},useLayoutEffect:function(p,m){return A_(4194308,4,p,m)},useInsertionEffect:function(p,m){A_(4,2,p,m)},useMemo:function(p,m){var v=na();m=m===void 0?null:m;var S=p();if(Wh){dn(!0);try{p()}finally{dn(!1)}}return v.memoizedState=[S,m],S},useReducer:function(p,m,v){var S=na();if(v!==void 0){var $=v(m);if(Wh){dn(!0);try{v(m)}finally{dn(!1)}}}else $=m;return S.memoizedState=S.baseState=$,p={pending:null,lanes:0,dispatch:null,lastRenderedReducer:p,lastRenderedState:$},S.queue=p,p=p.dispatch=Hwt.bind(null,Ut,p),[S.memoizedState,p]},useRef:function(p){var m=na();return p={current:p},m.memoizedState=p},useState:function(p){p=PM(p);var m=p.queue,v=Eme.bind(null,Ut,m);return m.dispatch=v,[p.memoizedState,v]},useDebugValue:IM,useDeferredValue:function(p,m){var v=na();return OM(v,p,m)},useTransition:function(){var p=PM(!1);return p=vme.bind(null,Ut,p.queue,!0,!1),na().memoizedState=p,[!1,p]},useSyncExternalStore:function(p,m,v){var S=Ut,$=na();if(sr){if(v===void 0)throw Error(o(407));v=v()}else{if(v=m(),Or===null)throw Error(o(349));(rr&127)!==0||Gfe(S,m,v)}$.memoizedState=v;var z={value:v,getSnapshot:m};return $.queue=z,dme(Kfe.bind(null,S,z,p),[p]),S.flags|=2048,Jg(9,{destroy:void 0},Xfe.bind(null,S,z,v,m),null),v},useId:function(){var p=na(),m=Or.identifierPrefix;if(sr){var v=Yl,S=Wl;v=(S&~(1<<32-ir(S)-1)).toString(32)+v,m="_"+m+"R_"+v,v=E_++,0<\/script>",z=z.removeChild(z.firstChild);break;case"select":z=typeof S.is=="string"?X.createElement("select",{is:S.is}):X.createElement("select"),S.multiple?z.multiple=!0:S.size&&(z.size=S.size);break;default:z=typeof S.is=="string"?X.createElement($,{is:S.is}):X.createElement($)}}z[Wr]=m,z[Vn]=S;e:for(X=m.child;X!==null;){if(X.tag===5||X.tag===6)z.appendChild(X.stateNode);else if(X.tag!==4&&X.tag!==27&&X.child!==null){X.child.return=X,X=X.child;continue}if(X===m)break e;for(;X.sibling===null;){if(X.return===null||X.return===m)break e;X=X.return}X.sibling.return=X.return,X=X.sibling}m.stateNode=z;e:switch(Ro(z,$,S),$){case"button":case"input":case"select":case"textarea":S=!!S.autoFocus;break e;case"img":S=!0;break e;default:S=!1}S&&Jc(m)}}return Gr(m),ez(m,m.type,p===null?null:p.memoizedProps,m.pendingProps,v),null;case 6:if(p&&m.stateNode!=null)p.memoizedProps!==S&&Jc(m);else{if(typeof S!="string"&&m.stateNode===null)throw Error(o(166));if(p=J.current,qg(m)){if(p=m.stateNode,v=m.memoizedProps,S=null,$=Co,$!==null)switch($.tag){case 27:case 5:S=$.memoizedProps}p[Wr]=m,p=!!(p.nodeValue===v||S!==null&&S.suppressHydrationWarning===!0||Wge(p.nodeValue,v)),p||yu(m,!0)}else p=K_(p).createTextNode(S),p[Wr]=m,m.stateNode=p}return Gr(m),null;case 31:if(v=m.memoizedState,p===null||p.memoizedState!==null){if(S=qg(m),v!==null){if(p===null){if(!S)throw Error(o(318));if(p=m.memoizedState,p=p!==null?p.dehydrated:null,!p)throw Error(o(557));p[Wr]=m}else Lh(),(m.flags&128)===0&&(m.memoizedState=null),m.flags|=4;Gr(m),p=!1}else v=dM(),p!==null&&p.memoizedState!==null&&(p.memoizedState.hydrationErrors=v),p=!0;if(!p)return m.flags&256?(ni(m),m):(ni(m),null);if((m.flags&128)!==0)throw Error(o(558))}return Gr(m),null;case 13:if(S=m.memoizedState,p===null||p.memoizedState!==null&&p.memoizedState.dehydrated!==null){if($=qg(m),S!==null&&S.dehydrated!==null){if(p===null){if(!$)throw Error(o(318));if($=m.memoizedState,$=$!==null?$.dehydrated:null,!$)throw Error(o(317));$[Wr]=m}else Lh(),(m.flags&128)===0&&(m.memoizedState=null),m.flags|=4;Gr(m),$=!1}else $=dM(),p!==null&&p.memoizedState!==null&&(p.memoizedState.hydrationErrors=$),$=!0;if(!$)return m.flags&256?(ni(m),m):(ni(m),null)}return ni(m),(m.flags&128)!==0?(m.lanes=v,m):(v=S!==null,p=p!==null&&p.memoizedState!==null,v&&(S=m.child,$=null,S.alternate!==null&&S.alternate.memoizedState!==null&&S.alternate.memoizedState.cachePool!==null&&($=S.alternate.memoizedState.cachePool.pool),z=null,S.memoizedState!==null&&S.memoizedState.cachePool!==null&&(z=S.memoizedState.cachePool.pool),z!==$&&(S.flags|=2048)),v!==p&&v&&(m.child.flags|=8192),z_(m,m.updateQueue),Gr(m),null);case 4:return re(),p===null&&kz(m.stateNode.containerInfo),Gr(m),null;case 10:return Xc(m.type),Gr(m),null;case 19:if(K(An),S=m.memoizedState,S===null)return Gr(m),null;if($=(m.flags&128)!==0,z=S.rendering,z===null)if($)Ev(S,!1);else{if(wn!==0||p!==null&&(p.flags&128)!==0)for(p=m.child;p!==null;){if(z=k_(p),z!==null){for(m.flags|=128,Ev(S,!1),p=z.updateQueue,m.updateQueue=p,z_(m,p),m.subtreeFlags=0,p=v,v=m.child;v!==null;)Efe(v,p),v=v.sibling;return j(An,An.current&1|2),sr&&Yc(m,S.treeForkCount),m.child}p=p.sibling}S.tail!==null&&dt()>B_&&(m.flags|=128,$=!0,Ev(S,!1),m.lanes=4194304)}else{if(!$)if(p=k_(z),p!==null){if(m.flags|=128,$=!0,p=p.updateQueue,m.updateQueue=p,z_(m,p),Ev(S,!0),S.tail===null&&S.tailMode==="hidden"&&!z.alternate&&!sr)return Gr(m),null}else 2*dt()-S.renderingStartTime>B_&&v!==536870912&&(m.flags|=128,$=!0,Ev(S,!1),m.lanes=4194304);S.isBackwards?(z.sibling=m.child,m.child=z):(p=S.last,p!==null?p.sibling=z:m.child=z,S.last=z)}return S.tail!==null?(p=S.tail,S.rendering=p,S.tail=p.sibling,S.renderingStartTime=dt(),p.sibling=null,v=An.current,j(An,$?v&1|2:v&1),sr&&Yc(m,S.treeForkCount),p):(Gr(m),null);case 22:case 23:return ni(m),_M(),S=m.memoizedState!==null,p!==null?p.memoizedState!==null!==S&&(m.flags|=8192):S&&(m.flags|=8192),S?(v&536870912)!==0&&(m.flags&128)===0&&(Gr(m),m.subtreeFlags&6&&(m.flags|=8192)):Gr(m),v=m.updateQueue,v!==null&&z_(m,v.retryQueue),v=null,p!==null&&p.memoizedState!==null&&p.memoizedState.cachePool!==null&&(v=p.memoizedState.cachePool.pool),S=null,m.memoizedState!==null&&m.memoizedState.cachePool!==null&&(S=m.memoizedState.cachePool.pool),S!==v&&(m.flags|=2048),p!==null&&K(Hh),null;case 24:return v=null,p!==null&&(v=p.memoizedState.cache),m.memoizedState.cache!==v&&(m.flags|=2048),Xc(qn),Gr(m),null;case 25:return null;case 30:return null}throw Error(o(156,m.tag))}function Ywt(p,m){switch(lM(m),m.tag){case 1:return p=m.flags,p&65536?(m.flags=p&-65537|128,m):null;case 3:return Xc(qn),re(),p=m.flags,(p&65536)!==0&&(p&128)===0?(m.flags=p&-65537|128,m):null;case 26:case 27:case 5:return De(m),null;case 31:if(m.memoizedState!==null){if(ni(m),m.alternate===null)throw Error(o(340));Lh()}return p=m.flags,p&65536?(m.flags=p&-65537|128,m):null;case 13:if(ni(m),p=m.memoizedState,p!==null&&p.dehydrated!==null){if(m.alternate===null)throw Error(o(340));Lh()}return p=m.flags,p&65536?(m.flags=p&-65537|128,m):null;case 19:return K(An),null;case 4:return re(),null;case 10:return Xc(m.type),null;case 22:case 23:return ni(m),_M(),p!==null&&K(Hh),p=m.flags,p&65536?(m.flags=p&-65537|128,m):null;case 24:return Xc(qn),null;case 25:return null;default:return null}}function Zme(p,m){switch(lM(m),m.tag){case 3:Xc(qn),re();break;case 26:case 27:case 5:De(m);break;case 4:re();break;case 31:m.memoizedState!==null&&ni(m);break;case 13:ni(m);break;case 19:K(An);break;case 10:Xc(m.type);break;case 22:case 23:ni(m),_M(),p!==null&&K(Hh);break;case 24:Xc(qn)}}function Sv(p,m){try{var v=m.updateQueue,S=v!==null?v.lastEffect:null;if(S!==null){var $=S.next;v=$;do{if((v.tag&p)===p){S=void 0;var z=v.create,X=v.inst;S=z(),X.destroy=S}v=v.next}while(v!==$)}}catch(oe){Cr(m,m.return,oe)}}function Eu(p,m,v){try{var S=m.updateQueue,$=S!==null?S.lastEffect:null;if($!==null){var z=$.next;S=z;do{if((S.tag&p)===p){var X=S.inst,oe=X.destroy;if(oe!==void 0){X.destroy=void 0,$=m;var pe=v,we=oe;try{we()}catch(Ne){Cr($,pe,Ne)}}}S=S.next}while(S!==z)}}catch(Ne){Cr(m,m.return,Ne)}}function Qme(p){var m=p.updateQueue;if(m!==null){var v=p.stateNode;try{Hfe(m,v)}catch(S){Cr(p,p.return,S)}}}function Jme(p,m,v){v.props=Yh(p.type,p.memoizedProps),v.state=p.memoizedState;try{v.componentWillUnmount()}catch(S){Cr(p,m,S)}}function Cv(p,m){try{var v=p.ref;if(v!==null){switch(p.tag){case 26:case 27:case 5:var S=p.stateNode;break;case 30:S=p.stateNode;break;default:S=p.stateNode}typeof v=="function"?p.refCleanup=v(S):v.current=S}}catch($){Cr(p,m,$)}}function Gl(p,m){var v=p.ref,S=p.refCleanup;if(v!==null)if(typeof S=="function")try{S()}catch($){Cr(p,m,$)}finally{p.refCleanup=null,p=p.alternate,p!=null&&(p.refCleanup=null)}else if(typeof v=="function")try{v(null)}catch($){Cr(p,m,$)}else v.current=null}function ege(p){var m=p.type,v=p.memoizedProps,S=p.stateNode;try{e:switch(m){case"button":case"input":case"select":case"textarea":v.autoFocus&&S.focus();break e;case"img":v.src?S.src=v.src:v.srcSet&&(S.srcset=v.srcSet)}}catch($){Cr(p,p.return,$)}}function tz(p,m,v){try{var S=p.stateNode;m4t(S,p.type,v,m),S[Vn]=m}catch($){Cr(p,p.return,$)}}function tge(p){return p.tag===5||p.tag===3||p.tag===26||p.tag===27&&Du(p.type)||p.tag===4}function rz(p){e:for(;;){for(;p.sibling===null;){if(p.return===null||tge(p.return))return null;p=p.return}for(p.sibling.return=p.return,p=p.sibling;p.tag!==5&&p.tag!==6&&p.tag!==18;){if(p.tag===27&&Du(p.type)||p.flags&2||p.child===null||p.tag===4)continue e;p.child.return=p,p=p.child}if(!(p.flags&2))return p.stateNode}}function nz(p,m,v){var S=p.tag;if(S===5||S===6)p=p.stateNode,m?(v.nodeType===9?v.body:v.nodeName==="HTML"?v.ownerDocument.body:v).insertBefore(p,m):(m=v.nodeType===9?v.body:v.nodeName==="HTML"?v.ownerDocument.body:v,m.appendChild(p),v=v._reactRootContainer,v!=null||m.onclick!==null||(m.onclick=Gt));else if(S!==4&&(S===27&&Du(p.type)&&(v=p.stateNode,m=null),p=p.child,p!==null))for(nz(p,m,v),p=p.sibling;p!==null;)nz(p,m,v),p=p.sibling}function I_(p,m,v){var S=p.tag;if(S===5||S===6)p=p.stateNode,m?v.insertBefore(p,m):v.appendChild(p);else if(S!==4&&(S===27&&Du(p.type)&&(v=p.stateNode),p=p.child,p!==null))for(I_(p,m,v),p=p.sibling;p!==null;)I_(p,m,v),p=p.sibling}function rge(p){var m=p.stateNode,v=p.memoizedProps;try{for(var S=p.type,$=m.attributes;$.length;)m.removeAttributeNode($[0]);Ro(m,S,v),m[Wr]=p,m[Vn]=v}catch(z){Cr(p,p.return,z)}}var ed=!1,Yn=!1,oz=!1,nge=typeof WeakSet=="function"?WeakSet:Set,mo=null;function Gwt(p,m){if(p=p.containerInfo,Sz=n6,p=mfe(p),ZP(p)){if("selectionStart"in p)var v={start:p.selectionStart,end:p.selectionEnd};else e:{v=(v=p.ownerDocument)&&v.defaultView||window;var S=v.getSelection&&v.getSelection();if(S&&S.rangeCount!==0){v=S.anchorNode;var $=S.anchorOffset,z=S.focusNode;S=S.focusOffset;try{v.nodeType,z.nodeType}catch{v=null;break e}var X=0,oe=-1,pe=-1,we=0,Ne=0,Me=p,ke=null;t:for(;;){for(var Ce;Me!==v||$!==0&&Me.nodeType!==3||(oe=X+$),Me!==z||S!==0&&Me.nodeType!==3||(pe=X+S),Me.nodeType===3&&(X+=Me.nodeValue.length),(Ce=Me.firstChild)!==null;)ke=Me,Me=Ce;for(;;){if(Me===p)break t;if(ke===v&&++we===$&&(oe=X),ke===z&&++Ne===S&&(pe=X),(Ce=Me.nextSibling)!==null)break;Me=ke,ke=Me.parentNode}Me=Ce}v=oe===-1||pe===-1?null:{start:oe,end:pe}}else v=null}v=v||{start:0,end:0}}else v=null;for(Cz={focusedElem:p,selectionRange:v},n6=!1,mo=m;mo!==null;)if(m=mo,p=m.child,(m.subtreeFlags&1028)!==0&&p!==null)p.return=m,mo=p;else for(;mo!==null;){switch(m=mo,z=m.alternate,p=m.flags,m.tag){case 0:if((p&4)!==0&&(p=m.updateQueue,p=p!==null?p.events:null,p!==null))for(v=0;v title"))),Ro(z,S,v),z[Wr]=p,rn(z),S=z;break e;case"link":var X=c1e("link","href",$).get(S+(v.href||""));if(X){for(var oe=0;oePr&&(X=Pr,Pr=At,At=X);var ye=hfe(oe,At),fe=hfe(oe,Pr);if(ye&&fe&&(Ce.rangeCount!==1||Ce.anchorNode!==ye.node||Ce.anchorOffset!==ye.offset||Ce.focusNode!==fe.node||Ce.focusOffset!==fe.offset)){var xe=Me.createRange();xe.setStart(ye.node,ye.offset),Ce.removeAllRanges(),At>Pr?(Ce.addRange(xe),Ce.extend(fe.node,fe.offset)):(xe.setEnd(fe.node,fe.offset),Ce.addRange(xe))}}}}for(Me=[],Ce=oe;Ce=Ce.parentNode;)Ce.nodeType===1&&Me.push({element:Ce,left:Ce.scrollLeft,top:Ce.scrollTop});for(typeof oe.focus=="function"&&oe.focus(),oe=0;oev?32:v,I.T=null,v=uz,uz=null;var z=Au,X=ad;if(eo=0,o1=Au=null,ad=0,(wr&6)!==0)throw Error(o(331));var oe=wr;if(wr|=4,fge(z.current),uge(z,z.current,X,v),wr=oe,$v(0,!1),fr&&typeof fr.onPostCommitFiberRoot=="function")try{fr.onPostCommitFiberRoot(vr,z)}catch{}return!0}finally{H.p=$,I.T=S,$ge(p,m)}}function Mge(p,m,v){m=Vi(v,m),m=qM(p.stateNode,m,2),p=wu(p,m,2),p!==null&&(Ks(p,2),Xl(p))}function Cr(p,m,v){if(p.tag===3)Mge(p,p,v);else for(;m!==null;){if(m.tag===3){Mge(m,p,v);break}else if(m.tag===1){var S=m.stateNode;if(typeof m.type.getDerivedStateFromError=="function"||typeof S.componentDidCatch=="function"&&(Tu===null||!Tu.has(S))){p=Vi(v,p),v=zme(2),S=wu(m,v,2),S!==null&&(Ime(v,S,m,p),Ks(S,2),Xl(S));break}}m=m.return}}function mz(p,m,v){var S=p.pingCache;if(S===null){S=p.pingCache=new Zwt;var $=new Set;S.set(m,$)}else $=S.get(m),$===void 0&&($=new Set,S.set(m,$));$.has(v)||(sz=!0,$.add(v),p=r4t.bind(null,p,m,v),m.then(p,p))}function r4t(p,m,v){var S=p.pingCache;S!==null&&S.delete(m),p.pingedLanes|=p.suspendedLanes&v,p.warmLanes&=~v,Or===p&&(rr&v)===v&&(wn===4||wn===3&&(rr&62914560)===rr&&300>dt()-L_?(wr&2)===0&&a1(p,0):lz|=v,n1===rr&&(n1=0)),Xl(p)}function zge(p,m){m===0&&(m=jl()),p=Oh(p,m),p!==null&&(Ks(p,m),Xl(p))}function n4t(p){var m=p.memoizedState,v=0;m!==null&&(v=m.retryLane),zge(p,v)}function o4t(p,m){var v=0;switch(p.tag){case 31:case 13:var S=p.stateNode,$=p.memoizedState;$!==null&&(v=$.retryLane);break;case 19:S=p.stateNode;break;case 22:S=p.stateNode._retryCache;break;default:throw Error(o(314))}S!==null&&S.delete(m),zge(p,v)}function a4t(p,m){return Mt(p,m)}var W_=null,s1=null,gz=!1,Y_=!1,yz=!1,Nu=0;function Xl(p){p!==s1&&p.next===null&&(s1===null?W_=s1=p:s1=s1.next=p),Y_=!0,gz||(gz=!0,s4t())}function $v(p,m){if(!yz&&Y_){yz=!0;do for(var v=!1,S=W_;S!==null;){if(p!==0){var $=S.pendingLanes;if($===0)var z=0;else{var X=S.suspendedLanes,oe=S.pingedLanes;z=(1<<31-ir(42|p)+1)-1,z&=$&~(X&~oe),z=z&201326741?z&201326741|1:z?z|2:0}z!==0&&(v=!0,Lge(S,z))}else z=rr,z=Xs(S,S===Or?z:0,S.cancelPendingCommit!==null||S.timeoutHandle!==-1),(z&3)===0||fo(S,z)||(v=!0,Lge(S,z));S=S.next}while(v);yz=!1}}function i4t(){Ige()}function Ige(){Y_=gz=!1;var p=0;Nu!==0&&y4t()&&(p=Nu);for(var m=dt(),v=null,S=W_;S!==null;){var $=S.next,z=Oge(S,m);z===0?(S.next=null,v===null?W_=$:v.next=$,$===null&&(s1=v)):(v=S,(p!==0||(z&3)!==0)&&(Y_=!0)),S=$}eo!==0&&eo!==5||$v(p),Nu!==0&&(Nu=0)}function Oge(p,m){for(var v=p.suspendedLanes,S=p.pingedLanes,$=p.expirationTimes,z=p.pendingLanes&-62914561;0oe)break;var Ne=pe.transferSize,Me=pe.initiatorType;Ne&&Yge(Me)&&(pe=pe.responseEnd,X+=Ne*(pe"u"?null:document;function a1e(p,m,v){var S=l1;if(S&&typeof m=="string"&&m){var $=ee(m);$='link[rel="'+p+'"][href="'+$+'"]',typeof v=="string"&&($+='[crossorigin="'+v+'"]'),o1e.has($)||(o1e.add($),p={rel:p,crossOrigin:v,href:m},S.querySelector($)===null&&(m=S.createElement("link"),Ro(m,"link",p),rn(m),S.head.appendChild(m)))}}function C4t(p){id.D(p),a1e("dns-prefetch",p,null)}function T4t(p,m){id.C(p,m),a1e("preconnect",p,m)}function A4t(p,m,v){id.L(p,m,v);var S=l1;if(S&&p&&m){var $='link[rel="preload"][as="'+ee(m)+'"]';m==="image"&&v&&v.imageSrcSet?($+='[imagesrcset="'+ee(v.imageSrcSet)+'"]',typeof v.imageSizes=="string"&&($+='[imagesizes="'+ee(v.imageSizes)+'"]')):$+='[href="'+ee(p)+'"]';var z=$;switch(m){case"style":z=c1(p);break;case"script":z=d1(p)}Xi.has(z)||(p=h({rel:"preload",href:m==="image"&&v&&v.imageSrcSet?void 0:p,as:m},v),Xi.set(z,p),S.querySelector($)!==null||m==="style"&&S.querySelector(Iv(z))||m==="script"&&S.querySelector(Ov(z))||(m=S.createElement("link"),Ro(m,"link",p),rn(m),S.head.appendChild(m)))}}function R4t(p,m){id.m(p,m);var v=l1;if(v&&p){var S=m&&typeof m.as=="string"?m.as:"script",$='link[rel="modulepreload"][as="'+ee(S)+'"][href="'+ee(p)+'"]',z=$;switch(S){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":z=d1(p)}if(!Xi.has(z)&&(p=h({rel:"modulepreload",href:p},m),Xi.set(z,p),v.querySelector($)===null)){switch(S){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(v.querySelector(Ov(z)))return}S=v.createElement("link"),Ro(S,"link",p),rn(S),v.head.appendChild(S)}}}function N4t(p,m,v){id.S(p,m,v);var S=l1;if(S&&p){var $=So(S).hoistableStyles,z=c1(p);m=m||"default";var X=$.get(z);if(!X){var oe={loading:0,preload:null};if(X=S.querySelector(Iv(z)))oe.loading=5;else{p=h({rel:"stylesheet",href:p,"data-precedence":m},v),(v=Xi.get(z))&&Pz(p,v);var pe=X=S.createElement("link");rn(pe),Ro(pe,"link",p),pe._p=new Promise(function(we,Ne){pe.onload=we,pe.onerror=Ne}),pe.addEventListener("load",function(){oe.loading|=1}),pe.addEventListener("error",function(){oe.loading|=2}),oe.loading|=4,Q_(X,m,S)}X={type:"stylesheet",instance:X,count:1,state:oe},$.set(z,X)}}}function D4t(p,m){id.X(p,m);var v=l1;if(v&&p){var S=So(v).hoistableScripts,$=d1(p),z=S.get($);z||(z=v.querySelector(Ov($)),z||(p=h({src:p,async:!0},m),(m=Xi.get($))&&Mz(p,m),z=v.createElement("script"),rn(z),Ro(z,"link",p),v.head.appendChild(z)),z={type:"script",instance:z,count:1,state:null},S.set($,z))}}function $4t(p,m){id.M(p,m);var v=l1;if(v&&p){var S=So(v).hoistableScripts,$=d1(p),z=S.get($);z||(z=v.querySelector(Ov($)),z||(p=h({src:p,async:!0,type:"module"},m),(m=Xi.get($))&&Mz(p,m),z=v.createElement("script"),rn(z),Ro(z,"link",p),v.head.appendChild(z)),z={type:"script",instance:z,count:1,state:null},S.set($,z))}}function i1e(p,m,v,S){var $=($=J.current)?Z_($):null;if(!$)throw Error(o(446));switch(p){case"meta":case"title":return null;case"style":return typeof v.precedence=="string"&&typeof v.href=="string"?(m=c1(v.href),v=So($).hoistableStyles,S=v.get(m),S||(S={type:"style",instance:null,count:0,state:null},v.set(m,S)),S):{type:"void",instance:null,count:0,state:null};case"link":if(v.rel==="stylesheet"&&typeof v.href=="string"&&typeof v.precedence=="string"){p=c1(v.href);var z=So($).hoistableStyles,X=z.get(p);if(X||($=$.ownerDocument||$,X={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},z.set(p,X),(z=$.querySelector(Iv(p)))&&!z._p&&(X.instance=z,X.state.loading=5),Xi.has(p)||(v={rel:"preload",as:"style",href:v.href,crossOrigin:v.crossOrigin,integrity:v.integrity,media:v.media,hrefLang:v.hrefLang,referrerPolicy:v.referrerPolicy},Xi.set(p,v),z||P4t($,p,v,X.state))),m&&S===null)throw Error(o(528,""));return X}if(m&&S!==null)throw Error(o(529,""));return null;case"script":return m=v.async,v=v.src,typeof v=="string"&&m&&typeof m!="function"&&typeof m!="symbol"?(m=d1(v),v=So($).hoistableScripts,S=v.get(m),S||(S={type:"script",instance:null,count:0,state:null},v.set(m,S)),S):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,p))}}function c1(p){return'href="'+ee(p)+'"'}function Iv(p){return'link[rel="stylesheet"]['+p+"]"}function s1e(p){return h({},p,{"data-precedence":p.precedence,precedence:null})}function P4t(p,m,v,S){p.querySelector('link[rel="preload"][as="style"]['+m+"]")?S.loading=1:(m=p.createElement("link"),S.preload=m,m.addEventListener("load",function(){return S.loading|=1}),m.addEventListener("error",function(){return S.loading|=2}),Ro(m,"link",v),rn(m),p.head.appendChild(m))}function d1(p){return'[src="'+ee(p)+'"]'}function Ov(p){return"script[async]"+p}function l1e(p,m,v){if(m.count++,m.instance===null)switch(m.type){case"style":var S=p.querySelector('style[data-href~="'+ee(v.href)+'"]');if(S)return m.instance=S,rn(S),S;var $=h({},v,{"data-href":v.href,"data-precedence":v.precedence,href:null,precedence:null});return S=(p.ownerDocument||p).createElement("style"),rn(S),Ro(S,"style",$),Q_(S,v.precedence,p),m.instance=S;case"stylesheet":$=c1(v.href);var z=p.querySelector(Iv($));if(z)return m.state.loading|=4,m.instance=z,rn(z),z;S=s1e(v),($=Xi.get($))&&Pz(S,$),z=(p.ownerDocument||p).createElement("link"),rn(z);var X=z;return X._p=new Promise(function(oe,pe){X.onload=oe,X.onerror=pe}),Ro(z,"link",S),m.state.loading|=4,Q_(z,v.precedence,p),m.instance=z;case"script":return z=d1(v.src),($=p.querySelector(Ov(z)))?(m.instance=$,rn($),$):(S=v,($=Xi.get(z))&&(S=h({},v),Mz(S,$)),p=p.ownerDocument||p,$=p.createElement("script"),rn($),Ro($,"link",S),p.head.appendChild($),m.instance=$);case"void":return null;default:throw Error(o(443,m.type))}else m.type==="stylesheet"&&(m.state.loading&4)===0&&(S=m.instance,m.state.loading|=4,Q_(S,v.precedence,p));return m.instance}function Q_(p,m,v){for(var S=v.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),$=S.length?S[S.length-1]:null,z=$,X=0;X title"):null)}function M4t(p,m,v){if(v===1||m.itemProp!=null)return!1;switch(p){case"meta":case"title":return!0;case"style":if(typeof m.precedence!="string"||typeof m.href!="string"||m.href==="")break;return!0;case"link":if(typeof m.rel!="string"||typeof m.href!="string"||m.href===""||m.onLoad||m.onError)break;switch(m.rel){case"stylesheet":return p=m.disabled,typeof m.precedence=="string"&&p==null;default:return!0}case"script":if(m.async&&typeof m.async!="function"&&typeof m.async!="symbol"&&!m.onLoad&&!m.onError&&m.src&&typeof m.src=="string")return!0}return!1}function u1e(p){return!(p.type==="stylesheet"&&(p.state.loading&3)===0)}function z4t(p,m,v,S){if(v.type==="stylesheet"&&(typeof S.media!="string"||matchMedia(S.media).matches!==!1)&&(v.state.loading&4)===0){if(v.instance===null){var $=c1(S.href),z=m.querySelector(Iv($));if(z){m=z._p,m!==null&&typeof m=="object"&&typeof m.then=="function"&&(p.count++,p=e6.bind(p),m.then(p,p)),v.state.loading|=4,v.instance=z,rn(z);return}z=m.ownerDocument||m,S=s1e(S),($=Xi.get($))&&Pz(S,$),z=z.createElement("link"),rn(z);var X=z;X._p=new Promise(function(oe,pe){X.onload=oe,X.onerror=pe}),Ro(z,"link",S),v.instance=z}p.stylesheets===null&&(p.stylesheets=new Map),p.stylesheets.set(v,m),(m=v.state.preload)&&(v.state.loading&3)===0&&(p.count++,v=e6.bind(p),m.addEventListener("load",v),m.addEventListener("error",v))}}var zz=0;function I4t(p,m){return p.stylesheets&&p.count===0&&r6(p,p.stylesheets),0zz?50:800)+m);return p.unsuspend=v,function(){p.unsuspend=null,clearTimeout(S),clearTimeout($)}}:null}function e6(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)r6(this,this.stylesheets);else if(this.unsuspend){var p=this.unsuspend;this.unsuspend=null,p()}}}var t6=null;function r6(p,m){p.stylesheets=null,p.unsuspend!==null&&(p.count++,t6=new Map,m.forEach(O4t,p),t6=null,e6.call(p))}function O4t(p,m){if(!(m.state.loading&4)){var v=t6.get(p);if(v)var S=v.get(null);else{v=new Map,t6.set(p,v);for(var $=p.querySelectorAll("link[data-precedence],style[data-precedence]"),z=0;z<$.length;z++){var X=$[z];(X.nodeName==="LINK"||X.getAttribute("media")!=="not all")&&(v.set(X.dataset.precedence,X),S=X)}S&&v.set(null,S)}$=m.instance,X=$.getAttribute("data-precedence"),z=v.get(X)||S,z===S&&v.set(null,$),v.set(X,$),this.count++,S=e6.bind(this),$.addEventListener("load",S),$.addEventListener("error",S),z?z.parentNode.insertBefore($,z.nextSibling):(p=p.nodeType===9?p.head:p,p.insertBefore($,p.firstChild)),m.state.loading|=4}}var jv={$$typeof:_,Provider:null,Consumer:null,_currentValue:q,_currentValue2:q,_threadCount:0};function j4t(p,m,v,S,$,z,X,oe,pe){this.tag=1,this.containerInfo=p,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Bc(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Bc(0),this.hiddenUpdates=Bc(null),this.identifierPrefix=S,this.onUncaughtError=$,this.onCaughtError=z,this.onRecoverableError=X,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=pe,this.incompleteTransitions=new Map}function p1e(p,m,v,S,$,z,X,oe,pe,we,Ne,Me){return p=new j4t(p,m,v,X,pe,we,Ne,Me,oe),m=1,z===!0&&(m|=24),z=ti(3,null,null,m),p.current=z,z.stateNode=p,m=fM(),m.refCount++,p.pooledCache=m,m.refCount++,z.memoizedState={element:S,isDehydrated:v,cache:m},bM(z),p}function h1e(p){return p?(p=Fg,p):Fg}function f1e(p,m,v,S,$,z){$=h1e($),S.context===null?S.context=$:S.pendingContext=$,S=xu(m),S.payload={element:v},z=z===void 0?null:z,z!==null&&(S.callback=z),v=wu(p,S,m),v!==null&&(Aa(v,p,m),gv(v,p,m))}function m1e(p,m){if(p=p.memoizedState,p!==null&&p.dehydrated!==null){var v=p.retryLane;p.retryLane=v!==0&&v"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(r){console.error(r)}}return e(),IR.exports=Ant(),IR.exports}var Nnt=Rnt();const Dnt={View:"likec4-view"};let LR="/";LR.endsWith("/")||(LR=LR+"/");var El=function(){return El=Object.assign||function(e){for(var r,n=1,o=arguments.length;n"u")return Gnt;var r=Xnt(e),n=document.documentElement.clientWidth,o=window.innerWidth;return{left:r[0],top:r[1],right:r[2],gap:Math.max(0,o-n+r[2]-r[0])}},Znt=Qne(),eg="data-scroll-locked",Qnt=function(e,r,n,o){var a=e.left,i=e.top,s=e.right,l=e.gap;return n===void 0&&(n="margin"),` - .`.concat(Pnt,` { +Optionally we will have a WebUI/API/CLI`},technology:"OTC",title:"OTC EDP Foundry Central Service clusters",id:"otc-edpFoundry"},edgeProvider:{style:{icon:"tech:terraform"},kind:"paas",description:{txt:"Unlocks the terraform ecosystem"},title:"Terraform Edge provider",id:"edgeProvider"},edgeProviderHost:{style:{},kind:"environment",title:"OTC",id:"edgeProviderHost"},edgeSdk:{style:{icon:"tech:go"},kind:"paas",description:{txt:"Wrapper around API"},technology:"Cloud Services",title:"Edge Cloud SDK",id:"edgeSdk"},edgeCloud:{style:{},kind:"environment",title:"Edge cloud",id:"edgeCloud"},"local.backstage":{style:{},kind:"namespace",title:"backstage",id:"local.backstage"},"local.argocd":{style:{},kind:"namespace",title:"argocd",id:"local.argocd"},"local.gitea":{style:{},kind:"namespace",title:"gitea",id:"local.gitea"},"local.keycloak":{style:{},kind:"namespace",title:"keycloak",id:"local.keycloak"},"local.crossplane":{style:{},kind:"namespace",title:"crossplane-system",id:"local.crossplane"},"local.externalSecrets":{style:{},kind:"namespace",title:"external-secrets",id:"local.externalSecrets"},"local.velero":{style:{},kind:"namespace",title:"velero",id:"local.velero"},"local.minio":{style:{},kind:"namespace",title:"minio-backup",id:"local.minio"},"local.monitoring":{style:{},kind:"namespace",title:"monitoring",id:"local.monitoring"},"local.ingressNginx":{style:{},kind:"namespace",title:"ingress-nginx",id:"local.ingressNginx"},"local.openbao":{style:{},kind:"namespace",title:"openbao",id:"local.openbao"},"local.fibonacci":{style:{},kind:"namespace",title:"fibonacci-app",id:"local.fibonacci"},"local.mailhog":{style:{},kind:"namespace",title:"mailhog",id:"local.mailhog"},"local.spark":{style:{},kind:"namespace",title:"spark",id:"local.spark"},"otc-edp-per-tenant.cce":{style:{icon:"tech:kubernetes"},kind:"kubernetes",description:{txt:"OTC Container Cluster Engine"},technology:"Kubernetes",title:"OTC CCE",id:"otc-edp-per-tenant.cce"},"otc-edp-per-tenant.cloudServices":{style:{},kind:"paas",description:{txt:"EDP Cloud Services"},technology:"Cloud Services",title:"EDP Cloud Services",id:"otc-edp-per-tenant.cloudServices"},"otc-edp-per-tenant.forgejoRunnerInfrastructure":{style:{},kind:"computeressource",description:{txt:"Infrastructure for Forgejo runners like pods, vms, lxds, etc"},title:"EDP ForgejoRunner infrastructure",id:"otc-edp-per-tenant.forgejoRunnerInfrastructure"},"otc-faas.dev":{style:{},kind:"environment",description:{txt:"*.t09.de"},technology:"OTC",title:"tenant Dev",id:"otc-faas.dev"},"otc-faas.prod":{style:{},kind:"environment",description:{txt:"*.buildth.ing"},technology:"OTC",title:"Tenant Prod",id:"otc-faas.prod"},"edge.edge-dev":{style:{},kind:"environment",description:{txt:"Edge development environment"},technology:"Edge",title:"Edge Dev",id:"edge.edge-dev"},"edge.edge-prod":{style:{},kind:"environment",description:{txt:"Edge production environment"},technology:"Edge",title:"Edge Prod",id:"edge.edge-prod"},"otc-edpFoundry.cce":{style:{icon:"tech:kubernetes"},kind:"kubernetes",description:{txt:"OTC Container Cluster Engine"},technology:"Kubernetes",title:"OTC CCE",id:"otc-edpFoundry.cce"},"otc-edpFoundry.workflowSetupEDPInfrastructure":{style:{},kind:"computeressource",description:{txt:"EDP infrastructure Workflow"},title:"EDP infrastructure Workflow",id:"otc-edpFoundry.workflowSetupEDPInfrastructure"},"otc-edpFoundry.workflowSetupArgoCDInfrastructure":{style:{},kind:"computeressource",description:{txt:"EDP Setup ArgoCD Workflow"},title:"EDP ArgoCD Workflow",id:"otc-edpFoundry.workflowSetupArgoCDInfrastructure"},"otc-edpFoundry.forgejoRunnerInfrastructure":{style:{},kind:"computeressource",description:{txt:"Infrastructure for Forgejo runners like pods, vms, lxds, etc"},title:"EDP ForgejoRunner infrastructure",id:"otc-edpFoundry.forgejoRunnerInfrastructure"},"edgeProviderHost.edp":{style:{icon:"tech:git"},kind:"cluster",title:"Forgejo for all EDP-tenants",id:"edgeProviderHost.edp"},"edgeProviderHost.terralist":{style:{icon:"tech:terraform"},kind:"paas",description:{txt:"Terraform provider private hosting"},technology:"Cloud Services",title:"Terralist",id:"edgeProviderHost.terralist"},"edgeCloud.edgeApi":{style:{icon:"tech:swagger"},kind:"paas",technology:"Edge Cloud (managed)",links:[{url:"https://swagger.edge.platform.mg3.mdb.osc.live",title:"Documentation"}],title:"Edge Cloud API",id:"edgeCloud.edgeApi"},"edgeCloud.edgeResources":{style:{},kind:"paas",description:{txt:"App, AppInstance, etc."},technology:"Edge Cloud (managed)",title:"Edge Cloud Resources",id:"edgeCloud.edgeResources"},"local.backstage.backstage":{id:"local.backstage.backstage",element:"edp.ui.backstage",style:{}},"local.backstage.database":{id:"local.backstage.database",element:"edp.ui.database",style:{}},"local.argocd.argocdAppController":{id:"local.argocd.argocdAppController",element:"edp.argoCD.argocdAppController",style:{}},"local.argocd.argocdAppSetController":{id:"local.argocd.argocdAppSetController",element:"edp.argoCD.argocdAppSetController",style:{}},"local.argocd.argocdRedis":{id:"local.argocd.argocdRedis",element:"edp.argoCD.argocdRedis",style:{}},"local.argocd.argocdRepoServer":{id:"local.argocd.argocdRepoServer",element:"edp.argoCD.argocdRepoServer",style:{}},"local.argocd.argocdServer":{id:"local.argocd.argocdServer",element:"edp.argoCD.argocdServer",style:{}},"local.gitea.forgejo":{id:"local.gitea.forgejo",element:"edp.forgejo",style:{}},"local.gitea.forgejoRunner":{id:"local.gitea.forgejoRunner",element:"forgejoRunner",style:{}},"local.keycloak.keycloak":{id:"local.keycloak.keycloak",element:"edp.keycloak.keycloak",style:{}},"local.keycloak.keycloakDB":{id:"local.keycloak.keycloakDB",element:"edp.keycloak.keycloakDB",style:{}},"local.crossplane.crossplane":{id:"local.crossplane.crossplane",element:"edp.crossplane.crossplane",style:{}},"local.crossplane.crossplaneFunction":{id:"local.crossplane.crossplaneFunction",element:"edp.crossplane.crossplaneFunction",style:{}},"local.crossplane.crossplaneRbacManager":{id:"local.crossplane.crossplaneRbacManager",element:"edp.crossplane.crossplaneRbacManager",style:{}},"local.crossplane.providerArgoCD":{id:"local.crossplane.providerArgoCD",element:"edp.crossplane.providerArgoCD",style:{}},"local.crossplane.providerKind":{id:"local.crossplane.providerKind",element:"edp.crossplane.providerKind",style:{}},"local.crossplane.providerShell":{id:"local.crossplane.providerShell",element:"edp.crossplane.providerShell",style:{}},"local.externalSecrets.certController":{id:"local.externalSecrets.certController",element:"edp.externalSecrets.certController",style:{}},"local.externalSecrets.externalSecrets":{id:"local.externalSecrets.externalSecrets",element:"edp.externalSecrets.externalSecrets",style:{}},"local.externalSecrets.webhook":{id:"local.externalSecrets.webhook",element:"edp.externalSecrets.webhook",style:{}},"local.velero.velero":{id:"local.velero.velero",element:"edp.velero.velero",style:{}},"local.minio.minio":{id:"local.minio.minio",element:"edp.minio.minio",style:{}},"local.monitoring.alloy":{id:"local.monitoring.alloy",element:"edp.monitoring.alloy",style:{}},"local.monitoring.distributor":{id:"local.monitoring.distributor",element:"edp.monitoring.loki.distributor",style:{}},"local.monitoring.gateway":{id:"local.monitoring.gateway",element:"edp.monitoring.loki.gateway",style:{}},"local.monitoring.ingestor":{id:"local.monitoring.ingestor",element:"edp.monitoring.loki.ingestor",style:{}},"local.monitoring.querier":{id:"local.monitoring.querier",element:"edp.monitoring.loki.querier",style:{}},"local.monitoring.queryFrontend":{id:"local.monitoring.queryFrontend",element:"edp.monitoring.loki.queryFrontend",style:{}},"local.ingressNginx.ingressNginx":{id:"local.ingressNginx.ingressNginx",element:"edp.ingressNginx.ingressNginx",style:{}},"local.openbao.openbao":{id:"local.openbao.openbao",element:"edp.openbao.openbao",style:{}},"local.openbao.agentInjector":{id:"local.openbao.agentInjector",element:"edp.openbao.agentInjector",style:{}},"local.fibonacci.fibonacci":{id:"local.fibonacci.fibonacci",element:"edp.testApp.fibonacci",style:{}},"local.mailhog.mailhog":{id:"local.mailhog.mailhog",element:"edp.mailhog.mailhog",style:{}},"local.spark.sparkoperator":{id:"local.spark.sparkoperator",element:"edp.spark.sparkoperator",style:{}},"otc-edp-per-tenant.cce.edp":{style:{},kind:"cluster",title:"EDP",id:"otc-edp-per-tenant.cce.edp"},"otc-edp-per-tenant.cloudServices.postgres":{id:"otc-edp-per-tenant.cloudServices.postgres",element:"postgres",style:{}},"otc-edp-per-tenant.cloudServices.redis":{id:"otc-edp-per-tenant.cloudServices.redis",element:"redis",style:{}},"otc-edp-per-tenant.cloudServices.objectstorage":{id:"otc-edp-per-tenant.cloudServices.objectstorage",element:"objectstorage",style:{}},"otc-edp-per-tenant.cloudServices.elasticsearch":{id:"otc-edp-per-tenant.cloudServices.elasticsearch",element:"elasticsearch",style:{}},"otc-edp-per-tenant.forgejoRunnerInfrastructure.forgejoRunner":{id:"otc-edp-per-tenant.forgejoRunnerInfrastructure.forgejoRunner",element:"forgejoRunner",style:{}},"otc-faas.dev.cce":{style:{icon:"tech:kubernetes"},kind:"kubernetes",description:{txt:"*.t09.de"},technology:"Kubernetes",title:"Central Forgejo",id:"otc-faas.dev.cce"},"otc-faas.dev.cloudServices":{style:{},kind:"paas",description:{txt:"EDP Cloud Services (Postgres, Redis, etc.)"},technology:"Cloud Services",title:"EDP Cloud Services",id:"otc-faas.dev.cloudServices"},"otc-faas.dev.observability":{style:{icon:"tech:kubernetes"},kind:"kubernetes",description:{txt:"*.t09.de"},technology:"Kubernetes",title:"Observability",id:"otc-faas.dev.observability"},"otc-faas.prod.cce":{style:{icon:"tech:kubernetes"},kind:"kubernetes",description:{txt:"*.buildth.ing"},technology:"Kubernetes",title:"Central Forgejo",id:"otc-faas.prod.cce"},"otc-faas.prod.cloudServices":{style:{},kind:"paas",description:{txt:"EDP Cloud Services (Postgres, Redis, etc.)"},technology:"Cloud Services",title:"EDP Cloud Services",id:"otc-faas.prod.cloudServices"},"otc-faas.prod.observability":{style:{icon:"tech:kubernetes"},kind:"kubernetes",description:{txt:"*.buildth.ing"},technology:"Kubernetes",title:"Observability",id:"otc-faas.prod.observability"},"otc-edpFoundry.cce.internalServices":{style:{},kind:"cluster",title:"EDP Foundry Internal Services",id:"otc-edpFoundry.cce.internalServices"},"otc-edpFoundry.cce.centralObservability":{style:{},kind:"cluster",title:"EDP Foundry Central Observability",id:"otc-edpFoundry.cce.centralObservability"},"otc-edpFoundry.workflowSetupEDPInfrastructure.forgejoRunner":{id:"otc-edpFoundry.workflowSetupEDPInfrastructure.forgejoRunner",element:"forgejoRunner",style:{}},"otc-edpFoundry.workflowSetupEDPInfrastructure.forgejoRunnerWorker":{id:"otc-edpFoundry.workflowSetupEDPInfrastructure.forgejoRunnerWorker",element:"forgejoRunnerWorker",style:{}},"otc-edpFoundry.workflowSetupEDPInfrastructure.edpworkflow":{id:"otc-edpFoundry.workflowSetupEDPInfrastructure.edpworkflow",element:"edpworkflow",style:{}},"otc-edpFoundry.workflowSetupArgoCDInfrastructure.forgejoRunner":{id:"otc-edpFoundry.workflowSetupArgoCDInfrastructure.forgejoRunner",element:"forgejoRunner",style:{}},"otc-edpFoundry.workflowSetupArgoCDInfrastructure.forgejoRunnerWorker":{id:"otc-edpFoundry.workflowSetupArgoCDInfrastructure.forgejoRunnerWorker",element:"forgejoRunnerWorker",style:{}},"otc-edpFoundry.workflowSetupArgoCDInfrastructure.edpworkflow":{id:"otc-edpFoundry.workflowSetupArgoCDInfrastructure.edpworkflow",element:"edpworkflow",style:{}},"otc-edpFoundry.forgejoRunnerInfrastructure.forgejoRunner":{id:"otc-edpFoundry.forgejoRunnerInfrastructure.forgejoRunner",element:"forgejoRunner",style:{}},"edgeProviderHost.edp.forgejo":{id:"edgeProviderHost.edp.forgejo",element:"edp.forgejo",title:"Forgejo for all EDP-tenants",description:{txt:"edp.buildth.ing"},style:{}},"otc-edp-per-tenant.cce.edp.argoCD":{id:"otc-edp-per-tenant.cce.edp.argoCD",element:"edp.argoCD",style:{}},"otc-edp-per-tenant.cce.edp.forgejoRunner":{id:"otc-edp-per-tenant.cce.edp.forgejoRunner",element:"forgejoRunner",style:{}},"otc-edp-per-tenant.cce.edp.forgejo":{id:"otc-edp-per-tenant.cce.edp.forgejo",element:"edp.forgejo",style:{}},"otc-edp-per-tenant.cce.edp.externalSecrets":{id:"otc-edp-per-tenant.cce.edp.externalSecrets",element:"edp.externalSecrets",style:{}},"otc-edp-per-tenant.cce.edp.ingressNginx":{id:"otc-edp-per-tenant.cce.edp.ingressNginx",element:"edp.ingressNginx",style:{}},"otc-edp-per-tenant.cce.edp.garm":{id:"otc-edp-per-tenant.cce.edp.garm",element:"edp.garm",style:{}},"otc-faas.dev.cce.edp":{style:{},kind:"cluster",description:{txt:"t09.de"},title:"Forgejo Dev for platform team",id:"otc-faas.dev.cce.edp"},"otc-faas.prod.cce.edp":{style:{},kind:"cluster",title:"Forgejo for all EDP-tenants",id:"otc-faas.prod.cce.edp"},"otc-edpFoundry.cce.internalServices.argoCD":{id:"otc-edpFoundry.cce.internalServices.argoCD",element:"edp.argoCD",style:{}},"otc-edpFoundry.cce.internalServices.forgejo":{id:"otc-edpFoundry.cce.internalServices.forgejo",element:"edp.forgejo",style:{}},"otc-edpFoundry.cce.internalServices.externalSecrets":{id:"otc-edpFoundry.cce.internalServices.externalSecrets",element:"edp.externalSecrets",style:{}},"otc-edpFoundry.cce.internalServices.openbao":{id:"otc-edpFoundry.cce.internalServices.openbao",element:"edp.openbao",style:{}},"otc-edpFoundry.cce.internalServices.ingressNginx":{id:"otc-edpFoundry.cce.internalServices.ingressNginx",element:"edp.ingressNginx",style:{}},"otc-edpFoundry.cce.centralObservability.grafana":{id:"otc-edpFoundry.cce.centralObservability.grafana",element:"edp.grafana",style:{}},"otc-edpFoundry.cce.centralObservability.prometheus":{id:"otc-edpFoundry.cce.centralObservability.prometheus",element:"edp.prometheus",style:{}},"otc-edpFoundry.cce.centralObservability.loki":{id:"otc-edpFoundry.cce.centralObservability.loki",element:"edp.loki",style:{}},"otc-faas.dev.cce.edp.forgejo":{id:"otc-faas.dev.cce.edp.forgejo",element:"edp.forgejo",style:{}},"otc-faas.prod.cce.edp.forgejo":{id:"otc-faas.prod.cce.edp.forgejo",element:"edp.forgejo",title:"Forgejo for all EDP-tenants",description:{txt:"buildth.ing"},style:{}}},relations:{g9oj4f:{title:"registers",source:{deployment:"otc-edp-per-tenant.forgejoRunnerInfrastructure.forgejoRunner"},target:{deployment:"otc-edp-per-tenant.cce.edp.forgejo"},id:"g9oj4f"},"1fzhjm9":{source:{deployment:"otc-edp-per-tenant.cce.edp.forgejo"},target:{deployment:"otc-edp-per-tenant.cloudServices.elasticsearch"},id:"1fzhjm9"},"15njmlz":{source:{deployment:"otc-edp-per-tenant.cce.edp.forgejo"},target:{deployment:"otc-edp-per-tenant.cloudServices.objectstorage"},id:"15njmlz"},hks76r:{source:{deployment:"otc-edp-per-tenant.cce.edp.forgejo"},target:{deployment:"otc-edp-per-tenant.cloudServices.postgres"},id:"hks76r"},"1w18ve8":{source:{deployment:"otc-edp-per-tenant.cce.edp.forgejo"},target:{deployment:"otc-edp-per-tenant.cloudServices.redis"},id:"1w18ve8"},dz2rdn:{source:{deployment:"otc-faas.dev.cce.edp.forgejo"},target:{deployment:"otc-faas.dev.cloudServices"},id:"dz2rdn"},"2shw6y":{source:{deployment:"otc-faas.prod.cce.edp.forgejo"},target:{deployment:"otc-faas.prod.cloudServices"},id:"2shw6y"},"7kqly3":{title:"runs",source:{deployment:"otc-edpFoundry.workflowSetupEDPInfrastructure.forgejoRunner"},target:{deployment:"otc-edpFoundry.workflowSetupEDPInfrastructure.forgejoRunnerWorker"},id:"7kqly3"},"12hf1w4":{title:"executes",source:{deployment:"otc-edpFoundry.workflowSetupEDPInfrastructure.forgejoRunnerWorker"},target:{deployment:"otc-edpFoundry.workflowSetupEDPInfrastructure.edpworkflow"},id:"12hf1w4"},uk77s5:{title:"deploys edp to otc.cce",source:{deployment:"otc-edpFoundry.workflowSetupEDPInfrastructure.edpworkflow"},target:{deployment:"otc-edp-per-tenant.cce.edp"},id:"uk77s5"},"1pfc6bl":{title:"deploys edp to otc.paas",source:{deployment:"otc-edpFoundry.workflowSetupEDPInfrastructure.edpworkflow"},target:{deployment:"otc-edp-per-tenant.cloudServices"},id:"1pfc6bl"},hqie0:{title:"runs",source:{deployment:"otc-edpFoundry.workflowSetupArgoCDInfrastructure.forgejoRunner"},target:{deployment:"otc-edpFoundry.workflowSetupArgoCDInfrastructure.forgejoRunnerWorker"},id:"hqie0"},"1j16hqv":{title:"executes",source:{deployment:"otc-edpFoundry.workflowSetupArgoCDInfrastructure.forgejoRunnerWorker"},target:{deployment:"otc-edpFoundry.workflowSetupArgoCDInfrastructure.edpworkflow"},id:"1j16hqv"},jde35l:{source:{deployment:"otc-edpFoundry.workflowSetupArgoCDInfrastructure.edpworkflow"},target:{deployment:"otc-edp-per-tenant.cce.edp.argoCD"},id:"jde35l"},"1umzqdy":{title:"registers",source:{deployment:"otc-edpFoundry.forgejoRunnerInfrastructure.forgejoRunner"},target:{deployment:"otc-edpFoundry.cce.internalServices.forgejo"},id:"1umzqdy"},dola40:{title:"invokes",source:{deployment:"otc-edpFoundry.cce.internalServices.forgejo"},target:{deployment:"otc-edpFoundry.workflowSetupEDPInfrastructure.forgejoRunner"},id:"dola40"},"1f5y9gc":{title:"invokes",source:{deployment:"otc-edpFoundry.cce.internalServices.forgejo"},target:{deployment:"otc-edpFoundry.workflowSetupArgoCDInfrastructure.forgejoRunner"},id:"1f5y9gc"},"1wlvsb5":{title:"built using",source:{deployment:"edgeProvider"},target:{deployment:"edgeSdk"},id:"1wlvsb5"},"1mpjz5d":{title:"published to",source:{deployment:"edgeProvider"},target:{deployment:"edgeProviderHost.terralist"},id:"1mpjz5d"},"12ssq9":{title:"hosted on",source:{deployment:"edgeProvider"},target:{deployment:"edgeProviderHost.edp"},id:"12ssq9"},vfhcba:{title:"calls",source:{deployment:"edgeSdk"},target:{deployment:"edgeCloud.edgeApi"},id:"vfhcba"},"1sm6ifh":{title:"hosted on",source:{deployment:"edgeSdk"},target:{deployment:"edgeProviderHost.edp"},id:"1sm6ifh"},"1q6ftvm":{title:"authenticates via",source:{deployment:"edgeProviderHost.terralist"},target:{deployment:"edgeProviderHost.edp"},id:"1q6ftvm"},rr0lcz:{title:"creates/destroys",source:{deployment:"edgeCloud.edgeApi"},target:{deployment:"edgeCloud.edgeResources"},id:"rr0lcz"}}},imports:{}}),{useLikeC4Model:PQe}=MQe(NQe);function BQe({children:e}){const r=PQe();return y.jsx(MKe,{likec4model:r,children:e})}function OQe(e){return y.jsx(BQe,{children:y.jsx(rQe,{renderIcon:wQe,...e})})}var Pz={exports:{}},b0={},Bz={exports:{}},Oz={};var Jte;function IQe(){return Jte||(Jte=1,(function(e){function r(B,F){var q=B.length;B.push(F);e:for(;0>>1,U=B[G];if(0>>1;Ga(I,q))Wa(K,I)?(B[G]=K,B[W]=q,G=W):(B[G]=I,B[Z]=q,G=Z);else if(Wa(K,q))B[G]=K,B[W]=q,G=W;else break e}}return F}function a(B,F){var q=B.sortIndex-F.sortIndex;return q!==0?q:B.id-F.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var l=Date,s=l.now();e.unstable_now=function(){return l.now()-s}}var c=[],d=[],u=1,p=null,f=3,g=!1,v=!1,w=!1,x=!1,k=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,_=typeof setImmediate<"u"?setImmediate:null;function $(B){for(var F=n(d);F!==null;){if(F.callback===null)o(d);else if(F.startTime<=B)o(d),F.sortIndex=F.expirationTime,r(c,F);else break;F=n(d)}}function z(B){if(w=!1,$(B),!v)if(n(c)!==null)v=!0,j||(j=!0,L());else{var F=n(d);F!==null&&V(z,F.startTime-B)}}var j=!1,A=-1,R=5,T=-1;function O(){return x?!0:!(e.unstable_now()-TB&&O());){var G=p.callback;if(typeof G=="function"){p.callback=null,f=p.priorityLevel;var U=G(p.expirationTime<=B);if(B=e.unstable_now(),typeof U=="function"){p.callback=U,$(B),F=!0;break t}p===n(c)&&o(c),$(B)}else o(c);p=n(c)}if(p!==null)F=!0;else{var Y=n(d);Y!==null&&V(z,Y.startTime-B),F=!1}}break e}finally{p=null,f=q,g=!1}F=void 0}}finally{F?L():j=!1}}}var L;if(typeof _=="function")L=function(){_(P)};else if(typeof MessageChannel<"u"){var H=new MessageChannel,M=H.port2;H.port1.onmessage=P,L=function(){M.postMessage(null)}}else L=function(){k(P,0)};function V(B,F){A=k(function(){B(e.unstable_now())},F)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(B){B.callback=null},e.unstable_forceFrameRate=function(B){0>B||125G?(B.sortIndex=q,r(d,B),n(c)===null&&B===n(d)&&(w?(C(A),A=-1):w=!0,V(z,q-G))):(B.sortIndex=U,r(c,B),v||g||(v=!0,j||(j=!0,L()))),B},e.unstable_shouldYield=O,e.unstable_wrapCallback=function(B){var F=f;return function(){var q=f;f=F;try{return B.apply(this,arguments)}finally{f=q}}}})(Oz)),Oz}var ere;function LQe(){return ere||(ere=1,Bz.exports=IQe()),Bz.exports}var tre;function FQe(){if(tre)return b0;tre=1;var e=LQe(),r=g6(),n=KM();function o(h){var m="https://react.dev/errors/"+h;if(1U||(h.current=G[U],G[U]=null,U--)}function I(h,m){U++,G[U]=h.current,h.current=m}var W=Y(null),K=Y(null),Q=Y(null),ae=Y(null);function te(h,m){switch(I(Q,m),I(K,h),I(W,null),m.nodeType){case 9:case 11:h=(h=m.documentElement)&&(h=h.namespaceURI)?nme(h):0;break;default:if(h=m.tagName,m=m.namespaceURI)m=nme(m),h=ome(m,h);else switch(h){case"svg":h=1;break;case"math":h=2;break;default:h=0}}Z(W),I(W,h)}function re(){Z(W),Z(K),Z(Q)}function ue(h){h.memoizedState!==null&&I(ae,h);var m=W.current,b=ome(m,h.type);m!==b&&(I(K,h),I(W,b))}function _e(h){K.current===h&&(Z(W),Z(K)),ae.current===h&&(Z(ae),eb._currentValue=q)}var ce,pe;function xe(h){if(ce===void 0)try{throw Error()}catch(b){var m=b.stack.trim().match(/\n( *(at )?)/);ce=m&&m[1]||"",pe=-1)":-1D||se[E]!==ge[D]){var Ee=` +`+se[E].replace(" at new "," at ");return h.displayName&&Ee.includes("")&&(Ee=Ee.replace("",h.displayName)),Ee}while(1<=E&&0<=D);break}}}finally{De=!1,Error.prepareStackTrace=b}return(b=h?h.displayName||h.name:"")?xe(b):""}function Je(h,m){switch(h.tag){case 26:case 27:case 5:return xe(h.type);case 16:return xe("Lazy");case 13:return h.child!==m&&m!==null?xe("Suspense Fallback"):xe("Suspense");case 19:return xe("SuspenseList");case 0:case 15:return Be(h.type,!1);case 11:return Be(h.type.render,!1);case 1:return Be(h.type,!0);case 31:return xe("Activity");default:return""}}function st(h){try{var m="",b=null;do m+=Je(h,b),b=h,h=h.return;while(h);return m}catch(E){return` +Error generating stack: `+E.message+` +`+E.stack}}var Le=Object.prototype.hasOwnProperty,St=e.unstable_scheduleCallback,Ve=e.unstable_cancelCallback,qe=e.unstable_shouldYield,Xe=e.unstable_requestPaint,Ot=e.unstable_now,Et=e.unstable_getCurrentPriorityLevel,be=e.unstable_ImmediatePriority,ke=e.unstable_UserBlockingPriority,Ye=e.unstable_NormalPriority,yt=e.unstable_LowPriority,xt=e.unstable_IdlePriority,jr=e.log,er=e.unstable_setDisableYieldValue,qt=null,Ht=null;function Zr(h){if(typeof jr=="function"&&er(h),Ht&&typeof Ht.setStrictMode=="function")try{Ht.setStrictMode(qt,h)}catch{}}var Gt=Math.clz32?Math.clz32:fn,ln=Math.log,Wn=Math.LN2;function fn(h){return h>>>=0,h===0?32:31-(ln(h)/Wn|0)|0}var oo=256,Uo=262144,To=4194304;function sa(h){var m=h&42;if(m!==0)return m;switch(h&-h){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return h&261888;case 262144:case 524288:case 1048576:case 2097152:return h&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return h&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return h}}function Al(h,m,b){var E=h.pendingLanes;if(E===0)return 0;var D=0,N=h.suspendedLanes,X=h.pingedLanes;h=h.warmLanes;var ne=E&134217727;return ne!==0?(E=ne&~N,E!==0?D=sa(E):(X&=ne,X!==0?D=sa(X):b||(b=ne&~h,b!==0&&(D=sa(b))))):(ne=E&~N,ne!==0?D=sa(ne):X!==0?D=sa(X):b||(b=E&~h,b!==0&&(D=sa(b)))),D===0?0:m!==0&&m!==D&&(m&N)===0&&(N=D&-D,b=m&-m,N>=b||N===32&&(b&4194048)!==0)?m:D}function Ao(h,m){return(h.pendingLanes&~(h.suspendedLanes&~h.pingedLanes)&m)===0}function bs(h,m){switch(h){case 1:case 2:case 4:case 8:case 64:return m+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return m+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function xs(){var h=To;return To<<=1,(To&62914560)===0&&(To=4194304),h}function kc(h){for(var m=[],b=0;31>b;b++)m.push(h);return m}function Dl(h,m){h.pendingLanes|=m,m!==268435456&&(h.suspendedLanes=0,h.pingedLanes=0,h.warmLanes=0)}function ih(h,m,b,E,D,N){var X=h.pendingLanes;h.pendingLanes=b,h.suspendedLanes=0,h.pingedLanes=0,h.warmLanes=0,h.expiredLanes&=b,h.entangledLanes&=b,h.errorRecoveryDisabledLanes&=b,h.shellSuspendCounter=0;var ne=h.entanglements,se=h.expirationTimes,ge=h.hiddenUpdates;for(b=X&~b;0"u")return null;try{return h.activeElement||h.body}catch{return h.body}}var Zd=/[\n"\\]/g;function J(h){return h.replace(Zd,function(m){return"\\"+m.charCodeAt(0).toString(16)+" "})}function ee(h,m,b,E,D,N,X,ne){h.name="",X!=null&&typeof X!="function"&&typeof X!="symbol"&&typeof X!="boolean"?h.type=X:h.removeAttribute("type"),m!=null?X==="number"?(m===0&&h.value===""||h.value!=m)&&(h.value=""+Gr(m)):h.value!==""+Gr(m)&&(h.value=""+Gr(m)):X!=="submit"&&X!=="reset"||h.removeAttribute("value"),m!=null?ie(h,X,Gr(m)):b!=null?ie(h,X,Gr(b)):E!=null&&h.removeAttribute("value"),D==null&&N!=null&&(h.defaultChecked=!!N),D!=null&&(h.checked=D&&typeof D!="function"&&typeof D!="symbol"),ne!=null&&typeof ne!="function"&&typeof ne!="symbol"&&typeof ne!="boolean"?h.name=""+Gr(ne):h.removeAttribute("name")}function oe(h,m,b,E,D,N,X,ne){if(N!=null&&typeof N!="function"&&typeof N!="symbol"&&typeof N!="boolean"&&(h.type=N),m!=null||b!=null){if(!(N!=="submit"&&N!=="reset"||m!=null)){Ri(h);return}b=b!=null?""+Gr(b):"",m=m!=null?""+Gr(m):b,ne||m===h.value||(h.value=m),h.defaultValue=m}E=E??D,E=typeof E!="function"&&typeof E!="symbol"&&!!E,h.checked=ne?h.checked:!!E,h.defaultChecked=!!E,X!=null&&typeof X!="function"&&typeof X!="symbol"&&typeof X!="boolean"&&(h.name=X),Ri(h)}function ie(h,m,b){m==="number"&&ji(h.ownerDocument)===h||h.defaultValue===""+b||(h.defaultValue=""+b)}function le(h,m,b,E){if(h=h.options,m){m={};for(var D=0;D"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),qA=!1;if($c)try{var vv={};Object.defineProperty(vv,"passive",{get:function(){qA=!0}}),window.addEventListener("test",vv,vv),window.removeEventListener("test",vv,vv)}catch{qA=!1}var Qd=null,HA=null,a5=null;function ope(){if(a5)return a5;var h,m=HA,b=m.length,E,D="value"in Qd?Qd.value:Qd.textContent,N=D.length;for(h=0;h=wv),dpe=" ",upe=!1;function ppe(h,m){switch(h){case"keyup":return Rvt.indexOf(m.keyCode)!==-1;case"keydown":return m.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function hpe(h){return h=h.detail,typeof h=="object"&&"data"in h?h.data:null}var dg=!1;function Tvt(h,m){switch(h){case"compositionend":return hpe(m);case"keypress":return m.which!==32?null:(upe=!0,dpe);case"textInput":return h=m.data,h===dpe&&upe?null:h;default:return null}}function Avt(h,m){if(dg)return h==="compositionend"||!XA&&ppe(h,m)?(h=ope(),a5=HA=Qd=null,dg=!1,h):null;switch(h){case"paste":return null;case"keypress":if(!(m.ctrlKey||m.altKey||m.metaKey)||m.ctrlKey&&m.altKey){if(m.char&&1=m)return{node:b,offset:m-h};h=E}e:{for(;b;){if(b.nextSibling){b=b.nextSibling;break e}b=b.parentNode}b=void 0}b=wpe(b)}}function _pe(h,m){return h&&m?h===m?!0:h&&h.nodeType===3?!1:m&&m.nodeType===3?_pe(h,m.parentNode):"contains"in h?h.contains(m):h.compareDocumentPosition?!!(h.compareDocumentPosition(m)&16):!1:!1}function Spe(h){h=h!=null&&h.ownerDocument!=null&&h.ownerDocument.defaultView!=null?h.ownerDocument.defaultView:window;for(var m=ji(h.document);m instanceof h.HTMLIFrameElement;){try{var b=typeof m.contentWindow.location.href=="string"}catch{b=!1}if(b)h=m.contentWindow;else break;m=ji(h.document)}return m}function QA(h){var m=h&&h.nodeName&&h.nodeName.toLowerCase();return m&&(m==="input"&&(h.type==="text"||h.type==="search"||h.type==="tel"||h.type==="url"||h.type==="password")||m==="textarea"||h.contentEditable==="true")}var Lvt=$c&&"documentMode"in document&&11>=document.documentMode,ug=null,JA=null,Ev=null,eD=!1;function Epe(h,m,b){var E=b.window===b?b.document:b.nodeType===9?b:b.ownerDocument;eD||ug==null||ug!==ji(E)||(E=ug,"selectionStart"in E&&QA(E)?E={start:E.selectionStart,end:E.selectionEnd}:(E=(E.ownerDocument&&E.ownerDocument.defaultView||window).getSelection(),E={anchorNode:E.anchorNode,anchorOffset:E.anchorOffset,focusNode:E.focusNode,focusOffset:E.focusOffset}),Ev&&Sv(Ev,E)||(Ev=E,E=Q5(JA,"onSelect"),0>=X,D-=X,$s=1<<32-Gt(m)+D|b<Pt?(Xt=nt,nt=null):Xt=nt.sibling;var ar=ye(he,nt,me[Pt],Ce);if(ar===null){nt===null&&(nt=Xt);break}h&&nt&&ar.alternate===null&&m(he,nt),de=N(ar,de,Pt),or===null?ct=ar:or.sibling=ar,or=ar,nt=Xt}if(Pt===me.length)return b(he,nt),Zt&&Rc(he,Pt),ct;if(nt===null){for(;PtPt?(Xt=nt,nt=null):Xt=nt.sibling;var xu=ye(he,nt,ar.value,Ce);if(xu===null){nt===null&&(nt=Xt);break}h&&nt&&xu.alternate===null&&m(he,nt),de=N(xu,de,Pt),or===null?ct=xu:or.sibling=xu,or=xu,nt=Xt}if(ar.done)return b(he,nt),Zt&&Rc(he,Pt),ct;if(nt===null){for(;!ar.done;Pt++,ar=me.next())ar=ze(he,ar.value,Ce),ar!==null&&(de=N(ar,de,Pt),or===null?ct=ar:or.sibling=ar,or=ar);return Zt&&Rc(he,Pt),ct}for(nt=E(nt);!ar.done;Pt++,ar=me.next())ar=we(nt,he,Pt,ar.value,Ce),ar!==null&&(h&&ar.alternate!==null&&nt.delete(ar.key===null?Pt:ar.key),de=N(ar,de,Pt),or===null?ct=ar:or.sibling=ar,or=ar);return h&&nt.forEach(function(ixt){return m(he,ixt)}),Zt&&Rc(he,Pt),ct}function _r(he,de,me,Ce){if(typeof me=="object"&&me!==null&&me.type===w&&me.key===null&&(me=me.props.children),typeof me=="object"&&me!==null){switch(me.$$typeof){case g:e:{for(var ct=me.key;de!==null;){if(de.key===ct){if(ct=me.type,ct===w){if(de.tag===7){b(he,de.sibling),Ce=D(de,me.props.children),Ce.return=he,he=Ce;break e}}else if(de.elementType===ct||typeof ct=="object"&&ct!==null&&ct.$$typeof===R&&xh(ct)===de.type){b(he,de.sibling),Ce=D(de,me.props),Tv(Ce,me),Ce.return=he,he=Ce;break e}b(he,de);break}else m(he,de);de=de.sibling}me.type===w?(Ce=mh(me.props.children,he.mode,Ce,me.key),Ce.return=he,he=Ce):(Ce=m5(me.type,me.key,me.props,null,he.mode,Ce),Tv(Ce,me),Ce.return=he,he=Ce)}return X(he);case v:e:{for(ct=me.key;de!==null;){if(de.key===ct)if(de.tag===4&&de.stateNode.containerInfo===me.containerInfo&&de.stateNode.implementation===me.implementation){b(he,de.sibling),Ce=D(de,me.children||[]),Ce.return=he,he=Ce;break e}else{b(he,de);break}else m(he,de);de=de.sibling}Ce=lD(me,he.mode,Ce),Ce.return=he,he=Ce}return X(he);case R:return me=xh(me),_r(he,de,me,Ce)}if(V(me))return et(he,de,me,Ce);if(L(me)){if(ct=L(me),typeof ct!="function")throw Error(o(150));return me=ct.call(me),bt(he,de,me,Ce)}if(typeof me.then=="function")return _r(he,de,k5(me),Ce);if(me.$$typeof===_)return _r(he,de,v5(he,me),Ce);_5(he,me)}return typeof me=="string"&&me!==""||typeof me=="number"||typeof me=="bigint"?(me=""+me,de!==null&&de.tag===6?(b(he,de.sibling),Ce=D(de,me),Ce.return=he,he=Ce):(b(he,de),Ce=iD(me,he.mode,Ce),Ce.return=he,he=Ce),X(he)):b(he,de)}return function(he,de,me,Ce){try{jv=0;var ct=_r(he,de,me,Ce);return kg=null,ct}catch(nt){if(nt===wg||nt===x5)throw nt;var or=Fa(29,nt,null,he.mode);return or.lanes=Ce,or.return=he,or}finally{}}}var kh=Ype(!0),Xpe=Ype(!1),nu=!1;function bD(h){h.updateQueue={baseState:h.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function xD(h,m){h=h.updateQueue,m.updateQueue===h&&(m.updateQueue={baseState:h.baseState,firstBaseUpdate:h.firstBaseUpdate,lastBaseUpdate:h.lastBaseUpdate,shared:h.shared,callbacks:null})}function ou(h){return{lane:h,tag:0,payload:null,callback:null,next:null}}function au(h,m,b){var E=h.updateQueue;if(E===null)return null;if(E=E.shared,(cr&2)!==0){var D=E.pending;return D===null?m.next=m:(m.next=D.next,D.next=m),E.pending=m,m=f5(h),Ape(h,null,b),m}return h5(h,E,m,b),f5(h)}function Av(h,m,b){if(m=m.updateQueue,m!==null&&(m=m.shared,(b&4194048)!==0)){var E=m.lanes;E&=h.pendingLanes,b|=E,m.lanes=b,Hd(h,b)}}function wD(h,m){var b=h.updateQueue,E=h.alternate;if(E!==null&&(E=E.updateQueue,b===E)){var D=null,N=null;if(b=b.firstBaseUpdate,b!==null){do{var X={lane:b.lane,tag:b.tag,payload:b.payload,callback:null,next:null};N===null?D=N=X:N=N.next=X,b=b.next}while(b!==null);N===null?D=N=m:N=N.next=m}else D=N=m;b={baseState:E.baseState,firstBaseUpdate:D,lastBaseUpdate:N,shared:E.shared,callbacks:E.callbacks},h.updateQueue=b;return}h=b.lastBaseUpdate,h===null?b.firstBaseUpdate=m:h.next=m,b.lastBaseUpdate=m}var kD=!1;function Dv(){if(kD){var h=xg;if(h!==null)throw h}}function Mv(h,m,b,E){kD=!1;var D=h.updateQueue;nu=!1;var N=D.firstBaseUpdate,X=D.lastBaseUpdate,ne=D.shared.pending;if(ne!==null){D.shared.pending=null;var se=ne,ge=se.next;se.next=null,X===null?N=ge:X.next=ge,X=se;var Ee=h.alternate;Ee!==null&&(Ee=Ee.updateQueue,ne=Ee.lastBaseUpdate,ne!==X&&(ne===null?Ee.firstBaseUpdate=ge:ne.next=ge,Ee.lastBaseUpdate=se))}if(N!==null){var ze=D.baseState;X=0,Ee=ge=se=null,ne=N;do{var ye=ne.lane&-536870913,we=ye!==ne.lane;if(we?(Yt&ye)===ye:(E&ye)===ye){ye!==0&&ye===bg&&(kD=!0),Ee!==null&&(Ee=Ee.next={lane:0,tag:ne.tag,payload:ne.payload,callback:null,next:null});e:{var et=h,bt=ne;ye=m;var _r=b;switch(bt.tag){case 1:if(et=bt.payload,typeof et=="function"){ze=et.call(_r,ze,ye);break e}ze=et;break e;case 3:et.flags=et.flags&-65537|128;case 0:if(et=bt.payload,ye=typeof et=="function"?et.call(_r,ze,ye):et,ye==null)break e;ze=p({},ze,ye);break e;case 2:nu=!0}}ye=ne.callback,ye!==null&&(h.flags|=64,we&&(h.flags|=8192),we=D.callbacks,we===null?D.callbacks=[ye]:we.push(ye))}else we={lane:ye,tag:ne.tag,payload:ne.payload,callback:ne.callback,next:null},Ee===null?(ge=Ee=we,se=ze):Ee=Ee.next=we,X|=ye;if(ne=ne.next,ne===null){if(ne=D.shared.pending,ne===null)break;we=ne,ne=we.next,we.next=null,D.lastBaseUpdate=we,D.shared.pending=null}}while(!0);Ee===null&&(se=ze),D.baseState=se,D.firstBaseUpdate=ge,D.lastBaseUpdate=Ee,N===null&&(D.shared.lanes=0),du|=X,h.lanes=X,h.memoizedState=ze}}function Zpe(h,m){if(typeof h!="function")throw Error(o(191,h));h.call(m)}function Kpe(h,m){var b=h.callbacks;if(b!==null)for(h.callbacks=null,h=0;hN?N:8;var X=B.T,ne={};B.T=ne,FD(h,!1,m,b);try{var se=D(),ge=B.S;if(ge!==null&&ge(ne,se),se!==null&&typeof se=="object"&&typeof se.then=="function"){var Ee=Xvt(se,E);Bv(h,m,Ee,Wa(h))}else Bv(h,m,E,Wa(h))}catch(ze){Bv(h,m,{then:function(){},status:"rejected",reason:ze},Wa())}finally{F.p=N,X!==null&&ne.types!==null&&(X.types=ne.types),B.T=X}}function tbt(){}function ID(h,m,b,E){if(h.tag!==5)throw Error(o(476));var D=Rhe(h).queue;zhe(h,D,m,q,b===null?tbt:function(){return jhe(h),b(E)})}function Rhe(h){var m=h.memoizedState;if(m!==null)return m;m={memoizedState:q,baseState:q,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Dc,lastRenderedState:q},next:null};var b={};return m.next={memoizedState:b,baseState:b,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Dc,lastRenderedState:b},next:null},h.memoizedState=m,h=h.alternate,h!==null&&(h.memoizedState=m),m}function jhe(h){var m=Rhe(h);m.next===null&&(m=h.alternate.memoizedState),Bv(h,m.next.queue,{},Wa())}function LD(){return mo(eb)}function The(){return gn().memoizedState}function Ahe(){return gn().memoizedState}function rbt(h){for(var m=h.return;m!==null;){switch(m.tag){case 24:case 3:var b=Wa();h=ou(b);var E=au(m,h,b);E!==null&&(ma(E,m,b),Av(E,m,b)),m={cache:mD()},h.payload=m;return}m=m.return}}function nbt(h,m,b){var E=Wa();b={lane:E,revertLane:0,gesture:null,action:b,hasEagerState:!1,eagerState:null,next:null},D5(h)?Mhe(m,b):(b=oD(h,m,b,E),b!==null&&(ma(b,h,E),Nhe(b,m,E)))}function Dhe(h,m,b){var E=Wa();Bv(h,m,b,E)}function Bv(h,m,b,E){var D={lane:E,revertLane:0,gesture:null,action:b,hasEagerState:!1,eagerState:null,next:null};if(D5(h))Mhe(m,D);else{var N=h.alternate;if(h.lanes===0&&(N===null||N.lanes===0)&&(N=m.lastRenderedReducer,N!==null))try{var X=m.lastRenderedState,ne=N(X,b);if(D.hasEagerState=!0,D.eagerState=ne,La(ne,X))return h5(h,m,D,0),Er===null&&p5(),!1}catch{}finally{}if(b=oD(h,m,D,E),b!==null)return ma(b,h,E),Nhe(b,m,E),!0}return!1}function FD(h,m,b,E){if(E={lane:2,revertLane:bM(),gesture:null,action:E,hasEagerState:!1,eagerState:null,next:null},D5(h)){if(m)throw Error(o(479))}else m=oD(h,b,E,2),m!==null&&ma(m,h,2)}function D5(h){var m=h.alternate;return h===Mt||m!==null&&m===Mt}function Mhe(h,m){Sg=C5=!0;var b=h.pending;b===null?m.next=m:(m.next=b.next,b.next=m),h.pending=m}function Nhe(h,m,b){if((b&4194048)!==0){var E=m.lanes;E&=h.pendingLanes,b|=E,m.lanes=b,Hd(h,b)}}var Ov={readContext:mo,use:R5,useCallback:sn,useContext:sn,useEffect:sn,useImperativeHandle:sn,useLayoutEffect:sn,useInsertionEffect:sn,useMemo:sn,useReducer:sn,useRef:sn,useState:sn,useDebugValue:sn,useDeferredValue:sn,useTransition:sn,useSyncExternalStore:sn,useId:sn,useHostTransitionStatus:sn,useFormState:sn,useActionState:sn,useOptimistic:sn,useMemoCache:sn,useCacheRefresh:sn};Ov.useEffectEvent=sn;var Phe={readContext:mo,use:R5,useCallback:function(h,m){return Yo().memoizedState=[h,m===void 0?null:m],h},useContext:mo,useEffect:bhe,useImperativeHandle:function(h,m,b){b=b!=null?b.concat([h]):null,T5(4194308,4,_he.bind(null,m,h),b)},useLayoutEffect:function(h,m){return T5(4194308,4,h,m)},useInsertionEffect:function(h,m){T5(4,2,h,m)},useMemo:function(h,m){var b=Yo();m=m===void 0?null:m;var E=h();if(_h){Zr(!0);try{h()}finally{Zr(!1)}}return b.memoizedState=[E,m],E},useReducer:function(h,m,b){var E=Yo();if(b!==void 0){var D=b(m);if(_h){Zr(!0);try{b(m)}finally{Zr(!1)}}}else D=m;return E.memoizedState=E.baseState=D,h={pending:null,lanes:0,dispatch:null,lastRenderedReducer:h,lastRenderedState:D},E.queue=h,h=h.dispatch=nbt.bind(null,Mt,h),[E.memoizedState,h]},useRef:function(h){var m=Yo();return h={current:h},m.memoizedState=h},useState:function(h){h=MD(h);var m=h.queue,b=Dhe.bind(null,Mt,m);return m.dispatch=b,[h.memoizedState,b]},useDebugValue:BD,useDeferredValue:function(h,m){var b=Yo();return OD(b,h,m)},useTransition:function(){var h=MD(!1);return h=zhe.bind(null,Mt,h.queue,!0,!1),Yo().memoizedState=h,[!1,h]},useSyncExternalStore:function(h,m,b){var E=Mt,D=Yo();if(Zt){if(b===void 0)throw Error(o(407));b=b()}else{if(b=m(),Er===null)throw Error(o(349));(Yt&127)!==0||nhe(E,m,b)}D.memoizedState=b;var N={value:b,getSnapshot:m};return D.queue=N,bhe(ahe.bind(null,E,N,h),[h]),E.flags|=2048,Cg(9,{destroy:void 0},ohe.bind(null,E,N,b,m),null),b},useId:function(){var h=Yo(),m=Er.identifierPrefix;if(Zt){var b=zs,E=$s;b=(E&~(1<<32-Gt(E)-1)).toString(32)+b,m="_"+m+"R_"+b,b=$5++,0<\/script>",N=N.removeChild(N.firstChild);break;case"select":N=typeof E.is=="string"?X.createElement("select",{is:E.is}):X.createElement("select"),E.multiple?N.multiple=!0:E.size&&(N.size=E.size);break;default:N=typeof E.is=="string"?X.createElement(D,{is:E.is}):X.createElement(D)}}N[Nr]=m,N[Mn]=E;e:for(X=m.child;X!==null;){if(X.tag===5||X.tag===6)N.appendChild(X.stateNode);else if(X.tag!==4&&X.tag!==27&&X.child!==null){X.child.return=X,X=X.child;continue}if(X===m)break e;for(;X.sibling===null;){if(X.return===null||X.return===m)break e;X=X.return}X.sibling.return=X.return,X=X.sibling}m.stateNode=N;e:switch(yo(N,D,E),D){case"button":case"input":case"select":case"textarea":E=!!E.autoFocus;break e;case"img":E=!0;break e;default:E=!1}E&&Nc(m)}}return Br(m),tM(m,m.type,h===null?null:h.memoizedProps,m.pendingProps,b),null;case 6:if(h&&m.stateNode!=null)h.memoizedProps!==E&&Nc(m);else{if(typeof E!="string"&&m.stateNode===null)throw Error(o(166));if(h=Q.current,yg(m)){if(h=m.stateNode,b=m.memoizedProps,E=null,D=fo,D!==null)switch(D.tag){case 27:case 5:E=D.memoizedProps}h[Nr]=m,h=!!(h.nodeValue===b||E!==null&&E.suppressHydrationWarning===!0||tme(h.nodeValue,b)),h||tu(m,!0)}else h=J5(h).createTextNode(E),h[Nr]=m,m.stateNode=h}return Br(m),null;case 31:if(b=m.memoizedState,h===null||h.memoizedState!==null){if(E=yg(m),b!==null){if(h===null){if(!E)throw Error(o(318));if(h=m.memoizedState,h=h!==null?h.dehydrated:null,!h)throw Error(o(557));h[Nr]=m}else gh(),(m.flags&128)===0&&(m.memoizedState=null),m.flags|=4;Br(m),h=!1}else b=uD(),h!==null&&h.memoizedState!==null&&(h.memoizedState.hydrationErrors=b),h=!0;if(!h)return m.flags&256?(qa(m),m):(qa(m),null);if((m.flags&128)!==0)throw Error(o(558))}return Br(m),null;case 13:if(E=m.memoizedState,h===null||h.memoizedState!==null&&h.memoizedState.dehydrated!==null){if(D=yg(m),E!==null&&E.dehydrated!==null){if(h===null){if(!D)throw Error(o(318));if(D=m.memoizedState,D=D!==null?D.dehydrated:null,!D)throw Error(o(317));D[Nr]=m}else gh(),(m.flags&128)===0&&(m.memoizedState=null),m.flags|=4;Br(m),D=!1}else D=uD(),h!==null&&h.memoizedState!==null&&(h.memoizedState.hydrationErrors=D),D=!0;if(!D)return m.flags&256?(qa(m),m):(qa(m),null)}return qa(m),(m.flags&128)!==0?(m.lanes=b,m):(b=E!==null,h=h!==null&&h.memoizedState!==null,b&&(E=m.child,D=null,E.alternate!==null&&E.alternate.memoizedState!==null&&E.alternate.memoizedState.cachePool!==null&&(D=E.alternate.memoizedState.cachePool.pool),N=null,E.memoizedState!==null&&E.memoizedState.cachePool!==null&&(N=E.memoizedState.cachePool.pool),N!==D&&(E.flags|=2048)),b!==h&&b&&(m.child.flags|=8192),O5(m,m.updateQueue),Br(m),null);case 4:return re(),h===null&&_M(m.stateNode.containerInfo),Br(m),null;case 10:return Tc(m.type),Br(m),null;case 19:if(Z(mn),E=m.memoizedState,E===null)return Br(m),null;if(D=(m.flags&128)!==0,N=E.rendering,N===null)if(D)Lv(E,!1);else{if(cn!==0||h!==null&&(h.flags&128)!==0)for(h=m.child;h!==null;){if(N=E5(h),N!==null){for(m.flags|=128,Lv(E,!1),h=N.updateQueue,m.updateQueue=h,O5(m,h),m.subtreeFlags=0,h=b,b=m.child;b!==null;)Dpe(b,h),b=b.sibling;return I(mn,mn.current&1|2),Zt&&Rc(m,E.treeForkCount),m.child}h=h.sibling}E.tail!==null&&Ot()>q5&&(m.flags|=128,D=!0,Lv(E,!1),m.lanes=4194304)}else{if(!D)if(h=E5(N),h!==null){if(m.flags|=128,D=!0,h=h.updateQueue,m.updateQueue=h,O5(m,h),Lv(E,!0),E.tail===null&&E.tailMode==="hidden"&&!N.alternate&&!Zt)return Br(m),null}else 2*Ot()-E.renderingStartTime>q5&&b!==536870912&&(m.flags|=128,D=!0,Lv(E,!1),m.lanes=4194304);E.isBackwards?(N.sibling=m.child,m.child=N):(h=E.last,h!==null?h.sibling=N:m.child=N,E.last=N)}return E.tail!==null?(h=E.tail,E.rendering=h,E.tail=h.sibling,E.renderingStartTime=Ot(),h.sibling=null,b=mn.current,I(mn,D?b&1|2:b&1),Zt&&Rc(m,E.treeForkCount),h):(Br(m),null);case 22:case 23:return qa(m),SD(),E=m.memoizedState!==null,h!==null?h.memoizedState!==null!==E&&(m.flags|=8192):E&&(m.flags|=8192),E?(b&536870912)!==0&&(m.flags&128)===0&&(Br(m),m.subtreeFlags&6&&(m.flags|=8192)):Br(m),b=m.updateQueue,b!==null&&O5(m,b.retryQueue),b=null,h!==null&&h.memoizedState!==null&&h.memoizedState.cachePool!==null&&(b=h.memoizedState.cachePool.pool),E=null,m.memoizedState!==null&&m.memoizedState.cachePool!==null&&(E=m.memoizedState.cachePool.pool),E!==b&&(m.flags|=2048),h!==null&&Z(bh),null;case 24:return b=null,h!==null&&(b=h.memoizedState.cache),m.memoizedState.cache!==b&&(m.flags|=2048),Tc(Nn),Br(m),null;case 25:return null;case 30:return null}throw Error(o(156,m.tag))}function sbt(h,m){switch(cD(m),m.tag){case 1:return h=m.flags,h&65536?(m.flags=h&-65537|128,m):null;case 3:return Tc(Nn),re(),h=m.flags,(h&65536)!==0&&(h&128)===0?(m.flags=h&-65537|128,m):null;case 26:case 27:case 5:return _e(m),null;case 31:if(m.memoizedState!==null){if(qa(m),m.alternate===null)throw Error(o(340));gh()}return h=m.flags,h&65536?(m.flags=h&-65537|128,m):null;case 13:if(qa(m),h=m.memoizedState,h!==null&&h.dehydrated!==null){if(m.alternate===null)throw Error(o(340));gh()}return h=m.flags,h&65536?(m.flags=h&-65537|128,m):null;case 19:return Z(mn),null;case 4:return re(),null;case 10:return Tc(m.type),null;case 22:case 23:return qa(m),SD(),h!==null&&Z(bh),h=m.flags,h&65536?(m.flags=h&-65537|128,m):null;case 24:return Tc(Nn),null;case 25:return null;default:return null}}function ife(h,m){switch(cD(m),m.tag){case 3:Tc(Nn),re();break;case 26:case 27:case 5:_e(m);break;case 4:re();break;case 31:m.memoizedState!==null&&qa(m);break;case 13:qa(m);break;case 19:Z(mn);break;case 10:Tc(m.type);break;case 22:case 23:qa(m),SD(),h!==null&&Z(bh);break;case 24:Tc(Nn)}}function Fv(h,m){try{var b=m.updateQueue,E=b!==null?b.lastEffect:null;if(E!==null){var D=E.next;b=D;do{if((b.tag&h)===h){E=void 0;var N=b.create,X=b.inst;E=N(),X.destroy=E}b=b.next}while(b!==D)}}catch(ne){gr(m,m.return,ne)}}function su(h,m,b){try{var E=m.updateQueue,D=E!==null?E.lastEffect:null;if(D!==null){var N=D.next;E=N;do{if((E.tag&h)===h){var X=E.inst,ne=X.destroy;if(ne!==void 0){X.destroy=void 0,D=m;var se=b,ge=ne;try{ge()}catch(Ee){gr(D,se,Ee)}}}E=E.next}while(E!==N)}}catch(Ee){gr(m,m.return,Ee)}}function lfe(h){var m=h.updateQueue;if(m!==null){var b=h.stateNode;try{Kpe(m,b)}catch(E){gr(h,h.return,E)}}}function sfe(h,m,b){b.props=Sh(h.type,h.memoizedProps),b.state=h.memoizedState;try{b.componentWillUnmount()}catch(E){gr(h,m,E)}}function Vv(h,m){try{var b=h.ref;if(b!==null){switch(h.tag){case 26:case 27:case 5:var E=h.stateNode;break;case 30:E=h.stateNode;break;default:E=h.stateNode}typeof b=="function"?h.refCleanup=b(E):b.current=E}}catch(D){gr(h,m,D)}}function Rs(h,m){var b=h.ref,E=h.refCleanup;if(b!==null)if(typeof E=="function")try{E()}catch(D){gr(h,m,D)}finally{h.refCleanup=null,h=h.alternate,h!=null&&(h.refCleanup=null)}else if(typeof b=="function")try{b(null)}catch(D){gr(h,m,D)}else b.current=null}function cfe(h){var m=h.type,b=h.memoizedProps,E=h.stateNode;try{e:switch(m){case"button":case"input":case"select":case"textarea":b.autoFocus&&E.focus();break e;case"img":b.src?E.src=b.src:b.srcSet&&(E.srcset=b.srcSet)}}catch(D){gr(h,h.return,D)}}function rM(h,m,b){try{var E=h.stateNode;jbt(E,h.type,b,m),E[Mn]=m}catch(D){gr(h,h.return,D)}}function dfe(h){return h.tag===5||h.tag===3||h.tag===26||h.tag===27&&mu(h.type)||h.tag===4}function nM(h){e:for(;;){for(;h.sibling===null;){if(h.return===null||dfe(h.return))return null;h=h.return}for(h.sibling.return=h.return,h=h.sibling;h.tag!==5&&h.tag!==6&&h.tag!==18;){if(h.tag===27&&mu(h.type)||h.flags&2||h.child===null||h.tag===4)continue e;h.child.return=h,h=h.child}if(!(h.flags&2))return h.stateNode}}function oM(h,m,b){var E=h.tag;if(E===5||E===6)h=h.stateNode,m?(b.nodeType===9?b.body:b.nodeName==="HTML"?b.ownerDocument.body:b).insertBefore(h,m):(m=b.nodeType===9?b.body:b.nodeName==="HTML"?b.ownerDocument.body:b,m.appendChild(h),b=b._reactRootContainer,b!=null||m.onclick!==null||(m.onclick=Lt));else if(E!==4&&(E===27&&mu(h.type)&&(b=h.stateNode,m=null),h=h.child,h!==null))for(oM(h,m,b),h=h.sibling;h!==null;)oM(h,m,b),h=h.sibling}function I5(h,m,b){var E=h.tag;if(E===5||E===6)h=h.stateNode,m?b.insertBefore(h,m):b.appendChild(h);else if(E!==4&&(E===27&&mu(h.type)&&(b=h.stateNode),h=h.child,h!==null))for(I5(h,m,b),h=h.sibling;h!==null;)I5(h,m,b),h=h.sibling}function ufe(h){var m=h.stateNode,b=h.memoizedProps;try{for(var E=h.type,D=m.attributes;D.length;)m.removeAttributeNode(D[0]);yo(m,E,b),m[Nr]=h,m[Mn]=b}catch(N){gr(h,h.return,N)}}var Pc=!1,On=!1,aM=!1,pfe=typeof WeakSet=="function"?WeakSet:Set,ao=null;function cbt(h,m){if(h=h.containerInfo,CM=i6,h=Spe(h),QA(h)){if("selectionStart"in h)var b={start:h.selectionStart,end:h.selectionEnd};else e:{b=(b=h.ownerDocument)&&b.defaultView||window;var E=b.getSelection&&b.getSelection();if(E&&E.rangeCount!==0){b=E.anchorNode;var D=E.anchorOffset,N=E.focusNode;E=E.focusOffset;try{b.nodeType,N.nodeType}catch{b=null;break e}var X=0,ne=-1,se=-1,ge=0,Ee=0,ze=h,ye=null;t:for(;;){for(var we;ze!==b||D!==0&&ze.nodeType!==3||(ne=X+D),ze!==N||E!==0&&ze.nodeType!==3||(se=X+E),ze.nodeType===3&&(X+=ze.nodeValue.length),(we=ze.firstChild)!==null;)ye=ze,ze=we;for(;;){if(ze===h)break t;if(ye===b&&++ge===D&&(ne=X),ye===N&&++Ee===E&&(se=X),(we=ze.nextSibling)!==null)break;ze=ye,ye=ze.parentNode}ze=we}b=ne===-1||se===-1?null:{start:ne,end:se}}else b=null}b=b||{start:0,end:0}}else b=null;for($M={focusedElem:h,selectionRange:b},i6=!1,ao=m;ao!==null;)if(m=ao,h=m.child,(m.subtreeFlags&1028)!==0&&h!==null)h.return=m,ao=h;else for(;ao!==null;){switch(m=ao,N=m.alternate,h=m.flags,m.tag){case 0:if((h&4)!==0&&(h=m.updateQueue,h=h!==null?h.events:null,h!==null))for(b=0;b title"))),yo(N,E,b),N[Nr]=h,Wr(N),E=N;break e;case"link":var X=vme("link","href",D).get(E+(b.href||""));if(X){for(var ne=0;ne_r&&(X=_r,_r=bt,bt=X);var he=kpe(ne,bt),de=kpe(ne,_r);if(he&&de&&(we.rangeCount!==1||we.anchorNode!==he.node||we.anchorOffset!==he.offset||we.focusNode!==de.node||we.focusOffset!==de.offset)){var me=ze.createRange();me.setStart(he.node,he.offset),we.removeAllRanges(),bt>_r?(we.addRange(me),we.extend(de.node,de.offset)):(me.setEnd(de.node,de.offset),we.addRange(me))}}}}for(ze=[],we=ne;we=we.parentNode;)we.nodeType===1&&ze.push({element:we,left:we.scrollLeft,top:we.scrollTop});for(typeof ne.focus=="function"&&ne.focus(),ne=0;neb?32:b,B.T=null,b=pM,pM=null;var N=pu,X=Fc;if(Gn=0,Tg=pu=null,Fc=0,(cr&6)!==0)throw Error(o(331));var ne=cr;if(cr|=4,_fe(N.current),xfe(N,N.current,X,b),cr=ne,Yv(0,!1),Ht&&typeof Ht.onPostCommitFiberRoot=="function")try{Ht.onPostCommitFiberRoot(qt,N)}catch{}return!0}finally{F.p=D,B.T=E,Ffe(h,m)}}function qfe(h,m,b){m=Ai(b,m),m=UD(h.stateNode,m,2),h=au(h,m,2),h!==null&&(Dl(h,2),js(h))}function gr(h,m,b){if(h.tag===3)qfe(h,h,b);else for(;m!==null;){if(m.tag===3){qfe(m,h,b);break}else if(m.tag===1){var E=m.stateNode;if(typeof m.type.getDerivedStateFromError=="function"||typeof E.componentDidCatch=="function"&&(uu===null||!uu.has(E))){h=Ai(b,h),b=Hhe(2),E=au(m,b,2),E!==null&&(Uhe(b,E,m,h),Dl(E,2),js(E));break}}m=m.return}}function gM(h,m,b){var E=h.pingCache;if(E===null){E=h.pingCache=new pbt;var D=new Set;E.set(m,D)}else D=E.get(m),D===void 0&&(D=new Set,E.set(m,D));D.has(b)||(sM=!0,D.add(b),h=ybt.bind(null,h,m,b),m.then(h,h))}function ybt(h,m,b){var E=h.pingCache;E!==null&&E.delete(m),h.pingedLanes|=h.suspendedLanes&b,h.warmLanes&=~b,Er===h&&(Yt&b)===b&&(cn===4||cn===3&&(Yt&62914560)===Yt&&300>Ot()-V5?(cr&2)===0&&Ag(h,0):cM|=b,jg===Yt&&(jg=0)),js(h)}function Hfe(h,m){m===0&&(m=xs()),h=fh(h,m),h!==null&&(Dl(h,m),js(h))}function vbt(h){var m=h.memoizedState,b=0;m!==null&&(b=m.retryLane),Hfe(h,b)}function bbt(h,m){var b=0;switch(h.tag){case 31:case 13:var E=h.stateNode,D=h.memoizedState;D!==null&&(b=D.retryLane);break;case 19:E=h.stateNode;break;case 22:E=h.stateNode._retryCache;break;default:throw Error(o(314))}E!==null&&E.delete(m),Hfe(h,b)}function xbt(h,m){return St(h,m)}var X5=null,Mg=null,yM=!1,Z5=!1,vM=!1,fu=0;function js(h){h!==Mg&&h.next===null&&(Mg===null?X5=Mg=h:Mg=Mg.next=h),Z5=!0,yM||(yM=!0,kbt())}function Yv(h,m){if(!vM&&Z5){vM=!0;do for(var b=!1,E=X5;E!==null;){if(h!==0){var D=E.pendingLanes;if(D===0)var N=0;else{var X=E.suspendedLanes,ne=E.pingedLanes;N=(1<<31-Gt(42|h)+1)-1,N&=D&~(X&~ne),N=N&201326741?N&201326741|1:N?N|2:0}N!==0&&(b=!0,Yfe(E,N))}else N=Yt,N=Al(E,E===Er?N:0,E.cancelPendingCommit!==null||E.timeoutHandle!==-1),(N&3)===0||Ao(E,N)||(b=!0,Yfe(E,N));E=E.next}while(b);vM=!1}}function wbt(){Ufe()}function Ufe(){Z5=yM=!1;var h=0;fu!==0&&Abt()&&(h=fu);for(var m=Ot(),b=null,E=X5;E!==null;){var D=E.next,N=Wfe(E,m);N===0?(E.next=null,b===null?X5=D:b.next=D,D===null&&(Mg=b)):(b=E,(h!==0||(N&3)!==0)&&(Z5=!0)),E=D}Gn!==0&&Gn!==5||Yv(h),fu!==0&&(fu=0)}function Wfe(h,m){for(var b=h.suspendedLanes,E=h.pingedLanes,D=h.expirationTimes,N=h.pendingLanes&-62914561;0ne)break;var Ee=se.transferSize,ze=se.initiatorType;Ee&&rme(ze)&&(se=se.responseEnd,X+=Ee*(se"u"?null:document;function fme(h,m,b){var E=Ng;if(E&&typeof m=="string"&&m){var D=J(m);D='link[rel="'+h+'"][href="'+D+'"]',typeof b=="string"&&(D+='[crossorigin="'+b+'"]'),hme.has(D)||(hme.add(D),h={rel:h,crossOrigin:b,href:m},E.querySelector(D)===null&&(m=E.createElement("link"),yo(m,"link",h),Wr(m),E.head.appendChild(m)))}}function Fbt(h){Vc.D(h),fme("dns-prefetch",h,null)}function Vbt(h,m){Vc.C(h,m),fme("preconnect",h,m)}function qbt(h,m,b){Vc.L(h,m,b);var E=Ng;if(E&&h&&m){var D='link[rel="preload"][as="'+J(m)+'"]';m==="image"&&b&&b.imageSrcSet?(D+='[imagesrcset="'+J(b.imageSrcSet)+'"]',typeof b.imageSizes=="string"&&(D+='[imagesizes="'+J(b.imageSizes)+'"]')):D+='[href="'+J(h)+'"]';var N=D;switch(m){case"style":N=Pg(h);break;case"script":N=Bg(h)}Oi.has(N)||(h=p({rel:"preload",href:m==="image"&&b&&b.imageSrcSet?void 0:h,as:m},b),Oi.set(N,h),E.querySelector(D)!==null||m==="style"&&E.querySelector(Qv(N))||m==="script"&&E.querySelector(Jv(N))||(m=E.createElement("link"),yo(m,"link",h),Wr(m),E.head.appendChild(m)))}}function Hbt(h,m){Vc.m(h,m);var b=Ng;if(b&&h){var E=m&&typeof m.as=="string"?m.as:"script",D='link[rel="modulepreload"][as="'+J(E)+'"][href="'+J(h)+'"]',N=D;switch(E){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":N=Bg(h)}if(!Oi.has(N)&&(h=p({rel:"modulepreload",href:h},m),Oi.set(N,h),b.querySelector(D)===null)){switch(E){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(b.querySelector(Jv(N)))return}E=b.createElement("link"),yo(E,"link",h),Wr(E),b.head.appendChild(E)}}}function Ubt(h,m,b){Vc.S(h,m,b);var E=Ng;if(E&&h){var D=ho(E).hoistableStyles,N=Pg(h);m=m||"default";var X=D.get(N);if(!X){var ne={loading:0,preload:null};if(X=E.querySelector(Qv(N)))ne.loading=5;else{h=p({rel:"stylesheet",href:h,"data-precedence":m},b),(b=Oi.get(N))&&MM(h,b);var se=X=E.createElement("link");Wr(se),yo(se,"link",h),se._p=new Promise(function(ge,Ee){se.onload=ge,se.onerror=Ee}),se.addEventListener("load",function(){ne.loading|=1}),se.addEventListener("error",function(){ne.loading|=2}),ne.loading|=4,t6(X,m,E)}X={type:"stylesheet",instance:X,count:1,state:ne},D.set(N,X)}}}function Wbt(h,m){Vc.X(h,m);var b=Ng;if(b&&h){var E=ho(b).hoistableScripts,D=Bg(h),N=E.get(D);N||(N=b.querySelector(Jv(D)),N||(h=p({src:h,async:!0},m),(m=Oi.get(D))&&NM(h,m),N=b.createElement("script"),Wr(N),yo(N,"link",h),b.head.appendChild(N)),N={type:"script",instance:N,count:1,state:null},E.set(D,N))}}function Gbt(h,m){Vc.M(h,m);var b=Ng;if(b&&h){var E=ho(b).hoistableScripts,D=Bg(h),N=E.get(D);N||(N=b.querySelector(Jv(D)),N||(h=p({src:h,async:!0,type:"module"},m),(m=Oi.get(D))&&NM(h,m),N=b.createElement("script"),Wr(N),yo(N,"link",h),b.head.appendChild(N)),N={type:"script",instance:N,count:1,state:null},E.set(D,N))}}function mme(h,m,b,E){var D=(D=Q.current)?e6(D):null;if(!D)throw Error(o(446));switch(h){case"meta":case"title":return null;case"style":return typeof b.precedence=="string"&&typeof b.href=="string"?(m=Pg(b.href),b=ho(D).hoistableStyles,E=b.get(m),E||(E={type:"style",instance:null,count:0,state:null},b.set(m,E)),E):{type:"void",instance:null,count:0,state:null};case"link":if(b.rel==="stylesheet"&&typeof b.href=="string"&&typeof b.precedence=="string"){h=Pg(b.href);var N=ho(D).hoistableStyles,X=N.get(h);if(X||(D=D.ownerDocument||D,X={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},N.set(h,X),(N=D.querySelector(Qv(h)))&&!N._p&&(X.instance=N,X.state.loading=5),Oi.has(h)||(b={rel:"preload",as:"style",href:b.href,crossOrigin:b.crossOrigin,integrity:b.integrity,media:b.media,hrefLang:b.hrefLang,referrerPolicy:b.referrerPolicy},Oi.set(h,b),N||Ybt(D,h,b,X.state))),m&&E===null)throw Error(o(528,""));return X}if(m&&E!==null)throw Error(o(529,""));return null;case"script":return m=b.async,b=b.src,typeof b=="string"&&m&&typeof m!="function"&&typeof m!="symbol"?(m=Bg(b),b=ho(D).hoistableScripts,E=b.get(m),E||(E={type:"script",instance:null,count:0,state:null},b.set(m,E)),E):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,h))}}function Pg(h){return'href="'+J(h)+'"'}function Qv(h){return'link[rel="stylesheet"]['+h+"]"}function gme(h){return p({},h,{"data-precedence":h.precedence,precedence:null})}function Ybt(h,m,b,E){h.querySelector('link[rel="preload"][as="style"]['+m+"]")?E.loading=1:(m=h.createElement("link"),E.preload=m,m.addEventListener("load",function(){return E.loading|=1}),m.addEventListener("error",function(){return E.loading|=2}),yo(m,"link",b),Wr(m),h.head.appendChild(m))}function Bg(h){return'[src="'+J(h)+'"]'}function Jv(h){return"script[async]"+h}function yme(h,m,b){if(m.count++,m.instance===null)switch(m.type){case"style":var E=h.querySelector('style[data-href~="'+J(b.href)+'"]');if(E)return m.instance=E,Wr(E),E;var D=p({},b,{"data-href":b.href,"data-precedence":b.precedence,href:null,precedence:null});return E=(h.ownerDocument||h).createElement("style"),Wr(E),yo(E,"style",D),t6(E,b.precedence,h),m.instance=E;case"stylesheet":D=Pg(b.href);var N=h.querySelector(Qv(D));if(N)return m.state.loading|=4,m.instance=N,Wr(N),N;E=gme(b),(D=Oi.get(D))&&MM(E,D),N=(h.ownerDocument||h).createElement("link"),Wr(N);var X=N;return X._p=new Promise(function(ne,se){X.onload=ne,X.onerror=se}),yo(N,"link",E),m.state.loading|=4,t6(N,b.precedence,h),m.instance=N;case"script":return N=Bg(b.src),(D=h.querySelector(Jv(N)))?(m.instance=D,Wr(D),D):(E=b,(D=Oi.get(N))&&(E=p({},b),NM(E,D)),h=h.ownerDocument||h,D=h.createElement("script"),Wr(D),yo(D,"link",E),h.head.appendChild(D),m.instance=D);case"void":return null;default:throw Error(o(443,m.type))}else m.type==="stylesheet"&&(m.state.loading&4)===0&&(E=m.instance,m.state.loading|=4,t6(E,b.precedence,h));return m.instance}function t6(h,m,b){for(var E=b.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),D=E.length?E[E.length-1]:null,N=D,X=0;X title"):null)}function Xbt(h,m,b){if(b===1||m.itemProp!=null)return!1;switch(h){case"meta":case"title":return!0;case"style":if(typeof m.precedence!="string"||typeof m.href!="string"||m.href==="")break;return!0;case"link":if(typeof m.rel!="string"||typeof m.href!="string"||m.href===""||m.onLoad||m.onError)break;switch(m.rel){case"stylesheet":return h=m.disabled,typeof m.precedence=="string"&&h==null;default:return!0}case"script":if(m.async&&typeof m.async!="function"&&typeof m.async!="symbol"&&!m.onLoad&&!m.onError&&m.src&&typeof m.src=="string")return!0}return!1}function xme(h){return!(h.type==="stylesheet"&&(h.state.loading&3)===0)}function Zbt(h,m,b,E){if(b.type==="stylesheet"&&(typeof E.media!="string"||matchMedia(E.media).matches!==!1)&&(b.state.loading&4)===0){if(b.instance===null){var D=Pg(E.href),N=m.querySelector(Qv(D));if(N){m=N._p,m!==null&&typeof m=="object"&&typeof m.then=="function"&&(h.count++,h=n6.bind(h),m.then(h,h)),b.state.loading|=4,b.instance=N,Wr(N);return}N=m.ownerDocument||m,E=gme(E),(D=Oi.get(D))&&MM(E,D),N=N.createElement("link"),Wr(N);var X=N;X._p=new Promise(function(ne,se){X.onload=ne,X.onerror=se}),yo(N,"link",E),b.instance=N}h.stylesheets===null&&(h.stylesheets=new Map),h.stylesheets.set(b,m),(m=b.state.preload)&&(b.state.loading&3)===0&&(h.count++,b=n6.bind(h),m.addEventListener("load",b),m.addEventListener("error",b))}}var PM=0;function Kbt(h,m){return h.stylesheets&&h.count===0&&a6(h,h.stylesheets),0PM?50:800)+m);return h.unsuspend=b,function(){h.unsuspend=null,clearTimeout(E),clearTimeout(D)}}:null}function n6(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)a6(this,this.stylesheets);else if(this.unsuspend){var h=this.unsuspend;this.unsuspend=null,h()}}}var o6=null;function a6(h,m){h.stylesheets=null,h.unsuspend!==null&&(h.count++,o6=new Map,m.forEach(Qbt,h),o6=null,n6.call(h))}function Qbt(h,m){if(!(m.state.loading&4)){var b=o6.get(h);if(b)var E=b.get(null);else{b=new Map,o6.set(h,b);for(var D=h.querySelectorAll("link[data-precedence],style[data-precedence]"),N=0;N"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(r){console.error(r)}}return e(),Pz.exports=FQe(),Pz.exports}var qQe=VQe();const HQe={View:"likec4-view"};let Iz="/";Iz.endsWith("/")||(Iz=Iz+"/");var is=function(){return is=Object.assign||function(e){for(var r,n=1,o=arguments.length;n"u")return lJe;var r=sJe(e),n=document.documentElement.clientWidth,o=window.innerWidth;return{left:r[0],top:r[1],right:r[2],gap:Math.max(0,o-n+r[2]-r[0])}},dJe=lre(),$m="data-scroll-locked",uJe=function(e,r,n,o){var a=e.left,i=e.top,l=e.right,s=e.gap;return n===void 0&&(n="margin"),` + .`.concat(WQe,` { overflow: hidden `).concat(o,`; - padding-right: `).concat(l,"px ").concat(o,`; + padding-right: `).concat(s,"px ").concat(o,`; } - body[`).concat(eg,`] { + body[`).concat($m,`] { overflow: hidden `).concat(o,`; overscroll-behavior: contain; `).concat([r&&"position: relative ".concat(o,";"),n==="margin"&&` padding-left: `.concat(a,`px; padding-top: `).concat(i,`px; - padding-right: `).concat(s,`px; + padding-right: `).concat(l,`px; margin-left:0; margin-top:0; - margin-right: `).concat(l,"px ").concat(o,`; - `),n==="padding"&&"padding-right: ".concat(l,"px ").concat(o,";")].filter(Boolean).join(""),` + margin-right: `).concat(s,"px ").concat(o,`; + `),n==="padding"&&"padding-right: ".concat(s,"px ").concat(o,";")].filter(Boolean).join(""),` } - .`).concat(U4,` { - right: `).concat(l,"px ").concat(o,`; + .`).concat(G2,` { + right: `).concat(s,"px ").concat(o,`; } - .`).concat(W4,` { - margin-right: `).concat(l,"px ").concat(o,`; + .`).concat(Y2,` { + margin-right: `).concat(s,"px ").concat(o,`; } - .`).concat(U4," .").concat(U4,` { + .`).concat(G2," .").concat(G2,` { right: 0 `).concat(o,`; } - .`).concat(W4," .").concat(W4,` { + .`).concat(Y2," .").concat(Y2,` { margin-right: 0 `).concat(o,`; } - body[`).concat(eg,`] { - `).concat(Mnt,": ").concat(l,`px; + body[`).concat($m,`] { + `).concat(GQe,": ").concat(s,`px; } -`)},Jne=function(){var e=parseInt(document.body.getAttribute(eg)||"0",10);return isFinite(e)?e:0},Jnt=function(){E.useEffect(function(){return document.body.setAttribute(eg,(Jne()+1).toString()),function(){var e=Jne()-1;e<=0?document.body.removeAttribute(eg):document.body.setAttribute(eg,e.toString())}},[])},eot=function(e){var r=e.noRelative,n=e.noImportant,o=e.gapMode,a=o===void 0?"margin":o;Jnt();var i=E.useMemo(function(){return Knt(a)},[a]);return E.createElement(Znt,{styles:Qnt(i,!r,a,n?"":"!important")})},VR=!1;if(typeof window<"u")try{var G4=Object.defineProperty({},"passive",{get:function(){return VR=!0,!0}});window.addEventListener("test",G4,G4),window.removeEventListener("test",G4,G4)}catch{VR=!1}var tg=VR?{passive:!1}:!1,tot=function(e){return e.tagName==="TEXTAREA"},eoe=function(e,r){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[r]!=="hidden"&&!(n.overflowY===n.overflowX&&!tot(e)&&n[r]==="visible")},rot=function(e){return eoe(e,"overflowY")},not=function(e){return eoe(e,"overflowX")},toe=function(e,r){var n=r.ownerDocument,o=r;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var a=roe(e,o);if(a){var i=noe(e,o),s=i[1],l=i[2];if(s>l)return!0}o=o.parentNode}while(o&&o!==n.body);return!1},oot=function(e){var r=e.scrollTop,n=e.scrollHeight,o=e.clientHeight;return[r,n,o]},aot=function(e){var r=e.scrollLeft,n=e.scrollWidth,o=e.clientWidth;return[r,n,o]},roe=function(e,r){return e==="v"?rot(r):not(r)},noe=function(e,r){return e==="v"?oot(r):aot(r)},iot=function(e,r){return e==="h"&&r==="rtl"?-1:1},sot=function(e,r,n,o,a){var i=iot(e,window.getComputedStyle(r).direction),s=i*o,l=n.target,c=r.contains(l),d=!1,u=s>0,h=0,f=0;do{if(!l)break;var g=noe(e,l),b=g[0],x=g[1],w=g[2],k=x-w-i*b;(b||k)&&roe(e,l)&&(h+=k,f+=b);var C=l.parentNode;l=C&&C.nodeType===Node.DOCUMENT_FRAGMENT_NODE?C.host:C}while(!c&&l!==document.body||c&&(r.contains(l)||r===l));return(u&&Math.abs(h)<1||!u&&Math.abs(f)<1)&&(d=!0),d},X4=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ooe=function(e){return[e.deltaX,e.deltaY]},aoe=function(e){return e&&"current"in e?e.current:e},lot=function(e,r){return e[0]===r[0]&&e[1]===r[1]},cot=function(e){return` +`)},sre=function(){var e=parseInt(document.body.getAttribute($m)||"0",10);return isFinite(e)?e:0},pJe=function(){S.useEffect(function(){return document.body.setAttribute($m,(sre()+1).toString()),function(){var e=sre()-1;e<=0?document.body.removeAttribute($m):document.body.setAttribute($m,e.toString())}},[])},hJe=function(e){var r=e.noRelative,n=e.noImportant,o=e.gapMode,a=o===void 0?"margin":o;pJe();var i=S.useMemo(function(){return cJe(a)},[a]);return S.createElement(dJe,{styles:uJe(i,!r,a,n?"":"!important")})},qz=!1;if(typeof window<"u")try{var Z2=Object.defineProperty({},"passive",{get:function(){return qz=!0,!0}});window.addEventListener("test",Z2,Z2),window.removeEventListener("test",Z2,Z2)}catch{qz=!1}var zm=qz?{passive:!1}:!1,fJe=function(e){return e.tagName==="TEXTAREA"},cre=function(e,r){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[r]!=="hidden"&&!(n.overflowY===n.overflowX&&!fJe(e)&&n[r]==="visible")},mJe=function(e){return cre(e,"overflowY")},gJe=function(e){return cre(e,"overflowX")},dre=function(e,r){var n=r.ownerDocument,o=r;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var a=ure(e,o);if(a){var i=pre(e,o),l=i[1],s=i[2];if(l>s)return!0}o=o.parentNode}while(o&&o!==n.body);return!1},yJe=function(e){var r=e.scrollTop,n=e.scrollHeight,o=e.clientHeight;return[r,n,o]},vJe=function(e){var r=e.scrollLeft,n=e.scrollWidth,o=e.clientWidth;return[r,n,o]},ure=function(e,r){return e==="v"?mJe(r):gJe(r)},pre=function(e,r){return e==="v"?yJe(r):vJe(r)},bJe=function(e,r){return e==="h"&&r==="rtl"?-1:1},xJe=function(e,r,n,o,a){var i=bJe(e,window.getComputedStyle(r).direction),l=i*o,s=n.target,c=r.contains(s),d=!1,u=l>0,p=0,f=0;do{if(!s)break;var g=pre(e,s),v=g[0],w=g[1],x=g[2],k=w-x-i*v;(v||k)&&ure(e,s)&&(p+=k,f+=v);var C=s.parentNode;s=C&&C.nodeType===Node.DOCUMENT_FRAGMENT_NODE?C.host:C}while(!c&&s!==document.body||c&&(r.contains(s)||r===s));return(u&&Math.abs(p)<1||!u&&Math.abs(f)<1)&&(d=!0),d},K2=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},hre=function(e){return[e.deltaX,e.deltaY]},fre=function(e){return e&&"current"in e?e.current:e},wJe=function(e,r){return e[0]===r[0]&&e[1]===r[1]},kJe=function(e){return` .block-interactivity-`.concat(e,` {pointer-events: none;} .allow-interactivity-`).concat(e,` {pointer-events: all;} -`)},dot=0,rg=[];function uot(e){var r=E.useRef([]),n=E.useRef([0,0]),o=E.useRef(),a=E.useState(dot++)[0],i=E.useState(Qne)[0],s=E.useRef(e);E.useEffect(function(){s.current=e},[e]),E.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var x=$nt([e.lockRef.current],(e.shards||[]).map(aoe)).filter(Boolean);return x.forEach(function(w){return w.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),x.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var l=E.useCallback(function(x,w){if("touches"in x&&x.touches.length===2||x.type==="wheel"&&x.ctrlKey)return!s.current.allowPinchZoom;var k=X4(x),C=n.current,_="deltaX"in x?x.deltaX:C[0]-k[0],T="deltaY"in x?x.deltaY:C[1]-k[1],A,R=x.target,D=Math.abs(_)>Math.abs(T)?"h":"v";if("touches"in x&&D==="h"&&R.type==="range")return!1;var N=toe(D,R);if(!N)return!0;if(N?A=D:(A=D==="v"?"h":"v",N=toe(D,R)),!N)return!1;if(!o.current&&"changedTouches"in x&&(_||T)&&(o.current=A),!A)return!0;var P=o.current||A;return sot(P,w,x,P==="h"?_:T)},[]),c=E.useCallback(function(x){var w=x;if(!(!rg.length||rg[rg.length-1]!==i)){var k="deltaY"in w?ooe(w):X4(w),C=r.current.filter(function(A){return A.name===w.type&&(A.target===w.target||w.target===A.shadowParent)&&lot(A.delta,k)})[0];if(C&&C.should){w.cancelable&&w.preventDefault();return}if(!C){var _=(s.current.shards||[]).map(aoe).filter(Boolean).filter(function(A){return A.contains(w.target)}),T=_.length>0?l(w,_[0]):!s.current.noIsolation;T&&w.cancelable&&w.preventDefault()}}},[]),d=E.useCallback(function(x,w,k,C){var _={name:x,delta:w,target:k,should:C,shadowParent:pot(k)};r.current.push(_),setTimeout(function(){r.current=r.current.filter(function(T){return T!==_})},1)},[]),u=E.useCallback(function(x){n.current=X4(x),o.current=void 0},[]),h=E.useCallback(function(x){d(x.type,ooe(x),x.target,l(x,e.lockRef.current))},[]),f=E.useCallback(function(x){d(x.type,X4(x),x.target,l(x,e.lockRef.current))},[]);E.useEffect(function(){return rg.push(i),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:f}),document.addEventListener("wheel",c,tg),document.addEventListener("touchmove",c,tg),document.addEventListener("touchstart",u,tg),function(){rg=rg.filter(function(x){return x!==i}),document.removeEventListener("wheel",c,tg),document.removeEventListener("touchmove",c,tg),document.removeEventListener("touchstart",u,tg)}},[]);var g=e.removeScrollBar,b=e.inert;return E.createElement(E.Fragment,null,b?E.createElement(i,{styles:cot(a)}):null,g?E.createElement(eot,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function pot(e){for(var r=null;e!==null;)e instanceof ShadowRoot&&(r=e.host,e=e.host),e=e.parentNode;return r}const hot=Fnt(Zne,uot);var ioe=E.forwardRef(function(e,r){return E.createElement(Y4,El({},e,{ref:r,sideCar:hot}))});ioe.classNames=Y4.classNames;function Bo(e){return Object.keys(e)}function fot(e){return e.replace(/[A-Z]/g,r=>`-${r.toLowerCase()}`)}function mot(e){return typeof e!="string"||!e.includes("var(--mantine-scale)")?e:e.match(/^calc\((.*?)\)$/)?.[1].split("*")[0].trim()}function K4(e){const r=mot(e);return typeof r=="number"?r:typeof r=="string"?r.includes("calc")||r.includes("var")?r:r.includes("px")?Number(r.replace("px","")):r.includes("rem")?Number(r.replace("rem",""))*16:r.includes("em")?Number(r.replace("em",""))*16:Number(r):NaN}function soe(e){return e==="0rem"?"0rem":`calc(${e} * var(--mantine-scale))`}function loe(e,{shouldScale:r=!1}={}){function n(o){if(o===0||o==="0")return`0${e}`;if(typeof o=="number"){const a=`${o/16}${e}`;return r?soe(a):a}if(typeof o=="string"){if(o===""||o.startsWith("calc(")||o.startsWith("clamp(")||o.includes("rgba("))return o;if(o.includes(","))return o.split(",").map(i=>n(i)).join(",");if(o.includes(" "))return o.split(" ").map(i=>n(i)).join(" ");const a=o.replace("px","");if(!Number.isNaN(Number(a))){const i=`${Number(a)/16}${e}`;return r?soe(i):i}}return o}return n}const qe=loe("rem",{shouldScale:!0});loe("em");function Zd(e){return Object.keys(e).reduce((r,n)=>(e[n]!==void 0&&(r[n]=e[n]),r),{})}function coe(e){if(typeof e=="number")return!0;if(typeof e=="string"){if(e.startsWith("calc(")||e.startsWith("var(")||e.includes(" ")&&e.trim()!=="")return!0;const r=/^[+-]?[0-9]+(\.[0-9]+)?(px|em|rem|ex|ch|lh|rlh|vw|vh|vmin|vmax|vb|vi|svw|svh|lvw|lvh|dvw|dvh|cm|mm|in|pt|pc|q|cqw|cqh|cqi|cqb|cqmin|cqmax|%)?$/;return e.trim().split(/\s+/).every(n=>r.test(n))}return!1}function Ds(e){return Array.isArray(e)||e===null?!1:typeof e=="object"?e.type!==E.Fragment:!1}function qa(e){const r=E.createContext(null);return[({children:n,value:o})=>y.jsx(r.Provider,{value:o,children:n}),()=>{const n=E.useContext(r);if(n===null)throw new Error(e);return n}]}function ng(e=null){const r=E.createContext(e);return[({children:n,value:o})=>y.jsx(r.Provider,{value:o,children:n}),()=>E.useContext(r)]}function doe(e,r){return n=>{if(typeof n!="string"||n.trim().length===0)throw new Error(r);return`${e}-${n}`}}function nb(e,r){let n=e;for(;(n=n.parentElement)&&!n.matches(r););return n}function got(e,r,n){for(let o=e-1;o>=0;o-=1)if(!r[o].disabled)return o;if(n){for(let o=r.length-1;o>-1;o-=1)if(!r[o].disabled)return o}return e}function yot(e,r,n){for(let o=e+1;o{n?.(l);const c=Array.from(nb(l.currentTarget,e)?.querySelectorAll(r)||[]).filter(b=>bot(l.currentTarget,b,e)),d=c.findIndex(b=>l.currentTarget===b),u=yot(d,c,o),h=got(d,c,o),f=i==="rtl"?h:u,g=i==="rtl"?u:h;switch(l.key){case"ArrowRight":{s==="horizontal"&&(l.stopPropagation(),l.preventDefault(),c[f].focus(),a&&c[f].click());break}case"ArrowLeft":{s==="horizontal"&&(l.stopPropagation(),l.preventDefault(),c[g].focus(),a&&c[g].click());break}case"ArrowUp":{s==="vertical"&&(l.stopPropagation(),l.preventDefault(),c[h].focus(),a&&c[h].click());break}case"ArrowDown":{s==="vertical"&&(l.stopPropagation(),l.preventDefault(),c[u].focus(),a&&c[u].click());break}case"Home":{l.stopPropagation(),l.preventDefault(),!c[0].disabled&&c[0].focus();break}case"End":{l.stopPropagation(),l.preventDefault();const b=c.length-1;!c[b].disabled&&c[b].focus();break}}}}const vot={app:100,modal:200,popover:300,overlay:400,max:9999};function $s(e){return vot[e]}const xot=()=>{};function wot(e,r={active:!0}){return typeof e!="function"||!r.active?r.onKeyDown||xot:n=>{n.key==="Escape"&&(e(n),r.onTrigger?.())}}function dr(e,r="size",n=!0){if(e!==void 0)return coe(e)?n?qe(e):e:`var(--${r}-${e})`}function po(e){return dr(e,"mantine-spacing")}function Tn(e){return e===void 0?"var(--mantine-radius-default)":dr(e,"mantine-radius")}function Fo(e){return dr(e,"mantine-font-size")}function kot(e){return dr(e,"mantine-line-height",!1)}function UR(e){if(e)return dr(e,"mantine-shadow",!1)}function Ln(e,r){return n=>{e?.(n),r?.(n)}}function _ot(e,r){return e in r?K4(r[e]):K4(e)}function WR(e,r){const n=e.map(o=>({value:o,px:_ot(o,r)}));return n.sort((o,a)=>o.px-a.px),n}function Ps(e){return typeof e=="object"&&e!==null?"base"in e?e.base:void 0:e}function og(e,r,n){return r===void 0&&n===void 0?e:r!==void 0&&n===void 0?Math.max(e,r):Math.min(r===void 0&&n!==void 0?e:Math.max(e,r),n)}function YR(e="mantine-"){return`${e}${Math.random().toString(36).slice(2,11)}`}function Eot(e,r){if(e===r||Number.isNaN(e)&&Number.isNaN(r))return!0;if(!(e instanceof Object)||!(r instanceof Object))return!1;const n=Object.keys(e),{length:o}=n;if(o!==Object.keys(r).length)return!1;for(let a=0;a{r.current=e}),E.useMemo(()=>((...n)=>r.current?.(...n)),[])}function Z4(e,r){const{delay:n,flushOnUnmount:o,leading:a}=typeof r=="number"?{delay:r,flushOnUnmount:!1,leading:!1}:r,i=eh(e),s=E.useRef(0),l=E.useMemo(()=>{const c=Object.assign((...d)=>{window.clearTimeout(s.current);const u=c._isFirstCall;c._isFirstCall=!1;function h(){window.clearTimeout(s.current),s.current=0,c._isFirstCall=!0}if(a&&u){i(...d);const b=()=>{h()},x=()=>{s.current!==0&&(h(),i(...d))},w=()=>{h()};c.flush=x,c.cancel=w,s.current=window.setTimeout(b,n);return}if(a&&!u){const b=()=>{s.current!==0&&(h(),i(...d))},x=()=>{h()};c.flush=b,c.cancel=x;const w=()=>{h()};s.current=window.setTimeout(w,n);return}const f=()=>{s.current!==0&&(h(),i(...d))},g=()=>{h()};c.flush=f,c.cancel=g,s.current=window.setTimeout(f,n)},{flush:()=>{},cancel:()=>{},_isFirstCall:!0});return c},[i,n,a]);return E.useEffect(()=>()=>{o?l.flush():l.cancel()},[l,o]),l}const Sot=["mousedown","touchstart"];function uoe(e,r,n){const o=E.useRef(null),a=r||Sot;return E.useEffect(()=>{const i=s=>{const{target:l}=s??{};if(Array.isArray(n)){const c=!document.body.contains(l)&&l?.tagName!=="HTML";n.every(d=>!!d&&!s.composedPath().includes(d))&&!c&&e(s)}else o.current&&!o.current.contains(l)&&e(s)};return a.forEach(s=>document.addEventListener(s,i)),()=>{a.forEach(s=>document.removeEventListener(s,i))}},[o,e,n]),o}function Cot(e,r){try{return e.addEventListener("change",r),()=>e.removeEventListener("change",r)}catch{return e.addListener(r),()=>e.removeListener(r)}}function Tot(e,r){return typeof window<"u"&&"matchMedia"in window?window.matchMedia(e).matches:!1}function Aot(e,r,{getInitialValueInEffect:n}={getInitialValueInEffect:!0}){const[o,a]=E.useState(n?r:Tot(e));return E.useEffect(()=>{try{const i=window.matchMedia(e);return a(i.matches),Cot(i,s=>a(s.matches))}catch{return}},[e]),o||!1}const GR=typeof document<"u"?E.useLayoutEffect:E.useEffect;function th(e,r){const n=E.useRef(!1);E.useEffect(()=>()=>{n.current=!1},[]),E.useEffect(()=>{if(n.current)return e();n.current=!0},r)}function poe({opened:e,shouldReturnFocus:r=!0}){const n=E.useRef(null),o=()=>{n.current&&"focus"in n.current&&typeof n.current.focus=="function"&&n.current?.focus({preventScroll:!0})};return th(()=>{let a=-1;const i=s=>{s.key==="Tab"&&window.clearTimeout(a)};return document.addEventListener("keydown",i),e?n.current=document.activeElement:r&&(a=window.setTimeout(o,10)),()=>{window.clearTimeout(a),document.removeEventListener("keydown",i)}},[e,r]),o}const Rot=/input|select|textarea|button|object/,hoe="a, input, select, textarea, button, object, [tabindex]";function Not(e){return e.style.display==="none"}function Dot(e){if(e.getAttribute("aria-hidden")||e.getAttribute("hidden")||e.getAttribute("type")==="hidden")return!1;let r=e;for(;r&&!(r===document.body||r.nodeType===11);){if(Not(r))return!1;r=r.parentNode}return!0}function foe(e){let r=e.getAttribute("tabindex");return r===null&&(r=void 0),parseInt(r,10)}function XR(e){const r=e.nodeName.toLowerCase(),n=!Number.isNaN(foe(e));return(Rot.test(r)&&!e.disabled||e instanceof HTMLAnchorElement&&e.href||n)&&Dot(e)}function moe(e){const r=foe(e);return(Number.isNaN(r)||r>=0)&&XR(e)}function $ot(e){return Array.from(e.querySelectorAll(hoe)).filter(moe)}function Pot(e,r){const n=$ot(e);if(!n.length){r.preventDefault();return}const o=n[r.shiftKey?0:n.length-1],a=e.getRootNode();let i=o===a.activeElement||e===a.activeElement;const s=a.activeElement;if(s.tagName==="INPUT"&&s.getAttribute("type")==="radio"&&(i=n.filter(c=>c.getAttribute("type")==="radio"&&c.getAttribute("name")===s.getAttribute("name")).includes(o)),!i)return;r.preventDefault();const l=n[r.shiftKey?n.length-1:0];l&&l.focus()}function Mot(e=!0){const r=E.useRef(null),n=a=>{let i=a.querySelector("[data-autofocus]");if(!i){const s=Array.from(a.querySelectorAll(hoe));i=s.find(moe)||s.find(XR)||null,!i&&XR(a)&&(i=a)}i&&i.focus({preventScroll:!0})},o=E.useCallback(a=>{e&&a!==null&&r.current!==a&&(a?(setTimeout(()=>{a.getRootNode()&&n(a)}),r.current=a):r.current=null)},[e]);return E.useEffect(()=>{if(!e)return;r.current&&setTimeout(()=>n(r.current));const a=i=>{i.key==="Tab"&&r.current&&Pot(r.current,i)};return document.addEventListener("keydown",a),()=>document.removeEventListener("keydown",a)},[e]),o}const zot=un.useId||(()=>{});function Iot(){const e=zot();return e?`mantine-${e.replace(/:/g,"")}`:""}function Ms(e){const r=Iot(),[n,o]=E.useState(r);return GR(()=>{o(YR())},[]),typeof e=="string"?e:typeof window>"u"?r:n}function Oot(e,r,n){E.useEffect(()=>(window.addEventListener(e,r,n),()=>window.removeEventListener(e,r,n)),[e,r])}function KR(e,r){if(typeof e=="function")return e(r);typeof e=="object"&&e!==null&&"current"in e&&(e.current=r)}function goe(...e){const r=new Map;return n=>{if(e.forEach(o=>{const a=KR(o,n);a&&r.set(o,a)}),r.size>0)return()=>{e.forEach(o=>{const a=r.get(o);a&&typeof a=="function"?a():KR(o,null)}),r.clear()}}}function yn(...e){return E.useCallback(goe(...e),e)}function jot(e,r,n="ltr"){const o=E.useRef(!1),a=E.useRef(!1),i=E.useRef(0),[s,l]=E.useState(!1),c=E.useRef(null);return E.useEffect(()=>{o.current=!0},[]),{ref:E.useCallback(d=>{if(c.current&&(c.current(),c.current=null),!d)return;const u=({x:_,y:T})=>{cancelAnimationFrame(i.current),i.current=requestAnimationFrame(()=>{if(o.current&&d){d.style.userSelect="none";const A=d.getBoundingClientRect();if(A.width&&A.height){const R=og((_-A.left)/A.width,0,1);e({x:n==="ltr"?R:1-R,y:og((T-A.top)/A.height,0,1)})}}})},h=()=>{document.addEventListener("mousemove",w),document.addEventListener("mouseup",b),document.addEventListener("touchmove",C,{passive:!1}),document.addEventListener("touchend",b)},f=()=>{document.removeEventListener("mousemove",w),document.removeEventListener("mouseup",b),document.removeEventListener("touchmove",C),document.removeEventListener("touchend",b)},g=()=>{!a.current&&o.current&&(a.current=!0,typeof r?.onScrubStart=="function"&&r.onScrubStart(),l(!0),h())},b=()=>{a.current&&o.current&&(a.current=!1,l(!1),f(),setTimeout(()=>{typeof r?.onScrubEnd=="function"&&r.onScrubEnd()},0))},x=_=>{g(),_.preventDefault(),w(_)},w=_=>u({x:_.clientX,y:_.clientY}),k=_=>{_.cancelable&&_.preventDefault(),g(),C(_)},C=_=>{_.cancelable&&_.preventDefault(),u({x:_.changedTouches[0].clientX,y:_.changedTouches[0].clientY})};d.addEventListener("mousedown",x),d.addEventListener("touchstart",k,{passive:!1}),c.current=()=>{d.removeEventListener("mousedown",x),d.removeEventListener("touchstart",k)}},[n,e]),active:s}}function Qd({value:e,defaultValue:r,finalValue:n,onChange:o=()=>{}}){const[a,i]=E.useState(r!==void 0?r:n);return e!==void 0?[e,o,!0]:[a,(l,...c)=>{i(l),o?.(l,...c)},!1]}function ZR(e,r){return Aot("(prefers-reduced-motion: reduce)",e,r)}function Lot(e,r){if(!e||!r)return!1;if(e===r)return!0;if(e.length!==r.length)return!1;for(let n=0;n{o(l=>l||(r.onOpen?.(),!0))},[r.onOpen]),i=E.useCallback(()=>{o(l=>l&&(r.onClose?.(),!1))},[r.onClose]),s=E.useCallback(()=>{n?i():a()},[i,a,n]);return[n,{open:a,close:i,toggle:s}]}function Vot(e,r,n={autoInvoke:!1}){const o=E.useRef(null),a=E.useCallback((...s)=>{o.current||(o.current=window.setTimeout(()=>{e(s),o.current=null},r))},[r]),i=E.useCallback(()=>{o.current&&(window.clearTimeout(o.current),o.current=null)},[]);return E.useEffect(()=>(n.autoInvoke&&a(),i),[i,a]),{start:a,clear:i}}function qot(e){const r=E.useRef(void 0);return E.useEffect(()=>{r.current=e},[e]),r.current}function Uot(e,r,n){const o=E.useRef(null),a=E.useRef(null);return E.useEffect(()=>{const i=typeof n=="function"?n():n;return(i||a.current)&&(o.current=new MutationObserver(e),o.current.observe(i||a.current,r)),()=>{o.current?.disconnect()}},[e,r]),a}function Wot(){const[e,r]=E.useState(!1);return E.useEffect(()=>r(!0),[]),e}function Yot(){return typeof process<"u"&&process.env?"production":"development"}function yoe(e){const r=new Map;return(...n)=>{const o=JSON.stringify(n);if(r.has(o))return r.get(o);const a=e(...n);return r.set(o,a),a}}function boe(e,r){return r.length===0?e:r.reduce((n,o)=>Math.abs(o-e){Object.entries(n).forEach(([o,a])=>{r[o]?r[o]=ho(r[o],a):r[o]=a})}),r}function J4({theme:e,classNames:r,props:n,stylesCtx:o}){const a=(Array.isArray(r)?r:[r]).map(i=>typeof i=="function"?i(e,n,o):i||Got);return Xot(a)}function ek({theme:e,styles:r,props:n,stylesCtx:o}){return(Array.isArray(r)?r:[r]).reduce((a,i)=>typeof i=="function"?{...a,...i(e,n,o)}:{...a,...i},{})}const Kot=E.createContext(null);function rh(){const e=E.useContext(Kot);if(!e)throw new Error("[@mantine/core] MantineProvider was not found in tree");return e}function Zot(){return rh().classNamesPrefix}function Qot(){return rh().getStyleNonce}function Jot(){return rh().withStaticClasses}function eat(){return rh().headless}function tat(){return rh().stylesTransform?.sx}function rat(){return rh().stylesTransform?.styles}function tk(){return rh().env||"default"}function nat(e){return/^#?([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(e)}function oat(e){let r=e.replace("#","");if(r.length===3){const s=r.split("");r=[s[0],s[0],s[1],s[1],s[2],s[2]].join("")}if(r.length===8){const s=parseInt(r.slice(6,8),16)/255;return{r:parseInt(r.slice(0,2),16),g:parseInt(r.slice(2,4),16),b:parseInt(r.slice(4,6),16),a:s}}const n=parseInt(r,16),o=n>>16&255,a=n>>8&255,i=n&255;return{r:o,g:a,b:i,a:1}}function aat(e){const[r,n,o,a]=e.replace(/[^0-9,./]/g,"").split(/[/,]/).map(Number);return{r,g:n,b:o,a:a===void 0?1:a}}function iat(e){const r=/^hsla?\(\s*(\d+)\s*,\s*(\d+%)\s*,\s*(\d+%)\s*(,\s*(0?\.\d+|\d+(\.\d+)?))?\s*\)$/i,n=e.match(r);if(!n)return{r:0,g:0,b:0,a:1};const o=parseInt(n[1],10),a=parseInt(n[2],10)/100,i=parseInt(n[3],10)/100,s=n[5]?parseFloat(n[5]):void 0,l=(1-Math.abs(2*i-1))*a,c=o/60,d=l*(1-Math.abs(c%2-1)),u=i-l/2;let h,f,g;return c>=0&&c<1?(h=l,f=d,g=0):c>=1&&c<2?(h=d,f=l,g=0):c>=2&&c<3?(h=0,f=l,g=d):c>=3&&c<4?(h=0,f=d,g=l):c>=4&&c<5?(h=d,f=0,g=l):(h=l,f=0,g=d),{r:Math.round((h+u)*255),g:Math.round((f+u)*255),b:Math.round((g+u)*255),a:s||1}}function xoe(e){return nat(e)?oat(e):e.startsWith("rgb")?aat(e):e.startsWith("hsl")?iat(e):{r:0,g:0,b:0,a:1}}function ob(e,r){return typeof e.primaryShade=="number"?e.primaryShade:r==="dark"?e.primaryShade.dark:e.primaryShade.light}function QR(e){return e<=.03928?e/12.92:((e+.055)/1.055)**2.4}function sat(e){const r=e.match(/oklch\((.*?)%\s/);return r?parseFloat(r[1]):null}function lat(e){if(e.startsWith("oklch("))return(sat(e)||0)/100;const{r,g:n,b:o}=xoe(e),a=r/255,i=n/255,s=o/255,l=QR(a),c=QR(i),d=QR(s);return .2126*l+.7152*c+.0722*d}function ab(e,r=.179){return e.startsWith("var(")?!1:lat(e)>r}function nh({color:e,theme:r,colorScheme:n}){if(typeof e!="string")throw new Error(`[@mantine/core] Failed to parse color. Expected color to be a string, instead got ${typeof e}`);if(e==="bright")return{color:e,value:n==="dark"?r.white:r.black,shade:void 0,isThemeColor:!1,isLight:ab(n==="dark"?r.white:r.black,r.luminanceThreshold),variable:"--mantine-color-bright"};if(e==="dimmed")return{color:e,value:n==="dark"?r.colors.dark[2]:r.colors.gray[7],shade:void 0,isThemeColor:!1,isLight:ab(n==="dark"?r.colors.dark[2]:r.colors.gray[6],r.luminanceThreshold),variable:"--mantine-color-dimmed"};if(e==="white"||e==="black")return{color:e,value:e==="white"?r.white:r.black,shade:void 0,isThemeColor:!1,isLight:ab(e==="white"?r.white:r.black,r.luminanceThreshold),variable:`--mantine-color-${e}`};const[o,a]=e.split("."),i=a?Number(a):void 0,s=o in r.colors;if(s){const l=i!==void 0?r.colors[o][i]:r.colors[o][ob(r,n||"light")];return{color:o,value:l,shade:i,isThemeColor:s,isLight:ab(l,r.luminanceThreshold),variable:a?`--mantine-color-${o}-${i}`:`--mantine-color-${o}-filled`}}return{color:e,value:e,isThemeColor:s,isLight:ab(e,r.luminanceThreshold),shade:i,variable:void 0}}function Jo(e,r){const n=nh({color:e||r.primaryColor,theme:r});return n.variable?`var(${n.variable})`:e}function cat(e,r){const n={from:e?.from||r.defaultGradient.from,to:e?.to||r.defaultGradient.to,deg:e?.deg??r.defaultGradient.deg??0},o=Jo(n.from,r),a=Jo(n.to,r);return`linear-gradient(${n.deg}deg, ${o} 0%, ${a} 100%)`}function woe(e,r){if(typeof e!="string"||r>1||r<0)return"rgba(0, 0, 0, 1)";if(e.startsWith("var(")){const i=(1-r)*100;return`color-mix(in srgb, ${e}, transparent ${i}%)`}if(e.startsWith("oklch"))return e.includes("/")?e.replace(/\/\s*[\d.]+\s*\)/,`/ ${r})`):e.replace(")",` / ${r})`);const{r:n,g:o,b:a}=xoe(e);return`rgba(${n}, ${o}, ${a}, ${r})`}const ag=woe,dat={dark:["#C9C9C9","#b8b8b8","#828282","#696969","#424242","#3b3b3b","#2e2e2e","#242424","#1f1f1f","#141414"],gray:["#f8f9fa","#f1f3f5","#e9ecef","#dee2e6","#ced4da","#adb5bd","#868e96","#495057","#343a40","#212529"],red:["#fff5f5","#ffe3e3","#ffc9c9","#ffa8a8","#ff8787","#ff6b6b","#fa5252","#f03e3e","#e03131","#c92a2a"],pink:["#fff0f6","#ffdeeb","#fcc2d7","#faa2c1","#f783ac","#f06595","#e64980","#d6336c","#c2255c","#a61e4d"],grape:["#f8f0fc","#f3d9fa","#eebefa","#e599f7","#da77f2","#cc5de8","#be4bdb","#ae3ec9","#9c36b5","#862e9c"],violet:["#f3f0ff","#e5dbff","#d0bfff","#b197fc","#9775fa","#845ef7","#7950f2","#7048e8","#6741d9","#5f3dc4"],indigo:["#edf2ff","#dbe4ff","#bac8ff","#91a7ff","#748ffc","#5c7cfa","#4c6ef5","#4263eb","#3b5bdb","#364fc7"],blue:["#e7f5ff","#d0ebff","#a5d8ff","#74c0fc","#4dabf7","#339af0","#228be6","#1c7ed6","#1971c2","#1864ab"],cyan:["#e3fafc","#c5f6fa","#99e9f2","#66d9e8","#3bc9db","#22b8cf","#15aabf","#1098ad","#0c8599","#0b7285"],teal:["#e6fcf5","#c3fae8","#96f2d7","#63e6be","#38d9a9","#20c997","#12b886","#0ca678","#099268","#087f5b"],green:["#ebfbee","#d3f9d8","#b2f2bb","#8ce99a","#69db7c","#51cf66","#40c057","#37b24d","#2f9e44","#2b8a3e"],lime:["#f4fce3","#e9fac8","#d8f5a2","#c0eb75","#a9e34b","#94d82d","#82c91e","#74b816","#66a80f","#5c940d"],yellow:["#fff9db","#fff3bf","#ffec99","#ffe066","#ffd43b","#fcc419","#fab005","#f59f00","#f08c00","#e67700"],orange:["#fff4e6","#ffe8cc","#ffd8a8","#ffc078","#ffa94d","#ff922b","#fd7e14","#f76707","#e8590c","#d9480f"]},koe="-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji",uat={scale:1,fontSmoothing:!0,white:"#fff",black:"#000",colors:dat,primaryShade:{light:6,dark:8},primaryColor:"blue",autoContrast:!1,luminanceThreshold:.3,fontFamily:koe,fontFamilyMonospace:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace",cursorType:"default",defaultRadius:"sm",headings:{fontFamily:koe,fontWeight:"700",textWrap:"wrap",sizes:{h1:{fontSize:qe(34),lineHeight:"1.3"},h2:{fontSize:qe(26),lineHeight:"1.35"},h3:{fontSize:qe(22),lineHeight:"1.4"},h4:{fontSize:qe(18),lineHeight:"1.45"},h5:{fontSize:qe(16),lineHeight:"1.5"},h6:{fontSize:qe(14),lineHeight:"1.5"}}},fontSizes:{xs:qe(12),sm:qe(14),md:qe(16),lg:qe(18),xl:qe(20)},lineHeights:{xs:"1.4",sm:"1.45",md:"1.55",lg:"1.6",xl:"1.65"},radius:{xs:qe(2),sm:qe(4),md:qe(8),lg:qe(16),xl:qe(32)},spacing:{xs:qe(10),sm:qe(12),md:qe(16),lg:qe(20),xl:qe(32)},breakpoints:{xs:"36em",sm:"48em",md:"62em",lg:"75em",xl:"88em"},shadows:{xs:`0 ${qe(1)} ${qe(3)} rgba(0, 0, 0, 0.05), 0 ${qe(1)} ${qe(2)} rgba(0, 0, 0, 0.1)`,sm:`0 ${qe(1)} ${qe(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${qe(10)} ${qe(15)} ${qe(-5)}, rgba(0, 0, 0, 0.04) 0 ${qe(7)} ${qe(7)} ${qe(-5)}`,md:`0 ${qe(1)} ${qe(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${qe(20)} ${qe(25)} ${qe(-5)}, rgba(0, 0, 0, 0.04) 0 ${qe(10)} ${qe(10)} ${qe(-5)}`,lg:`0 ${qe(1)} ${qe(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${qe(28)} ${qe(23)} ${qe(-7)}, rgba(0, 0, 0, 0.04) 0 ${qe(12)} ${qe(12)} ${qe(-7)}`,xl:`0 ${qe(1)} ${qe(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${qe(36)} ${qe(28)} ${qe(-7)}, rgba(0, 0, 0, 0.04) 0 ${qe(17)} ${qe(17)} ${qe(-7)}`}},pat=E.createContext(null);function _o(){const e=E.useContext(pat);if(!e)throw new Error("@mantine/core: MantineProvider was not found in component tree, make sure you have it in your app");return e}function JR({color:e,theme:r,autoContrast:n}){return(typeof n=="boolean"?n:r.autoContrast)&&nh({color:e||r.primaryColor,theme:r}).isLight?"var(--mantine-color-black)":"var(--mantine-color-white)"}function _oe(e,r){return JR({color:e.colors[e.primaryColor][ob(e,r)],theme:e,autoContrast:null})}function rk({theme:e,color:r,colorScheme:n,name:o=r,withColorValues:a=!0}){if(!e.colors[r])return{};if(n==="light"){const l=ob(e,"light"),c={[`--mantine-color-${o}-text`]:`var(--mantine-color-${o}-filled)`,[`--mantine-color-${o}-filled`]:`var(--mantine-color-${o}-${l})`,[`--mantine-color-${o}-filled-hover`]:`var(--mantine-color-${o}-${l===9?8:l+1})`,[`--mantine-color-${o}-light`]:ag(e.colors[r][l],.1),[`--mantine-color-${o}-light-hover`]:ag(e.colors[r][l],.12),[`--mantine-color-${o}-light-color`]:`var(--mantine-color-${o}-${l})`,[`--mantine-color-${o}-outline`]:`var(--mantine-color-${o}-${l})`,[`--mantine-color-${o}-outline-hover`]:ag(e.colors[r][l],.05)};return a?{[`--mantine-color-${o}-0`]:e.colors[r][0],[`--mantine-color-${o}-1`]:e.colors[r][1],[`--mantine-color-${o}-2`]:e.colors[r][2],[`--mantine-color-${o}-3`]:e.colors[r][3],[`--mantine-color-${o}-4`]:e.colors[r][4],[`--mantine-color-${o}-5`]:e.colors[r][5],[`--mantine-color-${o}-6`]:e.colors[r][6],[`--mantine-color-${o}-7`]:e.colors[r][7],[`--mantine-color-${o}-8`]:e.colors[r][8],[`--mantine-color-${o}-9`]:e.colors[r][9],...c}:c}const i=ob(e,"dark"),s={[`--mantine-color-${o}-text`]:`var(--mantine-color-${o}-4)`,[`--mantine-color-${o}-filled`]:`var(--mantine-color-${o}-${i})`,[`--mantine-color-${o}-filled-hover`]:`var(--mantine-color-${o}-${i===9?8:i+1})`,[`--mantine-color-${o}-light`]:ag(e.colors[r][Math.max(0,i-2)],.15),[`--mantine-color-${o}-light-hover`]:ag(e.colors[r][Math.max(0,i-2)],.2),[`--mantine-color-${o}-light-color`]:`var(--mantine-color-${o}-${Math.max(i-5,0)})`,[`--mantine-color-${o}-outline`]:`var(--mantine-color-${o}-${Math.max(i-4,0)})`,[`--mantine-color-${o}-outline-hover`]:ag(e.colors[r][Math.max(i-4,0)],.05)};return a?{[`--mantine-color-${o}-0`]:e.colors[r][0],[`--mantine-color-${o}-1`]:e.colors[r][1],[`--mantine-color-${o}-2`]:e.colors[r][2],[`--mantine-color-${o}-3`]:e.colors[r][3],[`--mantine-color-${o}-4`]:e.colors[r][4],[`--mantine-color-${o}-5`]:e.colors[r][5],[`--mantine-color-${o}-6`]:e.colors[r][6],[`--mantine-color-${o}-7`]:e.colors[r][7],[`--mantine-color-${o}-8`]:e.colors[r][8],[`--mantine-color-${o}-9`]:e.colors[r][9],...s}:s}function hat(e){return!!e&&typeof e=="object"&&"mantine-virtual-color"in e}function ig(e,r,n){Bo(r).forEach(o=>Object.assign(e,{[`--mantine-${n}-${o}`]:r[o]}))}(e=>{const r=ob(e,"light"),n=e.defaultRadius in e.radius?e.radius[e.defaultRadius]:qe(e.defaultRadius),o={variables:{"--mantine-z-index-app":"100","--mantine-z-index-modal":"200","--mantine-z-index-popover":"300","--mantine-z-index-overlay":"400","--mantine-z-index-max":"9999","--mantine-scale":e.scale.toString(),"--mantine-cursor-type":e.cursorType,"--mantine-webkit-font-smoothing":e.fontSmoothing?"antialiased":"unset","--mantine-moz-font-smoothing":e.fontSmoothing?"grayscale":"unset","--mantine-color-white":e.white,"--mantine-color-black":e.black,"--mantine-line-height":e.lineHeights.md,"--mantine-font-family":e.fontFamily,"--mantine-font-family-monospace":e.fontFamilyMonospace,"--mantine-font-family-headings":e.headings.fontFamily,"--mantine-heading-font-weight":e.headings.fontWeight,"--mantine-heading-text-wrap":e.headings.textWrap,"--mantine-radius-default":n,"--mantine-primary-color-filled":`var(--mantine-color-${e.primaryColor}-filled)`,"--mantine-primary-color-filled-hover":`var(--mantine-color-${e.primaryColor}-filled-hover)`,"--mantine-primary-color-light":`var(--mantine-color-${e.primaryColor}-light)`,"--mantine-primary-color-light-hover":`var(--mantine-color-${e.primaryColor}-light-hover)`,"--mantine-primary-color-light-color":`var(--mantine-color-${e.primaryColor}-light-color)`},light:{"--mantine-color-scheme":"light","--mantine-primary-color-contrast":_oe(e,"light"),"--mantine-color-bright":"var(--mantine-color-black)","--mantine-color-text":e.black,"--mantine-color-body":e.white,"--mantine-color-error":"var(--mantine-color-red-6)","--mantine-color-placeholder":"var(--mantine-color-gray-5)","--mantine-color-anchor":`var(--mantine-color-${e.primaryColor}-${r})`,"--mantine-color-default":"var(--mantine-color-white)","--mantine-color-default-hover":"var(--mantine-color-gray-0)","--mantine-color-default-color":"var(--mantine-color-black)","--mantine-color-default-border":"var(--mantine-color-gray-4)","--mantine-color-dimmed":"var(--mantine-color-gray-6)","--mantine-color-disabled":"var(--mantine-color-gray-2)","--mantine-color-disabled-color":"var(--mantine-color-gray-5)","--mantine-color-disabled-border":"var(--mantine-color-gray-3)"},dark:{"--mantine-color-scheme":"dark","--mantine-primary-color-contrast":_oe(e,"dark"),"--mantine-color-bright":"var(--mantine-color-white)","--mantine-color-text":"var(--mantine-color-dark-0)","--mantine-color-body":"var(--mantine-color-dark-7)","--mantine-color-error":"var(--mantine-color-red-8)","--mantine-color-placeholder":"var(--mantine-color-dark-3)","--mantine-color-anchor":`var(--mantine-color-${e.primaryColor}-4)`,"--mantine-color-default":"var(--mantine-color-dark-6)","--mantine-color-default-hover":"var(--mantine-color-dark-5)","--mantine-color-default-color":"var(--mantine-color-white)","--mantine-color-default-border":"var(--mantine-color-dark-4)","--mantine-color-dimmed":"var(--mantine-color-dark-2)","--mantine-color-disabled":"var(--mantine-color-dark-6)","--mantine-color-disabled-color":"var(--mantine-color-dark-3)","--mantine-color-disabled-border":"var(--mantine-color-dark-4)"}};ig(o.variables,e.breakpoints,"breakpoint"),ig(o.variables,e.spacing,"spacing"),ig(o.variables,e.fontSizes,"font-size"),ig(o.variables,e.lineHeights,"line-height"),ig(o.variables,e.shadows,"shadow"),ig(o.variables,e.radius,"radius"),e.colors[e.primaryColor].forEach((i,s)=>{o.variables[`--mantine-primary-color-${s}`]=`var(--mantine-color-${e.primaryColor}-${s})`}),Bo(e.colors).forEach(i=>{const s=e.colors[i];if(hat(s)){Object.assign(o.light,rk({theme:e,name:s.name,color:s.light,colorScheme:"light",withColorValues:!0})),Object.assign(o.dark,rk({theme:e,name:s.name,color:s.dark,colorScheme:"dark",withColorValues:!0}));return}s.forEach((l,c)=>{o.variables[`--mantine-color-${i}-${c}`]=l}),Object.assign(o.light,rk({theme:e,color:i,colorScheme:"light",withColorValues:!1})),Object.assign(o.dark,rk({theme:e,color:i,colorScheme:"dark",withColorValues:!1}))});const a=e.headings.sizes;return Bo(a).forEach(i=>{o.variables[`--mantine-${i}-font-size`]=a[i].fontSize,o.variables[`--mantine-${i}-line-height`]=a[i].lineHeight,o.variables[`--mantine-${i}-font-weight`]=a[i].fontWeight||e.headings.fontWeight}),o})(uat);function eN({classNames:e,styles:r,props:n,stylesCtx:o}){const a=_o();return{resolvedClassNames:J4({theme:a,classNames:e,props:n,stylesCtx:o||void 0}),resolvedStyles:ek({theme:a,styles:r,props:n,stylesCtx:o||void 0})}}const fat={always:"mantine-focus-always",auto:"mantine-focus-auto",never:"mantine-focus-never"};function mat({theme:e,options:r,unstyled:n}){return ho(r?.focusable&&!n&&(e.focusClassName||fat[e.focusRing]),r?.active&&!n&&e.activeClassName)}function gat({selector:e,stylesCtx:r,options:n,props:o,theme:a}){return J4({theme:a,classNames:n?.classNames,props:n?.props||o,stylesCtx:r})[e]}function Eoe({selector:e,stylesCtx:r,theme:n,classNames:o,props:a}){return J4({theme:n,classNames:o,props:a,stylesCtx:r})[e]}function yat({rootSelector:e,selector:r,className:n}){return e===r?n:void 0}function bat({selector:e,classes:r,unstyled:n}){return n?void 0:r[e]}function vat({themeName:e,classNamesPrefix:r,selector:n,withStaticClass:o}){return o===!1?[]:e.map(a=>`${r}-${a}-${n}`)}function xat({themeName:e,theme:r,selector:n,props:o,stylesCtx:a}){return e.map(i=>J4({theme:r,classNames:r.components[i]?.classNames,props:o,stylesCtx:a})?.[n])}function wat({options:e,classes:r,selector:n,unstyled:o}){return e?.variant&&!o?r[`${n}--${e.variant}`]:void 0}function kat({theme:e,options:r,themeName:n,selector:o,classNamesPrefix:a,classNames:i,classes:s,unstyled:l,className:c,rootSelector:d,props:u,stylesCtx:h,withStaticClasses:f,headless:g,transformedStyles:b}){return ho(mat({theme:e,options:r,unstyled:l||g}),xat({theme:e,themeName:n,selector:o,props:u,stylesCtx:h}),wat({options:r,classes:s,selector:o,unstyled:l}),Eoe({selector:o,stylesCtx:h,theme:e,classNames:i,props:u}),Eoe({selector:o,stylesCtx:h,theme:e,classNames:b,props:u}),gat({selector:o,stylesCtx:h,options:r,props:u,theme:e}),yat({rootSelector:d,selector:o,className:c}),bat({selector:o,classes:s,unstyled:l||g}),f&&!g&&vat({themeName:n,classNamesPrefix:a,selector:o,withStaticClass:r?.withStaticClass}),r?.className)}function _at({theme:e,themeName:r,props:n,stylesCtx:o,selector:a}){return r.map(i=>ek({theme:e,styles:e.components[i]?.styles,props:n,stylesCtx:o})[a]).reduce((i,s)=>({...i,...s}),{})}function tN({style:e,theme:r}){return Array.isArray(e)?[...e].reduce((n,o)=>({...n,...tN({style:o,theme:r})}),{}):typeof e=="function"?e(r):e??{}}function Eat(e){return e.reduce((r,n)=>(n&&Object.keys(n).forEach(o=>{r[o]={...r[o],...Zd(n[o])}}),r),{})}function Sat({vars:e,varsResolver:r,theme:n,props:o,stylesCtx:a,selector:i,themeName:s,headless:l}){return Eat([l?{}:r?.(n,o,a),...s.map(c=>n.components?.[c]?.vars?.(n,o,a)),e?.(n,o,a)])?.[i]}function Cat({theme:e,themeName:r,selector:n,options:o,props:a,stylesCtx:i,rootSelector:s,styles:l,style:c,vars:d,varsResolver:u,headless:h,withStylesTransform:f}){return{...!f&&_at({theme:e,themeName:r,props:a,stylesCtx:i,selector:n}),...!f&&ek({theme:e,styles:l,props:a,stylesCtx:i})[n],...!f&&ek({theme:e,styles:o?.styles,props:o?.props||a,stylesCtx:i})[n],...Sat({theme:e,props:a,stylesCtx:i,vars:d,varsResolver:u,selector:n,themeName:r,headless:h}),...s===n?tN({style:c,theme:e}):null,...tN({style:o?.style,theme:e})}}function Tat({props:e,stylesCtx:r,themeName:n}){const o=_o(),a=rat()?.();return{getTransformedStyles:i=>a?[...i.map(s=>a(s,{props:e,theme:o,ctx:r})),...n.map(s=>a(o.components[s]?.styles,{props:e,theme:o,ctx:r}))].filter(Boolean):[],withStylesTransform:!!a}}function vt({name:e,classes:r,props:n,stylesCtx:o,className:a,style:i,rootSelector:s="root",unstyled:l,classNames:c,styles:d,vars:u,varsResolver:h,attributes:f}){const g=_o(),b=Zot(),x=Jot(),w=eat(),k=(Array.isArray(e)?e:[e]).filter(T=>T),{withStylesTransform:C,getTransformedStyles:_}=Tat({props:n,stylesCtx:o,themeName:k});return(T,A)=>({className:kat({theme:g,options:A,themeName:k,selector:T,classNamesPrefix:b,classNames:c,classes:r,unstyled:l,className:a,rootSelector:s,props:n,stylesCtx:o,withStaticClasses:x,headless:w,transformedStyles:_([A?.styles,d])}),style:Cat({theme:g,themeName:k,selector:T,options:A,props:n,stylesCtx:o,rootSelector:s,styles:d,style:i,vars:u,varsResolver:h,headless:w,withStylesTransform:C}),...f?.[T]})}function Aat(e,r){return typeof e=="boolean"?e:r.autoContrast}function ze(e,r,n){const o=_o(),a=o.components[e]?.defaultProps,i=typeof a=="function"?a(o):a;return{...r,...i,...Zd(n)}}function rN(e){return Bo(e).reduce((r,n)=>e[n]!==void 0?`${r}${fot(n)}:${e[n]};`:r,"").trim()}function Rat({selector:e,styles:r,media:n,container:o}){const a=r?rN(r):"",i=Array.isArray(n)?n.map(l=>`@media${l.query}{${e}{${rN(l.styles)}}}`):[],s=Array.isArray(o)?o.map(l=>`@container ${l.query}{${e}{${rN(l.styles)}}}`):[];return`${a?`${e}{${a}}`:""}${i.join("")}${s.join("")}`.trim()}function sg(e){const r=Qot();return y.jsx("style",{"data-mantine-styles":"inline",nonce:r?.(),dangerouslySetInnerHTML:{__html:Rat(e)}})}function nN(e){const{m:r,mx:n,my:o,mt:a,mb:i,ml:s,mr:l,me:c,ms:d,p:u,px:h,py:f,pt:g,pb:b,pl:x,pr:w,pe:k,ps:C,bd:_,bdrs:T,bg:A,c:R,opacity:D,ff:N,fz:P,fw:O,lts:F,ta:L,lh:U,fs:M,tt:V,td:I,w:H,miw:q,maw:Z,h:W,mih:G,mah:K,bgsz:j,bgp:Y,bgr:Q,bga:J,pos:ie,top:ne,left:re,bottom:ge,right:De,inset:he,display:me,flex:Te,hiddenFrom:Ie,visibleFrom:Ze,lightHidden:rt,darkHidden:Rt,sx:Qe,...Mt}=e;return{styleProps:Zd({m:r,mx:n,my:o,mt:a,mb:i,ml:s,mr:l,me:c,ms:d,p:u,px:h,py:f,pt:g,pb:b,pl:x,pr:w,pe:k,ps:C,bd:_,bg:A,c:R,opacity:D,ff:N,fz:P,fw:O,lts:F,ta:L,lh:U,fs:M,tt:V,td:I,w:H,miw:q,maw:Z,h:W,mih:G,mah:K,bgsz:j,bgp:Y,bgr:Q,bga:J,pos:ie,top:ne,left:re,bottom:ge,right:De,inset:he,display:me,flex:Te,bdrs:T,hiddenFrom:Ie,visibleFrom:Ze,lightHidden:rt,darkHidden:Rt,sx:Qe}),rest:Mt}}const Nat={m:{type:"spacing",property:"margin"},mt:{type:"spacing",property:"marginTop"},mb:{type:"spacing",property:"marginBottom"},ml:{type:"spacing",property:"marginLeft"},mr:{type:"spacing",property:"marginRight"},ms:{type:"spacing",property:"marginInlineStart"},me:{type:"spacing",property:"marginInlineEnd"},mx:{type:"spacing",property:"marginInline"},my:{type:"spacing",property:"marginBlock"},p:{type:"spacing",property:"padding"},pt:{type:"spacing",property:"paddingTop"},pb:{type:"spacing",property:"paddingBottom"},pl:{type:"spacing",property:"paddingLeft"},pr:{type:"spacing",property:"paddingRight"},ps:{type:"spacing",property:"paddingInlineStart"},pe:{type:"spacing",property:"paddingInlineEnd"},px:{type:"spacing",property:"paddingInline"},py:{type:"spacing",property:"paddingBlock"},bd:{type:"border",property:"border"},bdrs:{type:"radius",property:"borderRadius"},bg:{type:"color",property:"background"},c:{type:"textColor",property:"color"},opacity:{type:"identity",property:"opacity"},ff:{type:"fontFamily",property:"fontFamily"},fz:{type:"fontSize",property:"fontSize"},fw:{type:"identity",property:"fontWeight"},lts:{type:"size",property:"letterSpacing"},ta:{type:"identity",property:"textAlign"},lh:{type:"lineHeight",property:"lineHeight"},fs:{type:"identity",property:"fontStyle"},tt:{type:"identity",property:"textTransform"},td:{type:"identity",property:"textDecoration"},w:{type:"spacing",property:"width"},miw:{type:"spacing",property:"minWidth"},maw:{type:"spacing",property:"maxWidth"},h:{type:"spacing",property:"height"},mih:{type:"spacing",property:"minHeight"},mah:{type:"spacing",property:"maxHeight"},bgsz:{type:"size",property:"backgroundSize"},bgp:{type:"identity",property:"backgroundPosition"},bgr:{type:"identity",property:"backgroundRepeat"},bga:{type:"identity",property:"backgroundAttachment"},pos:{type:"identity",property:"position"},top:{type:"size",property:"top"},left:{type:"size",property:"left"},bottom:{type:"size",property:"bottom"},right:{type:"size",property:"right"},inset:{type:"size",property:"inset"},display:{type:"identity",property:"display"},flex:{type:"identity",property:"flex"}};function oN(e,r){const n=nh({color:e,theme:r});return n.color==="dimmed"?"var(--mantine-color-dimmed)":n.color==="bright"?"var(--mantine-color-bright)":n.variable?`var(${n.variable})`:n.color}function Dat(e,r){const n=nh({color:e,theme:r});return n.isThemeColor&&n.shade===void 0?`var(--mantine-color-${n.color}-text)`:oN(e,r)}function $at(e,r){if(typeof e=="number")return qe(e);if(typeof e=="string"){const[n,o,...a]=e.split(" ").filter(s=>s.trim()!=="");let i=`${qe(n)}`;return o&&(i+=` ${o}`),a.length>0&&(i+=` ${oN(a.join(" "),r)}`),i.trim()}return e}const Soe={text:"var(--mantine-font-family)",mono:"var(--mantine-font-family-monospace)",monospace:"var(--mantine-font-family-monospace)",heading:"var(--mantine-font-family-headings)",headings:"var(--mantine-font-family-headings)"};function Pat(e){return typeof e=="string"&&e in Soe?Soe[e]:e}const Mat=["h1","h2","h3","h4","h5","h6"];function zat(e,r){return typeof e=="string"&&e in r.fontSizes?`var(--mantine-font-size-${e})`:typeof e=="string"&&Mat.includes(e)?`var(--mantine-${e}-font-size)`:typeof e=="number"||typeof e=="string"?qe(e):e}function Iat(e){return e}const Oat=["h1","h2","h3","h4","h5","h6"];function jat(e,r){return typeof e=="string"&&e in r.lineHeights?`var(--mantine-line-height-${e})`:typeof e=="string"&&Oat.includes(e)?`var(--mantine-${e}-line-height)`:e}function Lat(e,r){return typeof e=="string"&&e in r.radius?`var(--mantine-radius-${e})`:typeof e=="number"||typeof e=="string"?qe(e):e}function Bat(e){return typeof e=="number"?qe(e):e}function Fat(e,r){if(typeof e=="number")return qe(e);if(typeof e=="string"){const n=e.replace("-","");if(!(n in r.spacing))return qe(e);const o=`--mantine-spacing-${n}`;return e.startsWith("-")?`calc(var(${o}) * -1)`:`var(${o})`}return e}const aN={color:oN,textColor:Dat,fontSize:zat,spacing:Fat,radius:Lat,identity:Iat,size:Bat,lineHeight:jat,fontFamily:Pat,border:$at};function Coe(e){return e.replace("(min-width: ","").replace("em)","")}function Hat({media:e,...r}){const n=Object.keys(e).sort((o,a)=>Number(Coe(o))-Number(Coe(a))).map(o=>({query:o,styles:e[o]}));return{...r,media:n}}function Vat(e){if(typeof e!="object"||e===null)return!1;const r=Object.keys(e);return!(r.length===1&&r[0]==="base")}function qat(e){return typeof e=="object"&&e!==null?"base"in e?e.base:void 0:e}function Uat(e){return typeof e=="object"&&e!==null?Bo(e).filter(r=>r!=="base"):[]}function Wat(e,r){return typeof e=="object"&&e!==null&&r in e?e[r]:e}function Toe({styleProps:e,data:r,theme:n}){return Hat(Bo(e).reduce((o,a)=>{if(a==="hiddenFrom"||a==="visibleFrom"||a==="sx")return o;const i=r[a],s=Array.isArray(i.property)?i.property:[i.property],l=qat(e[a]);if(!Vat(e[a]))return s.forEach(d=>{o.inlineStyles[d]=aN[i.type](l,n)}),o;o.hasResponsiveStyles=!0;const c=Uat(e[a]);return s.forEach(d=>{l!=null&&(o.styles[d]=aN[i.type](l,n)),c.forEach(u=>{const h=`(min-width: ${n.breakpoints[u]})`;o.media[h]={...o.media[h],[d]:aN[i.type](Wat(e[a],u),n)}})}),o},{hasResponsiveStyles:!1,styles:{},inlineStyles:{},media:{}}))}function ib(){return`__m__-${E.useId().replace(/[:«»]/g,"")}`}function iN(e,r){return Array.isArray(e)?[...e].reduce((n,o)=>({...n,...iN(o,r)}),{}):typeof e=="function"?e(r):e??{}}function Aoe(e){return e.startsWith("data-")?e:`data-${e}`}function Yat(e){return Object.keys(e).reduce((r,n)=>{const o=e[n];return o===void 0||o===""||o===!1||o===null||(r[Aoe(n)]=e[n]),r},{})}function Roe(e){return e?typeof e=="string"?{[Aoe(e)]:!0}:Array.isArray(e)?[...e].reduce((r,n)=>({...r,...Roe(n)}),{}):Yat(e):null}function sN(e,r){return Array.isArray(e)?[...e].reduce((n,o)=>({...n,...sN(o,r)}),{}):typeof e=="function"?e(r):e??{}}function Gat({theme:e,style:r,vars:n,styleProps:o}){const a=sN(r,e),i=sN(n,e);return{...a,...i,...o}}const Noe=E.forwardRef(({component:e,style:r,__vars:n,className:o,variant:a,mod:i,size:s,hiddenFrom:l,visibleFrom:c,lightHidden:d,darkHidden:u,renderRoot:h,__size:f,...g},b)=>{const x=_o(),w=e||"div",{styleProps:k,rest:C}=nN(g),_=tat()?.()?.(k.sx),T=ib(),A=Toe({styleProps:k,theme:x,data:Nat}),R={ref:b,style:Gat({theme:x,style:r,vars:n,styleProps:A.inlineStyles}),className:ho(o,_,{[T]:A.hasResponsiveStyles,"mantine-light-hidden":d,"mantine-dark-hidden":u,[`mantine-hidden-from-${l}`]:l,[`mantine-visible-from-${c}`]:c}),"data-variant":a,"data-size":coe(s)?void 0:s||void 0,size:f,...Roe(i),...C};return y.jsxs(y.Fragment,{children:[A.hasResponsiveStyles&&y.jsx(sg,{selector:`.${T}`,styles:A.styles,media:A.media}),typeof h=="function"?h(R):y.jsx(w,{...R})]})});Noe.displayName="@mantine/core/Box";const Le=Noe;function Doe(e){return e}function Je(e){const r=E.forwardRef(e);return r.extend=Doe,r.withProps=n=>{const o=E.forwardRef((a,i)=>y.jsx(r,{...n,...a,ref:i}));return o.extend=r.extend,o.displayName=`WithProps(${r.displayName})`,o},r}function Jn(e){const r=E.forwardRef(e);return r.withProps=n=>{const o=E.forwardRef((a,i)=>y.jsx(r,{...n,...a,ref:i}));return o.extend=r.extend,o.displayName=`WithProps(${r.displayName})`,o},r.extend=Doe,r}const Xat=E.createContext({dir:"ltr",toggleDirection:()=>{},setDirection:()=>{}});function Rc(){return E.useContext(Xat)}function Kat(e){if(!e||typeof e=="string")return 0;const r=e/36;return Math.round((4+15*r**.25+r/5)*10)}function lN(e){return e?.current?e.current.scrollHeight:"auto"}const nk=typeof window<"u"&&window.requestAnimationFrame,$oe=0,Zat=e=>({height:0,overflow:"hidden",...e?{}:{display:"none"}});function Qat({transitionDuration:e,transitionTimingFunction:r="ease",onTransitionEnd:n=()=>{},opened:o,keepMounted:a=!1}){const i=E.useRef(null),s=Zat(a),[l,c]=E.useState(o?{}:s),d=b=>{Ki.flushSync(()=>c(b))},u=b=>{d(x=>({...x,...b}))};function h(b){const x=e||Kat(b);return{transition:`height ${x}ms ${r}, opacity ${x}ms ${r}`}}th(()=>{typeof nk=="function"&&nk(o?()=>{u({willChange:"height",display:"block",overflow:"hidden"}),nk(()=>{const b=lN(i);u({...h(b),height:b})})}:()=>{const b=lN(i);u({...h(b),willChange:"height",height:b}),nk(()=>u({height:$oe,overflow:"hidden"}))})},[o]);const f=b=>{if(!(b.target!==i.current||b.propertyName!=="height"))if(o){const x=lN(i);x===l.height?d({}):u({height:x}),n()}else l.height===$oe&&(d(s),n())};function g({style:b={},refKey:x="ref",...w}={}){const k=w[x],C={"aria-hidden":!o,...w,[x]:goe(i,k),onTransitionEnd:f,style:{boxSizing:"border-box",...b,...l}};return un.version.startsWith("18")?o||(C.inert=""):C.inert=!o,C}return g}const Jat={transitionDuration:200,transitionTimingFunction:"ease",animateOpacity:!0},Poe=Je((e,r)=>{const{children:n,in:o,transitionDuration:a,transitionTimingFunction:i,style:s,onTransitionEnd:l,animateOpacity:c,keepMounted:d,...u}=ze("Collapse",Jat,e),h=_o(),f=ZR(),g=h.respectReducedMotion&&f?0:a,b=Qat({opened:o,transitionDuration:g,transitionTimingFunction:i,onTransitionEnd:l,keepMounted:d});return g===0?o?y.jsx(Le,{...u,children:n}):null:y.jsx(Le,{...b({style:{opacity:o||!c?1:0,transition:c?`opacity ${g}ms ${i}`:"none",...iN(s,h)},ref:r,...u}),children:n})});Poe.displayName="@mantine/core/Collapse";function ok(){return typeof window<"u"}function lg(e){return Moe(e)?(e.nodeName||"").toLowerCase():"#document"}function ga(e){var r;return(e==null||(r=e.ownerDocument)==null?void 0:r.defaultView)||window}function Sl(e){var r;return(r=(Moe(e)?e.ownerDocument:e.document)||window.document)==null?void 0:r.documentElement}function Moe(e){return ok()?e instanceof Node||e instanceof ga(e).Node:!1}function Ur(e){return ok()?e instanceof Element||e instanceof ga(e).Element:!1}function Ua(e){return ok()?e instanceof HTMLElement||e instanceof ga(e).HTMLElement:!1}function cN(e){return!ok()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ga(e).ShadowRoot}const eit=new Set(["inline","contents"]);function sb(e){const{overflow:r,overflowX:n,overflowY:o,display:a}=$i(e);return/auto|scroll|overlay|hidden|clip/.test(r+o+n)&&!eit.has(a)}const tit=new Set(["table","td","th"]);function rit(e){return tit.has(lg(e))}const nit=[":popover-open",":modal"];function ak(e){return nit.some(r=>{try{return e.matches(r)}catch{return!1}})}const oit=["transform","translate","scale","rotate","perspective"],ait=["transform","translate","scale","rotate","perspective","filter"],iit=["paint","layout","strict","content"];function dN(e){const r=ik(),n=Ur(e)?$i(e):e;return oit.some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!r&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!r&&(n.filter?n.filter!=="none":!1)||ait.some(o=>(n.willChange||"").includes(o))||iit.some(o=>(n.contain||"").includes(o))}function sit(e){let r=Dc(e);for(;Ua(r)&&!Nc(r);){if(dN(r))return r;if(ak(r))return null;r=Dc(r)}return null}function ik(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const lit=new Set(["html","body","#document"]);function Nc(e){return lit.has(lg(e))}function $i(e){return ga(e).getComputedStyle(e)}function sk(e){return Ur(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Dc(e){if(lg(e)==="html")return e;const r=e.assignedSlot||e.parentNode||cN(e)&&e.host||Sl(e);return cN(r)?r.host:r}function zoe(e){const r=Dc(e);return Nc(r)?e.ownerDocument?e.ownerDocument.body:e.body:Ua(r)&&sb(r)?r:zoe(r)}function $c(e,r,n){var o;r===void 0&&(r=[]),n===void 0&&(n=!0);const a=zoe(e),i=a===((o=e.ownerDocument)==null?void 0:o.body),s=ga(a);if(i){const l=uN(s);return r.concat(s,s.visualViewport||[],sb(a)?a:[],l&&n?$c(l):[])}return r.concat(a,$c(a,[],n))}function uN(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const cit=["top","right","bottom","left"],zs=Math.min,Ho=Math.max,lk=Math.round,ck=Math.floor,Cl=e=>({x:e,y:e}),dit={left:"right",right:"left",bottom:"top",top:"bottom"},uit={start:"end",end:"start"};function pN(e,r,n){return Ho(e,zs(r,n))}function Tl(e,r){return typeof e=="function"?e(r):e}function Is(e){return e.split("-")[0]}function cg(e){return e.split("-")[1]}function hN(e){return e==="x"?"y":"x"}function fN(e){return e==="y"?"height":"width"}const pit=new Set(["top","bottom"]);function Os(e){return pit.has(Is(e))?"y":"x"}function mN(e){return hN(Os(e))}function hit(e,r,n){n===void 0&&(n=!1);const o=cg(e),a=mN(e),i=fN(a);let s=a==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return r.reference[i]>r.floating[i]&&(s=dk(s)),[s,dk(s)]}function fit(e){const r=dk(e);return[gN(e),r,gN(r)]}function gN(e){return e.replace(/start|end/g,r=>uit[r])}const Ioe=["left","right"],Ooe=["right","left"],mit=["top","bottom"],git=["bottom","top"];function yit(e,r,n){switch(e){case"top":case"bottom":return n?r?Ooe:Ioe:r?Ioe:Ooe;case"left":case"right":return r?mit:git;default:return[]}}function bit(e,r,n,o){const a=cg(e);let i=yit(Is(e),n==="start",o);return a&&(i=i.map(s=>s+"-"+a),r&&(i=i.concat(i.map(gN)))),i}function dk(e){return e.replace(/left|right|bottom|top/g,r=>dit[r])}function vit(e){return{top:0,right:0,bottom:0,left:0,...e}}function yN(e){return typeof e!="number"?vit(e):{top:e,right:e,bottom:e,left:e}}function dg(e){const{x:r,y:n,width:o,height:a}=e;return{width:o,height:a,top:n,left:r,right:r+o,bottom:n+a,x:r,y:n}}function xit(){const e=navigator.userAgentData;return e!=null&&e.platform?e.platform:navigator.platform}function wit(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(r=>{let{brand:n,version:o}=r;return n+"/"+o}).join(" "):navigator.userAgent}function kit(){return/apple/i.test(navigator.vendor)}function _it(){return xit().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function Eit(){return wit().includes("jsdom/")}const joe="data-floating-ui-focusable",Sit="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function Loe(e){let r=e.activeElement;for(;((n=r)==null||(n=n.shadowRoot)==null?void 0:n.activeElement)!=null;){var n;r=r.shadowRoot.activeElement}return r}function lb(e,r){if(!e||!r)return!1;const n=r.getRootNode==null?void 0:r.getRootNode();if(e.contains(r))return!0;if(n&&cN(n)){let o=r;for(;o;){if(e===o)return!0;o=o.parentNode||o.host}}return!1}function ug(e){return"composedPath"in e?e.composedPath()[0]:e.target}function bN(e,r){if(r==null)return!1;if("composedPath"in e)return e.composedPath().includes(r);const n=e;return n.target!=null&&r.contains(n.target)}function Cit(e){return e.matches("html,body")}function oh(e){return e?.ownerDocument||document}function Tit(e){return Ua(e)&&e.matches(Sit)}function Ait(e){if(!e||Eit())return!0;try{return e.matches(":focus-visible")}catch{return!0}}function Rit(e){return e?e.hasAttribute(joe)?e:e.querySelector("["+joe+"]")||e:null}function uk(e,r,n){return n===void 0&&(n=!0),e.filter(o=>{var a;return o.parentId===r&&(!n||((a=o.context)==null?void 0:a.open))}).flatMap(o=>[o,...uk(e,o.id,n)])}function Nit(e){return"nativeEvent"in e}function vN(e,r){const n=["mouse","pen"];return n.push("",void 0),n.includes(e)}var Dit=typeof document<"u",$it=function(){},Al=Dit?E.useLayoutEffect:$it;const Pit={...Hv};function pk(e){const r=E.useRef(e);return Al(()=>{r.current=e}),r}const Mit=Pit.useInsertionEffect,zit=Mit||(e=>e());function Rl(e){const r=E.useRef(()=>{});return zit(()=>{r.current=e}),E.useCallback(function(){for(var n=arguments.length,o=new Array(n),a=0;a{const{placement:o="bottom",strategy:a="absolute",middleware:i=[],platform:s}=n,l=i.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(r));let d=await s.getElementRects({reference:e,floating:r,strategy:a}),{x:u,y:h}=Boe(d,o,c),f=o,g={},b=0;for(let x=0;x({name:"arrow",options:e,async fn(r){const{x:n,y:o,placement:a,rects:i,platform:s,elements:l,middlewareData:c}=r,{element:d,padding:u=0}=Tl(e,r)||{};if(d==null)return{};const h=yN(u),f={x:n,y:o},g=mN(a),b=fN(g),x=await s.getDimensions(d),w=g==="y",k=w?"top":"left",C=w?"bottom":"right",_=w?"clientHeight":"clientWidth",T=i.reference[b]+i.reference[g]-f[g]-i.floating[b],A=f[g]-i.reference[g],R=await(s.getOffsetParent==null?void 0:s.getOffsetParent(d));let D=R?R[_]:0;(!D||!await(s.isElement==null?void 0:s.isElement(R)))&&(D=l.floating[_]||i.floating[b]);const N=T/2-A/2,P=D/2-x[b]/2-1,O=zs(h[k],P),F=zs(h[C],P),L=O,U=D-x[b]-F,M=D/2-x[b]/2+N,V=pN(L,M,U),I=!c.arrow&&cg(a)!=null&&M!==V&&i.reference[b]/2-(MM<=0)){var F,L;const M=(((F=i.flip)==null?void 0:F.index)||0)+1,V=D[M];if(V&&(!(h==="alignment"&&C!==Os(V))||O.every(H=>Os(H.placement)===C?H.overflows[0]>0:!0)))return{data:{index:M,overflows:O},reset:{placement:V}};let I=(L=O.filter(H=>H.overflows[0]<=0).sort((H,q)=>H.overflows[1]-q.overflows[1])[0])==null?void 0:L.placement;if(!I)switch(g){case"bestFit":{var U;const H=(U=O.filter(q=>{if(R){const Z=Os(q.placement);return Z===C||Z==="y"}return!0}).map(q=>[q.placement,q.overflows.filter(Z=>Z>0).reduce((Z,W)=>Z+W,0)]).sort((q,Z)=>q[1]-Z[1])[0])==null?void 0:U[0];H&&(I=H);break}case"initialPlacement":I=l;break}if(a!==I)return{reset:{placement:I}}}return{}}}};function Foe(e,r){return{top:e.top-r.height,right:e.right-r.width,bottom:e.bottom-r.height,left:e.left-r.width}}function Hoe(e){return cit.some(r=>e[r]>=0)}const Lit=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(r){const{rects:n}=r,{strategy:o="referenceHidden",...a}=Tl(e,r);switch(o){case"referenceHidden":{const i=await cb(r,{...a,elementContext:"reference"}),s=Foe(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Hoe(s)}}}case"escaped":{const i=await cb(r,{...a,altBoundary:!0}),s=Foe(i,n.floating);return{data:{escapedOffsets:s,escaped:Hoe(s)}}}default:return{}}}}};function Voe(e){const r=zs(...e.map(i=>i.left)),n=zs(...e.map(i=>i.top)),o=Ho(...e.map(i=>i.right)),a=Ho(...e.map(i=>i.bottom));return{x:r,y:n,width:o-r,height:a-n}}function Bit(e){const r=e.slice().sort((a,i)=>a.y-i.y),n=[];let o=null;for(let a=0;ao.height/2?n.push([i]):n[n.length-1].push(i),o=i}return n.map(a=>dg(Voe(a)))}const Fit=function(e){return e===void 0&&(e={}),{name:"inline",options:e,async fn(r){const{placement:n,elements:o,rects:a,platform:i,strategy:s}=r,{padding:l=2,x:c,y:d}=Tl(e,r),u=Array.from(await(i.getClientRects==null?void 0:i.getClientRects(o.reference))||[]),h=Bit(u),f=dg(Voe(u)),g=yN(l);function b(){if(h.length===2&&h[0].left>h[1].right&&c!=null&&d!=null)return h.find(w=>c>w.left-g.left&&cw.top-g.top&&d=2){if(Os(n)==="y"){const O=h[0],F=h[h.length-1],L=Is(n)==="top",U=O.top,M=F.bottom,V=L?O.left:F.left,I=L?O.right:F.right,H=I-V,q=M-U;return{top:U,bottom:M,left:V,right:I,width:H,height:q,x:V,y:U}}const w=Is(n)==="left",k=Ho(...h.map(O=>O.right)),C=zs(...h.map(O=>O.left)),_=h.filter(O=>w?O.left===C:O.right===k),T=_[0].top,A=_[_.length-1].bottom,R=C,D=k,N=D-R,P=A-T;return{top:T,bottom:A,left:R,right:D,width:N,height:P,x:R,y:T}}return f}const x=await i.getElementRects({reference:{getBoundingClientRect:b},floating:o.floating,strategy:s});return a.reference.x!==x.reference.x||a.reference.y!==x.reference.y||a.reference.width!==x.reference.width||a.reference.height!==x.reference.height?{reset:{rects:x}}:{}}}},qoe=new Set(["left","top"]);async function Hit(e,r){const{placement:n,platform:o,elements:a}=e,i=await(o.isRTL==null?void 0:o.isRTL(a.floating)),s=Is(n),l=cg(n),c=Os(n)==="y",d=qoe.has(s)?-1:1,u=i&&c?-1:1,h=Tl(r,e);let{mainAxis:f,crossAxis:g,alignmentAxis:b}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return l&&typeof b=="number"&&(g=l==="end"?b*-1:b),c?{x:g*u,y:f*d}:{x:f*d,y:g*u}}const Vit=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(r){var n,o;const{x:a,y:i,placement:s,middlewareData:l}=r,c=await Hit(r,e);return s===((n=l.offset)==null?void 0:n.placement)&&(o=l.arrow)!=null&&o.alignmentOffset?{}:{x:a+c.x,y:i+c.y,data:{...c,placement:s}}}}},qit=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(r){const{x:n,y:o,placement:a}=r,{mainAxis:i=!0,crossAxis:s=!1,limiter:l={fn:w=>{let{x:k,y:C}=w;return{x:k,y:C}}},...c}=Tl(e,r),d={x:n,y:o},u=await cb(r,c),h=Os(Is(a)),f=hN(h);let g=d[f],b=d[h];if(i){const w=f==="y"?"top":"left",k=f==="y"?"bottom":"right",C=g+u[w],_=g-u[k];g=pN(C,g,_)}if(s){const w=h==="y"?"top":"left",k=h==="y"?"bottom":"right",C=b+u[w],_=b-u[k];b=pN(C,b,_)}const x=l.fn({...r,[f]:g,[h]:b});return{...x,data:{x:x.x-n,y:x.y-o,enabled:{[f]:i,[h]:s}}}}}},Uit=function(e){return e===void 0&&(e={}),{options:e,fn(r){const{x:n,y:o,placement:a,rects:i,middlewareData:s}=r,{offset:l=0,mainAxis:c=!0,crossAxis:d=!0}=Tl(e,r),u={x:n,y:o},h=Os(a),f=hN(h);let g=u[f],b=u[h];const x=Tl(l,r),w=typeof x=="number"?{mainAxis:x,crossAxis:0}:{mainAxis:0,crossAxis:0,...x};if(c){const _=f==="y"?"height":"width",T=i.reference[f]-i.floating[_]+w.mainAxis,A=i.reference[f]+i.reference[_]-w.mainAxis;gA&&(g=A)}if(d){var k,C;const _=f==="y"?"width":"height",T=qoe.has(Is(a)),A=i.reference[h]-i.floating[_]+(T&&((k=s.offset)==null?void 0:k[h])||0)+(T?0:w.crossAxis),R=i.reference[h]+i.reference[_]+(T?0:((C=s.offset)==null?void 0:C[h])||0)-(T?w.crossAxis:0);bR&&(b=R)}return{[f]:g,[h]:b}}}},Wit=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(r){var n,o;const{placement:a,rects:i,platform:s,elements:l}=r,{apply:c=()=>{},...d}=Tl(e,r),u=await cb(r,d),h=Is(a),f=cg(a),g=Os(a)==="y",{width:b,height:x}=i.floating;let w,k;h==="top"||h==="bottom"?(w=h,k=f===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(k=h,w=f==="end"?"top":"bottom");const C=x-u.top-u.bottom,_=b-u.left-u.right,T=zs(x-u[w],C),A=zs(b-u[k],_),R=!r.middlewareData.shift;let D=T,N=A;if((n=r.middlewareData.shift)!=null&&n.enabled.x&&(N=_),(o=r.middlewareData.shift)!=null&&o.enabled.y&&(D=C),R&&!f){const O=Ho(u.left,0),F=Ho(u.right,0),L=Ho(u.top,0),U=Ho(u.bottom,0);g?N=b-2*(O!==0||F!==0?O+F:Ho(u.left,u.right)):D=x-2*(L!==0||U!==0?L+U:Ho(u.top,u.bottom))}await c({...r,availableWidth:N,availableHeight:D});const P=await s.getDimensions(l.floating);return b!==P.width||x!==P.height?{reset:{rects:!0}}:{}}}};function Uoe(e){const r=$i(e);let n=parseFloat(r.width)||0,o=parseFloat(r.height)||0;const a=Ua(e),i=a?e.offsetWidth:n,s=a?e.offsetHeight:o,l=lk(n)!==i||lk(o)!==s;return l&&(n=i,o=s),{width:n,height:o,$:l}}function xN(e){return Ur(e)?e:e.contextElement}function pg(e){const r=xN(e);if(!Ua(r))return Cl(1);const n=r.getBoundingClientRect(),{width:o,height:a,$:i}=Uoe(r);let s=(i?lk(n.width):n.width)/o,l=(i?lk(n.height):n.height)/a;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const Yit=Cl(0);function Woe(e){const r=ga(e);return!ik()||!r.visualViewport?Yit:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function Git(e,r,n){return r===void 0&&(r=!1),!n||r&&n!==ga(e)?!1:r}function ah(e,r,n,o){r===void 0&&(r=!1),n===void 0&&(n=!1);const a=e.getBoundingClientRect(),i=xN(e);let s=Cl(1);r&&(o?Ur(o)&&(s=pg(o)):s=pg(e));const l=Git(i,n,o)?Woe(i):Cl(0);let c=(a.left+l.x)/s.x,d=(a.top+l.y)/s.y,u=a.width/s.x,h=a.height/s.y;if(i){const f=ga(i),g=o&&Ur(o)?ga(o):o;let b=f,x=uN(b);for(;x&&o&&g!==b;){const w=pg(x),k=x.getBoundingClientRect(),C=$i(x),_=k.left+(x.clientLeft+parseFloat(C.paddingLeft))*w.x,T=k.top+(x.clientTop+parseFloat(C.paddingTop))*w.y;c*=w.x,d*=w.y,u*=w.x,h*=w.y,c+=_,d+=T,b=ga(x),x=uN(b)}}return dg({width:u,height:h,x:c,y:d})}function hk(e,r){const n=sk(e).scrollLeft;return r?r.left+n:ah(Sl(e)).left+n}function Yoe(e,r){const n=e.getBoundingClientRect(),o=n.left+r.scrollLeft-hk(e,n),a=n.top+r.scrollTop;return{x:o,y:a}}function Xit(e){let{elements:r,rect:n,offsetParent:o,strategy:a}=e;const i=a==="fixed",s=Sl(o),l=r?ak(r.floating):!1;if(o===s||l&&i)return n;let c={scrollLeft:0,scrollTop:0},d=Cl(1);const u=Cl(0),h=Ua(o);if((h||!h&&!i)&&((lg(o)!=="body"||sb(s))&&(c=sk(o)),Ua(o))){const g=ah(o);d=pg(o),u.x=g.x+o.clientLeft,u.y=g.y+o.clientTop}const f=s&&!h&&!i?Yoe(s,c):Cl(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-c.scrollLeft*d.x+u.x+f.x,y:n.y*d.y-c.scrollTop*d.y+u.y+f.y}}function Kit(e){return Array.from(e.getClientRects())}function Zit(e){const r=Sl(e),n=sk(e),o=e.ownerDocument.body,a=Ho(r.scrollWidth,r.clientWidth,o.scrollWidth,o.clientWidth),i=Ho(r.scrollHeight,r.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+hk(e);const l=-n.scrollTop;return $i(o).direction==="rtl"&&(s+=Ho(r.clientWidth,o.clientWidth)-a),{width:a,height:i,x:s,y:l}}const Goe=25;function Qit(e,r){const n=ga(e),o=Sl(e),a=n.visualViewport;let i=o.clientWidth,s=o.clientHeight,l=0,c=0;if(a){i=a.width,s=a.height;const u=ik();(!u||u&&r==="fixed")&&(l=a.offsetLeft,c=a.offsetTop)}const d=hk(o);if(d<=0){const u=o.ownerDocument,h=u.body,f=getComputedStyle(h),g=u.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,b=Math.abs(o.clientWidth-h.clientWidth-g);b<=Goe&&(i-=b)}else d<=Goe&&(i+=d);return{width:i,height:s,x:l,y:c}}const Jit=new Set(["absolute","fixed"]);function est(e,r){const n=ah(e,!0,r==="fixed"),o=n.top+e.clientTop,a=n.left+e.clientLeft,i=Ua(e)?pg(e):Cl(1),s=e.clientWidth*i.x,l=e.clientHeight*i.y,c=a*i.x,d=o*i.y;return{width:s,height:l,x:c,y:d}}function Xoe(e,r,n){let o;if(r==="viewport")o=Qit(e,n);else if(r==="document")o=Zit(Sl(e));else if(Ur(r))o=est(r,n);else{const a=Woe(e);o={x:r.x-a.x,y:r.y-a.y,width:r.width,height:r.height}}return dg(o)}function Koe(e,r){const n=Dc(e);return n===r||!Ur(n)||Nc(n)?!1:$i(n).position==="fixed"||Koe(n,r)}function tst(e,r){const n=r.get(e);if(n)return n;let o=$c(e,[],!1).filter(l=>Ur(l)&&lg(l)!=="body"),a=null;const i=$i(e).position==="fixed";let s=i?Dc(e):e;for(;Ur(s)&&!Nc(s);){const l=$i(s),c=dN(s);!c&&l.position==="fixed"&&(a=null),(i?!c&&!a:!c&&l.position==="static"&&a&&Jit.has(a.position)||sb(s)&&!c&&Koe(e,s))?o=o.filter(d=>d!==s):a=l,s=Dc(s)}return r.set(e,o),o}function rst(e){let{element:r,boundary:n,rootBoundary:o,strategy:a}=e;const i=[...n==="clippingAncestors"?ak(r)?[]:tst(r,this._c):[].concat(n),o],s=i[0],l=i.reduce((c,d)=>{const u=Xoe(r,d,a);return c.top=Ho(u.top,c.top),c.right=zs(u.right,c.right),c.bottom=zs(u.bottom,c.bottom),c.left=Ho(u.left,c.left),c},Xoe(r,s,a));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function nst(e){const{width:r,height:n}=Uoe(e);return{width:r,height:n}}function ost(e,r,n){const o=Ua(r),a=Sl(r),i=n==="fixed",s=ah(e,!0,i,r);let l={scrollLeft:0,scrollTop:0};const c=Cl(0);function d(){c.x=hk(a)}if(o||!o&&!i)if((lg(r)!=="body"||sb(a))&&(l=sk(r)),o){const g=ah(r,!0,i,r);c.x=g.x+r.clientLeft,c.y=g.y+r.clientTop}else a&&d();i&&!o&&a&&d();const u=a&&!o&&!i?Yoe(a,l):Cl(0),h=s.left+l.scrollLeft-c.x-u.x,f=s.top+l.scrollTop-c.y-u.y;return{x:h,y:f,width:s.width,height:s.height}}function wN(e){return $i(e).position==="static"}function Zoe(e,r){if(!Ua(e)||$i(e).position==="fixed")return null;if(r)return r(e);let n=e.offsetParent;return Sl(e)===n&&(n=n.ownerDocument.body),n}function Qoe(e,r){const n=ga(e);if(ak(e))return n;if(!Ua(e)){let a=Dc(e);for(;a&&!Nc(a);){if(Ur(a)&&!wN(a))return a;a=Dc(a)}return n}let o=Zoe(e,r);for(;o&&rit(o)&&wN(o);)o=Zoe(o,r);return o&&Nc(o)&&wN(o)&&!dN(o)?n:o||sit(e)||n}const ast=async function(e){const r=this.getOffsetParent||Qoe,n=this.getDimensions,o=await n(e.floating);return{reference:ost(e.reference,await r(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function ist(e){return $i(e).direction==="rtl"}const sst={convertOffsetParentRelativeRectToViewportRelativeRect:Xit,getDocumentElement:Sl,getClippingRect:rst,getOffsetParent:Qoe,getElementRects:ast,getClientRects:Kit,getDimensions:nst,getScale:pg,isElement:Ur,isRTL:ist};function Joe(e,r){return e.x===r.x&&e.y===r.y&&e.width===r.width&&e.height===r.height}function lst(e,r){let n=null,o;const a=Sl(e);function i(){var l;clearTimeout(o),(l=n)==null||l.disconnect(),n=null}function s(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),i();const d=e.getBoundingClientRect(),{left:u,top:h,width:f,height:g}=d;if(l||r(),!f||!g)return;const b=ck(h),x=ck(a.clientWidth-(u+f)),w=ck(a.clientHeight-(h+g)),k=ck(u),C={rootMargin:-b+"px "+-x+"px "+-w+"px "+-k+"px",threshold:Ho(0,zs(1,c))||1};let _=!0;function T(A){const R=A[0].intersectionRatio;if(R!==c){if(!_)return s();R?s(!1,R):o=setTimeout(()=>{s(!1,1e-7)},1e3)}R===1&&!Joe(d,e.getBoundingClientRect())&&s(),_=!1}try{n=new IntersectionObserver(T,{...C,root:a.ownerDocument})}catch{n=new IntersectionObserver(T,C)}n.observe(e)}return s(!0),i}function kN(e,r,n,o){o===void 0&&(o={});const{ancestorScroll:a=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=o,d=xN(e),u=a||i?[...d?$c(d):[],...$c(r)]:[];u.forEach(k=>{a&&k.addEventListener("scroll",n,{passive:!0}),i&&k.addEventListener("resize",n)});const h=d&&l?lst(d,n):null;let f=-1,g=null;s&&(g=new ResizeObserver(k=>{let[C]=k;C&&C.target===d&&g&&(g.unobserve(r),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var _;(_=g)==null||_.observe(r)})),n()}),d&&!c&&g.observe(d),g.observe(r));let b,x=c?ah(e):null;c&&w();function w(){const k=ah(e);x&&!Joe(x,k)&&n(),x=k,b=requestAnimationFrame(w)}return n(),()=>{var k;u.forEach(C=>{a&&C.removeEventListener("scroll",n),i&&C.removeEventListener("resize",n)}),h?.(),(k=g)==null||k.disconnect(),g=null,c&&cancelAnimationFrame(b)}}const cst=Vit,dst=qit,ust=jit,pst=Wit,hst=Lit,eae=Oit,fst=Fit,mst=Uit,gst=(e,r,n)=>{const o=new Map,a={platform:sst,...n},i={...a.platform,_c:o};return Iit(e,r,{...a,platform:i})};var yst=typeof document<"u",bst=function(){},fk=yst?E.useLayoutEffect:bst;function mk(e,r){if(e===r)return!0;if(typeof e!=typeof r)return!1;if(typeof e=="function"&&e.toString()===r.toString())return!0;let n,o,a;if(e&&r&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==r.length)return!1;for(o=n;o--!==0;)if(!mk(e[o],r[o]))return!1;return!0}if(a=Object.keys(e),n=a.length,n!==Object.keys(r).length)return!1;for(o=n;o--!==0;)if(!{}.hasOwnProperty.call(r,a[o]))return!1;for(o=n;o--!==0;){const i=a[o];if(!(i==="_owner"&&e.$$typeof)&&!mk(e[i],r[i]))return!1}return!0}return e!==e&&r!==r}function tae(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function rae(e,r){const n=tae(e);return Math.round(r*n)/n}function _N(e){const r=E.useRef(e);return fk(()=>{r.current=e}),r}function vst(e){e===void 0&&(e={});const{placement:r="bottom",strategy:n="absolute",middleware:o=[],platform:a,elements:{reference:i,floating:s}={},transform:l=!0,whileElementsMounted:c,open:d}=e,[u,h]=E.useState({x:0,y:0,strategy:n,placement:r,middlewareData:{},isPositioned:!1}),[f,g]=E.useState(o);mk(f,o)||g(o);const[b,x]=E.useState(null),[w,k]=E.useState(null),C=E.useCallback(q=>{q!==R.current&&(R.current=q,x(q))},[]),_=E.useCallback(q=>{q!==D.current&&(D.current=q,k(q))},[]),T=i||b,A=s||w,R=E.useRef(null),D=E.useRef(null),N=E.useRef(u),P=c!=null,O=_N(c),F=_N(a),L=_N(d),U=E.useCallback(()=>{if(!R.current||!D.current)return;const q={placement:r,strategy:n,middleware:f};F.current&&(q.platform=F.current),gst(R.current,D.current,q).then(Z=>{const W={...Z,isPositioned:L.current!==!1};M.current&&!mk(N.current,W)&&(N.current=W,Ki.flushSync(()=>{h(W)}))})},[f,r,n,F,L]);fk(()=>{d===!1&&N.current.isPositioned&&(N.current.isPositioned=!1,h(q=>({...q,isPositioned:!1})))},[d]);const M=E.useRef(!1);fk(()=>(M.current=!0,()=>{M.current=!1}),[]),fk(()=>{if(T&&(R.current=T),A&&(D.current=A),T&&A){if(O.current)return O.current(T,A,U);U()}},[T,A,U,O,P]);const V=E.useMemo(()=>({reference:R,floating:D,setReference:C,setFloating:_}),[C,_]),I=E.useMemo(()=>({reference:T,floating:A}),[T,A]),H=E.useMemo(()=>{const q={position:n,left:0,top:0};if(!I.floating)return q;const Z=rae(I.floating,u.x),W=rae(I.floating,u.y);return l?{...q,transform:"translate("+Z+"px, "+W+"px)",...tae(I.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:Z,top:W}},[n,l,I.floating,u.x,u.y]);return E.useMemo(()=>({...u,update:U,refs:V,elements:I,floatingStyles:H}),[u,U,V,I,H])}const xst=e=>{function r(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:o,padding:a}=typeof e=="function"?e(n):e;return o&&r(o)?o.current!=null?eae({element:o.current,padding:a}).fn(n):{}:o?eae({element:o,padding:a}).fn(n):{}}}},nae=(e,r)=>({...cst(e),options:[e,r]}),EN=(e,r)=>({...dst(e),options:[e,r]}),oae=(e,r)=>({...mst(e),options:[e,r]}),gk=(e,r)=>({...ust(e),options:[e,r]}),wst=(e,r)=>({...pst(e),options:[e,r]}),kst=(e,r)=>({...hst(e),options:[e,r]}),db=(e,r)=>({...fst(e),options:[e,r]}),aae=(e,r)=>({...xst(e),options:[e,r]});function iae(e){const r=E.useRef(void 0),n=E.useCallback(o=>{const a=e.map(i=>{if(i!=null){if(typeof i=="function"){const s=i,l=s(o);return typeof l=="function"?l:()=>{s(null)}}return i.current=o,()=>{i.current=null}}});return()=>{a.forEach(i=>i?.())}},e);return E.useMemo(()=>e.every(o=>o==null)?null:o=>{r.current&&(r.current(),r.current=void 0),o!=null&&(r.current=n(o))},e)}const _st="data-floating-ui-focusable",sae="active",lae="selected",Est={...Hv};let cae=!1,Sst=0;const dae=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Sst++;function Cst(){const[e,r]=E.useState(()=>cae?dae():void 0);return Al(()=>{e==null&&r(dae())},[]),E.useEffect(()=>{cae=!0},[]),e}const Tst=Est.useId,uae=Tst||Cst;function Ast(){const e=new Map;return{emit(r,n){var o;(o=e.get(r))==null||o.forEach(a=>a(n))},on(r,n){e.has(r)||e.set(r,new Set),e.get(r).add(n)},off(r,n){var o;(o=e.get(r))==null||o.delete(n)}}}const Rst=E.createContext(null),Nst=E.createContext(null),SN=()=>{var e;return((e=E.useContext(Rst))==null?void 0:e.id)||null},CN=()=>E.useContext(Nst);function TN(e){return"data-floating-ui-"+e}function Pi(e){e.current!==-1&&(clearTimeout(e.current),e.current=-1)}const pae=TN("safe-polygon");function yk(e,r,n){if(n&&!vN(n))return 0;if(typeof e=="number")return e;if(typeof e=="function"){const o=e();return typeof o=="number"?o:o?.[r]}return e?.[r]}function AN(e){return typeof e=="function"?e():e}function Dst(e,r){r===void 0&&(r={});const{open:n,onOpenChange:o,dataRef:a,events:i,elements:s}=e,{enabled:l=!0,delay:c=0,handleClose:d=null,mouseOnly:u=!1,restMs:h=0,move:f=!0}=r,g=CN(),b=SN(),x=pk(d),w=pk(c),k=pk(n),C=pk(h),_=E.useRef(),T=E.useRef(-1),A=E.useRef(),R=E.useRef(-1),D=E.useRef(!0),N=E.useRef(!1),P=E.useRef(()=>{}),O=E.useRef(!1),F=Rl(()=>{var H;const q=(H=a.current.openEvent)==null?void 0:H.type;return q?.includes("mouse")&&q!=="mousedown"});E.useEffect(()=>{if(!l)return;function H(q){let{open:Z}=q;Z||(Pi(T),Pi(R),D.current=!0,O.current=!1)}return i.on("openchange",H),()=>{i.off("openchange",H)}},[l,i]),E.useEffect(()=>{if(!l||!x.current||!n)return;function H(Z){F()&&o(!1,Z,"hover")}const q=oh(s.floating).documentElement;return q.addEventListener("mouseleave",H),()=>{q.removeEventListener("mouseleave",H)}},[s.floating,n,o,l,x,F]);const L=E.useCallback(function(H,q,Z){q===void 0&&(q=!0),Z===void 0&&(Z="hover");const W=yk(w.current,"close",_.current);W&&!A.current?(Pi(T),T.current=window.setTimeout(()=>o(!1,H,Z),W)):q&&(Pi(T),o(!1,H,Z))},[w,o]),U=Rl(()=>{P.current(),A.current=void 0}),M=Rl(()=>{if(N.current){const H=oh(s.floating).body;H.style.pointerEvents="",H.removeAttribute(pae),N.current=!1}}),V=Rl(()=>a.current.openEvent?["click","mousedown"].includes(a.current.openEvent.type):!1);E.useEffect(()=>{if(!l)return;function H(K){if(Pi(T),D.current=!1,u&&!vN(_.current)||AN(C.current)>0&&!yk(w.current,"open"))return;const j=yk(w.current,"open",_.current);j?T.current=window.setTimeout(()=>{k.current||o(!0,K,"hover")},j):n||o(!0,K,"hover")}function q(K){if(V()){M();return}P.current();const j=oh(s.floating);if(Pi(R),O.current=!1,x.current&&a.current.floatingContext){n||Pi(T),A.current=x.current({...a.current.floatingContext,tree:g,x:K.clientX,y:K.clientY,onClose(){M(),U(),V()||L(K,!0,"safe-polygon")}});const Y=A.current;j.addEventListener("mousemove",Y),P.current=()=>{j.removeEventListener("mousemove",Y)};return}(_.current!=="touch"||!lb(s.floating,K.relatedTarget))&&L(K)}function Z(K){V()||a.current.floatingContext&&(x.current==null||x.current({...a.current.floatingContext,tree:g,x:K.clientX,y:K.clientY,onClose(){M(),U(),V()||L(K)}})(K))}function W(){Pi(T)}function G(K){V()||L(K,!1)}if(Ur(s.domReference)){const K=s.domReference,j=s.floating;return n&&K.addEventListener("mouseleave",Z),f&&K.addEventListener("mousemove",H,{once:!0}),K.addEventListener("mouseenter",H),K.addEventListener("mouseleave",q),j&&(j.addEventListener("mouseleave",Z),j.addEventListener("mouseenter",W),j.addEventListener("mouseleave",G)),()=>{n&&K.removeEventListener("mouseleave",Z),f&&K.removeEventListener("mousemove",H),K.removeEventListener("mouseenter",H),K.removeEventListener("mouseleave",q),j&&(j.removeEventListener("mouseleave",Z),j.removeEventListener("mouseenter",W),j.removeEventListener("mouseleave",G))}}},[s,l,e,u,f,L,U,M,o,n,k,g,w,x,a,V,C]),Al(()=>{var H;if(l&&n&&(H=x.current)!=null&&(H=H.__options)!=null&&H.blockPointerEvents&&F()){N.current=!0;const Z=s.floating;if(Ur(s.domReference)&&Z){var q;const W=oh(s.floating).body;W.setAttribute(pae,"");const G=s.domReference,K=g==null||(q=g.nodesRef.current.find(j=>j.id===b))==null||(q=q.context)==null?void 0:q.elements.floating;return K&&(K.style.pointerEvents=""),W.style.pointerEvents="none",G.style.pointerEvents="auto",Z.style.pointerEvents="auto",()=>{W.style.pointerEvents="",G.style.pointerEvents="",Z.style.pointerEvents=""}}}},[l,n,b,s,g,x,F]),Al(()=>{n||(_.current=void 0,O.current=!1,U(),M())},[n,U,M]),E.useEffect(()=>()=>{U(),Pi(T),Pi(R),M()},[l,s.domReference,U,M]);const I=E.useMemo(()=>{function H(q){_.current=q.pointerType}return{onPointerDown:H,onPointerEnter:H,onMouseMove(q){const{nativeEvent:Z}=q;function W(){!D.current&&!k.current&&o(!0,Z,"hover")}u&&!vN(_.current)||n||AN(C.current)===0||O.current&&q.movementX**2+q.movementY**2<2||(Pi(R),_.current==="touch"?W():(O.current=!0,R.current=window.setTimeout(W,AN(C.current))))}}},[u,o,n,k,C]);return E.useMemo(()=>l?{reference:I}:{},[l,I])}const RN=()=>{},hae=E.createContext({delay:0,initialDelay:0,timeoutMs:0,currentId:null,setCurrentId:RN,setState:RN,isInstantPhase:!1}),$st=()=>E.useContext(hae);function fae(e){const{children:r,delay:n,timeoutMs:o=0}=e,[a,i]=E.useReducer((c,d)=>({...c,...d}),{delay:n,timeoutMs:o,initialDelay:n,currentId:null,isInstantPhase:!1}),s=E.useRef(null),l=E.useCallback(c=>{i({currentId:c})},[]);return Al(()=>{a.currentId?s.current===null?s.current=a.currentId:a.isInstantPhase||i({isInstantPhase:!0}):(a.isInstantPhase&&i({isInstantPhase:!1}),s.current=null)},[a.currentId,a.isInstantPhase]),y.jsx(hae.Provider,{value:E.useMemo(()=>({...a,setState:i,setCurrentId:l}),[a,l]),children:r})}function Pst(e,r){r===void 0&&(r={});const{open:n,onOpenChange:o,floatingId:a}=e,{id:i,enabled:s=!0}=r,l=i??a,c=$st(),{currentId:d,setCurrentId:u,initialDelay:h,setState:f,timeoutMs:g}=c;return Al(()=>{s&&d&&(f({delay:{open:1,close:yk(h,"close")}}),d!==l&&o(!1))},[s,l,o,f,d,h]),Al(()=>{function b(){o(!1),f({delay:h,currentId:null})}if(s&&d&&!n&&d===l){if(g){const x=window.setTimeout(b,g);return()=>{clearTimeout(x)}}b()}},[s,n,f,d,l,o,h,g]),Al(()=>{s&&(u===RN||!n||u(l))},[s,n,u,l]),c}const Mst={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},zst={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},mae=e=>{var r,n;return{escapeKey:typeof e=="boolean"?e:(r=e?.escapeKey)!=null?r:!1,outsidePress:typeof e=="boolean"?e:(n=e?.outsidePress)!=null?n:!0}};function Ist(e,r){r===void 0&&(r={});const{open:n,onOpenChange:o,elements:a,dataRef:i}=e,{enabled:s=!0,escapeKey:l=!0,outsidePress:c=!0,outsidePressEvent:d="pointerdown",referencePress:u=!1,referencePressEvent:h="pointerdown",ancestorScroll:f=!1,bubbles:g,capture:b}=r,x=CN(),w=Rl(typeof c=="function"?c:()=>!1),k=typeof c=="function"?w:c,C=E.useRef(!1),{escapeKey:_,outsidePress:T}=mae(g),{escapeKey:A,outsidePress:R}=mae(b),D=E.useRef(!1),N=Rl(M=>{var V;if(!n||!s||!l||M.key!=="Escape"||D.current)return;const I=(V=i.current.floatingContext)==null?void 0:V.nodeId,H=x?uk(x.nodesRef.current,I):[];if(!_&&(M.stopPropagation(),H.length>0)){let q=!0;if(H.forEach(Z=>{var W;if((W=Z.context)!=null&&W.open&&!Z.context.dataRef.current.__escapeKeyBubbles){q=!1;return}}),!q)return}o(!1,Nit(M)?M.nativeEvent:M,"escape-key")}),P=Rl(M=>{var V;const I=()=>{var H;N(M),(H=ug(M))==null||H.removeEventListener("keydown",I)};(V=ug(M))==null||V.addEventListener("keydown",I)}),O=Rl(M=>{var V;const I=i.current.insideReactTree;i.current.insideReactTree=!1;const H=C.current;if(C.current=!1,d==="click"&&H||I||typeof k=="function"&&!k(M))return;const q=ug(M),Z="["+TN("inert")+"]",W=oh(a.floating).querySelectorAll(Z);let G=Ur(q)?q:null;for(;G&&!Nc(G);){const Q=Dc(G);if(Nc(Q)||!Ur(Q))break;G=Q}if(W.length&&Ur(q)&&!Cit(q)&&!lb(q,a.floating)&&Array.from(W).every(Q=>!lb(G,Q)))return;if(Ua(q)&&U){const Q=Nc(q),J=$i(q),ie=/auto|scroll/,ne=Q||ie.test(J.overflowX),re=Q||ie.test(J.overflowY),ge=ne&&q.clientWidth>0&&q.scrollWidth>q.clientWidth,De=re&&q.clientHeight>0&&q.scrollHeight>q.clientHeight,he=J.direction==="rtl",me=De&&(he?M.offsetX<=q.offsetWidth-q.clientWidth:M.offsetX>q.clientWidth),Te=ge&&M.offsetY>q.clientHeight;if(me||Te)return}const K=(V=i.current.floatingContext)==null?void 0:V.nodeId,j=x&&uk(x.nodesRef.current,K).some(Q=>{var J;return bN(M,(J=Q.context)==null?void 0:J.elements.floating)});if(bN(M,a.floating)||bN(M,a.domReference)||j)return;const Y=x?uk(x.nodesRef.current,K):[];if(Y.length>0){let Q=!0;if(Y.forEach(J=>{var ie;if((ie=J.context)!=null&&ie.open&&!J.context.dataRef.current.__outsidePressBubbles){Q=!1;return}}),!Q)return}o(!1,M,"outside-press")}),F=Rl(M=>{var V;const I=()=>{var H;O(M),(H=ug(M))==null||H.removeEventListener(d,I)};(V=ug(M))==null||V.addEventListener(d,I)});E.useEffect(()=>{if(!n||!s)return;i.current.__escapeKeyBubbles=_,i.current.__outsidePressBubbles=T;let M=-1;function V(W){o(!1,W,"ancestor-scroll")}function I(){window.clearTimeout(M),D.current=!0}function H(){M=window.setTimeout(()=>{D.current=!1},ik()?5:0)}const q=oh(a.floating);l&&(q.addEventListener("keydown",A?P:N,A),q.addEventListener("compositionstart",I),q.addEventListener("compositionend",H)),k&&q.addEventListener(d,R?F:O,R);let Z=[];return f&&(Ur(a.domReference)&&(Z=$c(a.domReference)),Ur(a.floating)&&(Z=Z.concat($c(a.floating))),!Ur(a.reference)&&a.reference&&a.reference.contextElement&&(Z=Z.concat($c(a.reference.contextElement)))),Z=Z.filter(W=>{var G;return W!==((G=q.defaultView)==null?void 0:G.visualViewport)}),Z.forEach(W=>{W.addEventListener("scroll",V,{passive:!0})}),()=>{l&&(q.removeEventListener("keydown",A?P:N,A),q.removeEventListener("compositionstart",I),q.removeEventListener("compositionend",H)),k&&q.removeEventListener(d,R?F:O,R),Z.forEach(W=>{W.removeEventListener("scroll",V)}),window.clearTimeout(M)}},[i,a,l,k,d,n,o,f,s,_,T,N,A,P,O,R,F]),E.useEffect(()=>{i.current.insideReactTree=!1},[i,k,d]);const L=E.useMemo(()=>({onKeyDown:N,...u&&{[Mst[h]]:M=>{o(!1,M.nativeEvent,"reference-press")},...h!=="click"&&{onClick(M){o(!1,M.nativeEvent,"reference-press")}}}}),[N,o,u,h]),U=E.useMemo(()=>({onKeyDown:N,onMouseDown(){C.current=!0},onMouseUp(){C.current=!0},[zst[d]]:()=>{i.current.insideReactTree=!0}}),[N,d,i]);return E.useMemo(()=>s?{reference:L,floating:U}:{},[s,L,U])}function Ost(e){const{open:r=!1,onOpenChange:n,elements:o}=e,a=uae(),i=E.useRef({}),[s]=E.useState(()=>Ast()),l=SN()!=null,[c,d]=E.useState(o.reference),u=Rl((g,b,x)=>{i.current.openEvent=g?b:void 0,s.emit("openchange",{open:g,event:b,reason:x,nested:l}),n?.(g,b,x)}),h=E.useMemo(()=>({setPositionReference:d}),[]),f=E.useMemo(()=>({reference:c||o.reference||null,floating:o.floating||null,domReference:o.reference}),[c,o.reference,o.floating]);return E.useMemo(()=>({dataRef:i,open:r,onOpenChange:u,elements:f,events:s,floatingId:a,refs:h}),[r,u,f,s,a,h])}function NN(e){e===void 0&&(e={});const{nodeId:r}=e,n=Ost({...e,elements:{reference:null,floating:null,...e.elements}}),o=e.rootContext||n,a=o.elements,[i,s]=E.useState(null),[l,c]=E.useState(null),d=a?.domReference||i,u=E.useRef(null),h=CN();Al(()=>{d&&(u.current=d)},[d]);const f=vst({...e,elements:{...a,...l&&{reference:l}}}),g=E.useCallback(C=>{const _=Ur(C)?{getBoundingClientRect:()=>C.getBoundingClientRect(),getClientRects:()=>C.getClientRects(),contextElement:C}:C;c(_),f.refs.setReference(_)},[f.refs]),b=E.useCallback(C=>{(Ur(C)||C===null)&&(u.current=C,s(C)),(Ur(f.refs.reference.current)||f.refs.reference.current===null||C!==null&&!Ur(C))&&f.refs.setReference(C)},[f.refs]),x=E.useMemo(()=>({...f.refs,setReference:b,setPositionReference:g,domReference:u}),[f.refs,b,g]),w=E.useMemo(()=>({...f.elements,domReference:d}),[f.elements,d]),k=E.useMemo(()=>({...f,...o,refs:x,elements:w,nodeId:r}),[f,x,w,r,o]);return Al(()=>{o.dataRef.current.floatingContext=k;const C=h?.nodesRef.current.find(_=>_.id===r);C&&(C.context=k)}),E.useMemo(()=>({...f,context:k,refs:x,elements:w}),[f,x,w,k])}function DN(){return _it()&&kit()}function jst(e,r){r===void 0&&(r={});const{open:n,onOpenChange:o,events:a,dataRef:i,elements:s}=e,{enabled:l=!0,visibleOnly:c=!0}=r,d=E.useRef(!1),u=E.useRef(-1),h=E.useRef(!0);E.useEffect(()=>{if(!l)return;const g=ga(s.domReference);function b(){!n&&Ua(s.domReference)&&s.domReference===Loe(oh(s.domReference))&&(d.current=!0)}function x(){h.current=!0}function w(){h.current=!1}return g.addEventListener("blur",b),DN()&&(g.addEventListener("keydown",x,!0),g.addEventListener("pointerdown",w,!0)),()=>{g.removeEventListener("blur",b),DN()&&(g.removeEventListener("keydown",x,!0),g.removeEventListener("pointerdown",w,!0))}},[s.domReference,n,l]),E.useEffect(()=>{if(!l)return;function g(b){let{reason:x}=b;(x==="reference-press"||x==="escape-key")&&(d.current=!0)}return a.on("openchange",g),()=>{a.off("openchange",g)}},[a,l]),E.useEffect(()=>()=>{Pi(u)},[]);const f=E.useMemo(()=>({onMouseLeave(){d.current=!1},onFocus(g){if(d.current)return;const b=ug(g.nativeEvent);if(c&&Ur(b)){if(DN()&&!g.relatedTarget){if(!h.current&&!Tit(b))return}else if(!Ait(b))return}o(!0,g.nativeEvent,"focus")},onBlur(g){d.current=!1;const b=g.relatedTarget,x=g.nativeEvent,w=Ur(b)&&b.hasAttribute(TN("focus-guard"))&&b.getAttribute("data-type")==="outside";u.current=window.setTimeout(()=>{var k;const C=Loe(s.domReference?s.domReference.ownerDocument:document);!b&&C===s.domReference||lb((k=i.current.floatingContext)==null?void 0:k.refs.floating.current,C)||lb(s.domReference,C)||w||o(!1,x,"focus")})}}),[i,s.domReference,o,c]);return E.useMemo(()=>l?{reference:f}:{},[l,f])}function $N(e,r,n){const o=new Map,a=n==="item";let i=e;if(a&&e){const{[sae]:s,[lae]:l,...c}=e;i=c}return{...n==="floating"&&{tabIndex:-1,[_st]:""},...i,...r.map(s=>{const l=s?s[n]:null;return typeof l=="function"?e?l(e):null:l}).concat(e).reduce((s,l)=>(l&&Object.entries(l).forEach(c=>{let[d,u]=c;if(!(a&&[sae,lae].includes(d)))if(d.indexOf("on")===0){if(o.has(d)||o.set(d,[]),typeof u=="function"){var h;(h=o.get(d))==null||h.push(u),s[d]=function(){for(var f,g=arguments.length,b=new Array(g),x=0;xw(...b)).find(w=>w!==void 0)}}}else s[d]=u}),s),{})}}function Lst(e){e===void 0&&(e=[]);const r=e.map(l=>l?.reference),n=e.map(l=>l?.floating),o=e.map(l=>l?.item),a=E.useCallback(l=>$N(l,e,"reference"),r),i=E.useCallback(l=>$N(l,e,"floating"),n),s=E.useCallback(l=>$N(l,e,"item"),o);return E.useMemo(()=>({getReferenceProps:a,getFloatingProps:i,getItemProps:s}),[a,i,s])}const Bst=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function Fst(e,r){var n,o;r===void 0&&(r={});const{open:a,elements:i,floatingId:s}=e,{enabled:l=!0,role:c="dialog"}=r,d=uae(),u=((n=i.domReference)==null?void 0:n.id)||d,h=E.useMemo(()=>{var k;return((k=Rit(i.floating))==null?void 0:k.id)||s},[i.floating,s]),f=(o=Bst.get(c))!=null?o:c,g=SN()!=null,b=E.useMemo(()=>f==="tooltip"||c==="label"?{["aria-"+(c==="label"?"labelledby":"describedby")]:a?h:void 0}:{"aria-expanded":a?"true":"false","aria-haspopup":f==="alertdialog"?"dialog":f,"aria-controls":a?h:void 0,...f==="listbox"&&{role:"combobox"},...f==="menu"&&{id:u},...f==="menu"&&g&&{role:"menuitem"},...c==="select"&&{"aria-autocomplete":"none"},...c==="combobox"&&{"aria-autocomplete":"list"}},[f,h,g,a,u,c]),x=E.useMemo(()=>{const k={id:h,...f&&{role:f}};return f==="tooltip"||c==="label"?k:{...k,...f==="menu"&&{"aria-labelledby":u}}},[f,h,u,c]),w=E.useCallback(k=>{let{active:C,selected:_}=k;const T={role:"option",...C&&{id:h+"-fui-option"}};switch(c){case"select":case"combobox":return{...T,"aria-selected":_}}return{}},[h,c]);return E.useMemo(()=>l?{reference:b,floating:x,item:w}:{},[l,b,x,w])}const[Hst,Mi]=qa("ScrollArea.Root component was not found in tree");function hg(e,r){const n=eh(r);GR(()=>{let o=0;if(e){const a=new ResizeObserver(()=>{cancelAnimationFrame(o),o=window.requestAnimationFrame(n)});return a.observe(e),()=>{window.cancelAnimationFrame(o),a.unobserve(e)}}},[e,n])}const Vst=E.forwardRef((e,r)=>{const{style:n,...o}=e,a=Mi(),[i,s]=E.useState(0),[l,c]=E.useState(0),d=!!(i&&l);return hg(a.scrollbarX,()=>{const u=a.scrollbarX?.offsetHeight||0;a.onCornerHeightChange(u),c(u)}),hg(a.scrollbarY,()=>{const u=a.scrollbarY?.offsetWidth||0;a.onCornerWidthChange(u),s(u)}),d?y.jsx("div",{...o,ref:r,style:{...n,width:i,height:l}}):null}),qst=E.forwardRef((e,r)=>{const n=Mi(),o=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&o?y.jsx(Vst,{...e,ref:r}):null}),Ust={scrollHideDelay:1e3,type:"hover"},gae=E.forwardRef((e,r)=>{const{type:n,scrollHideDelay:o,scrollbars:a,getStyles:i,...s}=ze("ScrollAreaRoot",Ust,e),[l,c]=E.useState(null),[d,u]=E.useState(null),[h,f]=E.useState(null),[g,b]=E.useState(null),[x,w]=E.useState(null),[k,C]=E.useState(0),[_,T]=E.useState(0),[A,R]=E.useState(!1),[D,N]=E.useState(!1),P=yn(r,O=>c(O));return y.jsx(Hst,{value:{type:n,scrollHideDelay:o,scrollArea:l,viewport:d,onViewportChange:u,content:h,onContentChange:f,scrollbarX:g,onScrollbarXChange:b,scrollbarXEnabled:A,onScrollbarXEnabledChange:R,scrollbarY:x,onScrollbarYChange:w,scrollbarYEnabled:D,onScrollbarYEnabledChange:N,onCornerWidthChange:C,onCornerHeightChange:T,getStyles:i},children:y.jsx(Le,{...s,ref:P,__vars:{"--sa-corner-width":a!=="xy"?"0px":`${k}px`,"--sa-corner-height":a!=="xy"?"0px":`${_}px`}})})});gae.displayName="@mantine/core/ScrollAreaRoot";function yae(e,r){const n=e/r;return Number.isNaN(n)?0:n}function bk(e){const r=yae(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,o=(e.scrollbar.size-n)*r;return Math.max(o,18)}function bae(e,r){return n=>{if(e[0]===e[1]||r[0]===r[1])return r[0];const o=(r[1]-r[0])/(e[1]-e[0]);return r[0]+o*(n-e[0])}}function Wst(e,[r,n]){return Math.min(n,Math.max(r,e))}function vae(e,r,n="ltr"){const o=bk(r),a=r.scrollbar.paddingStart+r.scrollbar.paddingEnd,i=r.scrollbar.size-a,s=r.content-r.viewport,l=i-o,c=n==="ltr"?[0,s]:[s*-1,0],d=Wst(e,c);return bae([0,s],[0,l])(d)}function Yst(e,r,n,o="ltr"){const a=bk(n),i=a/2,s=r||i,l=a-s,c=n.scrollbar.paddingStart+s,d=n.scrollbar.size-n.scrollbar.paddingEnd-l,u=n.content-n.viewport,h=o==="ltr"?[0,u]:[u*-1,0];return bae([c,d],h)(e)}function xae(e,r){return e>0&&e{e?.(o),(n===!1||!o.defaultPrevented)&&r?.(o)}}const[Gst,wae]=qa("ScrollAreaScrollbar was not found in tree"),kae=E.forwardRef((e,r)=>{const{sizes:n,hasThumb:o,onThumbChange:a,onThumbPointerUp:i,onThumbPointerDown:s,onThumbPositionChange:l,onDragScroll:c,onWheelScroll:d,onResize:u,...h}=e,f=Mi(),[g,b]=E.useState(null),x=yn(r,N=>b(N)),w=E.useRef(null),k=E.useRef(""),{viewport:C}=f,_=n.content-n.viewport,T=eh(d),A=eh(l),R=Z4(u,10),D=N=>{if(w.current){const P=N.clientX-w.current.left,O=N.clientY-w.current.top;c({x:P,y:O})}};return E.useEffect(()=>{const N=P=>{const O=P.target;g?.contains(O)&&T(P,_)};return document.addEventListener("wheel",N,{passive:!1}),()=>document.removeEventListener("wheel",N,{passive:!1})},[C,g,_,T]),E.useEffect(A,[n,A]),hg(g,R),hg(f.content,R),y.jsx(Gst,{value:{scrollbar:g,hasThumb:o,onThumbChange:eh(a),onThumbPointerUp:eh(i),onThumbPositionChange:A,onThumbPointerDown:eh(s)},children:y.jsx("div",{...h,ref:x,"data-mantine-scrollbar":!0,style:{position:"absolute",...h.style},onPointerDown:ih(e.onPointerDown,N=>{N.preventDefault(),N.button===0&&(N.target.setPointerCapture(N.pointerId),w.current=g.getBoundingClientRect(),k.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",D(N))}),onPointerMove:ih(e.onPointerMove,D),onPointerUp:ih(e.onPointerUp,N=>{const P=N.target;P.hasPointerCapture(N.pointerId)&&(N.preventDefault(),P.releasePointerCapture(N.pointerId))}),onLostPointerCapture:()=>{document.body.style.webkitUserSelect=k.current,w.current=null}})})}),_ae=E.forwardRef((e,r)=>{const{sizes:n,onSizesChange:o,style:a,...i}=e,s=Mi(),[l,c]=E.useState(),d=E.useRef(null),u=yn(r,d,s.onScrollbarXChange);return E.useEffect(()=>{d.current&&c(getComputedStyle(d.current))},[d]),y.jsx(kae,{"data-orientation":"horizontal",...i,ref:u,sizes:n,style:{...a,"--sa-thumb-width":`${bk(n)}px`},onThumbPointerDown:h=>e.onThumbPointerDown(h.x),onDragScroll:h=>e.onDragScroll(h.x),onWheelScroll:(h,f)=>{if(s.viewport){const g=s.viewport.scrollLeft+h.deltaX;e.onWheelScroll(g),xae(g,f)&&h.preventDefault()}},onResize:()=>{d.current&&s.viewport&&l&&o({content:s.viewport.scrollWidth,viewport:s.viewport.offsetWidth,scrollbar:{size:d.current.clientWidth,paddingStart:Jd(l.paddingLeft),paddingEnd:Jd(l.paddingRight)}})}})});_ae.displayName="@mantine/core/ScrollAreaScrollbarX";const Eae=E.forwardRef((e,r)=>{const{sizes:n,onSizesChange:o,style:a,...i}=e,s=Mi(),[l,c]=E.useState(),d=E.useRef(null),u=yn(r,d,s.onScrollbarYChange);return E.useEffect(()=>{d.current&&c(window.getComputedStyle(d.current))},[]),y.jsx(kae,{...i,"data-orientation":"vertical",ref:u,sizes:n,style:{"--sa-thumb-height":`${bk(n)}px`,...a},onThumbPointerDown:h=>e.onThumbPointerDown(h.y),onDragScroll:h=>e.onDragScroll(h.y),onWheelScroll:(h,f)=>{if(s.viewport){const g=s.viewport.scrollTop+h.deltaY;e.onWheelScroll(g),xae(g,f)&&h.preventDefault()}},onResize:()=>{d.current&&s.viewport&&l&&o({content:s.viewport.scrollHeight,viewport:s.viewport.offsetHeight,scrollbar:{size:d.current.clientHeight,paddingStart:Jd(l.paddingTop),paddingEnd:Jd(l.paddingBottom)}})}})});Eae.displayName="@mantine/core/ScrollAreaScrollbarY";const vk=E.forwardRef((e,r)=>{const{orientation:n="vertical",...o}=e,{dir:a}=Rc(),i=Mi(),s=E.useRef(null),l=E.useRef(0),[c,d]=E.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),u=yae(c.viewport,c.content),h={...o,sizes:c,onSizesChange:d,hasThumb:u>0&&u<1,onThumbChange:g=>{s.current=g},onThumbPointerUp:()=>{l.current=0},onThumbPointerDown:g=>{l.current=g}},f=(g,b)=>Yst(g,l.current,c,b);return n==="horizontal"?y.jsx(_ae,{...h,ref:r,onThumbPositionChange:()=>{if(i.viewport&&s.current){const g=i.viewport.scrollLeft,b=vae(g,c,a);s.current.style.transform=`translate3d(${b}px, 0, 0)`}},onWheelScroll:g=>{i.viewport&&(i.viewport.scrollLeft=g)},onDragScroll:g=>{i.viewport&&(i.viewport.scrollLeft=f(g,a))}}):n==="vertical"?y.jsx(Eae,{...h,ref:r,onThumbPositionChange:()=>{if(i.viewport&&s.current){const g=i.viewport.scrollTop,b=vae(g,c);c.scrollbar.size===0?s.current.style.setProperty("--thumb-opacity","0"):s.current.style.setProperty("--thumb-opacity","1"),s.current.style.transform=`translate3d(0, ${b}px, 0)`}},onWheelScroll:g=>{i.viewport&&(i.viewport.scrollTop=g)},onDragScroll:g=>{i.viewport&&(i.viewport.scrollTop=f(g))}}):null});vk.displayName="@mantine/core/ScrollAreaScrollbarVisible";const PN=E.forwardRef((e,r)=>{const n=Mi(),{forceMount:o,...a}=e,[i,s]=E.useState(!1),l=e.orientation==="horizontal",c=Z4(()=>{if(n.viewport){const d=n.viewport.offsetWidth{const{forceMount:n,...o}=e,a=Mi(),[i,s]=E.useState(!1);return E.useEffect(()=>{const{scrollArea:l}=a;let c=0;if(l){const d=()=>{window.clearTimeout(c),s(!0)},u=()=>{c=window.setTimeout(()=>s(!1),a.scrollHideDelay)};return l.addEventListener("pointerenter",d),l.addEventListener("pointerleave",u),()=>{window.clearTimeout(c),l.removeEventListener("pointerenter",d),l.removeEventListener("pointerleave",u)}}},[a.scrollArea,a.scrollHideDelay]),n||i?y.jsx(PN,{"data-state":i?"visible":"hidden",...o,ref:r}):null});Sae.displayName="@mantine/core/ScrollAreaScrollbarHover";const Xst=E.forwardRef((e,r)=>{const{forceMount:n,...o}=e,a=Mi(),i=e.orientation==="horizontal",[s,l]=E.useState("hidden"),c=Z4(()=>l("idle"),100);return E.useEffect(()=>{if(s==="idle"){const d=window.setTimeout(()=>l("hidden"),a.scrollHideDelay);return()=>window.clearTimeout(d)}},[s,a.scrollHideDelay]),E.useEffect(()=>{const{viewport:d}=a,u=i?"scrollLeft":"scrollTop";if(d){let h=d[u];const f=()=>{const g=d[u];h!==g&&(l("scrolling"),c()),h=g};return d.addEventListener("scroll",f),()=>d.removeEventListener("scroll",f)}},[a.viewport,i,c]),n||s!=="hidden"?y.jsx(vk,{"data-state":s==="hidden"?"hidden":"visible",...o,ref:r,onPointerEnter:ih(e.onPointerEnter,()=>l("interacting")),onPointerLeave:ih(e.onPointerLeave,()=>l("idle"))}):null}),MN=E.forwardRef((e,r)=>{const{forceMount:n,...o}=e,a=Mi(),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:s}=a,l=e.orientation==="horizontal";return E.useEffect(()=>(l?i(!0):s(!0),()=>{l?i(!1):s(!1)}),[l,i,s]),a.type==="hover"?y.jsx(Sae,{...o,ref:r,forceMount:n}):a.type==="scroll"?y.jsx(Xst,{...o,ref:r,forceMount:n}):a.type==="auto"?y.jsx(PN,{...o,ref:r,forceMount:n}):a.type==="always"?y.jsx(vk,{...o,ref:r}):null});MN.displayName="@mantine/core/ScrollAreaScrollbar";function Kst(e,r=()=>{}){let n={left:e.scrollLeft,top:e.scrollTop},o=0;return(function a(){const i={left:e.scrollLeft,top:e.scrollTop},s=n.left!==i.left,l=n.top!==i.top;(s||l)&&r(),n=i,o=window.requestAnimationFrame(a)})(),()=>window.cancelAnimationFrame(o)}const Cae=E.forwardRef((e,r)=>{const{style:n,...o}=e,a=Mi(),i=wae(),{onThumbPositionChange:s}=i,l=yn(r,u=>i.onThumbChange(u)),c=E.useRef(void 0),d=Z4(()=>{c.current&&(c.current(),c.current=void 0)},100);return E.useEffect(()=>{const{viewport:u}=a;if(u){const h=()=>{if(d(),!c.current){const f=Kst(u,s);c.current=f,s()}};return s(),u.addEventListener("scroll",h),()=>u.removeEventListener("scroll",h)}},[a.viewport,d,s]),y.jsx("div",{"data-state":i.hasThumb?"visible":"hidden",...o,ref:l,style:{width:"var(--sa-thumb-width)",height:"var(--sa-thumb-height)",...n},onPointerDownCapture:ih(e.onPointerDownCapture,u=>{const h=u.target.getBoundingClientRect(),f=u.clientX-h.left,g=u.clientY-h.top;i.onThumbPointerDown({x:f,y:g})}),onPointerUp:ih(e.onPointerUp,i.onThumbPointerUp)})});Cae.displayName="@mantine/core/ScrollAreaThumb";const zN=E.forwardRef((e,r)=>{const{forceMount:n,...o}=e,a=wae();return n||a.hasThumb?y.jsx(Cae,{ref:r,...o}):null});zN.displayName="@mantine/core/ScrollAreaThumb";const Tae=E.forwardRef(({children:e,style:r,...n},o)=>{const a=Mi(),i=yn(o,a.onViewportChange);return y.jsx(Le,{...n,ref:i,style:{overflowX:a.scrollbarXEnabled?"scroll":"hidden",overflowY:a.scrollbarYEnabled?"scroll":"hidden",...r},children:y.jsx("div",{...a.getStyles("content"),ref:a.onContentChange,children:e})})});Tae.displayName="@mantine/core/ScrollAreaViewport";var IN={root:"m_d57069b5",content:"m_b1336c6",viewport:"m_c0783ff9",viewportInner:"m_f8f631dd",scrollbar:"m_c44ba933",thumb:"m_d8b5e363",corner:"m_21657268"};const Aae={scrollHideDelay:1e3,type:"hover",scrollbars:"xy"},Zst=(e,{scrollbarSize:r,overscrollBehavior:n})=>({root:{"--scrollarea-scrollbar-size":qe(r),"--scrollarea-over-scroll-behavior":n}}),sh=Je((e,r)=>{const n=ze("ScrollArea",Aae,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,scrollbarSize:c,vars:d,type:u,scrollHideDelay:h,viewportProps:f,viewportRef:g,onScrollPositionChange:b,children:x,offsetScrollbars:w,scrollbars:k,onBottomReached:C,onTopReached:_,overscrollBehavior:T,attributes:A,...R}=n,[D,N]=E.useState(!1),[P,O]=E.useState(!1),[F,L]=E.useState(!1),U=vt({name:"ScrollArea",props:n,classes:IN,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:A,vars:d,varsResolver:Zst}),M=E.useRef(null),V=iae([g,M]);return E.useEffect(()=>{if(!M.current||w!=="present")return;const I=M.current,H=new ResizeObserver(()=>{const{scrollHeight:q,clientHeight:Z,scrollWidth:W,clientWidth:G}=I;O(q>Z),L(W>G)});return H.observe(I),()=>H.disconnect()},[M,w]),y.jsxs(gae,{getStyles:U,type:u==="never"?"always":u,scrollHideDelay:h,ref:r,scrollbars:k,...U("root"),...R,children:[y.jsx(Tae,{...f,...U("viewport",{style:f?.style}),ref:V,"data-offset-scrollbars":w===!0?"xy":w||void 0,"data-scrollbars":k||void 0,"data-horizontal-hidden":w==="present"&&!F?"true":void 0,"data-vertical-hidden":w==="present"&&!P?"true":void 0,onScroll:I=>{f?.onScroll?.(I),b?.({x:I.currentTarget.scrollLeft,y:I.currentTarget.scrollTop});const{scrollTop:H,scrollHeight:q,clientHeight:Z}=I.currentTarget;H-(q-Z)>=-.6&&C?.(),H===0&&_?.()},children:x}),(k==="xy"||k==="x")&&y.jsx(MN,{...U("scrollbar"),orientation:"horizontal","data-hidden":u==="never"||w==="present"&&!F?!0:void 0,forceMount:!0,onMouseEnter:()=>N(!0),onMouseLeave:()=>N(!1),children:y.jsx(zN,{...U("thumb")})}),(k==="xy"||k==="y")&&y.jsx(MN,{...U("scrollbar"),orientation:"vertical","data-hidden":u==="never"||w==="present"&&!P?!0:void 0,forceMount:!0,onMouseEnter:()=>N(!0),onMouseLeave:()=>N(!1),children:y.jsx(zN,{...U("thumb")})}),y.jsx(qst,{...U("corner"),"data-hovered":D||void 0,"data-hidden":u==="never"||void 0})]})});sh.displayName="@mantine/core/ScrollArea";const ON=Je((e,r)=>{const{children:n,classNames:o,styles:a,scrollbarSize:i,scrollHideDelay:s,type:l,dir:c,offsetScrollbars:d,viewportRef:u,onScrollPositionChange:h,unstyled:f,variant:g,viewportProps:b,scrollbars:x,style:w,vars:k,onBottomReached:C,onTopReached:_,onOverflowChange:T,...A}=ze("ScrollAreaAutosize",Aae,e),R=E.useRef(null),D=iae([u,R]),[N,P]=E.useState(!1),O=E.useRef(!1);return E.useEffect(()=>{if(!T)return;const F=R.current;if(!F)return;const L=()=>{const M=F.scrollHeight>F.clientHeight;M!==N&&(O.current?T?.(M):(O.current=!0,M&&T?.(!0)),P(M))};L();const U=new ResizeObserver(L);return U.observe(F),()=>U.disconnect()},[T,N]),y.jsx(Le,{...A,ref:r,style:[{display:"flex",overflow:"hidden"},w],children:y.jsx(Le,{style:{display:"flex",flexDirection:"column",flex:1,overflow:"hidden",...x==="y"&&{minWidth:0},...x==="x"&&{minHeight:0},...x==="xy"&&{minWidth:0,minHeight:0},...x===!1&&{minWidth:0,minHeight:0}},children:y.jsx(sh,{classNames:o,styles:a,scrollHideDelay:s,scrollbarSize:i,type:l,dir:c,offsetScrollbars:d,viewportRef:D,onScrollPositionChange:h,unstyled:f,variant:g,viewportProps:b,vars:k,scrollbars:x,onBottomReached:C,onTopReached:_,"data-autosize":"true",children:n})})})});sh.classes=IN,ON.displayName="@mantine/core/ScrollAreaAutosize",ON.classes=IN,sh.Autosize=ON;var Rae={root:"m_87cf2631"};const Qst={__staticSelector:"UnstyledButton"},Nl=Jn((e,r)=>{const n=ze("UnstyledButton",Qst,e),{className:o,component:a="button",__staticSelector:i,unstyled:s,classNames:l,styles:c,style:d,attributes:u,...h}=n,f=vt({name:i,props:n,classes:Rae,className:o,style:d,classNames:l,styles:c,unstyled:s,attributes:u});return y.jsx(Le,{...f("root",{focusable:!0}),component:a,ref:r,type:a==="button"?"button":void 0,...h})});Nl.classes=Rae,Nl.displayName="@mantine/core/UnstyledButton";var Nae={root:"m_515a97f8"};const jN=Je((e,r)=>{const n=ze("VisuallyHidden",null,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,attributes:d,...u}=n,h=vt({name:"VisuallyHidden",classes:Nae,props:n,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:d});return y.jsx(Le,{component:"span",ref:r,...h("root"),...u})});jN.classes=Nae,jN.displayName="@mantine/core/VisuallyHidden";var Dae={root:"m_1b7284a3"};const Jst=(e,{radius:r,shadow:n})=>({root:{"--paper-radius":r===void 0?void 0:Tn(r),"--paper-shadow":UR(n)}}),xk=Jn((e,r)=>{const n=ze("Paper",null,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,withBorder:c,vars:d,radius:u,shadow:h,variant:f,mod:g,attributes:b,...x}=n,w=vt({name:"Paper",props:n,classes:Dae,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:b,vars:d,varsResolver:Jst});return y.jsx(Le,{ref:r,mod:[{"data-with-border":c},g],...w("root"),variant:f,...x})});xk.classes=Dae,xk.displayName="@mantine/core/Paper";function $ae(e,r,n,o){return e==="center"||o==="center"?{top:r}:e==="end"?{bottom:n}:e==="start"?{top:n}:{}}function Pae(e,r,n,o,a){return e==="center"||o==="center"?{left:r}:e==="end"?{[a==="ltr"?"right":"left"]:n}:e==="start"?{[a==="ltr"?"left":"right"]:n}:{}}const elt={bottom:"borderTopLeftRadius",left:"borderTopRightRadius",right:"borderBottomLeftRadius",top:"borderBottomRightRadius"};function tlt({position:e,arrowSize:r,arrowOffset:n,arrowRadius:o,arrowPosition:a,arrowX:i,arrowY:s,dir:l}){const[c,d="center"]=e.split("-"),u={width:r,height:r,transform:"rotate(45deg)",position:"absolute",[elt[c]]:o},h=-r/2;return c==="left"?{...u,...$ae(d,s,n,a),right:h,borderLeftColor:"transparent",borderBottomColor:"transparent",clipPath:"polygon(100% 0, 0 0, 100% 100%)"}:c==="right"?{...u,...$ae(d,s,n,a),left:h,borderRightColor:"transparent",borderTopColor:"transparent",clipPath:"polygon(0 100%, 0 0, 100% 100%)"}:c==="top"?{...u,...Pae(d,i,n,a,l),bottom:h,borderTopColor:"transparent",borderLeftColor:"transparent",clipPath:"polygon(0 100%, 100% 100%, 100% 0)"}:c==="bottom"?{...u,...Pae(d,i,n,a,l),top:h,borderBottomColor:"transparent",borderRightColor:"transparent",clipPath:"polygon(0 100%, 0 0, 100% 0)"}:{}}const wk=E.forwardRef(({position:e,arrowSize:r,arrowOffset:n,arrowRadius:o,arrowPosition:a,visible:i,arrowX:s,arrowY:l,style:c,...d},u)=>{const{dir:h}=Rc();return i?y.jsx("div",{...d,ref:u,style:{...c,...tlt({position:e,arrowSize:r,arrowOffset:n,arrowRadius:o,arrowPosition:a,dir:h,arrowX:s,arrowY:l})}}):null});wk.displayName="@mantine/core/FloatingArrow";function Mae(e,r){if(e==="rtl"&&(r.includes("right")||r.includes("left"))){const[n,o]=r.split("-"),a=n==="right"?"left":"right";return o===void 0?a:`${a}-${o}`}return r}var zae={root:"m_9814e45f"};const rlt={zIndex:$s("modal")},nlt=(e,{gradient:r,color:n,backgroundOpacity:o,blur:a,radius:i,zIndex:s})=>({root:{"--overlay-bg":r||(n!==void 0||o!==void 0)&&woe(n||"#000",o??.6)||void 0,"--overlay-filter":a?`blur(${qe(a)})`:void 0,"--overlay-radius":i===void 0?void 0:Tn(i),"--overlay-z-index":s?.toString()}}),fg=Jn((e,r)=>{const n=ze("Overlay",rlt,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,fixed:d,center:u,children:h,radius:f,zIndex:g,gradient:b,blur:x,color:w,backgroundOpacity:k,mod:C,attributes:_,...T}=n,A=vt({name:"Overlay",props:n,classes:zae,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:_,vars:c,varsResolver:nlt});return y.jsx(Le,{ref:r,...A("root"),mod:[{center:u,fixed:d},C],...T,children:h})});fg.classes=zae,fg.displayName="@mantine/core/Overlay";function LN(e){const r=document.createElement("div");return r.setAttribute("data-portal","true"),typeof e.className=="string"&&r.classList.add(...e.className.split(" ").filter(Boolean)),typeof e.style=="object"&&Object.assign(r.style,e.style),typeof e.id=="string"&&r.setAttribute("id",e.id),r}function olt({target:e,reuseTargetNode:r,...n}){if(e)return typeof e=="string"?document.querySelector(e)||LN(n):e;if(r){const o=document.querySelector("[data-mantine-shared-portal-node]");if(o)return o;const a=LN(n);return a.setAttribute("data-mantine-shared-portal-node","true"),document.body.appendChild(a),a}return LN(n)}const alt={reuseTargetNode:!0},Iae=Je((e,r)=>{const{children:n,target:o,reuseTargetNode:a,...i}=ze("Portal",alt,e),[s,l]=E.useState(!1),c=E.useRef(null);return GR(()=>(l(!0),c.current=olt({target:o,reuseTargetNode:a,...i}),KR(r,c.current),!o&&!a&&c.current&&document.body.appendChild(c.current),()=>{!o&&!a&&c.current&&document.body.removeChild(c.current)}),[o]),!s||!c.current?null:Ki.createPortal(y.jsx(y.Fragment,{children:n}),c.current)});Iae.displayName="@mantine/core/Portal";const lh=Je(({withinPortal:e=!0,children:r,...n},o)=>tk()==="test"||!e?y.jsx(y.Fragment,{children:r}):y.jsx(Iae,{ref:o,...n,children:r}));lh.displayName="@mantine/core/OptionalPortal";const ub=e=>({in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:`scale(.9) translateY(${e==="bottom"?10:-10}px)`},transitionProperty:"transform, opacity"}),kk={fade:{in:{opacity:1},out:{opacity:0},transitionProperty:"opacity"},"fade-up":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(30px)"},transitionProperty:"opacity, transform"},"fade-down":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(-30px)"},transitionProperty:"opacity, transform"},"fade-left":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(30px)"},transitionProperty:"opacity, transform"},"fade-right":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(-30px)"},transitionProperty:"opacity, transform"},scale:{in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:"scale(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-y":{in:{opacity:1,transform:"scaleY(1)"},out:{opacity:0,transform:"scaleY(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-x":{in:{opacity:1,transform:"scaleX(1)"},out:{opacity:0,transform:"scaleX(0)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"skew-up":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:"translateY(-20px) skew(-10deg, -5deg)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"skew-down":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:"translateY(20px) skew(-10deg, -5deg)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-left":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:"translateY(20px) rotate(-5deg)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-right":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:"translateY(20px) rotate(5deg)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-down":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(-100%)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-up":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(100%)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"slide-left":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(100%)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"slide-right":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(-100%)"},common:{transformOrigin:"right"},transitionProperty:"transform, opacity"},pop:{...ub("bottom"),common:{transformOrigin:"center center"}},"pop-bottom-left":{...ub("bottom"),common:{transformOrigin:"bottom left"}},"pop-bottom-right":{...ub("bottom"),common:{transformOrigin:"bottom right"}},"pop-top-left":{...ub("top"),common:{transformOrigin:"top left"}},"pop-top-right":{...ub("top"),common:{transformOrigin:"top right"}}},Oae={entering:"in",entered:"in",exiting:"out",exited:"out","pre-exiting":"out","pre-entering":"out"};function ilt({transition:e,state:r,duration:n,timingFunction:o}){const a={WebkitBackfaceVisibility:"hidden",transitionDuration:`${n}ms`,transitionTimingFunction:o};return typeof e=="string"?e in kk?{transitionProperty:kk[e].transitionProperty,...a,...kk[e].common,...kk[e][Oae[r]]}:{}:{transitionProperty:e.transitionProperty,...a,...e.common,...e[Oae[r]]}}function slt({duration:e,exitDuration:r,timingFunction:n,mounted:o,onEnter:a,onExit:i,onEntered:s,onExited:l,enterDelay:c,exitDelay:d}){const u=_o(),h=ZR(),f=u.respectReducedMotion?h:!1,[g,b]=E.useState(f?0:e),[x,w]=E.useState(o?"entered":"exited"),k=E.useRef(-1),C=E.useRef(-1),_=E.useRef(-1);function T(){window.clearTimeout(k.current),window.clearTimeout(C.current),cancelAnimationFrame(_.current)}const A=D=>{T();const N=D?a:i,P=D?s:l,O=f?0:D?e:r;b(O),O===0?(typeof N=="function"&&N(),typeof P=="function"&&P(),w(D?"entered":"exited")):_.current=requestAnimationFrame(()=>{Zz.flushSync(()=>{w(D?"pre-entering":"pre-exiting")}),_.current=requestAnimationFrame(()=>{typeof N=="function"&&N(),w(D?"entering":"exiting"),k.current=window.setTimeout(()=>{typeof P=="function"&&P(),w(D?"entered":"exited")},O)})})},R=D=>{if(T(),typeof(D?c:d)!="number"){A(D);return}C.current=window.setTimeout(()=>{A(D)},D?c:d)};return th(()=>{R(o)},[o]),E.useEffect(()=>()=>{T()},[]),{transitionDuration:g,transitionStatus:x,transitionTimingFunction:n||"ease"}}function js({keepMounted:e,transition:r="fade",duration:n=250,exitDuration:o=n,mounted:a,children:i,timingFunction:s="ease",onExit:l,onEntered:c,onEnter:d,onExited:u,enterDelay:h,exitDelay:f}){const g=tk(),{transitionDuration:b,transitionStatus:x,transitionTimingFunction:w}=slt({mounted:a,exitDuration:o,duration:n,timingFunction:s,onExit:l,onEntered:c,onEnter:d,onExited:u,enterDelay:h,exitDelay:f});return b===0||g==="test"?a?y.jsx(y.Fragment,{children:i({})}):e?i({display:"none"}):null:x==="exited"?e?i({display:"none"}):null:y.jsx(y.Fragment,{children:i(ilt({transition:r,duration:b,state:x,timingFunction:w}))})}js.displayName="@mantine/core/Transition";const[llt,jae]=qa("Popover component was not found in the tree");function _k({children:e,active:r=!0,refProp:n="ref",innerRef:o}){const a=Mot(r),i=yn(a,o);return Ds(e)?E.cloneElement(e,{[n]:i}):e}function Lae(e){return y.jsx(jN,{tabIndex:-1,"data-autofocus":!0,...e})}_k.displayName="@mantine/core/FocusTrap",Lae.displayName="@mantine/core/FocusTrapInitialFocus",_k.InitialFocus=Lae;var Bae={dropdown:"m_38a85659",arrow:"m_a31dc6c1",overlay:"m_3d7bc908"};const BN=Je((e,r)=>{const n=ze("PopoverDropdown",null,e),{className:o,style:a,vars:i,children:s,onKeyDownCapture:l,variant:c,classNames:d,styles:u,...h}=n,f=jae(),g=poe({opened:f.opened,shouldReturnFocus:f.returnFocus}),b=f.withRoles?{"aria-labelledby":f.getTargetId(),id:f.getDropdownId(),role:"dialog",tabIndex:-1}:{},x=yn(r,f.floating);return f.disabled?null:y.jsx(lh,{...f.portalProps,withinPortal:f.withinPortal,children:y.jsx(js,{mounted:f.opened,...f.transitionProps,transition:f.transitionProps?.transition||"fade",duration:f.transitionProps?.duration??150,keepMounted:f.keepMounted,exitDuration:typeof f.transitionProps?.exitDuration=="number"?f.transitionProps.exitDuration:f.transitionProps?.duration,children:w=>y.jsx(_k,{active:f.trapFocus&&f.opened,innerRef:x,children:y.jsxs(Le,{...b,...h,variant:c,onKeyDownCapture:wot(()=>{f.onClose?.(),f.onDismiss?.()},{active:f.closeOnEscape,onTrigger:g,onKeyDown:l}),"data-position":f.placement,"data-fixed":f.floatingStrategy==="fixed"||void 0,...f.getStyles("dropdown",{className:o,props:n,classNames:d,styles:u,style:[{...w,zIndex:f.zIndex,top:f.y??0,left:f.x??0,width:f.width==="target"?void 0:qe(f.width),...f.referenceHidden?{display:"none"}:null},f.resolvedStyles.dropdown,u?.dropdown,a]}),children:[s,y.jsx(wk,{ref:f.arrowRef,arrowX:f.arrowX,arrowY:f.arrowY,visible:f.withArrow,position:f.placement,arrowSize:f.arrowSize,arrowRadius:f.arrowRadius,arrowOffset:f.arrowOffset,arrowPosition:f.arrowPosition,...f.getStyles("arrow",{props:n,classNames:d,styles:u})})]})})})})});BN.classes=Bae,BN.displayName="@mantine/core/PopoverDropdown";const clt={refProp:"ref",popupType:"dialog"},Fae=Je((e,r)=>{const{children:n,refProp:o,popupType:a,...i}=ze("PopoverTarget",clt,e);if(!Ds(n))throw new Error("Popover.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const s=i,l=jae(),c=yn(l.reference,Q4(n),r),d=l.withRoles?{"aria-haspopup":a,"aria-expanded":l.opened,"aria-controls":l.getDropdownId(),id:l.getTargetId()}:{};return E.cloneElement(n,{...s,...d,...l.targetProps,className:ho(l.targetProps.className,s.className,n.props.className),[o]:c,...l.controlled?null:{onClick:()=>{l.onToggle(),n.props.onClick?.()}}})});Fae.displayName="@mantine/core/PopoverTarget";function dlt(e){if(e===void 0)return{shift:!0,flip:!0};const r={...e};return e.shift===void 0&&(r.shift=!0),e.flip===void 0&&(r.flip=!0),r}function ult(e,r,n){const o=dlt(e.middlewares),a=[nae(e.offset),kst()];return e.dropdownVisible&&n!=="test"&&e.preventPositionChangeWhenVisible&&(o.flip=!1),o.shift&&a.push(EN(typeof o.shift=="boolean"?{limiter:oae(),padding:5}:{limiter:oae(),padding:5,...o.shift})),o.flip&&a.push(typeof o.flip=="boolean"?gk():gk(o.flip)),o.inline&&a.push(typeof o.inline=="boolean"?db():db(o.inline)),a.push(aae({element:e.arrowRef,padding:e.arrowOffset})),(o.size||e.width==="target")&&a.push(wst({...typeof o.size=="boolean"?{}:o.size,apply({rects:i,availableWidth:s,availableHeight:l,...c}){const d=r().refs.floating.current?.style??{};o.size&&(typeof o.size=="object"&&o.size.apply?o.size.apply({rects:i,availableWidth:s,availableHeight:l,...c}):Object.assign(d,{maxWidth:`${s}px`,maxHeight:`${l}px`})),e.width==="target"&&Object.assign(d,{width:`${i.reference.width}px`})}})),a}function plt(e){const r=tk(),[n,o]=Qd({value:e.opened,defaultValue:e.defaultOpened,finalValue:!1,onChange:e.onChange}),a=E.useRef(n),i=()=>{n&&!e.disabled&&o(!1)},s=()=>{e.disabled||o(!n)},l=NN({strategy:e.strategy,placement:e.preventPositionChangeWhenVisible?e.positionRef.current:e.position,middleware:ult(e,()=>l,r),whileElementsMounted:e.keepMounted?void 0:kN});return E.useEffect(()=>{if(!(!l.refs.reference.current||!l.refs.floating.current)&&n)return kN(l.refs.reference.current,l.refs.floating.current,l.update)},[n,l.update]),th(()=>{e.onPositionChange?.(l.placement),e.positionRef.current=l.placement},[l.placement,e.preventPositionChangeWhenVisible]),th(()=>{n!==a.current&&(n?e.onOpen?.():e.onClose?.()),a.current=n},[n,e.onClose,e.onOpen]),th(()=>{let c=-1;return n&&(c=window.setTimeout(()=>e.setDropdownVisible(!0),4)),()=>{window.clearTimeout(c)}},[n,e.position]),{floating:l,controlled:typeof e.opened=="boolean",opened:n,onClose:i,onToggle:s}}const hlt={position:"bottom",offset:8,positionDependencies:[],transitionProps:{transition:"fade",duration:150},middlewares:{flip:!0,shift:!0,inline:!1},arrowSize:7,arrowOffset:5,arrowRadius:0,arrowPosition:"side",closeOnClickOutside:!0,withinPortal:!0,closeOnEscape:!0,trapFocus:!1,withRoles:!0,returnFocus:!1,withOverlay:!1,hideDetached:!0,clickOutsideEvents:["mousedown","touchstart"],zIndex:$s("popover"),__staticSelector:"Popover",width:"max-content"},flt=(e,{radius:r,shadow:n})=>({dropdown:{"--popover-radius":r===void 0?void 0:Tn(r),"--popover-shadow":UR(n)}});function Eo(e){const r=ze("Popover",hlt,e),{children:n,position:o,offset:a,onPositionChange:i,positionDependencies:s,opened:l,transitionProps:c,onExitTransitionEnd:d,onEnterTransitionEnd:u,width:h,middlewares:f,withArrow:g,arrowSize:b,arrowOffset:x,arrowRadius:w,arrowPosition:k,unstyled:C,classNames:_,styles:T,closeOnClickOutside:A,withinPortal:R,portalProps:D,closeOnEscape:N,clickOutsideEvents:P,trapFocus:O,onClose:F,onDismiss:L,onOpen:U,onChange:M,zIndex:V,radius:I,shadow:H,id:q,defaultOpened:Z,__staticSelector:W,withRoles:G,disabled:K,returnFocus:j,variant:Y,keepMounted:Q,vars:J,floatingStrategy:ie,withOverlay:ne,overlayProps:re,hideDetached:ge,attributes:De,preventPositionChangeWhenVisible:he,...me}=r,Te=vt({name:W,props:r,classes:Bae,classNames:_,styles:T,unstyled:C,attributes:De,rootSelector:"dropdown",vars:J,varsResolver:flt}),{resolvedStyles:Ie}=eN({classNames:_,styles:T,props:r}),[Ze,rt]=E.useState(l??Z??!1),Rt=E.useRef(o),Qe=E.useRef(null),[Mt,Ke]=E.useState(null),[Ge,ct]=E.useState(null),{dir:dt}=Rc(),Ir=tk(),Ee=Ms(q),Se=plt({middlewares:f,width:h,position:Mae(dt,o),offset:typeof a=="number"?a+(g?b/2:0):a,arrowRef:Qe,arrowOffset:x,onPositionChange:i,positionDependencies:s,opened:l,defaultOpened:Z,onChange:M,onOpen:U,onClose:F,onDismiss:L,strategy:ie,dropdownVisible:Ze,setDropdownVisible:rt,positionRef:Rt,disabled:K,preventPositionChangeWhenVisible:he,keepMounted:Q});uoe(()=>{A&&(Se.onClose(),L?.())},P,[Mt,Ge]);const it=E.useCallback(It=>{Ke(It),Se.floating.refs.setReference(It)},[Se.floating.refs.setReference]),xt=E.useCallback(It=>{ct(It),Se.floating.refs.setFloating(It)},[Se.floating.refs.setFloating]),zt=E.useCallback(()=>{c?.onExited?.(),d?.(),rt(!1),he||(Rt.current=o)},[c?.onExited,d,he,o]),Fr=E.useCallback(()=>{c?.onEntered?.(),u?.()},[c?.onEntered,u]);return y.jsxs(llt,{value:{returnFocus:j,disabled:K,controlled:Se.controlled,reference:it,floating:xt,x:Se.floating.x,y:Se.floating.y,arrowX:Se.floating?.middlewareData?.arrow?.x,arrowY:Se.floating?.middlewareData?.arrow?.y,opened:Se.opened,arrowRef:Qe,transitionProps:{...c,onExited:zt,onEntered:Fr},width:h,withArrow:g,arrowSize:b,arrowOffset:x,arrowRadius:w,arrowPosition:k,placement:Se.floating.placement,trapFocus:O,withinPortal:R,portalProps:D,zIndex:V,radius:I,shadow:H,closeOnEscape:N,onDismiss:L,onClose:Se.onClose,onToggle:Se.onToggle,getTargetId:()=>`${Ee}-target`,getDropdownId:()=>`${Ee}-dropdown`,withRoles:G,targetProps:me,__staticSelector:W,classNames:_,styles:T,unstyled:C,variant:Y,keepMounted:Q,getStyles:Te,resolvedStyles:Ie,floatingStrategy:ie,referenceHidden:ge&&Ir!=="test"?Se.floating.middlewareData.hide?.referenceHidden:!1},children:[n,ne&&y.jsx(js,{transition:"fade",mounted:Se.opened,duration:c?.duration||250,exitDuration:c?.exitDuration||250,children:It=>y.jsx(lh,{withinPortal:R,children:y.jsx(fg,{...re,...Te("overlay",{className:re?.className,style:[It,re?.style]})})})})]})}Eo.Target=Fae,Eo.Dropdown=BN,Eo.displayName="@mantine/core/Popover",Eo.extend=e=>e;var Ls={root:"m_5ae2e3c",barsLoader:"m_7a2bd4cd",bar:"m_870bb79","bars-loader-animation":"m_5d2b3b9d",dotsLoader:"m_4e3f22d7",dot:"m_870c4af","loader-dots-animation":"m_aac34a1",ovalLoader:"m_b34414df","oval-loader-animation":"m_f8e89c4b"};const Hae=E.forwardRef(({className:e,...r},n)=>y.jsxs(Le,{component:"span",className:ho(Ls.barsLoader,e),...r,ref:n,children:[y.jsx("span",{className:Ls.bar}),y.jsx("span",{className:Ls.bar}),y.jsx("span",{className:Ls.bar})]}));Hae.displayName="@mantine/core/Bars";const Vae=E.forwardRef(({className:e,...r},n)=>y.jsxs(Le,{component:"span",className:ho(Ls.dotsLoader,e),...r,ref:n,children:[y.jsx("span",{className:Ls.dot}),y.jsx("span",{className:Ls.dot}),y.jsx("span",{className:Ls.dot})]}));Vae.displayName="@mantine/core/Dots";const qae=E.forwardRef(({className:e,...r},n)=>y.jsx(Le,{component:"span",className:ho(Ls.ovalLoader,e),...r,ref:n}));qae.displayName="@mantine/core/Oval";const Uae={bars:Hae,oval:qae,dots:Vae},mlt={loaders:Uae,type:"oval"},glt=(e,{size:r,color:n})=>({root:{"--loader-size":dr(r,"loader-size"),"--loader-color":n?Jo(n,e):void 0}}),ch=Je((e,r)=>{const n=ze("Loader",mlt,e),{size:o,color:a,type:i,vars:s,className:l,style:c,classNames:d,styles:u,unstyled:h,loaders:f,variant:g,children:b,attributes:x,...w}=n,k=vt({name:"Loader",props:n,classes:Ls,className:l,style:c,classNames:d,styles:u,unstyled:h,attributes:x,vars:s,varsResolver:glt});return b?y.jsx(Le,{...k("root"),ref:r,...w,children:b}):y.jsx(Le,{...k("root"),ref:r,component:f[i],variant:g,size:o,...w})});ch.defaultLoaders=Uae,ch.classes=Ls,ch.displayName="@mantine/core/Loader";var mg={root:"m_8d3f4000",icon:"m_8d3afb97",loader:"m_302b9fb1",group:"m_1a0f1b21",groupSection:"m_437b6484"};const Wae={orientation:"horizontal"},ylt=(e,{borderWidth:r})=>({group:{"--ai-border-width":qe(r)}}),FN=Je((e,r)=>{const n=ze("ActionIconGroup",Wae,e),{className:o,style:a,classNames:i,styles:s,unstyled:l,orientation:c,vars:d,borderWidth:u,variant:h,mod:f,attributes:g,...b}=ze("ActionIconGroup",Wae,e),x=vt({name:"ActionIconGroup",props:n,classes:mg,className:o,style:a,classNames:i,styles:s,unstyled:l,attributes:g,vars:d,varsResolver:ylt,rootSelector:"group"});return y.jsx(Le,{...x("group"),ref:r,variant:h,mod:[{"data-orientation":c},f],role:"group",...b})});FN.classes=mg,FN.displayName="@mantine/core/ActionIconGroup";const blt=(e,{radius:r,color:n,gradient:o,variant:a,autoContrast:i,size:s})=>{const l=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:o,variant:a||"filled",autoContrast:i});return{groupSection:{"--section-height":dr(s,"section-height"),"--section-padding-x":dr(s,"section-padding-x"),"--section-fz":Fo(s),"--section-radius":r===void 0?void 0:Tn(r),"--section-bg":n||a?l.background:void 0,"--section-color":l.color,"--section-bd":n||a?l.border:void 0}}},HN=Je((e,r)=>{const n=ze("ActionIconGroupSection",null,e),{className:o,style:a,classNames:i,styles:s,unstyled:l,vars:c,variant:d,gradient:u,radius:h,autoContrast:f,attributes:g,...b}=n,x=vt({name:"ActionIconGroupSection",props:n,classes:mg,className:o,style:a,classNames:i,styles:s,unstyled:l,attributes:g,vars:c,varsResolver:blt,rootSelector:"groupSection"});return y.jsx(Le,{...x("groupSection"),ref:r,variant:d,...b})});HN.classes=mg,HN.displayName="@mantine/core/ActionIconGroupSection";const vlt=(e,{size:r,radius:n,variant:o,gradient:a,color:i,autoContrast:s})=>{const l=e.variantColorResolver({color:i||e.primaryColor,theme:e,gradient:a,variant:o||"filled",autoContrast:s});return{root:{"--ai-size":dr(r,"ai-size"),"--ai-radius":n===void 0?void 0:Tn(n),"--ai-bg":i||o?l.background:void 0,"--ai-hover":i||o?l.hover:void 0,"--ai-hover-color":i||o?l.hoverColor:void 0,"--ai-color":l.color,"--ai-bd":i||o?l.border:void 0}}},Ek=Jn((e,r)=>{const n=ze("ActionIcon",null,e),{className:o,unstyled:a,variant:i,classNames:s,styles:l,style:c,loading:d,loaderProps:u,size:h,color:f,radius:g,__staticSelector:b,gradient:x,vars:w,children:k,disabled:C,"data-disabled":_,autoContrast:T,mod:A,attributes:R,...D}=n,N=vt({name:["ActionIcon",b],props:n,className:o,style:c,classes:mg,classNames:s,styles:l,unstyled:a,attributes:R,vars:w,varsResolver:vlt});return y.jsxs(Nl,{...N("root",{active:!C&&!d&&!_}),...D,unstyled:a,variant:i,size:h,disabled:C||d,ref:r,mod:[{loading:d,disabled:C||_},A],children:[typeof d=="boolean"&&y.jsx(js,{mounted:d,transition:"slide-down",duration:150,children:P=>y.jsx(Le,{component:"span",...N("loader",{style:P}),"aria-hidden":!0,children:y.jsx(ch,{color:"var(--ai-color)",size:"calc(var(--ai-size) * 0.55)",...u})})}),y.jsx(Le,{component:"span",mod:{loading:d},...N("icon"),children:k})]})});Ek.classes=mg,Ek.displayName="@mantine/core/ActionIcon",Ek.Group=FN,Ek.GroupSection=HN;const Yae=E.forwardRef(({size:e="var(--cb-icon-size, 70%)",style:r,...n},o)=>y.jsx("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{...r,width:e,height:e},ref:o,...n,children:y.jsx("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})}));Yae.displayName="@mantine/core/CloseIcon";var Gae={root:"m_86a44da5","root--subtle":"m_220c80f2"};const xlt={variant:"subtle"},wlt=(e,{size:r,radius:n,iconSize:o})=>({root:{"--cb-size":dr(r,"cb-size"),"--cb-radius":n===void 0?void 0:Tn(n),"--cb-icon-size":qe(o)}}),dh=Jn((e,r)=>{const n=ze("CloseButton",xlt,e),{iconSize:o,children:a,vars:i,radius:s,className:l,classNames:c,style:d,styles:u,unstyled:h,"data-disabled":f,disabled:g,variant:b,icon:x,mod:w,attributes:k,__staticSelector:C,..._}=n,T=vt({name:C||"CloseButton",props:n,className:l,style:d,classes:Gae,classNames:c,styles:u,unstyled:h,attributes:k,vars:i,varsResolver:wlt});return y.jsxs(Nl,{ref:r,..._,unstyled:h,variant:b,disabled:g,mod:[{disabled:g||f},w],...T("root",{variant:b,active:!g&&!f}),children:[x||y.jsx(Yae,{}),a]})});dh.classes=Gae,dh.displayName="@mantine/core/CloseButton";function klt(e){return E.Children.toArray(e).filter(Boolean)}var Xae={root:"m_4081bf90"};const _lt={preventGrowOverflow:!0,gap:"md",align:"center",justify:"flex-start",wrap:"wrap"},Elt=(e,{grow:r,preventGrowOverflow:n,gap:o,align:a,justify:i,wrap:s},{childWidth:l})=>({root:{"--group-child-width":r&&n?l:void 0,"--group-gap":po(o),"--group-align":a,"--group-justify":i,"--group-wrap":s}}),Kae=Je((e,r)=>{const n=ze("Group",_lt,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,children:c,gap:d,align:u,justify:h,wrap:f,grow:g,preventGrowOverflow:b,vars:x,variant:w,__size:k,mod:C,attributes:_,...T}=n,A=klt(c),R=A.length,D=po(d??"md"),N={childWidth:`calc(${100/R}% - (${D} - ${D} / ${R}))`},P=vt({name:"Group",props:n,stylesCtx:N,className:a,style:i,classes:Xae,classNames:o,styles:s,unstyled:l,attributes:_,vars:x,varsResolver:Elt});return y.jsx(Le,{...P("root"),ref:r,variant:w,mod:[{grow:g},C],size:k,...T,children:A})});Kae.classes=Xae,Kae.displayName="@mantine/core/Group";const[Slt,Pc]=qa("ModalBase component was not found in tree");function Clt({opened:e,transitionDuration:r}){const[n,o]=E.useState(e),a=E.useRef(-1),i=ZR()?0:r;return E.useEffect(()=>(e?(o(!0),window.clearTimeout(a.current)):i===0?o(!1):a.current=window.setTimeout(()=>o(!1),i),()=>window.clearTimeout(a.current)),[e,i]),n}function Tlt({id:e,transitionProps:r,opened:n,trapFocus:o,closeOnEscape:a,onClose:i,returnFocus:s}){const l=Ms(e),[c,d]=E.useState(!1),[u,h]=E.useState(!1),f=typeof r?.duration=="number"?r?.duration:200,g=Clt({opened:n,transitionDuration:f});return Oot("keydown",b=>{b.key==="Escape"&&a&&!b.isComposing&&n&&b.target?.getAttribute("data-mantine-stop-propagation")!=="true"&&i()},{capture:!0}),poe({opened:n,shouldReturnFocus:o&&s}),{_id:l,titleMounted:c,bodyMounted:u,shouldLockScroll:g,setTitleMounted:d,setBodyMounted:h}}const VN=E.forwardRef(({keepMounted:e,opened:r,onClose:n,id:o,transitionProps:a,onExitTransitionEnd:i,onEnterTransitionEnd:s,trapFocus:l,closeOnEscape:c,returnFocus:d,closeOnClickOutside:u,withinPortal:h,portalProps:f,lockScroll:g,children:b,zIndex:x,shadow:w,padding:k,__vars:C,unstyled:_,removeScrollProps:T,...A},R)=>{const{_id:D,titleMounted:N,bodyMounted:P,shouldLockScroll:O,setTitleMounted:F,setBodyMounted:L}=Tlt({id:o,transitionProps:a,opened:r,trapFocus:l,closeOnEscape:c,onClose:n,returnFocus:d}),{key:U,...M}=T||{};return y.jsx(lh,{...f,withinPortal:h,children:y.jsx(Slt,{value:{opened:r,onClose:n,closeOnClickOutside:u,onExitTransitionEnd:i,onEnterTransitionEnd:s,transitionProps:{...a,keepMounted:e},getTitleId:()=>`${D}-title`,getBodyId:()=>`${D}-body`,titleMounted:N,bodyMounted:P,setTitleMounted:F,setBodyMounted:L,trapFocus:l,closeOnEscape:c,zIndex:x,unstyled:_},children:y.jsx(ioe,{enabled:O&&g,...M,children:y.jsx(Le,{ref:R,...A,__vars:{...C,"--mb-z-index":(x||$s("modal")).toString(),"--mb-shadow":UR(w),"--mb-padding":po(k)},children:b})},U)})})});VN.displayName="@mantine/core/ModalBase";function Alt(){const e=Pc();return E.useEffect(()=>(e.setBodyMounted(!0),()=>e.setBodyMounted(!1)),[]),e.getBodyId()}var gg={title:"m_615af6c9",header:"m_b5489c3c",inner:"m_60c222c7",content:"m_fd1ab0aa",close:"m_606cb269",body:"m_5df29311"};const qN=E.forwardRef(({className:e,...r},n)=>{const o=Alt(),a=Pc();return y.jsx(Le,{ref:n,...r,id:o,className:ho({[gg.body]:!a.unstyled},e)})});qN.displayName="@mantine/core/ModalBaseBody";const Zae=E.forwardRef(({className:e,onClick:r,...n},o)=>{const a=Pc();return y.jsx(dh,{ref:o,...n,onClick:i=>{a.onClose(),r?.(i)},className:ho({[gg.close]:!a.unstyled},e),unstyled:a.unstyled})});Zae.displayName="@mantine/core/ModalBaseCloseButton";const UN=E.forwardRef(({transitionProps:e,className:r,innerProps:n,onKeyDown:o,style:a,...i},s)=>{const l=Pc();return y.jsx(js,{mounted:l.opened,transition:"pop",...l.transitionProps,onExited:()=>{l.onExitTransitionEnd?.(),l.transitionProps?.onExited?.()},onEntered:()=>{l.onEnterTransitionEnd?.(),l.transitionProps?.onEntered?.()},...e,children:c=>y.jsx("div",{...n,className:ho({[gg.inner]:!l.unstyled},n.className),children:y.jsx(_k,{active:l.opened&&l.trapFocus,innerRef:s,children:y.jsx(xk,{...i,component:"section",role:"dialog",tabIndex:-1,"aria-modal":!0,"aria-describedby":l.bodyMounted?l.getBodyId():void 0,"aria-labelledby":l.titleMounted?l.getTitleId():void 0,style:[a,c],className:ho({[gg.content]:!l.unstyled},r),unstyled:l.unstyled,children:i.children})})})})});UN.displayName="@mantine/core/ModalBaseContent";const Qae=E.forwardRef(({className:e,...r},n)=>{const o=Pc();return y.jsx(Le,{component:"header",ref:n,className:ho({[gg.header]:!o.unstyled},e),...r})});Qae.displayName="@mantine/core/ModalBaseHeader";const Rlt={duration:200,timingFunction:"ease",transition:"fade"};function Nlt(e){const r=Pc();return{...Rlt,...r.transitionProps,...e}}const WN=E.forwardRef(({onClick:e,transitionProps:r,style:n,visible:o,...a},i)=>{const s=Pc(),l=Nlt(r);return y.jsx(js,{mounted:o!==void 0?o:s.opened,...l,transition:"fade",children:c=>y.jsx(fg,{ref:i,fixed:!0,style:[n,c],zIndex:s.zIndex,unstyled:s.unstyled,onClick:d=>{e?.(d),s.closeOnClickOutside&&s.onClose()},...a})})});WN.displayName="@mantine/core/ModalBaseOverlay";function Dlt(){const e=Pc();return E.useEffect(()=>(e.setTitleMounted(!0),()=>e.setTitleMounted(!1)),[]),e.getTitleId()}const Jae=E.forwardRef(({className:e,...r},n)=>{const o=Dlt(),a=Pc();return y.jsx(Le,{component:"h2",ref:n,className:ho({[gg.title]:!a.unstyled},e),...r,id:o})});Jae.displayName="@mantine/core/ModalBaseTitle";function eie({children:e}){return y.jsx(y.Fragment,{children:e})}const[$lt,Plt]=ng({size:"sm"}),tie=Je((e,r)=>{const n=ze("InputClearButton",null,e),{size:o,variant:a,vars:i,classNames:s,styles:l,...c}=n,d=Plt(),{resolvedClassNames:u,resolvedStyles:h}=eN({classNames:s,styles:l,props:n});return y.jsx(dh,{variant:a||"transparent",ref:r,size:o||d?.size||"sm",classNames:u,styles:h,__staticSelector:"InputClearButton",style:{pointerEvents:"all",background:"var(--input-bg)",...c.style},...c})});tie.displayName="@mantine/core/InputClearButton";const Mlt={xs:7,sm:8,md:10,lg:12,xl:15};function zlt({__clearable:e,__clearSection:r,rightSection:n,__defaultRightSection:o,size:a="sm"}){const i=e&&r;return i&&(n||o)?y.jsxs("div",{"data-combined-clear-section":!0,style:{display:"flex",gap:2,alignItems:"center",paddingInlineEnd:Mlt[a]},children:[i,n||o]}):n===null?null:n||i||o}const[Ilt,Sk]=ng({offsetBottom:!1,offsetTop:!1,describedBy:void 0,getStyles:null,inputId:void 0,labelId:void 0});var zi={wrapper:"m_6c018570",input:"m_8fb7ebe7",section:"m_82577fc2",placeholder:"m_88bacfd0",root:"m_46b77525",label:"m_8fdc1311",required:"m_78a94662",error:"m_8f816625",description:"m_fe47ce59"};const Olt=(e,{size:r})=>({description:{"--input-description-size":r===void 0?void 0:`calc(${Fo(r)} - ${qe(2)})`}}),Ck=Je((e,r)=>{const n=ze("InputDescription",null,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,size:d,__staticSelector:u,__inheritStyles:h=!0,attributes:f,variant:g,...b}=ze("InputDescription",null,n),x=Sk(),w=vt({name:["InputWrapper",u],props:n,classes:zi,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:f,rootSelector:"description",vars:c,varsResolver:Olt}),k=h&&x?.getStyles||w;return y.jsx(Le,{component:"p",ref:r,variant:g,size:d,...k("description",x?.getStyles?{className:a,style:i}:void 0),...b})});Ck.classes=zi,Ck.displayName="@mantine/core/InputDescription";const jlt=(e,{size:r})=>({error:{"--input-error-size":r===void 0?void 0:`calc(${Fo(r)} - ${qe(2)})`}}),Tk=Je((e,r)=>{const n=ze("InputError",null,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,size:d,attributes:u,__staticSelector:h,__inheritStyles:f=!0,variant:g,...b}=n,x=vt({name:["InputWrapper",h],props:n,classes:zi,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:u,rootSelector:"error",vars:c,varsResolver:jlt}),w=Sk(),k=f&&w?.getStyles||x;return y.jsx(Le,{component:"p",ref:r,variant:g,size:d,...k("error",w?.getStyles?{className:a,style:i}:void 0),...b})});Tk.classes=zi,Tk.displayName="@mantine/core/InputError";const rie={labelElement:"label"},Llt=(e,{size:r})=>({label:{"--input-label-size":Fo(r),"--input-asterisk-color":void 0}}),Ak=Je((e,r)=>{const n=ze("InputLabel",rie,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,labelElement:d,size:u,required:h,htmlFor:f,onMouseDown:g,children:b,__staticSelector:x,variant:w,mod:k,attributes:C,..._}=ze("InputLabel",rie,n),T=vt({name:["InputWrapper",x],props:n,classes:zi,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:C,rootSelector:"label",vars:c,varsResolver:Llt}),A=Sk(),R=A?.getStyles||T;return y.jsxs(Le,{...R("label",A?.getStyles?{className:a,style:i}:void 0),component:d,variant:w,size:u,ref:r,htmlFor:d==="label"?f:void 0,mod:[{required:h},k],onMouseDown:D=>{g?.(D),!D.defaultPrevented&&D.detail>1&&D.preventDefault()},..._,children:[b,h&&y.jsx("span",{...R("required"),"aria-hidden":!0,children:" *"})]})});Ak.classes=zi,Ak.displayName="@mantine/core/InputLabel";const YN=Je((e,r)=>{const n=ze("InputPlaceholder",null,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,__staticSelector:d,variant:u,error:h,mod:f,attributes:g,...b}=n,x=vt({name:["InputPlaceholder",d],props:n,classes:zi,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:g,rootSelector:"placeholder"});return y.jsx(Le,{...x("placeholder"),mod:[{error:!!h},f],component:"span",variant:u,ref:r,...b})});YN.classes=zi,YN.displayName="@mantine/core/InputPlaceholder";function Blt(e,{hasDescription:r,hasError:n}){const o=e.findIndex(l=>l==="input"),a=e.slice(0,o),i=e.slice(o+1),s=r&&a.includes("description")||n&&a.includes("error");return{offsetBottom:r&&i.includes("description")||n&&i.includes("error"),offsetTop:s}}const Flt={labelElement:"label",inputContainer:e=>e,inputWrapperOrder:["label","description","input","error"]},Hlt=(e,{size:r})=>({label:{"--input-label-size":Fo(r),"--input-asterisk-color":void 0},error:{"--input-error-size":r===void 0?void 0:`calc(${Fo(r)} - ${qe(2)})`},description:{"--input-description-size":r===void 0?void 0:`calc(${Fo(r)} - ${qe(2)})`}}),GN=Je((e,r)=>{const n=ze("InputWrapper",Flt,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,size:d,variant:u,__staticSelector:h,inputContainer:f,inputWrapperOrder:g,label:b,error:x,description:w,labelProps:k,descriptionProps:C,errorProps:_,labelElement:T,children:A,withAsterisk:R,id:D,required:N,__stylesApiProps:P,mod:O,attributes:F,...L}=n,U=vt({name:["InputWrapper",h],props:P||n,classes:zi,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:F,vars:c,varsResolver:Hlt}),M={size:d,variant:u,__staticSelector:h},V=Ms(D),I=typeof R=="boolean"?R:N,H=_?.id||`${V}-error`,q=C?.id||`${V}-description`,Z=V,W=!!x&&typeof x!="boolean",G=!!w,K=`${W?H:""} ${G?q:""}`,j=K.trim().length>0?K.trim():void 0,Y=k?.id||`${V}-label`,Q=b&&y.jsx(Ak,{labelElement:T,id:Y,htmlFor:Z,required:I,...M,...k,children:b},"label"),J=G&&y.jsx(Ck,{...C,...M,size:C?.size||M.size,id:C?.id||q,children:w},"description"),ie=y.jsx(E.Fragment,{children:f(A)},"input"),ne=W&&E.createElement(Tk,{..._,...M,size:_?.size||M.size,key:"error",id:_?.id||H},x),re=g.map(ge=>{switch(ge){case"label":return Q;case"input":return ie;case"description":return J;case"error":return ne;default:return null}});return y.jsx(Ilt,{value:{getStyles:U,describedBy:j,inputId:Z,labelId:Y,...Blt(g,{hasDescription:G,hasError:W})},children:y.jsx(Le,{ref:r,variant:u,size:d,mod:[{error:!!x},O],...U("root"),...L,children:re})})});GN.classes=zi,GN.displayName="@mantine/core/InputWrapper";const Vlt={variant:"default",leftSectionPointerEvents:"none",rightSectionPointerEvents:"none",withAria:!0,withErrorStyles:!0,size:"sm"},qlt=(e,r,n)=>({wrapper:{"--input-margin-top":n.offsetTop?"calc(var(--mantine-spacing-xs) / 2)":void 0,"--input-margin-bottom":n.offsetBottom?"calc(var(--mantine-spacing-xs) / 2)":void 0,"--input-height":dr(r.size,"input-height"),"--input-fz":Fo(r.size),"--input-radius":r.radius===void 0?void 0:Tn(r.radius),"--input-left-section-width":r.leftSectionWidth!==void 0?qe(r.leftSectionWidth):void 0,"--input-right-section-width":r.rightSectionWidth!==void 0?qe(r.rightSectionWidth):void 0,"--input-padding-y":r.multiline?dr(r.size,"input-padding-y"):void 0,"--input-left-section-pointer-events":r.leftSectionPointerEvents,"--input-right-section-pointer-events":r.rightSectionPointerEvents}}),ya=Jn((e,r)=>{const n=ze("Input",Vlt,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,required:c,__staticSelector:d,__stylesApiProps:u,size:h,wrapperProps:f,error:g,disabled:b,leftSection:x,leftSectionProps:w,leftSectionWidth:k,rightSection:C,rightSectionProps:_,rightSectionWidth:T,rightSectionPointerEvents:A,leftSectionPointerEvents:R,variant:D,vars:N,pointer:P,multiline:O,radius:F,id:L,withAria:U,withErrorStyles:M,mod:V,inputSize:I,attributes:H,__clearSection:q,__clearable:Z,__defaultRightSection:W,...G}=n,{styleProps:K,rest:j}=nN(G),Y=Sk(),Q={offsetBottom:Y?.offsetBottom,offsetTop:Y?.offsetTop},J=vt({name:["Input",d],props:u||n,classes:zi,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:H,stylesCtx:Q,rootSelector:"wrapper",vars:N,varsResolver:qlt}),ie=U?{required:c,disabled:b,"aria-invalid":!!g,"aria-describedby":Y?.describedBy,id:Y?.inputId||L}:{},ne=zlt({__clearable:Z,__clearSection:q,rightSection:C,__defaultRightSection:W,size:h});return y.jsx($lt,{value:{size:h||"sm"},children:y.jsxs(Le,{...J("wrapper"),...K,...f,mod:[{error:!!g&&M,pointer:P,disabled:b,multiline:O,"data-with-right-section":!!ne,"data-with-left-section":!!x},V],variant:D,size:h,children:[x&&y.jsx("div",{...w,"data-position":"left",...J("section",{className:w?.className,style:w?.style}),children:x}),y.jsx(Le,{component:"input",...j,...ie,ref:r,required:c,mod:{disabled:b,error:!!g&&M},variant:D,__size:I,...J("input")}),ne&&y.jsx("div",{..._,"data-position":"right",...J("section",{className:_?.className,style:_?.style}),children:ne})]})})});ya.classes=zi,ya.Wrapper=GN,ya.Label=Ak,ya.Error=Tk,ya.Description=Ck,ya.Placeholder=YN,ya.ClearButton=tie,ya.displayName="@mantine/core/Input";function Ult(e,r,n){const o=ze(e,r,n),{label:a,description:i,error:s,required:l,classNames:c,styles:d,className:u,unstyled:h,__staticSelector:f,__stylesApiProps:g,errorProps:b,labelProps:x,descriptionProps:w,wrapperProps:k,id:C,size:_,style:T,inputContainer:A,inputWrapperOrder:R,withAsterisk:D,variant:N,vars:P,mod:O,attributes:F,...L}=o,{styleProps:U,rest:M}=nN(L),V={label:a,description:i,error:s,required:l,classNames:c,className:u,__staticSelector:f,__stylesApiProps:g||o,errorProps:b,labelProps:x,descriptionProps:w,unstyled:h,styles:d,size:_,style:T,inputContainer:A,inputWrapperOrder:R,withAsterisk:D,variant:N,id:C,mod:O,attributes:F,...k};return{...M,classNames:c,styles:d,unstyled:h,wrapperProps:{...V,...U},inputProps:{required:l,classNames:c,styles:d,unstyled:h,size:_,__staticSelector:f,__stylesApiProps:g||o,error:s,variant:N,id:C,attributes:F}}}const Wlt={__staticSelector:"InputBase",withAria:!0,size:"sm"},Rk=Jn((e,r)=>{const{inputProps:n,wrapperProps:o,...a}=Ult("InputBase",Wlt,e);return y.jsx(ya.Wrapper,{...o,children:y.jsx(ya,{...n,...a,ref:r})})});Rk.classes={...ya.classes,...ya.Wrapper.classes},Rk.displayName="@mantine/core/InputBase";const Ylt={gap:{type:"spacing",property:"gap"},rowGap:{type:"spacing",property:"rowGap"},columnGap:{type:"spacing",property:"columnGap"},align:{type:"identity",property:"alignItems"},justify:{type:"identity",property:"justifyContent"},wrap:{type:"identity",property:"flexWrap"},direction:{type:"identity",property:"flexDirection"}};var nie={root:"m_8bffd616"};const oie=Jn((e,r)=>{const n=ze("Flex",null,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,gap:d,rowGap:u,columnGap:h,align:f,justify:g,wrap:b,direction:x,attributes:w,...k}=n,C=vt({name:"Flex",classes:nie,props:n,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:w,vars:c}),_=_o(),T=ib(),A=Toe({styleProps:{gap:d,rowGap:u,columnGap:h,align:f,justify:g,wrap:b,direction:x},theme:_,data:Ylt});return y.jsxs(y.Fragment,{children:[A.hasResponsiveStyles&&y.jsx(sg,{selector:`.${T}`,styles:A.styles,media:A.media}),y.jsx(Le,{ref:r,...C("root",{className:T,style:Zd(A.inlineStyles)}),...k})]})});oie.classes=nie,oie.displayName="@mantine/core/Flex";function Glt(e,r){if(!r||!e)return!1;let n=r.parentNode;for(;n!=null;){if(n===e)return!0;n=n.parentNode}return!1}function Xlt({target:e,parent:r,ref:n,displayAfterTransitionEnd:o}){const a=E.useRef(-1),[i,s]=E.useState(!1),[l,c]=E.useState(typeof o=="boolean"?o:!1),d=()=>{if(!e||!r||!n.current)return;const g=e.getBoundingClientRect(),b=r.getBoundingClientRect(),x=window.getComputedStyle(e),w=window.getComputedStyle(r),k=Jd(x.borderTopWidth)+Jd(w.borderTopWidth),C=Jd(x.borderLeftWidth)+Jd(w.borderLeftWidth),_={top:g.top-b.top-k,left:g.left-b.left-C,width:g.width,height:g.height};n.current.style.transform=`translateY(${_.top}px) translateX(${_.left}px)`,n.current.style.width=`${_.width}px`,n.current.style.height=`${_.height}px`},u=()=>{window.clearTimeout(a.current),n.current&&(n.current.style.transitionDuration="0ms"),d(),a.current=window.setTimeout(()=>{n.current&&(n.current.style.transitionDuration="")},30)},h=E.useRef(null),f=E.useRef(null);return E.useEffect(()=>{if(d(),e)return h.current=new ResizeObserver(u),h.current.observe(e),r&&(f.current=new ResizeObserver(u),f.current.observe(r)),()=>{h.current?.disconnect(),f.current?.disconnect()}},[r,e]),E.useEffect(()=>{if(r){const g=b=>{Glt(b.target,r)&&(u(),c(!1))};return r.addEventListener("transitionend",g),()=>{r.removeEventListener("transitionend",g)}}},[r]),Vot(()=>{Yot()!=="test"&&s(!0)},20,{autoInvoke:!0}),Uot(g=>{g.forEach(b=>{b.type==="attributes"&&b.attributeName==="dir"&&u()})},{attributes:!0,attributeFilter:["dir"]},()=>document.documentElement),{initialized:i,hidden:l}}var aie={root:"m_96b553a6"};const Klt=(e,{transitionDuration:r})=>({root:{"--transition-duration":typeof r=="number"?`${r}ms`:r}}),XN=Je((e,r)=>{const n=ze("FloatingIndicator",null,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,target:d,parent:u,transitionDuration:h,mod:f,displayAfterTransitionEnd:g,attributes:b,...x}=n,w=vt({name:"FloatingIndicator",classes:aie,props:n,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:b,vars:c,varsResolver:Klt}),k=E.useRef(null),{initialized:C,hidden:_}=Xlt({target:d,parent:u,ref:k,displayAfterTransitionEnd:g}),T=yn(r,k);return!d||!u?null:y.jsx(Le,{ref:T,mod:[{initialized:C,hidden:_},f],...w("root"),...x})});XN.displayName="@mantine/core/FloatingIndicator",XN.classes=aie;function Zlt({open:e,close:r,openDelay:n,closeDelay:o}){const a=E.useRef(-1),i=E.useRef(-1),s=()=>{window.clearTimeout(a.current),window.clearTimeout(i.current)},l=()=>{s(),e()},c=()=>{s(),o===0||o===void 0?r():i.current=window.setTimeout(r,o)};return E.useEffect(()=>s,[]),{openDropdown:l,closeDropdown:c}}function KN({style:e,size:r=16,...n}){return y.jsx("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{...e,width:qe(r),height:qe(r),display:"block"},...n,children:y.jsx("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}KN.displayName="@mantine/core/AccordionChevron";var iie={root:"m_66836ed3",wrapper:"m_a5d60502",body:"m_667c2793",title:"m_6a03f287",label:"m_698f4f23",icon:"m_667f2a6a",message:"m_7fa78076",closeButton:"m_87f54839"};const Qlt=(e,{radius:r,color:n,variant:o,autoContrast:a})=>{const i=e.variantColorResolver({color:n||e.primaryColor,theme:e,variant:o||"light",autoContrast:a});return{root:{"--alert-radius":r===void 0?void 0:Tn(r),"--alert-bg":n||o?i.background:void 0,"--alert-color":i.color,"--alert-bd":n||o?i.border:void 0}}},sie=Je((e,r)=>{const n=ze("Alert",null,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,radius:d,color:u,title:h,children:f,id:g,icon:b,withCloseButton:x,onClose:w,closeButtonLabel:k,variant:C,autoContrast:_,attributes:T,...A}=n,R=vt({name:"Alert",classes:iie,props:n,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:T,vars:c,varsResolver:Qlt}),D=Ms(g),N=h&&`${D}-title`||void 0,P=`${D}-body`;return y.jsx(Le,{id:D,...R("root",{variant:C}),variant:C,ref:r,...A,role:"alert","aria-describedby":f?P:void 0,"aria-labelledby":h?N:void 0,children:y.jsxs("div",{...R("wrapper"),children:[b&&y.jsx("div",{...R("icon"),children:b}),y.jsxs("div",{...R("body"),children:[h&&y.jsx("div",{...R("title"),"data-with-close-button":x||void 0,children:y.jsx("span",{id:N,...R("label"),children:h})}),f&&y.jsx("div",{id:P,...R("message"),"data-variant":C,children:f})]}),x&&y.jsx(dh,{...R("closeButton"),onClick:w,variant:"transparent",size:16,iconSize:16,"aria-label":k,unstyled:l})]})})});sie.classes=iie,sie.displayName="@mantine/core/Alert";var lie={root:"m_b6d8b162"};function Jlt(e){if(e==="start")return"start";if(e==="end"||e)return"end"}const ect={inherit:!1},tct=(e,{variant:r,lineClamp:n,gradient:o,size:a,color:i})=>({root:{"--text-fz":Fo(a),"--text-lh":kot(a),"--text-gradient":r==="gradient"?cat(o,e):void 0,"--text-line-clamp":typeof n=="number"?n.toString():void 0,"--text-color":i?Jo(i,e):void 0}}),pb=Jn((e,r)=>{const n=ze("Text",ect,e),{lineClamp:o,truncate:a,inline:i,inherit:s,gradient:l,span:c,__staticSelector:d,vars:u,className:h,style:f,classNames:g,styles:b,unstyled:x,variant:w,mod:k,size:C,attributes:_,...T}=n,A=vt({name:["Text",d],props:n,classes:lie,className:h,style:f,classNames:g,styles:b,unstyled:x,attributes:_,vars:u,varsResolver:tct});return y.jsx(Le,{...A("root",{focusable:!0}),ref:r,component:c?"span":"p",variant:w,mod:[{"data-truncate":Jlt(a),"data-line-clamp":typeof o=="number","data-inline":i,"data-inherit":s},k],size:C,...T})});pb.classes=lie,pb.displayName="@mantine/core/Text";var cie={root:"m_849cf0da"};const rct={underline:"hover"},die=Jn((e,r)=>{const{underline:n,className:o,unstyled:a,mod:i,...s}=ze("Anchor",rct,e);return y.jsx(pb,{component:"a",ref:r,className:ho({[cie.root]:!a},o),...s,mod:[{underline:n},i],__staticSelector:"Anchor",unstyled:a})});die.classes=cie,die.displayName="@mantine/core/Anchor";function uie(e){return typeof e=="string"?{value:e,label:e}:"value"in e&&!("label"in e)?{value:e.value,label:e.value,disabled:e.disabled}:typeof e=="number"?{value:e.toString(),label:e.toString()}:"group"in e?{group:e.group,items:e.items.map(r=>uie(r))}:e}function nct(e){return e?e.map(r=>uie(r)):[]}function pie(e){return e.reduce((r,n)=>"group"in n?{...r,...pie(n.items)}:(r[n.value]=n,r),{})}var ba={dropdown:"m_88b62a41",search:"m_985517d8",options:"m_b2821a6e",option:"m_92253aa5",empty:"m_2530cd1d",header:"m_858f94bd",footer:"m_82b967cb",group:"m_254f3e4f",groupLabel:"m_2bb2e9e5",chevron:"m_2943220b",optionsDropdownOption:"m_390b5f4",optionsDropdownCheckIcon:"m_8ee53fc2"};const oct={error:null},act=(e,{size:r,color:n})=>({chevron:{"--combobox-chevron-size":dr(r,"combobox-chevron-size"),"--combobox-chevron-color":n?Jo(n,e):void 0}}),ZN=Je((e,r)=>{const n=ze("ComboboxChevron",oct,e),{size:o,error:a,style:i,className:s,classNames:l,styles:c,unstyled:d,vars:u,mod:h,...f}=n,g=vt({name:"ComboboxChevron",classes:ba,props:n,style:i,className:s,classNames:l,styles:c,unstyled:d,vars:u,varsResolver:act,rootSelector:"chevron"});return y.jsx(Le,{component:"svg",...f,...g("chevron"),size:o,viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",mod:["combobox-chevron",{error:a},h],ref:r,children:y.jsx("path",{d:"M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})});ZN.classes=ba,ZN.displayName="@mantine/core/ComboboxChevron";const[ict,Ii]=qa("Combobox component was not found in tree"),hie=E.forwardRef(({size:e,onMouseDown:r,onClick:n,onClear:o,...a},i)=>y.jsx(ya.ClearButton,{ref:i,tabIndex:-1,"aria-hidden":!0,...a,onMouseDown:s=>{s.preventDefault(),r?.(s)},onClick:s=>{o(),n?.(s)}}));hie.displayName="@mantine/core/ComboboxClearButton";const QN=Je((e,r)=>{const{classNames:n,styles:o,className:a,style:i,hidden:s,...l}=ze("ComboboxDropdown",null,e),c=Ii();return y.jsx(Eo.Dropdown,{...l,ref:r,role:"presentation","data-hidden":s||void 0,...c.getStyles("dropdown",{className:a,style:i,classNames:n,styles:o})})});QN.classes=ba,QN.displayName="@mantine/core/ComboboxDropdown";const sct={refProp:"ref"},fie=Je((e,r)=>{const{children:n,refProp:o}=ze("ComboboxDropdownTarget",sct,e);if(Ii(),!Ds(n))throw new Error("Combobox.DropdownTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");return y.jsx(Eo.Target,{ref:r,refProp:o,children:n})});fie.displayName="@mantine/core/ComboboxDropdownTarget";const JN=Je((e,r)=>{const{classNames:n,className:o,style:a,styles:i,vars:s,...l}=ze("ComboboxEmpty",null,e),c=Ii();return y.jsx(Le,{ref:r,...c.getStyles("empty",{className:o,classNames:n,styles:i,style:a}),...l})});JN.classes=ba,JN.displayName="@mantine/core/ComboboxEmpty";function eD({onKeyDown:e,withKeyboardNavigation:r,withAriaAttributes:n,withExpandedAttribute:o,targetType:a,autoComplete:i}){const s=Ii(),[l,c]=E.useState(null),d=u=>{if(e?.(u),!s.readOnly&&r){if(u.nativeEvent.isComposing)return;if(u.nativeEvent.code==="ArrowDown"&&(u.preventDefault(),s.store.dropdownOpened?c(s.store.selectNextOption()):(s.store.openDropdown("keyboard"),c(s.store.selectActiveOption()),s.store.updateSelectedOptionIndex("selected",{scrollIntoView:!0}))),u.nativeEvent.code==="ArrowUp"&&(u.preventDefault(),s.store.dropdownOpened?c(s.store.selectPreviousOption()):(s.store.openDropdown("keyboard"),c(s.store.selectActiveOption()),s.store.updateSelectedOptionIndex("selected",{scrollIntoView:!0}))),u.nativeEvent.code==="Enter"||u.nativeEvent.code==="NumpadEnter"){if(u.nativeEvent.keyCode===229)return;const h=s.store.getSelectedOptionIndex();s.store.dropdownOpened&&h!==-1?(u.preventDefault(),s.store.clickSelectedOption()):a==="button"&&(u.preventDefault(),s.store.openDropdown("keyboard"))}u.key==="Escape"&&s.store.closeDropdown("keyboard"),u.nativeEvent.code==="Space"&&a==="button"&&(u.preventDefault(),s.store.toggleDropdown("keyboard"))}};return{...n?{"aria-haspopup":"listbox","aria-expanded":o?!!(s.store.listId&&s.store.dropdownOpened):void 0,"aria-controls":s.store.dropdownOpened&&s.store.listId?s.store.listId:void 0,"aria-activedescendant":s.store.dropdownOpened&&l||void 0,autoComplete:i,"data-expanded":s.store.dropdownOpened||void 0,"data-mantine-stop-propagation":s.store.dropdownOpened||void 0}:{},onKeyDown:d}}const lct={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},mie=Je((e,r)=>{const{children:n,refProp:o,withKeyboardNavigation:a,withAriaAttributes:i,withExpandedAttribute:s,targetType:l,autoComplete:c,...d}=ze("ComboboxEventsTarget",lct,e);if(!Ds(n))throw new Error("Combobox.EventsTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const u=Ii(),h=eD({targetType:l,withAriaAttributes:i,withKeyboardNavigation:a,withExpandedAttribute:s,onKeyDown:n.props.onKeyDown,autoComplete:c});return E.cloneElement(n,{...h,...d,[o]:yn(r,u.store.targetRef,Q4(n))})});mie.displayName="@mantine/core/ComboboxEventsTarget";const tD=Je((e,r)=>{const{classNames:n,className:o,style:a,styles:i,vars:s,...l}=ze("ComboboxFooter",null,e),c=Ii();return y.jsx(Le,{ref:r,...c.getStyles("footer",{className:o,classNames:n,style:a,styles:i}),...l,onMouseDown:d=>{d.preventDefault()}})});tD.classes=ba,tD.displayName="@mantine/core/ComboboxFooter";const rD=Je((e,r)=>{const{classNames:n,className:o,style:a,styles:i,vars:s,children:l,label:c,id:d,...u}=ze("ComboboxGroup",null,e),h=Ii(),f=Ms(d);return y.jsxs(Le,{ref:r,role:"group","aria-labelledby":c?f:void 0,...h.getStyles("group",{className:o,classNames:n,style:a,styles:i}),...u,children:[c&&y.jsx("div",{id:f,...h.getStyles("groupLabel",{classNames:n,styles:i}),children:c}),l]})});rD.classes=ba,rD.displayName="@mantine/core/ComboboxGroup";const nD=Je((e,r)=>{const{classNames:n,className:o,style:a,styles:i,vars:s,...l}=ze("ComboboxHeader",null,e),c=Ii();return y.jsx(Le,{ref:r,...c.getStyles("header",{className:o,classNames:n,style:a,styles:i}),...l,onMouseDown:d=>{d.preventDefault()}})});nD.classes=ba,nD.displayName="@mantine/core/ComboboxHeader";function gie({value:e,valuesDivider:r=",",...n}){return y.jsx("input",{type:"hidden",value:Array.isArray(e)?e.join(r):e||"",...n})}gie.displayName="@mantine/core/ComboboxHiddenInput";const oD=Je((e,r)=>{const n=ze("ComboboxOption",null,e),{classNames:o,className:a,style:i,styles:s,vars:l,onClick:c,id:d,active:u,onMouseDown:h,onMouseOver:f,disabled:g,selected:b,mod:x,...w}=n,k=Ii(),C=E.useId(),_=d||C;return y.jsx(Le,{...k.getStyles("option",{className:a,classNames:o,styles:s,style:i}),...w,ref:r,id:_,mod:["combobox-option",{"combobox-active":u,"combobox-disabled":g,"combobox-selected":b},x],role:"option",onClick:T=>{g?T.preventDefault():(k.onOptionSubmit?.(n.value,n),c?.(T))},onMouseDown:T=>{T.preventDefault(),h?.(T)},onMouseOver:T=>{k.resetSelectionOnOptionHover&&k.store.resetSelectedOption(),f?.(T)}})});oD.classes=ba,oD.displayName="@mantine/core/ComboboxOption";const aD=Je((e,r)=>{const n=ze("ComboboxOptions",null,e),{classNames:o,className:a,style:i,styles:s,id:l,onMouseDown:c,labelledBy:d,...u}=n,h=Ii(),f=Ms(l);return E.useEffect(()=>{h.store.setListId(f)},[f]),y.jsx(Le,{ref:r,...h.getStyles("options",{className:a,style:i,classNames:o,styles:s}),...u,id:f,role:"listbox","aria-labelledby":d,onMouseDown:g=>{g.preventDefault(),c?.(g)}})});aD.classes=ba,aD.displayName="@mantine/core/ComboboxOptions";const cct={withAriaAttributes:!0,withKeyboardNavigation:!0},iD=Je((e,r)=>{const n=ze("ComboboxSearch",cct,e),{classNames:o,styles:a,unstyled:i,vars:s,withAriaAttributes:l,onKeyDown:c,withKeyboardNavigation:d,size:u,...h}=n,f=Ii(),g=f.getStyles("search"),b=eD({targetType:"input",withAriaAttributes:l,withKeyboardNavigation:d,withExpandedAttribute:!1,onKeyDown:c,autoComplete:"off"});return y.jsx(ya,{ref:yn(r,f.store.searchRef),classNames:[{input:g.className},o],styles:[{input:g.style},a],size:u||f.size,...b,...h,__staticSelector:"Combobox"})});iD.classes=ba,iD.displayName="@mantine/core/ComboboxSearch";const dct={refProp:"ref",targetType:"input",withKeyboardNavigation:!0,withAriaAttributes:!0,withExpandedAttribute:!1,autoComplete:"off"},yie=Je((e,r)=>{const{children:n,refProp:o,withKeyboardNavigation:a,withAriaAttributes:i,withExpandedAttribute:s,targetType:l,autoComplete:c,...d}=ze("ComboboxTarget",dct,e);if(!Ds(n))throw new Error("Combobox.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const u=Ii(),h=eD({targetType:l,withAriaAttributes:i,withKeyboardNavigation:a,withExpandedAttribute:s,onKeyDown:n.props.onKeyDown,autoComplete:c}),f=E.cloneElement(n,{...h,...d});return y.jsx(Eo.Target,{ref:yn(r,u.store.targetRef),children:f})});yie.displayName="@mantine/core/ComboboxTarget";function uct(e,r,n){for(let o=e-1;o>=0;o-=1)if(!r[o].hasAttribute("data-combobox-disabled"))return o;if(n){for(let o=r.length-1;o>-1;o-=1)if(!r[o].hasAttribute("data-combobox-disabled"))return o}return e}function pct(e,r,n){for(let o=e+1;o{l||(c(!0),a?.(I))},[c,a,l]),k=E.useCallback((I="unknown")=>{l&&(c(!1),o?.(I))},[c,o,l]),C=E.useCallback((I="unknown")=>{l?k(I):w(I)},[k,w,l]),_=E.useCallback(()=>{const I=document.querySelector(`#${d.current} [data-combobox-selected]`);I?.removeAttribute("data-combobox-selected"),I?.removeAttribute("aria-selected")},[]),T=E.useCallback(I=>{const H=document.getElementById(d.current)?.querySelectorAll("[data-combobox-option]");if(!H)return null;const q=I>=H.length?0:I<0?H.length-1:I;return u.current=q,H?.[q]&&!H[q].hasAttribute("data-combobox-disabled")?(_(),H[q].setAttribute("data-combobox-selected","true"),H[q].setAttribute("aria-selected","true"),H[q].scrollIntoView({block:"nearest",behavior:s}),H[q].id):null},[s,_]),A=E.useCallback(()=>{const I=document.querySelector(`#${d.current} [data-combobox-active]`);if(I){const H=document.querySelectorAll(`#${d.current} [data-combobox-option]`),q=Array.from(H).findIndex(Z=>Z===I);return T(q)}return T(0)},[T]),R=E.useCallback(()=>T(pct(u.current,document.querySelectorAll(`#${d.current} [data-combobox-option]`),i)),[T,i]),D=E.useCallback(()=>T(uct(u.current,document.querySelectorAll(`#${d.current} [data-combobox-option]`),i)),[T,i]),N=E.useCallback(()=>T(hct(document.querySelectorAll(`#${d.current} [data-combobox-option]`))),[T]),P=E.useCallback((I="selected",H)=>{x.current=window.setTimeout(()=>{const q=document.querySelectorAll(`#${d.current} [data-combobox-option]`),Z=Array.from(q).findIndex(W=>W.hasAttribute(`data-combobox-${I}`));u.current=Z,H?.scrollIntoView&&q[Z]?.scrollIntoView({block:"nearest",behavior:s})},0)},[]),O=E.useCallback(()=>{u.current=-1,_()},[_]),F=E.useCallback(()=>{document.querySelectorAll(`#${d.current} [data-combobox-option]`)?.[u.current]?.click()},[]),L=E.useCallback(I=>{d.current=I},[]),U=E.useCallback(()=>{g.current=window.setTimeout(()=>h.current?.focus(),0)},[]),M=E.useCallback(()=>{b.current=window.setTimeout(()=>f.current?.focus(),0)},[]),V=E.useCallback(()=>u.current,[]);return E.useEffect(()=>()=>{window.clearTimeout(g.current),window.clearTimeout(b.current),window.clearTimeout(x.current)},[]),{dropdownOpened:l,openDropdown:w,closeDropdown:k,toggleDropdown:C,selectedOptionIndex:u.current,getSelectedOptionIndex:V,selectOption:T,selectFirstOption:N,selectActiveOption:A,selectNextOption:R,selectPreviousOption:D,resetSelectedOption:O,updateSelectedOptionIndex:P,listId:d.current,setListId:L,clickSelectedOption:F,searchRef:h,focusSearchInput:U,targetRef:f,focusTarget:M}}const fct={keepMounted:!0,withinPortal:!0,resetSelectionOnOptionHover:!1,width:"target",transitionProps:{transition:"fade",duration:0},size:"sm"},mct=(e,{size:r,dropdownPadding:n})=>({options:{"--combobox-option-fz":Fo(r),"--combobox-option-padding":dr(r,"combobox-option-padding")},dropdown:{"--combobox-padding":n===void 0?void 0:qe(n),"--combobox-option-fz":Fo(r),"--combobox-option-padding":dr(r,"combobox-option-padding")}});function Nr(e){const r=ze("Combobox",fct,e),{classNames:n,styles:o,unstyled:a,children:i,store:s,vars:l,onOptionSubmit:c,onClose:d,size:u,dropdownPadding:h,resetSelectionOnOptionHover:f,__staticSelector:g,readOnly:b,attributes:x,...w}=r,k=bie(),C=s||k,_=vt({name:g||"Combobox",classes:ba,props:r,classNames:n,styles:o,unstyled:a,attributes:x,vars:l,varsResolver:mct}),T=()=>{d?.(),C.closeDropdown()};return y.jsx(ict,{value:{getStyles:_,store:C,onOptionSubmit:c,size:u,resetSelectionOnOptionHover:f,readOnly:b},children:y.jsx(Eo,{opened:C.dropdownOpened,preventPositionChangeWhenVisible:!0,...w,onChange:A=>!A&&T(),withRoles:!1,unstyled:a,children:i})})}const gct=e=>e;Nr.extend=gct,Nr.classes=ba,Nr.displayName="@mantine/core/Combobox",Nr.Target=yie,Nr.Dropdown=QN,Nr.Options=aD,Nr.Option=oD,Nr.Search=iD,Nr.Empty=JN,Nr.Chevron=ZN,Nr.Footer=tD,Nr.Header=nD,Nr.EventsTarget=mie,Nr.DropdownTarget=fie,Nr.Group=rD,Nr.ClearButton=hie,Nr.HiddenInput=gie;function yct({size:e,style:r,...n}){const o=e!==void 0?{width:qe(e),height:qe(e),...r}:r;return y.jsx("svg",{viewBox:"0 0 10 7",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:o,"aria-hidden":!0,...n,children:y.jsx("path",{d:"M4 4.586L1.707 2.293A1 1 0 1 0 .293 3.707l3 3a.997.997 0 0 0 1.414 0l5-5A1 1 0 1 0 8.293.293L4 4.586z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}function hb(e){return"group"in e}function vie({options:e,search:r,limit:n}){const o=r.trim().toLowerCase(),a=[];for(let i=0;i0)return!1;return!0}function xie(e,r=new Set){if(Array.isArray(e))for(const n of e)if(hb(n))xie(n.items,r);else{if(typeof n.value>"u")throw new Error("[@mantine/core] Each option must have value property");if(typeof n.value!="string")throw new Error(`[@mantine/core] Option value must be a string, other data formats are not supported, got ${typeof n.value}`);if(r.has(n.value))throw new Error(`[@mantine/core] Duplicate options are not supported. Option with value "${n.value}" was provided more than once`);r.add(n.value)}}function vct(e,r){return Array.isArray(e)?e.includes(r):e===r}function wie({data:e,withCheckIcon:r,value:n,checkIconPosition:o,unstyled:a,renderOption:i}){if(!hb(e)){const l=vct(n,e.value),c=r&&l&&y.jsx(yct,{className:ba.optionsDropdownCheckIcon}),d=y.jsxs(y.Fragment,{children:[o==="left"&&c,y.jsx("span",{children:e.label}),o==="right"&&c]});return y.jsx(Nr.Option,{value:e.value,disabled:e.disabled,className:ho({[ba.optionsDropdownOption]:!a}),"data-reverse":o==="right"||void 0,"data-checked":l||void 0,"aria-selected":l,active:l,children:typeof i=="function"?i({option:e,checked:l}):d})}const s=e.items.map(l=>y.jsx(wie,{data:l,value:n,unstyled:a,withCheckIcon:r,checkIconPosition:o,renderOption:i},l.value));return y.jsx(Nr.Group,{label:e.group,children:s})}function xct({data:e,hidden:r,hiddenWhenEmpty:n,filter:o,search:a,limit:i,maxDropdownHeight:s,withScrollArea:l=!0,filterOptions:c=!0,withCheckIcon:d=!1,value:u,checkIconPosition:h,nothingFoundMessage:f,unstyled:g,labelId:b,renderOption:x,scrollAreaProps:w,"aria-label":k}){xie(e);const C=typeof a=="string"?(o||vie)({options:e,search:c?a:"",limit:i??1/0}):e,_=bct(C),T=C.map(A=>y.jsx(wie,{data:A,withCheckIcon:d,value:u,checkIconPosition:h,unstyled:g,renderOption:x},hb(A)?A.group:A.value));return y.jsx(Nr.Dropdown,{hidden:r||n&&_,"data-composed":!0,children:y.jsxs(Nr.Options,{labelledBy:b,"aria-label":k,children:[l?y.jsx(sh.Autosize,{mah:s??220,type:"scroll",scrollbarSize:"var(--combobox-padding)",offsetScrollbars:"y",...w,children:T}):T,_&&f&&y.jsx(Nr.Empty,{children:f})]})})}var kie={root:"m_347db0ec","root--dot":"m_fbd81e3d",label:"m_5add502a",section:"m_91fdda9b"};const wct=(e,{radius:r,color:n,gradient:o,variant:a,size:i,autoContrast:s})=>{const l=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:o,variant:a||"filled",autoContrast:s});return{root:{"--badge-height":dr(i,"badge-height"),"--badge-padding-x":dr(i,"badge-padding-x"),"--badge-fz":dr(i,"badge-fz"),"--badge-radius":r===void 0?void 0:Tn(r),"--badge-bg":n||a?l.background:void 0,"--badge-color":n||a?l.color:void 0,"--badge-bd":n||a?l.border:void 0,"--badge-dot-color":a==="dot"?Jo(n,e):void 0}}},_ie=Jn((e,r)=>{const n=ze("Badge",null,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,radius:d,color:u,gradient:h,leftSection:f,rightSection:g,children:b,variant:x,fullWidth:w,autoContrast:k,circle:C,mod:_,attributes:T,...A}=n,R=vt({name:"Badge",props:n,classes:kie,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:T,vars:c,varsResolver:wct});return y.jsxs(Le,{variant:x,mod:[{block:w,circle:C,"with-right-section":!!g,"with-left-section":!!f},_],...R("root",{variant:x}),ref:r,...A,children:[f&&y.jsx("span",{...R("section"),"data-position":"left",children:f}),y.jsx("span",{...R("label"),children:b}),g&&y.jsx("span",{...R("section"),"data-position":"right",children:g})]})});_ie.classes=kie,_ie.displayName="@mantine/core/Badge";var Eie={root:"m_8b3717df",breadcrumb:"m_f678d540",separator:"m_3b8f2208"};const kct={separator:"/"},_ct=(e,{separatorMargin:r})=>({root:{"--bc-separator-margin":po(r)}}),Sie=Je((e,r)=>{const n=ze("Breadcrumbs",kct,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,children:d,separator:u,separatorMargin:h,attributes:f,...g}=n,b=vt({name:"Breadcrumbs",classes:Eie,props:n,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:f,vars:c,varsResolver:_ct}),x=E.Children.toArray(d).reduce((w,k,C,_)=>{const T=Ds(k)?E.cloneElement(k,{...b("breadcrumb",{className:k.props?.className}),key:C}):E.createElement("div",{...b("breadcrumb"),key:C},k);return w.push(T),C!==_.length-1&&w.push(E.createElement(Le,{...b("separator"),key:`separator-${C}`},u)),w},[]);return y.jsx(Le,{ref:r,...b("root"),...g,children:x})});Sie.classes=Eie,Sie.displayName="@mantine/core/Breadcrumbs";var Cie={root:"m_fea6bf1a",burger:"m_d4fb9cad"};const Ect=(e,{color:r,size:n,lineSize:o,transitionDuration:a,transitionTimingFunction:i})=>({root:{"--burger-color":r?Jo(r,e):void 0,"--burger-size":dr(n,"burger-size"),"--burger-line-size":o?qe(o):void 0,"--burger-transition-duration":a===void 0?void 0:`${a}ms`,"--burger-transition-timing-function":i}}),Tie=Je((e,r)=>{const n=ze("Burger",null,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,opened:d,children:u,transitionDuration:h,transitionTimingFunction:f,lineSize:g,attributes:b,...x}=n,w=vt({name:"Burger",classes:Cie,props:n,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:b,vars:c,varsResolver:Ect});return y.jsxs(Nl,{...w("root"),ref:r,...x,children:[y.jsx(Le,{mod:["reduce-motion",{opened:d}],...w("burger")}),u]})});Tie.classes=Cie,Tie.displayName="@mantine/core/Burger";var yg={root:"m_77c9d27d",inner:"m_80f1301b",label:"m_811560b9",section:"m_a74036a",loader:"m_a25b86ee",group:"m_80d6d844",groupSection:"m_70be2a01"};const Aie={orientation:"horizontal"},Sct=(e,{borderWidth:r})=>({group:{"--button-border-width":qe(r)}}),sD=Je((e,r)=>{const n=ze("ButtonGroup",Aie,e),{className:o,style:a,classNames:i,styles:s,unstyled:l,orientation:c,vars:d,borderWidth:u,variant:h,mod:f,attributes:g,...b}=ze("ButtonGroup",Aie,e),x=vt({name:"ButtonGroup",props:n,classes:yg,className:o,style:a,classNames:i,styles:s,unstyled:l,attributes:g,vars:d,varsResolver:Sct,rootSelector:"group"});return y.jsx(Le,{...x("group"),ref:r,variant:h,mod:[{"data-orientation":c},f],role:"group",...b})});sD.classes=yg,sD.displayName="@mantine/core/ButtonGroup";const Cct=(e,{radius:r,color:n,gradient:o,variant:a,autoContrast:i,size:s})=>{const l=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:o,variant:a||"filled",autoContrast:i});return{groupSection:{"--section-height":dr(s,"section-height"),"--section-padding-x":dr(s,"section-padding-x"),"--section-fz":s?.includes("compact")?Fo(s.replace("compact-","")):Fo(s),"--section-radius":r===void 0?void 0:Tn(r),"--section-bg":n||a?l.background:void 0,"--section-color":l.color,"--section-bd":n||a?l.border:void 0}}},lD=Je((e,r)=>{const n=ze("ButtonGroupSection",null,e),{className:o,style:a,classNames:i,styles:s,unstyled:l,vars:c,variant:d,gradient:u,radius:h,autoContrast:f,attributes:g,...b}=n,x=vt({name:"ButtonGroupSection",props:n,classes:yg,className:o,style:a,classNames:i,styles:s,unstyled:l,attributes:g,vars:c,varsResolver:Cct,rootSelector:"groupSection"});return y.jsx(Le,{...x("groupSection"),ref:r,variant:d,...b})});lD.classes=yg,lD.displayName="@mantine/core/ButtonGroupSection";const Tct={in:{opacity:1,transform:`translate(-50%, calc(-50% + ${qe(1)}))`},out:{opacity:0,transform:"translate(-50%, -200%)"},common:{transformOrigin:"center"},transitionProperty:"transform, opacity"},Act=(e,{radius:r,color:n,gradient:o,variant:a,size:i,justify:s,autoContrast:l})=>{const c=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:o,variant:a||"filled",autoContrast:l});return{root:{"--button-justify":s,"--button-height":dr(i,"button-height"),"--button-padding-x":dr(i,"button-padding-x"),"--button-fz":i?.includes("compact")?Fo(i.replace("compact-","")):Fo(i),"--button-radius":r===void 0?void 0:Tn(r),"--button-bg":n||a?c.background:void 0,"--button-hover":n||a?c.hover:void 0,"--button-color":c.color,"--button-bd":n||a?c.border:void 0,"--button-hover-color":n||a?c.hoverColor:void 0}}},Nk=Jn((e,r)=>{const n=ze("Button",null,e),{style:o,vars:a,className:i,color:s,disabled:l,children:c,leftSection:d,rightSection:u,fullWidth:h,variant:f,radius:g,loading:b,loaderProps:x,gradient:w,classNames:k,styles:C,unstyled:_,"data-disabled":T,autoContrast:A,mod:R,attributes:D,...N}=n,P=vt({name:"Button",props:n,classes:yg,className:i,style:o,classNames:k,styles:C,unstyled:_,attributes:D,vars:a,varsResolver:Act}),O=!!d,F=!!u;return y.jsxs(Nl,{ref:r,...P("root",{active:!l&&!b&&!T}),unstyled:_,variant:f,disabled:l||b,mod:[{disabled:l||T,loading:b,block:h,"with-left-section":O,"with-right-section":F},R],...N,children:[typeof b=="boolean"&&y.jsx(js,{mounted:b,transition:Tct,duration:150,children:L=>y.jsx(Le,{component:"span",...P("loader",{style:L}),"aria-hidden":!0,children:y.jsx(ch,{color:"var(--button-color)",size:"calc(var(--button-height) / 1.8)",...x})})}),y.jsxs("span",{...P("inner"),children:[d&&y.jsx(Le,{component:"span",...P("section"),mod:{position:"left"},children:d}),y.jsx(Le,{component:"span",mod:{loading:b},...P("label"),children:c}),u&&y.jsx(Le,{component:"span",...P("section"),mod:{position:"right"},children:u})]})]})});Nk.classes=yg,Nk.displayName="@mantine/core/Button",Nk.Group=sD,Nk.GroupSection=lD;const[Rct,Nct]=qa("Card component was not found in tree");var cD={root:"m_e615b15f",section:"m_599a2148"};const Dk=Jn((e,r)=>{const n=ze("CardSection",null,e),{classNames:o,className:a,style:i,styles:s,vars:l,withBorder:c,inheritPadding:d,mod:u,...h}=n,f=Nct();return y.jsx(Le,{ref:r,mod:[{"with-border":c,"inherit-padding":d},u],...f.getStyles("section",{className:a,style:i,styles:s,classNames:o}),...h})});Dk.classes=cD,Dk.displayName="@mantine/core/CardSection";const Dct=(e,{padding:r})=>({root:{"--card-padding":po(r)}}),dD=Jn((e,r)=>{const n=ze("Card",null,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,children:d,padding:u,attributes:h,...f}=n,g=vt({name:"Card",props:n,classes:cD,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:h,vars:c,varsResolver:Dct}),b=E.Children.toArray(d),x=b.map((w,k)=>typeof w=="object"&&w&&"type"in w&&w.type===Dk?E.cloneElement(w,{"data-first-section":k===0||void 0,"data-last-section":k===b.length-1||void 0}):w);return y.jsx(Rct,{value:{getStyles:g},children:y.jsx(xk,{ref:r,unstyled:l,...g("root"),...f,children:x})})});dD.classes=cD,dD.displayName="@mantine/core/Card",dD.Section=Dk;var Rie={root:"m_b183c0a2"};const $ct=(e,{color:r})=>({root:{"--code-bg":r?Jo(r,e):void 0}}),Nie=Je((e,r)=>{const n=ze("Code",null,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,color:d,block:u,variant:h,mod:f,attributes:g,...b}=n,x=vt({name:"Code",props:n,classes:Rie,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:g,vars:c,varsResolver:$ct});return y.jsx(Le,{component:u?"pre":"code",variant:h,ref:r,mod:[{block:u},f],...x("root"),...b,dir:"ltr"})});Nie.classes=Rie,Nie.displayName="@mantine/core/Code";var Die={root:"m_de3d2490",colorOverlay:"m_862f3d1b",shadowOverlay:"m_98ae7f22",alphaOverlay:"m_95709ac0",childrenOverlay:"m_93e74e3"};const $ie={withShadow:!0},Pct=(e,{radius:r,size:n})=>({root:{"--cs-radius":r===void 0?void 0:Tn(r),"--cs-size":qe(n)}}),Pie=Jn((e,r)=>{const n=ze("ColorSwatch",$ie,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,color:d,size:u,radius:h,withShadow:f,children:g,variant:b,attributes:x,...w}=ze("ColorSwatch",$ie,n),k=vt({name:"ColorSwatch",props:n,classes:Die,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:x,vars:c,varsResolver:Pct});return y.jsxs(Le,{ref:r,variant:b,size:u,...k("root",{focusable:!0}),...w,children:[y.jsx("span",{...k("alphaOverlay")}),f&&y.jsx("span",{...k("shadowOverlay")}),y.jsx("span",{...k("colorOverlay",{style:{backgroundColor:d}})}),y.jsx("span",{...k("childrenOverlay"),children:g})]})});Pie.classes=Die,Pie.displayName="@mantine/core/ColorSwatch";var Mie={root:"m_7485cace"};const Mct=(e,{size:r,fluid:n})=>({root:{"--container-size":n?void 0:dr(r,"container-size")}}),zie=Je((e,r)=>{const n=ze("Container",null,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,fluid:d,mod:u,attributes:h,strategy:f,...g}=n,b=vt({name:"Container",classes:Mie,props:n,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:h,vars:c,varsResolver:Mct});return y.jsx(Le,{ref:r,mod:[{fluid:d,strategy:f||"block"},u],...b("root"),...g})});zie.classes=Mie,zie.displayName="@mantine/core/Container";var Iie={root:"m_3eebeb36",label:"m_9e365f20"};const zct={orientation:"horizontal"},Ict=(e,{color:r,variant:n,size:o})=>({root:{"--divider-color":r?Jo(r,e):void 0,"--divider-border-style":n,"--divider-size":dr(o,"divider-size")}}),Oie=Je((e,r)=>{const n=ze("Divider",zct,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,color:d,orientation:u,label:h,labelPosition:f,mod:g,attributes:b,...x}=n,w=vt({name:"Divider",classes:Iie,props:n,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:b,vars:c,varsResolver:Ict});return y.jsx(Le,{ref:r,mod:[{orientation:u,"with-label":!!h},g],...w("root"),...x,role:"separator",children:h&&y.jsx(Le,{component:"span",mod:{position:f},...w("label"),children:h})})});Oie.classes=Iie,Oie.displayName="@mantine/core/Divider";const[Oct,bg]=qa("Drawer component was not found in tree");var Mc={root:"m_f11b401e",header:"m_5a7c2c9",content:"m_b8a05bbd",inner:"m_31cd769a"};const $k=Je((e,r)=>{const n=ze("DrawerBody",null,e),{classNames:o,className:a,style:i,styles:s,vars:l,...c}=n,d=bg();return y.jsx(qN,{ref:r,...d.getStyles("body",{classNames:o,style:i,styles:s,className:a}),...c})});$k.classes=Mc,$k.displayName="@mantine/core/DrawerBody";const Pk=Je((e,r)=>{const n=ze("DrawerCloseButton",null,e),{classNames:o,className:a,style:i,styles:s,vars:l,...c}=n,d=bg();return y.jsx(Zae,{ref:r,...d.getStyles("close",{classNames:o,style:i,styles:s,className:a}),...c})});Pk.classes=Mc,Pk.displayName="@mantine/core/DrawerCloseButton";const Mk=Je((e,r)=>{const n=ze("DrawerContent",null,e),{classNames:o,className:a,style:i,styles:s,vars:l,children:c,radius:d,__hidden:u,...h}=n,f=bg(),g=f.scrollAreaComponent||eie;return y.jsx(UN,{...f.getStyles("content",{className:a,style:i,styles:s,classNames:o}),innerProps:f.getStyles("inner",{className:a,style:i,styles:s,classNames:o}),ref:r,...h,radius:d||f.radius||0,"data-hidden":u||void 0,children:y.jsx(g,{style:{height:"calc(100vh - var(--drawer-offset) * 2)"},children:c})})});Mk.classes=Mc,Mk.displayName="@mantine/core/DrawerContent";const zk=Je((e,r)=>{const n=ze("DrawerHeader",null,e),{classNames:o,className:a,style:i,styles:s,vars:l,...c}=n,d=bg();return y.jsx(Qae,{ref:r,...d.getStyles("header",{classNames:o,style:i,styles:s,className:a}),...c})});zk.classes=Mc,zk.displayName="@mantine/core/DrawerHeader";const Ik=Je((e,r)=>{const n=ze("DrawerOverlay",null,e),{classNames:o,className:a,style:i,styles:s,vars:l,...c}=n,d=bg();return y.jsx(WN,{ref:r,...d.getStyles("overlay",{classNames:o,style:i,styles:s,className:a}),...c})});Ik.classes=Mc,Ik.displayName="@mantine/core/DrawerOverlay";function jct(e){switch(e){case"top":return"flex-start";case"bottom":return"flex-end";default:return}}function Lct(e){if(e==="top"||e==="bottom")return"0 0 calc(100% - var(--drawer-offset, 0rem) * 2)"}const Bct={top:"slide-down",bottom:"slide-up",left:"slide-right",right:"slide-left"},Fct={top:"slide-down",bottom:"slide-up",right:"slide-right",left:"slide-left"},Hct={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:$s("modal"),position:"left"},Vct=(e,{position:r,size:n,offset:o})=>({root:{"--drawer-size":dr(n,"drawer-size"),"--drawer-flex":Lct(r),"--drawer-height":r==="left"||r==="right"?void 0:"var(--drawer-size)","--drawer-align":jct(r),"--drawer-justify":r==="right"?"flex-end":void 0,"--drawer-offset":qe(o)}}),Ok=Je((e,r)=>{const n=ze("DrawerRoot",Hct,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,scrollAreaComponent:d,position:u,transitionProps:h,radius:f,attributes:g,...b}=n,{dir:x}=Rc(),w=vt({name:"Drawer",classes:Mc,props:n,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:g,vars:c,varsResolver:Vct}),k=(x==="rtl"?Fct:Bct)[u];return y.jsx(Oct,{value:{scrollAreaComponent:d,getStyles:w,radius:f},children:y.jsx(VN,{ref:r,...w("root"),transitionProps:{transition:k,...h},"data-offset-scrollbars":d===sh.Autosize||void 0,unstyled:l,...b})})});Ok.classes=Mc,Ok.displayName="@mantine/core/DrawerRoot";const[qct,Uct]=ng();function jie({children:e}){const[r,n]=E.useState([]),[o,a]=E.useState($s("modal"));return y.jsx(qct,{value:{stack:r,addModal:(i,s)=>{n(l=>[...new Set([...l,i])]),a(l=>typeof s=="number"&&typeof l=="number"?Math.max(l,s):l)},removeModal:i=>n(s=>s.filter(l=>l!==i)),getZIndex:i=>`calc(${o} + ${r.indexOf(i)} + 1)`,currentId:r[r.length-1],maxZIndex:o},children:e})}jie.displayName="@mantine/core/DrawerStack";const jk=Je((e,r)=>{const n=ze("DrawerTitle",null,e),{classNames:o,className:a,style:i,styles:s,vars:l,...c}=n,d=bg();return y.jsx(Jae,{ref:r,...d.getStyles("title",{classNames:o,style:i,styles:s,className:a}),...c})});jk.classes=Mc,jk.displayName="@mantine/core/DrawerTitle";const Wct={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:$s("modal"),withOverlay:!0,withCloseButton:!0},Dl=Je((e,r)=>{const{title:n,withOverlay:o,overlayProps:a,withCloseButton:i,closeButtonProps:s,children:l,opened:c,stackId:d,zIndex:u,...h}=ze("Drawer",Wct,e),f=Uct(),g=!!n||i,b=f&&d?{closeOnEscape:f.currentId===d,trapFocus:f.currentId===d,zIndex:f.getZIndex(d)}:{},x=o===!1?!1:d&&f?f.currentId===d:c;return E.useEffect(()=>{f&&d&&(c?f.addModal(d,u||$s("modal")):f.removeModal(d))},[c,d,u]),y.jsxs(Ok,{ref:r,opened:c,zIndex:f&&d?f.getZIndex(d):u,...h,...b,children:[o&&y.jsx(Ik,{visible:x,transitionProps:f&&d?{duration:0}:void 0,...a}),y.jsxs(Mk,{__hidden:f&&d&&c?d!==f.currentId:!1,children:[g&&y.jsxs(zk,{children:[n&&y.jsx(jk,{children:n}),i&&y.jsx(Pk,{...s})]}),y.jsx($k,{children:l})]})]})});Dl.classes=Mc,Dl.displayName="@mantine/core/Drawer",Dl.Root=Ok,Dl.Overlay=Ik,Dl.Content=Mk,Dl.Body=$k,Dl.Header=zk,Dl.Title=jk,Dl.CloseButton=Pk,Dl.Stack=jie;const[Lie,Bie]=qa("Grid component was not found in tree"),uD=(e,r)=>e==="content"?"auto":e==="auto"?"0rem":e?`${100/(r/e)}%`:void 0,Fie=(e,r,n)=>n||e==="auto"?"100%":e==="content"?"unset":uD(e,r),Hie=(e,r)=>{if(e)return e==="auto"||r?"1":"auto"},Vie=(e,r)=>e===0?"0":e?`${100/(r/e)}%`:void 0;function Yct({span:e,order:r,offset:n,selector:o}){const a=_o(),i=Bie(),s=i.breakpoints||a.breakpoints,l=Ps(e)===void 0?12:Ps(e),c=Zd({"--col-order":Ps(r)?.toString(),"--col-flex-grow":Hie(l,i.grow),"--col-flex-basis":uD(l,i.columns),"--col-width":l==="content"?"auto":void 0,"--col-max-width":Fie(l,i.columns,i.grow),"--col-offset":Vie(Ps(n),i.columns)}),d=Bo(s).reduce((h,f)=>(h[f]||(h[f]={}),typeof r=="object"&&r[f]!==void 0&&(h[f]["--col-order"]=r[f]?.toString()),typeof e=="object"&&e[f]!==void 0&&(h[f]["--col-flex-grow"]=Hie(e[f],i.grow),h[f]["--col-flex-basis"]=uD(e[f],i.columns),h[f]["--col-width"]=e[f]==="content"?"auto":void 0,h[f]["--col-max-width"]=Fie(e[f],i.columns,i.grow)),typeof n=="object"&&n[f]!==void 0&&(h[f]["--col-offset"]=Vie(n[f],i.columns)),h),{}),u=WR(Bo(d),s).filter(h=>Bo(d[h.value]).length>0).map(h=>({query:i.type==="container"?`mantine-grid (min-width: ${s[h.value]})`:`(min-width: ${s[h.value]})`,styles:d[h.value]}));return y.jsx(sg,{styles:c,media:i.type==="container"?void 0:u,container:i.type==="container"?u:void 0,selector:o})}var pD={container:"m_8478a6da",root:"m_410352e9",inner:"m_dee7bd2f",col:"m_96bdd299"};const Gct={span:12},hD=Je((e,r)=>{const n=ze("GridCol",Gct,e),{classNames:o,className:a,style:i,styles:s,vars:l,span:c,order:d,offset:u,...h}=n,f=Bie(),g=ib();return y.jsxs(y.Fragment,{children:[y.jsx(Yct,{selector:`.${g}`,span:c,order:d,offset:u}),y.jsx(Le,{ref:r,...f.getStyles("col",{className:ho(a,g),style:i,classNames:o,styles:s}),...h})]})});hD.classes=pD,hD.displayName="@mantine/core/GridCol";function qie({gutter:e,selector:r,breakpoints:n,type:o}){const a=_o(),i=n||a.breakpoints,s=Zd({"--grid-gutter":po(Ps(e))}),l=Bo(i).reduce((d,u)=>(d[u]||(d[u]={}),typeof e=="object"&&e[u]!==void 0&&(d[u]["--grid-gutter"]=po(e[u])),d),{}),c=WR(Bo(l),i).filter(d=>Bo(l[d.value]).length>0).map(d=>({query:o==="container"?`mantine-grid (min-width: ${i[d.value]})`:`(min-width: ${i[d.value]})`,styles:l[d.value]}));return y.jsx(sg,{styles:s,media:o==="container"?void 0:c,container:o==="container"?c:void 0,selector:r})}const Xct={gutter:"md",grow:!1,columns:12},Kct=(e,{justify:r,align:n,overflow:o})=>({root:{"--grid-justify":r,"--grid-align":n,"--grid-overflow":o}}),fD=Je((e,r)=>{const n=ze("Grid",Xct,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,grow:d,gutter:u,columns:h,align:f,justify:g,children:b,breakpoints:x,type:w,attributes:k,...C}=n,_=vt({name:"Grid",classes:pD,props:n,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:k,vars:c,varsResolver:Kct}),T=ib();return w==="container"&&x?y.jsxs(Lie,{value:{getStyles:_,grow:d,columns:h,breakpoints:x,type:w},children:[y.jsx(qie,{selector:`.${T}`,...n}),y.jsx("div",{..._("container"),children:y.jsx(Le,{ref:r,..._("root",{className:T}),...C,children:y.jsx("div",{..._("inner"),children:b})})})]}):y.jsxs(Lie,{value:{getStyles:_,grow:d,columns:h,breakpoints:x,type:w},children:[y.jsx(qie,{selector:`.${T}`,...n}),y.jsx(Le,{ref:r,..._("root",{className:T}),...C,children:y.jsx("div",{..._("inner"),children:b})})]})});fD.classes=pD,fD.displayName="@mantine/core/Grid",fD.Col=hD;function Uie({color:e,theme:r,defaultShade:n}){const o=nh({color:e,theme:r});return o.isThemeColor?o.shade===void 0?`var(--mantine-color-${o.color}-${n})`:`var(${o.variable})`:e}var Wie={root:"m_bcb3f3c2"};const Zct={color:"yellow"},Qct=(e,{color:r})=>({root:{"--mark-bg-dark":Uie({color:r,theme:e,defaultShade:5}),"--mark-bg-light":Uie({color:r,theme:e,defaultShade:2})}}),mD=Je((e,r)=>{const n=ze("Mark",Zct,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,color:d,variant:u,attributes:h,...f}=n,g=vt({name:"Mark",props:n,className:a,style:i,classes:Wie,classNames:o,styles:s,unstyled:l,attributes:h,vars:c,varsResolver:Qct});return y.jsx(Le,{component:"mark",ref:r,variant:u,...g("root"),...f})});mD.classes=Wie,mD.displayName="@mantine/core/Mark";function Yie(e){return e.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&")}function Jct(e,r){if(r==null)return[{chunk:e,highlighted:!1}];const n=Array.isArray(r)?r.map(Yie):Yie(r);if(!(Array.isArray(n)?n.filter(i=>i.trim().length>0).length>0:n.trim()!==""))return[{chunk:e,highlighted:!1}];const o=typeof n=="string"?n.trim():n.filter(i=>i.trim().length!==0).map(i=>i.trim()).sort((i,s)=>s.length-i.length).join("|"),a=new RegExp(`(${o})`,"gi");return e.split(a).map(i=>({chunk:i,highlighted:a.test(i)})).filter(({chunk:i})=>i)}const Gie=Jn((e,r)=>{const{unstyled:n,children:o,highlight:a,highlightStyles:i,color:s,...l}=ze("Highlight",null,e),c=Jct(o,a);return y.jsx(pb,{unstyled:n,ref:r,...l,__staticSelector:"Highlight",children:c.map(({chunk:d,highlighted:u},h)=>u?y.jsx(mD,{unstyled:n,color:s,style:i,"data-highlight":d,children:d},h):y.jsx("span",{children:d},h))})});Gie.classes=pb.classes,Gie.displayName="@mantine/core/Highlight";const[Nkt,Xie]=qa("HoverCard component was not found in the tree"),Kie=E.createContext(!1),edt=Kie.Provider,Zie=()=>E.useContext(Kie);function tdt(e){const{children:r,onMouseEnter:n,onMouseLeave:o,...a}=ze("HoverCardDropdown",null,e),i=Xie();if(Zie()&&i.getFloatingProps&&i.floating){const c=i.getFloatingProps();return y.jsx(Eo.Dropdown,{ref:i.floating,...c,onMouseEnter:Ln(n,c.onMouseEnter),onMouseLeave:Ln(o,c.onMouseLeave),...a,children:r})}const s=Ln(n,i.openDropdown),l=Ln(o,i.closeDropdown);return y.jsx(Eo.Dropdown,{onMouseEnter:s,onMouseLeave:l,...a,children:r})}tdt.displayName="@mantine/core/HoverCardDropdown";const rdt={openDelay:0,closeDelay:0};function Qie(e){const{openDelay:r,closeDelay:n,children:o}=ze("HoverCardGroup",rdt,e);return y.jsx(edt,{value:!0,children:y.jsx(fae,{delay:{open:r,close:n},children:o})})}Qie.displayName="@mantine/core/HoverCardGroup",Qie.extend=e=>e;const ndt={refProp:"ref"},odt=E.forwardRef((e,r)=>{const{children:n,refProp:o,eventPropsWrapperName:a,...i}=ze("HoverCardTarget",ndt,e);if(!Ds(n))throw new Error("HoverCard.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const s=Xie();if(Zie()&&s.getReferenceProps&&s.reference){const u=s.getReferenceProps();return y.jsx(Eo.Target,{refProp:o,ref:r,...i,children:E.cloneElement(n,a?{[a]:{...u,ref:s.reference}}:{...u,ref:s.reference})})}const l=Ln(n.props.onMouseEnter,s.openDropdown),c=Ln(n.props.onMouseLeave,s.closeDropdown),d={onMouseEnter:l,onMouseLeave:c};return y.jsx(Eo.Target,{refProp:o,ref:r,...i,children:E.cloneElement(n,a?{[a]:d}:d)})});odt.displayName="@mantine/core/HoverCardTarget";var Jie={root:"m_6e45937b",loader:"m_e8eb006c",overlay:"m_df587f17"};const ese={transitionProps:{transition:"fade",duration:0},overlayProps:{backgroundOpacity:.75},zIndex:$s("overlay")},adt=(e,{zIndex:r})=>({root:{"--lo-z-index":r?.toString()}}),tse=Je((e,r)=>{const n=ze("LoadingOverlay",ese,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,transitionProps:d,loaderProps:u,overlayProps:h,visible:f,zIndex:g,attributes:b,...x}=n,w=_o(),k=vt({name:"LoadingOverlay",classes:Jie,props:n,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:b,vars:c,varsResolver:adt}),C={...ese.overlayProps,...h};return y.jsx(js,{transition:"fade",...d,mounted:!!f,children:_=>y.jsxs(Le,{...k("root",{style:_}),ref:r,...x,children:[y.jsx(ch,{...k("loader"),unstyled:l,...u}),y.jsx(fg,{...C,...k("overlay"),darkHidden:!0,unstyled:l,color:h?.color||w.white}),y.jsx(fg,{...C,...k("overlay"),lightHidden:!0,unstyled:l,color:h?.color||w.colors.dark[5]})]})})});tse.classes=Jie,tse.displayName="@mantine/core/LoadingOverlay";const[Dkt,eu]=qa("Menu component was not found in the tree");var vg={dropdown:"m_dc9b7c9f",label:"m_9bfac126",divider:"m_efdf90cb",item:"m_99ac2aa1",itemLabel:"m_5476e0d3",itemSection:"m_8b75e504",chevron:"m_b85b0bed"};const rse=Je((e,r)=>{const{classNames:n,className:o,style:a,styles:i,vars:s,...l}=ze("MenuDivider",null,e),c=eu();return y.jsx(Le,{ref:r,...c.getStyles("divider",{className:o,style:a,styles:i,classNames:n}),...l})});rse.classes=vg,rse.displayName="@mantine/core/MenuDivider";const nse=Je((e,r)=>{const{classNames:n,className:o,style:a,styles:i,vars:s,onMouseEnter:l,onMouseLeave:c,onKeyDown:d,children:u,...h}=ze("MenuDropdown",null,e),f=E.useRef(null),g=eu(),b=Ln(d,k=>{(k.key==="ArrowUp"||k.key==="ArrowDown")&&(k.preventDefault(),f.current?.querySelectorAll("[data-menu-item]:not(:disabled)")[0]?.focus())}),x=Ln(l,()=>(g.trigger==="hover"||g.trigger==="click-hover")&&g.openDropdown()),w=Ln(c,()=>(g.trigger==="hover"||g.trigger==="click-hover")&&g.closeDropdown());return y.jsxs(Eo.Dropdown,{...h,onMouseEnter:x,onMouseLeave:w,role:"menu","aria-orientation":"vertical",ref:yn(r,f),...g.getStyles("dropdown",{className:o,style:a,styles:i,classNames:n,withStaticClass:!1}),tabIndex:-1,"data-menu-dropdown":!0,onKeyDown:b,children:[g.withInitialFocusPlaceholder&&y.jsx("div",{tabIndex:-1,"data-autofocus":!0,"data-mantine-stop-propagation":!0,style:{outline:0}}),u]})});nse.classes=vg,nse.displayName="@mantine/core/MenuDropdown";const[idt,Lk]=ng(),ose=Jn((e,r)=>{const{classNames:n,className:o,style:a,styles:i,vars:s,color:l,closeMenuOnClick:c,leftSection:d,rightSection:u,children:h,disabled:f,"data-disabled":g,...b}=ze("MenuItem",null,e),x=eu(),w=Lk(),k=_o(),{dir:C}=Rc(),_=E.useRef(null),T=b,A=Ln(T.onClick,()=>{g||(typeof c=="boolean"?c&&x.closeDropdownImmediately():x.closeOnItemClick&&x.closeDropdownImmediately())}),R=l?k.variantColorResolver({color:l,theme:k,variant:"light"}):void 0,D=l?nh({color:l,theme:k}):null,N=Ln(T.onKeyDown,P=>{P.key==="ArrowLeft"&&w&&(w.close(),w.focusParentItem())});return y.jsxs(Nl,{onMouseDown:P=>P.preventDefault(),...b,unstyled:x.unstyled,tabIndex:x.menuItemTabIndex,...x.getStyles("item",{className:o,style:a,styles:i,classNames:n}),ref:yn(_,r),role:"menuitem",disabled:f,"data-menu-item":!0,"data-disabled":f||g||void 0,"data-mantine-stop-propagation":!0,onClick:A,onKeyDown:qR({siblingSelector:"[data-menu-item]:not([data-disabled])",parentSelector:"[data-menu-dropdown]",activateOnFocus:!1,loop:x.loop,dir:C,orientation:"vertical",onKeyDown:N}),__vars:{"--menu-item-color":D?.isThemeColor&&D?.shade===void 0?`var(--mantine-color-${D.color}-6)`:R?.color,"--menu-item-hover":R?.hover},children:[d&&y.jsx("div",{...x.getStyles("itemSection",{styles:i,classNames:n}),"data-position":"left",children:d}),h&&y.jsx("div",{...x.getStyles("itemLabel",{styles:i,classNames:n}),children:h}),u&&y.jsx("div",{...x.getStyles("itemSection",{styles:i,classNames:n}),"data-position":"right",children:u})]})});ose.classes=vg,ose.displayName="@mantine/core/MenuItem";const ase=Je((e,r)=>{const{classNames:n,className:o,style:a,styles:i,vars:s,...l}=ze("MenuLabel",null,e),c=eu();return y.jsx(Le,{ref:r,...c.getStyles("label",{className:o,style:a,styles:i,classNames:n}),...l})});ase.classes=vg,ase.displayName="@mantine/core/MenuLabel";const gD=Je((e,r)=>{const{classNames:n,className:o,style:a,styles:i,vars:s,onMouseEnter:l,onMouseLeave:c,onKeyDown:d,children:u,...h}=ze("MenuSubDropdown",null,e),f=E.useRef(null),g=eu(),b=Lk(),x=Ln(l,b?.open),w=Ln(c,b?.close);return y.jsx(Eo.Dropdown,{...h,onMouseEnter:x,onMouseLeave:w,role:"menu","aria-orientation":"vertical",ref:yn(r,f),...g.getStyles("dropdown",{className:o,style:a,styles:i,classNames:n,withStaticClass:!1}),tabIndex:-1,"data-menu-dropdown":!0,children:u})});gD.classes=vg,gD.displayName="@mantine/core/MenuSubDropdown";const yD=Jn((e,r)=>{const{classNames:n,className:o,style:a,styles:i,vars:s,color:l,leftSection:c,rightSection:d,children:u,disabled:h,"data-disabled":f,closeMenuOnClick:g,...b}=ze("MenuSubItem",null,e),x=eu(),w=Lk(),k=_o(),{dir:C}=Rc(),_=E.useRef(null),T=b,A=l?k.variantColorResolver({color:l,theme:k,variant:"light"}):void 0,R=l?nh({color:l,theme:k}):null,D=Ln(T.onKeyDown,F=>{F.key==="ArrowRight"&&(w?.open(),w?.focusFirstItem()),F.key==="ArrowLeft"&&w?.parentContext&&(w.parentContext.close(),w.parentContext.focusParentItem())}),N=Ln(T.onClick,()=>{!f&&g&&x.closeDropdownImmediately()}),P=Ln(T.onMouseEnter,w?.open),O=Ln(T.onMouseLeave,w?.close);return y.jsxs(Nl,{onMouseDown:F=>F.preventDefault(),...b,unstyled:x.unstyled,tabIndex:x.menuItemTabIndex,...x.getStyles("item",{className:o,style:a,styles:i,classNames:n}),ref:yn(_,r),role:"menuitem",disabled:h,"data-menu-item":!0,"data-sub-menu-item":!0,"data-disabled":h||f||void 0,"data-mantine-stop-propagation":!0,onMouseEnter:P,onMouseLeave:O,onClick:N,onKeyDown:qR({siblingSelector:"[data-menu-item]:not([data-disabled])",parentSelector:"[data-menu-dropdown]",activateOnFocus:!1,loop:x.loop,dir:C,orientation:"vertical",onKeyDown:D}),__vars:{"--menu-item-color":R?.isThemeColor&&R?.shade===void 0?`var(--mantine-color-${R.color}-6)`:A?.color,"--menu-item-hover":A?.hover},children:[c&&y.jsx("div",{...x.getStyles("itemSection",{styles:i,classNames:n}),"data-position":"left",children:c}),u&&y.jsx("div",{...x.getStyles("itemLabel",{styles:i,classNames:n}),children:u}),y.jsx("div",{...x.getStyles("itemSection",{styles:i,classNames:n}),"data-position":"right",children:d||y.jsx(KN,{...x.getStyles("chevron"),size:14})})]})});yD.classes=vg,yD.displayName="@mantine/core/MenuSubItem";function ise({children:e,refProp:r}){if(!Ds(e))throw new Error("Menu.Sub.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");return eu(),y.jsx(Eo.Target,{refProp:r,popupType:"menu",children:e})}ise.displayName="@mantine/core/MenuSubTarget";const sdt={offset:0,position:"right-start",transitionProps:{duration:0},middlewares:{shift:{crossAxis:!0}}};function fb(e){const{children:r,closeDelay:n,...o}=ze("MenuSub",sdt,e),a=Ms(),[i,{open:s,close:l}]=Hot(!1),c=Lk(),{openDropdown:d,closeDropdown:u}=Zlt({open:s,close:l,closeDelay:n,openDelay:0});return y.jsx(idt,{value:{opened:i,close:u,open:d,focusFirstItem:()=>window.setTimeout(()=>{document.getElementById(`${a}-dropdown`)?.querySelectorAll("[data-menu-item]:not([data-disabled])")[0]?.focus()},16),focusParentItem:()=>window.setTimeout(()=>{document.getElementById(`${a}-target`)?.focus()},16),parentContext:c},children:y.jsx(Eo,{opened:i,withinPortal:!1,withArrow:!1,id:a,...o,children:r})})}fb.extend=e=>e,fb.displayName="@mantine/core/MenuSub",fb.Target=ise,fb.Dropdown=gD,fb.Item=yD;const ldt={refProp:"ref"},cdt=E.forwardRef((e,r)=>{const{children:n,refProp:o,...a}=ze("MenuTarget",ldt,e);if(!Ds(n))throw new Error("Menu.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const i=eu(),s=n.props,l=Ln(s.onClick,()=>{i.trigger==="click"?i.toggleDropdown():i.trigger==="click-hover"&&(i.setOpenedViaClick(!0),i.opened||i.openDropdown())}),c=Ln(s.onMouseEnter,()=>(i.trigger==="hover"||i.trigger==="click-hover")&&i.openDropdown()),d=Ln(s.onMouseLeave,()=>{(i.trigger==="hover"||i.trigger==="click-hover"&&!i.openedViaClick)&&i.closeDropdown()});return y.jsx(Eo.Target,{refProp:o,popupType:"menu",ref:r,...a,children:E.cloneElement(n,{onClick:l,onMouseEnter:c,onMouseLeave:d,"data-expanded":i.opened?!0:void 0})})});cdt.displayName="@mantine/core/MenuTarget";const[ddt,bD]=qa("Modal component was not found in tree");var mb={root:"m_9df02822",content:"m_54c44539",inner:"m_1f958f16",header:"m_d0e2b9cd"};const sse=Je((e,r)=>{const n=ze("ModalBody",null,e),{classNames:o,className:a,style:i,styles:s,vars:l,...c}=n,d=bD();return y.jsx(qN,{ref:r,...d.getStyles("body",{classNames:o,style:i,styles:s,className:a}),...c})});sse.classes=mb,sse.displayName="@mantine/core/ModalBody";const lse=Je((e,r)=>{const n=ze("ModalContent",null,e),{classNames:o,className:a,style:i,styles:s,vars:l,children:c,__hidden:d,...u}=n,h=bD(),f=h.scrollAreaComponent||eie;return y.jsx(UN,{...h.getStyles("content",{className:a,style:i,styles:s,classNames:o}),innerProps:h.getStyles("inner",{className:a,style:i,styles:s,classNames:o}),"data-full-screen":h.fullScreen||void 0,"data-modal-content":!0,"data-hidden":d||void 0,ref:r,...u,children:y.jsx(f,{style:{maxHeight:h.fullScreen?"100dvh":`calc(100dvh - (${qe(h.yOffset)} * 2))`},children:c})})});lse.classes=mb,lse.displayName="@mantine/core/ModalContent";const cse=Je((e,r)=>{const n=ze("ModalOverlay",null,e),{classNames:o,className:a,style:i,styles:s,vars:l,...c}=n,d=bD();return y.jsx(WN,{ref:r,...d.getStyles("overlay",{classNames:o,style:i,styles:s,className:a}),...c})});cse.classes=mb,cse.displayName="@mantine/core/ModalOverlay";const udt={__staticSelector:"Modal",closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:$s("modal"),transitionProps:{duration:200,transition:"fade-down"},yOffset:"5dvh"},pdt=(e,{radius:r,size:n,yOffset:o,xOffset:a})=>({root:{"--modal-radius":r===void 0?void 0:Tn(r),"--modal-size":dr(n,"modal-size"),"--modal-y-offset":qe(o),"--modal-x-offset":qe(a)}}),dse=Je((e,r)=>{const n=ze("ModalRoot",udt,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,yOffset:d,scrollAreaComponent:u,radius:h,fullScreen:f,centered:g,xOffset:b,__staticSelector:x,attributes:w,...k}=n,C=vt({name:x,classes:mb,props:n,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:w,vars:c,varsResolver:pdt});return y.jsx(ddt,{value:{yOffset:d,scrollAreaComponent:u,getStyles:C,fullScreen:f},children:y.jsx(VN,{ref:r,...C("root"),"data-full-screen":f||void 0,"data-centered":g||void 0,"data-offset-scrollbars":u===sh.Autosize||void 0,unstyled:l,...k})})});dse.classes=mb,dse.displayName="@mantine/core/ModalRoot";const[$kt,use]=ng(),[hdt,fdt]=ng();var Bk={root:"m_7cda1cd6","root--default":"m_44da308b","root--contrast":"m_e3a01f8",label:"m_1e0e6180",remove:"m_ae386778",group:"m_1dcfd90b"};const mdt=(e,{gap:r},{size:n})=>({group:{"--pg-gap":r!==void 0?dr(r):dr(n,"pg-gap")}}),vD=Je((e,r)=>{const n=ze("PillGroup",null,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,size:d,disabled:u,attributes:h,...f}=n,g=use()?.size||d||void 0,b=vt({name:"PillGroup",classes:Bk,props:n,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:h,vars:c,varsResolver:mdt,stylesCtx:{size:g},rootSelector:"group"});return y.jsx(hdt,{value:{size:g,disabled:u},children:y.jsx(Le,{ref:r,size:g,...b("group"),...f})})});vD.classes=Bk,vD.displayName="@mantine/core/PillGroup";const gdt={variant:"default"},ydt=(e,{radius:r},{size:n})=>({root:{"--pill-fz":dr(n,"pill-fz"),"--pill-height":dr(n,"pill-height"),"--pill-radius":r===void 0?void 0:Tn(r)}}),xD=Je((e,r)=>{const n=ze("Pill",gdt,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,variant:d,children:u,withRemoveButton:h,onRemove:f,removeButtonProps:g,radius:b,size:x,disabled:w,mod:k,attributes:C,..._}=n,T=fdt(),A=use(),R=x||T?.size||void 0,D=A?.variant==="filled"?"contrast":d||"default",N=vt({name:"Pill",classes:Bk,props:n,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:C,vars:c,varsResolver:ydt,stylesCtx:{size:R}});return y.jsxs(Le,{component:"span",ref:r,variant:D,size:R,...N("root",{variant:D}),mod:[{"with-remove":h&&!w,disabled:w||T?.disabled},k],..._,children:[y.jsx("span",{...N("label"),children:u}),h&&y.jsx(dh,{variant:"transparent",radius:b,tabIndex:-1,"aria-hidden":!0,unstyled:l,...g,...N("remove",{className:g?.className,style:g?.style}),onMouseDown:P=>{P.preventDefault(),P.stopPropagation(),g?.onMouseDown?.(P)},onClick:P=>{P.stopPropagation(),f?.(),g?.onClick?.(P)}})]})});xD.classes=Bk,xD.displayName="@mantine/core/Pill",xD.Group=vD;var pse={root:"m_f0824112",description:"m_57492dcc",section:"m_690090b5",label:"m_1f6ac4c4",body:"m_f07af9d2",children:"m_e17b862f",chevron:"m_1fd8a00b"};const bdt=(e,{variant:r,color:n,childrenOffset:o,autoContrast:a})=>{const i=e.variantColorResolver({color:n||e.primaryColor,theme:e,variant:r||"light",autoContrast:a});return{root:{"--nl-bg":n||r?i.background:void 0,"--nl-hover":n||r?i.hover:void 0,"--nl-color":n||r?i.color:void 0},children:{"--nl-offset":po(o)}}},hse=Jn((e,r)=>{const n=ze("NavLink",null,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,opened:d,defaultOpened:u,onChange:h,children:f,active:g,disabled:b,leftSection:x,rightSection:w,label:k,description:C,disableRightSectionRotation:_,noWrap:T,childrenOffset:A,autoContrast:R,mod:D,attributes:N,onClick:P,onKeyDown:O,...F}=n,L=vt({name:"NavLink",props:n,classes:pse,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:N,vars:c,varsResolver:bdt}),[U,M]=Qd({value:d,defaultValue:u,finalValue:!1,onChange:h}),V=!!f,I=H=>{P?.(H),V&&(H.preventDefault(),M(!U))};return y.jsxs(y.Fragment,{children:[y.jsxs(Nl,{...L("root"),component:"a",ref:r,onClick:I,onKeyDown:H=>{O?.(H),H.nativeEvent.code==="Space"&&V&&(H.preventDefault(),M(!U))},unstyled:l,mod:[{disabled:b,active:g,expanded:U},D],...F,children:[x&&y.jsx(Le,{component:"span",...L("section"),mod:{position:"left"},children:x}),y.jsxs(Le,{...L("body"),mod:{"no-wrap":T},children:[y.jsx(Le,{component:"span",...L("label"),children:k}),y.jsx(Le,{component:"span",mod:{active:g},...L("description"),children:C})]}),(V||w!==void 0)&&y.jsx(Le,{...L("section"),component:"span",mod:{rotate:U&&!_,position:"right"},children:V?w!==void 0?w:y.jsx(KN,{...L("chevron")}):w})]}),V&&y.jsx(Poe,{in:U,...L("collapse"),children:y.jsx("div",{...L("children"),children:f})})]})});hse.classes=pse,hse.displayName="@mantine/core/NavLink";var fse={root:"m_a513464",icon:"m_a4ceffb",loader:"m_b0920b15",body:"m_a49ed24",title:"m_3feedf16",description:"m_3d733a3a",closeButton:"m_919a4d88"};const vdt={withCloseButton:!0},xdt=(e,{radius:r,color:n})=>({root:{"--notification-radius":r===void 0?void 0:Tn(r),"--notification-color":n?Jo(n,e):void 0}}),mse=Je((e,r)=>{const n=ze("Notification",vdt,e),{className:o,color:a,radius:i,loading:s,withCloseButton:l,withBorder:c,title:d,icon:u,children:h,onClose:f,closeButtonProps:g,classNames:b,style:x,styles:w,unstyled:k,variant:C,vars:_,mod:T,loaderProps:A,role:R,attributes:D,...N}=n,P=vt({name:"Notification",classes:fse,props:n,className:o,style:x,classNames:b,styles:w,unstyled:k,attributes:D,vars:_,varsResolver:xdt});return y.jsxs(Le,{...P("root"),mod:[{"data-with-icon":!!u||s,"data-with-border":c},T],ref:r,variant:C,role:R||"alert",...N,children:[u&&!s&&y.jsx("div",{...P("icon"),children:u}),s&&y.jsx(ch,{size:28,color:a,...A,...P("loader")}),y.jsxs("div",{...P("body"),children:[d&&y.jsx("div",{...P("title"),children:d}),y.jsx(Le,{...P("description"),mod:{"data-with-title":!!d},children:h})]}),l&&y.jsx(dh,{iconSize:16,color:"gray",...g,unstyled:k,onClick:f,...P("closeButton")})]})});mse.classes=fse,mse.displayName="@mantine/core/Notification";const wdt={duration:100,transition:"fade"};function gse(e,r){return{...wdt,...r,...e}}function kdt({offset:e,position:r,defaultOpened:n}){const[o,a]=E.useState(n),i=E.useRef(null),{x:s,y:l,elements:c,refs:d,update:u,placement:h}=NN({placement:r,middleware:[EN({crossAxis:!0,padding:5,rootBoundary:"document"})]}),f=h.includes("right")?e:r.includes("left")?e*-1:0,g=h.includes("bottom")?e:r.includes("top")?e*-1:0,b=E.useCallback(({clientX:x,clientY:w})=>{d.setPositionReference({getBoundingClientRect(){return{width:0,height:0,x,y:w,left:x+f,top:w+g,right:x,bottom:w}}})},[c.reference]);return E.useEffect(()=>{if(d.floating.current){const x=i.current;x.addEventListener("mousemove",b);const w=$c(d.floating.current);return w.forEach(k=>{k.addEventListener("scroll",u)}),()=>{x.removeEventListener("mousemove",b),w.forEach(k=>{k.removeEventListener("scroll",u)})}}},[c.reference,d.floating.current,u,b,o]),{handleMouseMove:b,x:s,y:l,opened:o,setOpened:a,boundaryRef:i,floating:d.setFloating}}var Fk={tooltip:"m_1b3c8819",arrow:"m_f898399f"};const _dt={refProp:"ref",withinPortal:!0,offset:10,position:"right",zIndex:$s("popover")},Edt=(e,{radius:r,color:n})=>({tooltip:{"--tooltip-radius":r===void 0?void 0:Tn(r),"--tooltip-bg":n?Jo(n,e):void 0,"--tooltip-color":n?"var(--mantine-color-white)":void 0}}),wD=Je((e,r)=>{const n=ze("TooltipFloating",_dt,e),{children:o,refProp:a,withinPortal:i,style:s,className:l,classNames:c,styles:d,unstyled:u,radius:h,color:f,label:g,offset:b,position:x,multiline:w,zIndex:k,disabled:C,defaultOpened:_,variant:T,vars:A,portalProps:R,attributes:D,...N}=n,P=_o(),O=vt({name:"TooltipFloating",props:n,classes:Fk,className:l,style:s,classNames:c,styles:d,unstyled:u,attributes:D,rootSelector:"tooltip",vars:A,varsResolver:Edt}),{handleMouseMove:F,x:L,y:U,opened:M,boundaryRef:V,floating:I,setOpened:H}=kdt({offset:b,position:x,defaultOpened:_});if(!Ds(o))throw new Error("[@mantine/core] Tooltip.Floating component children should be an element or a component that accepts ref, fragments, strings, numbers and other primitive values are not supported");const q=yn(V,Q4(o),r),Z=o.props,W=K=>{Z.onMouseEnter?.(K),F(K),H(!0)},G=K=>{Z.onMouseLeave?.(K),H(!1)};return y.jsxs(y.Fragment,{children:[y.jsx(lh,{...R,withinPortal:i,children:y.jsx(Le,{...N,...O("tooltip",{style:{...iN(s,P),zIndex:k,display:!C&&M?"block":"none",top:(U&&Math.round(U))??"",left:(L&&Math.round(L))??""}}),variant:T,ref:I,mod:{multiline:w},children:g})}),E.cloneElement(o,{...Z,[a]:q,onMouseEnter:W,onMouseLeave:G})]})});wD.classes=Fk,wD.displayName="@mantine/core/TooltipFloating";const yse=E.createContext(!1),Sdt=yse.Provider,Cdt=()=>E.useContext(yse),Tdt={openDelay:0,closeDelay:0};function kD(e){const{openDelay:r,closeDelay:n,children:o}=ze("TooltipGroup",Tdt,e);return y.jsx(Sdt,{value:!0,children:y.jsx(fae,{delay:{open:r,close:n},children:o})})}kD.displayName="@mantine/core/TooltipGroup",kD.extend=e=>e;function Adt(e){if(e===void 0)return{shift:!0,flip:!0};const r={...e};return e.shift===void 0&&(r.shift=!0),e.flip===void 0&&(r.flip=!0),r}function Rdt(e){const r=Adt(e.middlewares),n=[nae(e.offset)];return r.shift&&n.push(EN(typeof r.shift=="boolean"?{padding:8}:{padding:8,...r.shift})),r.flip&&n.push(typeof r.flip=="boolean"?gk():gk(r.flip)),n.push(aae({element:e.arrowRef,padding:e.arrowOffset})),r.inline?n.push(typeof r.inline=="boolean"?db():db(r.inline)):e.inline&&n.push(db()),n}function Ndt(e){const[r,n]=E.useState(e.defaultOpened),o=typeof e.opened=="boolean"?e.opened:r,a=Cdt(),i=Ms(),s=E.useCallback(T=>{n(T),T&&w(i)},[i]),{x:l,y:c,context:d,refs:u,placement:h,middlewareData:{arrow:{x:f,y:g}={}}}=NN({strategy:e.strategy,placement:e.position,open:o,onOpenChange:s,middleware:Rdt(e),whileElementsMounted:kN}),{delay:b,currentId:x,setCurrentId:w}=Pst(d,{id:i}),{getReferenceProps:k,getFloatingProps:C}=Lst([Dst(d,{enabled:e.events?.hover,delay:a?b:{open:e.openDelay,close:e.closeDelay},mouseOnly:!e.events?.touch}),jst(d,{enabled:e.events?.focus,visibleOnly:!0}),Fst(d,{role:"tooltip"}),Ist(d,{enabled:typeof e.opened>"u"})]);th(()=>{e.onPositionChange?.(h)},[h]);const _=o&&x&&x!==i;return{x:l,y:c,arrowX:f,arrowY:g,reference:u.setReference,floating:u.setFloating,getFloatingProps:C,getReferenceProps:k,isGroupPhase:_,opened:o,placement:h}}const bse={position:"top",refProp:"ref",withinPortal:!0,arrowSize:4,arrowOffset:5,arrowRadius:0,arrowPosition:"side",offset:5,transitionProps:{duration:100,transition:"fade"},events:{hover:!0,focus:!1,touch:!1},zIndex:$s("popover"),positionDependencies:[],middlewares:{flip:!0,shift:!0,inline:!1}},Ddt=(e,{radius:r,color:n,variant:o,autoContrast:a})=>{const i=e.variantColorResolver({theme:e,color:n||e.primaryColor,autoContrast:a,variant:o||"filled"});return{tooltip:{"--tooltip-radius":r===void 0?void 0:Tn(r),"--tooltip-bg":n?i.background:void 0,"--tooltip-color":n?i.color:void 0}}},Hk=Je((e,r)=>{const n=ze("Tooltip",bse,e),{children:o,position:a,refProp:i,label:s,openDelay:l,closeDelay:c,onPositionChange:d,opened:u,defaultOpened:h,withinPortal:f,radius:g,color:b,classNames:x,styles:w,unstyled:k,style:C,className:_,withArrow:T,arrowSize:A,arrowOffset:R,arrowRadius:D,arrowPosition:N,offset:P,transitionProps:O,multiline:F,events:L,zIndex:U,disabled:M,positionDependencies:V,onClick:I,onMouseEnter:H,onMouseLeave:q,inline:Z,variant:W,keepMounted:G,vars:K,portalProps:j,mod:Y,floatingStrategy:Q,middlewares:J,autoContrast:ie,attributes:ne,target:re,...ge}=ze("Tooltip",bse,n),{dir:De}=Rc(),he=E.useRef(null),me=Ndt({position:Mae(De,a),closeDelay:c,openDelay:l,onPositionChange:d,opened:u,defaultOpened:h,events:L,arrowRef:he,arrowOffset:R,offset:typeof P=="number"?P+(T?A/2:0):P,positionDependencies:[...V,re??o],inline:Z,strategy:Q,middlewares:J});E.useEffect(()=>{const Qe=re instanceof HTMLElement?re:typeof re=="string"?document.querySelector(re):re?.current||null;Qe&&me.reference(Qe)},[re,me]);const Te=vt({name:"Tooltip",props:n,classes:Fk,className:_,style:C,classNames:x,styles:w,unstyled:k,attributes:ne,rootSelector:"tooltip",vars:K,varsResolver:Ddt});if(!re&&!Ds(o))return null;if(re){const Qe=gse(O,{duration:100,transition:"fade"});return y.jsx(y.Fragment,{children:y.jsx(lh,{...j,withinPortal:f,children:y.jsx(js,{...Qe,keepMounted:G,mounted:!M&&!!me.opened,duration:me.isGroupPhase?10:Qe.duration,children:Mt=>y.jsxs(Le,{...ge,"data-fixed":Q==="fixed"||void 0,variant:W,mod:[{multiline:F},Y],...me.getFloatingProps({ref:me.floating,className:Te("tooltip").className,style:{...Te("tooltip").style,...Mt,zIndex:U,top:me.y??0,left:me.x??0}}),children:[s,y.jsx(wk,{ref:he,arrowX:me.arrowX,arrowY:me.arrowY,visible:T,position:me.placement,arrowSize:A,arrowOffset:R,arrowRadius:D,arrowPosition:N,...Te("arrow")})]})})})})}const Ie=o,Ze=Ie.props,rt=yn(me.reference,Q4(Ie),r),Rt=gse(O,{duration:100,transition:"fade"});return y.jsxs(y.Fragment,{children:[y.jsx(lh,{...j,withinPortal:f,children:y.jsx(js,{...Rt,keepMounted:G,mounted:!M&&!!me.opened,duration:me.isGroupPhase?10:Rt.duration,children:Qe=>y.jsxs(Le,{...ge,"data-fixed":Q==="fixed"||void 0,variant:W,mod:[{multiline:F},Y],...me.getFloatingProps({ref:me.floating,className:Te("tooltip").className,style:{...Te("tooltip").style,...Qe,zIndex:U,top:me.y??0,left:me.x??0}}),children:[s,y.jsx(wk,{ref:he,arrowX:me.arrowX,arrowY:me.arrowY,visible:T,position:me.placement,arrowSize:A,arrowOffset:R,arrowRadius:D,arrowPosition:N,...Te("arrow")})]})})}),E.cloneElement(Ie,me.getReferenceProps({onClick:I,onMouseEnter:H,onMouseLeave:q,onMouseMove:n.onMouseMove,onPointerDown:n.onPointerDown,onPointerEnter:n.onPointerEnter,className:ho(_,Ze.className),...Ze,[i]:rt}))]})});Hk.classes=Fk,Hk.displayName="@mantine/core/Tooltip",Hk.Floating=wD,Hk.Group=kD;var vse={root:"m_cf365364",indicator:"m_9e182ccd",label:"m_1738fcb2",input:"m_1714d588",control:"m_69686b9b",innerLabel:"m_78882f40"};const $dt={withItemsBorders:!0},Pdt=(e,{radius:r,color:n,transitionDuration:o,size:a,transitionTimingFunction:i})=>({root:{"--sc-radius":r===void 0?void 0:Tn(r),"--sc-color":n?Jo(n,e):void 0,"--sc-shadow":n?void 0:"var(--mantine-shadow-xs)","--sc-transition-duration":o===void 0?void 0:`${o}ms`,"--sc-transition-timing-function":i,"--sc-padding":dr(a,"sc-padding"),"--sc-font-size":Fo(a)}}),xse=Je((e,r)=>{const n=ze("SegmentedControl",$dt,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,data:d,value:u,defaultValue:h,onChange:f,size:g,name:b,disabled:x,readOnly:w,fullWidth:k,orientation:C,radius:_,color:T,transitionDuration:A,transitionTimingFunction:R,variant:D,autoContrast:N,withItemsBorders:P,mod:O,attributes:F,...L}=n,U=vt({name:"SegmentedControl",props:n,classes:vse,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:F,vars:c,varsResolver:Pdt}),M=_o(),V=d.map(re=>typeof re=="string"?{label:re,value:re}:re),I=Wot(),[H,q]=E.useState(YR()),[Z,W]=E.useState(null),[G,K]=E.useState({}),j=(re,ge)=>{G[ge]=re,K(G)},[Y,Q]=Qd({value:u,defaultValue:h,finalValue:Array.isArray(d)?V.find(re=>!re.disabled)?.value??d[0]?.value??null:null,onChange:f}),J=Ms(b),ie=V.map(re=>E.createElement(Le,{...U("control"),mod:{active:Y===re.value,orientation:C},key:re.value},E.createElement("input",{...U("input"),disabled:x||re.disabled,type:"radio",name:J,value:re.value,id:`${J}-${re.value}`,checked:Y===re.value,onChange:()=>!w&&Q(re.value),"data-focus-ring":M.focusRing,key:`${re.value}-input`}),E.createElement(Le,{component:"label",...U("label"),mod:{active:Y===re.value&&!(x||re.disabled),disabled:x||re.disabled,"read-only":w},htmlFor:`${J}-${re.value}`,ref:ge=>j(ge,re.value),__vars:{"--sc-label-color":T!==void 0?JR({color:T,theme:M,autoContrast:N}):void 0},key:`${re.value}-label`},y.jsx("span",{...U("innerLabel"),children:re.label})))),ne=yn(r,re=>W(re));return Fot(()=>{q(YR())},[d.length]),d.length===0?null:y.jsxs(Le,{...U("root"),variant:D,size:g,ref:ne,mod:[{"full-width":k,orientation:C,initialized:I,"with-items-borders":P},O],...L,role:"radiogroup","data-disabled":x,children:[typeof Y=="string"&&y.jsx(XN,{target:G[Y],parent:Z,component:"span",transitionDuration:"var(--sc-transition-duration)",...U("indicator")},H),ie]})});xse.classes=vse,xse.displayName="@mantine/core/SegmentedControl";const Mdt={withCheckIcon:!0,allowDeselect:!0,checkIconPosition:"left"},wse=Je((e,r)=>{const n=ze("Select",Mdt,e),{classNames:o,styles:a,unstyled:i,vars:s,dropdownOpened:l,defaultDropdownOpened:c,onDropdownClose:d,onDropdownOpen:u,onFocus:h,onBlur:f,onClick:g,onChange:b,data:x,value:w,defaultValue:k,selectFirstOptionOnChange:C,onOptionSubmit:_,comboboxProps:T,readOnly:A,disabled:R,filter:D,limit:N,withScrollArea:P,maxDropdownHeight:O,size:F,searchable:L,rightSection:U,checkIconPosition:M,withCheckIcon:V,nothingFoundMessage:I,name:H,form:q,searchValue:Z,defaultSearchValue:W,onSearchChange:G,allowDeselect:K,error:j,rightSectionPointerEvents:Y,id:Q,clearable:J,clearButtonProps:ie,hiddenInputProps:ne,renderOption:re,onClear:ge,autoComplete:De,scrollAreaProps:he,__defaultRightSection:me,__clearSection:Te,__clearable:Ie,chevronColor:Ze,autoSelectOnBlur:rt,attributes:Rt,...Qe}=n,Mt=E.useMemo(()=>nct(x),[x]),Ke=E.useRef({}),Ge=E.useMemo(()=>pie(Mt),[Mt]),ct=Ms(Q),[dt,Ir,Ee]=Qd({value:w,defaultValue:k,finalValue:null,onChange:b}),Se=typeof dt=="string"?dt in Ge?Ge[dt]:Ke.current[dt]:void 0,it=qot(Se),[xt,zt,Fr]=Qd({value:Z,defaultValue:W,finalValue:Se?Se.label:"",onChange:G}),It=bie({opened:l,defaultOpened:c,onDropdownOpen:()=>{u?.(),It.updateSelectedOptionIndex("active",{scrollIntoView:!0})},onDropdownClose:()=>{d?.(),setTimeout(It.resetSelectedOption,0)}}),vr=xr=>{zt(xr),It.resetSelectedOption()},{resolvedClassNames:fr,resolvedStyles:dn}=eN({props:n,styles:a,classNames:o});E.useEffect(()=>{C&&It.selectFirstOption()},[C,xt]),E.useEffect(()=>{w===null&&vr(""),typeof w=="string"&&Se&&(it?.value!==Se.value||it?.label!==Se.label)&&vr(Se.label)},[w,Se]),E.useEffect(()=>{!Ee&&!Fr&&vr(typeof dt=="string"?dt in Ge?Ge[dt]?.label:Ke.current[dt]?.label||"":"")},[Ge,dt]),E.useEffect(()=>{dt&&dt in Ge&&(Ke.current[dt]=Ge[dt])},[Ge,dt]);const ir=y.jsx(Nr.ClearButton,{...ie,onClear:()=>{Ir(null,null),vr(""),ge?.()}}),vn=J&&!!dt&&!R&&!A;return y.jsxs(y.Fragment,{children:[y.jsxs(Nr,{store:It,__staticSelector:"Select",classNames:fr,styles:dn,unstyled:i,readOnly:A,size:F,attributes:Rt,keepMounted:rt,onOptionSubmit:xr=>{_?.(xr);const ea=K&&Ge[xr].value===dt?null:Ge[xr],xa=ea?ea.value:null;xa!==dt&&Ir(xa,ea),!Ee&&vr(typeof xa=="string"&&ea?.label||""),It.closeDropdown()},...T,children:[y.jsx(Nr.Target,{targetType:L?"input":"button",autoComplete:De,children:y.jsx(Rk,{id:ct,ref:r,__defaultRightSection:y.jsx(Nr.Chevron,{size:F,error:j,unstyled:i,color:Ze}),__clearSection:ir,__clearable:vn,rightSection:U,rightSectionPointerEvents:Y||"none",...Qe,size:F,__staticSelector:"Select",disabled:R,readOnly:A||!L,value:xt,onChange:xr=>{vr(xr.currentTarget.value),It.openDropdown(),C&&It.selectFirstOption()},onFocus:xr=>{L&&It.openDropdown(),h?.(xr)},onBlur:xr=>{rt&&It.clickSelectedOption(),L&&It.closeDropdown();const ea=typeof dt=="string"&&(dt in Ge?Ge[dt]:Ke.current[dt]);vr(ea&&ea.label||""),f?.(xr)},onClick:xr=>{L?It.openDropdown():It.toggleDropdown(),g?.(xr)},classNames:fr,styles:dn,unstyled:i,pointer:!L,error:j,attributes:Rt})}),y.jsx(xct,{data:Mt,hidden:A||R,filter:D,search:xt,limit:N,hiddenWhenEmpty:!I,withScrollArea:P,maxDropdownHeight:O,filterOptions:!!L&&Se?.label!==xt,value:dt,checkIconPosition:M,withCheckIcon:V,nothingFoundMessage:I,unstyled:i,labelId:Qe.label?`${ct}-label`:void 0,"aria-label":Qe.label?void 0:Qe["aria-label"],renderOption:re,scrollAreaProps:he})]}),y.jsx(Nr.HiddenInput,{value:dt,name:H,form:q,disabled:R,...ne})]})});wse.classes={...Rk.classes,...Nr.classes},wse.displayName="@mantine/core/Select";function zdt({spacing:e,verticalSpacing:r,cols:n,selector:o}){const a=_o(),i=r===void 0?e:r,s=Zd({"--sg-spacing-x":po(Ps(e)),"--sg-spacing-y":po(Ps(i)),"--sg-cols":Ps(n)?.toString()}),l=Bo(a.breakpoints).reduce((d,u)=>(d[u]||(d[u]={}),typeof e=="object"&&e[u]!==void 0&&(d[u]["--sg-spacing-x"]=po(e[u])),typeof i=="object"&&i[u]!==void 0&&(d[u]["--sg-spacing-y"]=po(i[u])),typeof n=="object"&&n[u]!==void 0&&(d[u]["--sg-cols"]=n[u]),d),{}),c=WR(Bo(l),a.breakpoints).filter(d=>Bo(l[d.value]).length>0).map(d=>({query:`(min-width: ${a.breakpoints[d.value]})`,styles:l[d.value]}));return y.jsx(sg,{styles:s,media:c,selector:o})}function _D(e){return typeof e=="object"&&e!==null?Bo(e):[]}function Idt(e){return e.sort((r,n)=>K4(r)-K4(n))}function Odt({spacing:e,verticalSpacing:r,cols:n}){const o=Array.from(new Set([..._D(e),..._D(r),..._D(n)]));return Idt(o)}function jdt({spacing:e,verticalSpacing:r,cols:n,selector:o}){const a=r===void 0?e:r,i=Zd({"--sg-spacing-x":po(Ps(e)),"--sg-spacing-y":po(Ps(a)),"--sg-cols":Ps(n)?.toString()}),s=Odt({spacing:e,verticalSpacing:r,cols:n}),l=s.reduce((d,u)=>(d[u]||(d[u]={}),typeof e=="object"&&e[u]!==void 0&&(d[u]["--sg-spacing-x"]=po(e[u])),typeof a=="object"&&a[u]!==void 0&&(d[u]["--sg-spacing-y"]=po(a[u])),typeof n=="object"&&n[u]!==void 0&&(d[u]["--sg-cols"]=n[u]),d),{}),c=s.map(d=>({query:`simple-grid (min-width: ${d})`,styles:l[d]}));return y.jsx(sg,{styles:i,container:c,selector:o})}var kse={container:"m_925c2d2c",root:"m_2415a157"};const Ldt={cols:1,spacing:"md",type:"media"},_se=Je((e,r)=>{const n=ze("SimpleGrid",Ldt,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,cols:d,verticalSpacing:u,spacing:h,type:f,attributes:g,...b}=n,x=vt({name:"SimpleGrid",classes:kse,props:n,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:g,vars:c}),w=ib();return f==="container"?y.jsxs(y.Fragment,{children:[y.jsx(jdt,{...n,selector:`.${w}`}),y.jsx("div",{...x("container"),children:y.jsx(Le,{ref:r,...x("root",{className:w}),...b})})]}):y.jsxs(y.Fragment,{children:[y.jsx(zdt,{...n,selector:`.${w}`}),y.jsx(Le,{ref:r,...x("root",{className:w}),...b})]})});_se.classes=kse,_se.displayName="@mantine/core/SimpleGrid";const[Bdt,Vk]=qa("SliderProvider was not found in tree"),Ese=E.forwardRef(({size:e,disabled:r,variant:n,color:o,thumbSize:a,radius:i,...s},l)=>{const{getStyles:c}=Vk();return y.jsx(Le,{tabIndex:-1,variant:n,size:e,ref:l,...c("root"),...s})});Ese.displayName="@mantine/core/SliderRoot";const Sse=E.forwardRef(({max:e,min:r,value:n,position:o,label:a,dragging:i,onMouseDown:s,onKeyDownCapture:l,labelTransitionProps:c,labelAlwaysOn:d,thumbLabel:u,onFocus:h,onBlur:f,showLabelOnHover:g,isHovered:b,children:x=null,disabled:w},k)=>{const{getStyles:C}=Vk(),[_,T]=E.useState(!1),A=d||i||_||g&&b;return y.jsxs(Le,{tabIndex:0,role:"slider","aria-label":u,"aria-valuemax":e,"aria-valuemin":r,"aria-valuenow":n,ref:k,__vars:{"--slider-thumb-offset":`${o}%`},...C("thumb",{focusable:!0}),mod:{dragging:i,disabled:w},onFocus:R=>{T(!0),typeof h=="function"&&h(R)},onBlur:R=>{T(!1),typeof f=="function"&&f(R)},onTouchStart:s,onMouseDown:s,onKeyDownCapture:l,onClick:R=>R.stopPropagation(),children:[x,y.jsx(js,{mounted:a!=null&&!!A,transition:"fade",duration:0,...c,children:R=>y.jsx("div",{...C("label",{style:R}),children:a})})]})});Sse.displayName="@mantine/core/SliderThumb";function Cse({value:e,min:r,max:n}){const o=(e-r)/(n-r)*100;return Math.min(Math.max(o,0),100)}function Fdt({mark:e,offset:r,value:n,inverted:o=!1}){return o?typeof r=="number"&&e.value<=r||e.value>=n:typeof r=="number"?e.value>=r&&e.value<=n:e.value<=n}function Tse({marks:e,min:r,max:n,disabled:o,value:a,offset:i,inverted:s}){const{getStyles:l}=Vk();if(!e)return null;const c=e.map((d,u)=>E.createElement(Le,{...l("markWrapper"),__vars:{"--mark-offset":`${Cse({value:d.value,min:r,max:n})}%`},key:u},y.jsx(Le,{...l("mark"),mod:{filled:Fdt({mark:d,value:a,offset:i,inverted:s}),disabled:o}}),d.label&&y.jsx("div",{...l("markLabel"),children:d.label})));return y.jsx("div",{children:c})}Tse.displayName="@mantine/core/SliderMarks";function Ase({filled:e,children:r,offset:n,disabled:o,marksOffset:a,inverted:i,containerProps:s,...l}){const{getStyles:c}=Vk();return y.jsx(Le,{...c("trackContainer"),mod:{disabled:o},...s,children:y.jsxs(Le,{...c("track"),mod:{inverted:i,disabled:o},children:[y.jsx(Le,{mod:{inverted:i,disabled:o},__vars:{"--slider-bar-width":`calc(${e}% + 2 * var(--slider-size))`,"--slider-bar-offset":`calc(${n}% - var(--slider-size))`},...c("bar")}),r,y.jsx(Tse,{...l,offset:a,disabled:o,inverted:i})]})})}Ase.displayName="@mantine/core/SliderTrack";function Hdt({value:e,containerWidth:r,min:n,max:o,step:a,precision:i}){const s=(r?Math.min(Math.max(e,0),r)/r:e)*(o-n),l=(s!==0?Math.round(s/a)*a:0)+n,c=Math.max(l,n);return i!==void 0?Number(c.toFixed(i)):c}function qk(e,r){return parseFloat(e.toFixed(r))}function Vdt(e){if(!e)return 0;const r=e.toString().split(".");return r.length>1?r[1].length:0}function ED(e,r){const n=[...r].sort((o,a)=>o.value-a.value).find(o=>o.value>e);return n?n.value:e}function SD(e,r){const n=[...r].sort((o,a)=>a.value-o.value).find(o=>o.valuen.value-o.value);return r.length>0?r[0].value:0}function Nse(e){const r=[...e].sort((n,o)=>n.value-o.value);return r.length>0?r[r.length-1].value:100}var Dse={root:"m_dd36362e",label:"m_c9357328",thumb:"m_c9a9a60a",trackContainer:"m_a8645c2",track:"m_c9ade57f",bar:"m_38aeed47",markWrapper:"m_b7b0423a",mark:"m_dd33bc19",markLabel:"m_68c77a5b"};const qdt={radius:"xl",min:0,max:100,step:1,marks:[],label:e=>e,labelTransitionProps:{transition:"fade",duration:0},thumbLabel:"",showLabelOnHover:!0,scale:e=>e,size:"md"},Udt=(e,{size:r,color:n,thumbSize:o,radius:a})=>({root:{"--slider-size":dr(r,"slider-size"),"--slider-color":n?Jo(n,e):void 0,"--slider-radius":a===void 0?void 0:Tn(a),"--slider-thumb-size":o!==void 0?qe(o):"calc(var(--slider-size) * 2)"}}),$se=Je((e,r)=>{const n=ze("Slider",qdt,e),{classNames:o,styles:a,value:i,onChange:s,onChangeEnd:l,size:c,min:d,max:u,domain:h,step:f,precision:g,defaultValue:b,name:x,marks:w,label:k,labelTransitionProps:C,labelAlwaysOn:_,thumbLabel:T,showLabelOnHover:A,thumbChildren:R,disabled:D,unstyled:N,scale:P,inverted:O,className:F,style:L,vars:U,hiddenInputProps:M,restrictToMarks:V,thumbProps:I,attributes:H,...q}=n,Z=vt({name:"Slider",props:n,classes:Dse,classNames:o,className:F,styles:a,style:L,attributes:H,vars:U,varsResolver:Udt,unstyled:N}),{dir:W}=Rc(),[G,K]=E.useState(!1),[j,Y]=Qd({value:typeof i=="number"?og(i,d,u):i,defaultValue:typeof b=="number"?og(b,d,u):b,finalValue:og(0,d,u),onChange:s}),Q=E.useRef(j),J=E.useRef(l);E.useEffect(()=>{J.current=l},[l]);const ie=E.useRef(null),ne=E.useRef(null),[re,ge]=h||[d,u],De=Cse({value:j,min:re,max:ge}),he=P(j),me=typeof k=="function"?k(he):k,Te=g??Vdt(f),Ie=E.useCallback(({x:Ke})=>{if(!D){const Ge=Hdt({value:Ke,min:re,max:ge,step:f,precision:Te}),ct=og(Ge,d,u);Y(V&&w?.length?boe(ct,w.map(dt=>dt.value)):ct),Q.current=ct}},[D,d,u,re,ge,f,Te,Y,w,V]),Ze=E.useCallback(()=>{if(!D&&J.current){const Ke=V&&w?.length?boe(Q.current,w.map(Ge=>Ge.value)):Q.current;J.current(Ke)}},[D,w,V]),{ref:rt,active:Rt}=jot(Ie,{onScrubEnd:Ze},W),Qe=E.useCallback(Ke=>{!D&&J.current&&J.current(Ke)},[D]),Mt=Ke=>{if(!D)switch(Ke.key){case"ArrowUp":{if(Ke.preventDefault(),ne.current?.focus(),V&&w){const ct=ED(j,w);Y(ct),Qe(ct);break}const Ge=qk(Math.min(Math.max(j+f,d),u),Te);Y(Ge),Qe(Ge);break}case"ArrowRight":{if(Ke.preventDefault(),ne.current?.focus(),V&&w){const ct=W==="rtl"?SD(j,w):ED(j,w);Y(ct),Qe(ct);break}const Ge=qk(Math.min(Math.max(W==="rtl"?j-f:j+f,d),u),Te);Y(Ge),Qe(Ge);break}case"ArrowDown":{if(Ke.preventDefault(),ne.current?.focus(),V&&w){const ct=SD(j,w);Y(ct),Qe(ct);break}const Ge=qk(Math.min(Math.max(j-f,d),u),Te);Y(Ge),Qe(Ge);break}case"ArrowLeft":{if(Ke.preventDefault(),ne.current?.focus(),V&&w){const ct=W==="rtl"?ED(j,w):SD(j,w);Y(ct),Qe(ct);break}const Ge=qk(Math.min(Math.max(W==="rtl"?j+f:j-f,d),u),Te);Y(Ge),Qe(Ge);break}case"Home":{if(Ke.preventDefault(),ne.current?.focus(),V&&w){Y(Rse(w)),Qe(Rse(w));break}Y(d),Qe(d);break}case"End":{if(Ke.preventDefault(),ne.current?.focus(),V&&w){Y(Nse(w)),Qe(Nse(w));break}Y(u),Qe(u);break}}};return y.jsx(Bdt,{value:{getStyles:Z},children:y.jsxs(Ese,{...q,ref:yn(r,ie),onKeyDownCapture:Mt,onMouseDownCapture:()=>ie.current?.focus(),size:c,disabled:D,children:[y.jsx(Ase,{inverted:O,offset:0,filled:De,marks:w,min:re,max:ge,value:he,disabled:D,containerProps:{ref:rt,onMouseEnter:A?()=>K(!0):void 0,onMouseLeave:A?()=>K(!1):void 0},children:y.jsx(Sse,{max:ge,min:re,value:he,position:De,dragging:Rt,label:me,ref:ne,labelTransitionProps:C,labelAlwaysOn:_,thumbLabel:T,showLabelOnHover:A,isHovered:G,disabled:D,...I,children:R})}),y.jsx("input",{type:"hidden",name:x,value:he,...M})]})})});$se.classes=Dse,$se.displayName="@mantine/core/Slider";const Wdt=Je((e,r)=>{const{w:n,h:o,miw:a,mih:i,...s}=ze("Space",null,e);return y.jsx(Le,{ref:r,...s,w:n,miw:a??n,h:o,mih:i??o})});Wdt.displayName="@mantine/core/Space";var Pse={root:"m_6d731127"};const Ydt={gap:"md",align:"stretch",justify:"flex-start"},Gdt=(e,{gap:r,align:n,justify:o})=>({root:{"--stack-gap":po(r),"--stack-align":n,"--stack-justify":o}}),Mse=Je((e,r)=>{const n=ze("Stack",Ydt,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,align:d,justify:u,gap:h,variant:f,attributes:g,...b}=n,x=vt({name:"Stack",props:n,classes:Pse,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:g,vars:c,varsResolver:Gdt});return y.jsx(Le,{ref:r,...x("root"),variant:f,...b})});Mse.classes=Pse,Mse.displayName="@mantine/core/Stack";const[Xdt,CD]=qa("Tabs component was not found in the tree");var gb={root:"m_89d60db1","list--default":"m_576c9d4",list:"m_89d33d6d",tab:"m_4ec4dce6",panel:"m_b0c91715",tabSection:"m_fc420b1f",tabLabel:"m_42bbd1ae","tab--default":"m_539e827b","list--outline":"m_6772fbd5","tab--outline":"m_b59ab47c","tab--pills":"m_c3381914"};const TD=Je((e,r)=>{const n=ze("TabsList",null,e),{children:o,className:a,grow:i,justify:s,classNames:l,styles:c,style:d,mod:u,...h}=n,f=CD();return y.jsx(Le,{...h,...f.getStyles("list",{className:a,style:d,classNames:l,styles:c,props:n,variant:f.variant}),ref:r,role:"tablist",variant:f.variant,mod:[{grow:i,orientation:f.orientation,placement:f.orientation==="vertical"&&f.placement,inverted:f.inverted},u],"aria-orientation":f.orientation,__vars:{"--tabs-justify":s},children:o})});TD.classes=gb,TD.displayName="@mantine/core/TabsList";const AD=Je((e,r)=>{const n=ze("TabsPanel",null,e),{children:o,className:a,value:i,classNames:s,styles:l,style:c,mod:d,keepMounted:u,...h}=n,f=CD(),g=f.value===i,b=f.keepMounted||u||g?o:null;return y.jsx(Le,{...f.getStyles("panel",{className:a,classNames:s,styles:l,style:[c,g?void 0:{display:"none"}],props:n}),ref:r,mod:[{orientation:f.orientation},d],role:"tabpanel",id:f.getPanelId(i),"aria-labelledby":f.getTabId(i),...h,children:b})});AD.classes=gb,AD.displayName="@mantine/core/TabsPanel";const RD=Je((e,r)=>{const n=ze("TabsTab",null,e),{className:o,children:a,rightSection:i,leftSection:s,value:l,onClick:c,onKeyDown:d,disabled:u,color:h,style:f,classNames:g,styles:b,vars:x,mod:w,tabIndex:k,...C}=n,_=_o(),{dir:T}=Rc(),A=CD(),R=l===A.value,D=P=>{A.onChange(A.allowTabDeactivation&&l===A.value?null:l),c?.(P)},N={classNames:g,styles:b,props:n};return y.jsxs(Nl,{...A.getStyles("tab",{className:o,style:f,variant:A.variant,...N}),disabled:u,unstyled:A.unstyled,variant:A.variant,mod:[{active:R,disabled:u,orientation:A.orientation,inverted:A.inverted,placement:A.orientation==="vertical"&&A.placement},w],ref:r,role:"tab",id:A.getTabId(l),"aria-selected":R,tabIndex:k!==void 0?k:R||A.value===null?0:-1,"aria-controls":A.getPanelId(l),onClick:D,__vars:{"--tabs-color":h?Jo(h,_):void 0},onKeyDown:qR({siblingSelector:'[role="tab"]',parentSelector:'[role="tablist"]',activateOnFocus:A.activateTabWithKeyboard,loop:A.loop,orientation:A.orientation||"horizontal",dir:T,onKeyDown:d}),...C,children:[s&&y.jsx("span",{...A.getStyles("tabSection",N),"data-position":"left",children:s}),a&&y.jsx("span",{...A.getStyles("tabLabel",N),children:a}),i&&y.jsx("span",{...A.getStyles("tabSection",N),"data-position":"right",children:i})]})});RD.classes=gb,RD.displayName="@mantine/core/TabsTab";const zse="Tabs.Tab or Tabs.Panel component was rendered with invalid value or without value",Kdt={keepMounted:!0,orientation:"horizontal",loop:!0,activateTabWithKeyboard:!0,variant:"default",placement:"left"},Zdt=(e,{radius:r,color:n,autoContrast:o})=>({root:{"--tabs-radius":Tn(r),"--tabs-color":Jo(n,e),"--tabs-text-color":Aat(o,e)?JR({color:n,theme:e,autoContrast:o}):void 0}}),yb=Je((e,r)=>{const n=ze("Tabs",Kdt,e),{defaultValue:o,value:a,onChange:i,orientation:s,children:l,loop:c,id:d,activateTabWithKeyboard:u,allowTabDeactivation:h,variant:f,color:g,radius:b,inverted:x,placement:w,keepMounted:k,classNames:C,styles:_,unstyled:T,className:A,style:R,vars:D,autoContrast:N,mod:P,attributes:O,...F}=n,L=Ms(d),[U,M]=Qd({value:a,defaultValue:o,finalValue:null,onChange:i}),V=vt({name:"Tabs",props:n,classes:gb,className:A,style:R,classNames:C,styles:_,unstyled:T,attributes:O,vars:D,varsResolver:Zdt});return y.jsx(Xdt,{value:{placement:w,value:U,orientation:s,id:L,loop:c,activateTabWithKeyboard:u,getTabId:doe(`${L}-tab`,zse),getPanelId:doe(`${L}-panel`,zse),onChange:M,allowTabDeactivation:h,variant:f,color:g,radius:b,inverted:x,keepMounted:k,unstyled:T,getStyles:V},children:y.jsx(Le,{ref:r,id:L,variant:f,mod:[{orientation:s,inverted:s==="horizontal"&&x,placement:s==="vertical"&&w},P],...V("root"),...F,children:l})})});yb.classes=gb,yb.displayName="@mantine/core/Tabs",yb.Tab=RD,yb.Panel=AD,yb.List=TD;var Ise={root:"m_7341320d"};const Qdt=(e,{size:r,radius:n,variant:o,gradient:a,color:i,autoContrast:s})=>{const l=e.variantColorResolver({color:i||e.primaryColor,theme:e,gradient:a,variant:o||"filled",autoContrast:s});return{root:{"--ti-size":dr(r,"ti-size"),"--ti-radius":n===void 0?void 0:Tn(n),"--ti-bg":i||o?l.background:void 0,"--ti-color":i||o?l.color:void 0,"--ti-bd":i||o?l.border:void 0}}},Ose=Je((e,r)=>{const n=ze("ThemeIcon",null,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,autoContrast:d,attributes:u,...h}=n,f=vt({name:"ThemeIcon",classes:Ise,props:n,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:u,vars:c,varsResolver:Qdt});return y.jsx(Le,{ref:r,...f("root"),...h})});Ose.classes=Ise,Ose.displayName="@mantine/core/ThemeIcon";const Jdt=["h1","h2","h3","h4","h5","h6"],eut=["xs","sm","md","lg","xl"];function tut(e,r){const n=r!==void 0?r:`h${e}`;return Jdt.includes(n)?{fontSize:`var(--mantine-${n}-font-size)`,fontWeight:`var(--mantine-${n}-font-weight)`,lineHeight:`var(--mantine-${n}-line-height)`}:eut.includes(n)?{fontSize:`var(--mantine-font-size-${n})`,fontWeight:`var(--mantine-h${e}-font-weight)`,lineHeight:`var(--mantine-h${e}-line-height)`}:{fontSize:qe(n),fontWeight:`var(--mantine-h${e}-font-weight)`,lineHeight:`var(--mantine-h${e}-line-height)`}}var jse={root:"m_8a5d1357"};const rut={order:1},nut=(e,{order:r,size:n,lineClamp:o,textWrap:a})=>{const i=tut(r||1,n);return{root:{"--title-fw":i.fontWeight,"--title-lh":i.lineHeight,"--title-fz":i.fontSize,"--title-line-clamp":typeof o=="number"?o.toString():void 0,"--title-text-wrap":a}}},Lse=Je((e,r)=>{const n=ze("Title",rut,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,order:c,vars:d,size:u,variant:h,lineClamp:f,textWrap:g,mod:b,attributes:x,...w}=n,k=vt({name:"Title",props:n,classes:jse,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:x,vars:d,varsResolver:nut});return[1,2,3,4,5,6].includes(c)?y.jsx(Le,{...k("root"),component:`h${c}`,variant:h,ref:r,mod:[{order:c,"data-line-clamp":typeof f=="number"},b],size:u,...w}):null});Lse.classes=jse,Lse.displayName="@mantine/core/Title";function Bse(e,r,n){if(!e||!r)return[];const o=n.indexOf(e),a=n.indexOf(r),i=Math.min(o,a),s=Math.max(o,a);return n.slice(i,s+1)}function ND({node:e,getStyles:r,rootIndex:n,controller:o,expandOnClick:a,selectOnClick:i,isSubtree:s,level:l=1,renderNode:c,flatValues:d,allowRangeSelection:u,expandOnSpace:h,checkOnSpace:f}){const g=E.useRef(null),b=(e.children||[]).map(_=>y.jsx(ND,{node:_,flatValues:d,getStyles:r,rootIndex:void 0,level:l+1,controller:o,expandOnClick:a,isSubtree:!0,renderNode:c,selectOnClick:i,allowRangeSelection:u,expandOnSpace:h,checkOnSpace:f},_.value)),x=_=>{if(_.nativeEvent.code==="ArrowRight"&&(_.stopPropagation(),_.preventDefault(),o.expandedState[e.value]?_.currentTarget.querySelector("[role=treeitem]")?.focus():o.expand(e.value)),_.nativeEvent.code==="ArrowLeft"&&(_.stopPropagation(),_.preventDefault(),o.expandedState[e.value]&&(e.children||[]).length>0?o.collapse(e.value):s&&nb(_.currentTarget,"[role=treeitem]")?.focus()),_.nativeEvent.code==="ArrowDown"||_.nativeEvent.code==="ArrowUp"){const T=nb(_.currentTarget,"[data-tree-root]");if(!T)return;_.stopPropagation(),_.preventDefault();const A=Array.from(T.querySelectorAll("[role=treeitem]")),R=A.indexOf(_.currentTarget);if(R===-1)return;const D=_.nativeEvent.code==="ArrowDown"?R+1:R-1;if(A[D]?.focus(),_.shiftKey){const N=A[D];N&&o.setSelectedState(Bse(o.anchorNode,N.dataset.value,d))}}_.nativeEvent.code==="Space"&&(h&&(_.stopPropagation(),_.preventDefault(),o.toggleExpanded(e.value)),f&&(_.stopPropagation(),_.preventDefault(),o.isNodeChecked(e.value)?o.uncheckNode(e.value):o.checkNode(e.value)))},w=_=>{_.stopPropagation(),u&&_.shiftKey&&o.anchorNode?(o.setSelectedState(Bse(o.anchorNode,e.value,d)),g.current?.focus()):(a&&o.toggleExpanded(e.value),i&&o.select(e.value),g.current?.focus())},k=o.selectedState.includes(e.value),C={...r("label"),onClick:w,"data-selected":k||void 0,"data-value":e.value,"data-hovered":o.hoveredNode===e.value||void 0};return y.jsxs("li",{...r("node",{style:{"--label-offset":`calc(var(--level-offset) * ${l-1})`}}),role:"treeitem","aria-selected":k,"data-value":e.value,"data-selected":k||void 0,"data-hovered":o.hoveredNode===e.value||void 0,"data-level":l,tabIndex:n===0?0:-1,onKeyDown:x,ref:g,onMouseOver:_=>{_.stopPropagation(),o.setHoveredNode(e.value)},onMouseLeave:_=>{_.stopPropagation(),o.setHoveredNode(null)},children:[typeof c=="function"?c({node:e,level:l,selected:k,tree:o,expanded:o.expandedState[e.value]||!1,hasChildren:Array.isArray(e.children)&&e.children.length>0,elementProps:C}):y.jsx("div",{...C,children:e.label}),o.expandedState[e.value]&&b.length>0&&y.jsx(Le,{component:"ul",role:"group",...r("subtree"),"data-level":l,children:b})]})}ND.displayName="@mantine/core/TreeNode";function Uk(e,r,n=[]){const o=[];for(const a of e)if(Array.isArray(a.children)&&a.children.length>0){const i=Uk(a.children,r,n);if(i.currentTreeChecked.length===a.children.length){const s=i.currentTreeChecked.every(c=>c.checked),l={checked:s,indeterminate:!s,value:a.value,hasChildren:!0};o.push(l),n.push(l)}else if(i.currentTreeChecked.length>0){const s={checked:!1,indeterminate:!0,value:a.value,hasChildren:!0};o.push(s),n.push(s)}}else if(r.includes(a.value)){const i={checked:!0,indeterminate:!1,value:a.value,hasChildren:!1};o.push(i),n.push(i)}return{result:n,currentTreeChecked:o}}function Fse(e,r){for(const n of r){if(n.value===e)return n;if(Array.isArray(n.children)){const o=Fse(e,n.children);if(o)return o}}return null}function Wk(e,r,n=[]){const o=Fse(e,r);return o?!Array.isArray(o.children)||o.children.length===0?[o.value]:(o.children.forEach(a=>{Array.isArray(a.children)&&a.children.length>0?Wk(a.value,r,n):n.push(a.value)}),n):n}function Hse(e){return e.reduce((r,n)=>(Array.isArray(n.children)&&n.children.length>0?r.push(...Hse(n.children)):r.push(n.value),r),[])}function out(e,r,n){return n.length===0?!1:n.includes(e)?!0:Uk(r,n).result.some(o=>o.value===e&&o.checked)}const aut=yoe(out);function iut(e,r,n){return n.length===0?!1:Uk(r,n).result.some(o=>o.value===e&&o.indeterminate)}const sut=yoe(iut);function Vse(e,r,n,o={}){return r.forEach(a=>{o[a.value]=a.value in e?e[a.value]:a.value===n,Array.isArray(a.children)&&Vse(e,a.children,n,o)}),o}function lut(e,r){const n=[];return e.forEach(o=>n.push(...Wk(o,r))),Array.from(new Set(n))}function cut({initialSelectedState:e=[],initialCheckedState:r=[],initialExpandedState:n={},multiple:o=!1,onNodeCollapse:a,onNodeExpand:i}={}){const[s,l]=E.useState([]),[c,d]=E.useState(n),[u,h]=E.useState(e),[f,g]=E.useState(r),[b,x]=E.useState(null),[w,k]=E.useState(null),C=E.useCallback(I=>{d(H=>Vse(H,I,u)),g(H=>lut(H,I)),l(I)},[u,f]),_=E.useCallback(I=>{d(H=>{const q={...H,[I]:!H[I]};return q[I]?i?.(I):a?.(I),q})},[a,i]),T=E.useCallback(I=>{d(H=>(H[I]!==!1&&a?.(I),{...H,[I]:!1}))},[a]),A=E.useCallback(I=>{d(H=>(H[I]!==!0&&i?.(I),{...H,[I]:!0}))},[i]),R=E.useCallback(()=>{d(I=>{const H={...I};return Object.keys(H).forEach(q=>{H[q]=!0}),H})},[]),D=E.useCallback(()=>{d(I=>{const H={...I};return Object.keys(H).forEach(q=>{H[q]=!1}),H})},[]),N=E.useCallback(I=>h(H=>o?H.includes(I)?(x(null),H.filter(q=>q!==I)):(x(I),[...H,I]):H.includes(I)?(x(null),[]):(x(I),[I])),[]),P=E.useCallback(I=>{x(I),h(H=>o?H.includes(I)?H:[...H,I]:[I])},[]),O=E.useCallback(I=>{b===I&&x(null),h(H=>H.filter(q=>q!==I))},[]),F=E.useCallback(()=>{h([]),x(null)},[]),L=E.useCallback(I=>{const H=Wk(I,s);g(q=>Array.from(new Set([...q,...H])))},[s]),U=E.useCallback(I=>{const H=Wk(I,s);g(q=>q.filter(Z=>!H.includes(Z)))},[s]),M=E.useCallback(()=>{g(()=>Hse(s))},[s]),V=E.useCallback(()=>{g([])},[]);return{multiple:o,expandedState:c,selectedState:u,checkedState:f,anchorNode:b,initialize:C,toggleExpanded:_,collapse:T,expand:A,expandAllNodes:R,collapseAllNodes:D,setExpandedState:d,checkNode:L,uncheckNode:U,checkAllNodes:M,uncheckAllNodes:V,setCheckedState:g,toggleSelected:N,select:P,deselect:O,clearSelected:F,setSelectedState:h,hoveredNode:w,setHoveredNode:k,getCheckedNodes:()=>Uk(s,f).result,isNodeChecked:I=>aut(I,s,f),isNodeIndeterminate:I=>sut(I,s,f)}}var qse={root:"m_f698e191",subtree:"m_75f3ecf",node:"m_f6970eb1",label:"m_dc283425"};function Use(e){return e.reduce((r,n)=>(r.push(n.value),n.children&&r.push(...Use(n.children)),r),[])}const dut={expandOnClick:!0,allowRangeSelection:!0,expandOnSpace:!0},uut=(e,{levelOffset:r})=>({root:{"--level-offset":po(r)}}),Wse=Je((e,r)=>{const n=ze("Tree",dut,e),{classNames:o,className:a,style:i,styles:s,unstyled:l,vars:c,data:d,expandOnClick:u,tree:h,renderNode:f,selectOnClick:g,clearSelectionOnOutsideClick:b,allowRangeSelection:x,expandOnSpace:w,levelOffset:k,checkOnSpace:C,attributes:_,...T}=n,A=cut(),R=h||A,D=vt({name:"Tree",classes:qse,props:n,className:a,style:i,classNames:o,styles:s,unstyled:l,attributes:_,vars:c,varsResolver:uut}),N=uoe(()=>b&&R.clearSelected()),P=yn(r,N),O=E.useMemo(()=>Use(d),[d]);E.useEffect(()=>{R.initialize(d)},[d]);const F=d.map((L,U)=>y.jsx(ND,{node:L,getStyles:D,rootIndex:U,expandOnClick:u,selectOnClick:g,controller:R,renderNode:f,flatValues:O,allowRangeSelection:x,expandOnSpace:w,checkOnSpace:C},L.value));return y.jsx(Le,{component:"ul",ref:P,...D("root"),...T,role:"tree","aria-multiselectable":R.multiple,"data-tree-root":!0,children:F})});Wse.displayName="@mantine/core/Tree",Wse.classes=qse;var put="Invariant failed";function Yk(e,r){if(!e)throw new Error(put)}function hut(e){return typeof e=="function"}function Yse(e,r){return hut(e)?e(r):e}function fut(e,r){return r.reduce((n,o)=>(n[o]=e[o],n),{})}function Gse(e,r){if(e===r)return e;const n=r,o=Kse(e)&&Kse(n);if(o||Gk(e)&&Gk(n)){const a=o?e:Object.keys(e),i=a.length,s=o?n:Object.keys(n),l=s.length,c=o?[]:{};let d=0;for(let u=0;u"u")return!0;const n=r.prototype;return!(!Xse(n)||!n.hasOwnProperty("isPrototypeOf"))}function Xse(e){return Object.prototype.toString.call(e)==="[object Object]"}function Kse(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Zse(e,r){let n=Object.keys(e);return r&&(n=n.filter(o=>e[o]!==void 0)),n}function DD(e,r,n){if(e===r)return!0;if(typeof e!=typeof r)return!1;if(Gk(e)&&Gk(r)){const o=n?.ignoreUndefined??!0,a=Zse(e,o),i=Zse(r,o);return!n?.partial&&a.length!==i.length?!1:i.every(s=>DD(e[s],r[s],n))}return Array.isArray(e)&&Array.isArray(r)?e.length!==r.length?!1:!e.some((o,a)=>!DD(o,r[a],n)):!1}function mut(e){let r,n;const o=new Promise((a,i)=>{r=a,n=i});return o.status="pending",o.resolve=a=>{o.status="resolved",o.value=a,r(a)},o.reject=a=>{o.status="rejected",n(a)},o}function Xk(e,r){return e?.endsWith("/")&&e!=="/"&&e!==`${r}/`?e.slice(0,-1):e}function gut(e,r,n){return Xk(e,n)===Xk(r,n)}function Kk(e){return!!e?.isNotFound}const Qse="tsr-scroll-restoration-v1_3";let Jse=!1;try{Jse=typeof window<"u"&&typeof window.sessionStorage=="object"}catch{}Jse&&JSON.parse(window.sessionStorage.getItem(Qse)||"null");const ele=e=>e.state.key||e.href;function yut(e,r,n,o,a){var i;let s;try{s=JSON.parse(sessionStorage.getItem(e)||"{}")}catch(d){console.error(d);return}const l=r||((i=window.history.state)==null?void 0:i.key),c=s[l];(()=>{if(o&&c){for(const u in c){const h=c[u];if(u==="window")window.scrollTo({top:h.scrollY,left:h.scrollX,behavior:n});else if(u){const f=document.querySelector(u);f&&(f.scrollLeft=h.scrollX,f.scrollTop=h.scrollY)}}return}const d=window.location.hash.split("#")[1];if(d){const u=(window.history.state||{}).__hashScrollIntoViewOptions??!0;if(u){const h=document.getElementById(d);h&&h.scrollIntoView(u)}return}["window",...a?.filter(u=>u!=="window")??[]].forEach(u=>{const h=u==="window"?window:document.querySelector(u);h&&h.scrollTo({top:0,left:0,behavior:n})})})()}const tle="__root__";function but(e){return!!e?.isRedirect}function vut(e){const r=e.resolvedLocation,n=e.location,o=r?.pathname!==n.pathname,a=r?.href!==n.href,i=r?.hash!==n.hash;return{fromLocation:r,toLocation:n,pathChanged:o,hrefChanged:a,hashChanged:i}}const xut="Error preloading route! ☝️";function rle(e){const r=e.errorComponent??$D;return y.jsx(wut,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:n,reset:o})=>n?E.createElement(r,{error:n,reset:o}):e.children})}class wut extends E.Component{constructor(){super(...arguments),this.state={error:null}}static getDerivedStateFromProps(r){return{resetKey:r.getResetKey()}}static getDerivedStateFromError(r){return{error:r}}reset(){this.setState({error:null})}componentDidUpdate(r,n){n.error&&n.resetKey!==this.state.resetKey&&this.reset()}componentDidCatch(r,n){this.props.onCatch&&this.props.onCatch(r,n)}render(){return this.props.children({error:this.state.resetKey!==this.props.getResetKey()?null:this.state.error,reset:()=>{this.reset()}})}}function $D({error:e}){const[r,n]=E.useState(!1);return y.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[y.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[y.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),y.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>n(o=>!o),children:r?"Hide Error":"Show Error"})]}),y.jsx("div",{style:{height:".25rem"}}),r?y.jsx("div",{children:y.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:e.message?y.jsx("code",{children:e.message}):null})}):null]})}function kut(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var nle={exports:{}},PD={},ole={exports:{}},MD={},ale;function _ut(){if(ale)return MD;ale=1;var e=un;function r(h,f){return h===f&&(h!==0||1/h===1/f)||h!==h&&f!==f}var n=typeof Object.is=="function"?Object.is:r,o=e.useState,a=e.useEffect,i=e.useLayoutEffect,s=e.useDebugValue;function l(h,f){var g=f(),b=o({inst:{value:g,getSnapshot:f}}),x=b[0].inst,w=b[1];return i(function(){x.value=g,x.getSnapshot=f,c(x)&&w({inst:x})},[h,g,f]),a(function(){return c(x)&&w({inst:x}),h(function(){c(x)&&w({inst:x})})},[h]),s(g),g}function c(h){var f=h.getSnapshot;h=h.value;try{var g=f();return!n(h,g)}catch{return!0}}function d(h,f){return f()}var u=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:l;return MD.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:u,MD}var ile;function sle(){return ile||(ile=1,ole.exports=_ut()),ole.exports}var lle;function Eut(){if(lle)return PD;lle=1;var e=un,r=sle();function n(d,u){return d===u&&(d!==0||1/d===1/u)||d!==d&&u!==u}var o=typeof Object.is=="function"?Object.is:n,a=r.useSyncExternalStore,i=e.useRef,s=e.useEffect,l=e.useMemo,c=e.useDebugValue;return PD.useSyncExternalStoreWithSelector=function(d,u,h,f,g){var b=i(null);if(b.current===null){var x={hasValue:!1,value:null};b.current=x}else x=b.current;b=l(function(){function k(R){if(!C){if(C=!0,_=R,R=f(R),g!==void 0&&x.hasValue){var D=x.value;if(g(D,R))return T=D}return T=R}if(D=T,o(_,R))return D;var N=f(R);return g!==void 0&&g(D,N)?(_=R,D):(_=R,T=N)}var C=!1,_,T,A=h===void 0?null:h;return[function(){return k(u())},A===null?void 0:function(){return k(A())}]},[u,h,f,g]);var w=a(d,b[0],b[1]);return s(function(){x.hasValue=!0,x.value=w},[w]),c(w),w},PD}var cle;function Sut(){return cle||(cle=1,nle.exports=Eut()),nle.exports}var dle=Sut();const Cut=kut(dle);function Tut(e,r=n=>n){return dle.useSyncExternalStoreWithSelector(e.subscribe,()=>e.state,()=>e.state,r,Aut)}function Aut(e,r){if(Object.is(e,r))return!0;if(typeof e!="object"||e===null||typeof r!="object"||r===null)return!1;if(e instanceof Map&&r instanceof Map){if(e.size!==r.size)return!1;for(const[o,a]of e)if(!r.has(o)||!Object.is(a,r.get(o)))return!1;return!0}if(e instanceof Set&&r instanceof Set){if(e.size!==r.size)return!1;for(const o of e)if(!r.has(o))return!1;return!0}const n=Object.keys(e);if(n.length!==Object.keys(r).length)return!1;for(let o=0;o"u"?zD:window.__TSR_ROUTER_CONTEXT__?window.__TSR_ROUTER_CONTEXT__:(window.__TSR_ROUTER_CONTEXT__=zD,zD)}function uh(e){const r=E.useContext(Rut());return e?.warn,r}function Bs(e){const r=uh({warn:e?.router===void 0}),n=e?.router||r,o=E.useRef(void 0);return Tut(n.__store,a=>{if(e?.select){if(e.structuralSharing??n.options.defaultStructuralSharing){const i=Gse(o.current,e.select(a));return o.current=i,i}return e.select(a)}return a})}const ule=E.createContext(void 0);E.createContext(void 0);function Nut(e){const r=Bs({select:n=>`not-found-${n.location.pathname}-${n.status}`});return y.jsx(rle,{getResetKey:()=>r,onCatch:(n,o)=>{var a;if(Kk(n))(a=e.onCatch)==null||a.call(e,n,o);else throw n},errorComponent:({error:n})=>{var o;if(Kk(n))return(o=e.fallback)==null?void 0:o.call(e,n);throw n},children:e.children})}function Dut(){return y.jsx("p",{children:"Not Found"})}function ID(e){return y.jsx(y.Fragment,{children:e.children})}function ple(e,r,n){return r.options.notFoundComponent?y.jsx(r.options.notFoundComponent,{data:n}):e.options.defaultNotFoundComponent?y.jsx(e.options.defaultNotFoundComponent,{data:n}):y.jsx(Dut,{})}var OD,hle;function $ut(){if(hle)return OD;hle=1;const e={},r=e.hasOwnProperty,n=(N,P)=>{for(const O in N)r.call(N,O)&&P(O,N[O])},o=(N,P)=>(P&&n(P,(O,F)=>{N[O]=F}),N),a=(N,P)=>{const O=N.length;let F=-1;for(;++F"\\u"+("0000"+N).slice(-4),s=(N,P)=>{let O=N.toString(16);return P?O:O.toUpperCase()},l=e.toString,c=Array.isArray,d=N=>typeof Buffer=="function"&&Buffer.isBuffer(N),u=N=>l.call(N)=="[object Object]",h=N=>typeof N=="string"||l.call(N)=="[object String]",f=N=>typeof N=="number"||l.call(N)=="[object Number]",g=N=>typeof N=="bigint",b=N=>typeof N=="function",x=N=>l.call(N)=="[object Map]",w=N=>l.call(N)=="[object Set]",k={"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t"},C=/[\\\b\f\n\r\t]/,_=/[0-9]/,T=/[\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,A=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^]/g,R=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^ !#-&\(-\[\]-_a-~]/g,D=(N,P)=>{const O=()=>{H=I,++P.indentLevel,I=P.indent.repeat(P.indentLevel)},F={escapeEverything:!1,minimal:!1,isScriptContext:!1,quotes:"single",wrap:!1,es6:!1,json:!1,compact:!0,lowercaseHex:!1,numbers:"decimal",indent:" ",indentLevel:0,__inline1__:!1,__inline2__:!1},L=P&&P.json;L&&(F.quotes="double",F.wrap=!0),P=o(F,P),P.quotes!="single"&&P.quotes!="double"&&P.quotes!="backtick"&&(P.quotes="single");const U=P.quotes=="double"?'"':P.quotes=="backtick"?"`":"'",M=P.compact,V=P.lowercaseHex;let I=P.indent.repeat(P.indentLevel),H="";const q=P.__inline1__,Z=P.__inline2__,W=M?"":` -`;let G,K=!0;const j=P.numbers=="binary",Y=P.numbers=="octal",Q=P.numbers=="decimal",J=P.numbers=="hexadecimal";if(L&&N&&b(N.toJSON)&&(N=N.toJSON()),!h(N)){if(x(N))return N.size==0?"new Map()":(M||(P.__inline1__=!0,P.__inline2__=!1),"new Map("+D(Array.from(N),P)+")");if(w(N))return N.size==0?"new Set()":"new Set("+D(Array.from(N),P)+")";if(d(N))return N.length==0?"Buffer.from([])":"Buffer.from("+D(Array.from(N),P)+")";if(c(N))return G=[],P.wrap=!0,q&&(P.__inline1__=!1,P.__inline2__=!0),Z||O(),a(N,ne=>{K=!1,Z&&(P.__inline2__=!1),G.push((M||Z?"":I)+D(ne,P))}),K?"[]":Z?"["+G.join(", ")+"]":"["+W+G.join(","+W)+W+(M?"":H)+"]";if(f(N)||g(N)){if(L)return JSON.stringify(Number(N));let ne;if(Q)ne=String(N);else if(J){let re=N.toString(16);V||(re=re.toUpperCase()),ne="0x"+re}else j?ne="0b"+N.toString(2):Y&&(ne="0o"+N.toString(8));return g(N)?ne+"n":ne}else return g(N)?L?JSON.stringify(Number(N)):N+"n":u(N)?(G=[],P.wrap=!0,O(),n(N,(ne,re)=>{K=!1,G.push((M?"":I)+D(ne,P)+":"+(M?"":" ")+D(re,P))}),K?"{}":"{"+W+G.join(","+W)+W+(M?"":H)+"}"):L?JSON.stringify(N)||"null":String(N)}const ie=P.escapeEverything?A:R;return G=N.replace(ie,(ne,re,ge,De,he,me)=>{if(re){if(P.minimal)return re;const Ie=re.charCodeAt(0),Ze=re.charCodeAt(1);if(P.es6){const rt=(Ie-55296)*1024+Ze-56320+65536;return"\\u{"+s(rt,V)+"}"}return i(s(Ie,V))+i(s(Ze,V))}if(ge)return i(s(ge.charCodeAt(0),V));if(ne=="\0"&&!L&&!_.test(me.charAt(he+1)))return"\\0";if(De)return De==U||P.escapeEverything?"\\"+De:De;if(C.test(ne))return k[ne];if(P.minimal&&!T.test(ne))return ne;const Te=s(ne.charCodeAt(0),V);return L||Te.length>2?i(Te):"\\x"+("00"+Te).slice(-2)}),U=="`"&&(G=G.replace(/\$\{/g,"\\${")),P.isScriptContext&&(G=G.replace(/<\/(script|style)/gi,"<\\/$1").replace(/